OpenCV contour boxes like objects

Hi again

i have a question, anyone now a way to make the boxes, how create the contour, in example opencv, and make and object.

i want to create a object for all the boxes thath create this example, and then modified or make things like that.

i want to put images of the size of the boxes, and something like that.

i read openCV tutorial but i think is more like genered i kind of class or something like that.

i am new in openframewokrs

THX

It sounds like you’re talking about object recognition, and training a model to detect a specific type of object.

Todd has done some work with that here:

http://forum.openframeworks.cc/t/ofhaartraining-app/1415/0

really no,i dont now how to explain

but really good code, helpmefor other projects…

i explain you my idea, and you tellme if i am lost… jeje

i want to put my hand, or a full body for example, in front to camera, and put a circle in the screen, and make colisions with the contour of my body.

or i want to put my hand, and in the place where i put my hand, or any objetc infront the camara, in this posicion, maybe draw a circle, or put a image.

or something like that, but i need to obtain, the posicion of the pink boxes, created for the example opencv, this pink boxes, coverted in my object for make a lot of activities…

thx for your help :slight_smile:

i recopilated all this videos for make an example

http://www.youtube.com/watch?v=WCdQ8KQ-Wyo
http://www.youtube.com/watch?v=-Ady9p-wqH4
http://www.youtube.com/watch?v=MIYt1yNwoZU
http://www.youtube.com/watch?v=y6izXII54Qc

but this is so avanced for my a im new in openframeworks, and i want to make collisions with objects or hand, or any thing that you put infront of camera, with the objects in the screen…

Thx if anyone can guide to me i am so much loss

For real collisions, you need boundaries. A simple way to get boundaries is background subtraction plus the blob tracker in the ofxOpenCv addon.

The demo videos you show just use optical flow, which is also available by OpenCv (and I think it might be wrapped in ofxOpenCv?). Not “real” collisions, but kind of similar.

For doing the simulation of different particles and collisions, you could try Memo’s physics library: http://www.memo.tv/ofxmsaphysics

oo thx :slight_smile:

thank you :twisted:

there is code for making a contour into a series of balls for collision –

here:

http://www.makingthingsmove.org/blog/?cat=5

the particular week that has video + contour particle interaction is here:

http://www.makingthingsmove.org/blog/wp-…-0-code.zip

they are 0.05 projects, but they should plug into 0.06 with problem. this requires (likely) both the opencv addon and the vector math addon.

take care!
zach

wow zach this is really awasom 8) )

[quote author=“zach”]there is code for making a contour into a series of balls for collision –

here:

http://www.makingthingsmove.org/blog/?cat=5

the particular week that has video + contour particle interaction is here:

http://www.makingthingsmove.org/blog/wp-…-0-code.zip

they are 0.05 projects, but they should plug into 0.06 with problem. this requires (likely) both the opencv addon and the vector math addon.

take care!
zach[/quote]

Hi Zach,
I’m really interested in makingthingsmove code (openCV/collision/contour/objects). I use 0.06 now so it debugs with errors. Is there anyway to fix the code in order to make it running on 0.06?

Thank you so much. OF is awesome!
Joe

hi joexpo,
i have the code running in OF 0.06, here it is.

[attachment=0:25e6t2ip]makingthingsmove_particleVideo_src.zip[/attachment:25e6t2ip]

you’ll just have to add ofxOpenCv and ofxVectorMath addons to your project.

L.

makingthingsmove_particleVideo_src.zip

Thank you so much.