GithubHelp home page GithubHelp logo

Comments (17)

RahulKumarBazia avatar RahulKumarBazia commented on August 23, 2024 2

If anyone still facing the issues, i made the implementation simpler, have a look at
https://github.com/RahulKumarBazia/experimenting-with-sort

from experimenting-with-sort.

kubark42 avatar kubark42 commented on August 23, 2024 1

The following command uses FFMPEG to extract images to the required format:
ffmpeg -i "TownCentreXVID.avi Pictures%d.jpg

If you wanted to only have three seconds of extraction, try this command:
ffmpeg -i "TownCentreXVID.avi -t 3 Pictures%d.jpg

If you wanted only three seconds of extraction, and you wanted the extraction to skip the first two seconds of the video, try this command:
ffmpeg -i "TownCentreXVID.avi -ss 2 -t 3 Pictures%d.jpg

from experimenting-with-sort.

Phoebe-star avatar Phoebe-star commented on August 23, 2024

you should make the fold named 'test' and the 'test' fold is including Pictures1.jpg

from experimenting-with-sort.

JunShao-Hub avatar JunShao-Hub commented on August 23, 2024

@world4jason
Can you solve it?

from experimenting-with-sort.

3073 avatar 3073 commented on August 23, 2024

@world4jason
did you solve it problem ?

from experimenting-with-sort.

3073 avatar 3073 commented on August 23, 2024

@phoebe_star
what is picture1 first. there is no way to enter your own video file.

from experimenting-with-sort.

Phoebe-star avatar Phoebe-star commented on August 23, 2024

in the main.py
fn = 'test/Pictures%d.jpg' % (frame + 1) # video frames are extracted to 'test/Pictures%d.jpg' with ffmpeg
so it can not play any viedo, you have to have many .jpg file in the test folder

from experimenting-with-sort.

3073 avatar 3073 commented on August 23, 2024

@phoebe_star: Ok thank you
is there a possibility to use a live camera instead of the extracted video frames? which line of codes should be modified for that?

from experimenting-with-sort.

kubark42 avatar kubark42 commented on August 23, 2024

is there a possibility to use a live camera instead of the extracted video frames? which line of codes should be modified for that?

This is not trivial, and would need to be tested on a case-by-case basis. A lot of the motion modeling is assuming calibrated(-ish) cameras, so if you were to use, for instance, a go pro (or any other camera with a fisheye lens), the results would quite possibly be underwhelming.

from experimenting-with-sort.

Tehseen-Akhtar avatar Tehseen-Akhtar commented on August 23, 2024

Hi i am new to Python please guide me.
My Question is do we have to make a test folder and make a lot of images our self of this code will do it by itself?
@Phoebe-star
as i understand that we have to make a lot of images from the .avi file given rite??
but how ??
the code that @kubark42 gave is not complete because when i run it in the terminal a new line comes with ' > ' this sign and nothing happens..
Thank to all in advance.

from experimenting-with-sort.

kubark42 avatar kubark42 commented on August 23, 2024

@Tehseen-Akhtar Looks like a copy-pasta flub, there's a missing ". I don't recall, but if I had to guess I'd say it's around the TownCentreXVID.avi string, e.g. "TownCentreXVID.avi". Give it a try and report back here. If it works, I'll update the instructions with the fix.

from experimenting-with-sort.

Tehseen-Akhtar avatar Tehseen-Akhtar commented on August 23, 2024

@kubark42
bash: ffmpeg: command not found
This is the error that i get now, sorry if its a basic thing i am quite new to python.

from experimenting-with-sort.

kubark42 avatar kubark42 commented on August 23, 2024

ffmpeg is a command line utility. You'll need to download and install it. Explaining that is outside the scope of this Issue, so I would recommend googling to find more about it.

from experimenting-with-sort.

championway avatar championway commented on August 23, 2024

import cv2
vidcap = cv2.VideoCapture('test/TownCentreXVID.avi')
success,image = vidcap.read()
print success
count = 0
while success:
cv2.imwrite("test/Pictures%d.jpg" % count, image) # save frame as JPEG file
success,image = vidcap.read()
print('Read a new frame: ', success)
count += 1


@Tehseen-Akhtar You can use OpenCV tools to turn the video to jpg

from experimenting-with-sort.

3073 avatar 3073 commented on August 23, 2024

from experimenting-with-sort.

ardianumam avatar ardianumam commented on August 23, 2024

Hi @RahulKumarBazia , seems that this repo uses ground truth boxes for tracking, not really predict by itself, is it right? If yes, what about your repo? Thanks.

from experimenting-with-sort.

cmendozab avatar cmendozab commented on August 23, 2024

@RahulKumarBazia
Hello, could you share the file "TownCentre-groundtruth.top". The original webpage from Oxford is not available anymore. I have been looking around for this .top file to run some example codes which requires it. So far no luck finding the original file.

from experimenting-with-sort.

Related Issues (18)

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.