Identifying the position of a moving animal

OpenMV related project discussion.
xian
Posts: 2
Joined: Tue Oct 09, 2018 11:35 am

Identifying the position of a moving animal

Postby xian » Tue Oct 09, 2018 11:45 am

Hi there,

I just got one OpenMV cam 7 but i'm totally new to machine vision.
I need to use openmv cam to identify the position of an animal in the box. The box has left and right chambers, and the animal can freely go to either left or right side.
Once the animal was detected in each side, a TTL trigger will send out through different pins. Is there an example can do this kind project?
Thanks so much!

Xian
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: Identifying the position of a moving animal

Postby kwagyeman » Tue Oct 09, 2018 12:25 pm

Hi, the easiest ways to do this are to use color tracking on the inverse of the color of the box. This will detect the animal. Is the box well lit? If so, then checkout the Color-Tracking Example scripts under OpenMV IDE and then use the Tools->Machine Vision->Threshold Editor to get the color tracking settings. Note that you want to pass the inverse flag to the find_blob() method to find everything not the color of the box.
Nyamekye,
xian
Posts: 2
Joined: Tue Oct 09, 2018 11:35 am

Re: Identifying the position of a moving animal

Postby xian » Tue Oct 09, 2018 1:36 pm

Thanks for the useful reply, i just tried and it indeed can track the moving animal. My following question is how do i know the position (or coordinate) of the moving animal?
User avatar
kwagyeman
Posts: 2286
Joined: Sun May 24, 2015 2:10 pm

Re: Identifying the position of a moving animal

Postby kwagyeman » Tue Oct 09, 2018 9:13 pm

Blob.cx() and blob.cy()
Nyamekye,

Return to “Project Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests