Code: Select all
Jul 01 2021 12:41:56.718392 [DBG 1] Hashes are correct: password matched
Jul 01 2021 12:41:56.723684 [DBG 1] Monitor ID not specified, or not found in mlapi config, using zm_detect overrides
Jul 01 2021 12:41:56.723747 [DBG 2] using ml_sequence
Jul 01 2021 12:41:56.724581 [DBG 2] Found stream_sequence in mlapi config, ignoring objectconfig.ini
Jul 01 2021 12:41:56.724630 [DBG 1] Object Recognition requested
Jul 01 2021 12:41:56.724638 [DBG 1] Calling detect streams
Jul 01 2021 12:41:56.724651 [DBG 3] Using manual locking as we are only using one model
Jul 01 2021 12:41:56.724783 [DBG 2] Media get SSL certificate check has been disbled
Jul 01 2021 12:41:56.724838 [DBG 2] Using URL 34373 for stream
Jul 01 2021 12:41:56.724865 [DBG 2] We will only process frames: ['alarm', 'snapshot']
Jul 01 2021 12:41:56.724873 [DBG 2] No need to start streams, we are picking images from http://xxxxxxxxxxx/zm/index.php?view=image&eid=34373
Jul 01 2021 12:41:56.724895 [DBG 3] Reading http://xxxxxxxxxxx/zm/index.php?view=image&eid=34373&fid=alarm
Jul 01 2021 12:41:56.724924 [DBG 3] No need to relogin as access token still has 119.43901405 minutes remaining
Jul 01 2021 12:41:56.724944 [DBG 3] make_request called with url=http://xxxxxxxxxxx/zm/index.php?view=image&eid=34373&fid=alarm payload={} type=get query={'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNjI1MTA3MjgzLCJleHAiOjE2MjUxMTQ0ODMsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.zx5bZTfpw9YATvHs6z2ks7lpWQDfbrbz2-kq9zy32U4'}
Jul 01 2021 12:41:56.900334 [DBG 1] perf: Starting for frame:alarm
Jul 01 2021 12:41:56.900545 [DBG 1] Sequence of detection types to execute: ['object']
Jul 01 2021 12:41:56.900821 [DBG 1] ============ Frame: alarm Running object detection type in sequence ==================
Jul 01 2021 12:41:56.901869 [DBG 2] Loading sequence: TPU object detection
Jul 01 2021 12:41:56.901955 [DBG 2] Initializing model type:object with options:{'name': 'TPU object detection', 'enabled': 'yes', 'object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite', 'object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'object_min_confidence': 0.6, 'object_framework': 'coral_edgetpu', 'tpu_max_processes': 1, 'tpu_max_lock_wait': 120, 'max_detection_size': '100%', 'show_models': 'yes', 'disable_locks': 'no'}
Jul 01 2021 12:41:56.918571 [DBG 2] portalock: max:1, name:pyzm_uid0_tpu_lock, timeout:120
Jul 01 2021 12:41:56.918754 [DBG 2] Loading sequence: YoloV4 GPU/CPU
Jul 01 2021 12:41:56.918800 [DBG 2] Initializing model type:object with options:{'name': 'YoloV4 GPU/CPU', 'enabled': 'yes', 'object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'object_min_confidence': 0.3, 'object_framework': 'opencv', 'object_processor': 'cpu', 'gpu_max_processes': 1, 'gpu_max_lock_wait': 120, 'cpu_max_processes': 2, 'cpu_max_lock_wait': 120, 'max_detection_size': '100%', 'show_models': 'yes', 'disable_locks': 'no'}
Jul 01 2021 12:41:56.919456 [DBG 2] portalock: max:2, name:pyzm_uid0_cpu_lock, timeout:120
Jul 01 2021 12:41:56.919521 [DBG 2] Waiting for pyzm_uid0_tpu_lock portalock...
Jul 01 2021 12:41:56.919814 [DBG 2] Got pyzm_uid0_tpu_lock portalock
Jul 01 2021 12:41:56.919839 [DBG 2] Waiting for pyzm_uid0_cpu_lock portalock...
Jul 01 2021 12:41:56.919947 [DBG 2] Got pyzm_uid0_cpu_lock portalock
Jul 01 2021 12:41:56.919970 [DBG 3] object has a same_model_sequence strategy of first
Jul 01 2021 12:41:56.919987 [DBG 3] --------- Frame:alarm Running variation: #1 -------------
Jul 01 2021 12:41:56.921862 [DBG 2] pyzm_uid0_tpu_lock portalock already acquired
Jul 01 2021 12:41:56.921919 [DBG 1] |--------- Loading "TPU object detection" model from disk -------------|
Jul 01 2021 12:41:59.611123 [DBG 1] perf: processor:tpu TPU initialization (loading /var/lib/zmeventnotification/models/coral_edgetpu/ssdlite_mobiledet_coco_qat_postprocess_edgetpu.tflite from disk) took: 2689.15 ms
Jul 01 2021 12:41:59.611221 [DBG 1] |---------- TPU (input image: 800w*450h) ----------|
Jul 01 2021 12:41:59.647217 [DBG 2] Released portalock pyzm_uid0_tpu_lock
Jul 01 2021 12:41:59.647296 [DBG 1] perf: processor:tpu Coral TPU detection took: 35.90 ms
Jul 01 2021 12:41:59.647346 [DBG 3] Coral object returning: [[326, 9, 408, 53]],['car'],[0.6171875]
Jul 01 2021 12:41:59.647563 [DBG 2] core model detection over, got 1 objects. Now filtering
Jul 01 2021 12:41:59.647595 [DBG 2] Max object size found to be: 100%
Jul 01 2021 12:41:59.648006 [DBG 2] Converted 100% to 360000.0
Jul 01 2021 12:41:59.648043 [DBG 2] Returning filtered list of 1 objects.
Jul 01 2021 12:41:59.648071 [DBG 2] This model iteration inside object found: labels: ['car'],conf:[0.6171875]
Jul 01 2021 12:41:59.648097 [DBG 2] Max object size found to be: 100%
Jul 01 2021 12:41:59.648127 [DBG 2] Converted 100% to 360000.0
Jul 01 2021 12:41:59.648161 [DBG 2] No polygons, adding full image polygon: {'name': 'full_image', 'value': [(0, 0), (640, 0), (640, 360), (0, 360)], 'pattern': None}
Jul 01 2021 12:41:59.648203 [DBG 3] resized polygons x=1.25/y=1.25: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]
Jul 01 2021 12:41:59.648641 [DBG 2] intersection: comparing object:car,POLYGON ((326 9, 408 9, 408 53, 326 53, 326 9)) to polygon:full_image,POLYGON ((0 0, 800 0, 800 450, 0 450, 0 0))
Jul 01 2021 12:41:59.648734 [DBG 2] Match pattern overridden to (person|car|motorbike|bus|truck|cat|dog) in ml_overrides
Jul 01 2021 12:41:59.649094 [DBG 2] full_image intersects object:car[[(326, 9), (408, 9), (408, 53), (326, 53)]]
Jul 01 2021 12:41:59.649145 [DBG 2] breaking out of same model loop, as matches found and strategy is "first"
Jul 01 2021 12:41:59.649481 [DBG 3] Reading http://xxxxxxxxxxx/zm/index.php?view=image&eid=34373&fid=snapshot
Jul 01 2021 12:41:59.649532 [DBG 3] No need to relogin as access token still has 119.39027066666667 minutes remaining
Jul 01 2021 12:41:59.649574 [DBG 3] make_request called with url=http://xxxxxxxxxxx/zm/index.php?view=image&eid=34373&fid=snapshot payload={} type=get query={'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJab25lTWluZGVyIiwiaWF0IjoxNjI1MTA3MjgzLCJleHAiOjE2MjUxMTQ0ODMsInVzZXIiOiJhZG1pbiIsInR5cGUiOiJhY2Nlc3MifQ.zx5bZTfpw9YATvHs6z2ks7lpWQDfbrbz2-kq9zy32U4'}
Jul 01 2021 12:41:59.695084 [DBG 1] perf: Starting for frame:snapshot
Jul 01 2021 12:41:59.695176 [DBG 1] Sequence of detection types to execute: ['object']
Jul 01 2021 12:41:59.695203 [DBG 1] ============ Frame: snapshot Running object detection type in sequence ==================
Jul 01 2021 12:41:59.695228 [DBG 3] object has a same_model_sequence strategy of first
Jul 01 2021 12:41:59.695247 [DBG 3] --------- Frame:snapshot Running variation: #1 -------------
Jul 01 2021 12:41:59.698239 [DBG 2] Waiting for pyzm_uid0_tpu_lock portalock...
Jul 01 2021 12:41:59.698568 [DBG 2] Got pyzm_uid0_tpu_lock portalock
Jul 01 2021 12:41:59.698604 [DBG 1] |---------- TPU (input image: 800w*450h) ----------|
Jul 01 2021 12:41:59.722657 [DBG 2] Released portalock pyzm_uid0_tpu_lock
Jul 01 2021 12:41:59.722716 [DBG 1] perf: processor:tpu Coral TPU detection took: 23.97 ms
Jul 01 2021 12:41:59.722747 [DBG 3] Coral object returning: [[326, 8, 408, 52]],['car'],[0.62890625]
Jul 01 2021 12:41:59.723017 [DBG 2] core model detection over, got 1 objects. Now filtering
Jul 01 2021 12:41:59.723036 [DBG 2] Max object size found to be: 100%
Jul 01 2021 12:41:59.723072 [DBG 2] Converted 100% to 360000.0
Jul 01 2021 12:41:59.723094 [DBG 2] Returning filtered list of 1 objects.
Jul 01 2021 12:41:59.723114 [DBG 2] This model iteration inside object found: labels: ['car'],conf:[0.62890625]
Jul 01 2021 12:41:59.723142 [DBG 2] Max object size found to be: 100%
Jul 01 2021 12:41:59.723182 [DBG 2] Converted 100% to 360000.0
Jul 01 2021 12:41:59.723510 [DBG 2] intersection: comparing object:car,POLYGON ((326 8, 408 8, 408 52, 326 52, 326 8)) to polygon:full_image,POLYGON ((0 0, 800 0, 800 450, 0 450, 0 0))
Jul 01 2021 12:41:59.723560 [DBG 2] Match pattern overridden to (person|car|motorbike|bus|truck|cat|dog) in ml_overrides
Jul 01 2021 12:41:59.723591 [DBG 2] full_image intersects object:car[[(326, 8), (408, 8), (408, 52), (326, 52)]]
Jul 01 2021 12:41:59.723619 [DBG 2] breaking out of same model loop, as matches found and strategy is "first"
Jul 01 2021 12:41:59.724111 [DBG 2] pyzm_uid0_tpu_lock portalock already released
Jul 01 2021 12:41:59.724184 [DBG 2] Released pyzm_uid0_cpu_lock portalock
Jul 01 2021 12:41:59.724215 [DBG 1] perf: TOTAL detection sequence (with image loads) took: 2999.54 ms to process 34373
Jul 01 2021 12:41:59.724516 [DBG 1] Returning {'matched_data': {'boxes': [[326, 9, 408, 53]], 'error_boxes': [], 'labels': ['car'], 'confidences': [0.6171875], 'frame_id': 'alarm', 'model_names': ['coral'], 'image_dimensions': {'original': (360, 640), 'resized': (450, 800)}, 'image': None, 'polygons': [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]}, 'all_matches': [{'frame_id': 'alarm', 'boxes': [[326, 9, 408, 53]], 'error_boxes': [], 'labels': ['car'], 'confidences': [0.6171875], 'detection_types': ['object'], 'model_names': ['coral']}, {'frame_id': 'snapshot', 'boxes': [[326, 8, 408, 52]], 'error_boxes': [], 'labels': ['car'], 'confidences': [0.62890625], 'detection_types': ['object'], 'model_names': ['coral']}]}