dotnet / dotnet/machinelearning-samples

Mark System.Drawing.Common as Required in ObjectDetection Example

Open
#1,041 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
4.7k
Forks
2.7k
Avg merge
2d 22h
Merged PRs (30d)
1

Description

I was following along with this tutorial and got to the end: https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-onnx#create-helper-functions

and could not compile because Image was not a recognized class. In previous versions, System.Drawing.Common was a transitive dependency and would get installed. It's not now and so the documentation needs updated to require installing this package from NuGet in the Pre-requisites section: https://learn.microsoft.com/en-us/dotnet/machine-learning/tutorials/object-detection-onnx#create-helper-functions

See here as well: https://learn.microsoft.com/en-us/dotnet/core/compatibility/core-libraries/6.0/system-drawing-common-windows-only

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.