Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draw bounding boxes based on the Darknet YOLO format #59

Closed
tomasr8 opened this issue Jun 1, 2019 · 5 comments
Closed

Draw bounding boxes based on the Darknet YOLO format #59

tomasr8 opened this issue Jun 1, 2019 · 5 comments

Comments

@tomasr8
Copy link

tomasr8 commented Jun 1, 2019

Hello,
we use OpenLabeling in a team of students to label image data and we use the
Darknet YOLO format. Recently, I wanted to check some labeled images using this tool, but I found out
that the bounding boxes use the PASCAL_VOC folder by default. Since I only have the Darknet data, the PASCAL_VOC folder gets auto-populated with empty files, meaning that no bounding boxes get shown even though I have them in the YOLO_darknet folder.

I solved this problem by simply reading the bb data from the Darknet folder, but I thought we could maybe add a switch somewhere in the code that would draw bounding boxes from the YOLO_darknet folder in case the PASCAL_VOC folder does not exist. What do you think about this? I could submit a PR if you're interested.

@Cartucho
Copy link
Owner

Cartucho commented Jun 1, 2019

Oh yeah, that would be great!

Ideally, the code would check if the two folders have the same bounding boxes or not. And if not it should create the appropriate file instead of creating an empty one.

Anyway, I agree with you! We should have an argsparse parameter where one can set if they want to draw from PASCAL_VOC or from YOLO_darknet.

@tomasr8
Copy link
Author

tomasr8 commented Jun 1, 2019

Awesome! What name should the parameter have? Something like --draw-dir or maybe --bbox-dir?

@Cartucho
Copy link
Owner

Cartucho commented Jun 2, 2019

--dar-dir is more clear about what it does in my opinion

@enesyuceyurt
Copy link

enesyuceyurt commented Jun 25, 2019

Hello,
we use OpenLabeling in a team of students to label image data and we use the
Darknet YOLO format. Recently, I wanted to check some labeled images using this tool, but I found out
that the bounding boxes use the PASCAL_VOC folder by default. Since I only have the Darknet data, the PASCAL_VOC folder gets auto-populated with empty files, meaning that no bounding boxes get shown even though I have them in the YOLO_darknet folder.

I solved this problem by simply reading the bb data from the Darknet folder, but I thought we could maybe add a switch somewhere in the code that would draw bounding boxes from the YOLO_darknet folder in case the PASCAL_VOC folder does not exist. What do you think about this? I could submit a PR if you're interested.

Could you give more explanations on how you do this? Maybe a sample code? I tried to change the function draw_bboxes_from_file but I am having a lot of problems.

@Cartucho
Copy link
Owner

@tomasr8 any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants