Good day. Thank you for looking into this. I replaced the below mentioned files from the respective DEBUG branches and run test
Code: Select all
root@e4221043b14e:/var/lib/zmeventnotification# sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.yml --debug --eventid 76
encrypting kickstart key 'access_token'
encrypting kickstart key 'refresh_token'
encrypting kickstart key 'access_token_expires'
encrypting kickstart key 'refresh_token_expires'
encrypting kickstart key 'api_version'
encrypting kickstart key 'zm_version'
encrypting kickstart key 'timezone'
11/17/21 19:15:02.534926 zmesdetect_m6[6629] DBG1 new_yaml.py:242->[config:init: the supplied config file exists -> '/etc/zm/objectconfig.yml']
11/17/21 19:15:02.615138 zmesdetect_m6[6629] DBG1 new_yaml.py:265->[config::init: default configuration built (no secrets or substitution vars replaced, yet!)]
11/17/21 19:15:02.616008 zmesdetect_m6[6629] DBG1 new_yaml.py:170->[config:zmes:proc: 39 built in default keys added to the 'base' config -> ['force_mpd', 'same_model_high_conf', 'skip_mons', 'force_live', 'sanitize_str', 'version', 'basic_user', 'basic_password', 'image_path', 'max_detection_size', 'delete_after_analyze', 'write_debug_image', 'write_image_to_zm', 'hass_enabled', 'hass_people', 'hass_notify', 'hass_cooldown', 'push_err_device', 'push_jpg', 'push_jpg_key', 'push_gif', 'push_gif_key', 'push_debug_device', 'push_cooldown', 'mqtt_topic', 'mqtt_broker', 'mqtt_port', 'tls_cert', 'tls_key', 'fp16_target', 'alpr_api_type', 'alpr_url', 'openalpr_recognize_vehicle', 'openalpr_country', 'openalpr_state', 'openalpr_min_confidence', 'smart_fs_thresh', 'frame_strategy', 'same_model_sequence_strategy']]
11/17/21 19:15:02.616313 zmesdetect_m6[6629] DBG1 new_yaml.py:114->[config:zmes:proc: substituting '{{variables}}' for the 'base' config keys]
11/17/21 19:15:02.617213 zmesdetect_m6[6629] DBG1 new_yaml.py:136->[config:zmes: successfully replaced 3 default sub vars in the base config -> ['coral_models', 'yolo4_models', 'base_data_path']]
11/17/21 19:15:02.617581 zmesdetect_m6[6629] DBG1 new_yaml.py:285->[config:zmes: the configured secrets file exists and is a file -> '/etc/zm/zm_secrets.yml']
11/17/21 19:15:02.617907 zmesdetect_m6[6629] DBG1 new_yaml.py:291->[config:zmes: starting '{[secrets]}' substitution]
11/17/21 19:15:02.625071 zmesdetect_m6[6629] DBG1 new_yaml.py:324->[config:zmes: successfully replaced 17 secrets in the base config -> ['HA_SERVER', 'MQTT_PASSWORD', 'ML_USER', 'PUSHOVER_APP_TOKEN', 'PUSHOVER_USER_KEY', 'MQTT_USERNAME', 'ML_PASSWORD', 'PUSHOVER_ERR_TOKEN', 'HA_TOKEN', 'mlapi_one_key', 'ZM_API_PORTAL', 'PUSHOVER_PASS', 'ZM_PASSWORD', 'ZM_PORTAL', 'ZM_USER', 'PUSHOVER_USER', 'PLATEREC_ALPR_KEY']]
11/17/21 19:15:02.625511 zmesdetect_m6[6629] DBG1 new_yaml.py:329->[config:zmes: there are 2 secrets configured that have no substitution candidates in the base config or the secrets file -> ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY']]
11/17/21 19:15:02.627794 zmesdetect_m6[6629] DBG1 new_yaml.py:358->[config:zmes: starting '{{variable}}' substitution]
11/17/21 19:15:02.632168 zmesdetect_m6[6629] DBG1 new_yaml.py:375->[config:zmes: successfully replaced 51 sub vars in the base config -> ['max_detection_size', 'same_model_sequence_strategy', 'platerec_min_score', 'yolo4_object_framework', 'tpu_face_weights_mobilenetv2', 'alpr_key', 'save_unknown_faces', 'openalpr_cmdline_min_confidence', 'face_detection_pattern', 'gpu_max_processes', 'show_models', 'yolo4_object_processor', 'cpu_max_lock_wait', 'tpu_min_confidence', 'face_num_jitters', 'tpu_max_lock_wait', 'tpu_object_weights_mobiledet', 'tpu_object_framework', 'face_detection_framework', 'frame_set', 'frame_strategy', 'alpr_detection_pattern', 'gpu_max_lock_wait', 'model_sequence', 'face_upsample_times', 'tpu_efficientdet_lite3', 'yolo4_object_labels', 'platerec_stats', 'tpu_object_labels', 'face_recog_dist_threshold', 'openalpr_cmdline_params', 'face_model', 'face_train_model', 'object_detection_pattern', 'tpu_max_processes', 'smart_fps_thresh', 'yolo4_object_weights', 'save_unknown_faces_leeway_pixels', 'cpu_max_processes', 'platerec_min_dscore', 'past_det_max_diff_area', 'yolo4_object_config', 'contained_area', 'tpu_object_weights_mobilenetv2', 'tpu_tf2_mobilenetv2', 'known_images_path', 'disable_locks', 'object_min_confidence', 'unknown_images_path', 'openalpr_cmdline_binary', 'match_past_detections']]
11/17/21 19:15:02.634035 zmesdetect_m6[6629] DBG1 new_yaml.py:187->[config:zmes:proc: Base config has been built, all properly configured {[secrets]} and {{vars}} have been replaced! Remember you must manually build per monitor overrode configurations]
11/17/21 19:15:02.634362 zmesdetect_m6[6629] DBG1 zm_detect.py:598->[perf:zmes: building the intial config took 0.099493 ]
11/17/21 19:15:02.634695 zmesdetect_m6[6629] DBG1 new_yaml.py:747->[zmes:api create: building ZM API Session]
11/17/21 19:15:02.639091 zmesdetect_m6[6629] DBG1 api.py:112->[api: SSL certificate verification disabled (encryption enabled, vulnerable to MITM attacks)]
11/17/21 19:15:02.639751 zmesdetect_m6[6629] DBG1 api.py:281->[api: no token found, trying user/pass for login]
11/17/21 19:15:03.068694 zmesdetect_m6[6629] DBG1 ZMLog:336->[------| FORKED NEO --- app->Hooks: 7.0.2 - pyzm: 1.0.2 - ES: 7.0.0 - OpenCV:4.5.4 |------]
11/17/21 19:15:02.760818 zmesdetect_m6[6629] DBG1 zm_detect.py:629->[zmes: waiting for the monitor ID to be verified! This happens on PAST events because the api double checks to make sure its the correct monitor ID]
11/17/21 19:15:02.775543 zmesdetect_m6[6629] DBG1 api.py:318->[api: detected API ver 2.0+, using token system]
11/17/21 19:15:02.776201 zmesdetect_m6[6629] DBG1 api.py:333->[api: access token expires on: 2021-11-17 21:15:02.776168 (7200s)]
11/17/21 19:15:02.776551 zmesdetect_m6[6629] DBG1 api.py:345->[api: refresh token expires on: 2021-11-18 19:15:02.776542 (86400s)]
11/17/21 19:15:02.791458 zmesdetect_m6[6629] DBG1 new_yaml.py:780->[zmes:api create: ZM API created]
11/17/21 19:15:02.794211 zmesdetect_m6[6629] DBG1 zm_detect.py:643->[perf:zmes: Monitor ID (6) verified! pausing to wait for verification took 0.033396 seconds -=- api creation took 0.15961 seconds]
11/17/21 19:15:03.07324 zmesdetect_m6[6629] DBG1 ZMLog:336->[zmes: Setting up signal handlers for log 'rotation' and log 'interrupt']
11/17/21 19:15:02.866748 zmesdetect_m6[6629] DBG1 zm_detect.py:710->[zmes: this is a 'PAST' (debugging?) event!]
11/17/21 19:15:03.074283 zmesdetect_m6[6629] DBG1 ZMLog:336->[|----------= Encrypted Route Name: 'mlapi_one' | Gateway URL: 'http://192.168.1.100:5003/api/v1' | Weight: 0 =----------|]
11/17/21 19:15:02.868897 zmesdetect_m6[6629] DBG1 zm_detect.py:103->[zmes:mlapi:login: No need to login, access token is valid for 2044.5638103485107 sec]
11/17/21 19:15:03.029203 zmesdetect_m6[6629] DBG1 zm_detect.py:377->[
** Gateway URL: 'http://192.168.1.100:5003/api/v1/detect/object?type=object' using auth_header={'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGc......'}
**** params={'delete': True, 'response_format': 'zm_detect'}
****** JSON: stream: 76 - mid: 6 - reason: None - stream options: {'frame_strategy': 'first', 'frame_set': 'snapshot, alarm, snapshot', 'contig_frames_before_error': 2, 'delay_between_attempts': 2.143256, 'max_attempts': 3, 'delay_between_snapshots': 1, 'smart_fps_thresh': '5', 'save_frames': 'no', 'save_frames_dir': None, 'PAST_EVENT': True} - files: {}
]
11/17/21 19:15:03.075885 zmesdetect_m6[6629] DBG1 ZMLog:336->[Connected to ZoneMinder Logging system with user 'www-data' -> '/var/log/zm/zmesdetect_m6.log']
11/17/21 19:15:03.047558 zmesdetect_m6[6629] DBG1 zm_detect.py:422->[zmes:mlapi: error during post to mlapi host-> keys must be str, int, float, bool or None, not bytes]
11/17/21 19:15:03.04857 zmesdetect_m6[6629] DBG1 zm_detect.py:821->[perf:zmes:mlapi: Monitor: office (6)->'Event': 76 mlapi detection took: 0.180621]
11/17/21 19:15:03.049742 zmesdetect_m6[6629] DBG1 zm_detect.py:1590->[zmes: no predictions returned from detections]
11/17/21 19:15:03.051276 zmesdetect_m6[6629] DBG1 zm_detect.py:1658->[perf:zmes:FINAL: 'Monitor': office (6)->'Event': 76 [PAST event] [total:0.520373] [detection:0.180621] [after core detection: 0.000952] ]
root@e4221043b14e:/var/lib/zmeventnotification#
Code: Select all
root@e4221043b14e:/var/lib/zmeventnotification# sudo -u www-data /var/lib/zmeventnotification/bin/zm_detect.py --config /etc/zm/objectconfig.yml --debug --eventid 76
encrypting kickstart key 'access_token'
encrypting kickstart key 'refresh_token'
encrypting kickstart key 'access_token_expires'
encrypting kickstart key 'refresh_token_expires'
encrypting kickstart key 'api_version'
encrypting kickstart key 'zm_version'
encrypting kickstart key 'timezone'
11/17/21 19:15:02.534926 zmesdetect_m6[6629] DBG1 new_yaml.py:242->[config:init: the supplied config file exists -> '/etc/zm/objectconfig.yml']
11/17/21 19:15:02.615138 zmesdetect_m6[6629] DBG1 new_yaml.py:265->[config::init: default configuration built (no secrets or substitution vars replaced, yet!)]
11/17/21 19:15:02.616008 zmesdetect_m6[6629] DBG1 new_yaml.py:170->[config:zmes:proc: 39 built in default keys added to the 'base' config -> ['force_mpd', 'same_model_high_conf', 'skip_mons', 'force_live', 'sanitize_str', 'version', 'basic_user', 'basic_password', 'image_path', 'max_detection_size', 'delete_after_analyze', 'write_debug_image', 'write_image_to_zm', 'hass_enabled', 'hass_people', 'hass_notify', 'hass_cooldown', 'push_err_device', 'push_jpg', 'push_jpg_key', 'push_gif', 'push_gif_key', 'push_debug_device', 'push_cooldown', 'mqtt_topic', 'mqtt_broker', 'mqtt_port', 'tls_cert', 'tls_key', 'fp16_target', 'alpr_api_type', 'alpr_url', 'openalpr_recognize_vehicle', 'openalpr_country', 'openalpr_state', 'openalpr_min_confidence', 'smart_fs_thresh', 'frame_strategy', 'same_model_sequence_strategy']]
11/17/21 19:15:02.616313 zmesdetect_m6[6629] DBG1 new_yaml.py:114->[config:zmes:proc: substituting '{{variables}}' for the 'base' config keys]
11/17/21 19:15:02.617213 zmesdetect_m6[6629] DBG1 new_yaml.py:136->[config:zmes: successfully replaced 3 default sub vars in the base config -> ['coral_models', 'yolo4_models', 'base_data_path']]
11/17/21 19:15:02.617581 zmesdetect_m6[6629] DBG1 new_yaml.py:285->[config:zmes: the configured secrets file exists and is a file -> '/etc/zm/zm_secrets.yml']
11/17/21 19:15:02.617907 zmesdetect_m6[6629] DBG1 new_yaml.py:291->[config:zmes: starting '{[secrets]}' substitution]
11/17/21 19:15:02.625071 zmesdetect_m6[6629] DBG1 new_yaml.py:324->[config:zmes: successfully replaced 17 secrets in the base config -> ['HA_SERVER', 'MQTT_PASSWORD', 'ML_USER', 'PUSHOVER_APP_TOKEN', 'PUSHOVER_USER_KEY', 'MQTT_USERNAME', 'ML_PASSWORD', 'PUSHOVER_ERR_TOKEN', 'HA_TOKEN', 'mlapi_one_key', 'ZM_API_PORTAL', 'PUSHOVER_PASS', 'ZM_PASSWORD', 'ZM_PORTAL', 'ZM_USER', 'PUSHOVER_USER', 'PLATEREC_ALPR_KEY']]
11/17/21 19:15:02.625511 zmesdetect_m6[6629] DBG1 new_yaml.py:329->[config:zmes: there are 2 secrets configured that have no substitution candidates in the base config or the secrets file -> ['AWS_ACCESS_KEY_ID', 'AWS_SECRET_ACCESS_KEY']]
11/17/21 19:15:02.627794 zmesdetect_m6[6629] DBG1 new_yaml.py:358->[config:zmes: starting '{{variable}}' substitution]
11/17/21 19:15:02.632168 zmesdetect_m6[6629] DBG1 new_yaml.py:375->[config:zmes: successfully replaced 51 sub vars in the base config -> ['max_detection_size', 'same_model_sequence_strategy', 'platerec_min_score', 'yolo4_object_framework', 'tpu_face_weights_mobilenetv2', 'alpr_key', 'save_unknown_faces', 'openalpr_cmdline_min_confidence', 'face_detection_pattern', 'gpu_max_processes', 'show_models', 'yolo4_object_processor', 'cpu_max_lock_wait', 'tpu_min_confidence', 'face_num_jitters', 'tpu_max_lock_wait', 'tpu_object_weights_mobiledet', 'tpu_object_framework', 'face_detection_framework', 'frame_set', 'frame_strategy', 'alpr_detection_pattern', 'gpu_max_lock_wait', 'model_sequence', 'face_upsample_times', 'tpu_efficientdet_lite3', 'yolo4_object_labels', 'platerec_stats', 'tpu_object_labels', 'face_recog_dist_threshold', 'openalpr_cmdline_params', 'face_model', 'face_train_model', 'object_detection_pattern', 'tpu_max_processes', 'smart_fps_thresh', 'yolo4_object_weights', 'save_unknown_faces_leeway_pixels', 'cpu_max_processes', 'platerec_min_dscore', 'past_det_max_diff_area', 'yolo4_object_config', 'contained_area', 'tpu_object_weights_mobilenetv2', 'tpu_tf2_mobilenetv2', 'known_images_path', 'disable_locks', 'object_min_confidence', 'unknown_images_path', 'openalpr_cmdline_binary', 'match_past_detections']]
11/17/21 19:15:02.634035 zmesdetect_m6[6629] DBG1 new_yaml.py:187->[config:zmes:proc: Base config has been built, all properly configured {[secrets]} and {{vars}} have been replaced! Remember you must manually build per monitor overrode configurations]
11/17/21 19:15:02.634362 zmesdetect_m6[6629] DBG1 zm_detect.py:598->[perf:zmes: building the intial config took 0.099493 ]
11/17/21 19:15:02.634695 zmesdetect_m6[6629] DBG1 new_yaml.py:747->[zmes:api create: building ZM API Session]
11/17/21 19:15:02.639091 zmesdetect_m6[6629] DBG1 api.py:112->[api: SSL certificate verification disabled (encryption enabled, vulnerable to MITM attacks)]
11/17/21 19:15:02.639751 zmesdetect_m6[6629] DBG1 api.py:281->[api: no token found, trying user/pass for login]
11/17/21 19:15:03.068694 zmesdetect_m6[6629] DBG1 ZMLog:336->[------| FORKED NEO --- app->Hooks: 7.0.2 - pyzm: 1.0.2 - ES: 7.0.0 - OpenCV:4.5.4 |------]
11/17/21 19:15:02.760818 zmesdetect_m6[6629] DBG1 zm_detect.py:629->[zmes: waiting for the monitor ID to be verified! This happens on PAST events because the api double checks to make sure its the correct monitor ID]
11/17/21 19:15:02.775543 zmesdetect_m6[6629] DBG1 api.py:318->[api: detected API ver 2.0+, using token system]
11/17/21 19:15:02.776201 zmesdetect_m6[6629] DBG1 api.py:333->[api: access token expires on: 2021-11-17 21:15:02.776168 (7200s)]
11/17/21 19:15:02.776551 zmesdetect_m6[6629] DBG1 api.py:345->[api: refresh token expires on: 2021-11-18 19:15:02.776542 (86400s)]
11/17/21 19:15:02.791458 zmesdetect_m6[6629] DBG1 new_yaml.py:780->[zmes:api create: ZM API created]
11/17/21 19:15:02.794211 zmesdetect_m6[6629] DBG1 zm_detect.py:643->[perf:zmes: Monitor ID (6) verified! pausing to wait for verification took 0.033396 seconds -=- api creation took 0.15961 seconds]
11/17/21 19:15:03.07324 zmesdetect_m6[6629] DBG1 ZMLog:336->[zmes: Setting up signal handlers for log 'rotation' and log 'interrupt']
11/17/21 19:15:02.866748 zmesdetect_m6[6629] DBG1 zm_detect.py:710->[zmes: this is a 'PAST' (debugging?) event!]
11/17/21 19:15:03.074283 zmesdetect_m6[6629] DBG1 ZMLog:336->[|----------= Encrypted Route Name: 'mlapi_one' | Gateway URL: 'http://192.168.1.100:5003/api/v1' | Weight: 0 =----------|]
11/17/21 19:15:02.868897 zmesdetect_m6[6629] DBG1 zm_detect.py:103->[zmes:mlapi:login: No need to login, access token is valid for 2044.5638103485107 sec]
11/17/21 19:15:03.029203 zmesdetect_m6[6629] DBG1 zm_detect.py:377->[
** Gateway URL: 'http://192.168.1.100:5003/api/v1/detect/object?type=object' using auth_header={'Authorization': 'Bearer eyJ0eXAiOiJKV1QiLCJhbGc......'}
**** params={'delete': True, 'response_format': 'zm_detect'}
****** JSON: stream: 76 - mid: 6 - reason: None - stream options: {'frame_strategy': 'first', 'frame_set': 'snapshot, alarm, snapshot', 'contig_frames_before_error': 2, 'delay_between_attempts': 2.143256, 'max_attempts': 3, 'delay_between_snapshots': 1, 'smart_fps_thresh': '5', 'save_frames': 'no', 'save_frames_dir': None, 'PAST_EVENT': True} - files: {}
]
11/17/21 19:15:03.075885 zmesdetect_m6[6629] DBG1 ZMLog:336->[Connected to ZoneMinder Logging system with user 'www-data' -> '/var/log/zm/zmesdetect_m6.log']
11/17/21 19:15:03.047558 zmesdetect_m6[6629] DBG1 zm_detect.py:422->[zmes:mlapi: error during post to mlapi host-> keys must be str, int, float, bool or None, not bytes]
11/17/21 19:15:03.04857 zmesdetect_m6[6629] DBG1 zm_detect.py:821->[perf:zmes:mlapi: Monitor: office (6)->'Event': 76 mlapi detection took: 0.180621]
11/17/21 19:15:03.049742 zmesdetect_m6[6629] DBG1 zm_detect.py:1590->[zmes: no predictions returned from detections]
11/17/21 19:15:03.051276 zmesdetect_m6[6629] DBG1 zm_detect.py:1658->[perf:zmes:FINAL: 'Monitor': office (6)->'Event': 76 [PAST event] [total:0.520373] [detection:0.180621] [after core detection: 0.000952] ]
root@e4221043b14e:/var/lib/zmeventnotification# cd logs/
root@e4221043b14e:/var/lib/zmeventnotification/logs# ls
README.md zm_mlapi.log
root@e4221043b14e:/var/lib/zmeventnotification/logs# cat zm_mlapi.log
11/17/21 18:39:21.774432 zm_mlapi[1413] DBG1 new_yaml.py:242 [config:init: the supplied config file exists -> '/var/lib/zmeventnotification/mlapiconfig.yml']
11/17/21 18:39:21.803156 zm_mlapi[1413] DBG1 new_yaml.py:68 [config:hash: the SHA-256 hex digest for file '/var/lib/zmeventnotification/mlapiconfig.yml' -> fe9bd93395f8909afa82261dc0f78c2c82f84f1c634e820057b21d4c52aa4fc8]
11/17/21 18:39:21.84567 zm_mlapi[1413] DBG1 new_yaml.py:265 [config::init: default configuration built (no secrets or substitution vars replaced, yet!)]
11/17/21 18:39:21.846361 zm_mlapi[1413] DBG1 new_yaml.py:170 [config:mlapi:proc: 21 built in default keys added to the 'base' config -> ['host', 'wsgi_server', 'same_model_high_conf', 'sanitize_str', 'log_user', 'log_group', 'log_name', 'force_mpd', 'auth_enabled', 'wait', 'max_detection_size', 'detection_sequence', 'smart_fs_thresh', 'object_framework', 'fp16_target', 'alpr_api_type', 'alpr_url', 'openalpr_recognize_vehicle', 'openalpr_country', 'openalpr_state', 'openalpr_min_confidence']]
11/17/21 18:39:21.846644 zm_mlapi[1413] DBG1 new_yaml.py:114 [config:mlapi:proc: substituting '{{variables}}' for the 'base' config keys]
11/17/21 18:39:21.847377 zm_mlapi[1413] DBG1 new_yaml.py:136 [config:mlapi: successfully replaced 3 default sub vars in the base config -> ['coral_models', 'yolo4_models', 'base_data_path']]
11/17/21 18:39:21.847743 zm_mlapi[1413] DBG1 new_yaml.py:285 [config:mlapi: the configured secrets file exists and is a file -> '/etc/zm/zm_secrets.yml']
11/17/21 18:39:21.848117 zm_mlapi[1413] DBG1 new_yaml.py:68 [config:hash: the SHA-256 hex digest for file '/etc/zm/zm_secrets.yml' -> d2f65b3c56cb91a8e77cf830897bb115259b71320e9f6ee10a41a6120ca0568b]
11/17/21 18:39:21.848494 zm_mlapi[1413] DBG1 new_yaml.py:291 [config:mlapi: starting '{[secrets]}' substitution]
11/17/21 18:39:21.853711 zm_mlapi[1413] DBG1 new_yaml.py:324 [config:mlapi: successfully replaced 3 secrets in the base config -> ['PLATEREC_ALPR_KEY', 'MLAPI_SECRET_KEY', 'mlapi_one_key']]
11/17/21 18:39:21.854035 zm_mlapi[1413] DBG1 new_yaml.py:329 [config:mlapi: there are 2 secrets configured that have no substitution candidates in the base config or the secrets file -> ['AWS_SECRET_ACCESS_KEY', 'AWS_ACCESS_KEY_ID']]
11/17/21 18:39:21.855233 zm_mlapi[1413] DBG1 new_yaml.py:358 [config:mlapi: starting '{{variable}}' substitution]
11/17/21 18:39:21.859442 zm_mlapi[1413] DBG1 new_yaml.py:375 [config:mlapi: successfully replaced 51 sub vars in the base config -> ['platerec_stats', 'save_unknown_faces_leeway_pixels', 'tpu_object_framework', 'known_images_path', 'platerec_min_dscore', 'match_past_detections', 'save_unknown_faces', 'face_model', 'tpu_object_labels', 'yolo4_object_framework', 'face_detection_framework', 'contained_area', 'cpu_max_processes', 'model_sequence', 'smart_fps_thresh', 'tpu_min_confidence', 'tpu_object_weights_mobiledet', 'yolo4_object_processor', 'tpu_max_processes', 'alpr_key', 'face_recog_dist_threshold', 'tpu_object_weights_mobilenetv2', 'gpu_max_processes', 'gpu_max_lock_wait', 'alpr_detection_pattern', 'openalpr_cmdline_params', 'face_num_jitters', 'object_min_confidence', 'tpu_tf2_mobilenetv2', 'show_models', 'unknown_images_path', 'face_upsample_times', 'tpu_max_lock_wait', 'same_model_sequence_strategy', 'openalpr_cmdline_binary', 'yolo4_object_weights', 'yolo4_object_config', 'frame_set', 'frame_strategy', 'tpu_face_weights_mobilenetv2', 'face_train_model', 'cpu_max_lock_wait', 'yolo4_object_labels', 'object_detection_pattern', 'openalpr_cmdline_min_confidence', 'max_detection_size', 'past_det_max_diff_area', 'platerec_min_score', 'disable_locks', 'tpu_efficientdet_lite3', 'face_detection_pattern']]
11/17/21 18:39:21.860493 zm_mlapi[1413] DBG1 new_yaml.py:187 [config:mlapi:proc: Base config has been built, all properly configured {[secrets]} and {{vars}} have been replaced! Remember you must manually build per monitor overrode configurations]
11/17/21 18:39:21.860784 zm_mlapi[1413] DBG1 new_yaml.py:416 [config:mlapi:6942069: attempting to build an overrode config from monitor '6942069' overrides]
11/17/21 18:39:21.861372 zm_mlapi[1413] DBG1 new_yaml.py:432 [config:mlapi:6942069: monitor '6942069' overrides, starting '{[secrets]}' substitution]
11/17/21 18:39:21.861655 zm_mlapi[1413] DBG1 new_yaml.py:474 [config:mlapi:6942069: no secrets were replace during overrode config build]
11/17/21 18:39:21.861923 zm_mlapi[1413] DBG1 new_yaml.py:512 [config:mlapi:6942069: no vars were replace during overrode config build]
11/17/21 18:39:21.862253 zm_mlapi[1413] DBG1 new_yaml.py:547 [config:mlapi:6942069: polygon specified -> 'front_yard_polygonzone' for monitor 6942069, validating polygon shape...]
11/17/21 18:39:21.862624 zm_mlapi[1413] DBG1 new_yaml.py:575 [config:mlapi:6942069: creating new entry in polygons!]
11/17/21 18:39:21.862896 zm_mlapi[1413] DBG1 new_yaml.py:583 [config:mlapi:6942069: successfully validated polygon for defined zone 'front_yard' -> [(0, 877), (2170, 553), (3822, 1131), (3822, 2141), (0, 2159)]]
11/17/21 18:39:21.863162 zm_mlapi[1413] DBG1 new_yaml.py:542 [config:mlapi:6942069: detection pattern for monitor '6942069' defined zone 'front_yard' -> (person|dog|cat)]
11/17/21 18:39:21.863711 zm_mlapi[1413] DBG1 new_yaml.py:598 [config:mlapi:6942069: 3 keys overridden in the 'base' config -> ['object_detection_pattern', 'frame_set', 'model_sequence']]
11/17/21 18:39:21.863975 zm_mlapi[1413] DBG1 new_yaml.py:603 [config:mlapi:6942069: 5 keys that did not have a 'base' value to override that are now in the 'base' config -> ['front_yard_polygonzone', 'front_yard_zone_detection_pattern', 'person_max_detection_size', 'person_min_confidence', 'defined zones']]
11/17/21 18:39:22.195206 zm_mlapi[1413] DBG1 ZMLog:336 [mlapi:signal handlers: Setting up for log 'rotation' and log 'interrupt']
11/17/21 18:39:21.864665 zm_mlapi[1413] DBG1 mlapi.py:161 [perf:mlapi:init: total time to build initial config -> 0.090283]
11/17/21 18:39:21.864509 zm_mlapi[1413] DBG1 new_yaml.py:632 [config:init:log: Zoneminder is installed]
11/17/21 18:39:22.222548 zm_mlapi[1413] DBG1 ZMLog:336 [|*** FORKED NEO - Machine Learning API (mlapi) version: 3.0.2 - pyzm version: 1.0.2 - OpenCV version: 4.5.4 ***|]
11/17/21 18:39:22.231194 zm_mlapi[1413] DBG1 ZMLog:336 [mlapi: using 'Flask' with a maximum of '1' processes as WSGI server @ 0.0.0.0:5000]
11/17/21 18:39:22.262385 zm_mlapi[1413] DBG1 ZMLog:336 [Connected to ZoneMinder Logging system with user 'root' -> '/var/lib/zmeventnotification/logs/zm_mlapi.log']
11/17/21 18:40:58.273612 zm_mlapi[1413] DBG1 mlapi_db:84 [mlapi db: login SUCCEEDED for user -> 'juan11perez' (172.17.0.1) [correct password]]
Also the latest pyzm is not installing correctly. I installed with sudo pip3 install -e . and it says successfull, but throws the error
If I install it using the previous install.sh script it works.