The Camera USB component generically supports most common types of USB cameras.
Make sure to add also the Vision Module component to your component setup. This is required to show the camera image in the drag&bot Studio and perform the calibration.
Configure the component¶
Configure the Camera USB component in the Component Manager:
- Video Device: The name of the video device for this camera. If just one camera is plugged in, this is probably /dev/video0. Investigate the /dev linux directory of your computer for the device name if you have several cameras plugged in at the same time. If you use a laptop, note that also integrated webcams might use the /dev/video# device name and can be used as camera in drag&bot.
- Width: The pixel width of the camera image. The camera image will be cropped to this size starting from the top left corner. Bigger values than the actual camera image let the component fail to start.
- Height: The pixel height of the camera image. The camera image will be cropped to this size starting from the top left corner. Bigger values than the actual camera image let the component fail to start.
- Intrinsic Calibration Name: The name of the intrinsic calibration to use for this camera. See here for more information.
Use the camera¶
See the Vison Module documentation on information about calibration and function blocks to use the camera.