experimenting-with-sort icon indicating copy to clipboard operation
experimenting-with-sort copied to clipboard

where should i find those pictures?

Open world4jason opened this issue 7 years ago • 17 comments

i got the following error msg

Traceback (most recent call last): File "main.py", line 110, in main() File "main.py", line 56, in main img = io.imread(fn) File "/usr/local/lib/python2.7/dist-packages/skimage/io/_io.py", line 61, in imread img = call_plugin('imread', fname, plugin=plugin, **plugin_args) File "/usr/local/lib/python2.7/dist-packages/skimage/io/manage_plugins.py", line 211, in call_plugin return func(*args, **kwargs) File "/usr/local/lib/python2.7/dist-packages/skimage/io/_plugins/pil_plugin.py", line 35, in imread with open(fname, 'rb') as f: IOError: [Errno 2] No such file or directory: 'test/Pictures1.jpg'

world4jason avatar Nov 23 '17 17:11 world4jason

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

Phoebe-star avatar Dec 20 '17 06:12 Phoebe-star

@world4jason Can you solve it?

JunShao-Hub avatar Dec 30 '17 05:12 JunShao-Hub

@world4jason did you solve it problem ?

3073 avatar Mar 10 '18 18:03 3073

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

3073 avatar Mar 10 '18 19:03 3073

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 avatar Mar 16 '18 03:03 Phoebe-star

@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?

3073 avatar Mar 26 '18 19:03 3073

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.

kubark42 avatar May 30 '18 20:05 kubark42

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

kubark42 avatar May 31 '18 15:05 kubark42

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 avatar Nov 13 '18 15:11 Tehseen-Akhtar

@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 avatar Nov 13 '18 15:11 kubark42

@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.

Tehseen-Akhtar avatar Nov 13 '18 15:11 Tehseen-Akhtar

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.

kubark42 avatar Nov 13 '18 15:11 kubark42

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

championway avatar Nov 27 '18 05:11 championway

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

RahulKumarBazia avatar May 31 '19 09:05 RahulKumarBazia

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

3073 avatar May 31 '19 16:05 3073

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.

ardianumam avatar Jul 03 '19 05:07 ardianumam

@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.

cmendozab avatar Jul 08 '20 00:07 cmendozab