You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
Hi,
The topics that return ROI, for example the /ros_openvino_toolkit/face_detection return wrong values when the detected face gets close to the zero X and Y axis. The object_vector.roi.x_offset and object_vector.roi.y_offset return upper limit of unsigned int (4294967295), when it should be close to 0.
The problem is that cv::Rect is an unsigned integer, but it gets assigned negative integers sometimes when the face gets close to zero X, or zero Y. As a result, it publishes numbers close to 4294967295 as the x_offset or y_offset.
I believe the problem for face detection application is in the line #98 & #99 of the face_detection.cpp code. r is declared as cv::Rect which is unsigned int, while static_cast<int> can return negative int values.
I was able to fix it in one of the following two ways:
1-
This problem exit in any other application like object_detection where the ROI is calculated and published.
Any suggestion on the best way to fix this?
The text was updated successfully, but these errors were encountered:
Thank you very much for your contribution and sorry for late reply.
by upgrading source code to support new ROS versions and OpenVINO versions, suppose this bug has already been fixed. I'll close this bug and the related PR, if we (you and everyone here) meet it again, then we can reopen it then find better solutions.
Hi,
The topics that return ROI, for example the
/ros_openvino_toolkit/face_detection
return wrong values when the detected face gets close to the zero X and Y axis. Theobject_vector.roi.x_offset
andobject_vector.roi.y_offset
return upper limit of unsigned int (4294967295), when it should be close to 0.The problem is that cv::Rect is an unsigned integer, but it gets assigned negative integers sometimes when the face gets close to zero X, or zero Y. As a result, it publishes numbers close to 4294967295 as the x_offset or y_offset.
I believe the problem for face detection application is in the line #98 & #99 of the face_detection.cpp code.
r
is declared ascv::Rect
which is unsigned int, whilestatic_cast<int>
can return negative int values.I was able to fix it in one of the following two ways:
1-
or 2-
This problem exit in any other application like object_detection where the ROI is calculated and published.
Any suggestion on the best way to fix this?
The text was updated successfully, but these errors were encountered: