Пример #1
0
########################
# setup
########################
this_script_folder = os.path.dirname(
    os.path.abspath(os.path.realpath(__file__)))
if args.categories is None:
    args.categories = os.path.join(this_script_folder, "config",
                                   "boco_categories.csv")

if args.debug:
    args.verbose = True
    args.cores = 1

if args.verbose:
    image_processing.set_verbose()
    raw_image_read.set_verbose()
    print("Running boco_segment_final.py in verbose mode", flush=True)

if args.single_objects is not None:
    if os.path.exists(args.single_objects):
        print("WARNING: Single objects folder '" + args.single_objects +
              "' already exists.")
        #raise ValueError("Single objects folder '"+args.single_objects"' already exists.")
    os.makedirs(args.single_objects, exist_ok=True)

##############################
# Run program
##############################

annotations_folder = os.path.join(args.out_folder, 'annotations')
Пример #2
0
def set_verbose():
    AI_functions.set_verbose()
    image_processing.set_verbose()
    info.set_verbose()
    make_pdf.set_verbose()
    raw_image_read.set_verbose()
Пример #3
0
def set_verbose(): 
    global VERBOSE
    VERBOSE = True
    image_processing.set_verbose()