Skip to content

Commit

Permalink
only add dynamic objects
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricve authored Sep 3, 2024
1 parent 6ec43e4 commit cfa4535
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions utils/ReturnObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ def add_detected_object(self, det_obj: ClassificationObject):
:param det_obj: ClassificationObject whose characteristics should be saved in the ReturnJSON object.
"""

self.return_object['data']['objectCount'] += 1
self.return_object['data']['properties'].append(det_obj.object_name)

if not det_obj.is_static:
self.return_object['data']['objectCount'] += 1
self.return_object['data']['properties'].append(det_obj.object_name)

details_dict = {'id': str(det_obj.id),
'classified': det_obj.object_name,
Expand Down

0 comments on commit cfa4535

Please sign in to comment.