MCPcopy Create free account
hub / github.com/AutonomousVehicleLaboratory/SemVecNet / get_sample_image

Function get_sample_image

tools/av2_semantic_mapping.py:70–76  ·  view source on GitHub ↗
(file_abs_path)

Source from the content-addressed store, hash-verified

68 return timestamp_dict
69
70def get_sample_image(file_abs_path):
71 image = cv2.imread(str(file_abs_path), cv2.IMREAD_COLOR)
72 if image is None:
73 print('Error: Could not read image.', file_abs_path)
74 return None
75 image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
76 return image
77
78def get_sample_lidar(file_abs_path):
79 sweep = Sweep.from_feather(file_abs_path)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected