Code Monkey home page Code Monkey logo

Comments (4)

vadeshah avatar vadeshah commented on June 11, 2024 1

Thank you for the clarifications and advice! I will mark this as closed for now, and I will let you know if I have any other questions.

from opentraj.

vadeshah avatar vadeshah commented on June 11, 2024

A follow up question - for the UCY dataset, the frame_id starts at 10. Is this 1-indexed (i.e. the 10th frame of the video), or 0-indexed (i.e. the 11th frame of the video)? Apologies if this seems pedantic, but I would like to be as precise as possible.

from opentraj.

amiryanj avatar amiryanj commented on June 11, 2024

Hi @vadeshah

I assume an easy way to do what you want is to use OpenCV VideoCapture.
You can find an example in ui_cv.py.
You can then save each frame using cv2.imwrite() function.
Regarding your 2nd question (both the annotations and video frame indices) are 0-indexed.

from opentraj.

vadeshah avatar vadeshah commented on June 11, 2024

Hi there!

I'm now trying to perform the same task using the ETH dataset, but I'm running into some inconsistencies with the timestamps and the frame rate of the video. In the seq_eth scenario, according to VLC, the video has been captured at 25 fps; in the dataframe, however, each row is a 0.4-second sample, but the frame_id only increases by 6 (if it were sampled at 25 fps, this should increase by 10). Does this mean that the video is actually 15 fps, or have these frame_ids been assigned incorrectly? Any clarification would be greatly appreciated!

from opentraj.

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.