Support for Loading Video file
opened this issue · comments
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
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/ ).
Thanks gionn, I am very new to this git stuff and did not know where to put it. ^^'
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
if you run the demo as usual matlab should ask you to open a videofile. any videofile supported by the matlab videoreader will work. :)
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?
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?
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
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?
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.rejAny ideas?
Reply to this email directly or view it on GitHub:
#6 (comment)
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!
Ghost is a deleted account now... Is there still code to load a video directly?