OpenVisualCloud / Smart-City-Sample

The smart city reference pipeline shows how to integrate various media building blocks, with analytics powered by the OpenVINO™ Toolkit, for traffic or stadium sensing, analytics and management tasks.
BSD 3-Clause "New" or "Revised" License
189 stars 81 forks source link

Sending local index to cloud-db #740

Closed divdaisymuffin closed 3 years ago

divdaisymuffin commented 3 years ago

Hi @xwu2git, In the multioffice scenario, we have 4 indexes in the cloud-db-0, i.e. sensors, recordings, offices and analytics, similarly I want algorithm index into the cloud-db-0. Till now, I know that runva.py and for traffic scenario detect_objcet.py ingest the data using dbingest by importing db_ingest.py. So, I Tried somethings around them, now I have algorithm index initialized into the cloud-db-0, but it contains no docs.

Please help me in this. Thanks

xwu2git commented 3 years ago

The two functions you need to use the db_ingest::ingest and db_query:search. You can use the search function to extract the docs in the local office algorithm index and then ingest into the cloud_db index.

xwu2git commented 3 years ago

You can also refer to the smart upload feature.