how to return to the preview of the camera when I want exactly after running takePicture () with OpenCV and android -
I am developing an Android application in which the camera preview is shown all the time. When the user wants, he can take that picture with the picture (), and apply different filters to that image
The problem is that when I click the Le Picture ) method, the image is freezes for a while and I want this freeze frame to remain until the user wants to apply the necessary filter, and whenever you want, Then immediately
I preview Returning to non mode, I am using << strong> OpenCV library and especially for the camera parameters of the JavaCamera View class and then I want to Take pictures that I am
mCamera.takePicture (empty, tap, new camera. PictureCalback () {@ Override Zero (Byte [] data on camera, myCamera camera) {If (data! = Null) {BM = Bitmap Feature. DCADAbiteArere (data, 0, data .length); Log.i (tag, "Characteristicist de la photo:" + BM .getWidth () + "x" + bm.getHeight ()); mCamera.startPreview () ;}}}
Interactive tag () method I store the image in a bitmap, and after that the camera resolves it on a canvas Thank you in advance!
You can immediately resume the preview with the pictureTrack () callback at The trick is to move ImageView to the top of SurfaceView Display the captured image where you display the live preview Now, it is enough for
imageView.setVisibility (see GONE)
and your The preview will be live immediately.
Comments
Post a Comment