Import
Constructor
Parameters
Methods
connect
Connect to a camera device.disconnect
Disconnect from the camera device.send
Send a PTP operation to the camera.get
Get a camera property value.set
Set a camera property value.getStandardPropertyStates
Read the standard PTP properties advertised by the connected body and current USB mode. Each state includescode, codeHex, name, decoded value, raw value, writable, form (none, range, or enum), and any advertised choices/range.
setStandardProperty
Set one recognized standard property. Darkgrade re-reads the live property descriptors, rejects absent and read-only properties, and rejects enum values the body did not advertise.on
Register an event handler.off
Unregister an event handler.getAperture
Get the current aperture value.setAperture
Set the aperture value.getShutterSpeed
Get the current shutter speed value.setShutterSpeed
Set the shutter speed value.getIso
Get the current ISO value.setIso
Set the ISO value.captureImage
Capture an image from the camera.captureLiveView
Capture a live view frame from the camera.startRecording
Start video recording.stopRecording
Stop video recording.listObjects
List all objects stored on the camera.getObject
Retrieve an object from the camera.Exports
The module also exports the vendor-specific camera implementations:CanonCameraGenericCameraNikonCameraSonyCamera