experimenting-with-sort
experimenting-with-sort copied to clipboard
where should i find those pictures?
i got the following error msg
Traceback (most recent call last):
File "main.py", line 110, in
you should make the fold named 'test' and the 'test' fold is including Pictures1.jpg
@world4jason Can you solve it?
@world4jason did you solve it problem ?
@phoebe_star what is picture1 first. there is no way to enter your own video file.
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
@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?
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.
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
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.
@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.
@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.
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.
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
If anyone still facing the issues, i made the implementation simpler, have a look at https://github.com/RahulKumarBazia/experimenting-with-sort
sort is bullshit !!! it is online tracking
On Fri, May 31, 2019 at 2:36 AM Rahul Kumar Bazia [email protected] wrote:
If anyone still facing the issues, i made the implementation simpler, have a look at https://github.com/RahulKumarBazia/experimenting-with-sort
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ZidanMusk/experimenting-with-sort/issues/1?email_source=notifications&email_token=AIC6A5NAUD7MC5OYCXTVZJ3PYDWSLA5CNFSM4EFEHXY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWUXREY#issuecomment-497645715, or mute the thread https://github.com/notifications/unsubscribe-auth/AIC6A5MH276DBM724KD5WADPYDWSLANCNFSM4EFEHXYQ .
-- tttttggggggttttttg
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.
@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.