patrikhuber / 4dface

Real-time 3D face tracking and reconstruction from 2D video
https://www.4dface.io
Apache License 2.0
793 stars 248 forks source link

Error in running the INSTALL target #7

Closed Adra8373 closed 8 years ago

Adra8373 commented 8 years ago

Hi Patrik

Thanks for the code

I have this error message when I try to build the install project in /visual Studio 2015.

Unhandled exception at 0x000007FEFCCEA06D in 4dface.exe: Microsoft C++ exception: cereal::Exception at memory location 0x00000000001C0F40.

patrikhuber commented 8 years ago

Hi,

I don't think this error can occur when building, so I don't think this has anything to do with the INSTALL target. I think you're running 4dface.exe actually. In that case can you please run it in debug mode and pinpoint the exact line where the problem occurs in the 4dface code? You'll find all you need in the callstack window. It might just be that you give it a wrong path or file.

Adra8373 commented 8 years ago

Hi

Thanks It works now

But I want to run on a video, how can I do that. It just works with a camera.

Regards

patrikhuber commented 8 years ago

Run 4dface.exe --help. You can simply give it a video with the -i switch.

Adra8373 commented 8 years ago

This is an error that I got

C:\phd\codes\4dface-master\build\Debug>4dface.exe -i Copy of bgia5a.mpg warning: Error opening file (../../modules/highgui/src/cap_ffmpeg_impl.hpp:537) Couldn't open the given file or camera 0.

patrikhuber commented 8 years ago

Try without spaces in the filename. If that doesn't work either, maybe your OpenCV has problems reading mpg files?