-
Notifications
You must be signed in to change notification settings - Fork 796
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
dataset prepration #20
Comments
Use this file and generate xml file ......please change location in the given file. save the code in two python file . File name ...........> gen_xml.py (first file) import os def write_xml(folder, img, objects, tl, br, savedir):
#below this line we test our code only on one image but above write_xml function we have to import in draw_box python file so we can convert the png file in xml file. if name == 'main':
File name ...........> draw_box.py (New python import os global constantsimg = None constantsimage_folder = '/home/assetone04/Music/Darkflow-object-detection-master/new_model_data/images' def line_select_callback(clk, rls): def onkeypress(event): def toggle_selector(event): if name == 'main':
|
I have downloaded mrked object image datset from openImage. the annotation files is in the format( class_name x y, h w).
how do i convert this file into .xml file ?
The text was updated successfully, but these errors were encountered: