I'm trying to convert my SurfaceView (camera preview) to a bitmap to detect face on the fly. I have not found any blank image, but when I display it on a scene it looks like plain black
(I believe it is difficult but to remove bitmap from surface view Not impossible - but no solution is posted)
Square background view SurfaceHolder enhances the presentation of SurfaceHolder. Callback {Public Background View (Reference Reference) {Super (Reference); // ... setDrawingCacheEnabled (true); } // ...} Private runnab update = new runnab () {public void run () {// The following statement is sending a black / blank image faceView.updateFaces (backgroundView.getDrawingCache ()); MHandler.postDelayed (update, (long) (1000)); }};
I found it to use preview callback:
< P> // data preview = byte array
}
/ Div>
Comments
Post a Comment