Coder Social home page Coder Social logo

Comments (9)

b-g avatar b-g commented on May 27, 2024

Hi @matan-insoundz, Interesting! But can you elaborate 2 sentences on what it does exactly / give an usecase example? Cheers!

from node-yolo.

matansag avatar matansag commented on May 27, 2024

Sure, in order to getting close to real time streaming i dont want to do the object detection calculation on each frame but only on some percentage of it, that way i can decide on how much of the frame calculation will be executed.

darknet support some kind of this feature
./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights -s 2
from what i understand -s flags controls the number of “skip_frames”, which is the number of consecutive frames that yolo won’t process

from node-yolo.

b-g avatar b-g commented on May 27, 2024

Thanks @matan-insoundz ! Sounds very useful! @OrKoN What do you think?

from node-yolo.

OrKoN avatar OrKoN commented on May 27, 2024

@matan-insoundz What will be the best behavior when the -s flag is used: should node-yolo invoke a callback with the raw frame w/o detections or omit skipped frames?

from node-yolo.

matansag avatar matansag commented on May 27, 2024

Thanks @b-g ,@OrKoN i think i will love that node-yolo will invoke the callback with the raw frame ( no detection drawn ) this way one could keep use the output stream as complete video

from node-yolo.

b-g avatar b-g commented on May 27, 2024

+1

Would then modified and detections be null? (Would be good to be able to easily distinguish between callbacks with and w/o detection results) ...

from node-yolo.

matansag avatar matansag commented on May 27, 2024

sound great!
detections can be also empty array

from node-yolo.

OrKoN avatar OrKoN commented on May 27, 2024

Hey @matan-insoundz I took a look how it's done in darknet's demo.c and I have done the same thing here: 25784a0 Basically, it defines after how many frames the callback will be invoked. It seems that it actually does not reduce the amount of processed frames - see https://github.com/pjreddie/darknet/blob/master/src/demo.c#L185. Hope this helps.

from node-yolo.

matansag avatar matansag commented on May 27, 2024

Hi @OrKoN , i tested it and it work exactly as it work in the darknet's demo.c as you wrote.
I agree with you that it didn't reduce the amount of processed frames. that is why my first thought was calling the callback every frame and calling the image-recognition only once a frame.
Also thank you for the development of this feature!

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.