Git Product home page Git Product logo

Comments (4)

kleanbotmk2 avatar kleanbotmk2 commented on June 29, 2024

Any help ?

from ros_deep_learning.

dusty-nv avatar dusty-nv commented on June 29, 2024

Hi @kleanbotmk2, I don't think this is so much a question specific to ros_deep_learning as it is with setting up your ROS2 launch files. For two cameras, you would make two video_source nodes. They can both share the same detectnet node though, because detectnet is stateless and doesn't care where each independent image comes from. That will also avoid you from re-loading the detection DNN twice.

from ros_deep_learning.

kleanbotmk2 avatar kleanbotmk2 commented on June 29, 2024

Hi @dusty-nv and thanks for your reply.
To be more precise I want to keep the 2 camera streams seperated from each other, because I want to perform simple stereo detection, with a Left and a Right Camera, so I need to have a BBox for the Left cam, and an BBox for the Right one...
Then I intend to determine the depth of the recognised object from the bbox lateral speration in pixels... So I have to know where the BBox come from, Left or Right... If I subscribe to the 2 camera at the input, then feed the Detectnet as you suggest, this one will provide Bbox and overlay image through a single output, independant from the origin of the image, what I want to avoid...
I do want to be able to publish two different outputs.
Thanks again for you help

from ros_deep_learning.

zaher88abd avatar zaher88abd commented on June 29, 2024

Hi @kleanbotmk2,

I am working on similar problem. What I did, I used USB_CAM nodes to read from cameras. Then create a node read the cameras output topic.
In my case, I need to switch between the cameras, so each time I am read frame from one of the cameras, I will publish the one I want to the output topic which is used as input to the model node.
But, in your case, I think you could marge both of the frames in one image, then publish is it to by the output topic, which will be used as input to the model.
You could check this post https://stackoverflow.com/questions/72690021/how-to-process-a-image-message-with-opencv-from-ros2.

from ros_deep_learning.

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.