Code Monkey home page Code Monkey logo

Comments (5)

OpenVINO-dev-contest avatar OpenVINO-dev-contest commented on July 1, 2024

Hi you can create one async queue to load all of the feeds, or create multiple async queue to load each feed's request separately.
You can check this PR, see if it can help you on how to create multiple async queue.

from yolov7_openvino_cpp-python.

bbartling avatar bbartling commented on July 1, 2024

Gosh that is a bit over my head haha....is there anything funny with this approach below?

Am still tinkering around with the IoT rest API app to process 10 (or more) different IP cameras at once:

  • One rest API endpoint for each camera
  • Use multiprocessing to instantiate 10 instances of Python class you wrote YOLOV7_OPENVINO(object) or run them with the operating system as different .py files?
  • std.out flush people detections if people count in frame was different than last frame and processed video frame something like this.
        sys.stdout.buffer.write(frame)
        sys.stdout.flush()

I idea comes from which is an outdated Intel course I took a while back with the link I showed you. Python code processes the video and std.out flushes everything to a separate web app running to build the dashboard.

The web app standpoint I have to keep track of the name of which video feed is getting processed to be able to build out the dashboard, am still wrapping my head around this...regardless if I can get some code to work if you have the time curious to see from a high level or not if things can be optimized better. Thanks!

from yolov7_openvino_cpp-python.

bbartling avatar bbartling commented on July 1, 2024

Not sure how this will work on live camera feeds but this is working so far with multiprocessing, this line where the ffmeg will flush in the draw method.

Its working on processing 3 video files at once : ) Am hoping to someday do something like this on GPU !

from yolov7_openvino_cpp-python.

OpenVINO-dev-contest avatar OpenVINO-dev-contest commented on July 1, 2024

Actually I had created a decode+ inference demo for multiple input data on GPU in C++. When you implement the codes in Python, we can leverage Async-queue to cache multiple inference request from different feeds. The logic of it looks like the diagram below:
image

If you can share your hardware architecture with me, I may provide you more suggestions on it.

from yolov7_openvino_cpp-python.

bbartling avatar bbartling commented on July 1, 2024

This is really cool will do...thanks @OpenVINO-dev-contest !

from yolov7_openvino_cpp-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.