Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Crash in the Android camera-calibration sample #24612

Closed
@AleksandrPanov

Description

@AleksandrPanov

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 2

Problem 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.

error_logs.txt

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.py

run 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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp