@Namespace(value="cv::dnn") @Properties(inherit=opencv_dnn.class) public class DetectionModel extends Model
Model.ImplPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
DetectionModel() |
DetectionModel(BytePointer model) |
DetectionModel(BytePointer model,
BytePointer config)
\brief Create detection model from network represented in one of the supported formats.
|
DetectionModel(long size)
Native array allocator.
|
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) |
boolean |
getNmsAcrossClasses()
\brief Getter for nmsAcrossClasses.
|
DetectionModel |
getPointer(long i) |
DetectionModel |
position(long position) |
DetectionModel |
setNmsAcrossClasses(boolean value)
\brief nmsAcrossClasses defaults to false,
such that when non max suppression is used during the detect() function, it will do so per-class.
|
asNet, getImpl, getImplRef, getNetwork_, predict, predict, predict, predict, predict, predict, predict, predict, predict, put, setInputCrop, setInputMean, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTargetaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic DetectionModel(Pointer p)
Pointer(Pointer).public DetectionModel(long size)
Pointer.position(long).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 DetectionModel(@Const @ByRef Net network)
network - [in] Net object.public DetectionModel()
public DetectionModel position(long position)
public DetectionModel getPointer(long i)
getPointer in class Model@ByRef public DetectionModel setNmsAcrossClasses(@Cast(value="bool") boolean value)
value - [in] The new value for nmsAcrossClasses@Cast(value="bool") public boolean getNmsAcrossClasses()
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 © 2022. All rights reserved.