ros-industrial / easy_perception_deployment

A ROS2 package that accelerates the training and deployment of CV models for industries.
Apache License 2.0
54 stars 16 forks source link

[processor-1] terminate called after throwing an instance of 'cv::Exception' #14

Closed Srikiranrao closed 3 years ago

Srikiranrao commented 3 years ago

Hi all,

While selecting Localization option under Use Case menu. I can view an image output with localization parameters once but the image gets stuck later and shows error OpenCV(4.2.0) ../modules/core/src/matrix.cpp:465: error: (-215:Assertion failed) . May I know the reason causing this issue ?

[processor-1] [INFO] [1617763765.645213747] [processor]: [-FPS-]= 4.739336
[processor-1] 
[processor-1] [INFO] [1617763765.872392916] [processor]: [-FPS-]= 4.444444
[processor-1] 
[processor-1] [INFO] [1617763766.090887854] [processor]: [-FPS-]= 4.629630
[processor-1] 
[processor-1] [INFO] [1617763766.305084822] [processor]: [-FPS-]= 4.716981
[processor-1] 
[processor-1] [INFO] [1617763766.523434737] [processor]: [-FPS-]= 4.629630
[processor-1] 
[processor-1] table_depth = 0
[processor-1] obj_surface_depth = 0.169
[processor-1] [-OBJ centroid x-] = -0.0391274
[processor-1] [-OBJ centroid y-] = -0.025932
[processor-1] [-OBJ centroid z-] = 0.0845
[processor-1] [-OBJ Name-] = box
[processor-1] [-OBJ Length-] = 0.0654635
[processor-1] [-OBJ Breadth-] = 0.0411048
[processor-1] [-OBJ Height-] = -0.169
[processor-1] [INFO] [1617763766.744851142] [processor]: [-FPS-]= 4.566210
[processor-1] 
[processor-1] table_depth = 0
[processor-1] obj_surface_depth = 0.169
[processor-1] [-OBJ centroid x-] = -0.0363512
[processor-1] [-OBJ centroid y-] = -0.0216756
[processor-1] [-OBJ centroid z-] = 0.0845
[processor-1] [-OBJ Name-] = box
[processor-1] [-OBJ Length-] = 0.0851298
[processor-1] [-OBJ Breadth-] = 0.0392374
[processor-1] [-OBJ Height-] = -0.169
[processor-1] terminate called after throwing an instance of 'cv::Exception'
[processor-1]   what():  OpenCV(4.2.0) ../modules/core/src/matrix.cpp:465: error: (-215:Assertion failed) 0 <= roi.x && 0 <= roi.width && roi.x + roi.width <= m.cols && 0 <= roi.y && 0 <= roi.height && roi.y + roi.height <= m.rows in function 'Mat'
[processor-1] 
[ERROR] [processor-1]: process has died [pid 2038, exit code -6, cmd '/root/epd_ros2_ws/src/easy_perception_deployment/easy_perception_deployment/install/easy_perception_deployment/lib/easy_perception_deployment/processor --ros-args -r /processor/image_input:=/camera/color/image_raw'].
Srikiranrao commented 3 years ago

@cardboardcode This issue was solved, it was caused due to camera setting in Intel real sense. Thanks,