User Tools

Site Tools


script-hdr-gopro-fusion-night

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

script-hdr-gopro-fusion-night [2018/04/08 10:35]
teq created
script-hdr-gopro-fusion-night [2018/04/10 13:56] (current)
teq
Line 11: Line 11:
 <code javascript>​ <code javascript>​
 /** /**
- * HDR capturing example for GoPro Fusion.+ ​* ​6 picture ​HDR night mode capturing example for GoPro Fusion.
  * Author: Camera Controller  * Author: Camera Controller
  * Web: http://​www.tequnique.com/​cameracontroller  * Web: http://​www.tequnique.com/​cameracontroller
Line 31: Line 31:
     }     }
 } }
 +
 +// Information
 +logMessage("​This example captures 6 differently exposed pictures in photo night mode with GoPro Hero 4, 5, 6, and Fusion cameras."​);​
  
 // Use the currently connected camera: // Use the currently connected camera:
Line 55: Line 58:
     }     }
  
-    // Capture three images with different exposures 
-    captureImage(cameraName,​ "/​setting/​19/​1"​);​ // 1 
-    waitForCameraRecordingState(cameraName,​ 1000, "​recording"​);​ 
-    waitForCameraRecordingState(cameraName,​ 0, "​idle"​);​ 
-    waitMilliseconds(1000);​ // give the camera some time for capturing. 
  
-    captureImage(cameraName,​ "/​setting/​19/​3"​); ​// 2 +    ​for (var i=1; i<7; i++) { 
-    waitForCameraRecordingState(cameraName,​ 1000, "​recording"​);​ +        logMessage("​Capturing image " + i); 
-    waitForCameraRecordingState(cameraName,​ 0, "​idle"​);​ +        ​captureImage(cameraName,​ "/​setting/​19/" ​+ i); 
-    waitMilliseconds(1000);​ // give the camera some time for capturing. +        waitForCameraRecordingState(cameraName,​ 1000, "​recording"​);​ 
- +        waitForCameraRecordingState(cameraName,​ 0, "​idle"​);​ 
-    ​captureImage(cameraName,​ "/​setting/​19/​6"​);​ // 3 +        waitMilliseconds(1000);​ // give the camera some time for capturing. 
-    waitForCameraRecordingState(cameraName,​ 1000, "​recording"​);​ +    ​}
-    waitForCameraRecordingState(cameraName,​ 0, "​idle"​);​+
     logMessage("​Done"​);​     logMessage("​Done"​);​
 } }
 else showMessageDialog("​Error",​ "No camera found"​);​ else showMessageDialog("​Error",​ "No camera found"​);​
 </​code>​ </​code>​
script-hdr-gopro-fusion-night.txt · Last modified: 2018/04/10 13:56 by teq