Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Loading Video file #6

Open
ghost opened this issue Apr 15, 2011 · 11 comments
Open

Support for Loading Video file #6

ghost opened this issue Apr 15, 2011 · 11 comments

Comments

@ghost
Copy link

ghost commented Apr 15, 2011

I modified the example code to be able to load videofiles directly in Matlab.
Hope anyone else finds this helpful, so I include the diff here: https://gist.github.com/922938

@gionn
Copy link

gionn commented Apr 16, 2011

It would be better if you at least post patches on gist ( https://gist.github.com/ ) and link them here. The standard way to contribute projects on github is to fork them ( http://help.github.com/fork-a-repo/ ).

@ghost
Copy link
Author

ghost commented Apr 16, 2011

Thanks gionn, I am very new to this git stuff and did not know where to put it. ^^'

@Sballest
Copy link

Sballest commented May 4, 2011

Hey there,
Could you explain a little bit more how to use your "patch"

Indeed, I have manually change all the .m files according to the .diff file.
And I don't know how to make the TLD able to read videos.

Thank you in advance

@ghost
Copy link
Author

ghost commented May 4, 2011

if you run the demo as usual matlab should ask you to open a videofile. any videofile supported by the matlab videoreader will work. :)

@Sballest
Copy link

Sballest commented May 4, 2011

Do you mean run the demo by launching run_tld.m in matlab?

Also do I need the " Image acquisition toolbox" for make it work?

@ghost
Copy link
Author

ghost commented May 4, 2011

yes, exactly.

hmm... the matlab reference doesn't really say to which toolbox the video function belong. i only tested it on 2011b. maybe you have a outdated version?

@Sballest
Copy link

Sballest commented May 4, 2011

Yep R2010a

But, strangely, when I launch run_tld, nobody ask me anything...

May you send me your modified m file (or maybe your whole "TLD_opensource") ?

sebastien.ballesta #at# isc.cnrs.fr

@marh
Copy link

marh commented May 17, 2011

I tried to apply the patch out of the programs rootfolder (the same in which run_TLD.m can be found), but i get some errors:

marh@mypc:/zk00006-OpenTLD-8a6934d> patch -i tldvideofile.diff 
patching file img_get.m
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file img_get.m.rej
patching file run_TLD.m
patching file tldInitFirstFrame.m
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file tldInitFirstFrame.m.rej
patching file tldInitSource.m
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file tldInitSource.m.rej

Any ideas?

@ghost
Copy link
Author

ghost commented May 17, 2011

hmm.... maybe opentld has changed a little since i created the patch.
try applying the changes manually, it's just a couple of lines. :)

regards
Hideki

On Tue, May 17, 2011 at 6:19 PM, marh
reply@reply.github.com
wrote:

I tried to apply the patch out of the programs rootfolder (the same in which run_TLD.m can be found), but i get some errors:

marh@mypc:/zk00006-OpenTLD-8a6934d> patch -i tldvideofile.diff
patching file img_get.m
Hunk #1 FAILED at 18.
1 out of 1 hunk FAILED -- saving rejects to file img_get.m.rej
patching file run_TLD.m
patching file tldInitFirstFrame.m
Hunk #1 FAILED at 22.
1 out of 1 hunk FAILED -- saving rejects to file tldInitFirstFrame.m.rej
patching file tldInitSource.m
patch unexpectedly ends in middle of line
Hunk #1 FAILED at 16.
1 out of 1 hunk FAILED -- saving rejects to file tldInitSource.m.rej

Any ideas?

Reply to this email directly or view it on GitHub:
#6 (comment)

@stellamarie
Copy link

nice! i applied the changes manually, and it works beautifully. i just have to make sure to give it an approved file type, and it works great :). nice patch!

@compiaffe
Copy link

Ghost is a deleted account now... Is there still code to load a video directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants