Forums > MaxMSP

Tracking Position (?)

April 5, 2012 | 8:52 am

Hi everybody !

I have a question about tracking position with max/msp & jitter.
Let me just explain my whole project (just look at the drawings i put aside).

So, what i do is tracking color (i use colored water) in 5 chemical test tubes with the help of a ps3Eye camera.
Each tube has its detection "screen" (see the picture of the patch).
When the camera (with the help of suckah object) detects the color (for example red)
it plays an mp3 file. For now, the patch only detects if the color is there or not (like a boolean).

But, my problem is that i want to know how much liquid is in the test tube, like if the
test tube was graduated. For example, i want to detect the quantity of colored liquid in
the tube to rise or lower the volume of the mp3. If there is a lot of liquid (if the tube is
full) the volume is at the top, if there is no liquid the sound is off.

What kind of objects do i have to use for that ? Do you have some examples ?
One of my friends advise me to separate once again my rows/columns of detection
and to redo what i was doing when tracking color (it would means i only detect
if there is color or not in the "field" of detection) but if there is another way to do it
just let me know.

Thank you very much, i hope my request is clear and sorry for my bad english.

Kind Regards.

J.

[attachment=190232,3655]

Attachments:
  1. Patch.png


dtr
April 5, 2012 | 1:01 pm

if you wanna keep working with the camera as input one way to do it is not only check if the color is present, but also iterate through the matrix pixels that contain it. the top Y coordinate tells you how much the flask has filled up.

another way would be to create a black/white mask from the area that contains your color and use cv.jit.blob to tell you the coordinates of it. the top Y value is your flask level.


April 10, 2012 | 9:42 am

ok i’ll try this !
thanx for your answer !


Viewing 3 posts - 1 through 3 (of 3 total)