Camera.OpenUsbCamera Method
Definition
Namespace: P1Sdk
Opens a USB Camera with the given serial-number (or any USB camera if the serial-number is omitted or empty).
public static Camera OpenUsbCamera(string serialNum = null, string password = null);
This is the method from where you obtain Camera objects. You can ask for a specific camera by providing a serial number. Or, you could leave out the serial number, and get the first available camera. This is totally fine, as long as there are only one camera connected to your system.
This method does not return cameras connected via TCP/IP.
Parameters:
SdkException with the error-code if something goes wrong. |
|
serialNum |
Optional: The serial of the camera to open. NULL to open first available USB camera. |
password |
Optional: If the camera is password protected, supply the password here |
Returns:
A camera object, to control the requested physical camera