@Namespace(value="cv::dnn") @Properties(inherit=opencv_dnn.class) public class ClassificationModel extends Model
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ClassificationModel(BytePointer model) |
ClassificationModel(BytePointer model,
BytePointer config)
\brief Create classification model from network represented in one of the supported formats.
|
ClassificationModel(Net network)
\brief Create model from deep learning network.
|
ClassificationModel(Pointer p)
Pointer cast constructor.
|
ClassificationModel(String model) |
ClassificationModel(String model,
String config) |
Modifier and Type | Method and Description |
---|---|
IntFloatPair |
classify(GpuMat frame) |
void |
classify(GpuMat frame,
int[] classId,
float[] conf) |
void |
classify(GpuMat frame,
IntBuffer classId,
FloatBuffer conf) |
void |
classify(GpuMat frame,
IntPointer classId,
FloatPointer conf) |
IntFloatPair |
classify(Mat frame)
\brief Given the \p input frame, create input blob, run net and return top-1 prediction.
|
void |
classify(Mat frame,
int[] classId,
float[] conf) |
void |
classify(Mat frame,
IntBuffer classId,
FloatBuffer conf) |
void |
classify(Mat frame,
IntPointer classId,
FloatPointer conf)
\overload
|
IntFloatPair |
classify(UMat frame) |
void |
classify(UMat frame,
int[] classId,
float[] conf) |
void |
classify(UMat frame,
IntBuffer classId,
FloatBuffer conf) |
void |
classify(UMat frame,
IntPointer classId,
FloatPointer conf) |
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 ClassificationModel(Pointer p)
Pointer.Pointer(Pointer)
.public ClassificationModel(@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 ClassificationModel(@opencv_core.Str BytePointer model)
public ClassificationModel(@opencv_core.Str String model, @opencv_core.Str String config)
public ClassificationModel(@opencv_core.Str String model)
@ByVal public IntFloatPair classify(@ByVal Mat frame)
frame
- [in] The input image.@ByVal public IntFloatPair classify(@ByVal UMat frame)
@ByVal public IntFloatPair classify(@ByVal GpuMat frame)
public void classify(@ByVal Mat frame, @ByRef IntPointer classId, @ByRef FloatPointer conf)
public void classify(@ByVal UMat frame, @ByRef IntPointer classId, @ByRef FloatPointer conf)
public void classify(@ByVal GpuMat frame, @ByRef IntPointer classId, @ByRef FloatPointer conf)
public void classify(@ByVal GpuMat frame, @ByRef IntBuffer classId, @ByRef FloatBuffer conf)
Copyright © 2020. All rights reserved.