3DUNDERWORLD-SLS-GPU_CPU icon indicating copy to clipboard operation
3DUNDERWORLD-SLS-GPU_CPU copied to clipboard

Cannot calibrate (cv::Exception), lower resolution, fewer images

Open TutajITeraz opened this issue 2 years ago • 0 comments

When Im trying to run calibration step, i am receiving an error:

[lukasz@lukasz-pc build]$ ./bin/calibrateCamera --images "/home/lukasz/Pictures/mouse_3d_scan/m.left/" --output left.cfg
[ WARN:[email protected]] global /build/opencv/src/opencv-4.6.0/modules/imgcodecs/src/loadsave.cpp (239) findDecoder imread_('/home/lukasz/Pictures/mouse_3d_scan/m.left/41.JPG'): can't open/read file: check file path/integrity
QSettings::value: Empty key passed
QSettings::value: Empty key passed
terminate called after throwing an instance of 'cv::Exception'
  what():  OpenCV(4.6.0) /build/opencv/src/opencv-4.6.0/modules/imgproc/src/color.simd_helpers.hpp:92: error: (-2:Unspecified error) in function 'cv::impl::{anonymous}::CvtHelper<VScn, VDcn, VDepth, sizePolicy>::CvtHelper(cv::InputArray, cv::OutputArray, int) [with VScn = cv::impl::{anonymous}::Set<3, 4>; VDcn = cv::impl::{anonymous}::Set<1>; VDepth = cv::impl::{anonymous}::Set<0, 2, 5>; cv::impl::{anonymous}::SizePolicy sizePolicy = cv::impl::<unnamed>::NONE; cv::InputArray = const cv::_InputArray&; cv::OutputArray = const cv::_OutputArray&]'
> Invalid number of channels in input image:
>     'VScn::contains(scn)'
> where
>     'scn' is 1

Aborted (core dumped)

I do not have 41.JPG because i was using 640x480 pattern which produces only 40 images per camera. How to modify code to support it?

TutajITeraz avatar Nov 07 '22 00:11 TutajITeraz