We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Math formula that will correct output goes in “darkchocolate” key in JSON, on line 18 in dark_chocolate.py file:
x_center, y_center = ( left + bbox_width / 2, top + bbox_height / 2) # darknet expects relative values wrt image width & height x_rel, y_rel = (x_center / width, y_center / height) w_rel, h_rel = (bbox_width / width, bbox_height / height) Output: (cat_id, x_rel, y_rel, w_rel, h_rel)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Math formula that will correct output goes in “darkchocolate” key in JSON, on line 18 in dark_chocolate.py file:
The text was updated successfully, but these errors were encountered: