The following line of code
SchemaDefinition def = SchemaDefinition.Create(typeof(ImageData), SchemaDefinition.Direction.Read);
throws
System.ArgumentOutOfRangeException: 'Could not determine an IDataView type and registered custom types for member Image (Parameter 'rawType')'
when using Microsoft.ML.ImageAnalytics version 2.0.
The same code works with no exceptions in Microsoft.ML.ImageAnalytics version 1.71
The ImageData class is defined as follows:
public class ImageData
{
[ColumnName("image")]
[ImageType(height:100, width:100)]
public Bitmap Image { get; set; }
}
Is there anything that can be done in order to avoid this exception?