diff --git a/utils/ReturnObject.py b/utils/ReturnObject.py index b13f9ea..0b24623 100644 --- a/utils/ReturnObject.py +++ b/utils/ReturnObject.py @@ -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,