Questions tagged [camera-view]

51 questions
37
votes
6 answers

How to capture image from custom CameraView in Android?

i need to capture image from required portion of the screen. capture image from camera. at that time other screen content as it is. how is this possible?
Mr.Sandy
  • 4,299
  • 3
  • 31
  • 54
5
votes
2 answers

Create cameraview (mask) on surfaceview in android

I want to create a mask on camera surface view. see image below. mask is resizable. image will be clicked only by unblurred area. can anybody give idea how to create suh mask? thanks in advance.
SuperDude
  • 91
  • 2
  • 6
2
votes
1 answer

How to set the camera in Babylon.js to be in third person?

I managed to create a code where the cameras follow the "tank" object. But with the mouse, you can zoom in and out of the camera. Tell me how to set up the camera so that it moves like in GTA behind the car? Here is an example from GTA Vice City.…
Lex34
  • 75
  • 6
2
votes
1 answer

ZXing QR code issue during Tab Switching in Android

I have an issue on ZXing QR code inside Tabs. I have 3 fragments one of which having ZXing QR implemented and i am replacing fragments on tabs switching.I have following code in my fragment class.The main issue is when i switched tabs smoothly…
Muhammad Zahab
  • 1,049
  • 10
  • 21
2
votes
2 answers

How to scan for QR codes on button press?

I am using the code provided by https://www.hackingwithswift.com/example-code/media/how-to-scan-a-qr-code to make my own scanning app. But I like my scanning to occur on button press. Now for this I put the viewDidLoad() part from the tutorial into…
alex
  • 4,804
  • 14
  • 51
  • 86
2
votes
0 answers

How To Align Center Horizontal Surface FrameLayout?

I wanna align surface camera view centered horizontal. I tried many technique but I couln't find right solution. I don't wanna scretch cameraview. Cause cameraview must show right aspect ratio like real size. I don't wanna intent camera view.…
RedLEON
  • 281
  • 2
  • 7
  • 19
2
votes
0 answers

Drawing a square frame in camera view

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.
duderbear
  • 101
  • 3
  • 16
2
votes
2 answers

Portrait mode in CameraView

I'm going to develop an android application using BeyondAR framework. I try to use a CameraView component at the first half of the screen (app running only in portrait mode), but when i rotate camera 90 degrees image stretches and aspect ratio is…
user2352548
  • 45
  • 2
  • 8
1
vote
0 answers

Camera: Native Module 'CameraView' was null (react-native-camera-vision)

I'm running an EXPO project (https://mrousavy.com/react-native-vision-camera/docs/guides/#installing-the-library) I've ran expo install react-native-vision-camera added the plugin in my app.json (code below) expo prebuild { "plugins": [ [ …
1
vote
0 answers

Task :expo-camera:compileReleaseKotlin FAILED when building release apk with react native

I am trying to build a release apk with react-native, and i am using a expo-camera and selected minimal react-native build when creating the project. I got errors linked to the cameraview folder in node_modules, then got Task…
Okoli_Ryan
  • 31
  • 1
  • 3
1
vote
1 answer

How to integrate Huawei HMS Face Liveness Detection with CameraView?

First, I tried Huawei Face Liveness Detection. With the sample code, it works. Next, I tried CameraView. Also, by just following the sample code, I am able to perform frame processing, achieving face detection and face…
1
vote
1 answer

glMapBufferRange fails with GL_OUT_OF_MEMORY on Samsung Galaxy S8 / S10 / Note 10 Lite

I am using CameraView library for Android to capture frames from the camera and process them with OpenGL shaders. I have encountered some strange behavior while trying to use compute shaders. I want to grab a camera frame as an RGB buffer of…
SadSido
  • 2,511
  • 22
  • 36
1
vote
0 answers

How to take a video with cameraview library on android?

I'm using this libray natario1.github.io called 'CameraView' . I'm having problems because I don't have any real example how to take a video . I don't know what to set as a File parameter inside camera.takeVideo(file). Can someone show me a real…
1
vote
1 answer

how to install CameraView

I wanted to use an Android Camera Library called CameraView, https://natario1.github.io/CameraView/about/install. Its documentation says use api 'com.otaliastudios:cameraview:2.6.1' but what does that mean?
R. Gurung
  • 1,356
  • 1
  • 14
  • 34
1
vote
1 answer

Unresolved reference: setLifecycleOwner in AndroidX

MainActivity.kt: (41, 16): Unresolved reference: setLifecycleOwner Task :app:buildInfoGeneratorDebug My app uses AndroidX, in my gradle.properties: android.useAndroidX=true android.enableJetifier=true My Code in onCreate function in…
Suisse
  • 3,467
  • 5
  • 36
  • 59
1
2 3 4