コード例 #1
0
def test_03():
    res = dongTaiBuKong().api_v1_client_regist(
        reqId=get_uuid(),  # 必须
        deviceCode="zhuapai1",  # 必须
        areaCode="T111",  # 必须
    )
    printRes(res)
コード例 #2
0
def test_01():
    res = dongTaiBuKong().api_v1_system_device_camera_binding(
        reqId=get_uuid(),  # 必须
        cameraDeviceCode="SXTBM12",  # 必须 摄像头编码逗号隔开
        captureDeviceCode="ZPFWQ1",  # 必须 抓拍服务器编码
        optType=2  # 必须 integer 0-添加;2-删除
    )
    printRes(res)
コード例 #3
0
def test_07():
    res = dongTaiBuKong().api_v1_face_record_search_list(
        reqId=get_uuid(),  # 必须
        pageSize=10,  # 必须
        pageIndex=1,  # 必须
        isStranger=1,
    )
    printRes(res)
コード例 #4
0
def test_02():
    res = dongTaiBuKong().api_v1_system_device_binding_query(
        reqId=get_uuid(),  # 必须
        captureDeviceCode="",  # 非必须
        isCount=1,  # 必须
        pageSize=10,  # integer 必须
        pageNum=1,  # integer 必须
    )
    printRes(res)
コード例 #5
0
def test_05():
    pic_path = r"D:\workfile\zhongkeyuan_workspace\test_photoes\picture(现场照片)\144.jpg"
    res = dongTaiBuKong().api_v1_face_record_imgsearch(
        reqId=get_uuid(),  # 必须
        img=to_base64(pic_path),  # 必须 64位base图片
        startDate="20191217",  # 必须
        endDate="20191219",  # 必须
        pageNum=1,  # 必须integer
        pageSize=10,  # 必须integer
        isCount=1,  # 必须integer 为1-返回总数
    )
    printRes(res)
コード例 #6
0
def test_04():
    pic_path = r"D:\workfile\zhongkeyuan_workspace\test_photoes\picture(现场照片)\1.jpg"
    txt_path = r"D:\workfile\zhongkeyuan_workspace\test_photoes\picture2k\1.txt"
    _imageInfo = [{
        "faceImg": to_base64(pic_path),
        "faceFeature": read_feature(txt_path),
        "fId": "123213",
        "qualityScore": 19
    }]
    """人脸识别接口"""
    res = dongTaiBuKong().api_v1_face_review_check(
        reqId=get_uuid(),
        areaCode="T111",
        deviceCode="zhuapai1",
        deviceType=0,
        deviceName="抓拍服务器1",
        captureCode="zhuapai1",
        imageInfo=_imageInfo,
    )
    printRes(res)
コード例 #7
0
def test_06():
    res = dongTaiBuKong().api_v1_face_record_search_details(
        reqId=get_uuid(),  # 必须
        id="d45f9e114d4243b690729f43f4a34fda",  # 必须
    )
    printRes(res)