Fixed problem with segment coordinates

This commit is contained in:
2025-05-08 16:56:39 +02:00
parent 6d7532ab65
commit 341007cb9e
4 changed files with 9 additions and 28 deletions
+5 -4
View File
@@ -25,10 +25,9 @@ class DataPreprocessor:
os.mkdir(output_directory)
for img_file_path in self.image_paths:
image_meta = extractor.extract(img_file_path) #TODO: da drin sind paar todos
#TODO Segment coordinaten anpassen
#TODO: hier das extrahierte filtern usw.
img = cv2.imread(img_file_path)#, cv2.COLOR_BGR2RGB)
image_meta = extractor.extract(img_file_path)
#TODO: Überprüfen von metadatenformat, bspw. anzahl keypoints immer gleich bei gesicht und körper?
img = cv2.imread(img_file_path)
cv2.imshow("xxx", img)
cv2.waitKey()
img_vis = visualize_metadata(img, image_meta)
@@ -38,6 +37,8 @@ class DataPreprocessor:
print(image_meta.to_dict())
exit()
#TODO: hier das extrahierte filtern und speichern für das datenset
# if not persons or not objects: #need ≥1 person and ≥1 other object
# return None
# if any(p.face_bbox is None for p in persons): #each person must have a detectable face