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

Bitmap/BitmapSource to RawImage #609

Closed
deepakakkil001 opened this issue Nov 16, 2018 · 2 comments
Closed

Bitmap/BitmapSource to RawImage #609

deepakakkil001 opened this issue Nov 16, 2018 · 2 comments

Comments

@deepakakkil001
Copy link

deepakakkil001 commented Nov 16, 2018

The RawImage class, which is a wrapper for OpenCV Mat is used in all the C# examples.
The examples show how to create a RawImage from image or video files/directly from camera feed using sequence reader. Is there a built-in way to convert a C# image format, such as Bitmap/BitmapSource/WriteableBitmap to the RawImage type?

I have a pre-processed image in WriteableBitmap format that I need to feed into the pose estimation method.

@TadasBaltrusaitis
Copy link
Owner

I haven't implemented that functionality, but I'll look into it for the next version.

One option would be to save the WriteableBitmap as an image and use a sequence or image reader on that data.

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

This is implemented in the newest release.

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

2 participants