Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Save an Face Detection

$
0
0
Hi all!!! Sorry...I can't English.(Using Google Translation) I want to save in the detection window as an image from the movie by using the Face Detection of OpenCV sample program. 1)Run the application and error does not occur 2)It can not be saved image in the detection window 3)Even stored, stores the same image in a large amount or app is shutdown feel uneasy. Is there a solution for this problem? Please help me. Thanks for reading. My code is follow. Rect[] facesArray = faces.toArray(); for (int i = 0; i < facesArray.length; i++){ Core.rectangle(mRgba, facesArray[i].tl(), facesArray[i].br(), FACE_RECT_COLOR, 3 ); File mediaStorageDir = new File( Environment.getExternalStorageDirectory().getPath() + "/DCIM/100ANDRO/"); Mat face = mRgba.submat(facesArray[i].clone()); Highgui.imwrite(mediaStorageDir + Integer.toString(i) + ".jpg", face); }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>