@Namespace(value="dai::node") @NoOffset @Properties(inherit=depthai.class) public class SpatialDetectionNetwork extends SpatialDetectionNetworkPropertiesNode
Node.Connection, Node.DatatypeHierarchy, Node.Input, Node.InputMap, Node.Output, Node.OutputMapPointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
SpatialDetectionNetwork(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Node.Output |
boundingBoxMapping()
Outputs mapping of detected bounding boxes relative to depth map
Suitable for when displaying remapped bounding boxes on depth frame
|
Node.Input |
input()
Input message with data to be inferred upon
Default queue is blocking with size 5
|
Node.Input |
inputDepth()
Input message with depth data used to retrieve spatial information about detected object
Default queue is non-blocking with size 4
|
static BytePointer |
NAME() |
Node.Output |
out()
Outputs ImgDetections message that carries parsed detection results.
|
Node.Output |
passthrough()
Passthrough message on which the inference was performed.
|
Node.Output |
passthroughDepth()
Passthrough message for depth frame on which the spatial location calculation was performed.
|
void |
setBoundingBoxScaleFactor(float scaleFactor)
Specifies scale factor for detected bounding boxes.
|
void |
setDepthLowerThreshold(int lowerThreshold)
Specifies lower threshold in depth units (millimeter by default) for depth values which will used to calculate spatial data
|
void |
setDepthUpperThreshold(int upperThreshold)
Specifies upper threshold in depth units (millimeter by default) for depth values which will used to calculate spatial data
|
void |
setSpatialCalculationAlgorithm(depthai.SpatialLocationCalculatorAlgorithm calculationAlgorithm)
Specifies spatial location calculator algorithm: Average/Min/Max
|
void |
setSpatialCalculationAlgorithm(int calculationAlgorithm) |
void |
setSpatialCalculationStepSize(int stepSize)
Specifies spatial location calculator step size for depth calculation.
|
Node.Output |
spatialLocationCalculatorOutput()
Output of SpatialLocationCalculator node, which is used internally by SpatialDetectionNetwork.
|
clone, getName, properties, propertiesgetConfidenceThreshold, outNetwork, setConfidenceThresholdpropertiesgetNumInferenceThreads, inputs, passthroughs, setBlob, setBlob, setBlobPath, setNumInferenceThreads, setNumNCEPerInferenceThread, setNumPoolFramespropertiesassetManager, getAssetManager, getInputRefs, getInputs, getOutputRefs, getOutputs, getParentPipeline, getProperties, getRequiredOpenVINOVersion, id, inputMapRefs, inputRefs, outputMapRefs, outputRefs, propertiesHolder, setInputMapRefs, setInputRefs, setOutputMapRefs, setOutputRefsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic SpatialDetectionNetwork(Pointer p)
Pointer(Pointer).@MemberGetter @Cast(value="const char*") public static BytePointer NAME()
@MemberGetter @ByRef public Node.Input input()
input in class NeuralNetwork@MemberGetter @ByRef public Node.Input inputDepth()
@MemberGetter @ByRef public Node.Output out()
out in class DetectionNetwork@MemberGetter @ByRef public Node.Output boundingBoxMapping()
@MemberGetter @ByRef public Node.Output passthrough()
passthrough in class NeuralNetwork@MemberGetter @ByRef public Node.Output passthroughDepth()
@MemberGetter @ByRef public Node.Output spatialLocationCalculatorOutput()
public void setBoundingBoxScaleFactor(float scaleFactor)
scaleFactor - Scale factor must be in the interval (0,1].public void setDepthLowerThreshold(@Cast(value="uint32_t") int lowerThreshold)
lowerThreshold - LowerThreshold must be in the interval [0,upperThreshold] and less than upperThreshold.public void setDepthUpperThreshold(@Cast(value="uint32_t") int upperThreshold)
upperThreshold - UpperThreshold must be in the interval (lowerThreshold,65535].public void setSpatialCalculationAlgorithm(depthai.SpatialLocationCalculatorAlgorithm calculationAlgorithm)
calculationAlgorithm - Calculation algorithm.public void setSpatialCalculationAlgorithm(@Cast(value="dai::SpatialLocationCalculatorAlgorithm") int calculationAlgorithm)
public void setSpatialCalculationStepSize(int stepSize)
stepSize - Step size.Copyright © 2023. All rights reserved.