public class DetectionModel extends Model
Modifier | Constructor and Description |
---|---|
protected |
DetectionModel(long addr) |
|
DetectionModel(Net network)
Create model from deep learning network.
|
|
DetectionModel(String model)
Create detection model from network represented in one of the supported formats.
|
|
DetectionModel(String model,
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. |
protected void |
finalize() |
predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB
connect, 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, setHalideScheduler, setInput, setInput, setInput, setInput, setInputsNames, setParam, setPreferableBackend, setPreferableTarget
protected DetectionModel(long addr)
public DetectionModel(Net network)
network
- Net object.public DetectionModel(String model, String config)
model
and config
arguments does not matter.model
- Binary file contains trained weights.config
- Text file contains network configuration.public DetectionModel(String model)
model
and config
arguments does not matter.model
- Binary file contains trained weights.public static DetectionModel __fromPtr__(long addr)
public 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 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)
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 generatedGenerated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2