ClassificationModel (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.dnn
Class ClassificationModel
- java.lang.Object
-
- org.opencv.dnn.Model
-
- org.opencv.dnn.ClassificationModel
-
public class ClassificationModel extends ModelThis class represents high-level API for classification models. ClassificationModel allows to set params for preprocessing input image. ClassificationModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and return top-1 prediction.
-
-
Field Summary
-