From: Ashar on
hi all, i need your help...

i want to make a program , my objective is to count a single object that move around a circle using webcam.

1. webcam is positioned on top of the object
2. the object begin to move around
3. if he/she has completely move 360 degree, count as one lap.

tell me, step by step how to count object that move around 360 degree.

(assumption, radial of the circle is 50cm)
From: ImageAnalyst on
I'm sure you can come up with a block diagram for this algorithm -
should not be too tough as long as the object moves slowly. Post back
here what it is. If the object moves at unknown speed then you can't
tell. For example if you find the object at 30 degrees at time 0, and
at 50 degrees at time 1, how do you know if it moved 20 degrees or 380
degrees or 740 degrees, or moved -340 in the other direction?
From: Roger Stafford on
"Ashar " <zero_fauzi(a)yahoo.com> wrote in message <hqb6fv$mos$1(a)fred.mathworks.com>...
> hi all, i need your help...
>
> i want to make a program , my objective is to count a single object that move around a circle using webcam.
>
> 1. webcam is positioned on top of the object
> 2. the object begin to move around
> 3. if he/she has completely move 360 degree, count as one lap.
>
> tell me, step by step how to count object that move around 360 degree.
>
> (assumption, radial of the circle is 50cm)

If you are measuring the angle, then the 'unwrap' function would be very useful for this purpose, provided the measurements were made frequently enough.

Roger Stafford
From: Ashar on

thank you for your respond, imageAnalyist and Roger Stafford.
i'm glad that both of you reply my message.

imageAnalyst said :
I'm sure you can come up with a block diagram for this algorithm -
should not be too tough as long as the object moves slowly. Post back
here what it is. If the object moves at unknown speed then you can't
tell. For example if you find the object at 30 degrees at time 0, and
at 50 degrees at time 1, how do you know if it moved 20 degrees or 380
degrees or 740 degrees, or moved -340 in the other direction?

sorry, i'm not familiar with simulink. hehe... ( I always use M-File and GUI)
the object is a mouse that moves around on a basket. I assume the object moves at random speed. if he found a hole on a basket then he can escape... i need to know how many times, he moves around on a basket to find the hole.
(the hole is 5 cm from the ground of basket)

this is a test for mouse intelligent.


Roger stafford said :
If you are measuring the angle, then the 'unwrap' function would be very useful for this purpose, provided the measurements were made frequently enough.

how to measure the angle ?

thank you very much for answering my post