dicengine / dice

Digital Image Correlation Engine (DICe): a stereo DIC application that runs on Mac, Windows, and Linux
Other
351 stars 127 forks source link

Calibration Error #152

Open ABC123XYZ098 opened 5 years ago

ABC123XYZ098 commented 5 years ago

I am not able to calibrate (using 2D mode atm). When I upload my calibration files and press "calibrate", I receive error message: "DICe cal execution failed (see cal.log for details)". In the log I see that I have the following messages (second image):

Capture Capture1

How to fix this?

Thanx.

dicengine commented 5 years ago

There should be a file called cal.log that gets created in the working directory or the .dice folder in the working directory. Can you post the output from that?

ABC123XYZ098 commented 5 years ago

Digital Image Correlation Engine (DICe) v2.0 git: v2.0-beta.15-2-g2ce4e6 MPI: disabled Manycore: disabled Data type: double Copyright 2015 National Technology & Engineering Solutions of Sandia, LLC (NTESS) Report bugs and feature requests as issues at https://github.com/dicengine/dice

DICe_Cal begin

input file: A:\X\Y\1\A\B\cal_input.xml output file: A:\X\Y\1\A\B\cal.xml Error, unrecognized image file type for file: A:\X\Y\1\A\B_DSC0101.JPG Calibration::init(): user specified input parameters: xml_file_format = DICe_xml_calibration_file [unused] image_folder = A:\X\Y\1\A\B\ [unused] image_file_extension = .JPG [unused] image_file_prefix = _DSC [unused] reference_image_index = 101 [unused] start_image_index = 101 [unused] end_image_index = 123 [unused] skip_image_index = 1 [unused] num_file_suffix_digits = 4 [unused] pose_estimation_index = 101 [unused] cal_target_type = BLACK_ON_WHITE_W_DONUT_DOTS [unused] num_cal_fiducials_origin_to_x_marker = 10 [unused] num_cal_fiducials_origin_to_y_marker = 6 [unused] cal_origin_x = 2 [unused] cal_origin_y = 2 [unused] cal_target_spacing_size = 7 [unused] num_cal_fiducials_x = 14 [unused] num_cal_fiducials_y = 10 [unused] draw_intersection_image = 1 [unused] cal_debug_folder = A:\X\Y\1\A\B\ [unused] cal_opencv_options -> CALIB_FIX_INTRINSIC = 0 [unused] CALIB_USE_INTRINSIC = 1 [unused] CALIB_USE_EXTRINSIC = 0 [unused] CALIB_FIX_PRINCIPAL_POINT = 0 [unused] CALIB_FIX_ASPECT_RATIO = 0 [unused] CALIB_SAME_FOCAL_LENGTH = 0 [unused] CALIB_ZERO_TANGENT_DIST = 1 [unused] CALIB_FIX_K1 = 0 [unused] CALIB_FIX_K2 = 0 [unused] CALIB_FIX_K3 = 0 [unused] warning: ignoring invalid calibration option: CALIB_USE_INTRINSIC warning: ignoring invalid calibration option: CALIB_USE_EXTRINSIC

ABC123XYZ098 commented 5 years ago

Okay, I think I was able to get rid of the previous error ("Error, unrecognized image file type for file....") by ensuring there were not other image file types in same source folder (my camera outputted .jpg and .nef with same names). So now when I begin to calibrate, I reach a further point in the process, but it still fails with same popup. This is the new cal.log here:

Digital Image Correlation Engine (DICe) v2.0 git: v2.0-beta.15-2-g2ce4e6 MPI: disabled Manycore: disabled Data type: double Copyright 2015 National Technology & Engineering Solutions of Sandia, LLC (NTESS) Report bugs and feature requests as issues at https://github.com/dicengine/dice

DICe_Cal begin

input file: A:\X\Y\1\A\B\cal_input.xml output file: A:\X\Y\1\A\B\cal.xml Calibration::init(): user specified input parameters: xml_file_format = DICe_xml_calibration_file [unused] image_folder = A:\X\Y\1\A\B\ [unused] image_file_extension = .JPG [unused] image_file_prefix = _DSC [unused] reference_image_index = 101 [unused] start_image_index = 101 [unused] end_image_index = 104 [unused] skip_image_index = 1 [unused] num_file_suffix_digits = 4 [unused] pose_estimation_index = 101 [unused] cal_target_type = BLACK_ON_WHITE_W_DONUT_DOTS [unused] num_cal_fiducials_origin_to_x_marker = 10 [unused] num_cal_fiducials_origin_to_y_marker = 6 [unused] cal_origin_x = 2 [unused] cal_origin_y = 2 [unused] cal_target_spacing_size = 7 [unused] num_cal_fiducials_x = 14 [unused] num_cal_fiducials_y = 10 [unused] draw_intersection_image = 1 [unused] cal_debug_folder = A:\X\Y\1\A\B\ [unused] cal_opencv_options -> CALIB_FIX_INTRINSIC = 0 [unused] CALIB_USE_INTRINSIC = 1 [unused] CALIB_USE_EXTRINSIC = 0 [unused] CALIB_FIX_PRINCIPAL_POINT = 0 [unused] CALIB_FIX_ASPECT_RATIO = 0 [unused] CALIB_SAME_FOCAL_LENGTH = 0 [unused] CALIB_ZERO_TANGENT_DIST = 1 [unused] CALIB_FIX_K1 = 0 [unused] CALIB_FIX_K2 = 0 [unused] CALIB_FIX_K3 = 0 [unused] warning: ignoring invalid calibration option: CALIB_USE_INTRINSIC warning: ignoring invalid calibration option: CALIB_USE_EXTRINSIC Calibration::calibrate(): extracting the target points because they have not been initialized Calibration::extract_target_points(): target type is BLACK_ON_WHITE_W_DONUT_DOTS Calibration::extract_dot_target_points(): extracting dots Calibration::extract_dot_target_points(): processing cal image: A:\X\Y\1\A\B_DSC0101.JPG opencv_dot_targets(): using threshold: 87 opencv_dot_targets(): good dots identified: 137 Calibration::extract_dot_target_points(): processing cal image: A:\X\Y\1\A\B_DSC0102.JPG opencv_dot_targets(): using threshold: 87 opencv_dot_targets(): good dots identified: 137 Calibration::extract_dot_target_points(): processing cal image: A:\X\Y\1\A\B_DSC0103.JPG opencv_dot_targets(): using threshold: 87 opencv_dot_targets(): good dots identified: 137 Calibration::extract_dot_target_points(): processing cal image: A:\X\Y\1\A\B_DSC0104.JPG opencv_dot_targets(): using threshold: 87 opencv_dot_targets(): good dots identified: 137 Calibration::calibrate(): performing OpenCV calibration

dicengine commented 5 years ago

Are you using a binary you built from source or one from a release installer?

ABC123XYZ098 commented 5 years ago

A release installer.

dicengine commented 5 years ago

It looks like the OpenCV calibration is failing. Am I correct in interpreting the cal.log output that you only have four images, and that you are doing a single camera calibration? Is it possible to post an example cal photo here?

ABC123XYZ098 commented 5 years ago

Yes only four images (but I get same error for more images too) and it is 2D (single camera) calibration. This is an example.

_DSC0101

dicengine commented 5 years ago

Is example one of the actual cal images or a compressed version of one? I can't get OpenCV to even find the marker dots in the image for the image attached above because the resolution is so low.

ABC123XYZ098 commented 5 years ago

Yes it is compressed, try this:

_DSC0101

dicengine commented 5 years ago

I'm not sure what's going on. If I use your image above and run a cal in DICe using the installers for Version 2.0-beta.15, it works fine on Windows and Mac. Have you tried an experiment where you simply duplicate the image above four times and run a cal on that set? That's essentially what I did to test. You could also post your cal_input.xml file so I could verify that nothing strange is going on there. The only other thing I can think of would be that during the calibration process, OpenCV is writing debugging images that should be appearing in the cal tool. If the permissions are wrong for the drive where you are running DICe or the working directory, the cal tool could hang without any error messages.

ABC123XYZ098 commented 4 years ago

I switched to using .tiff images instead of .jpeg... seems to be working. Not sure if that was issue.

Hustben commented 4 years ago

processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0000_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0001_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0002_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0003_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0004_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0005_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0006_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0007_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0008_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0009_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0010_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0011_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0012_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0013_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0014_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0015_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0016_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0017_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0018_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0019_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0020_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0021_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0022_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0023_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0024_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0025_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0026_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0027_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0028_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0029_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0030_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0031_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0032_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0033_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0034_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0035_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0036_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0037_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0038_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0039_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0040_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0041_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0042_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0043_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0044_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0045_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0046_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0047_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0048_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0049_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0050_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0051_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0052_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0053_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0054_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0055_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0056_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0057_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0058_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0059_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0060_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0061_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0062_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0063_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0064_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed processing cal image C:\Users\毕斯特\Desktop\DICe_examples\stereo_d_sample\cal_images_7mm\AMCalB-0065_0.jpeg error, the image is empty error, pre-processing image for cal dot locations failed successfully found points in 0 images 新建 Microsoft Visio Drawing

Hustben commented 4 years ago

Why can't images be loaded

dicengine commented 4 years ago

See Issue #153