Code Monkey home page Code Monkey logo

Comments (6)

OrKoN avatar OrKoN commented on May 12, 2024

Hi @wardhanster,

the easiest way to implement streaming is too use ffmpeg. What we tried is streaming results to a ffmpeg server like shown here https://github.com/moovel/node-yolo/blob/master/test/darknetImageFfmpegTest.js

ffmpeg server allows users to access and see the stream in the browser. Probably you can write an own frontend which connects to the ffmpeg server. See docs about the service https://www.ffmpeg.org/ffserver.html

I am not familiar with WebRTC to give any other hints.

from node-yolo.

wardhanster avatar wardhanster commented on May 12, 2024

Oh Okay , I will try that approach - I am not familiar with a lot of the things that you mentioned here.
also webrtc is extremely easy to implement on a local machine, something that might interest you in future.
I will try to implement this with webrtc and create a PR if things went well

from node-yolo.

tanmoyAtb avatar tanmoyAtb commented on May 12, 2024

How can use ffserver to process video from webcam and stream it at the same time?

I tried reading docs from fserver, but I just can't seem to decode the modified chunks.

from node-yolo.

OrKoN avatar OrKoN commented on May 12, 2024

@tanmoy12 ffmpeg is capable of transforming raw chunks into the suitable format. See here https://github.com/moovel/node-yolo/blob/master/test/darknetTest.js#L17 the input is raw video in bgr24 and ffmpeg transforms it to the output format. Instead of the filename one can define a URL for a ffmpeg server which can then broadcast the stream.

from node-yolo.

tanmoyAtb avatar tanmoyAtb commented on May 12, 2024

I tried defining an URL like

'localhost:8080'

in place of

detected.mp4

Invalid error.

Do i have to define another child process for ffserver?

from node-yolo.

OrKoN avatar OrKoN commented on May 12, 2024

@tanmoy12 ffserver is a separate process/tool. Also, you need to configure it separately.

from node-yolo.

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.