Esempio n. 1
0
 def default_settings(config_prefix):
     config.default_settings(config_prefix, [
         config.SettingRegistry("ip", "127.0.0.1"),
         config.SettingRegistry("port", "3034"),
         config.SettingRegistry(
             "batch_size", 5, type="int", title="Inference batch size"),
     ])
Esempio n. 2
0
 def default_settings(configPrefix):
     config.default_settings(configPrefix, [
         config.SettingRegistry("enabled", False, type="bool", title="Enable data saving"),
         config.SettingRegistry("save_images", True, type="bool", title="Save image"),
         config.SettingRegistry("save_labels", True, type="bool", title="Save labels"),
         config.SettingRegistry("save_events", True, type="bool", title="Save events"),
         config.SettingRegistry("directory", "/tmp", type="str", title="Save directory")
     ])
Esempio n. 3
0
 def default_settings(config_prefix):
     if sys.platform == "linux":
         default_path = "/usr/lib/x86_64-linux-gnu/libturbojpeg.so.0"
     elif sys.platform == "win32":
         default_path = "C:\\libjpeg-turbo64\\bin\\turbojpeg.dll"
     else:
         default_path = ""
     config.default_settings(config_prefix, [
         config.SettingRegistry("turbo_jpeg_library", default_path, type="str", title="Path to TurboJPEG library"),
         config.SettingRegistry("quality", 90, type="int", title="JPEG encoding quality"),
     ])
Esempio n. 4
0
 def default_settings(configPrefix):
     config.default_settings(configPrefix, [
         config.SettingRegistry(
             "group_size", 10, type="int", title="Group size (images)"),
         config.SettingRegistry("calibration_ratio",
                                0,
                                type="float",
                                title="Length (micrometer) per pixel"),
         config.SettingRegistry(
             "crop_threshold",
             0,
             type="int",
             title="Edge cropping object threshold (pixels)")
     ])
Esempio n. 5
0
 def defaultSettings(configPrefix):
     config.default_settings(configPrefix, [
         config.SettingRegistry("cti_path",
                                "/tmp/TL.cti",
                                type="str",
                                title="Path to .cti file"),
         config.SettingRegistry("gain", 0, type="float"),
         config.SettingRegistry(
             "invert_polarity", False, type="bool",
             title="Invert polarity"),
         config.SettingRegistry(
             "id", "", type="str", title="Camera Id (use camera_id.py)"),
         config.SettingRegistry(
             "fps", 5, type="float", title="frame per second")
     ])
Esempio n. 6
0
 def default_settings(configPrefix):
     config.default_settings(configPrefix, [
         config.SettingRegistry(
             "ip", "127.0.0.1", type="str", title="Block server IP"),
         config.SettingRegistry(
             "port", 12305, type="int", title="Block server port"),
         config.SettingRegistry(
             "buffer_count",
             5,
             type="int",
             title="Image statistics averaging window size"),
         config.SettingRegistry(
             "temperature_sample_time",
             1.0,
             type="float",
             title="Temperature report sample time(sec)"),
     ])
 def default_settings(config_prefix):
     config_provider.default_settings(config_prefix, [
         config_provider.SettingRegistry(
             "bins", 30, type="int", title="Bins")
     ])
Esempio n. 8
0
 def defaultSettings(configPrefix):
     config.default_settings(configPrefix,
                             [config.SettingRegistry("source", "")])
Esempio n. 9
0
 def defaultSettings(configPrefix):
     config.default_settings(configPrefix,
                             [config.SettingRegistry("analyzer", "")])
Esempio n. 10
0
 def defaultSettings(configPrefix):
     config.default_settings(configPrefix, [
         config.SettingRegistry("fps", 5, type="int"),
     ])