Questions tagged [javacameraview]
16 questions
13
votes
3 answers
How to get Exposure Compensation level from Android phone camera, via Java, when picture is taken?
How to get AutoExposureCompensation level (brightness) from Android phone when the picture is taken?
I can take a picture. I can access the Parameters of the Camera, including the Exposure Compensation (always zero when I check), but I need to get…

Brian
- 3,653
- 1
- 22
- 33
8
votes
3 answers
Android OpenCV camera example is just showing black screen
I've spent days (well, nights) trying to work this out. So many examples online are for different versions of Android Studio, different versions of Android, different versions of OpenCV and I can't get any of them to the final 'working' stage.
This…

Mark Mayo
- 12,230
- 12
- 54
- 85
3
votes
2 answers
Change Image resolution in Android with OpenCV
I am capturing frames using JavaCameraView and OpencCV, but i am stuck at default 620*480 resolution, which is not my requirement my phone can support 1280*720 resolution, I have been trying to find the solution for many days, tried many options but…

AlphabateCoder
- 95
- 2
- 11
2
votes
0 answers
How to increase Android Opencv camera FPS?
I am developing an Android application and I'm processing frames using Opencv in real time.
The image processing is heavy as I'm detecting the largest contour, rotating and cropping it and apply some sort of segmentation on the cropped Mat…

Amine
- 2,241
- 2
- 19
- 41
2
votes
1 answer
Android opencv Camera resolution low
So, I have implemented opencv to my android project, but when listing avaliable sizes for resolution I get the highest value of 1920x1080(im using Samsung Galaxy s6 Edge Plus). The highest resolution with default camera is 5312x2988, after that…

Miljan Vulovic
- 1,586
- 3
- 20
- 48
2
votes
0 answers
Android JavaCameraView image preview distorted and not proportional
So, Im doing application that is using OpenCv library for recognizing images from a picture. Im using JavaCameraView and it works very well on most devices, but, on some devices, it does this:
Good photo(Samsung Galaxy s6 edge plus)
And here is…

Miljan Vulovic
- 1,586
- 3
- 20
- 48
1
vote
1 answer
Camera VIew OpenCV in Android Cannot FIt
I have a problem with cameraview opencv on android, on android device type samsung camera view doesn't fit there is a black cut like picture 1 while on android device type xiaomi and realme it's safe like picture 2. I took the middle resolution from…

Aditya Marimo
- 13
- 2
1
vote
0 answers
Opencv Android JavaCameraView very low FPS
I've been working with object detection and i have achieved a lot with opencv in android, but, i found that the JavaCameraView was using a very low resolution, and i need it to be better, because i have to detect text on a photo taken after an…

Arturokin12
- 79
- 2
- 8
1
vote
1 answer
Javacameraview full width as that of the bounding layout
Im using the following code to show the camera view within a layout.
user3600801
1
vote
0 answers
Placing imagebutton/textview on openCV JavaCameraView in android
I'm using openCV's JavaCameraView in android and i'm trying to add an image button and text view on top of it. I tried to add it from the design and the xml is:

Lama Tatwany
- 95
- 5
- 16
0
votes
1 answer
JavaCamera2View enable flash opencv
I am currently using JavaCameraView to enable flash. Unfortunately the APIs of camera1 have been deprecated and therefore I am forced to switch to JavaCamaera2View. The problem is that I can't enable the flash because I don't have access to the…

Raf
- 1
- 1
- 3
0
votes
0 answers
java.lang.ClassNotFoundException using OpenCV4
I'm on Ubuntu 18.04, Android Studio 3.4.1 and OpenCV 4.1.0.
I write some code for Object Detection in Android using OpenCV 4.
I generated CameraActiviy.java to do all. This class extends AppCompactActivity from
import…

med
- 69
- 2
- 10
0
votes
0 answers
How can I save a some camera frame in vector and then play in JavaCameraView?
I am using a Android Studio, OpenCV and JavaCameraView to display frame from camera. I want create a simple Mat frame recorder. For example I want save a 100 last frames and then I want a display it in JavaCameraView.
I have vector…

KicoSVK
- 71
- 7
0
votes
1 answer
OpenCV (Java) : Draw a rectangle region on Camera View
I'm trying to create a bank card scanner on android using OpenCV, first, I'm creating a region where the user can scan their cards then crop it after, I'm struggling with the rectangle region and place it on the center, Any suggestion on how I can…

JaneTho
- 321
- 1
- 2
- 13
0
votes
1 answer
add buttons in front of javacameraview Android
I have a javacameraview in my main activity. I would like to put some control buttons in front of the…

Tassio Gustavo
- 15
- 6