how to pass frame ids from zm to mlapi on remote server?

Discussion topics related to mobile applications and ZoneMinder Event Server (including machine learning)
Post Reply
ranger21
Posts: 16
Joined: Fri Dec 04, 2020 4:55 am

how to pass frame ids from zm to mlapi on remote server?

Post by ranger21 »

The question is
how to pass frame ids to stream_sequence from zm to mlapi on remote server?

i have some logic on zm i need to pass to mlapi on remote server for each event...
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: how to pass frame ids from zm to mlapi on remote server?

Post by tsp84 »

Add it to the stream options right before

m.set_ml_sequence
m.detect_stream

In zm_detect.py function of remote_detect()
ranger21
Posts: 16
Joined: Fri Dec 04, 2020 4:55 am

Re: how to pass frame ids from zm to mlapi on remote server?

Post by ranger21 »

Turns out i had to remove stream_sequence from mlapiconfig.ini and then mlapi remote server uses stream_sequence from objectconfig.ini of ZM. I've already have script which generates unique objectconfig.ini for each event with desired frames to analyze.

Thanks!

It's kinda hacky solution for me, but it works

viewtopic.php?t=30232
tsp84
Posts: 227
Joined: Thu Dec 24, 2020 4:04 am

Re: how to pass frame ids from zm to mlapi on remote server?

Post by tsp84 »

Oh yeah, I found that out the hard way too.

I didn't quite understand what you were meaning. I thought you ment programmatically in the python files.
Post Reply