-
Notifications
You must be signed in to change notification settings - Fork 43
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.
![image](https://private-user-images.githubusercontent.com/147002782/272721172-5b738fc9-48b0-4ac7-acfd-974e2b813d39.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM2OTg0OTUsIm5iZiI6MTcyMzY5ODE5NSwicGF0aCI6Ii8xNDcwMDI3ODIvMjcyNzIxMTcyLTViNzM4ZmM5LTQ4YjAtNGFjNy1hY2ZkLTk3NGUyYjgxM2QzOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxNVQwNTAzMTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMjhjODgwOGZiYTcwMzdkZDUyMGNkY2NlM2I2ZTcxOTNhYWUxYTU2YzhjYjAzNGFiMzkyMGJkOGEyYzdiM2YxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9._oIDt6arWqCjUVfvZO-Y1R0g5nJt97ekgG7p7XqeBGc)
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: