This page shows you how to make connections with cameras using RICOH Camera USB SDK.
- Related Classes
- How to Detect Cameras
- How to Connect to Camera
- How to Disconnect from Camera
- How to Check Connection Status
- See Also
The following classes are used when you make a connection with cameras:
CameraDeviceDetectorclass includes methods for detecting camera devices which are connected with USBs.
CameraDeviceclass represents a camera device.
- This class includes methods for obtaining camera information and operating camera device.
detect to obtain a list of connectable camera devices.
To connect to a camera, you need to detect connectable camera devices first.
DeviceInterface deviceInterface = DeviceInterface::USB; std::vector<std::shared_ptr<CameraDevice>> detectedCameraDevices = CameraDeviceDetector::detect(deviceInterface);
Connect to Camera
connect method to connect to one of the detected camera devices.
std::share_ptr<CameraDevice> cameraDevice = detectedCameraDevices; Response response = cameraDevice->connect(deviceInterface);
Disconnect from Camera
disconnect method to disconnect from the camera.
Response response = cameraDevice->disconnect(deviceInterface);
Check Connection Status
isConnected method to check connection status of the camera.
bool isConnected = cameraDevice->isConnected(deviceInterface);
- Events - Describes events such as receiving camera event notifications.