Open CARASO opened 3 years ago
@CARASO The same issue. Seems like openCV ver. 3.2 conflicts with other version installed on your machine. Have you solved it?
in the cameraCalib.cpp file , comment out line 105 :
//imshow("Camera Calibration", view_gray); // 显示图片
and then , it will be ok . @CARASO @JacoBasil
in the cameraCalib.cpp file , comment out line 105 :
//imshow("Camera Calibration", view_gray); // 显示图片
and then , it will be ok . @CARASO @JacoBasil
it did not work
in the cameraCalib.cpp file , comment out line 105 :
//imshow("Camera Calibration", view_gray); // 显示图片
and then , it will be ok . @CARASO @JacoBasilit did not work
my bad, it does work when I change the launch file back
sorry ,i change cameraCalib.cpp file ,and it did not work 。could you tell me how to change the launch file? thanks a lot @chenhongjin811
Opencv has a camera calibration program. you can calibrate camera and save the data from that. I'm not sure of it but to use the next step of camera-lidar calibration you need only intrinsic and distortion parameters. which you can find from that script. Camera_calibration
hjw@hjw-desktop:~$ roslaunch camera_lidar_calibration cameraCalib.launch ... logging to /home/hjw/.ros/log/5d94e990-67a8-11eb-bf97-00e04c68010e/roslaunch-hjw-desktop-8219.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://localhost:36375/
SUMMARY
PARAMETERS
NODES / cameraCalib (camera_lidar_calibration/cameraCalib)
auto-starting new master process[master]: started with pid [8231] ROS_MASTER_URI=http://localhost:11311
setting /run_id to 5d94e990-67a8-11eb-bf97-00e04c68010e process[rosout-1]: started with pid [8243] started core service [/rosout] process[cameraCalib-2]: started with pid [8246] Get the parameters from the launch file /home/hjw/data/camera/photos/18.bmp OpenCV Error: Assertion failed (scn == 3 || scn == 4) in cvtColor, file /build/opencv-XDqSFW/opencv-3.2.0+dfsg/modules/imgproc/src/color.cpp, line 9716 terminate called after throwing an instance of 'cv::Exception' what(): /build/opencv-XDqSFW/opencv-3.2.0+dfsg/modules/imgproc/src/color.cpp:9716: error: (-215) scn == 3 || scn == 4 in function cvtColor
[cameraCalib-2] process has died [pid 8246, exit code -6, cmd /home/hjw/camera_lidar_calibration/devel/lib/camera_lidar_calibration/cameraCalib name:=cameraCalib log:=/home/hjw/.ros/log/5d94e990-67a8-11eb-bf97-00e04c68010e/cameraCalib-2.log]. log file: /home/hjw/.ros/log/5d94e990-67a8-11eb-bf97-00e04c68010e/cameraCalib-2*.log ^C[rosout-1] killing on exit [master] killing on exit shutting down processing monitor... ... shutting down processing monitor complete done