:: AForge.NET Framework :: Articles :: Forums ::

Detecing Object Moving Which side

The forum is to discuss topics related to different areas of image processing and computer vision.

Detecing Object Moving Which side

Postby emir » Sat Dec 16, 2017 12:09 am

I have to detect whether object moving from "left to right" or from "right to left" or "up to down" I want to control servo motors 2 axis "x" and "y" axis .I have already detect object coordinate as you can see.

Code: Select all
int objectX = objectRect.X + (objectRect.Width / 2);
                    int objectY = objectRect.Y + (objectRect.Height / 2);

but that alwasy give to me currrent coordinate , Am i have to create 2.frame and compare first and second objectX ? if so how can I create 2. frame becasue first image must arrive late.

Actually I want to follow the object with servos , working on arduino and c# maybe i can not set up the algorithm.
Sorry for my english

Thank you
Posts: 1
Joined: Sat Dec 16, 2017 12:01 am

Return to Image Processing and Computer Vision