public class DetectionModel extends Model
| Constructor and Description |
|---|
DetectionModel(Net network)
Create model from deep learning network.
|
DetectionModel(java.lang.String model)
Create detection model from network represented in one of the supported formats.
|
DetectionModel(java.lang.String model,
java.lang.String config)
Create detection model from network represented in one of the supported formats.
|
| Modifier and Type | Method and Description |
|---|---|
static DetectionModel |
__fromPtr__(long addr) |
void |
detect(Mat frame,
MatOfInt classIds,
MatOfFloat confidences,
MatOfRect boxes)
Given the
input frame, create input blob, run net and return result detections. |
void |
detect(Mat frame,
MatOfInt classIds,
MatOfFloat confidences,
MatOfRect boxes,
float confThreshold)
Given the
input frame, create input blob, run net and return result detections. |
void |
detect(Mat frame,
MatOfInt classIds,
MatOfFloat confidences,
MatOfRect boxes,
float confThreshold,
float nmsThreshold)
Given the
input frame, create input blob, run net and return result detections. |
predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRBconnect, dump, dumpToFile, empty, enableFusion, forward, forward, forward, forward, forward, getFLOPS, getFLOPS, getFLOPS, getFLOPS, getLayer, getLayerId, getLayerNames, getLayersCount, getLayerTypes, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getNativeObjAddr, getParam, getParam, getPerfProfile, getUnconnectedOutLayers, getUnconnectedOutLayersNames, readFromModelOptimizer, readFromModelOptimizer, setHalideScheduler, setInput, setInput, setInput, setInput, setInputShape, setInputsNames, setParam, setPreferableBackend, setPreferableTargetpublic DetectionModel(Net network)
network - Net object.public DetectionModel(java.lang.String model)
model and config arguments does not matter.model - Binary file contains trained weights.public DetectionModel(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 DetectionModel __fromPtr__(long addr)
public void detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes)
input frame, create input blob, run net and return result detections.classIds - Class indexes in result detection.confidences - A set of corresponding confidences.boxes - A set of bounding boxes.frame - automatically generatedpublic void detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes, float confThreshold)
input frame, create input blob, run net and return result detections.classIds - Class indexes in result detection.confidences - A set of corresponding confidences.boxes - A set of bounding boxes.confThreshold - A threshold used to filter boxes by confidences.frame - automatically generatedpublic void detect(Mat frame, MatOfInt classIds, MatOfFloat confidences, MatOfRect boxes, float confThreshold, float nmsThreshold)
input frame, create input blob, run net and return result detections.classIds - Class indexes in result detection.confidences - A set of corresponding confidences.boxes - A set of bounding boxes.confThreshold - A threshold used to filter boxes by confidences.nmsThreshold - A threshold used in non maximum suppression.frame - automatically generatedGenerated on 2020-04-03 16:05:20 / OpenCV 4.3.0