Image recognition on OpenCV java -


i need ideas how change recognized face throug webcam, instead of make rectangle around face need put image example meme, or else, rigth can recognize face , code put rectangle dont want that, want change face else. have code

for (rect rect : facedetections.toarray()) { core.rectangle(imagen, new point(rect.x, rect.y), new point(rect.x + rect.width, rect.y      +     rect.height), new scalar(0, 255, 0));       } 

and have image loaded this:

mat image2 = highgui.imread("/índice.jpg"); 

i've found examples in c# need java please if can me. =)

use 1 thing.

point center =  new point(rect.x, rect.y); 

now use points set image @ location center.x , center.y.

eg.

label.setlocation((int) center.x, (int) center.y); 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -