コード例 #1
0
def ssocr_device_5(rois):
    """
GREEN alarm radio
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-D", "-d", "-1", "-i", "3", "-n", "50", "-r", "3"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #2
0
def ssocr_device_1(rois):
    """
BASETech Room temperatur sensor
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-d", "-1", "-i", "3", "-n", "10", "-C"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #3
0
def ssocr_device_4(rois):
    """
NONAME indoor/outdoor thermometer
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-d", "-1", "-i", "1", "-n", "2", "-C"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #4
0
def ssocr_device_2(rois):
    """
ADE-Germany Humanscale
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-d", "-1", "-i", "3", "-n", "15", "-r", "4", "-C"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #5
0
def ssocr_device_10(rois):
    """
TECHNO thermometer
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-d", "-1", "-r", "6" "-C", "-c", "digits"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #6
0
def ssocr_device_13(rois):
    """
BASETECH piggybank
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = ["-D", "-r", "7", "-d", "-1", "-C", "-c", "digits"]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #7
0
def ssocr_device_9(rois):
    """
Schneider Microwave
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-d",
        "-1",
        # "-i", "3",
        # "-n", "10",
        # "-r", "7"
        "-C"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #8
0
def ssocr_device_12(rois):
    """
Bloodpressure
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        #"-D",
        "-d",
        "-1",
        #"-i", "4",
        # "-n", "10",
        "-c digits",
        "-C"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #9
0
def ssocr_device_6(rois):
    """
NONAME thermo-hygor
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-d",
        "-1",
        #"-i", "5",
        #"-n", "10",
        "-C",
        "-c",
        "digits"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #10
0
def ssocr_device_8(rois):
    """
IDR alarm-clock    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-d",
        "-1",
        # "-i", "3",
        # "-n", "10",
        "-m",
        "20",
        "-c",
        "digits"
        "-C"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #11
0
def ssocr_device_11(rois):
    """
SEVERIN Microwave
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-D",
        "-d",
        "-1",
        "-i",
        "4",
        "-n",
        "10",
        # "-m 4",
        "-C"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #12
0
def ssocr_device_7(rois):
    """
CASIO calculator MS20UC
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-D",
        "-d",
        "-1",
        "-i",
        "3",
        "-n",
        "5",
        "-r",
        "20",
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #13
0
def ssocr_device_3(rois):
    """
Beurer Humanscale
    :param rois:
    :return: call of call_ssocr with the ssocr arguments matching the device
    """
    device_ssocr_args = [
        "-d",
        "-1",
        # "-i", "3",
        # "-n", "5",
        # "-r", "800",
        "-m",
        "400"
        "-C",
        "-c",
        "digits"
    ]

    return [call_ssocr.multicall_ssocr(rois[0], device_ssocr_args), rois[1]]
コード例 #14
0
def ssocr_device_0(rois):
    """
SSOCR device speciefic function, to define the ssocr arguments
    :param rois: array of Images in CV2-MAT format
    :return: call of call_ssocr with the ssocr arguments matching the device
    """

    example_ocr = [
        "-D",
        "-d",
        "-1",
        "-i",
        "5",
        "-n",
        "20",
        "-r",
        "4",
    ]  # write the ssocr arguments in this array

    ssocr_args_list = [example_ocr]

    return [call_ssocr.multicall_ssocr(rois[0], ssocr_args_list), rois[1]]