@Namespace(value="cv::dnn") @Properties(inherit=opencv_dnn.class) public class DetectionModel extends Model
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
DetectionModel(BytePointer model) |
DetectionModel(BytePointer model,
BytePointer config)
\brief Create detection model from network represented in one of the supported formats.
|
DetectionModel(Net network)
\brief Create model from deep learning network.
|
DetectionModel(Pointer p)
Pointer cast constructor.
|
DetectionModel(String model) |
DetectionModel(String model,
String config) |
Modifier and Type | Method and Description |
---|---|
void |
detect(GpuMat frame,
int[] classIds,
float[] confidences,
RectVector boxes) |
void |
detect(GpuMat frame,
int[] classIds,
float[] confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(GpuMat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes) |
void |
detect(GpuMat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(GpuMat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes) |
void |
detect(GpuMat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(Mat frame,
int[] classIds,
float[] confidences,
RectVector boxes) |
void |
detect(Mat frame,
int[] classIds,
float[] confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(Mat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes) |
void |
detect(Mat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(Mat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes) |
void |
detect(Mat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold)
\brief Given the \p input frame, create input blob, run net and return result detections.
|
void |
detect(UMat frame,
int[] classIds,
float[] confidences,
RectVector boxes) |
void |
detect(UMat frame,
int[] classIds,
float[] confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(UMat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes) |
void |
detect(UMat frame,
IntBuffer classIds,
FloatBuffer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
void |
detect(UMat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes) |
void |
detect(UMat frame,
IntPointer classIds,
FloatPointer confidences,
RectVector boxes,
float confThreshold,
float nmsThreshold) |
position, predict, predict, predict, predict, predict, predict, predict, predict, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB
addLayer, addLayer, addLayerToPrev, addLayerToPrev, connect, connect, connect, dump, dumpToFile, dumpToFile, empty, enableFusion, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forward, forwardAndRetrieve, forwardAsync, forwardAsync, forwardAsync, getFLOPS, getFLOPS, getFLOPS, getFLOPS, getLayer, getLayerId, getLayerId, getLayerNames, getLayersCount, getLayersCount, getLayerShapes, getLayerShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayersShapes, getLayerTypes, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getParam, getParam, getPerfProfile, getPerfProfile, getPerfProfile, getUnconnectedOutLayers, getUnconnectedOutLayersNames, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, readFromModelOptimizer, setHalideScheduler, setHalideScheduler, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInput, setInputShape, setInputShape, setInputsNames, setParam, setPreferableBackend, setPreferableTarget
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zero
public DetectionModel(Pointer p)
Pointer.Pointer(Pointer)
.public DetectionModel(@opencv_core.Str BytePointer model, @opencv_core.Str BytePointer config)
model
- [in] Binary file contains trained weights.config
- [in] Text file contains network configuration.public DetectionModel(@opencv_core.Str BytePointer model)
public DetectionModel(@opencv_core.Str String model, @opencv_core.Str String config)
public DetectionModel(@opencv_core.Str String model)
public void detect(@ByVal Mat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
frame
- [in] The input image.classIds
- [out] Class indexes in result detection.confidences
- [out] A set of corresponding confidences.boxes
- [out] A set of bounding boxes.confThreshold
- [in] A threshold used to filter boxes by confidences.nmsThreshold
- [in] A threshold used in non maximum suppression.public void detect(@ByVal Mat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes)
public void detect(@ByVal Mat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal Mat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes)
public void detect(@ByVal Mat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal Mat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes)
public void detect(@ByVal UMat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal UMat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes)
public void detect(@ByVal UMat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal UMat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes)
public void detect(@ByVal UMat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal UMat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes)
public void detect(@ByVal GpuMat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal GpuMat frame, @StdVector IntPointer classIds, @StdVector FloatPointer confidences, @ByRef RectVector boxes)
public void detect(@ByVal GpuMat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal GpuMat frame, @StdVector IntBuffer classIds, @StdVector FloatBuffer confidences, @ByRef RectVector boxes)
public void detect(@ByVal GpuMat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes, float confThreshold, float nmsThreshold)
public void detect(@ByVal GpuMat frame, @StdVector int[] classIds, @StdVector float[] confidences, @ByRef RectVector boxes)
Copyright © 2020. All rights reserved.