test_tools
Classes | Functions | Variables
analyse-annotations Namespace Reference

Classes

class  BColors
 

Functions

def count_images (objects, path)
 

Variables

 common_knowledge = knowledge_loader.load_knowledge("common")
 
 objects = common_knowledge.object_names
 
 objects_set = set(objects)
 
 path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "training_data", "annotated")
 
 raw_labels_lines = tensorflow_labels_file.readlines()
 
 robot_env = os.environ.get("ROBOT_ENV")
 
list tensorflow_labels = [line.strip() for line in raw_labels_lines]
 
 tensorflow_labels_path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "models", "tensorflow_ros", "output_labels.txt")
 
 tensorflow_set = set(tensorflow_labels)
 
 tpath = os.path.join(path, v)
 

Function Documentation

◆ count_images()

def analyse-annotations.count_images (   objects,
  path 
)
Counts the images in the subdirectories of 'path'. The subdirectories are identified by the provided objects.
The results are printed to screen

:param objects: list with strings
:param path: string indicating the path

Definition at line 33 of file analyse-annotations.py.

Variable Documentation

◆ common_knowledge

analyse-annotations.common_knowledge = knowledge_loader.load_knowledge("common")

Definition at line 72 of file analyse-annotations.py.

◆ objects

analyse-annotations.objects = common_knowledge.object_names

Definition at line 73 of file analyse-annotations.py.

◆ objects_set

analyse-annotations.objects_set = set(objects)

Definition at line 74 of file analyse-annotations.py.

◆ path

analyse-annotations.path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "training_data", "annotated")

Definition at line 96 of file analyse-annotations.py.

◆ raw_labels_lines

analyse-annotations.raw_labels_lines = tensorflow_labels_file.readlines()

Definition at line 81 of file analyse-annotations.py.

◆ robot_env

analyse-annotations.robot_env = os.environ.get("ROBOT_ENV")

Definition at line 77 of file analyse-annotations.py.

◆ tensorflow_labels

list analyse-annotations.tensorflow_labels = [line.strip() for line in raw_labels_lines]

Definition at line 82 of file analyse-annotations.py.

◆ tensorflow_labels_path

analyse-annotations.tensorflow_labels_path = os.path.join(os.path.expanduser("~"), "MEGA", "data", robot_env, "models", "tensorflow_ros", "output_labels.txt")

Definition at line 79 of file analyse-annotations.py.

◆ tensorflow_set

analyse-annotations.tensorflow_set = set(tensorflow_labels)

Definition at line 83 of file analyse-annotations.py.

◆ tpath

analyse-annotations.tpath = os.path.join(path, v)

Definition at line 100 of file analyse-annotations.py.