public class ClassificationModel extends Model
| Constructor and Description |
|---|
ClassificationModel(Net network)
Create model from deep learning network.
|
ClassificationModel(java.lang.String model)
Create classification model from network represented in one of the supported formats.
|
ClassificationModel(java.lang.String model,
java.lang.String config)
Create classification model from network represented in one of the supported formats.
|
| Modifier and Type | Method and Description |
|---|---|
static ClassificationModel |
__fromPtr__(long addr) |
void |
classify(Mat frame,
int[] classId,
float[] conf) |
getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTargetpublic ClassificationModel(Net network)
network - Net object.public ClassificationModel(java.lang.String model)
model and config arguments does not matter.model - Binary file contains trained weights.public ClassificationModel(java.lang.String model,
java.lang.String config)
model and config arguments does not matter.model - Binary file contains trained weights.config - Text file contains network configuration.public static ClassificationModel __fromPtr__(long addr)
public void classify(Mat frame, int[] classId, float[] conf)
Generated on 2021-12-25 08:13:27 / OpenCV 4.5.5