https://github.com/u-t-k-a-r-s-h/autonomous-aim-and-shoot-gun-opencv
It uses a camera to detect and track the object using open CV, the target's location is found in pixels and then converted into angles of X and Y axes which are then written to servo motors using arduino.
https://github.com/u-t-k-a-r-s-h/autonomous-aim-and-shoot-gun-opencv
arduino camera computer cpp opencv python servo-motor
Last synced: 8 months ago
JSON representation
It uses a camera to detect and track the object using open CV, the target's location is found in pixels and then converted into angles of X and Y axes which are then written to servo motors using arduino.
- Host: GitHub
- URL: https://github.com/u-t-k-a-r-s-h/autonomous-aim-and-shoot-gun-opencv
- Owner: U-t-k-a-r-s-h
- Created: 2019-04-06T07:22:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-06T08:50:29.000Z (over 6 years ago)
- Last Synced: 2025-01-11T12:46:23.622Z (9 months ago)
- Topics: arduino, camera, computer, cpp, opencv, python, servo-motor
- Language: Python
- Size: 3.23 MB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This project uses open CV python for image proessing and in this I am using camera
to detect the object of specific colour which can be set by an interactive interface
initialized on running the program, after the colour is selected and space bar is
pressed then that coloured object starts to be detected by the program and the angle
values associated with that object are written to Serial monitor of arduino which then
writes those values to the servo motor.
IMPORTANT-Arduino and laptop are to be connected by the arduino cabel and the particaular
port must be changed in the program according to your own PC.
The object selected must have small area so that multiple selections are neglected.
for blue color- HSV values are from [100, 115, 150],[120, 255, 255]