Page 1 of 1

How could I detect motion direction using a camera and pyBoard ?

Posted: Sat Aug 06, 2016 9:49 am
by BOB63
Hi ,
I've in mind a project to use a small camera connected by serial interface to a pyBoard and detect if an object that pass under the camera is moving left to right or viceversa. Probably with other boards like RaspeberryPi and openCV could be more simple , but I've not idea at all how
analyse the frames from the camera e define the direction. I don't need take pictures at high resolution an I think to work just wuth grayscale images.
Do you have any idea to suggest me a method that i could use for this scope ?

Thanks Roberto.

Re: How could I detect motion direction using a camera and pyBoard ?

Posted: Sat Aug 06, 2016 6:21 pm
by fdufnews
Going low tech is a trending topic but I am not sure you've chosen the best guy for this task.
May be you can use the optical sensor of a mouse. There are libraries on Arduino, mbed, and Espruino platforms that perhaps can be adapted.
If you have some money you can try the CMUCAM

Re: How could I detect motion direction using a camera and pyBoard ?

Posted: Sat Aug 06, 2016 7:39 pm
by dhylands
OpenMV https://openmv.io/ has a camera and includes things like motion tracking, and drives it all using MicroPython.

Re: How could I detect motion direction using a camera and pyBoard ?

Posted: Sun Aug 07, 2016 11:49 am
by BOB63
Hi,
thank you dhylands, I'll give a look to that camera !
The solution with the mouse sensor I don't think that is applicable in my project because between the sensor and the object there are also 40-50 cm so i don't think that can be focused the sensor in the right way and then the objects are not so small.
Thanks to both! Roberto.