RoboCarts
Functions | Variables
run_color_alg Namespace Reference

Functions

def parse_boundaries (bound_arg)
 

Variables

 parser = argparse.ArgumentParser(description='Process parameters for the Color algorithm.')
 
 default
 
 None
 
 type
 
 str
 
 required
 
 help
 
 nargs
 
 int
 
 False
 
 float
 
 action
 
 args = parser.parse_args()
 
 VIDEO_PATH = args.video
 
 START_FRAME_NUMBER = args.start_frame
 
 TESTING = args.testing
 
 MORPH_KERNEL_SIZE = args.m_kernel
 
 FPS = args.fps
 
 RACE_NAME = args.race_name
 
 ROTATE = args.rotate
 
 RESIZE = args.resize
 
 FLIP = args.flip
 
 MANUAL_FINISH = args.manual_finish
 
 SAVE_FOLDER = args.save_folder
 
 IMG_PICK_PATH = args.img_pick
 
 COLOR_BOUNDARIES = args.boundaries
 
 SPAN = args.span
 
string race_name = "webcam"
 
 video_file_name = TESTING.split(f"{os.sep}")[-1]
 
list train_files_names = ["train_02", "train_03", "train_07", "train_10"]
 
dictionary parsed_arguments
 

Detailed Description

@file run_color_alg.py
@brief This file contains the Color algorithm application.
       Parses all the parameters and runs the algorithm.

Function Documentation

◆ parse_boundaries()

def run_color_alg.parse_boundaries (   bound_arg)
Auxiliary function for parsing the color boundaries parameter
:param bound_arg: color boundaries as a list of numbers
:return: color boundaries as a list of tuples

Variable Documentation

◆ parsed_arguments

dictionary run_color_alg.parsed_arguments
Initial value:
1 = {"COLOR_BOUNDARIES": COLOR_BOUNDARIES, "IMG_PICK_PATH": IMG_PICK_PATH,
2  "START_FRAME_NUMBER": START_FRAME_NUMBER, "SPAN": SPAN, "MORPH_KERNEL_SIZE": MORPH_KERNEL_SIZE,
3  "ROTATE": ROTATE, "RESIZE": RESIZE, "FLIP": FLIP, "VIDEO_PATH": VIDEO_PATH, "FPS": FPS,
4  "MANUAL_FINISH": MANUAL_FINISH, "save_folder": SAVE_FOLDER}