Git Product home page Git Product logo

Comments (3)

goatzillax avatar goatzillax commented on September 9, 2024

Curiosity got the better of me and I hacked up a test of this feature. I didn't handle the comp_file thing and I wasn't sure about some of the frame copying, but basically I added a _highscore and a _highframe and when a motion event is closed up I dump the frame with cv2.imwrite.

It seems to work really well for my test cases. Mark-I Eyeball efficiency went up like 500%.

Other possibly useful things:

  • printing the high score per event seems kind of helpful for tuning thresholds
  • another vote for get_output_path

from dvr-scan.

Breakthrough avatar Breakthrough commented on September 9, 2024

This is a great idea!

Curiosity got the better of me and I hacked up a test of this feature. I didn't handle the comp_file thing and I wasn't sure about some of the frame copying, but basically I added a _highscore and a _highframe and when a motion event is closed up I dump the frame with cv2.imwrite.

That sounds like a reasonable approach to me. Feel free to push a PR to the develop branch if you would like. In the meantime will keep this open since this sounds like a great feature to have for a CLI tool like this.

from dvr-scan.

goatzillax avatar goatzillax commented on September 9, 2024

When looking at the feature I kinda realized it gets a little more complicated, particularly with the awkward combination of options available. i.e. bounding box doesn't make sense with ffmpeg as the output… unless you want bounding boxes in the thumbnails for your ffmpeg produced output.

At the risk of becoming too ffmpeg-like in complexity, it seems like some sort of output chain would serve implementing stuff like this. Like every time a motion event is closed up, it's just packaged up with its frame list and scores and sent down a chain of processors. One processor in the chain could be the video encoder output, and another might be a thumbnail producer.

I'm also sure someone will want some other variant of a thumbnail other than just the high scorer.

(And my end goal is actually to also feed a motion group to AI straight within python.)

Just something I thought about. If I make a reasonably crude-but-unobtrusive version of the thumb feature I'll send a PR.

Thanks!

from dvr-scan.

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.