anhtuan98 / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

Draw picture on video #402

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I use this code to detect faces http://code.google.com/p/javacv/ and I want 
replace triangle with 2D hat or another image. But I dont know how. I am 
beginner can anyone explane to me

PS: You must modify code
URL url = new 
URL("https://raw.github.com/Itseez/opencv/master/data/haarcascades/haarcascade_f
rontalface_alt.xml");

to

    URL url = new URL("https://raw.github.com/Itseez/opencv/2.4/data/haarcascades/haarcascade_frontalface_alt.xml");

fix problem.

Original issue reported on code.google.com by msnaut...@gmail.com on 28 Dec 2013 at 9:59

GoogleCodeExporter commented 9 years ago
I need somethink like this http://www.youtube.com/watch?v=iMTLb_LrUlI but it 
must detect face and draw clothes

Original comment by msnaut...@gmail.com on 28 Dec 2013 at 11:06

GoogleCodeExporter commented 9 years ago
It looks like he is using CAMSHIFT to do the tracking:
http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.htm
l#camshift
And to draw images, Java 2D has better support than JavaCV/OpenCV:
http://docs.oracle.com/javase/tutorial/2d/images/drawimage.html

And please ask your questions on the mailing list, you could get answers from 
other people there. I am the only one reading messages here.

Original comment by samuel.a...@gmail.com on 30 Dec 2013 at 2:46