Добавить
Уведомления

Object tracking camera

A Python OpenCV and Python Lego NXT implementation of an object tracking webcam that is mounted on a Lego pan-tilt device. Using OpenCV 3.4.0 with an HSV color space transform for object color detection. More information here https://sites.google.com/site/eyalabraham/computer-vision. The program requires a connected webcam and an NXT pan-tilt mechanical setup and has three operating modes: 'm' key Mark: enter this mode while holding a uniformly colored object in front of the webcam. High contrast colors seem to work best, with a uniform background. Use the mouse to mark a region over the object, which selects the color region to track as a blob. 's' key Show: this is a test mode that shows the tracked blob. Use this mode to test blob tracking on the display. 't' key Track: this mode activates the motors and sends power controls to them. The Track mode will be halted (red 'Track' symbol) if the blob is lost, or more than one blob is detected. Tracking will resume automatically when a single blob is re-detected. Mechanical setup Several options existed for the Pan-Tilt mechanical setup. There is a nice Differential Pan & Tilt: [https://www.youtube.com/watch?v=NSRRrAH-9cA] that I built first before the one I ended up with.

Иконка канала Imovie Artisans
2 подписчика
12+
14 просмотров
год назад
12+
14 просмотров
год назад

A Python OpenCV and Python Lego NXT implementation of an object tracking webcam that is mounted on a Lego pan-tilt device. Using OpenCV 3.4.0 with an HSV color space transform for object color detection. More information here https://sites.google.com/site/eyalabraham/computer-vision. The program requires a connected webcam and an NXT pan-tilt mechanical setup and has three operating modes: 'm' key Mark: enter this mode while holding a uniformly colored object in front of the webcam. High contrast colors seem to work best, with a uniform background. Use the mouse to mark a region over the object, which selects the color region to track as a blob. 's' key Show: this is a test mode that shows the tracked blob. Use this mode to test blob tracking on the display. 't' key Track: this mode activates the motors and sends power controls to them. The Track mode will be halted (red 'Track' symbol) if the blob is lost, or more than one blob is detected. Tracking will resume automatically when a single blob is re-detected. Mechanical setup Several options existed for the Pan-Tilt mechanical setup. There is a nice Differential Pan & Tilt: [https://www.youtube.com/watch?v=NSRRrAH-9cA] that I built first before the one I ended up with.

, чтобы оставлять комментарии