Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 760 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 760 Bytes

tagDetect

This code can be used to recognized the tag for modular robots in the real world. The output is the image and the information as below: (1569514020.3 rb 135 293 0.8574929257125441 0.5144957554275265), that is (time, tagID, x in pixel, y in pixel, orientation_x, orientation_y)

Run this code: python colordetect1_60

Before you run this code, you have to make sure:

  1. opencv (opencv2, or opencv4) and numpy are working on your computer.
  2. your computer is connecting with the external camera. If you have some problems about the library, please fix it.

If your computer has opencv 2, you can run the code colordetect1_60.py

If your computer has opencv 3/4, you can run the code colordetect1_60_cv4.py

The code was tested on Macbook computer.