Code Monkey home page Code Monkey logo

Comments (3)

akamhy avatar akamhy commented on May 30, 2024

@specky532 what do you mean by frame interval? Is it "The number of interval frames between two I-frames"? or do you want support to specify the timeframe(duration)? All the frames are available to you via the collage_dir attribute.

Alternatively, be able to select a total number of frames and have it randomly select that number of frames from across the video.

I don't understand why randomly selecting will help. Random frames selection will instead make it harder to match other copies.

I also think it is a great idea to support specifying time interval(s) for video hash generation. But I don't understand how random frame selection will improve the project.

Also, you said you work on very long videos, how long are your videos and how much time does it take to generate the hash for these long videos?

from videohash.

specky532 avatar specky532 commented on May 30, 2024

Sorry for the lack of clarity had a big week.

My understanding is that the video hash takes a frame every 1 second by default. framesextractor.py in the init can take a frame interval paramter. but there is nowhere to change this in the video hash, when video hash calls the frames extractor it just passes 1, instead of a variable that the user can specify. It would be useful to be able to specify this.

IE take a frame every 5 seconds or even every 0.1 seconds etc. I've had a look through the code and looks like this should be very easy to implement as the framesextractor.py init already takes the frame interval as a paramater.

The random idea was a brain fart on friday afternoon haha.

from videohash.

akamhy avatar akamhy commented on May 30, 2024

IE take a frame every 5 seconds or even every 0.1 seconds etc. I've had a look through the code and looks like this should be very easy to implement as the framesextractor.py init already takes the frame interval as a parameter.

Yes, it should be trivial to implement this but I will also have to take care of the tests and coverage.

I will release the updated code by next Sunday(28 Nov).

from videohash.

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.