Skip to content

Commit

Permalink
platerec data
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Apr 21, 2021
1 parent d8a84e9 commit edc588f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
10 changes: 9 additions & 1 deletion hook/objectconfig.ini
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,15 @@ ml_sequence= {
'platrec_stats': '{{platerec_stats}}',
'platerec_min_dscore': {{platerec_min_dscore}},
'platerec_min_score': {{platerec_min_score}},
'max_size':1600
'max_size':1600,
#'platerec_payload': {
#'regions':['us'],
#'camera_id':12,
#},
#'platerec_config': {
# 'region':'strict',
# 'mode': 'fast'
#}
}]
}
}
Expand Down
11 changes: 11 additions & 0 deletions hook/zmes_hook_helpers/common_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,17 @@
'type': 'string'
},

'platerec_payload':{
'section': 'alpr',
'default': None,
'type': 'eval'
},
'platerec_config':{
'section': 'alpr',
'default': None,
'type': 'eval'
},


'platerec_regions':{
'section': 'alpr',
Expand Down
3 changes: 2 additions & 1 deletion hook/zmes_hook_helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,12 @@ def _set_config_val(k, v):
# main
try:
config_file = ConfigParser(interpolation=None, inline_comment_prefixes='#')
g.logger.Info('Reading config from: {}'.format(args.get('config')))
config_file.read(args.get('config'))

if config_file.has_option('general', 'secrets'):
secrets_filename = config_file.get('general', 'secrets')
g.logger.Debug(1,'secret filename: {}'.format(secrets_filename))
g.logger.Info('Reading secrets from: {}'.format(secrets_filename))
has_secrets = True
g.config['secrets'] = secrets_filename
secrets_file = ConfigParser(interpolation=None, inline_comment_prefixes='#')
Expand Down

0 comments on commit edc588f

Please sign in to comment.