Comments (17)
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.
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.
you should make the fold named 'test' and the 'test' fold is including Pictures1.jpg
from experimenting-with-sort.
@world4jason
Can you solve it?
from experimenting-with-sort.
@world4jason
did you solve it problem ?
from experimenting-with-sort.
@phoebe_star
what is picture1 first. there is no way to enter your own video file.
from experimenting-with-sort.
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.
@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.
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.
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.
@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.
@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.
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.
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.
from experimenting-with-sort.
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.
@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)
- When I save the result figure,figure is smaller and smaller.
- Kalman initialise F,H, P, Q,R
- TownCenter data not showing same results when given with Yolo or SSD detectors
- Trackers not deleting
- can anyone tell me the software to convert .top file to avi or any other format? HOT 1
- How to plug in Tensorflow object detector? HOT 1
- Only for TownCentreXVID.avi
- How to send a signal to kalman object before it is removed?
- .TOP File
- i got the error"No such file or directory: 'TownCentre-groundtruth.top" HOT 5
- Unable to run the project HOT 1
- type of object detector HOT 11
- detector.py HOT 1
- IOError: [Errno 2] No such file or directory: 'TownCentre-groundtruth.top' HOT 2
- object
- will only work with Oxford Town Centre Dataset HOT 5
- Do the trackers either correlation tracker or kalman filter or scale variant?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from experimenting-with-sort.