Skip to content

Commit

Permalink
Merge pull request #146 from Belberus/develop
Browse files Browse the repository at this point in the history
#135 Test uploading posetrack
  • Loading branch information
beapc18 authored Oct 5, 2019
2 parents 9998be0 + 3a39d8c commit 9f0a7ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/logic/datasetService.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def addFramesPT(self, dataset, frames):
def addAnnotationsPT(self, dataset, annotations):

for annotation in annotations:
print('leyendo annotation ',self.safelyReadDictionary(annotation, "id"))
image_id = self.safelyReadDictionary(annotation, "image_id")
bbox_head = self.safelyReadDictionary(annotation, "bbox_head")
bbox_head_keypoints = [[bbox_head[0], bbox_head[1]],
Expand Down Expand Up @@ -315,8 +316,10 @@ def addAnnotationsPT(self, dataset, annotations):
og_objects.append(object_bbox_head) # Append new object
# print("OG OBJECTS of annotation scene ", og_frame["video"], og_frame["number"])
# print(og_objects)
print('antes update')
result = annotationService.updateAnnotation(dataset, self.pt, og_frame["video"], og_frame["number"], "root",
og_objects)
print('despues update')
if result == 'error':
return False
return True
Expand Down

0 comments on commit 9f0a7ad

Please sign in to comment.