Skip to content

Commit

Permalink
dealing with class number
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisMilczarek committed Jul 6, 2023
1 parent 23b1e72 commit e499441
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ def __createDescription3D(self, source_data, description2d : Description2D, head
if description2d.type in self.DESCRIPTION_PROCESSING_ALGORITHMS:
description3D : Description3D = self.DESCRIPTION_PROCESSING_ALGORITHMS[description2d.type](source_data, description2d, header)
description3D.bbox2D = description2d.bbox
description3D.class_num = description2d.class_num
print(description3D.class_num)
return description3D
else:
return None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def callback(self, *args):
description.label = self.model.names[clss]
description.type = Description2D.DETECTION
description.score = score
description.class_num = clss
description.id = i

box_label = ""
Expand Down
2 changes: 1 addition & 1 deletion butia_vision_msgs

0 comments on commit e499441

Please sign in to comment.