Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

opencv error : how to solve #103

Open
963070827 opened this issue Feb 20, 2024 · 3 comments
Open

opencv error : how to solve #103

963070827 opened this issue Feb 20, 2024 · 3 comments

Comments

@963070827
Copy link

OpenCV Error: Assertion failed (npoints >= 0 && (depth == CV_32F || depth == CV_64F)) in projectPoints, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/calib3d/src/calibration.cpp, line 3269
terminate called after throwing an instance of 'cv::Exception'
what(): /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/calib3d/src/calibration.cpp:3269: error: (-215) npoints >= 0 && (depth == CV_32F || depth == CV_64F) in function projectPoints

[lidar_camera_calib-2] process has died [pid 30868, exit code -6, cmd /home/book/catkin_ws/devel/lib/livox_camera_calib/lidar_camera_calib __name:=lidar_camera_calib __log:=/home/book/.ros/log/fcc6bae4-d009-11ee-a8f2-000c29375306/lidar_camera_calib-2.log].
log file: /home/book/.ros/log/fcc6bae4-d009-11ee-a8f2-000c29375306/lidar_ca
image
mera_calib-2*.log

image

@Richard-Cold
Copy link

我也遇到了相同的问题,请问你解决这个问题了吗?

@happypuppy128
Copy link

同样的,我也遇到了这个问题,请问你们有解决吗?

@Richard-Cold
Copy link

main调用的calibra.colorCloud函数->在向pts_3d容器中添加元素时,过滤条件color_intensity_threshold_值偏高,导致没有元素被添加到pts_3d中,进而导致传入cv::projectPoints函数的pts_3d.size=0。
在pcd文件中,第四列为intensity激光强度。需要根据这这个数据来修改calib_outdoor.yaml中对应值。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants