myCobot camera module v2.0
Applicable models: myCobot 280, myPalletizer 260, mechArm 270
Product image
Specifications:
Name | myCobot camera module v2.0 |
---|---|
Model | myCobot_cameraHolder_J6 |
Color | White (default) |
Material | ABS injection molding |
Size | 836416 |
USB protocol | USB2.0 HS/FS |
Lens focal length | Standard 1.7mm |
Field of view | About 60° |
Supported systems | Win7/8/10, Linux, MAC |
Service life | Two years |
Fixing method | Lego connector |
Environment requirements | Normal temperature and pressure |
Applicable equipment support | ER myCobot 280 series, ER myPalletizer 260 series, ER mechArm 270 series, ER myBuddy 280 series |
Camera flange: Machine vision
Introduction
- USB high-definition camera can be used with suction pump, adaptive gripper, artificial intelligence kit, etc., to achieve precise positioning and calibration with eye in hand.
Installation and Use
Check if the accessories package is complete: Lego connector, camera module with USB cable
Camera installation:
Structural installation:
Insert the Lego connector into the reserved socket of the camera module:
Align the camera module with the connector into the socket at the end of the robot arm:
Electrical connection:
Insert the USB cable into the USB port of the base:
Programming development:
The code is as follows:
python
import cv2
import numpy as np
cap = cv2.VideoCapture(0) # "0", determined by the camera device number queried
while(True):
ret, frame = cap.read()
# gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.show('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
cap.release()
cv2.destroyAllWindows()