Skip to content
Snippets Groups Projects
Commit 69f9fef2 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

return bounding box locations as integers

parent 5432f7a1
No related branches found
No related tags found
1 merge request!41Add annotators
...@@ -3,7 +3,8 @@ from .FailSafe import FailSafe ...@@ -3,7 +3,8 @@ from .FailSafe import FailSafe
def bounding_box_to_annotations(bbx): def bounding_box_to_annotations(bbx):
landmarks = {} landmarks = {
landmarks['topleft'] = bbx.topleft_f 'topleft': bbx.topleft,
landmarks['bottomright'] = bbx.bottomright_f 'bottomright': bbx.bottomright,
}
return landmarks return landmarks
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment