Comments (3)
In the monitor-999 example, there is detection_sequece=object,alpr
- https://github.com/pliablepixels/zmeventnotification/blob/master/hook/objectconfig.ini#L368
However, model_sequence
is set to 'object,face,alpr'
and since use_sequence
is enabled, the detection sequence used for monitor-999 would be ignored - https://github.com/pliablepixels/zmeventnotification/blob/master/hook/objectconfig.ini#L403
from zmeventnotification.
Further research led me to the [ml]
config section. I was going off the monitor-999 example in the config which was not applicable since use_sequence
was enabled. After creating my own key and setting it for model_sequence
, I resolved my issue. I did notice an error in the following section of the docs though: https://github.com/pliablepixels/zmeventnotification/blame/master/docs/guides/hooks.rst#L334. If the key value is quoted, it will generate nested quotes in processing and fail. For example:
06/25/21 14:12:45 zmesdetect_m1[93393] DBG2 zm_detect.py:329 [using ml_sequence]
06/25/21 14:12:45 zmesdetect_m1[93393] FAT zm_detect.py:554 [Unrecoverable error:invalid syntax (<unknown>, line 3) Traceback:Traceback (most recent call last):
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 549, in <module>
main_handler()
File "/var/lib/zmeventnotification/bin/zm_detect.py", line 333, in main_handler
ml_options = ast.literal_eval(ml_options)
File "/usr/lib/python3.8/ast.py", line 59, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "/usr/lib/python3.8/ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 3
'model_sequence': ''object,face'',
^
SyntaxError: invalid syntax
]
Here's the config that worked for me:
# Driveway
[monitor-1]
model_seq=object,face
# Porch
[monitor-2]
model_seq=object,face
# Street
[monitor-3]
model_seq=object,face,alpr
# Living Room
[monitor-4]
model_seq=object,face
[ml]
...
ml_sequence= {
'general': {
'model_sequence': '{{model_seq}}',
...
So, my issue is fixed, but I'll leave this open in case you want to update the example and doc. Thanks for the all the work you've put in on this project.
from zmeventnotification.
Thanks fixed.
Curious about your monitor-999 comment and use_sequence. How are they related?
from zmeventnotification.
Related Issues (20)
- Issue configuring rules HOT 5
- ZMLog (No Attribute) Error after upgrading Ubuntu from 18.04 to 20.04 HOT 4
- Need help with the "cause_has" field HOT 4
- Not receiving notifications since the EOL announcement HOT 7
- past_det_max_diff_area was not being picked up when specified in ml_config structure HOT 1
- raise ValueError(f'malformed node or string: {node!r}') HOT 2
- Python Future problem HOT 11
- zm_detect.py eats cpu with mlapi enabled
- Bug on FCM server HOT 2
- Not work with opencv HOT 13
- zmeventnotification continues to look for memory map file when zoneminder is shutting down HOT 2
- Unable to send FCM notification (500 Server Error) HOT 1
- Install.sh throwing errors at the end HOT 2
- Eventserver only triggering for Monitor #1 HOT 12
- End event not being send after Start event HOT 2
- End hook not skipped when monitor is in hook skip list
- HandleQueuedBulkIn transfer in failed. Not found: USB transfer error 5 [LibUsbDataInCallback] when multiple zm_detect.py processes are run at once with the edgetpu. HOT 2
- [Net::WebSocket::Server missing] although installed HOT 10
- Execution zmeventnotification and python 3.11 and workaround
- zmesdetect fails to authenticate with zoneminder API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zmeventnotification.