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
Model not supported #22
Comments
I greatly appreciate your response and help on this problem, thank you very much for that observation. |
|
Hi @FunJoo hope I am not disturbing you. Rephrasing my question, how can I display the result in a PictureBox? |
Hi, @uri-el99 I do not use WinForm, but I can provide you with a method given by ChatGPT4. public static SixLabors.ImageSharp.Image<Rgb24> ConvertToImageSharpImage(System.Drawing.Image systemDrawingImage)
{
using MemoryStream memoryStream = new MemoryStream();
systemDrawingImage.Save(memoryStream, System.Drawing.Imaging.ImageFormat.Png);
memoryStream.Seek(0, SeekOrigin.Begin);
return SixLabors.ImageSharp.Image.Load<Rgb24>(memoryStream);
}
public static System.Drawing.Image ConvertToSystemDrawingImage(SixLabors.ImageSharp.Image<Rgb24> imageSharpImage)
{
using MemoryStream memoryStream = new MemoryStream();
imageSharpImage.Save(memoryStream, new SixLabors.ImageSharp.Formats.Png.PngEncoder());
memoryStream.Seek(0, SeekOrigin.Begin);
return System.Drawing.Image.FromStream(memoryStream);
} When encountering situations where |
@FunJoo Thanks for all your support, using the information you provided, I was able to solve that problem, and, although others came up later, I was able to solve them. |
Hello author, hope you are doing well.
I am currently trying to use the NuGet Package but I am getting some troubles.
I am starting with programming so I´m a bigginer, I used your code reference but I get this: System.InvalidOperationException: 'The loaded model does not support this task' and I do not why, I´ve searched for some solutions but I´m still stuck.
Can you help me out? I´d highly apreciate.
The text was updated successfully, but these errors were encountered: