myCobot camera module v2.0

Compatible models: myCobot 280, myPalletizer 260, mechArm 270

product iconpi

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 system Win7/8/10, Linux, MAC
service life two years
a fixed way Lego Connectors
Use environment requirements Temperature and pressure
Applicable equipment support ER myCobot Series 280, ER myPalletizer Series 260, ER mechArm Series 270, ER myBuddy Series 280

Camera Flange: Machine Vision

Introduction

  • USB high-definition camera can be used with suction pump, self-adaptive gripper, artificial intelligence kit, etc., eye in hand to achieve precise positioning and calibration.

Mall link:https://shop-elephantrobotics-com.translate.goog/collections/mybuddy/products/camera-flange-2-0?_x_tr_sl=auto&_x_tr_tl=zh-CN


Installation and use

  • Check that the kit has everything: LEGO connectors, camera module with usb cable.
    alt text

  • Camera Mount:

    • Structural mounting:

      1. Insert the LEGO connector into the socket reserved for the camera module:

      2. Insert the camera module with the connector inserted against the end socket of the arm:

    • Electrical connections:

      1. Plug the USB cable into the base USB port:
  • Programming Development:

    Programming development of camera modules using python. python 环境下载

    • Create a new python file: Ctrl + Alt + T Open the command line and type:

      gedit camera.py
      

      The name of the file can be changed as needed

    • Perform function programming:

      The code is as follows:

      import cv2
      import numpy as np
      
      cap = cv2.VideoCapture(0) # "0", based on the queried camera equipment number
      
      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()
      
    • Save the file and close it, return to the command line terminal and type:

      python camera.py
      

      You can see what the camera captured

      Run results: alt text

  • How to check camera device number

ls /dev/video* -l

You can confirm by plugging and unplugging the devices and using the command separately to observe the added device number.

Example result: alt text

results matching ""

    No results matching ""