-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Camera preview hangs #2
Comments
Hi, sorry it's been a while since I last saw this code. |
I updated to latest openCV implementation but problem seems same. I am sure that this function is causing an issue because if I remove this function from code, CameraPreview works smoothly. Imgproc.adaptiveThreshold(gray, bw, 255, Imgproc.ADAPTIVE_THRESH_MEAN_C, Imgproc.THRESH_BINARY, 101, 35); Here I tried to change with different parameters. like changing blocksize or last double parameter value but then It stops Identifying cards as desired. I learned about this funcion from following link : https://www.tutorialspoint.com/opencv/opencv_adaptive_threshold.htm But any change of parameter makes function useless |
Hello,
Code is great but camera preview hangs. When investigated, I found that this code is causing problem
ScanCardFragment :
` @OverRide
public Mat onCameraFrame(CameraBridgeViewBase2.CvCameraViewFrame inputFrame) {
rgba = inputFrame.rgba();
Can you help me in Imgprov.adaptiveThreshold function?
The text was updated successfully, but these errors were encountered: