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

OpenFaceOffline.exe is crush when input is image #694

Closed
abdou31 opened this issue May 7, 2019 · 11 comments
Closed

OpenFaceOffline.exe is crush when input is image #694

abdou31 opened this issue May 7, 2019 · 11 comments

Comments

@abdou31
Copy link

abdou31 commented May 7, 2019

I get this erreur when i try to open image to test it with Openfaceoffline.exe

image

How to solve this?

@TadasBaltrusaitis
Copy link
Owner

Can you provide more details for me to be able to reproduce this error? E.g. the data image you executed it on, or does it happen for all images?

@abdou31
Copy link
Author

abdou31 commented May 8, 2019

It happens for all images ,
Note : That I have compiled this project in windows 10 x64 and i have copied this folder that contains openface copied to my external storage and i formated my PC and i reinstall windows 10 again and i just copied from my external storage to the new windows 10 installed
I dont think that what i have do maybe give error like this .

@TadasBaltrusaitis
Copy link
Owner

Would it be possible for you to run the project with the debugger attached (e.g. from Visual Studio directly). This will allow you to better debug what might be causing the issue, by identifying which line of code is causing this.

@abdou31
Copy link
Author

abdou31 commented May 8, 2019

After running with debugger (visual studio 2017 ) i get this :
image

@TadasBaltrusaitis
Copy link
Owner

It seems to fail when writing image out to disk. Could you try running OpenFace as administrator? It might be you don't have write privileges to the folder.

@abdou31
Copy link
Author

abdou31 commented May 12, 2019

Doesn't work also when i runing as administrator .

@TadasBaltrusaitis
Copy link
Owner

It seems that for some reason the extension to the output is not added correctly, can you untick record aligned images from output in the GUI and try again?

@abdou31
Copy link
Author

abdou31 commented May 14, 2019

If you mean like this, it doesn't work :
sss
sas

@JerryGan2
Copy link

windows8.1
It crash when OpenFaceOffline.exe ->Files ->OpenImages.
But the Newest release build(https://github.com/TadasBaltrusaitis/OpenFace/releases/download/OpenFace_2.0.5/OpenFace_2.0.5_win_x64.zip) work well。

problem crash in
RecorderOpenFace.cpp
bool out_success = cv::imwrite(tracked_data.first, tracked_data.second); //line 106
tracked_data.first is "imagename.“. without extension.

modify RecorderOpenFaceParameters.cpp
add
this->image_format_aligned = "bmp";
this->image_format_visualization = "jpg";
after
this->output_codec = "DIVX"; //line 178
may solve this problem.

@TadasBaltrusaitis
Copy link
Owner

Thanks for the info, I'm further investigating this.

TadasBaltrusaitis added a commit that referenced this issue Jul 13, 2019
Change log:

Moving to C++17. This means that the code can only be build using C++17 compilers (e.g. g++ >8 and Visual Studio 2017, clang > 5), fixing related bugs - (#698, #629, #641)
Removing an explicit dependency on boost (all the filesystem operations are performed using std::filesystem or boost::filesysteme). If boost is available it will used boost:filesystem, otherwise std::filesystem (this requires C++17)
Visual Studio 2017 is now the main version for Visual Studio builds, VS 2015 is no longer supported
Updating OpenCV to 4.1 version (#511)
Fixing a bug with output images when using GUI (#694)
Updating RAWImage - #609, so it can be initialized from System.Drawing.Bitmap directly
Fixing overlap detection for multi face tracking (#693)
@TadasBaltrusaitis
Copy link
Owner

Should be fixed in the new version.

ratgen pushed a commit to ratgen/OpenFace that referenced this issue Jul 7, 2022
Change log:

Moving to C++17. This means that the code can only be build using C++17 compilers (e.g. g++ >8 and Visual Studio 2017, clang > 5), fixing related bugs - (TadasBaltrusaitis#698, TadasBaltrusaitis#629, TadasBaltrusaitis#641)
Removing an explicit dependency on boost (all the filesystem operations are performed using std::filesystem or boost::filesysteme). If boost is available it will used boost:filesystem, otherwise std::filesystem (this requires C++17)
Visual Studio 2017 is now the main version for Visual Studio builds, VS 2015 is no longer supported
Updating OpenCV to 4.1 version (TadasBaltrusaitis#511)
Fixing a bug with output images when using GUI (TadasBaltrusaitis#694)
Updating RAWImage - TadasBaltrusaitis#609, so it can be initialized from System.Drawing.Bitmap directly
Fixing overlap detection for multi face tracking (TadasBaltrusaitis#693)
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

3 participants