Hello
Did anyone here work with SimpleCV before ?
I've made a robot and equipped it with a camera.
I want to make it follow a certain object around.
For example if the object is to the left the robot should turn to the left to face it. If it's too far it should advance towards it and so on.
How do I go about detecting the position of the object on the image and its size. The size doesn't have to be exact, just enough to tell the robot to advance or go backwards
>>54594382
Mine does never look this good.
>>54594382
You do http://docs.opencv.org/2.4/doc/tutorials/imgproc/histograms/template_matching/template_matching.html
If the object is simple you can use Hough transform.
If you have a lot of photos of your object you can train classifier. This is the most universal approach.
>>54596563
that's in C++, I've already implemented the communication using python.
>>54596896
Don't be a babby http://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_imgproc/py_template_matching/py_template_matching.html
>>54597088
I think i'm better off with colour matching like following some ball of some colour
>>54597171
Yup, this is the easiest. Ball following is commonly implemented via HSV color matching and locating the largest blob. Or even with plain RGB http://www.pyimagesearch.com/2015/09/14/ball-tracking-with-opencv/
>>54597324
I'm using this
http://www.instructables.com/id/Raspberry-Pi-Ball-tracking/
I'm now stuck in identifying where the ball coordinates. I need them for the robot to go left or right forward or backwards. Any thoughts ?
>>54597468
just google it
>>54597586
like I haven't already
garlic bread