Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork56.4k
Closed
Description
System Information
The latest version OpenCVversion was used
devices:
- Huawei P20 Pro, EMUI 12.0.0, (Android 10?)
- Xiaomi Mi 8, Android 10, MIUI 12.0.3
Detailed description
Theproblem may be related toandroid/ndk#289
Problem in findCirclesGrid() call, this func throw error:
2023-11-28 20:06:07.539 9151-9233 cv::error() org...ncv.samples.cameracalibration E OpenCV(4.8.0-dev) Error: No Error (samples is empty) in filterOutliersByDensity, file ../../modules/calib3d/src/circlesgrid.cpp, line 10982023-11-28 20:06:07.541 9151-9233 libc org...ncv.samples.cameracalibration A Fatal signal 11 (SIGSEGV), code 2Problem in this code:
if (samples.empty()) CV_Error( 0, "samples is empty" );ThisCV_Error( 0, "samples is empty" ); is located intry/catch block, but in this Android sample and my device this causes crash anyway.
The error is not reproduced on all devices.
Steps to reproduce
Build with build_sdk.py
export ANDROID_NDK_HOME=/Android/Sdk/ndk/18.1.5063045/export ANDROID_SDK=/Android/Sdk/python /opencv/platforms/android/build_sdk.py /opencv/build/ /home/alexander/all/opencv/opencv --ndk_path /Android/Sdk/ndk/18.1.5063045/ --sdk_path /Android/Sdk/ --config /opencv/platforms/android/ndk-18-api-level-21.config.pyrun camera-calibration sample
Issue submission checklist
- I report the issue, it's not a question
- I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- I updated to the latest OpenCV version and the issue is still there
- There is reproducer code and related data files (videos, images, onnx, etc)