Color tracking..
I am a Jitter-newbe and would like to learn by doing on a pre-patch, modify it and continuous get more info. I have looked for a dive-patch into the Jitter-sea, but non has arised. So, please help me solve this problem/task:
A camera (or two) 1.5 meters above the pool table will give Jitter good video/color info.
1. The Jitter patch must first learn what balls are where, from all angles on the pool bed, seen from one or two cameras. This must be defined by the X/Y values of the green surface.
2. It must also define continuously if one or more balls are missing and possibly which of the six holes it/they went down in.
3. The Jitter patch must then learn to define what angle the cues are in on the pool bed, so it can calculate precisely what ball the cue is aiming at.
4. It must learn to ignore all colors outside the green pool bed area and all shapes apart from the balls and the cue.
Any ideas about how to do this, information about where I can learn more specific how to do it and links to any PRE-PATCHes are jolly welcome. This is a part of my master project and I will keep all the people that give me help info and cred. during and when it is complete.
(Pool table pict is added.)
sounds like a great project for a masters thesis, but terrible for a beginner. you need to do max and jitter tutorials first, to have any chance of making this happen.
once done, take another look at Jitter tutorial 25 and see if you can start tracking a single colored ball on the table.
after that, you might find the jit-cv library useful.http://www.iamas.ac.jp/~jovan02/cv/
some combination of jit.findbounds and some cv objects should be enough to track and distinguish multiple colors.
Thanks for your positive view on my master thesis project, and yes, I have understood that I have to do the Jitter tutorials thoroughly...
But, and I repeat this but, if anyone have a patch which preform any color tracking of real time objects I would be beyond grateful. It would make my dive into to the Jitter-sea amazingly softer and my life in selfimage-cycling74-desert longer and more fruitful.
I reckon you get my point;)
Look at the openCV porting in jitter http://www.iamas.ac.jp/~jovan02/cv/ they have tracking stuff, if you can filter a video matrix to isolate one color you're on a good track i think...
But, and I repeat BUT, first of all the tutorials
Oh, do I need to learn it, like, do I need to read tutorials?! Bugger!
Hehe
But thanks Federaik for the info, it will help me solving this riddle. I need as much info as possible, concerning this master thesis prodjet, to make it a success.
Sounds interesting. i would probably use several jit.chromakeys to filter off the different colours. Then use the c.v. objects to track this data. The centroids object, and i think there is one for blobs which you could use. There is also one to work out orientation that might work for the cue. Its definitely worth taking a look at the c.v. bundle