public class ImageClassifierVggCifar10 extends BaseImageClassifier
ImageClassifier.Scorecategories, categoryBest, categoryScores, imageRgb, imageSize, imageType, massage, network, tensorInput, tensorOutput| Constructor and Description |
|---|
ImageClassifierVggCifar10() |
| Modifier and Type | Method and Description |
|---|---|
void |
loadModel(java.io.File directory)
Expects there to be two files in the provided directory:
YuvStatistics.txt model.net |
protected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> |
preprocess(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image)
Massage the input image into a format recognized by the network
|
classify, getAllResults, getBestResult, getCategories, getImageRgb, getInputType, innerProcesspublic void loadModel(java.io.File directory)
throws java.io.IOException
directory - Directory containing model filesjava.io.IOException - Throw if anything goes wrong while reading dataprotected boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> preprocess(boofcv.struct.image.Planar<boofcv.struct.image.GrayF32> image)
BaseImageClassifierpreprocess in class BaseImageClassifier