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 properties and 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; List<CameraDevice> detectedCameraDevices = CameraDeviceDetector.Detect(deviceInterface);
Connect to Camera
Connect method to connect to one of the detected camera devices.
CameraDevice cameraDevice = detectedCameraDevices.First(); 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.