I have an application that scans qr code. I want to place a square in the middle of camera view so the users have a guide on where they will place the qr code. Can you tell me how to do it? Thank you.
Related
I am implementing a barcode scanner using MLKIT in my application (Kotlin). I need the barcode to be processed only when it is visible in a transparent rectangle in the center of the screen. as we see in the picture below.
PIC 1
Right now my App detects every barcode visible in the camera view as shown below. Is it possible to limit the detection area so the detection only reads from a rectangle in the middle of the screen?
Besides I would like to create a custom PreviewView for a barcode with cameraX, as shown in PIC 1. Thank you.
PIC 2
ML Kit doesn't support specifying interested area currently, so you have to either crop the preview image or filter out barcode results that not in the specified area. Similar question How do I make the camera focus only inside the rectangle and read the text inside the rectangle only in a flutter?
I have integrated QR Scanner for cordova android app.Currently when scanner opens it just shows video preview and scanning of QR code is fine.But I need to show viewfinder(Box where QR code must be placed to scan).Please help give your suggestions.
Draw a rectangle using canvas of your preview class #onDraw method. You can always use rectangle coordinates to find QR code.
example: canvas.drawRect
Hope my answer helps
I want open camera not full screen. I want open in a particular position on the screen inside one rectangle.
Maybe a surface? I don't know.
How can I do?
I want camera in my view. For example in a rectangle in center of screen. And when I push a button Take a pic
You can use surface view with camera preview for this.
This may help you.
I want to super-impose an outline of a face when the camera launches in android. Kind of like an empty avatar or a silhouette. I'm NOT looking for face detection. I just the want the user to have the ability to align the outline to the person's face when taking the picture, so that all pictures are taken at the same distance. I already have the camera launching. I'm thinking of putting the facial outline as my main layout and have the camera launching as the background of that layout. Any ideas?
Here you go
there is a section detailing how to do this.
http://developer.android.com/guide/topics/media/camera.html#custom-camera
In my android project I want to add an overlay (which is simple image with text on it) on top of the camera view.
The overlay is not simple rectangle but it is transformed at each camera frame.
What I'm looking for is kind of like image below:
I'm getting camera frame with OpenCV library (CvCameraViewListener and CameraBridgeViewBase).
My question is what is the best and fastest way to do this?
How can I transformed the overlay at each frame in the way as figure above shows.
Any help and suggestion is appreciated.