tests.color_segmentation package¶
Submodules¶
tests.color_segmentation.manual_testing_color_seg module¶
tests.color_segmentation.test_color_seg module¶
- class TestColorSegmentation[source]¶
Bases:
object
- BITMASK_PATH: str = 'tests/resources/color_segmentation/data_source/bitmask.png'¶
- BW_IMAGE_PATH: str = 'tests/resources/color_segmentation/black_and_white_image.png'¶
- CUSTOM_CONFIG_PATH: str = 'tests/resources/configs/color-segmentation.yml'¶
- DATA_CUBE_PATH: str = 'tests/resources/color_segmentation/data_source/test_cube.dms'¶
- DATA_SOURCE = 'data_source'¶
- IMAGE_NAME = 'RGB'¶
- PATH_DATA_SOURCE: str = 'tests/resources/color_segmentation/data_source'¶
- REG_TEST_IMAGE_PATH: str = 'tests/resources/color_segmentation/data_source/registered_test_image.png'¶
- TEST_IMAGE_PATH: str = 'tests/resources/color_segmentation/data_source/test_image_cs.png'¶
- WRONG_CONFIG_PATH: str = 'tests/resources/configs/random.yml'¶
- elem_threshold: float = 0.1¶
- k: int = 2¶
- num_attempts: int = 10¶