bogdangon / ehci

Automatically exported from code.google.com/p/ehci
0 stars 0 forks source link

video headtracking #23

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hey there,

thanks for the nice software. I wonder if there's any possibility to use videos 
for headtracking instead of live-recognition from camera. 

Thanks for your help..

Original issue reported on code.google.com by tola...@googlemail.com on 4 Mar 2011 at 12:26

GoogleCodeExporter commented 8 years ago
Hi Tom,

you are welcome.
Yes, there's this option.
Go to the data/config.ini file,
there, you'll find the option: 
OPEN_MOVIE
Just type in there the path of the movie... something like
OPEN_MOVIE test.mpg
Most of the codecs should be supported, but I'm afraid a couple ones will not 
work. I'd suggest converting to the ones that do work.

Best regards,
Daniel

Original comment by danielba...@gmail.com on 5 Mar 2011 at 2:19

GoogleCodeExporter commented 8 years ago
I'll mark this as done, since it's just a doubt, and not a bug, but thank you a 
lot :)

Original comment by danielba...@gmail.com on 5 Mar 2011 at 2:20

GoogleCodeExporter commented 8 years ago
Thanks for relabelling and sorry for not answering so long, but my diploma 
thesis was more important to that point. 
Nevertheless it turned out that change of config.ini in the suggested way 
didn't work (at least for .avi / .mpg / .wmv). I only get an Windows error 
telling me that 6dofhead.exe isn't working properly anymore and will be closed. 
Within the DOS-Box the lines "Opening movie file: test.wmv.168748784" and 
"coult not initialize capturing..." appear. Seems to me like the video file 
wasn't open correctly..

Do you have any ideas what that means and how the problem can be solved?

Best regards,
Tom

Original comment by tola...@googlemail.com on 13 Apr 2011 at 10:45

GoogleCodeExporter commented 8 years ago
As the problem hasn't been solved yet, marking it as "done" seems wrong to me, 
since it obviously prevents further answers.

Is there a codec you know to be accepted of the software? That'd make it much 
easier than trying all possible configurations..

Best regards,
Tom 

Original comment by tola...@googlemail.com on 7 Jun 2011 at 11:31

GoogleCodeExporter commented 8 years ago
That's weird. 
Why does it appear:""Opening movie file: test.wmv.168748784" , I mean, why does 
the 168748784, appear? How is your config.ini?
Thanks a lot, 
Daniel

Original comment by danielba...@gmail.com on 8 Jun 2011 at 3:04

GoogleCodeExporter commented 8 years ago
Thanks for your quick response. Unfortunately, I have no idea why that number 
is appended to the filename. My .ini is as follows.. I've only changed the last 
line.

USE_RANSAC 1
RANSAC_SAMPLES 6
RANSAC_DISTANCE_THRESHOLD 30.0
RANSAC_ITERATIONS 20
CAMERA_INDEX 0
OPEN_MOVIE test.wmv

Tom

Original comment by tola...@googlemail.com on 8 Jun 2011 at 8:08

GoogleCodeExporter commented 8 years ago
Hi Tom, how are you?
Could you please convert your test.wmv to some test.avi and see the result, 
please?
Could you also try to share this video somewhere for us to try it?
It seems to use an OpenCV not supported codec and the easiest way would be to 
convert it, if it's not a problem.
Kind regards,
Daniel

Original comment by danielba...@gmail.com on 8 Jun 2011 at 6:58

GoogleCodeExporter commented 8 years ago
Hey Daniel,

finally I managed to make a nice home vid for you and got it online ;). See 
here: http://tolau.bplaced.net/filemanager/test.avi

As I already mentioned before, converting to .avi doesn't make any difference; 
the same error message as before appears, while live recognition works 
perfectly. 

I hope you can find the problem...

Best regards,
Tom

Original comment by tola...@googlemail.com on 6 Jul 2011 at 7:34

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Tom,

I hadn't opened video files for a while, and I got the same problem here in 
OpenCV 2.2, windows... That's quite weird. Maybe we should look for help on 
OpenCV forums. But it is certainly some ffmpeg or codec related problem...

Original comment by danielba...@gmail.com on 6 Jul 2011 at 2:57

GoogleCodeExporter commented 8 years ago

Original comment by danielba...@gmail.com on 6 Jul 2011 at 2:58

GoogleCodeExporter commented 8 years ago
Hi Daniel,

I've just found an OpenCV 2.3 version, does that help?. Unfortunately, I'm not 
that skilled in compiling, etc. and have no proper understanding of that whole 
programming stuff, so that it's even very hard for me to understand the OpenCV 
installation guide. So could you maybe tell me a forum that's worth watching / 
asking? I'm afraid I could google for hours finding only forums I'd be making a 
fool of myself by asking inappropriate questions.

Best regards,
Tom

Original comment by tola...@googlemail.com on 8 Jul 2011 at 8:48