-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add hair roi to people_recognition #58
base: master
Are you sure you want to change the base?
Conversation
Convert shirt colors array to label string | ||
|
||
:param: shirt_colors: Array to colors | ||
:return: string label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shirt -> hair
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I see some significant overlap with _shirt_colors_to_label
, so maybe reused some code instead of copying
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it is allowed to add another parameter "hair_colors" in Person2D for genpy.message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Multiple colors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No multiple colors. Currently Person2D has the parameter tshirt color and for the hair color we need to add another parameter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is a different property. So we would need to extend the msg for that.
4de9c07
to
a2bb487
Compare
hair_roi.height = max(int(face_roi.height/6), 5) | ||
hair_roi.width = max(face_roi.width, 5) | ||
hair_roi.y_offset = min(hair_roi.y_offset, image_shape[0] - hair_roi.height) | ||
rospy.logdebug("face_roi: {}, hair_roi: {}, img.shape: {}".format(face_roi, hair_roi, image_shape)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rospy.logdebug("face_roi: {}, hair_roi: {}, img.shape: {}".format(face_roi, hair_roi, image_shape)) | |
rospy.logdebug(f"{face_roi=}, {hair_roi=}, {image_shape=}") |
I add the ROI for the hair to proceed with the color extraction.