I maintain a docker-compose stack that runs ZoneMinder and Event Notification Server in a container on a Jetson Nano. I'm testing with 3 RTSP cameras at 4fps x 720p.
The issue I'm having is the gpu lock appears to get stuck when running basic object (no face or alpr) detection via tinyyolov4
and I've opened this issue against my repo for tracking:
On startup, the first 1 or 2 events are processed correctly and shows detected objects and boxed images in ZM and all of that. So know the basic gpu detection is working. However following the first couple events, most if not all future events are not processed and I receive fatal logs Timeout waiting for gpu lock for 100 seconds
. I also see some CUBLAS_STATUS_NOT_INITIALIZED
errors but I don't know if they are related and they only happen on first startup.
OpenCV seems to be correctly compiled for the platform with CUDA and CUDNN, I've tried compiling it myself and using alwaysai/edgeiq
base images with the same result.
root@3ac69193ff00:/var/log/zm# more zmesdetect_m1.log
12/29/20 11:34:25 zmesdetect_m1[153] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:34:25 zmesdetect_m1[153] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:34:25 zmesdetect_m1[153] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:34:25 zmesdetect_m1[153] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:34:25 zmesdetect_m1[153] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:34:25 zmesdetect_m1[153] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:34:25 zmesdetect_m1[153] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:34:25 zmesdetect_m1[153] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=886&fid=alarm&username=admin&password=*****]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=886&fid=snapshot&username=admin&password=*****]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:34:26 zmesdetect_m1[153] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/886-alarm.jpg]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.271814]
12/29/20 11:34:26 zmesdetect_m1[153] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:34:26 zmesdetect_m1[153] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:34:26 zmesdetect_m1[153] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:34:37 zmesdetect_m1[153] DBG2 yolo.py:61 [Released lock]
12/29/20 11:34:37 zmesdetect_m1[153] DBG2 yolo.py:153 [detect lock released]
12/29/20 11:34:37 zmesdetect_m1[153] DBG1 yolo.py:156 [YOLO detection took: 0:00:10.821964 milliseconds]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 yolo.py:190 [YOLO NMS filtering took: 0:00:00.000979]
12/29/20 11:34:38 zmesdetect_m1[153] DBG3 object.py:55 [core model detection over, got 9 objects. Now filtering]
12/29/20 11:34:38 zmesdetect_m1[153] DBG3 object.py:59 [Max object size found to be: 90%]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 object.py:67 [Converted 90% to 324000.0]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 object.py:88 [Ignoring chair [89, 344, 209, 448] as conf. level 0.2591783404350281 is lower than 0.3]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 object.py:90 [Returning filtered list of 8 objects.]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(388, 2), (458, 2), (458, 84), (388, 84)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(388, 2), (458, 2), (458, 84), (388, 84)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(527, 158), (725, 158), (725, 446), (527, 446)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:person[[(527, 158), (725, 158), (725, 446), (527, 446)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(372, 194), (472, 194), (472, 348), (372, 348)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:chair[[(372, 194), (472, 194), (472, 348), (372, 348)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(640, 50), (684, 50), (684, 138), (640, 138)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:pottedplant[[(640, 50), (684, 50), (684, 138), (640, 138)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(510, 51), (592, 51), (592, 109), (510, 109)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(510, 51), (592, 51), (592, 109), (510, 109)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(570, 134), (688, 134), (688, 256), (570, 256)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:chair[[(570, 134), (688, 134), (688, 256), (570, 256)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(73, 262), (497, 262), (497, 454), (73, 454)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:diningtable[[(73, 262), (497, 262), (497, 454), (73, 454)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:294 [intersection: polygon in process=[(212, 295), (250, 295), (250, 319), (212, 319)]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 image_manip.py:308 [full_image intersects object:bowl[[(212, 295), (250, 295), (250, 319), (212, 319)]]]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 zm_detect.py:618 [ALPR not in use, no need for look aheads in processing]
12/29/20 11:34:38 zmesdetect_m1[153] INF zm_detect.py:635 [labels found: ['tvmonitor', 'person', 'chair', 'pottedplant', 'tvmonitor', 'chair', 'diningtable', 'bowl']]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 zm_detect.py:638 [match found in /var/lib/zmeventnotification/images/886-alarm.jpg, breaking file loop...]
12/29/20 11:34:38 zmesdetect_m1[153] DBG2 zm_detect.py:703 [Drawing boxes around objects]
12/29/20 11:34:38 zmesdetect_m1[153] DBG1 zm_detect.py:728 [Writing detected image to /var/cache/zoneminder/events/1/2020-12-29/886/objdetect.jpg]
12/29/20 11:34:38 zmesdetect_m1[153] DBG1 zm_detect.py:732 [Writing JSON output to /var/cache/zoneminder/events/1/2020-12-29/886/objects.json]
12/29/20 11:34:38 zmesdetect_m1[153] INF zm_detect.py:784 [Prediction string:[a] detected:tvmonitor:91% person:87% chair:80% pottedplant:65% diningtable:40% bowl:33% ]
12/29/20 11:34:38 zmesdetect_m1[153] DBG1 zm_detect.py:787 [Prediction string JSON:[{"type": "object", "label": "tvmonitor", "box": [388, 2, 458, 84], "confidence": "91.12%"}, {"type": "object", "label
": "person", "box": [527, 158, 725, 446], "confidence": "86.71%"}, {"type": "object", "label": "chair", "box": [372, 194, 472, 348], "confidence": "79.73%"}, {"type": "object", "label": "pottedplant",
"box": [640, 50, 684, 138], "confidence": "64.56%"}, {"type": "object", "label": "tvmonitor", "box": [510, 51, 592, 109], "confidence": "64.55%"}, {"type": "object", "label": "chair", "box": [570, 134,
688, 256], "confidence": "58.50%"}, {"type": "object", "label": "diningtable", "box": [73, 262, 497, 454], "confidence": "39.99%"}, {"type": "object", "label": "bowl", "box": [212, 295, 250, 319], "co
nfidence": "32.81%"}]]
12/29/20 11:36:00 zmesdetect_m1[248] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:36:01 zmesdetect_m1[248] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:36:01 zmesdetect_m1[248] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:36:01 zmesdetect_m1[248] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=887&fid=alarm&username=admin&password=*****]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=887&fid=snapshot&username=admin&password=*****]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:36:01 zmesdetect_m1[248] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/887-alarm.jpg]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.029805]
12/29/20 11:36:01 zmesdetect_m1[248] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:36:01 zmesdetect_m1[248] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:36:01 zmesdetect_m1[248] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:36:05 zmesdetect_m1[248] FAT zm_detect.py:860 [Unrecoverable error:OpenCV(4.4.0) /opencv-build/build/opencv-4.4.0/modules/dnn/src/cuda4dnn/csl/cublas.hpp:78: error: (-217:Gpu API call) CUBL
AS_STATUS_NOT_INITIALIZED in function 'UniqueHandle'
Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 857, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 432, in main_handler
b, l, c = m.detect(original_image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/object.py", line 54, in detect
b,l,c = self.model.detect(image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 149, in detect
outs = self.net.forward(ln)
cv2.error: OpenCV(4.4.0) /opencv-build/build/opencv-4.4.0/modules/dnn/src/cuda4dnn/csl/cublas.hpp:78: error: (-217:Gpu API call) CUBLAS_STATUS_NOT_INITIALIZED in function 'UniqueHandle'
]
12/29/20 11:37:00 zmesdetect_m1[307] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:37:01 zmesdetect_m1[307] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:37:01 zmesdetect_m1[307] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:37:01 zmesdetect_m1[307] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=888&fid=alarm&username=admin&password=*****]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=888&fid=snapshot&username=admin&password=*****]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:37:01 zmesdetect_m1[307] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/888-alarm.jpg]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.035648]
12/29/20 11:37:01 zmesdetect_m1[307] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:37:01 zmesdetect_m1[307] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:37:01 zmesdetect_m1[307] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 yolo.py:61 [Released lock]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 yolo.py:153 [detect lock released]
12/29/20 11:37:05 zmesdetect_m1[307] DBG1 yolo.py:156 [YOLO detection took: 0:00:03.795119 milliseconds]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 yolo.py:190 [YOLO NMS filtering took: 0:00:00.000881]
12/29/20 11:37:05 zmesdetect_m1[307] DBG3 object.py:55 [core model detection over, got 9 objects. Now filtering]
12/29/20 11:37:05 zmesdetect_m1[307] DBG3 object.py:59 [Max object size found to be: 90%]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 object.py:67 [Converted 90% to 324000.0]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 object.py:90 [Returning filtered list of 9 objects.]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(388, 1), (458, 1), (458, 87), (388, 87)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(388, 1), (458, 1), (458, 87), (388, 87)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(373, 191), (469, 191), (469, 351), (373, 351)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:chair[[(373, 191), (469, 191), (469, 351), (373, 351)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(520, 248), (732, 248), (732, 452), (520, 452)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:person[[(520, 248), (732, 248), (732, 452), (520, 452)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(509, 52), (591, 52), (591, 108), (509, 108)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(509, 52), (591, 52), (591, 108), (509, 108)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(576, 136), (672, 136), (672, 266), (576, 266)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:chair[[(576, 136), (672, 136), (672, 266), (576, 266)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(642, 48), (682, 48), (682, 140), (642, 140)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:pottedplant[[(642, 48), (682, 48), (682, 140), (642, 140)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(92, 342), (216, 342), (216, 448), (92, 448)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:chair[[(92, 342), (216, 342), (216, 448), (92, 448)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(75, 266), (495, 266), (495, 452), (75, 452)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:diningtable[[(75, 266), (495, 266), (495, 452), (75, 452)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:294 [intersection: polygon in process=[(210, 296), (250, 296), (250, 318), (210, 318)]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 image_manip.py:308 [full_image intersects object:bowl[[(210, 296), (250, 296), (250, 318), (210, 318)]]]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 zm_detect.py:618 [ALPR not in use, no need for look aheads in processing]
12/29/20 11:37:05 zmesdetect_m1[307] INF zm_detect.py:635 [labels found: ['tvmonitor', 'chair', 'person', 'tvmonitor', 'chair', 'pottedplant', 'chair', 'diningtable', 'bowl']]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 zm_detect.py:638 [match found in /var/lib/zmeventnotification/images/888-alarm.jpg, breaking file loop...]
12/29/20 11:37:05 zmesdetect_m1[307] DBG2 zm_detect.py:703 [Drawing boxes around objects]
12/29/20 11:37:05 zmesdetect_m1[307] DBG1 zm_detect.py:728 [Writing detected image to /var/cache/zoneminder/events/1/2020-12-29/888/objdetect.jpg]
12/29/20 11:37:05 zmesdetect_m1[307] DBG1 zm_detect.py:732 [Writing JSON output to /var/cache/zoneminder/events/1/2020-12-29/888/objects.json]
12/29/20 11:37:05 zmesdetect_m1[307] INF zm_detect.py:784 [Prediction string:[a] detected:tvmonitor:90% chair:88% person:72% pottedplant:53% diningtable:43% bowl:37% ]
12/29/20 11:37:05 zmesdetect_m1[307] DBG1 zm_detect.py:787 [Prediction string JSON:[{"type": "object", "label": "tvmonitor", "box": [388, 1, 458, 87], "confidence": "89.50%"}, {"type": "object", "label
": "chair", "box": [373, 191, 469, 351], "confidence": "88.35%"}, {"type": "object", "label": "person", "box": [520, 248, 732, 452], "confidence": "72.38%"}, {"type": "object", "label": "tvmonitor", "b
ox": [509, 52, 591, 108], "confidence": "66.28%"}, {"type": "object", "label": "chair", "box": [576, 136, 672, 266], "confidence": "64.83%"}, {"type": "object", "label": "pottedplant", "box": [642, 48,
682, 140], "confidence": "52.99%"}, {"type": "object", "label": "chair", "box": [92, 342, 216, 448], "confidence": "49.84%"}, {"type": "object", "label": "diningtable", "box": [75, 266, 495, 452], "co
nfidence": "43.46%"}, {"type": "object", "label": "bowl", "box": [210, 296, 250, 318], "confidence": "37.20%"}]]
12/29/20 11:37:26 zmesdetect_m1[348] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:37:26 zmesdetect_m1[348] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:37:26 zmesdetect_m1[348] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:37:26 zmesdetect_m1[348] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=889&fid=alarm&username=admin&password=*****]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=889&fid=snapshot&username=admin&password=*****]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:37:26 zmesdetect_m1[348] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/889-alarm.jpg]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.033018]
12/29/20 11:37:26 zmesdetect_m1[348] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:37:26 zmesdetect_m1[348] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:37:26 zmesdetect_m1[348] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 yolo.py:61 [Released lock]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 yolo.py:153 [detect lock released]
12/29/20 11:37:30 zmesdetect_m1[348] DBG1 yolo.py:156 [YOLO detection took: 0:00:03.470702 milliseconds]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 yolo.py:190 [YOLO NMS filtering took: 0:00:00.001017]
12/29/20 11:37:30 zmesdetect_m1[348] DBG3 object.py:55 [core model detection over, got 9 objects. Now filtering]
12/29/20 11:37:30 zmesdetect_m1[348] DBG3 object.py:59 [Max object size found to be: 90%]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 object.py:67 [Converted 90% to 324000.0]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 object.py:88 [Ignoring book [612, 404, 698, 450] as conf. level 0.21228188276290894 is lower than 0.3]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 object.py:90 [Returning filtered list of 8 objects.]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(374, 191), (468, 191), (468, 353), (374, 353)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:chair[[(374, 191), (468, 191), (468, 353), (374, 353)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(389, 2), (459, 2), (459, 84), (389, 84)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(389, 2), (459, 2), (459, 84), (389, 84)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(524, 223), (692, 223), (692, 457), (524, 457)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:person[[(524, 223), (692, 223), (692, 457), (524, 457)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(508, 52), (592, 52), (592, 108), (508, 108)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:tvmonitor[[(508, 52), (592, 52), (592, 108), (508, 108)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(88, 344), (212, 344), (212, 448), (88, 448)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:chair[[(88, 344), (212, 344), (212, 448), (88, 448)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(639, 47), (683, 47), (683, 139), (639, 139)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:pottedplant[[(639, 47), (683, 47), (683, 139), (639, 139)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(72, 268), (500, 268), (500, 452), (72, 452)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:diningtable[[(72, 268), (500, 268), (500, 452), (72, 452)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:294 [intersection: polygon in process=[(212, 296), (250, 296), (250, 318), (212, 318)]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 image_manip.py:308 [full_image intersects object:bowl[[(212, 296), (250, 296), (250, 318), (212, 318)]]]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 zm_detect.py:618 [ALPR not in use, no need for look aheads in processing]
12/29/20 11:37:30 zmesdetect_m1[348] INF zm_detect.py:635 [labels found: ['chair', 'tvmonitor', 'person', 'tvmonitor', 'chair', 'pottedplant', 'diningtable', 'bowl']]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 zm_detect.py:638 [match found in /var/lib/zmeventnotification/images/889-alarm.jpg, breaking file loop...]
12/29/20 11:37:30 zmesdetect_m1[348] DBG2 zm_detect.py:703 [Drawing boxes around objects]
12/29/20 11:37:30 zmesdetect_m1[348] DBG1 zm_detect.py:728 [Writing detected image to /var/cache/zoneminder/events/1/2020-12-29/889/objdetect.jpg]
12/29/20 11:37:30 zmesdetect_m1[348] DBG1 zm_detect.py:732 [Writing JSON output to /var/cache/zoneminder/events/1/2020-12-29/889/objects.json]
12/29/20 11:37:30 zmesdetect_m1[348] INF zm_detect.py:784 [Prediction string:[a] detected:chair:90% tvmonitor:82% person:80% pottedplant:57% diningtable:47% bowl:33% ]
12/29/20 11:37:30 zmesdetect_m1[348] DBG1 zm_detect.py:787 [Prediction string JSON:[{"type": "object", "label": "chair", "box": [374, 191, 468, 353], "confidence": "90.26%"}, {"type": "object", "label"
: "tvmonitor", "box": [389, 2, 459, 84], "confidence": "81.72%"}, {"type": "object", "label": "person", "box": [524, 223, 692, 457], "confidence": "79.69%"}, {"type": "object", "label": "tvmonitor", "b
ox": [508, 52, 592, 108], "confidence": "71.82%"}, {"type": "object", "label": "chair", "box": [88, 344, 212, 448], "confidence": "58.76%"}, {"type": "object", "label": "pottedplant", "box": [639, 47,
683, 139], "confidence": "56.52%"}, {"type": "object", "label": "diningtable", "box": [72, 268, 500, 452], "confidence": "46.97%"}, {"type": "object", "label": "bowl", "box": [212, 296, 250, 318], "con
fidence": "32.56%"}]]
12/29/20 11:37:45 zmesdetect_m1[399] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:37:46 zmesdetect_m1[399] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:37:46 zmesdetect_m1[399] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:37:46 zmesdetect_m1[399] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=890&fid=alarm&username=admin&password=*****]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=890&fid=snapshot&username=admin&password=*****]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:37:46 zmesdetect_m1[399] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/890-alarm.jpg]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.033025]
12/29/20 11:37:46 zmesdetect_m1[399] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:37:46 zmesdetect_m1[399] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:37:46 zmesdetect_m1[399] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:37:51 zmesdetect_m1[399] FAT zm_detect.py:860 [Unrecoverable error:OpenCV(4.4.0) /opencv-build/build/opencv-4.4.0/modules/dnn/src/cuda4dnn/csl/cublas.hpp:78: error: (-217:Gpu API call) CUBL
AS_STATUS_NOT_INITIALIZED in function 'UniqueHandle'
Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 857, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 432, in main_handler
b, l, c = m.detect(original_image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/object.py", line 54, in detect
b,l,c = self.model.detect(image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 149, in detect
outs = self.net.forward(ln)
cv2.error: OpenCV(4.4.0) /opencv-build/build/opencv-4.4.0/modules/dnn/src/cuda4dnn/csl/cublas.hpp:78: error: (-217:Gpu API call) CUBLAS_STATUS_NOT_INITIALIZED in function 'UniqueHandle'
]
12/29/20 11:37:56 zmesdetect_m1[420] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:37:56 zmesdetect_m1[420] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:37:56 zmesdetect_m1[420] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:37:56 zmesdetect_m1[420] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=891&fid=alarm&username=admin&password=*****]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=891&fid=snapshot&username=admin&password=*****]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:37:56 zmesdetect_m1[420] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/891-alarm.jpg]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 yolo.py:47 [Got gpu lock ..]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 yolo.py:74 [|--------- Loading Yolo model from disk ---------|]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 yolo.py:82 [Yolo initialization (loading model from disk) took: 0:00:00.034711]
12/29/20 11:37:56 zmesdetect_m1[420] DBG2 yolo.py:96 [Setting CUDA backend for OpenCV]
12/29/20 11:37:56 zmesdetect_m1[420] DBG3 yolo.py:97 [If you did not set your CUDA_ARCH_BIN correctly during OpenCV compilation, you will get errors during detection related to invalid device/make_poli
cy]
12/29/20 11:37:56 zmesdetect_m1[420] DBG1 yolo.py:135 [|---------- YOLO (input image: 800w*450h, model resize dimensions: 416w*416h) ----------|]
12/29/20 11:38:10 zmesdetect_m1[462] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:38:10 zmesdetect_m1[462] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:38:10 zmesdetect_m1[462] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:38:10 zmesdetect_m1[462] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:38:10 zmesdetect_m1[462] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:38:10 zmesdetect_m1[462] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:38:10 zmesdetect_m1[462] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:38:10 zmesdetect_m1[462] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=892&fid=alarm&username=admin&password=*****]
12/29/20 11:38:10 zmesdetect_m1[462] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=892&fid=snapshot&username=admin&password=*****]
12/29/20 11:38:11 zmesdetect_m1[462] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:38:11 zmesdetect_m1[462] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:38:11 zmesdetect_m1[462] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:38:11 zmesdetect_m1[462] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:38:11 zmesdetect_m1[462] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:38:11 zmesdetect_m1[462] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:38:11 zmesdetect_m1[462] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:38:11 zmesdetect_m1[462] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/892-alarm.jpg]
12/29/20 11:38:11 zmesdetect_m1[462] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:38:45 zmesdetect_m1[502] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:38:45 zmesdetect_m1[502] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:38:45 zmesdetect_m1[502] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:38:45 zmesdetect_m1[502] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:38:45 zmesdetect_m1[502] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:38:45 zmesdetect_m1[502] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:38:45 zmesdetect_m1[502] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:38:45 zmesdetect_m1[502] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=893&fid=alarm&username=admin&password=*****]
12/29/20 11:38:46 zmesdetect_m1[502] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=893&fid=snapshot&username=admin&password=*****]
12/29/20 11:38:46 zmesdetect_m1[502] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:38:46 zmesdetect_m1[502] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:38:46 zmesdetect_m1[502] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:38:46 zmesdetect_m1[502] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:38:46 zmesdetect_m1[502] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:38:46 zmesdetect_m1[502] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:38:46 zmesdetect_m1[502] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:38:46 zmesdetect_m1[502] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/893-alarm.jpg]
12/29/20 11:38:46 zmesdetect_m1[502] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:39:05 zmesdetect_m1[540] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:39:05 zmesdetect_m1[540] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:39:05 zmesdetect_m1[540] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:39:05 zmesdetect_m1[540] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:39:05 zmesdetect_m1[540] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:39:05 zmesdetect_m1[540] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:39:05 zmesdetect_m1[540] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:39:05 zmesdetect_m1[540] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=894&fid=alarm&username=admin&password=*****]
12/29/20 11:39:05 zmesdetect_m1[540] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=894&fid=snapshot&username=admin&password=*****]
12/29/20 11:39:06 zmesdetect_m1[540] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:39:06 zmesdetect_m1[540] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:39:06 zmesdetect_m1[540] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:39:06 zmesdetect_m1[540] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:39:06 zmesdetect_m1[540] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:39:06 zmesdetect_m1[540] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:39:06 zmesdetect_m1[540] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:39:06 zmesdetect_m1[540] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/894-alarm.jpg]
12/29/20 11:39:06 zmesdetect_m1[540] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:39:30 zmesdetect_m1[562] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:39:30 zmesdetect_m1[562] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:39:30 zmesdetect_m1[562] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:39:30 zmesdetect_m1[562] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:39:30 zmesdetect_m1[562] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:39:30 zmesdetect_m1[562] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:39:30 zmesdetect_m1[562] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:39:30 zmesdetect_m1[562] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=895&fid=alarm&username=admin&password=*****]
12/29/20 11:39:31 zmesdetect_m1[562] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=895&fid=snapshot&username=admin&password=*****]
12/29/20 11:39:31 zmesdetect_m1[562] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:39:31 zmesdetect_m1[562] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:39:31 zmesdetect_m1[562] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:39:31 zmesdetect_m1[562] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:39:31 zmesdetect_m1[562] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:39:31 zmesdetect_m1[562] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:39:31 zmesdetect_m1[562] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:39:31 zmesdetect_m1[562] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/895-alarm.jpg]
12/29/20 11:39:31 zmesdetect_m1[562] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:39:40 zmesdetect_m1[604] INF zm_detect.py:208 [---------| pyzm version:0.3.8, hook version:6.0.7, ES version:6.0.7 , OpenCV version:4.4.0|------------]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 utils.py:405 [secret filename: /etc/zm/secrets.ini]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ZM_PORTAL]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ZM_USER]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ZM_PASSWORD]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ZM_API_PORTAL]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ML_USER]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !ML_PASSWORD]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:378 [Secret token found in config: !PLATEREC_ALPR_KEY]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 utils.py:440 [allowing self-signed certs to work...]
12/29/20 11:39:41 zmesdetect_m1[604] DBG4 utils.py:450 [Now checking for monitor overrides]
12/29/20 11:39:41 zmesdetect_m1[604] DBG4 utils.py:513 [Finally, doing parameter substitution]
12/29/20 11:39:41 zmesdetect_m1[604] INF zm_detect.py:234 [Importing local classes for Object/Face]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 utils.py:280 [Trying to download http://localhost/zm/index.php?view=image&eid=896&fid=alarm&username=admin&password=*****]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 utils.py:299 [Trying to download http://localhost/zm/index.php?view=image&eid=896&fid=snapshot&username=admin&password=*****]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 zm_detect.py:295 [No polygon area specfied, so adding a full image polygon:[{'name': 'full_image', 'value': [(0, 0), (1280, 0), (1280, 720), (0, 720)], 'patter
n': None}]]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 zm_detect.py:298 [resizing to 800 before analysis...]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 utils.py:138 [resized polygons x=0.625/y=0.625: [{'name': 'full_image', 'value': [(0, 0), (800, 0), (800, 450), (0, 450)], 'pattern': None}]]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 zm_detect.py:319 [User ALPR if vehicle found: False]
12/29/20 11:39:41 zmesdetect_m1[604] DBG4 yolo.py:26 [Yolo init params: {'pyzm_overrides': {'log_level_debug': 5}, 'secrets': '/etc/zm/secrets.ini', 'version': '1.2', 'cpu_max_processes': 3, 'gpu_max_p
rocesses': 1, 'tpu_max_processes': 1, 'cpu_max_lock_wait': 100, 'gpu_max_lock_wait': 100, 'tpu_max_lock_wait': 100, 'base_data_path': '/var/lib/zmeventnotification', 'portal': 'http://localhost/zm', 'a
pi_portal': 'http://localhost/zm/api', 'user': 'admin', 'password': 'plexnchi11', 'basic_user': '', 'basic_password': '', 'image_path': '/var/lib/zmeventnotification/images', 'match_past_detections': '
no', 'past_det_max_diff_area': '5%', 'max_detection_size': '90%', 'frame_id': 'bestmatch', 'bestmatch_order': 'a,s', 'wait': '0', 'resize': '800', 'delete_after_analyze': 'yes', 'show_percent': 'yes',
'allow_self_signed': 'yes', 'write_image_to_zm': 'yes', 'write_debug_image': 'no', 'detection_sequence': ['object'], 'detection_mode': 'all', 'import_zm_zones': 'no', 'only_triggered_zm_zones': 'no', '
poly_color': (255, 255, 255), 'poly_thickness': 2, 'create_animation': 'no', 'animation_types': "'mp4,gif'", 'animation_width': 640, 'animation_retry_sleep': 15, 'animation_max_tries': 4, 'fast_gif': '
no', 'ml_gateway': None, 'ml_fallback_local': 'no', 'ml_user': '"your_mlapi_user"', 'ml_password': '"your_mlapi_password"', 'use_sequence': 'yes', 'ml_sequence': '{\n\'general\': {\n\'model_sequence\':
\'object\',\n\n},\n\'object\': {\n\'general\':{\n\'pattern\':\'.*\',\n\'same_model_sequence_strategy\': \'first\' # also \'most\', \'most_unique\'s\n},\n\'sequence\': [{\n\'object_config\':\'/var/lib/
zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg\',\n\'object_weights\':\'/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights\',\n\'object_labels\': \'/var/lib/zmeventnotification/m
odels/tinyyolov4/coco.names\',\n\'object_min_confidence\': 0.3,\n\'object_framework\':\'opencv\',\n\'object_processor\': \'gpu\',\n\'gpu_max_processes\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_proc
esses\': 3,\n\'cpu_max_lock_wait\': 100\n}]\n},\n\'face\': {\n\'general\':{\n\'pattern\': \'.*\',\n\'same_model_sequence_strategy\': \'first\'\n},\n\'sequence\': [{\n\'save_unknown_faces\':\'yes\',\n\'
save_unknown_faces_leeway_pixels\':100,\n\'face_detection_framework\': \'dlib\',\n\'known_images_path\': \'/var/lib/zmeventnotification/known_faces\',\n\'unknown_images_path\': \'/var/lib/zmeventnotifi
cation/unknown_faces\',\n\'face_model\': \'cnn\',\n\'face_train_model\': \'cnn\',\n\'face_recog_dist_threshold\': \'0.6\',\n\'face_num_jitters\': \'1\',\n\'face_upsample_times\':\'1\',\n\'gpu_max_proce
sses\': 1,\n\'gpu_max_lock_wait\': 100,\n\'cpu_max_processes\': 3,\n\'cpu_max_lock_wait\': 100,\n\'max_size\':800\n}]\n},\n\n\'alpr\': {\n\'general\':{\n\'same_model_sequence_strategy\': \'first\',\n\'
pre_existing_labels\':[\'car\', \'motorbike\', \'bus\', \'truck\', \'boat\'],\n\'pattern\': \'.*\'\n\n},\n\'sequence\': [{\n\'alpr_api_type\': \'cloud\',\n\'alpr_service\': \'plate_recognizer\',\n\'alp
r_key\': \'"your_plate_recognizer_api_key"\',\n\'platrec_stats\': \'yes\',\n\'platerec_min_dscore\': 0.1,\n\'platerec_min_score\': 0.2,\n\'max_size\':1600\n}]\n}\n}', 'stream_sequence': "{\n'frame_stra
tegy': 'most_models',\n'frame_set': 'snapshot,alarm',\n'resize':800\n\n}", 'object_detection_pattern': '.*', 'object_framework': 'opencv', 'object_processor': 'gpu', 'object_config': '/var/lib/zmeventn
otification/models/tinyyolov4/yolov4-tiny.cfg', 'object_weights': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.weights', 'object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/
coco.names', 'object_min_confidence': 0.3, 'face_detection_pattern': '.*', 'face_detection_framework': 'dlib', 'face_recognition_framework': 'dlib', 'face_processor': 'cpu', 'face_num_jitters': 1, 'fac
e_upsample_times': 1, 'face_model': 'cnn', 'face_train_model': 'cnn', 'face_recog_dist_threshold': 0.6, 'face_recog_knn_algo': 'ball_tree', 'known_images_path': '/var/lib/zmeventnotification/known_face
s', 'unknown_images_path': '/var/lib/zmeventnotification/unknown_faces', 'unknown_face_name': 'unknown face', 'save_unknown_faces': 'yes', 'save_unknown_faces_leeway_pixels': 100, 'alpr_service': 'plat
e_recognizer', 'alpr_detection_pattern': '.*', 'alpr_url': None, 'alpr_key': '"your_plate_recognizer_api_key"', 'alpr_use_after_detection_only': 'yes', 'alpr_api_type': 'cloud', 'platerec_stats': 'yes'
, 'platerec_regions': None, 'platerec_min_dscore': 0.1, 'platerec_min_score': 0.2, 'openalpr_recognize_vehicle': '0', 'openalpr_country': 'us', 'openalpr_state': None, 'openalpr_min_confidence': '0.3',
'openalpr_cmdline_binary': 'alpr', 'openalpr_cmdline_params': '-j -d', 'openalpr_cmdline_min_confidence': 0.3, 'tpu_object_weights': '/var/lib/zmeventnotification/models/coral_edgetpu/ssd_mobilenet_v2
_coco_quant_postprocess_edgetpu.tflite', 'tpu_object_labels': '/var/lib/zmeventnotification/models/coral_edgetpu/coco_indexed.names', 'tpu_object_framework': 'coral_edgetpu', 'tpu_object_processor': 't
pu', 'tpu_min_confidence': '0.6', 'yolo4_object_weights': '/var/lib/zmeventnotification/models/yolov4/yolov4.weights', 'yolo4_object_labels': '/var/lib/zmeventnotification/models/yolov4/coco.names', 'y
olo4_object_config': '/var/lib/zmeventnotification/models/yolov4/yolov4.cfg', 'yolo4_object_framework': 'opencv', 'yolo4_object_processor': 'gpu', 'yolo3_object_weights': '/var/lib/zmeventnotification/
models/yolov3/yolov3.weights', 'yolo3_object_labels': '/var/lib/zmeventnotification/models/yolov3/coco.names', 'yolo3_object_config': '/var/lib/zmeventnotification/models/yolov3/yolov3.cfg', 'yolo3_obj
ect_framework': 'opencv', 'yolo3_object_processor': 'gpu', 'tinyyolo_object_config': '/var/lib/zmeventnotification/models/tinyyolov4/yolov4-tiny.cfg', 'tinyyolo_object_weights': '/var/lib/zmeventnotifi
cation/models/tinyyolov4/yolov4-tiny.weights', 'tinyyolo_object_labels': '/var/lib/zmeventnotification/models/tinyyolov4/coco.names', 'tinyyolo_object_framework': 'opencv', 'tinyyolo_object_processor':
'gpu'}]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 yolo.py:35 [Semaphore: max:1, name:pyzm_uid33_gpu_lock, timeout:100]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 zm_detect.py:370 [using g.config['object_detection_pattern']=.*]
12/29/20 11:39:41 zmesdetect_m1[604] DBG1 zm_detect.py:403 [Using model: object with /var/lib/zmeventnotification/images/896-alarm.jpg]
12/29/20 11:39:41 zmesdetect_m1[604] DBG2 yolo.py:45 [Waiting for gpu lock...]
12/29/20 11:39:51 zmesdetect_m1[462] ERR yolo.py:51 [Timeout waiting for gpu lock for 100 seconds]
12/29/20 11:39:51 zmesdetect_m1[462] FAT zm_detect.py:860 [Unrecoverable error:Timeout waiting for gpu lock for 100 seconds Traceback:Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 46, in acquire_lock
self.lock.acquire()
File "/usr/local/lib/python3.6/dist-packages/portalocker/utils.py", line 343, in acquire
raise exceptions.AlreadyLocked()
portalocker.exceptions.AlreadyLocked
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 857, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 432, in main_handler
b, l, c = m.detect(original_image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/object.py", line 54, in detect
b,l,c = self.model.detect(image)
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 128, in detect
self.acquire_lock()
File "/usr/local/lib/python3.6/dist-packages/pyzm/ml/yolo.py", line 52, in acquire_lock
raise ValueError ('Timeout waiting for {} lock for {} seconds'.format(self.processor, self.lock_timeout))
ValueError: Timeout waiting for gpu lock for 100 seconds
]