From 6ba63f16017659c4ad1bdaf30a1e37a741bedb6b Mon Sep 17 00:00:00 2001 From: Samuel Audet Date: Tue, 5 Dec 2023 21:50:24 +0900 Subject: [PATCH] * Upgrade presets for DNNL 3.3.2, TensorFlow Lite 2.15.0, DepthAI 2.23.0, ONNX Runtime 1.16.3 --- CHANGELOG.md | 2 +- README.md | 4 +- depthai/README.md | 4 +- depthai/cppbuild.sh | 2 +- depthai/platform/pom.xml | 2 +- depthai/pom.xml | 2 +- depthai/samples/pom.xml | 2 +- .../java/org/bytedeco/depthai/ADatatype.java | 2 +- .../org/bytedeco/depthai/ADatatypeVector.java | 4 +- .../java/org/bytedeco/depthai/AprilTag.java | 2 +- .../org/bytedeco/depthai/AprilTagConfig.java | 2 +- .../org/bytedeco/depthai/AprilTagNode.java | 2 +- .../bytedeco/depthai/AprilTagProperties.java | 2 +- .../depthai/AprilTagPropertiesNode.java | 2 +- .../AprilTagPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/AprilTags.java | 18 +- .../gen/java/org/bytedeco/depthai/Asset.java | 2 +- .../org/bytedeco/depthai/AssetManager.java | 2 +- .../org/bytedeco/depthai/AssetVector.java | 4 +- .../java/org/bytedeco/depthai/AssetView.java | 2 +- .../gen/java/org/bytedeco/depthai/Assets.java | 2 +- .../org/bytedeco/depthai/AssetsMutable.java | 2 +- .../org/bytedeco/depthai/BoardConfig.java | 33 +- .../depthai/BoardConfigIMUOptional.java | 3 +- .../depthai/BoardConfigUVCOptional.java | 34 + .../org/bytedeco/depthai/BoolFloatTuple.java | 2 +- .../org/bytedeco/depthai/BoolOptional.java | 3 +- .../depthai/BoolStringByteVectorTuple.java | 2 +- .../bytedeco/depthai/BootloaderConfig.java | 2 +- .../gen/java/org/bytedeco/depthai/Buffer.java | 33 +- .../org/bytedeco/depthai/ByteGPIOMap.java | 2 +- .../org/bytedeco/depthai/ByteUARTMap.java | 2 +- .../java/org/bytedeco/depthai/ByteVector.java | 4 +- .../bytedeco/depthai/CalibrationHandler.java | 94 ++- .../org/bytedeco/depthai/CallbackHandler.java | 2 +- .../gen/java/org/bytedeco/depthai/Camera.java | 354 +++++++++++ ...CameraBoardSocketBoardConfigCameraMap.java | 2 +- .../CameraBoardSocketCameraInfoMap.java | 2 +- .../depthai/CameraBoardSocketStringMap.java | 2 +- .../org/bytedeco/depthai/CameraControl.java | 14 +- .../org/bytedeco/depthai/CameraFeatures.java | 10 +- .../CameraImageOrientationOptional.java | 3 +- .../java/org/bytedeco/depthai/CameraInfo.java | 2 +- .../bytedeco/depthai/CameraProperties.java | 229 +++++++ .../depthai/CameraPropertiesNode.java | 29 + .../depthai/CameraPropertiesSerializable.java | 48 ++ .../bytedeco/depthai/CameraSensorConfig.java | 2 +- .../depthai/CameraSensorTypeOptional.java | 3 +- .../org/bytedeco/depthai/ChipTemperature.java | 2 +- .../org/bytedeco/depthai/ColorCamera.java | 17 +- .../depthai/ColorCameraProperties.java | 19 +- .../depthai/ColorCameraPropertiesNode.java | 2 +- .../ColorCameraPropertiesSerializable.java | 2 +- .../org/bytedeco/depthai/ConnectionHash.java | 2 +- .../org/bytedeco/depthai/ConnectionSet.java | 3 +- .../java/org/bytedeco/depthai/CpuUsage.java | 2 +- .../java/org/bytedeco/depthai/CrashDump.java | 2 +- .../org/bytedeco/depthai/DaiProperties.java | 2 +- .../org/bytedeco/depthai/DataInputQueue.java | 2 +- .../org/bytedeco/depthai/DataOutputQueue.java | 2 +- .../bytedeco/depthai/DetectionNetwork.java | 2 +- .../depthai/DetectionNetworkProperties.java | 2 +- .../DetectionNetworkPropertiesNode.java | 2 +- ...etectionNetworkPropertiesSerializable.java | 2 +- .../org/bytedeco/depthai/DetectionParser.java | 2 +- .../depthai/DetectionParserOptions.java | 2 +- .../depthai/DetectionParserProperties.java | 2 +- .../DetectionParserPropertiesNode.java | 2 +- ...DetectionParserPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/Device.java | 14 +- .../java/org/bytedeco/depthai/DeviceBase.java | 78 ++- .../bytedeco/depthai/DeviceBootloader.java | 2 +- .../java/org/bytedeco/depthai/DeviceInfo.java | 2 +- .../org/bytedeco/depthai/EdgeDetector.java | 2 +- .../bytedeco/depthai/EdgeDetectorConfig.java | 14 +- .../depthai/EdgeDetectorConfigData.java | 2 +- .../depthai/EdgeDetectorProperties.java | 2 +- .../depthai/EdgeDetectorPropertiesNode.java | 2 +- .../EdgeDetectorPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/EepromData.java | 9 +- .../bytedeco/depthai/EepromDataOptional.java | 3 +- .../java/org/bytedeco/depthai/Extrinsics.java | 2 +- .../depthai/FloatFloatPairVector.java | 2 +- .../org/bytedeco/depthai/FloatOptional.java | 3 +- .../bytedeco/depthai/FloatVectorVector.java | 2 +- .../depthai/FloatVectorVectorIntIntTuple.java | 2 +- .../bytedeco/depthai/GlobalProperties.java | 2 +- .../depthai/GlobalPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/IMU.java | 2 +- .../java/org/bytedeco/depthai/IMUData.java | 2 +- .../java/org/bytedeco/depthai/IMUPacket.java | 2 +- .../org/bytedeco/depthai/IMUProperties.java | 2 +- .../bytedeco/depthai/IMUPropertiesNode.java | 2 +- .../depthai/IMUPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/IMUReport.java | 2 +- .../depthai/IMUReportAccelerometer.java | 2 +- .../bytedeco/depthai/IMUReportGyroscope.java | 2 +- .../depthai/IMUReportMagneticField.java | 2 +- .../depthai/IMUReportRotationVectorWAcc.java | 2 +- .../org/bytedeco/depthai/IMUSensorConfig.java | 2 +- .../java/org/bytedeco/depthai/ImageManip.java | 2 +- .../bytedeco/depthai/ImageManipConfig.java | 24 +- .../depthai/ImageManipProperties.java | 2 +- .../depthai/ImageManipPropertiesNode.java | 2 +- .../ImageManipPropertiesSerializable.java | 2 +- .../org/bytedeco/depthai/ImgDetection.java | 2 +- .../org/bytedeco/depthai/ImgDetections.java | 18 +- .../java/org/bytedeco/depthai/ImgFrame.java | 19 +- .../java/org/bytedeco/depthai/IntIntMap.java | 47 ++ .../org/bytedeco/depthai/IntOptional.java | 3 +- .../java/org/bytedeco/depthai/IntVector.java | 4 +- .../bytedeco/depthai/LogLevelOptional.java | 3 +- .../java/org/bytedeco/depthai/LogMessage.java | 2 +- .../bytedeco/depthai/LongNodeObjInfoMap.java | 4 +- .../java/org/bytedeco/depthai/MemoryInfo.java | 2 +- .../depthai/MobileNetDetectionNetwork.java | 2 +- ...bileNetDetectionNetworkPropertiesNode.java | 2 +- .../MobileNetSpatialDetectionNetwork.java | 2 +- ...SpatialDetectionNetworkPropertiesNode.java | 2 +- .../java/org/bytedeco/depthai/MonoCamera.java | 15 +- .../depthai/MonoCameraProperties.java | 13 +- .../depthai/MonoCameraPropertiesNode.java | 29 + .../MonoCameraPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/NNData.java | 18 +- .../org/bytedeco/depthai/NetworkConfig.java | 2 +- .../org/bytedeco/depthai/NeuralNetwork.java | 2 +- .../depthai/NeuralNetworkProperties.java | 2 +- .../depthai/NeuralNetworkPropertiesNode.java | 2 +- .../NeuralNetworkPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/Node.java | 2 +- .../depthai/NodeConnectionSchema.java | 2 +- .../depthai/NodeIdConnectionSetMap.java | 4 +- .../org/bytedeco/depthai/NodeIdNodeMap.java | 4 +- .../java/org/bytedeco/depthai/NodeIoInfo.java | 2 +- .../org/bytedeco/depthai/NodeObjInfo.java | 2 +- .../java/org/bytedeco/depthai/NodeVector.java | 4 +- .../org/bytedeco/depthai/ObjectTracker.java | 2 +- .../depthai/ObjectTrackerProperties.java | 2 +- .../depthai/ObjectTrackerPropertiesNode.java | 2 +- .../ObjectTrackerPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/OpenVINO.java | 2 +- .../gen/java/org/bytedeco/depthai/Path.java | 2 +- .../java/org/bytedeco/depthai/Pipeline.java | 5 +- .../org/bytedeco/depthai/PipelineImpl.java | 2 +- .../org/bytedeco/depthai/PipelineSchema.java | 2 +- .../java/org/bytedeco/depthai/Point2f.java | 2 +- .../org/bytedeco/depthai/Point2fVector.java | 4 +- .../java/org/bytedeco/depthai/Point3f.java | 2 +- .../org/bytedeco/depthai/ProfilingData.java | 40 ++ .../bytedeco/depthai/RawAprilTagConfig.java | 2 +- .../org/bytedeco/depthai/RawAprilTags.java | 7 +- .../java/org/bytedeco/depthai/RawBuffer.java | 6 +- .../bytedeco/depthai/RawCameraControl.java | 2 +- .../depthai/RawEdgeDetectorConfig.java | 2 +- .../java/org/bytedeco/depthai/RawIMUData.java | 2 +- .../bytedeco/depthai/RawImageManipConfig.java | 5 +- .../bytedeco/depthai/RawImgDetections.java | 7 +- .../org/bytedeco/depthai/RawImgFrame.java | 5 +- .../java/org/bytedeco/depthai/RawNNData.java | 7 +- .../depthai/RawSpatialImgDetections.java | 7 +- .../RawSpatialLocationCalculatorConfig.java | 2 +- .../bytedeco/depthai/RawSpatialLocations.java | 7 +- .../depthai/RawStereoDepthConfig.java | 2 +- .../depthai/RawSystemInformation.java | 2 +- .../org/bytedeco/depthai/RawToFConfig.java | 100 +++ .../org/bytedeco/depthai/RawTracklets.java | 7 +- .../gen/java/org/bytedeco/depthai/Rect.java | 2 +- .../org/bytedeco/depthai/RotatedRect.java | 2 +- .../gen/java/org/bytedeco/depthai/SPIOut.java | 2 +- .../bytedeco/depthai/SPIOutProperties.java | 2 +- .../depthai/SPIOutPropertiesNode.java | 2 +- .../depthai/SPIOutPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/Size2f.java | 2 +- .../org/bytedeco/depthai/SizeTOptional.java | 3 +- .../depthai/SpatialDetectionNetwork.java | 2 +- .../SpatialDetectionNetworkProperties.java | 2 +- ...SpatialDetectionNetworkPropertiesNode.java | 2 +- ...etectionNetworkPropertiesSerializable.java | 2 +- .../bytedeco/depthai/SpatialImgDetection.java | 2 +- .../depthai/SpatialImgDetections.java | 18 +- .../depthai/SpatialLocationCalculator.java | 2 +- .../SpatialLocationCalculatorConfig.java | 14 +- .../SpatialLocationCalculatorConfigData.java | 2 +- ...ialLocationCalculatorConfigThresholds.java | 2 +- .../SpatialLocationCalculatorData.java | 18 +- .../SpatialLocationCalculatorProperties.java | 2 +- ...atialLocationCalculatorPropertiesNode.java | 2 +- ...ationCalculatorPropertiesSerializable.java | 2 +- .../bytedeco/depthai/SpatialLocations.java | 2 +- .../org/bytedeco/depthai/StereoDepth.java | 2 +- .../bytedeco/depthai/StereoDepthConfig.java | 2 +- .../depthai/StereoDepthProperties.java | 14 +- .../depthai/StereoDepthPropertiesNode.java | 2 +- .../StereoDepthPropertiesSerializable.java | 2 +- .../bytedeco/depthai/StereoRectification.java | 2 +- .../bytedeco/depthai/StreamPacketDesc.java | 2 +- .../depthai/StringAssetViewPairVector.java | 2 +- .../bytedeco/depthai/StringIntIntTuple.java | 2 +- .../bytedeco/depthai/StringIntVectorMap.java | 2 +- .../bytedeco/depthai/StringNodeInputMap.java | 2 +- .../depthai/StringNodeInputMapMap.java | 2 +- .../bytedeco/depthai/StringNodeIoInfoMap.java | 2 +- .../bytedeco/depthai/StringNodeOutputMap.java | 2 +- .../depthai/StringNodeOutputMapMap.java | 2 +- .../org/bytedeco/depthai/StringOptional.java | 3 +- .../bytedeco/depthai/StringStringTuple.java | 2 +- .../bytedeco/depthai/StringTensorInfoMap.java | 2 +- .../org/bytedeco/depthai/StringVector.java | 4 +- .../bytedeco/depthai/SystemInformation.java | 2 +- .../org/bytedeco/depthai/SystemLogger.java | 2 +- .../depthai/SystemLoggerProperties.java | 2 +- .../depthai/SystemLoggerPropertiesNode.java | 2 +- .../SystemLoggerPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/TensorInfo.java | 2 +- .../java/org/bytedeco/depthai/Timestamp.java | 2 +- .../gen/java/org/bytedeco/depthai/ToF.java | 54 ++ .../java/org/bytedeco/depthai/ToFConfig.java | 69 ++ .../org/bytedeco/depthai/ToFProperties.java | 45 ++ .../bytedeco/depthai/ToFPropertiesNode.java | 29 + .../depthai/ToFPropertiesSerializable.java | 48 ++ .../java/org/bytedeco/depthai/Tracklet.java | 2 +- .../java/org/bytedeco/depthai/Tracklets.java | 18 +- .../gen/java/org/bytedeco/depthai/UVC.java | 50 ++ .../org/bytedeco/depthai/UVCProperties.java | 49 ++ .../bytedeco/depthai/UVCPropertiesNode.java | 29 + .../depthai/UVCPropertiesSerializable.java | 48 ++ .../java/org/bytedeco/depthai/UsbConfig.java | 2 +- .../org/bytedeco/depthai/VectorWriter.java | 2 +- .../java/org/bytedeco/depthai/Version.java | 2 +- .../org/bytedeco/depthai/VersionOptional.java | 3 +- .../org/bytedeco/depthai/VideoEncoder.java | 2 +- .../depthai/VideoEncoderProperties.java | 2 +- .../depthai/VideoEncoderPropertiesNode.java | 2 +- .../VideoEncoderPropertiesSerializable.java | 2 +- .../gen/java/org/bytedeco/depthai/Warp.java | 7 +- .../org/bytedeco/depthai/WarpProperties.java | 12 +- .../bytedeco/depthai/WarpPropertiesNode.java | 2 +- .../depthai/WarpPropertiesSerializable.java | 2 +- .../org/bytedeco/depthai/XLinkConnection.java | 16 +- .../java/org/bytedeco/depthai/XLinkError.java | 2 +- .../depthai/XLinkGlobalHandler_t.java | 2 +- .../org/bytedeco/depthai/XLinkHandler_t.java | 2 +- .../java/org/bytedeco/depthai/XLinkIn.java | 2 +- .../bytedeco/depthai/XLinkInProperties.java | 2 +- .../depthai/XLinkInPropertiesNode.java | 2 +- .../XLinkInPropertiesSerializable.java | 2 +- .../java/org/bytedeco/depthai/XLinkOut.java | 2 +- .../bytedeco/depthai/XLinkOutProperties.java | 2 +- .../depthai/XLinkOutPropertiesNode.java | 2 +- .../XLinkOutPropertiesSerializable.java | 2 +- .../org/bytedeco/depthai/XLinkProf_t.java | 2 +- .../org/bytedeco/depthai/XLinkReadError.java | 2 +- .../org/bytedeco/depthai/XLinkStream.java | 6 +- .../org/bytedeco/depthai/XLinkTimespec.java | 41 ++ .../org/bytedeco/depthai/XLinkWriteError.java | 2 +- .../depthai/YoloDetectionNetwork.java | 2 +- .../YoloDetectionNetworkPropertiesNode.java | 2 +- .../depthai/YoloSpatialDetectionNetwork.java | 2 +- ...SpatialDetectionNetworkPropertiesNode.java | 2 +- .../org/bytedeco/depthai/deviceDesc_t.java | 2 +- .../org/bytedeco/depthai/global/depthai.java | 329 +++++++++- .../bytedeco/depthai/streamPacketDesc_t.java | 4 +- .../org/bytedeco/depthai/presets/depthai.java | 42 +- dnnl/README.md | 6 +- dnnl/cppbuild.sh | 2 +- dnnl/platform/pom.xml | 2 +- dnnl/pom.xml | 2 +- dnnl/samples/pom.xml | 2 +- .../java/org/bytedeco/dnnl/global/dnnl.java | 2 +- onnxruntime/README.md | 6 +- onnxruntime/cppbuild.sh | 4 +- onnxruntime/platform/gpu/pom.xml | 4 +- onnxruntime/platform/pom.xml | 4 +- onnxruntime/pom.xml | 6 +- onnxruntime/samples/pom.xml | 4 +- .../onnxruntime/presets/onnxruntime.java | 6 +- platform/pom.xml | 8 +- tensorflow-lite/README.md | 6 +- tensorflow-lite/cppbuild.sh | 2 +- tensorflow-lite/platform/pom.xml | 2 +- tensorflow-lite/pom.xml | 2 +- tensorflow-lite/samples/pom.xml | 2 +- .../bytedeco/tensorflowlite/Interpreter.java | 18 +- .../tensorflowlite/SignatureRunner.java | 4 +- .../tensorflowlite/TfLiteSignatureRunner.java | 4 - .../tensorflowlite/global/tensorflowlite.java | 592 +++++++++++------- 286 files changed, 2774 insertions(+), 753 deletions(-) create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/BoardConfigUVCOptional.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/Camera.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/CameraProperties.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesNode.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesSerializable.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/IntIntMap.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesNode.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ProfilingData.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/RawToFConfig.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ToF.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ToFConfig.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ToFProperties.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesNode.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesSerializable.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/UVC.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/UVCProperties.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesNode.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesSerializable.java create mode 100644 depthai/src/gen/java/org/bytedeco/depthai/XLinkTimespec.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 179791fb223..14d62c92c3e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ * Refactor and improve presets for PyTorch ([pull #1360](https://github.com/bytedeco/javacpp-presets/pull/1360)) * Include `mkl_lapack.h` header file in presets for MKL ([issue #1388](https://github.com/bytedeco/javacpp-presets/issues/1388)) * Map new higher-level C++ API of Triton Inference Server ([pull #1361](https://github.com/bytedeco/javacpp-presets/pull/1361)) - * Upgrade presets for OpenCV 4.8.1, FFmpeg 6.1, HDF5 1.14.3, DNNL 3.3, OpenBLAS 0.3.25, ARPACK-NG 3.9.1, CPython 3.12.0, NumPy 1.26.2, SciPy 1.11.4, LLVM 17.0.6, Leptonica 1.83.1, Tesseract 5.3.3, CUDA 12.3.0, cuDNN 8.9.5, NCCL 2.18.5, PyTorch 2.1.1 ([pull #1426](https://github.com/bytedeco/javacpp-presets/pull/1426)), TensorFlow Lite 2.14.0, Triton Inference Server 2.38.0, ONNX 1.15.0, ONNX Runtime 1.16.2, TVM 0.14.0, and their dependencies + * Upgrade presets for OpenCV 4.8.1, FFmpeg 6.1, HDF5 1.14.3, DNNL 3.3.2, OpenBLAS 0.3.25, ARPACK-NG 3.9.1, CPython 3.12.0, NumPy 1.26.2, SciPy 1.11.4, LLVM 17.0.6, Leptonica 1.83.1, Tesseract 5.3.3, CUDA 12.3.0, cuDNN 8.9.5, NCCL 2.18.5, PyTorch 2.1.1 ([pull #1426](https://github.com/bytedeco/javacpp-presets/pull/1426)), TensorFlow Lite 2.15.0, Triton Inference Server 2.38.0, DepthAI 2.23.0, ONNX 1.15.0, ONNX Runtime 1.16.3, TVM 0.14.0, and their dependencies ### June 6, 2023 version 1.5.9 * Virtualize `nvinfer1::IGpuAllocator` from TensorRT to allow customization ([pull #1367](https://github.com/bytedeco/javacpp-presets/pull/1367)) diff --git a/README.md b/README.md index 463f82bb441..403c57ca2ee 100644 --- a/README.md +++ b/README.md @@ -226,11 +226,11 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * PyTorch 2.1.x https://github.com/pytorch/pytorch * SentencePiece 0.1.99 https://github.com/google/sentencepiece * TensorFlow 1.15.x https://github.com/tensorflow/tensorflow - * TensorFlow Lite 2.14.x https://github.com/tensorflow/tensorflow + * TensorFlow Lite 2.15.x https://github.com/tensorflow/tensorflow * TensorRT 8.6.x https://developer.nvidia.com/tensorrt * Triton Inference Server 2.38.x https://developer.nvidia.com/nvidia-triton-inference-server * The Arcade Learning Environment 0.8.x https://github.com/mgbellemare/Arcade-Learning-Environment - * DepthAI 2.21.x https://github.com/luxonis/depthai-core + * DepthAI 2.23.x https://github.com/luxonis/depthai-core * ONNX 1.15.x https://github.com/onnx/onnx * nGraph 0.26.0 https://github.com/NervanaSystems/ngraph * ONNX Runtime 1.16.x https://github.com/microsoft/onnxruntime diff --git a/depthai/README.md b/depthai/README.md index 86b1f1a4764..3775a07275c 100644 --- a/depthai/README.md +++ b/depthai/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * DepthAI 2.21.2 https://luxonis.com/depthai + * DepthAI 2.23.0 https://luxonis.com/depthai Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco depthai-platform - 2.21.2-1.5.10-SNAPSHOT + 2.23.0-1.5.10-SNAPSHOT org.bytedeco diff --git a/depthai/cppbuild.sh b/depthai/cppbuild.sh index 9c8ae969ab8..0e209c4c56e 100755 --- a/depthai/cppbuild.sh +++ b/depthai/cppbuild.sh @@ -7,7 +7,7 @@ if [[ -z "$PLATFORM" ]]; then exit fi -DEPTHAI_VERSION=2.21.2 +DEPTHAI_VERSION=2.23.0 LIBUSB_VERSION=1.0.22 download https://github.com/luxonis/depthai-core/releases/download/v$DEPTHAI_VERSION/depthai-core-v$DEPTHAI_VERSION.tar.gz depthai-core-v$DEPTHAI_VERSION.tar.gz download http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-$LIBUSB_VERSION/libusb-$LIBUSB_VERSION.tar.bz2/download libusb-$LIBUSB_VERSION.tar.bz2 diff --git a/depthai/platform/pom.xml b/depthai/platform/pom.xml index 7a056119a09..d3e68ddd039 100644 --- a/depthai/platform/pom.xml +++ b/depthai/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco depthai-platform - 2.21.2-${project.parent.version} + 2.23.0-${project.parent.version} JavaCPP Presets Platform for DepthAI diff --git a/depthai/pom.xml b/depthai/pom.xml index b614b89872e..ec10d7450d3 100644 --- a/depthai/pom.xml +++ b/depthai/pom.xml @@ -11,7 +11,7 @@ org.bytedeco depthai - 2.21.2-${project.parent.version} + 2.23.0-${project.parent.version} JavaCPP Presets for DepthAI diff --git a/depthai/samples/pom.xml b/depthai/samples/pom.xml index 5ac0da44f61..663baf65421 100644 --- a/depthai/samples/pom.xml +++ b/depthai/samples/pom.xml @@ -12,7 +12,7 @@ org.bytedeco depthai-platform - 2.21.2-1.5.10-SNAPSHOT + 2.23.0-1.5.10-SNAPSHOT org.bytedeco diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ADatatype.java b/depthai/src/gen/java/org/bytedeco/depthai/ADatatype.java index 997413eef42..43443c0f57f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ADatatype.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ADatatype.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ADatatypeVector.java b/depthai/src/gen/java/org/bytedeco/depthai/ADatatypeVector.java index 81f6c1bfca5..c2e203962db 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ADatatypeVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ADatatypeVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -34,6 +34,8 @@ public class ADatatypeVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public ADatatype front() { return get(0); } + public ADatatype back() { return get(size() - 1); } @Index(function = "at") public native @SharedPtr ADatatype get(@Cast("size_t") long i); public native ADatatypeVector put(@Cast("size_t") long i, ADatatype value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTag.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTag.java index 7abbda49492..53353c3e391 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTag.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTag.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagConfig.java index f2f9a3d2db8..61e79aa447a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagNode.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagNode.java index 71c6be422ed..e9c7558e6c2 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagProperties.java index 983465344bd..c8d93a46b5c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesNode.java index 7bdaa066ffe..642460cd9c1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesSerializable.java index 35d43c412a8..373ad350788 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTagPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AprilTags.java b/depthai/src/gen/java/org/bytedeco/depthai/AprilTags.java index f7b0486bdd8..8ebf4cb2d2d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AprilTags.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AprilTags.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -45,22 +45,6 @@ public class AprilTags extends Buffer { public native @StdVector AprilTag aprilTags(); public native AprilTags aprilTags(AprilTag setter); - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); - /** * Sets image timestamp related to dai::Clock::now() */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Asset.java b/depthai/src/gen/java/org/bytedeco/depthai/Asset.java index d9658e49df9..90d4b85df14 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Asset.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Asset.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AssetManager.java b/depthai/src/gen/java/org/bytedeco/depthai/AssetManager.java index 9d41fc04c99..4d6d8e7defa 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AssetManager.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AssetManager.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AssetVector.java b/depthai/src/gen/java/org/bytedeco/depthai/AssetVector.java index 470119802f5..ea4059404d9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AssetVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AssetVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -34,6 +34,8 @@ public class AssetVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public Asset front() { return get(0); } + public Asset back() { return get(size() - 1); } @Index(function = "at") public native @SharedPtr Asset get(@Cast("size_t") long i); public native AssetVector put(@Cast("size_t") long i, Asset value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AssetView.java b/depthai/src/gen/java/org/bytedeco/depthai/AssetView.java index c33071cad46..4e1b4e08295 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AssetView.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AssetView.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Assets.java b/depthai/src/gen/java/org/bytedeco/depthai/Assets.java index 5961f3074f5..0c2a986bbf0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Assets.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Assets.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/AssetsMutable.java b/depthai/src/gen/java/org/bytedeco/depthai/AssetsMutable.java index eee5dd781b5..1c22861c032 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/AssetsMutable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/AssetsMutable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoardConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfig.java index 584048dd3bd..6928cdd84a3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BoardConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -58,6 +58,8 @@ public static class USB extends Pointer { public native @Cast("uint16_t") short flashBootedVid(); public native USB flashBootedVid(short setter); public native @Cast("uint16_t") short flashBootedPid(); public native USB flashBootedPid(short setter); public native UsbSpeed maxSpeed(); public native USB maxSpeed(UsbSpeed setter); + public native @StdString BytePointer productName(); public native USB productName(BytePointer setter); + public native @StdString BytePointer manufacturer(); public native USB manufacturer(BytePointer setter); } public native @ByRef USB usb(); public native BoardConfig usb(USB setter); @@ -296,6 +298,35 @@ public static class Camera extends Pointer { public native byte interrupt(); public native IMU interrupt(byte setter); public native byte wake(); public native IMU wake(byte setter); public native byte csGpio(); public native IMU csGpio(byte setter); + public native byte boot(); public native IMU boot(byte setter); + public native byte reset(); public native IMU reset(byte setter); } public native @ByRef BoardConfigIMUOptional imu(); public native BoardConfig imu(BoardConfigIMUOptional setter); + + /** UVC configuration for USB descriptor */ + @NoOffset public static class UVC extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public UVC(Pointer p) { super(p); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public UVC(long size) { super((Pointer)null); allocateArray(size); } + private native void allocateArray(long size); + @Override public UVC position(long position) { + return (UVC)super.position(position); + } + @Override public UVC getPointer(long i) { + return new UVC((Pointer)this).offsetAddress(i); + } + + public native @StdString BytePointer cameraName(); public native UVC cameraName(BytePointer setter); + public native @Cast("uint16_t") short width(); public native UVC width(short setter); + public native @Cast("uint16_t") short height(); public native UVC height(short setter); + public native RawImgFrame.Type frameType(); public native UVC frameType(RawImgFrame.Type setter); + public native @Cast("bool") boolean enable(); public native UVC enable(boolean setter); + public UVC(@Cast("uint16_t") short width, @Cast("uint16_t") short height) { super((Pointer)null); allocate(width, height); } + private native void allocate(@Cast("uint16_t") short width, @Cast("uint16_t") short height); + public UVC() { super((Pointer)null); allocate(); } + private native void allocate(); + } + public native @ByRef BoardConfigUVCOptional uvc(); public native BoardConfig uvc(BoardConfigUVCOptional setter); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigIMUOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigIMUOptional.java index e3d0116b9fa..9265f6cc6b3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigIMUOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigIMUOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class BoardConfigIMUOptional extends Pointer { public native @Name("operator =") @ByRef BoardConfigIMUOptional put(@ByRef BoardConfigIMUOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef BoardConfig.IMU get(); @ValueSetter public native BoardConfigIMUOptional put(@ByRef BoardConfig.IMU value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigUVCOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigUVCOptional.java new file mode 100644 index 00000000000..76315cf22c6 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoardConfigUVCOptional.java @@ -0,0 +1,34 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@NoOffset @Name("tl::optional") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class BoardConfigUVCOptional extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public BoardConfigUVCOptional(Pointer p) { super(p); } + public BoardConfigUVCOptional(BoardConfig.UVC value) { this(); put(value); } + public BoardConfigUVCOptional() { allocate(); } + private native void allocate(); + public native @Name("operator =") @ByRef BoardConfigUVCOptional put(@ByRef BoardConfigUVCOptional x); + + public native boolean has_value(); + public native void reset(); + public native @Name("value") @ByRef BoardConfig.UVC get(); + @ValueSetter public native BoardConfigUVCOptional put(@ByRef BoardConfig.UVC value); +} + diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoolFloatTuple.java b/depthai/src/gen/java/org/bytedeco/depthai/BoolFloatTuple.java index 5f4aaecfa1e..d508872530f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BoolFloatTuple.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoolFloatTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoolOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/BoolOptional.java index 0d64ebbf5f1..f6dc93a1465 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BoolOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoolOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class BoolOptional extends Pointer { public native @Name("operator =") @ByRef BoolOptional put(@ByRef BoolOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @Cast("bool") boolean get(); @ValueSetter public native BoolOptional put(@Cast("bool") boolean value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BoolStringByteVectorTuple.java b/depthai/src/gen/java/org/bytedeco/depthai/BoolStringByteVectorTuple.java index ef5f5a3f3f4..595d87d7df1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BoolStringByteVectorTuple.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BoolStringByteVectorTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/BootloaderConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/BootloaderConfig.java index 742d113a95b..7c22975d33c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/BootloaderConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/BootloaderConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Buffer.java b/depthai/src/gen/java/org/bytedeco/depthai/Buffer.java index b5ab8406fb5..83e26e3d2f1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Buffer.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Buffer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -56,4 +56,35 @@ public class Buffer extends ADatatype { /** * @param data Moves data to internal buffer */ + + /** + * Retrieves timestamp related to dai::Clock::now() + */ + public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); + + /** + * Retrieves timestamp directly captured from device's monotonic clock, + * not synchronized to host time. Used mostly for debugging + */ + public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); + + /** + * Retrieves sequence number + */ + public native @Cast("int64_t") long getSequenceNum(); + + /** + * Sets timestamp related to dai::Clock::now() + */ + public native @ByRef Buffer setTimestamp(@ByVal @Cast("std::chrono::time_point*") Pointer timestamp); + + /** + * Sets timestamp related to dai::Clock::now() + */ + public native @ByRef Buffer setTimestampDevice(@ByVal @Cast("std::chrono::time_point*") Pointer timestamp); + + /** + * Retrieves sequence number + */ + public native @ByRef Buffer setSequenceNum(@Cast("int64_t") long sequenceNum); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ByteGPIOMap.java b/depthai/src/gen/java/org/bytedeco/depthai/ByteGPIOMap.java index 4ea3e929f4d..4e14288ffe0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ByteGPIOMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ByteGPIOMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ByteUARTMap.java b/depthai/src/gen/java/org/bytedeco/depthai/ByteUARTMap.java index 7553d514156..0212e05baca 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ByteUARTMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ByteUARTMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ByteVector.java b/depthai/src/gen/java/org/bytedeco/depthai/ByteVector.java index ac024a7f202..0f357334449 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ByteVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ByteVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -34,6 +34,8 @@ public class ByteVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public byte front() { return get(0); } + public byte back() { return get(size() - 1); } @Index(function = "at") public native @Cast("uint8_t") byte get(@Cast("size_t") long i); public native ByteVector put(@Cast("size_t") long i, byte value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CalibrationHandler.java b/depthai/src/gen/java/org/bytedeco/depthai/CalibrationHandler.java index 0f4a76dbb3a..dde47916de4 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CalibrationHandler.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CalibrationHandler.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -289,20 +289,20 @@ public class CalibrationHandler extends Pointer { public native @StdVector FloatBuffer getCameraTranslationVector(@Cast("dai::CameraBoardSocket") int srcCamera, @Cast("dai::CameraBoardSocket") int dstCamera); /** - * Get the baseline distance between two specified cameras. By default it will get the baseline between CameraBoardSocket.RIGHT - * and CameraBoardSocket.LEFT. + * Get the baseline distance between two specified cameras. By default it will get the baseline between CameraBoardSocket.CAM_C + * and CameraBoardSocket.CAM_B. * * @param cam1 First camera * @param cam2 Second camera * @param useSpecTranslation Enabling this bool uses the translation information from the board design data (not the calibration data) * @return baseline distance in centimeters */ - public native float getBaselineDistance(CameraBoardSocket cam1/*=dai::CameraBoardSocket::RIGHT*/, - CameraBoardSocket cam2/*=dai::CameraBoardSocket::LEFT*/, + public native float getBaselineDistance(CameraBoardSocket cam1/*=dai::CameraBoardSocket::CAM_C*/, + CameraBoardSocket cam2/*=dai::CameraBoardSocket::CAM_B*/, @Cast("bool") boolean useSpecTranslation/*=true*/); public native float getBaselineDistance(); - public native float getBaselineDistance(@Cast("dai::CameraBoardSocket") int cam1/*=dai::CameraBoardSocket::RIGHT*/, - @Cast("dai::CameraBoardSocket") int cam2/*=dai::CameraBoardSocket::LEFT*/, + public native float getBaselineDistance(@Cast("dai::CameraBoardSocket") int cam1/*=dai::CameraBoardSocket::CAM_C*/, + @Cast("dai::CameraBoardSocket") int cam2/*=dai::CameraBoardSocket::CAM_B*/, @Cast("bool") boolean useSpecTranslation/*=true*/); /** @@ -470,6 +470,86 @@ public native void setBoardInfo(@StdString String productName, @Cast("uint64_t") long batchTime, @Cast("uint32_t") int boardOptions); + /** + * Set the Board Info object. Creates version 7 EEPROM data + * + * @param deviceName Sets device name. + * @param productName Sets product name (alias). + * @param boardName Sets board name. + * @param boardRev Sets board revision id. + * @param boardConf Sets board configuration id. + * @param hardwareConf Sets hardware configuration id. + * @param batchName Sets batch name. Not supported anymore + * @param batchTime Sets batch time (unix timestamp). + * @param boardCustom Sets a custom board (Default empty string). + */ + public native void setBoardInfo(@StdString BytePointer deviceName, + @StdString BytePointer productName, + @StdString BytePointer boardName, + @StdString BytePointer boardRev, + @StdString BytePointer boardConf, + @StdString BytePointer hardwareConf, + @StdString BytePointer batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions, + @StdString BytePointer boardCustom/*=""*/); + public native void setBoardInfo(@StdString BytePointer deviceName, + @StdString BytePointer productName, + @StdString BytePointer boardName, + @StdString BytePointer boardRev, + @StdString BytePointer boardConf, + @StdString BytePointer hardwareConf, + @StdString BytePointer batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions); + public native void setBoardInfo(@StdString ByteBuffer deviceName, + @StdString ByteBuffer productName, + @StdString ByteBuffer boardName, + @StdString ByteBuffer boardRev, + @StdString ByteBuffer boardConf, + @StdString ByteBuffer hardwareConf, + @StdString ByteBuffer batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions, + @StdString ByteBuffer boardCustom/*=""*/); + public native void setBoardInfo(@StdString ByteBuffer deviceName, + @StdString ByteBuffer productName, + @StdString ByteBuffer boardName, + @StdString ByteBuffer boardRev, + @StdString ByteBuffer boardConf, + @StdString ByteBuffer hardwareConf, + @StdString ByteBuffer batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions); + public native void setBoardInfo(@StdString String deviceName, + @StdString String productName, + @StdString String boardName, + @StdString String boardRev, + @StdString String boardConf, + @StdString String hardwareConf, + @StdString String batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions, + @StdString String boardCustom/*=""*/); + public native void setBoardInfo(@StdString String deviceName, + @StdString String productName, + @StdString String boardName, + @StdString String boardRev, + @StdString String boardConf, + @StdString String hardwareConf, + @StdString String batchName, + @Cast("uint64_t") long batchTime, + @Cast("uint32_t") int boardOptions); + + /** + * Set the deviceName which responses to getDeviceName of Device + * + * @param deviceName Sets device name. + */ + public native void setDeviceName(@StdString BytePointer deviceName); + public native void setDeviceName(@StdString ByteBuffer deviceName); + public native void setDeviceName(@StdString String deviceName); + /** * Set the productName which acts as alisas for users to identify the device * diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CallbackHandler.java b/depthai/src/gen/java/org/bytedeco/depthai/CallbackHandler.java index 35fd513f61a..e3472d46377 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CallbackHandler.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CallbackHandler.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Camera.java b/depthai/src/gen/java/org/bytedeco/depthai/Camera.java new file mode 100644 index 00000000000..80459311867 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/Camera.java @@ -0,0 +1,354 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * \brief Camera node. Experimental node, for both mono and color types of sensors + */ +@Namespace("dai::node") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class Camera extends CameraPropertiesNode { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Camera(Pointer p) { super(p); } + + @MemberGetter public static native @Cast("const char*") BytePointer NAME(); + /** + * Constructs Camera node. + */ + public Camera(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId) { super((Pointer)null); allocate(par, nodeId); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId); + public Camera(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr CameraProperties props) { super((Pointer)null); allocate(par, nodeId, props); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr CameraProperties props); + + /** + * Computes the scaled size given numerator and denominator + */ + public static native int getScaledSize(int input, int num, int denom); + + /** + * Initial control options to apply to sensor + */ + @MemberGetter public native @ByRef CameraControl initialControl(); + + /** + * Input for ImageManipConfig message, which can modify crop parameters in runtime + * + * Default queue is non-blocking with size 8 + */ + @MemberGetter public native @ByRef Input inputConfig(); + + /** + * Input for CameraControl message, which can modify camera parameters in runtime + * + * Default queue is blocking with size 8 + */ + @MemberGetter public native @ByRef Input inputControl(); + + /** + * Outputs ImgFrame message that carries NV12 encoded (YUV420, UV plane interleaved) frame data. + * + * Suitable for use with VideoEncoder node + */ + @MemberGetter public native @ByRef Output video(); + + /** + * Outputs ImgFrame message that carries BGR/RGB planar/interleaved encoded frame data. + * + * Suitable for use with NeuralNetwork node + */ + @MemberGetter public native @ByRef Output preview(); + + /** + * Outputs ImgFrame message that carries NV12 encoded (YUV420, UV plane interleaved) frame data. + * + * The message is sent only when a CameraControl message arrives to inputControl with captureStill command set. + */ + @MemberGetter public native @ByRef Output still(); + + /** + * Outputs ImgFrame message that carries YUV420 planar (I420/IYUV) frame data. + * + * Generated by the ISP engine, and the source for the 'video', 'preview' and 'still' outputs + */ + @MemberGetter public native @ByRef Output isp(); + + /** + * Outputs ImgFrame message that carries RAW10-packed (MIPI CSI-2 format) frame data. + * + * Captured directly from the camera sensor, and the source for the 'isp' output. + */ + @MemberGetter public native @ByRef Output raw(); + + /** + * Outputs metadata-only ImgFrame message as an early indicator of an incoming frame. + * + * It's sent on the MIPI SoF (start-of-frame) event, just after the exposure of the current frame + * has finished and before the exposure for next frame starts. + * Could be used to synchronize various processes with camera capture. + * Fields populated: camera id, sequence number, timestamp + */ + @MemberGetter public native @ByRef Output frameEvent(); + + // /** + // * Input for mocking 'isp' functionality. + // * + // * Default queue is non-blocking with size 8 + // */ + // Input mockIsp{*this, "mockIsp", Input::Type::SReceiver, false, 8, {{DatatypeEnum::ImgFrame, false}}}; + + /** + * Specify which board socket to use + * @param boardSocket Board socket to use + */ + public native void setBoardSocket(CameraBoardSocket boardSocket); + public native void setBoardSocket(@Cast("dai::CameraBoardSocket") int boardSocket); + + /** + * Retrieves which board socket to use + * @return Board socket to use + */ + public native CameraBoardSocket getBoardSocket(); + + /** + * Specify which camera to use by name + * @param name Name of the camera to use + */ + public native void setCamera(@StdString BytePointer name); + public native void setCamera(@StdString ByteBuffer name); + public native void setCamera(@StdString String name); + + /** + * Retrieves which camera to use by name + * @return Name of the camera to use + */ + public native @StdString BytePointer getCamera(); + + /** Set camera image orientation */ + public native void setImageOrientation(CameraImageOrientation imageOrientation); + public native void setImageOrientation(@Cast("dai::CameraImageOrientation") int imageOrientation); + + /** Get camera image orientation */ + public native CameraImageOrientation getImageOrientation(); + + // TODO(themarpe) - add back + // /// Set image type of preview output images. + // void setPreviewType(ImgFrame::Type type); + // /// Get image type of preview output frames. + // ImgFrame::Type getPreviewType() const; + // /// Set image type of video output images. Supported AUTO, GRAY, YUV420 and NV12. + // void setVideoType(ImgFrame::Type type); + // /// Get image type of video output frames. Supported AUTO, GRAY, YUV420 and NV12. + // ImgFrame::Type getVideoType() const; + + /** Set desired resolution. Sets sensor size to best fit */ + public native void setSize(@ByVal @Cast("std::tuple*") Pointer size); + /** Set desired resolution. Sets sensor size to best fit */ + public native void setSize(int width, int height); + + /** Set preview output size */ + public native void setPreviewSize(int width, int height); + + /** Set preview output size, as a tuple */ + public native void setPreviewSize(@ByVal @Cast("std::tuple*") Pointer size); + + /** Set video output size */ + public native void setVideoSize(int width, int height); + + /** Set video output size, as a tuple */ + public native void setVideoSize(@ByVal @Cast("std::tuple*") Pointer size); + + /** Set still output size */ + public native void setStillSize(int width, int height); + + /** Set still output size, as a tuple */ + public native void setStillSize(@ByVal @Cast("std::tuple*") Pointer size); + + // /** + // * Set 'isp' output scaling (numerator/denominator), preserving the aspect ratio. + // * The fraction numerator/denominator is simplified first to a irreducible form, + // * then a set of hardware scaler constraints applies: + // * max numerator = 16, max denominator = 63 + // */ + // void setIspScale(int numerator, int denominator); + + // /// Set 'isp' output scaling, as a tuple + // void setIspScale(std::tuple scale); + + // /** + // * Set 'isp' output scaling, per each direction. If the horizontal scaling factor + // * (horizNum/horizDen) is different than the vertical scaling factor + // * (vertNum/vertDen), a distorted (stretched or squished) image is generated + // */ + // void setIspScale(int horizNum, int horizDenom, int vertNum, int vertDenom); + + // /// Set 'isp' output scaling, per each direction, as tuples + // void setIspScale(std::tuple horizScale, std::tuple vertScale); + + /** + * Set rate at which camera should produce frames + * @param fps Rate in frames per second + */ + public native void setFps(float fps); + + /** + * Isp 3A rate (auto focus, auto exposure, auto white balance, camera controls etc.). + * Default (0) matches the camera FPS, meaning that 3A is running on each frame. + * Reducing the rate of 3A reduces the CPU usage on CSS, but also increases the convergence rate of 3A. + * Note that camera controls will be processed at this rate. E.g. if camera is running at 30 fps, and camera control is sent at every frame, + * but 3A fps is set to 15, the camera control messages will be processed at 15 fps rate, which will lead to queueing. + */ + public native void setIsp3aFps(int isp3aFps); + + /** + * Get rate at which camera should produce frames + * @return Rate in frames per second + */ + public native float getFps(); + + /** Get preview size as tuple */ + public native @ByVal @Cast("std::tuple*") Pointer getPreviewSize(); + /** Get preview width */ + public native int getPreviewWidth(); + /** Get preview height */ + public native int getPreviewHeight(); + + /** Get video size as tuple */ + public native @ByVal @Cast("std::tuple*") Pointer getVideoSize(); + /** Get video width */ + public native int getVideoWidth(); + /** Get video height */ + public native int getVideoHeight(); + + /** Get still size as tuple */ + public native @ByVal @Cast("std::tuple*") Pointer getStillSize(); + /** Get still width */ + public native int getStillWidth(); + /** Get still height */ + public native int getStillHeight(); + + /** Get sensor resolution as size */ + public native @ByVal @Cast("std::tuple*") Pointer getSize(); + /** Get sensor resolution width */ + public native int getWidth(); + /** Get sensor resolution height */ + public native int getHeight(); + + // /// Get 'isp' output resolution as size, after scaling + // std::tuple getIspSize() const; + // /// Get 'isp' output width + // int getIspWidth() const; + // /// Get 'isp' output height + // int getIspHeight() const; + + // /** + // * Specify sensor center crop. + // * Resolution size / video size + // */ + // void sensorCenterCrop(); + + // /** + // * Specifies sensor crop rectangle + // * @param x Top left X coordinate + // * @param y Top left Y coordinate + // */ + // void setSensorCrop(float x, float y); + + // /** + // * @returns Sensor top left crop coordinates + // */ + // std::tuple getSensorCrop() const; + // /// Get sensor top left x crop coordinate + // float getSensorCropX() const; + // /// Get sensor top left y crop coordinate + // float getSensorCropY() const; + + // /** + // * Specifies whether preview output should preserve aspect ratio, + // * after downscaling from video size or not. + // * + // * @param keep If true, a larger crop region will be considered to still be able to + // * create the final image in the specified aspect ratio. Otherwise video size is resized to fit preview size + // */ + // void setPreviewKeepAspectRatio(bool keep); + + // /** + // * @see setPreviewKeepAspectRatio + // * @returns Preview keep aspect ratio option + // */ + // bool getPreviewKeepAspectRatio(); + + // /// Get number of frames in preview pool + // int getPreviewNumFramesPool(); + // /// Get number of frames in video pool + // int getVideoNumFramesPool(); + // /// Get number of frames in still pool + // int getStillNumFramesPool(); + // /// Get number of frames in raw pool + // int getRawNumFramesPool(); + // /// Get number of frames in isp pool + // int getIspNumFramesPool(); + + /** Set the source of the warp mesh or disable */ + public native void setMeshSource(@ByVal CameraProperties.WarpMeshSource source); + /** Gets the source of the warp mesh */ + public native @ByVal CameraProperties.WarpMeshSource getMeshSource(); + + /** + * Specify local filesystem paths to the undistort mesh calibration files. + * + * When a mesh calibration is set, it overrides the camera intrinsics/extrinsics matrices. + * Overrides useHomographyRectification behavior. + * Mesh format: a sequence of (y,x) points as 'float' with coordinates from the input image + * to be mapped in the output. The mesh can be subsampled, configured by {@code setMeshStep}. + * + * With a 1280x800 resolution and the default (16,16) step, the required mesh size is: + * + * width: 1280 / 16 + 1 = 81 + * + * height: 800 / 16 + 1 = 51 + */ + public native void loadMeshFile(@Const @ByRef Path warpMesh); + + /** + * Specify mesh calibration data for undistortion + * See {@code loadMeshFiles} for the expected data format + */ + + /** + * Set the distance between mesh points. Default: (32, 32) + */ + public native void setMeshStep(int width, int height); + /** Gets the distance between mesh points */ + public native @ByVal @Cast("std::tuple*") Pointer getMeshStep(); + + /** Set calibration alpha parameter that determines FOV of undistorted frames */ + public native void setCalibrationAlpha(float alpha); + /** Get calibration alpha parameter that determines FOV of undistorted frames */ + public native @ByVal FloatOptional getCalibrationAlpha(); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native void setRawOutputPacked(@Cast("bool") boolean packed); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketBoardConfigCameraMap.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketBoardConfigCameraMap.java index 3ecb12de795..5856147d508 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketBoardConfigCameraMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketBoardConfigCameraMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketCameraInfoMap.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketCameraInfoMap.java index 1092212627c..6dab466cf16 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketCameraInfoMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketCameraInfoMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketStringMap.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketStringMap.java index 1f9bbba8d3e..5b72123efe2 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketStringMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraBoardSocketStringMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraControl.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraControl.java index 2d93865a7a0..4c201cad84c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraControl.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraControl.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -296,4 +296,16 @@ public class CameraControl extends Buffer { * Retrieves lens position, range 0..255. Returns -1 if not available */ public native int getLensPosition(); + + /** + * Set explicit configuration. + * @param config Explicit configuration + */ + public native @ByRef CameraControl set(@ByVal RawCameraControl config); + + /** + * Retrieve configuration data for CameraControl. + * @return config for CameraControl + */ + public native @ByVal RawCameraControl get(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraFeatures.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraFeatures.java index 8ea300087fd..fc9d326432d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraFeatures.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraFeatures.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -67,11 +67,19 @@ public class CameraFeatures extends Pointer { /** * Whether an autofocus VCM IC was detected */ + public native @Cast("bool") boolean hasAutofocusIC(); public native CameraFeatures hasAutofocusIC(boolean setter); + /** + * Whether camera has auto focus capabilities, or is a fixed focus lens + */ public native @Cast("bool") boolean hasAutofocus(); public native CameraFeatures hasAutofocus(boolean setter); /** * Camera name or alias */ public native @StdString BytePointer name(); public native CameraFeatures name(BytePointer setter); + /** + * Additional camera names or aliases + */ + public native @ByRef StringVector additionalNames(); public native CameraFeatures additionalNames(StringVector setter); /** * Available sensor configs */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraImageOrientationOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraImageOrientationOptional.java index 826fc9be31c..f9cb0298fcc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraImageOrientationOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraImageOrientationOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class CameraImageOrientationOptional extends Pointer { public native @Name("operator =") @ByRef CameraImageOrientationOptional put(@ByRef CameraImageOrientationOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef CameraImageOrientation get(); @ValueSetter public native CameraImageOrientationOptional put(@ByRef CameraImageOrientation value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraInfo.java index 46f54e97282..5bbab63b03f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraProperties.java new file mode 100644 index 00000000000..f5676282690 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraProperties.java @@ -0,0 +1,229 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * Specify properties for ColorCamera such as camera ID, ... + */ +@Namespace("dai") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class CameraProperties extends CameraPropertiesSerializable { + static { Loader.load(); } + /** Default native constructor. */ + public CameraProperties() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public CameraProperties(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public CameraProperties(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public CameraProperties position(long position) { + return (CameraProperties)super.position(position); + } + @Override public CameraProperties getPointer(long i) { + return new CameraProperties((Pointer)this).offsetAddress(i); + } + + @MemberGetter public static native int AUTO(); + public static final int AUTO = AUTO(); + + public static class IspScale extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public IspScale() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public IspScale(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public IspScale(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public IspScale position(long position) { + return (IspScale)super.position(position); + } + @Override public IspScale getPointer(long i) { + return new IspScale((Pointer)this).offsetAddress(i); + } + + public native int horizNumerator(); public native IspScale horizNumerator(int setter); + public native int horizDenominator(); public native IspScale horizDenominator(int setter); + public native int vertNumerator(); public native IspScale vertNumerator(int setter); + public native int vertDenominator(); public native IspScale vertDenominator(int setter); + } + + /** + * For 24 bit color these can be either RGB or BGR + */ + public enum ColorOrder { BGR(0), RGB(1); + + public final int value; + private ColorOrder(int v) { this.value = v; } + private ColorOrder(ColorOrder e) { this.value = e.value; } + public ColorOrder intern() { for (ColorOrder e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } + } + + /** + * Initial controls applied to ColorCamera node + */ + public native @ByRef RawCameraControl initialControl(); public native CameraProperties initialControl(RawCameraControl setter); + + /** + * Which socket will color camera use + */ + public native CameraBoardSocket boardSocket(); public native CameraProperties boardSocket(CameraBoardSocket setter); + + /** + * Which camera name will color camera use + */ + public native @StdString BytePointer cameraName(); public native CameraProperties cameraName(BytePointer setter); + + /** + * Camera sensor image orientation / pixel readout + */ + public native CameraImageOrientation imageOrientation(); public native CameraProperties imageOrientation(CameraImageOrientation setter); + + /** + * For 24 bit color these can be either RGB or BGR + */ + public native ColorOrder colorOrder(); public native CameraProperties colorOrder(ColorOrder setter); + /** + * Are colors interleaved (R1G1B1, R2G2B2, ...) or planar (R1R2..., G1G2..., B1B2) + */ + public native @Cast("bool") boolean interleaved(); public native CameraProperties interleaved(boolean setter); + /** + * Are values FP16 type (0.0 - 255.0) + */ + public native @Cast("bool") boolean fp16(); public native CameraProperties fp16(boolean setter); + + /** + * Preview frame output height + */ + public native @Cast("uint32_t") int previewHeight(); public native CameraProperties previewHeight(int setter); + /** + * Preview frame output width + */ + public native @Cast("uint32_t") int previewWidth(); public native CameraProperties previewWidth(int setter); + + /** + * Preview frame output width + */ + public native int videoWidth(); public native CameraProperties videoWidth(int setter); + + /** + * Preview frame output height + */ + public native int videoHeight(); public native CameraProperties videoHeight(int setter); + + /** + * Preview frame output width + */ + public native int stillWidth(); public native CameraProperties stillWidth(int setter); + + /** + * Preview frame output height + */ + public native int stillHeight(); public native CameraProperties stillHeight(int setter); + + /** + * Select the camera sensor width + */ + public native int resolutionWidth(); public native CameraProperties resolutionWidth(int setter); + /** + * Select the camera sensor height + */ + public native int resolutionHeight(); public native CameraProperties resolutionHeight(int setter); + + /** + * Camera sensor FPS + */ + public native float fps(); public native CameraProperties fps(float setter); + + /** + * Isp 3A rate (auto focus, auto exposure, auto white balance, camera controls etc.). + * Default (0) matches the camera FPS, meaning that 3A is running on each frame. + * Reducing the rate of 3A reduces the CPU usage on CSS, but also increases the convergence rate of 3A. + * Note that camera controls will be processed at this rate. E.g. if camera is running at 30 fps, and camera control is sent at every frame, + * but 3A fps is set to 15, the camera control messages will be processed at 15 fps rate, which will lead to queueing. +

+ */ + public native int isp3aFps(); public native CameraProperties isp3aFps(int setter); + + /** + * Initial sensor crop, -1 signifies center crop + */ + public native float sensorCropX(); public native CameraProperties sensorCropX(float setter); + public native float sensorCropY(); public native CameraProperties sensorCropY(float setter); + + /** + * Whether to keep aspect ratio of input (video/preview size) or not + */ + public native @Cast("bool") boolean previewKeepAspectRatio(); public native CameraProperties previewKeepAspectRatio(boolean setter); + + /** + * Configure scaling for {@code isp} output. + */ + public native @ByRef IspScale ispScale(); public native CameraProperties ispScale(IspScale setter); + + /** Type of sensor, specifies what kind of postprocessing is performed */ + public native CameraSensorType sensorType(); public native CameraProperties sensorType(CameraSensorType setter); + + /** + * Pool sizes + */ + public native int numFramesPoolRaw(); public native CameraProperties numFramesPoolRaw(int setter); + public native int numFramesPoolIsp(); public native CameraProperties numFramesPoolIsp(int setter); + public native int numFramesPoolVideo(); public native CameraProperties numFramesPoolVideo(int setter); + public native int numFramesPoolPreview(); public native CameraProperties numFramesPoolPreview(int setter); + public native int numFramesPoolStill(); public native CameraProperties numFramesPoolStill(int setter); + + /** + * Warp mesh source + */ + public enum WarpMeshSource { AUTO(-1), NONE(0), CALIBRATION(1), URI(2); + + public final int value; + private WarpMeshSource(int v) { this.value = v; } + private WarpMeshSource(WarpMeshSource e) { this.value = e.value; } + public WarpMeshSource intern() { for (WarpMeshSource e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } + } + public native WarpMeshSource warpMeshSource(); public native CameraProperties warpMeshSource(WarpMeshSource setter); + public native @StdString BytePointer warpMeshUri(); public native CameraProperties warpMeshUri(BytePointer setter); + public native int warpMeshWidth(); public native CameraProperties warpMeshWidth(int setter); + public native int warpMeshHeight(); public native CameraProperties warpMeshHeight(int setter); + /** + * Free scaling parameter between 0 (when all the pixels in the undistorted image are valid) + * and 1 (when all the source image pixels are retained in the undistorted image). + * On some high distortion lenses, and/or due to rectification (image rotated) invalid areas may appear even with alpha=0, + * in these cases alpha < 0.0 helps removing invalid areas. + * See getOptimalNewCameraMatrix from opencv for more details. + */ + public native @ByRef FloatOptional calibAlpha(); public native CameraProperties calibAlpha(FloatOptional setter); + public native int warpMeshStepWidth(); public native CameraProperties warpMeshStepWidth(int setter); + public native int warpMeshStepHeight(); public native CameraProperties warpMeshStepHeight(int setter); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native @ByRef BoolOptional rawPacked(); public native CameraProperties rawPacked(BoolOptional setter); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesNode.java new file mode 100644 index 00000000000..ce5a6676151 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesNode.java @@ -0,0 +1,29 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::NodeCRTP") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class CameraPropertiesNode extends Node { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public CameraPropertiesNode(Pointer p) { super(p); } + + /** Underlying properties */ + public native @Cast("dai::NodeCRTP::Properties*") @ByRef CameraProperties properties(); public native CameraPropertiesNode properties(CameraProperties setter); + public native @Override @Cast("const char*") BytePointer getName(); + public native @UniquePtr @Override Node clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesSerializable.java new file mode 100644 index 00000000000..621c846af1c --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraPropertiesSerializable.java @@ -0,0 +1,48 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::PropertiesSerializable") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class CameraPropertiesSerializable extends DaiProperties { + static { Loader.load(); } + /** Default native constructor. */ + public CameraPropertiesSerializable() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public CameraPropertiesSerializable(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public CameraPropertiesSerializable(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public CameraPropertiesSerializable position(long position) { + return (CameraPropertiesSerializable)super.position(position); + } + @Override public CameraPropertiesSerializable getPointer(long i) { + return new CameraPropertiesSerializable((Pointer)this).offsetAddress(i); + } + + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector byte[] data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + + public native @UniquePtr @Override DaiProperties clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorConfig.java index 31600a45ebc..766ffa8fc86 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorTypeOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorTypeOptional.java index 5e385bad231..6029faee17a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorTypeOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CameraSensorTypeOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class CameraSensorTypeOptional extends Pointer { public native @Name("operator =") @ByRef CameraSensorTypeOptional put(@ByRef CameraSensorTypeOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef CameraSensorType get(); @ValueSetter public native CameraSensorTypeOptional put(@ByRef CameraSensorType value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ChipTemperature.java b/depthai/src/gen/java/org/bytedeco/depthai/ChipTemperature.java index 51ab92d55c1..25e58036b9b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ChipTemperature.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ChipTemperature.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ColorCamera.java b/depthai/src/gen/java/org/bytedeco/depthai/ColorCamera.java index 402bdbc5741..b1fd90dd187 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ColorCamera.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ColorCamera.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -298,7 +298,9 @@ public class ColorCamera extends ColorCameraPropertiesNode { public native void sensorCenterCrop(); /** - * Specifies sensor crop rectangle + * Specifies the cropping that happens when converting ISP to video output. By default, video will be center cropped + * from the ISP output. Note that this doesn't actually do on-sensor cropping (and MIPI-stream only that region), but + * it does postprocessing on the ISP (on RVC). * @param x Top left X coordinate * @param y Top left Y coordinate */ @@ -352,4 +354,15 @@ public class ColorCamera extends ColorCameraPropertiesNode { public native int getRawNumFramesPool(); /** Get number of frames in isp pool */ public native int getIspNumFramesPool(); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native void setRawOutputPacked(@Cast("bool") boolean packed); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraProperties.java index 6af9ae2d252..854ca63967f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -91,7 +91,11 @@ public enum SensorResolution { /** 8000 × 6000 */ THE_48_MP(10), /** 1440 × 1080 */ - THE_1440X1080(11); + THE_1440X1080(11), + /** 1352 × 1012 */ + THE_1352X1012(12), + /** 2024 × 1520 */ + THE_2024X1520(13); public final int value; private SensorResolution(int v) { this.value = v; } @@ -222,4 +226,15 @@ public enum ColorOrder { BGR(0), RGB(1); * List of events to receive, the rest will be ignored */ public native @StdVector @Cast("dai::FrameEvent*") IntPointer eventFilter(); public native ColorCameraProperties eventFilter(IntPointer setter); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native @ByRef BoolOptional rawPacked(); public native ColorCameraProperties rawPacked(BoolOptional setter); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesNode.java index e7658028b0c..58fad0a3ee0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesSerializable.java index 51d5ee46efe..a1a356762a1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ColorCameraPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ConnectionHash.java b/depthai/src/gen/java/org/bytedeco/depthai/ConnectionHash.java index 630547d8a92..38ab0263a62 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ConnectionHash.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ConnectionHash.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ConnectionSet.java b/depthai/src/gen/java/org/bytedeco/depthai/ConnectionSet.java index b69054be9c1..28ffb91170c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ConnectionSet.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ConnectionSet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -28,6 +28,7 @@ public class ConnectionSet extends Pointer { public boolean empty() { return size() == 0; } public native long size(); + public Node.Connection front() { try (Iterator it = begin()) { return it.get(); } } public native void insert(@ByRef Node.Connection value); public native void erase(@ByRef Node.Connection value); public native @ByVal Iterator begin(); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CpuUsage.java b/depthai/src/gen/java/org/bytedeco/depthai/CpuUsage.java index 01100a66a5d..00b70bbe4a8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CpuUsage.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CpuUsage.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/CrashDump.java b/depthai/src/gen/java/org/bytedeco/depthai/CrashDump.java index c5e928241b3..191d22e9a47 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/CrashDump.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/CrashDump.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DaiProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/DaiProperties.java index 90c1d7aea39..b851914ddeb 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DaiProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DaiProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DataInputQueue.java b/depthai/src/gen/java/org/bytedeco/depthai/DataInputQueue.java index 2c1d380b984..52a17c24f64 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DataInputQueue.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DataInputQueue.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DataOutputQueue.java b/depthai/src/gen/java/org/bytedeco/depthai/DataOutputQueue.java index e4b5d5b8457..5742b5be9ac 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DataOutputQueue.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DataOutputQueue.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetwork.java index 2c53a9413aa..b1068e49b02 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkProperties.java index 4b4e1d5cd5f..d47f9676ebc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesNode.java index 4996abc2816..e19fc33f1d9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesSerializable.java index 4f08d9c05d8..95e3b9e0e1c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionNetworkPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParser.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParser.java index bbf9f7ddea4..96f39e7ecc9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParser.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParser.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserOptions.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserOptions.java index cb6bcbb1856..0125c4c9f34 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserOptions.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserOptions.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserProperties.java index 8ae57b08934..bee65494681 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesNode.java index 408e1356c47..2069867c410 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesSerializable.java index e2d4b0461bb..c08c912e54c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DetectionParserPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Device.java b/depthai/src/gen/java/org/bytedeco/depthai/Device.java index 4a197dff95f..329654f90e4 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Device.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Device.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -87,6 +87,18 @@ public class Device extends DeviceBase { private native void allocate(@StdString ByteBuffer nameOrDeviceId, UsbSpeed maxUsbSpeed); public Device(@StdString String nameOrDeviceId, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(nameOrDeviceId, maxUsbSpeed); } private native void allocate(@StdString String nameOrDeviceId, @Cast("dai::UsbSpeed") int maxUsbSpeed); + public Device(@ByVal Config config, UsbSpeed maxUsbSpeed) { super((Pointer)null); allocate(config, maxUsbSpeed); } + private native void allocate(@ByVal Config config, UsbSpeed maxUsbSpeed); + public Device(@ByVal Config config, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(config, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Cast("dai::UsbSpeed") int maxUsbSpeed); + public Device(@ByVal Config config, @Const @ByRef Path pathToCmd) { super((Pointer)null); allocate(config, pathToCmd); } + private native void allocate(@ByVal Config config, @Const @ByRef Path pathToCmd); + public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, UsbSpeed maxUsbSpeed) { super((Pointer)null); allocate(config, devInfo, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, UsbSpeed maxUsbSpeed); + public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(config, devInfo, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed); + public Device(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd) { super((Pointer)null); allocate(config, devInfo, pathToCmd); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd); /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ public Device(Pointer p) { super(p); } /** Native array allocator. Access with {@link Pointer#position(long)}. */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DeviceBase.java b/depthai/src/gen/java/org/bytedeco/depthai/DeviceBase.java index 8cc331c3893..38fa9287818 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DeviceBase.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DeviceBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -69,6 +69,8 @@ public static class Config extends Pointer { public native @Cast("dai::OpenVINO::Version") int version(); public native Config version(int setter); public native @ByRef BoardConfig board(); public native Config board(BoardConfig setter); public native @Cast("bool") boolean nonExclusiveMode(); public native Config nonExclusiveMode(boolean setter); + public native @ByRef LogLevelOptional outputLogLevel(); public native Config outputLogLevel(LogLevelOptional setter); + public native @ByRef LogLevelOptional logLevel(); public native Config logLevel(LogLevelOptional setter); } // static API @@ -150,6 +152,13 @@ public static class Config extends Pointer { */ public static native @Cast("std::uint8_t*") @StdVector BytePointer getEmbeddedDeviceBinary(@ByVal Config config); + /** + * Get current global accumulated profiling data + * + * @return ProfilingData from all devices + */ + public static native @ByVal ProfilingData getGlobalProfilingData(); + /** * Connects to any available device with a DEFAULT_SEARCH_TIME timeout. * @param pipeline Pipeline to be executed on the device @@ -298,8 +307,8 @@ public static class Config extends Pointer { /** * Connects to device 'devInfo' with custom config. - * @param devInfo DeviceInfo which specifies which device to connect to * @param config Device custom configuration to boot with + * @param devInfo DeviceInfo which specifies which device to connect to */ public DeviceBase(@ByVal Config config, @Const @ByRef DeviceInfo devInfo) { super((Pointer)null); allocate(config, devInfo); } private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo); @@ -358,6 +367,57 @@ public static class Config extends Pointer { public DeviceBase(@StdString String nameOrDeviceId, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(nameOrDeviceId, maxUsbSpeed); } private native void allocate(@StdString String nameOrDeviceId, @Cast("dai::UsbSpeed") int maxUsbSpeed); + /** + * Connects to any available device with a DEFAULT_SEARCH_TIME timeout. + * @param config Config with which the device will be booted with + * @param usb2Mode Boot device using USB2 mode firmware + */ + + /** + * Connects to device specified by devInfo. + * @param config Config with which the device will be booted with + * @param maxUsbSpeed Maximum allowed USB speed + */ + public DeviceBase(@ByVal Config config, UsbSpeed maxUsbSpeed) { super((Pointer)null); allocate(config, maxUsbSpeed); } + private native void allocate(@ByVal Config config, UsbSpeed maxUsbSpeed); + public DeviceBase(@ByVal Config config, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(config, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Cast("dai::UsbSpeed") int maxUsbSpeed); + + /** + * Connects to any available device with a DEFAULT_SEARCH_TIME timeout. + * @param config Config with which the device will be booted with + * @param pathToCmd Path to custom device firmware + */ + public DeviceBase(@ByVal Config config, @Const @ByRef Path pathToCmd) { super((Pointer)null); allocate(config, pathToCmd); } + private native void allocate(@ByVal Config config, @Const @ByRef Path pathToCmd); + + /** + * Connects to device specified by devInfo. + * @param config Config with which the device will be booted with + * @param devInfo DeviceInfo which specifies which device to connect to + * @param usb2Mode Boot device using USB2 mode firmware + */ + + /** + * Connects to device specified by devInfo. + * @param config Config with which the device will be booted with + * @param devInfo DeviceInfo which specifies which device to connect to + * @param maxUsbSpeed Maximum allowed USB speed + */ + public DeviceBase(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, UsbSpeed maxUsbSpeed) { super((Pointer)null); allocate(config, devInfo, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, UsbSpeed maxUsbSpeed); + public DeviceBase(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed) { super((Pointer)null); allocate(config, devInfo, maxUsbSpeed); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Cast("dai::UsbSpeed") int maxUsbSpeed); + + /** + * Connects to device specified by devInfo. + * @param config Config with which the device will be booted with + * @param devInfo DeviceInfo which specifies which device to connect to + * @param pathToCmd Path to custom device firmware + */ + public DeviceBase(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd) { super((Pointer)null); allocate(config, devInfo, pathToCmd); } + private native void allocate(@ByVal Config config, @Const @ByRef DeviceInfo devInfo, @Const @ByRef Path pathToCmd); + /** * Device destructor * \note In the destructor of the derived class, remember to call close() @@ -436,6 +496,12 @@ public static class Config extends Pointer { */ public native @StdString BytePointer getDeviceName(); + /** + * Get product name if available + * @return product name or empty string if not available + */ + public native @StdString BytePointer getProductName(); + /** * Get MxId of device * @@ -495,6 +561,7 @@ public static class Config extends Pointer { /** * Retrieves crash dump for debugging. */ + public native @ByVal CrashDump getCrashDump(@Cast("bool") boolean clearCrashDump/*=true*/); public native @ByVal CrashDump getCrashDump(); /** @@ -502,6 +569,13 @@ public static class Config extends Pointer { */ public native @Cast("bool") boolean hasCrashDump(); + /** + * Get current accumulated profiling data + * + * @return ProfilingData from the specific device + */ + public native @ByVal ProfilingData getProfilingData(); + /** * Add a callback for device logging. The callback will be called from a separate thread with the LogMessage being passed. * diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DeviceBootloader.java b/depthai/src/gen/java/org/bytedeco/depthai/DeviceBootloader.java index 9687fcfd641..8bb1649195c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DeviceBootloader.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DeviceBootloader.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/DeviceInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/DeviceInfo.java index 51fec620aa0..3338271cf30 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/DeviceInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/DeviceInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetector.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetector.java index 2f74ff0d41c..bfae61d2920 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfig.java index 74bd923fb9b..0d59228723e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -55,4 +55,16 @@ public class EdgeDetectorConfig extends Buffer { * @return EdgeDetectorConfigData: sobel filter horizontal and vertical 3x3 kernels */ public native @ByVal EdgeDetectorConfigData getConfigData(); + + /** + * Set explicit configuration. + * @param config Explicit configuration + */ + public native @ByRef EdgeDetectorConfig set(@ByVal RawEdgeDetectorConfig config); + + /** + * Retrieve configuration data for EdgeDetector. + * @return config for EdgeDetector + */ + public native @ByVal RawEdgeDetectorConfig get(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfigData.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfigData.java index 3548f1bb3ff..c01049297f3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfigData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorConfigData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorProperties.java index 1a37027fedb..34230d96af6 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesNode.java index 9e1bbedf652..d2c78a6ec1d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesSerializable.java index 4bf948a0e6d..298303c9048 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EdgeDetectorPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EepromData.java b/depthai/src/gen/java/org/bytedeco/depthai/EepromData.java index 3278db916a4..4c669caa5ec 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EepromData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EepromData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -46,11 +46,16 @@ public class EepromData extends Pointer { public native @StdString BytePointer boardRev(); public native EepromData boardRev(BytePointer setter); public native @StdString BytePointer boardConf(); public native EepromData boardConf(BytePointer setter); public native @StdString BytePointer hardwareConf(); public native EepromData hardwareConf(BytePointer setter); - public native @StdString BytePointer batchName(); public native EepromData batchName(BytePointer setter); + public native @StdString BytePointer deviceName(); public native EepromData deviceName(BytePointer setter); + public native @StdString BytePointer batchName(); public native EepromData batchName(BytePointer setter); /** Deprecated, not used or stored */ public native @Cast("uint64_t") long batchTime(); public native EepromData batchTime(long setter); public native @Cast("uint32_t") int boardOptions(); public native EepromData boardOptions(int setter); public native @ByRef CameraBoardSocketCameraInfoMap cameraData(); public native EepromData cameraData(CameraBoardSocketCameraInfoMap setter); public native @ByRef StereoRectification stereoRectificationData(); public native EepromData stereoRectificationData(StereoRectification setter); public native @ByRef Extrinsics imuExtrinsics(); public native EepromData imuExtrinsics(Extrinsics setter); + public native @ByRef Extrinsics housingExtrinsics(); public native EepromData housingExtrinsics(Extrinsics setter); public native @ByRef ByteVector miscellaneousData(); public native EepromData miscellaneousData(ByteVector setter); + public native @Cast("bool") boolean stereoUseSpecTranslation(); public native EepromData stereoUseSpecTranslation(boolean setter); + public native @Cast("bool") boolean stereoEnableDistortionCorrection(); public native EepromData stereoEnableDistortionCorrection(boolean setter); + public native CameraBoardSocket verticalCameraSocket(); public native EepromData verticalCameraSocket(CameraBoardSocket setter); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/EepromDataOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/EepromDataOptional.java index f9fa5d432c7..8a8ecb1e088 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/EepromDataOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/EepromDataOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class EepromDataOptional extends Pointer { public native @Name("operator =") @ByRef EepromDataOptional put(@ByRef EepromDataOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef EepromData get(); @ValueSetter public native EepromDataOptional put(@ByRef EepromData value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Extrinsics.java b/depthai/src/gen/java/org/bytedeco/depthai/Extrinsics.java index 2d3927b9abc..d28b00c5d09 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Extrinsics.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Extrinsics.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/FloatFloatPairVector.java b/depthai/src/gen/java/org/bytedeco/depthai/FloatFloatPairVector.java index 9655d26bf50..1ac1391287b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/FloatFloatPairVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/FloatFloatPairVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/FloatOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/FloatOptional.java index a933c9285ac..ae8e2f8ab7b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/FloatOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/FloatOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class FloatOptional extends Pointer { public native @Name("operator =") @ByRef FloatOptional put(@ByRef FloatOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") float get(); @ValueSetter public native FloatOptional put(float value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVector.java b/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVector.java index c6b3ef0a792..9c25c0d8b84 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVectorIntIntTuple.java b/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVectorIntIntTuple.java index 1ec2e1fcd54..3d278c91349 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVectorIntIntTuple.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/FloatVectorVectorIntIntTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/GlobalProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/GlobalProperties.java index 0868cfcce98..f09cc468587 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/GlobalProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/GlobalProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/GlobalPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/GlobalPropertiesSerializable.java index 63cb0b3a105..409ef43aad8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/GlobalPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/GlobalPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMU.java b/depthai/src/gen/java/org/bytedeco/depthai/IMU.java index 164c9a6ab56..5270980359e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMU.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMU.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUData.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUData.java index 700c34b1ef9..4e04747f9e9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUPacket.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUPacket.java index 2aeaa7bebd9..5e69f153bb8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUPacket.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUPacket.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUProperties.java index 381813d5c6e..2058cc0cad9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesNode.java index ba33828f9db..800a8f16c83 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesSerializable.java index 04609945809..67771ab2490 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUReport.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUReport.java index d7756b32fe5..8e633197bc3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUReport.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUReport.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportAccelerometer.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportAccelerometer.java index 6cdbe5fa843..51d913a208c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportAccelerometer.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportAccelerometer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportGyroscope.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportGyroscope.java index d0935eed083..5054ffff865 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportGyroscope.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportGyroscope.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportMagneticField.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportMagneticField.java index e744c75a122..07b14dba466 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportMagneticField.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportMagneticField.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportRotationVectorWAcc.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportRotationVectorWAcc.java index 0bf0fc34649..88f3a00c481 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUReportRotationVectorWAcc.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUReportRotationVectorWAcc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IMUSensorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/IMUSensorConfig.java index 8863fbe3aa5..c4ef677f4b8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IMUSensorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IMUSensorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImageManip.java b/depthai/src/gen/java/org/bytedeco/depthai/ImageManip.java index 20aa4cbf172..eac4446e3ce 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImageManip.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImageManip.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipConfig.java index 65726033173..afc653dfaad 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -215,6 +215,13 @@ public class ImageManipConfig extends Buffer { */ public native @ByRef ImageManipConfig setKeepAspectRatio(@Cast("bool") boolean keep); + /** + * Specify which interpolation method to use + * @param interpolation type of interpolation + */ + public native @ByRef ImageManipConfig setInterpolation(Interpolation interpolation); + public native @ByRef ImageManipConfig setInterpolation(@Cast("dai::Interpolation") int interpolation); + // Functions to retrieve properties /** * @return Top left X coordinate of crop region @@ -270,4 +277,19 @@ public class ImageManipConfig extends Buffer { * @return specified colormap */ public native Colormap getColormap(); + + /** + * Set explicit configuration. + * @param config Explicit configuration + */ + public native @ByRef ImageManipConfig set(@ByVal RawImageManipConfig config); + + /** + * Retrieve configuration data for ImageManip. + * @return config for ImageManip + */ + public native @ByVal RawImageManipConfig get(); + + /** Retrieve which interpolation method to use */ + public native Interpolation getInterpolation(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipProperties.java index c40325c740d..79c10484644 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesNode.java index 91e7de97fdf..33053e8f84b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesSerializable.java index c77cb029c50..792b515ed31 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImageManipPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImgDetection.java b/depthai/src/gen/java/org/bytedeco/depthai/ImgDetection.java index 14f9ddb87ef..fdc6fb28c3b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImgDetection.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImgDetection.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImgDetections.java b/depthai/src/gen/java/org/bytedeco/depthai/ImgDetections.java index e213d2791fb..6b001fffedf 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImgDetections.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImgDetections.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -58,20 +58,4 @@ public class ImgDetections extends Buffer { * Retrieves image sequence number */ public native @ByRef ImgDetections setSequenceNum(@Cast("int64_t") long sequenceNum); - - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ImgFrame.java b/depthai/src/gen/java/org/bytedeco/depthai/ImgFrame.java index 8bf367df287..c44404d06b0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ImgFrame.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ImgFrame.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -46,18 +46,6 @@ public class ImgFrame extends Buffer { public ImgFrame(@SharedPtr RawImgFrame ptr) { super((Pointer)null); allocate(ptr); } private native void allocate(@SharedPtr RawImgFrame ptr); - // getters - /** - * Retrieves image timestamp (end of exposure) related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp (end of exposure) directly captured from device's monotonic clock, - * not synchronized to host time. Used when monotonicity is required. - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - // getters /** * Retrieves image timestamp (at the specified offset of exposure) related to dai::Clock::now() @@ -82,11 +70,6 @@ public class ImgFrame extends Buffer { */ public native @Cast("unsigned int") int getCategory(); - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); - /** * Retrieves image width in pixels */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IntIntMap.java b/depthai/src/gen/java/org/bytedeco/depthai/IntIntMap.java new file mode 100644 index 00000000000..546356fbdd4 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/IntIntMap.java @@ -0,0 +1,47 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("std::unordered_map") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class IntIntMap extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public IntIntMap(Pointer p) { super(p); } + public IntIntMap() { allocate(); } + private native void allocate(); + public native @Name("operator =") @ByRef IntIntMap put(@ByRef IntIntMap x); + + public boolean empty() { return size() == 0; } + public native long size(); + + @Index public native int get(int i); + public native IntIntMap put(int i, int value); + + public native void erase(@ByVal Iterator pos); + public native @ByVal Iterator begin(); + public native @ByVal Iterator end(); + @NoOffset @Name("iterator") public static class Iterator extends Pointer { + public Iterator(Pointer p) { super(p); } + public Iterator() { } + + public native @Name("operator ++") @ByRef Iterator increment(); + public native @Name("operator ==") boolean equals(@ByRef Iterator it); + public native @Name("operator *().first") @MemberGetter int first(); + public native @Name("operator *().second") @MemberGetter int second(); + } +} + diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IntOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/IntOptional.java index 024f7bffb99..d47c250b320 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IntOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IntOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class IntOptional extends Pointer { public native @Name("operator =") @ByRef IntOptional put(@ByRef IntOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") int get(); @ValueSetter public native IntOptional put(int value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/IntVector.java b/depthai/src/gen/java/org/bytedeco/depthai/IntVector.java index a5803420acc..fea97818b5c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/IntVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/IntVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -33,6 +33,8 @@ public class IntVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public int front() { return get(0); } + public int back() { return get(size() - 1); } @Index(function = "at") public native int get(@Cast("size_t") long i); public native IntVector put(@Cast("size_t") long i, int value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/LogLevelOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/LogLevelOptional.java index d0a608a49cd..d183a687966 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/LogLevelOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/LogLevelOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class LogLevelOptional extends Pointer { public native @Name("operator =") @ByRef LogLevelOptional put(@ByRef LogLevelOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef LogLevel get(); @ValueSetter public native LogLevelOptional put(@ByRef LogLevel value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/LogMessage.java b/depthai/src/gen/java/org/bytedeco/depthai/LogMessage.java index d48560081f8..4adb7efc199 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/LogMessage.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/LogMessage.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/LongNodeObjInfoMap.java b/depthai/src/gen/java/org/bytedeco/depthai/LongNodeObjInfoMap.java index c0412433420..6515b218762 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/LongNodeObjInfoMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/LongNodeObjInfoMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -28,6 +28,8 @@ public class LongNodeObjInfoMap extends Pointer { public boolean empty() { return size() == 0; } public native long size(); + public NodeObjInfo front() { return get(0); } + public NodeObjInfo back() { return get(size() - 1); } @Index public native @ByRef NodeObjInfo get(@Cast("int64_t") long i); public native LongNodeObjInfoMap put(@Cast("int64_t") long i, NodeObjInfo value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MemoryInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/MemoryInfo.java index 5fe8dbf4646..8d3ed81c9c1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MemoryInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MemoryInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetwork.java index d25d6a21822..9153c4f5995 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetworkPropertiesNode.java index 0e5793c97a1..4f9307af50f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetDetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetwork.java index a36e3560bca..81e87aa6c5a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetworkPropertiesNode.java index 1a632ac1b56..29695d79f1e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MobileNetSpatialDetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MonoCamera.java b/depthai/src/gen/java/org/bytedeco/depthai/MonoCamera.java index 7c41f91fa60..5f41a0f41d7 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MonoCamera.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MonoCamera.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -21,7 +21,7 @@ * \brief MonoCamera node. For use with grayscale sensors. */ @Namespace("dai::node") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) -public class MonoCamera extends ColorCameraPropertiesNode { +public class MonoCamera extends MonoCameraPropertiesNode { static { Loader.load(); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ public MonoCamera(Pointer p) { super(p); } @@ -159,4 +159,15 @@ public class MonoCamera extends ColorCameraPropertiesNode { public native int getNumFramesPool(); /** Get number of frames in raw pool */ public native int getRawNumFramesPool(); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native void setRawOutputPacked(@Cast("bool") boolean packed); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraProperties.java index 32b6bc25d77..52f6a58e73c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -102,4 +102,15 @@ public enum SensorResolution { THE_720_P(0), THE_800_P(1), THE_400_P(2), THE_480 * List of events to receive, the rest will be ignored */ public native @StdVector @Cast("dai::FrameEvent*") IntPointer eventFilter(); public native MonoCameraProperties eventFilter(IntPointer setter); + + /** + * Configures whether the camera {@code raw} frames are saved as MIPI-packed to memory. + * The packed format is more efficient, consuming less memory on device, and less data + * to send to host: RAW10: 4 pixels saved on 5 bytes, RAW12: 2 pixels saved on 3 bytes. + * When packing is disabled ({@code false}), data is saved lsb-aligned, e.g. a RAW10 pixel + * will be stored as uint16, on bits 9..0: 0b0000'00pp'pppp'pppp. + * Default is auto: enabled for standard color/monochrome cameras where ISP can work + * with both packed/unpacked, but disabled for other cameras like ToF. + */ + public native @ByRef BoolOptional rawPacked(); public native MonoCameraProperties rawPacked(BoolOptional setter); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesNode.java new file mode 100644 index 00000000000..6941ccb2499 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesNode.java @@ -0,0 +1,29 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::NodeCRTP") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class MonoCameraPropertiesNode extends Node { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public MonoCameraPropertiesNode(Pointer p) { super(p); } + + /** Underlying properties */ + public native @Cast("dai::NodeCRTP::Properties*") @ByRef MonoCameraProperties properties(); public native MonoCameraPropertiesNode properties(MonoCameraProperties setter); + public native @Override @Cast("const char*") BytePointer getName(); + public native @UniquePtr @Override Node clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesSerializable.java index 017d9bef118..1ad6e549cb8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/MonoCameraPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NNData.java b/depthai/src/gen/java/org/bytedeco/depthai/NNData.java index d40a3fc9543..2b24830f143 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NNData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NNData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -171,22 +171,6 @@ public class NNData extends Buffer { */ public native @Cast("std::int32_t*") @StdVector IntPointer getFirstLayerInt32(); - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); - /** * Sets image timestamp related to dai::Clock::now() */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NetworkConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/NetworkConfig.java index 4639824f083..468112a636e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NetworkConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NetworkConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetwork.java index e66e036357b..52833bfd6f8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkProperties.java index fabb9e09416..f1e17bce64b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesNode.java index 437cc22bb56..0e3933d0f1a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesSerializable.java index 6811f0ee4b8..0eaba3763f1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NeuralNetworkPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Node.java b/depthai/src/gen/java/org/bytedeco/depthai/Node.java index c89bfa98c32..4596334880a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Node.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Node.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeConnectionSchema.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeConnectionSchema.java index fb65df519ac..9b4585b3f23 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeConnectionSchema.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeConnectionSchema.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeIdConnectionSetMap.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeIdConnectionSetMap.java index 2242e877e3b..fd592958ea8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeIdConnectionSetMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeIdConnectionSetMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -28,6 +28,8 @@ public class NodeIdConnectionSetMap extends Pointer { public boolean empty() { return size() == 0; } public native long size(); + public ConnectionSet front() { return get(0); } + public ConnectionSet back() { return get(size() - 1); } @Index public native @ByRef ConnectionSet get(@Cast("dai::Node::Id") long i); public native NodeIdConnectionSetMap put(@Cast("dai::Node::Id") long i, ConnectionSet value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeIdNodeMap.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeIdNodeMap.java index 29dd737669f..ff1b5ff2a3a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeIdNodeMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeIdNodeMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -28,6 +28,8 @@ public class NodeIdNodeMap extends Pointer { public boolean empty() { return size() == 0; } public native long size(); + public Node front() { return get(0); } + public Node back() { return get(size() - 1); } @Index public native @SharedPtr Node get(@Cast("dai::Node::Id") long i); public native NodeIdNodeMap put(@Cast("dai::Node::Id") long i, Node value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeIoInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeIoInfo.java index 080ff4e1300..09fb9719a0a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeIoInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeIoInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeObjInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeObjInfo.java index b0317c66697..e6f132627f2 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeObjInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeObjInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/NodeVector.java b/depthai/src/gen/java/org/bytedeco/depthai/NodeVector.java index 492e013a979..2e826a559a3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/NodeVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/NodeVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -34,6 +34,8 @@ public class NodeVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public Node front() { return get(0); } + public Node back() { return get(size() - 1); } @Index(function = "at") public native @SharedPtr Node get(@Cast("size_t") long i); public native NodeVector put(@Cast("size_t") long i, Node value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTracker.java b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTracker.java index a59dfd9ceb0..1255da77284 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTracker.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTracker.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerProperties.java index 8ece575eae1..e8dea19485b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesNode.java index 0f41ae7c1b0..691ebe6d756 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesSerializable.java index c6ad9527075..cedfcb82450 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/ObjectTrackerPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/OpenVINO.java b/depthai/src/gen/java/org/bytedeco/depthai/OpenVINO.java index 8ee4ce5ad8f..23fb454c180 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/OpenVINO.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/OpenVINO.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Path.java b/depthai/src/gen/java/org/bytedeco/depthai/Path.java index c340651852f..50f0062cd9a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Path.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Path.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Pipeline.java b/depthai/src/gen/java/org/bytedeco/depthai/Pipeline.java index 6a3a3aa4c1e..2cea0a80d11 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Pipeline.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Pipeline.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -72,7 +72,9 @@ public class Pipeline extends Pointer { * Node is specified by template argument N */ public native @Name("create") @SharedPtr IMU createIMU(); + public native @Name("create") @SharedPtr UVC createUVC(); public native @Name("create") @SharedPtr AprilTagNode createAprilTag(); + public native @Name("create") @SharedPtr Camera createCamera(); public native @Name("create") @SharedPtr ColorCamera createColorCamera(); public native @Name("create") @SharedPtr ImageManip createImageManip(); public native @Name("create") @SharedPtr MonoCamera createMonoCamera(); @@ -87,6 +89,7 @@ public class Pipeline extends Pointer { public native @Name("create") @SharedPtr SpatialLocationCalculator createSpatialLocationCalculator(); public native @Name("create") @SharedPtr StereoDepth createStereoDepth(); public native @Name("create") @SharedPtr SystemLogger createSystemLogger(); + public native @Name("create") @SharedPtr ToF createToF(); public native @Name("create") @SharedPtr VideoEncoder createVideoEncoder(); public native @Name("create") @SharedPtr Warp createWarp(); public native @Name("create") @SharedPtr XLinkIn createXLinkIn(); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/PipelineImpl.java b/depthai/src/gen/java/org/bytedeco/depthai/PipelineImpl.java index 73bce7ec4b5..bc7f1c03255 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/PipelineImpl.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/PipelineImpl.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/PipelineSchema.java b/depthai/src/gen/java/org/bytedeco/depthai/PipelineSchema.java index 989d0590ffa..4f69aece259 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/PipelineSchema.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/PipelineSchema.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Point2f.java b/depthai/src/gen/java/org/bytedeco/depthai/Point2f.java index 81b2eac5ded..c83a2895394 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Point2f.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Point2f.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Point2fVector.java b/depthai/src/gen/java/org/bytedeco/depthai/Point2fVector.java index c9d7e17ac9a..19534a1b29a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Point2fVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Point2fVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -34,6 +34,8 @@ public class Point2fVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public Point2f front() { return get(0); } + public Point2f back() { return get(size() - 1); } @Index(function = "at") public native @ByRef Point2f get(@Cast("size_t") long i); public native Point2fVector put(@Cast("size_t") long i, Point2f value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Point3f.java b/depthai/src/gen/java/org/bytedeco/depthai/Point3f.java index 6cfbc8f794a..c7d21ebebbb 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Point3f.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Point3f.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ProfilingData.java b/depthai/src/gen/java/org/bytedeco/depthai/ProfilingData.java new file mode 100644 index 00000000000..a2578d438f5 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ProfilingData.java @@ -0,0 +1,40 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +@Namespace("dai") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ProfilingData extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public ProfilingData() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public ProfilingData(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ProfilingData(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public ProfilingData position(long position) { + return (ProfilingData)super.position(position); + } + @Override public ProfilingData getPointer(long i) { + return new ProfilingData((Pointer)this).offsetAddress(i); + } + + public native long numBytesWritten(); public native ProfilingData numBytesWritten(long setter); + public native long numBytesRead(); public native ProfilingData numBytesRead(long setter); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTagConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTagConfig.java index ec74ec5b362..d0f46675337 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTagConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTagConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTags.java b/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTags.java index 2af0f7adbdf..287e029fe87 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTags.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawAprilTags.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,11 +38,6 @@ public class RawAprilTags extends RawBuffer { public native @StdVector AprilTag aprilTags(); public native RawAprilTags aprilTags(AprilTag setter); - // Related to input ImgFrame - public native @Cast("int64_t") long sequenceNum(); public native RawAprilTags sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawAprilTags ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawAprilTags tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawBuffer.java b/depthai/src/gen/java/org/bytedeco/depthai/RawBuffer.java index e4ee603af65..38b630b2920 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawBuffer.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawBuffer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,6 +38,10 @@ public class RawBuffer extends Pointer { public native @Cast("std::uint8_t*") @StdVector BytePointer data(); public native RawBuffer data(BytePointer setter); + public native @Cast("int64_t") long sequenceNum(); public native RawBuffer sequenceNum(long setter); + public native @ByRef Timestamp ts(); public native RawBuffer ts(Timestamp setter); + public native @ByRef Timestamp tsDevice(); public native RawBuffer tsDevice(Timestamp setter); + public native void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawCameraControl.java b/depthai/src/gen/java/org/bytedeco/depthai/RawCameraControl.java index 5c317101213..6b7212da98c 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawCameraControl.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawCameraControl.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawEdgeDetectorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawEdgeDetectorConfig.java index 4fe4830b41b..3f109ccf7d0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawEdgeDetectorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawEdgeDetectorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawIMUData.java b/depthai/src/gen/java/org/bytedeco/depthai/RawIMUData.java index 742a53e774a..088b50046a9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawIMUData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawIMUData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawImageManipConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawImageManipConfig.java index 5749847b508..9de2507fbda 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawImageManipConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawImageManipConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -176,6 +176,9 @@ public static class FormatConfig extends Pointer { public native @Cast("bool") boolean reusePreviousImage(); public native RawImageManipConfig reusePreviousImage(boolean setter); public native @Cast("bool") boolean skipCurrentImage(); public native RawImageManipConfig skipCurrentImage(boolean setter); + /** Interpolation type to use */ + public native Interpolation interpolation(); public native RawImageManipConfig interpolation(Interpolation setter); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawImgDetections.java b/depthai/src/gen/java/org/bytedeco/depthai/RawImgDetections.java index 887185520ab..006dfe1cf57 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawImgDetections.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawImgDetections.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,11 +38,6 @@ public class RawImgDetections extends RawBuffer { public native @StdVector ImgDetection detections(); public native RawImgDetections detections(ImgDetection setter); - // Related to input ImgFrame - public native @Cast("int64_t") long sequenceNum(); public native RawImgDetections sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawImgDetections ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawImgDetections tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawImgFrame.java b/depthai/src/gen/java/org/bytedeco/depthai/RawImgFrame.java index a0241b04875..618239e3511 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawImgFrame.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawImgFrame.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -134,9 +134,6 @@ public static class CameraSettings extends Pointer { public native @ByRef CameraSettings cam(); public native RawImgFrame cam(CameraSettings setter); public native @Cast("uint32_t") int category(); public native RawImgFrame category(int setter); // public native @Cast("uint32_t") int instanceNum(); public native RawImgFrame instanceNum(int setter); // Which source created this frame (color, mono, ...) - public native @Cast("int64_t") long sequenceNum(); public native RawImgFrame sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawImgFrame ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawImgFrame tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock public native FrameEvent event(); public native RawImgFrame event(FrameEvent setter); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawNNData.java b/depthai/src/gen/java/org/bytedeco/depthai/RawNNData.java index aada6cc8c5f..03760c253b8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawNNData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawNNData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -40,11 +40,6 @@ public class RawNNData extends RawBuffer { public native @StdVector TensorInfo tensors(); public native RawNNData tensors(TensorInfo setter); public native @Cast("unsigned int") int batchSize(); public native RawNNData batchSize(int setter); - // Related to input ImgFrame - public native @Cast("int64_t") long sequenceNum(); public native RawNNData sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawNNData ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawNNData tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialImgDetections.java b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialImgDetections.java index 74c3cf9e4a2..302e64a1ef2 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialImgDetections.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialImgDetections.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,11 +38,6 @@ public class RawSpatialImgDetections extends RawBuffer { public native @StdVector SpatialImgDetection detections(); public native RawSpatialImgDetections detections(SpatialImgDetection setter); - // Related to input ImgFrame - public native @Cast("int64_t") long sequenceNum(); public native RawSpatialImgDetections sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawSpatialImgDetections ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawSpatialImgDetections tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocationCalculatorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocationCalculatorConfig.java index 1951243f3a9..ec92654d60a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocationCalculatorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocationCalculatorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocations.java b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocations.java index 05e3b6c5392..59599547400 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocations.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawSpatialLocations.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,11 +38,6 @@ public class RawSpatialLocations extends RawBuffer { public native @StdVector SpatialLocations spatialLocations(); public native RawSpatialLocations spatialLocations(SpatialLocations setter); - // Related to input ImgFrame, depth frame - public native @Cast("int64_t") long sequenceNum(); public native RawSpatialLocations sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawSpatialLocations ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawSpatialLocations tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawStereoDepthConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawStereoDepthConfig.java index 28332d8febb..b7d1279b8ed 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawStereoDepthConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawStereoDepthConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawSystemInformation.java b/depthai/src/gen/java/org/bytedeco/depthai/RawSystemInformation.java index 5544fa59b42..7ed9c2a6b79 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawSystemInformation.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawSystemInformation.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawToFConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/RawToFConfig.java new file mode 100644 index 00000000000..824a8c4bd80 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawToFConfig.java @@ -0,0 +1,100 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** RawToFConfig configuration structure */ +@Namespace("dai") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class RawToFConfig extends RawBuffer { + static { Loader.load(); } + /** Default native constructor. */ + public RawToFConfig() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public RawToFConfig(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public RawToFConfig(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public RawToFConfig position(long position) { + return (RawToFConfig)super.position(position); + } + @Override public RawToFConfig getPointer(long i) { + return new RawToFConfig((Pointer)this).offsetAddress(i); + } + + /** + * DepthParams configuration structure. + */ + public static class DepthParams extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public DepthParams() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public DepthParams(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public DepthParams(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public DepthParams position(long position) { + return (DepthParams)super.position(position); + } + @Override public DepthParams getPointer(long i) { + return new DepthParams((Pointer)this).offsetAddress(i); + } + + /** + * Enable averaging between phases with same modulation frequency(e.g. for ToF cameras with phase shuffle). + * The depth frame rate will be half if this is enabled + */ + public native @Cast("bool") boolean avgPhaseShuffle(); public native DepthParams avgPhaseShuffle(boolean setter); + + /** + * Perform depth calculation only for pixels with amplitude greater than provided value + */ + public native float minimumAmplitude(); public native DepthParams minimumAmplitude(float setter); + + /** + * Frequency modulation frames used for depth calculation. If the ToF sensor supports multiple modulation frequencies, + * all will be used for depth calculation. + */ + public enum TypeFMod { F_MOD_ALL(0), F_MOD_MIN(1), F_MOD_MAX(2); + + public final int value; + private TypeFMod(int v) { this.value = v; } + private TypeFMod(TypeFMod e) { this.value = e.value; } + public TypeFMod intern() { for (TypeFMod e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } + } + + public native TypeFMod freqModUsed(); public native DepthParams freqModUsed(TypeFMod setter); + + /** + * Set kernel size for depth median filtering, or disable + */ + public native MedianFilter median(); public native DepthParams median(MedianFilter setter); + } + + /** + * DepthParams configuration. + * Used for configuring the ToF. + */ + public native @ByRef DepthParams depthParams(); public native RawToFConfig depthParams(DepthParams setter); + + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RawTracklets.java b/depthai/src/gen/java/org/bytedeco/depthai/RawTracklets.java index d7369b3d270..ef18ff24bd0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RawTracklets.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RawTracklets.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,11 +38,6 @@ public class RawTracklets extends RawBuffer { public native @StdVector Tracklet tracklets(); public native RawTracklets tracklets(Tracklet setter); - // Related to input ImgFrame - public native @Cast("int64_t") long sequenceNum(); public native RawTracklets sequenceNum(long setter); // increments for each frame - public native @ByRef Timestamp ts(); public native RawTracklets ts(Timestamp setter); // generation timestamp, synced to host time - public native @ByRef Timestamp tsDevice(); public native RawTracklets tsDevice(Timestamp setter); // generation timestamp, direct device monotonic clock - public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntPointer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer metadata, @ByRef @Cast("dai::DatatypeEnum*") IntBuffer datatype); public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] metadata, @ByRef @Cast("dai::DatatypeEnum*") int[] datatype); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Rect.java b/depthai/src/gen/java/org/bytedeco/depthai/Rect.java index 52ade2a8224..7b7fa57995e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Rect.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Rect.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/RotatedRect.java b/depthai/src/gen/java/org/bytedeco/depthai/RotatedRect.java index 9a395823c28..72e853507ef 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/RotatedRect.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/RotatedRect.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SPIOut.java b/depthai/src/gen/java/org/bytedeco/depthai/SPIOut.java index 56df3664741..c982378d498 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SPIOut.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SPIOut.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutProperties.java index ac5c15db916..30f2cfe218a 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesNode.java index 428d64b6a15..4e6519e2fbc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesSerializable.java index 4516c823c00..097b4a0e40b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SPIOutPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Size2f.java b/depthai/src/gen/java/org/bytedeco/depthai/Size2f.java index ba2feff621b..8028f34884f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Size2f.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Size2f.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SizeTOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/SizeTOptional.java index b4ea8f55517..6afff9f22f8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SizeTOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SizeTOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class SizeTOptional extends Pointer { public native @Name("operator =") @ByRef SizeTOptional put(@ByRef SizeTOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @Cast("size_t") long get(); @ValueSetter public native SizeTOptional put(@Cast("size_t") long value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetwork.java index a533c3e55ae..7c9fd900639 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkProperties.java index 22ca334edbf..10f299ebfb9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesNode.java index 024cbe4750e..a76e22a7f04 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesSerializable.java index 9797c67c2cf..47d7aa39525 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialDetectionNetworkPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetection.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetection.java index 36233e03924..baa2493b52e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetection.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetection.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetections.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetections.java index 84587b5594f..707528dadb0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetections.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialImgDetections.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -62,20 +62,4 @@ public class SpatialImgDetections extends Buffer { * Retrieves image sequence number */ public native @ByRef SpatialImgDetections setSequenceNum(@Cast("int64_t") long sequenceNum); - - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculator.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculator.java index 7ea5d48e0ef..2ad7be3db3b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculator.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculator.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfig.java index 9248016fb87..898fe60f3b9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -59,4 +59,16 @@ public class SpatialLocationCalculatorConfig extends Buffer { * @return Vector of configuration parameters for ROIs (region of interests) */ public native @StdVector SpatialLocationCalculatorConfigData getConfigData(); + + /** + * Set explicit configuration. + * @param config Explicit configuration + */ + public native @ByRef SpatialLocationCalculatorConfig set(@ByVal RawSpatialLocationCalculatorConfig config); + + /** + * Retrieve configuration data for SpatialLocationCalculator. + * @return config for SpatialLocationCalculator + */ + public native @ByVal RawSpatialLocationCalculatorConfig get(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigData.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigData.java index e6d956936f9..48374c4e35b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigThresholds.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigThresholds.java index 31ed6d833cf..8adf336bdfd 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigThresholds.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorConfigThresholds.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorData.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorData.java index 59d638789fa..84cc73f4745 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorData.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -51,22 +51,6 @@ public class SpatialLocationCalculatorData extends Buffer { public native @StdVector SpatialLocations spatialLocations(); public native SpatialLocationCalculatorData spatialLocations(SpatialLocations setter); - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); - /** * Sets image timestamp related to dai::Clock::now() */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorProperties.java index 3edca8ad53b..61686c97434 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesNode.java index 7e53a755b91..3b239cff1d0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesSerializable.java index a2743e4c465..1691c01e6e3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocationCalculatorPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocations.java b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocations.java index 5eef88a3564..7ff7dd749b8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocations.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SpatialLocations.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepth.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepth.java index a78dea64525..21aeb9594ff 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepth.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepth.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthConfig.java index 4bf6e9ced47..7fd33248fb7 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthProperties.java index 6f3de12284b..9c9b8d41080 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -194,24 +194,22 @@ public static class RectificationMesh extends Pointer { /** * Use baseline information for disparity to depth conversion from specs (design data) or from calibration. - * Suitable for debugging. - * Default: true + * Suitable for debugging. Utilizes calibrated value as default */ - public native @Cast("bool") boolean disparityToDepthUseSpecTranslation(); public native StereoDepthProperties disparityToDepthUseSpecTranslation(boolean setter); + public native @ByRef BoolOptional disparityToDepthUseSpecTranslation(); public native StereoDepthProperties disparityToDepthUseSpecTranslation(BoolOptional setter); /** * Obtain rectification matrices using spec translation (design data) or from calibration in calculations. * Suitable for debugging. * Default: false */ - public native @Cast("bool") boolean rectificationUseSpecTranslation(); public native StereoDepthProperties rectificationUseSpecTranslation(boolean setter); + public native @ByRef BoolOptional rectificationUseSpecTranslation(); public native StereoDepthProperties rectificationUseSpecTranslation(BoolOptional setter); /** * Use baseline information for depth alignment from specs (design data) or from calibration. - * Suitable for debugging. - * Default: true + * Suitable for debugging. Utilizes calibrated value as default */ - public native @Cast("bool") boolean depthAlignmentUseSpecTranslation(); public native StereoDepthProperties depthAlignmentUseSpecTranslation(boolean setter); + public native @ByRef BoolOptional depthAlignmentUseSpecTranslation(); public native StereoDepthProperties depthAlignmentUseSpecTranslation(BoolOptional setter); /** * Free scaling parameter between 0 (when all the pixels in the undistorted image are valid) diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesNode.java index 96b9711e14b..f4ed8d0fe64 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesSerializable.java index 8b4d9a433cf..a3e9fb96310 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoDepthPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StereoRectification.java b/depthai/src/gen/java/org/bytedeco/depthai/StereoRectification.java index 4a768d4e8bd..64557dd81d0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StereoRectification.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StereoRectification.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StreamPacketDesc.java b/depthai/src/gen/java/org/bytedeco/depthai/StreamPacketDesc.java index 4390f00d4a6..ae3b9b3f156 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StreamPacketDesc.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StreamPacketDesc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringAssetViewPairVector.java b/depthai/src/gen/java/org/bytedeco/depthai/StringAssetViewPairVector.java index 6fb30d19b24..dc33c4b8167 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringAssetViewPairVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringAssetViewPairVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringIntIntTuple.java b/depthai/src/gen/java/org/bytedeco/depthai/StringIntIntTuple.java index 94c09117129..f0d62fb43f8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringIntIntTuple.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringIntIntTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringIntVectorMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringIntVectorMap.java index 52521ea3c19..0d8c4b978d9 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringIntVectorMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringIntVectorMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMap.java index 1649f8162b7..45840eb1d25 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMapMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMapMap.java index 713bc1a31cd..2047b304ba1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMapMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeInputMapMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeIoInfoMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeIoInfoMap.java index 34188cf59e8..8b46c1878c4 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeIoInfoMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeIoInfoMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMap.java index 9945ea409ba..a0dfd91964b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMapMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMapMap.java index 2bb7ff60d1c..f542f4d0640 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMapMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringNodeOutputMapMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/StringOptional.java index f5e9f878bc7..2cf4b8a5e79 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -29,6 +29,7 @@ public class StringOptional extends Pointer { public native @Name("operator =") @ByRef StringOptional put(@ByRef StringOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @StdString BytePointer get(); @ValueSetter public native StringOptional put(@StdString BytePointer value); @ValueSetter public native StringOptional put(@StdString ByteBuffer value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringStringTuple.java b/depthai/src/gen/java/org/bytedeco/depthai/StringStringTuple.java index ec129dd99fe..ad320e233ee 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringStringTuple.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringStringTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringTensorInfoMap.java b/depthai/src/gen/java/org/bytedeco/depthai/StringTensorInfoMap.java index d5052881067..eb0cfb3a64b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringTensorInfoMap.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringTensorInfoMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/StringVector.java b/depthai/src/gen/java/org/bytedeco/depthai/StringVector.java index 9cac42ea4bb..820cd8c8a69 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/StringVector.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/StringVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -38,6 +38,8 @@ public class StringVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public BytePointer front() { return get(0); } + public BytePointer back() { return get(size() - 1); } @Index(function = "at") public native @StdString BytePointer get(@Cast("size_t") long i); public native StringVector put(@Cast("size_t") long i, BytePointer value); @ValueSetter @Index(function = "at") public native StringVector put(@Cast("size_t") long i, @StdString ByteBuffer value); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SystemInformation.java b/depthai/src/gen/java/org/bytedeco/depthai/SystemInformation.java index e57219593cc..a664cb1bad1 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SystemInformation.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SystemInformation.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SystemLogger.java b/depthai/src/gen/java/org/bytedeco/depthai/SystemLogger.java index 0b35c28d10a..c329bc7b351 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SystemLogger.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SystemLogger.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerProperties.java index 75c344e0823..87b1ba2ec5d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesNode.java index 01581e39de9..afbe483ddbd 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesSerializable.java index 8054f285a90..46b0d2151c4 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/SystemLoggerPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/TensorInfo.java b/depthai/src/gen/java/org/bytedeco/depthai/TensorInfo.java index 9013fc4388d..b9a925815ce 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/TensorInfo.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/TensorInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Timestamp.java b/depthai/src/gen/java/org/bytedeco/depthai/Timestamp.java index 1c877bbb4cd..ad48af64337 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Timestamp.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Timestamp.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ToF.java b/depthai/src/gen/java/org/bytedeco/depthai/ToF.java new file mode 100644 index 00000000000..f13275fc0d6 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ToF.java @@ -0,0 +1,54 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * \brief ToF node + */ +@Namespace("dai::node") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ToF extends ToFPropertiesNode { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ToF(Pointer p) { super(p); } + + @MemberGetter public static native @Cast("const char*") BytePointer NAME(); + public ToF(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId) { super((Pointer)null); allocate(par, nodeId); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId); + public ToF(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr ToFProperties props) { super((Pointer)null); allocate(par, nodeId, props); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr ToFProperties props); + + /** + * Initial config to use for depth calculation. + */ + @MemberGetter public native @ByRef ToFConfig initialConfig(); + + /** + * Input ToF message with ability to modify parameters in runtime. + * Default queue is non-blocking with size 4. + */ + @MemberGetter public native @ByRef Input inputConfig(); + + @MemberGetter public native @ByRef Input input(); + + /** + * Outputs ImgFrame message that carries modified image. + */ + @MemberGetter public native @ByRef Output depth(); + @MemberGetter public native @ByRef Output amplitude(); + @MemberGetter public native @ByRef Output error(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ToFConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/ToFConfig.java new file mode 100644 index 00000000000..95f4b94810d --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ToFConfig.java @@ -0,0 +1,69 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * ToFConfig message. Carries config for feature tracking algorithm + */ +@Namespace("dai") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ToFConfig extends Buffer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ToFConfig(Pointer p) { super(p); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public ToFConfig(long size) { super((Pointer)null); allocateArray(size); } + private native void allocateArray(long size); + @Override public ToFConfig position(long position) { + return (ToFConfig)super.position(position); + } + @Override public ToFConfig getPointer(long i) { + return new ToFConfig((Pointer)this).offsetAddress(i); + } + + // Raw* mirror + + /** + * Construct ToFConfig message. + */ + public ToFConfig() { super((Pointer)null); allocate(); } + private native void allocate(); + public ToFConfig(@SharedPtr RawToFConfig ptr) { super((Pointer)null); allocate(ptr); } + private native void allocate(@SharedPtr RawToFConfig ptr); + + public native @ByRef ToFConfig setDepthParams(@ByVal @Cast("dai::ToFConfig::DepthParams*") RawToFConfig.DepthParams config); + public native @ByRef ToFConfig setFreqModUsed(@ByVal RawToFConfig.DepthParams.TypeFMod fmod); + public native @ByRef ToFConfig setAvgPhaseShuffle(@Cast("bool") boolean enable); + public native @ByRef ToFConfig setMinAmplitude(float minamp); + /** + * @param median Set kernel size for median filtering, or disable + */ + public native @ByRef ToFConfig setMedianFilter(MedianFilter median); + public native @ByRef ToFConfig setMedianFilter(@Cast("dai::MedianFilter") int median); + + /** + * Set explicit configuration. + * @param config Explicit configuration + */ + public native @ByRef ToFConfig set(@ByVal RawToFConfig config); + + /** + * Retrieve configuration data for ToF. + * @return config for feature tracking algorithm + */ + public native @ByVal RawToFConfig get(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ToFProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/ToFProperties.java new file mode 100644 index 00000000000..1d6098b08db --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ToFProperties.java @@ -0,0 +1,45 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * Specify properties for ToF + */ +@Namespace("dai") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ToFProperties extends ToFPropertiesSerializable { + static { Loader.load(); } + /** Default native constructor. */ + public ToFProperties() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public ToFProperties(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ToFProperties(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public ToFProperties position(long position) { + return (ToFProperties)super.position(position); + } + @Override public ToFProperties getPointer(long i) { + return new ToFProperties((Pointer)this).offsetAddress(i); + } + + /** + * Initial ToF config + */ + public native @ByRef RawToFConfig initialConfig(); public native ToFProperties initialConfig(RawToFConfig setter); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesNode.java new file mode 100644 index 00000000000..1dd431b4b84 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesNode.java @@ -0,0 +1,29 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::NodeCRTP") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ToFPropertiesNode extends Node { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ToFPropertiesNode(Pointer p) { super(p); } + + /** Underlying properties */ + public native @Cast("dai::NodeCRTP::Properties*") @ByRef ToFProperties properties(); public native ToFPropertiesNode properties(ToFProperties setter); + public native @Override @Cast("const char*") BytePointer getName(); + public native @UniquePtr @Override Node clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesSerializable.java new file mode 100644 index 00000000000..f831b7c3df0 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/ToFPropertiesSerializable.java @@ -0,0 +1,48 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::PropertiesSerializable") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class ToFPropertiesSerializable extends DaiProperties { + static { Loader.load(); } + /** Default native constructor. */ + public ToFPropertiesSerializable() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public ToFPropertiesSerializable(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ToFPropertiesSerializable(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public ToFPropertiesSerializable position(long position) { + return (ToFPropertiesSerializable)super.position(position); + } + @Override public ToFPropertiesSerializable getPointer(long i) { + return new ToFPropertiesSerializable((Pointer)this).offsetAddress(i); + } + + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector byte[] data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + + public native @UniquePtr @Override DaiProperties clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Tracklet.java b/depthai/src/gen/java/org/bytedeco/depthai/Tracklet.java index ad5d8ba92e4..78aefcf5ce0 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Tracklet.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Tracklet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Tracklets.java b/depthai/src/gen/java/org/bytedeco/depthai/Tracklets.java index 24f02e05342..efa3dbb9169 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Tracklets.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Tracklets.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -49,22 +49,6 @@ public class Tracklets extends Buffer { */ public native @StdVector Tracklet tracklets(); public native Tracklets tracklets(Tracklet setter); - /** - * Retrieves image timestamp related to dai::Clock::now() - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestamp(); - - /** - * Retrieves image timestamp directly captured from device's monotonic clock, - * not synchronized to host time. Used mostly for debugging - */ - public native @ByVal @Cast("std::chrono::time_point*") Pointer getTimestampDevice(); - - /** - * Retrieves image sequence number - */ - public native @Cast("int64_t") long getSequenceNum(); - /** * Sets image timestamp related to dai::Clock::now() */ diff --git a/depthai/src/gen/java/org/bytedeco/depthai/UVC.java b/depthai/src/gen/java/org/bytedeco/depthai/UVC.java new file mode 100644 index 00000000000..6baf2d3fc3e --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/UVC.java @@ -0,0 +1,50 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * \brief UVC (USB Video Class) node + */ +@Namespace("dai::node") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class UVC extends UVCPropertiesNode { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public UVC(Pointer p) { super(p); } + + @MemberGetter public static native @Cast("const char*") BytePointer NAME(); + public UVC(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId) { super((Pointer)null); allocate(par, nodeId); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId); + public UVC(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr UVCProperties props) { super((Pointer)null); allocate(par, nodeId, props); } + private native void allocate(@SharedPtr PipelineImpl par, @Cast("int64_t") long nodeId, @UniquePtr UVCProperties props); + + /** + * Input for image frames to be streamed over UVC + * + * Default queue is blocking with size 8 + */ + @MemberGetter public native @ByRef Input input(); + + /** Set GPIO list for GPIOs to set (on/off) at init */ + public native void setGpiosOnInit(@ByVal IntIntMap list); + + /** Set GPIO list for GPIOs to set when streaming is enabled */ + public native void setGpiosOnStreamOn(@ByVal IntIntMap list); + + /** Set GPIO list for GPIOs to set when streaming is disabled */ + public native void setGpiosOnStreamOff(@ByVal IntIntMap list); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/UVCProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/UVCProperties.java new file mode 100644 index 00000000000..1722a6ee134 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/UVCProperties.java @@ -0,0 +1,49 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + + +/** + * Properties for UVC node + */ +@Namespace("dai") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class UVCProperties extends UVCPropertiesSerializable { + static { Loader.load(); } + /** Default native constructor. */ + public UVCProperties() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public UVCProperties(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public UVCProperties(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public UVCProperties position(long position) { + return (UVCProperties)super.position(position); + } + @Override public UVCProperties getPointer(long i) { + return new UVCProperties((Pointer)this).offsetAddress(i); + } + + /** list for GPIOs to set at init */ + public native @ByRef IntIntMap gpioInit(); public native UVCProperties gpioInit(IntIntMap setter); + + /** list for GPIOs to set when streaming is enabled */ + public native @ByRef IntIntMap gpioStreamOn(); public native UVCProperties gpioStreamOn(IntIntMap setter); + + /** list for GPIOs to set when streaming is disabled */ + public native @ByRef IntIntMap gpioStreamOff(); public native UVCProperties gpioStreamOff(IntIntMap setter); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesNode.java new file mode 100644 index 00000000000..eef10b0e9de --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesNode.java @@ -0,0 +1,29 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::NodeCRTP") @NoOffset @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class UVCPropertiesNode extends Node { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public UVCPropertiesNode(Pointer p) { super(p); } + + /** Underlying properties */ + public native @Cast("dai::NodeCRTP::Properties*") @ByRef UVCProperties properties(); public native UVCPropertiesNode properties(UVCProperties setter); + public native @Override @Cast("const char*") BytePointer getName(); + public native @UniquePtr @Override Node clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesSerializable.java new file mode 100644 index 00000000000..235d3d6231b --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/UVCPropertiesSerializable.java @@ -0,0 +1,48 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +@Name("dai::PropertiesSerializable") @Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class UVCPropertiesSerializable extends DaiProperties { + static { Loader.load(); } + /** Default native constructor. */ + public UVCPropertiesSerializable() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public UVCPropertiesSerializable(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public UVCPropertiesSerializable(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public UVCPropertiesSerializable position(long position) { + return (UVCPropertiesSerializable)super.position(position); + } + @Override public UVCPropertiesSerializable getPointer(long i) { + return new UVCPropertiesSerializable((Pointer)this).offsetAddress(i); + } + + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native void serialize(@Cast("std::uint8_t*") @StdVector byte[] data); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector BytePointer data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector ByteBuffer data, SerializationType type/*=dai::SerializationType::LIBNOP*/); + public native @Override void serialize(@Cast("std::uint8_t*") @StdVector byte[] data, @Cast("dai::SerializationType") int type/*=dai::SerializationType::LIBNOP*/); + + public native @UniquePtr @Override DaiProperties clone(); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/UsbConfig.java b/depthai/src/gen/java/org/bytedeco/depthai/UsbConfig.java index b5ee0822d4b..7edcb8ff437 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/UsbConfig.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/UsbConfig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VectorWriter.java b/depthai/src/gen/java/org/bytedeco/depthai/VectorWriter.java index fd50616b877..dd5b70f6340 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VectorWriter.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VectorWriter.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Version.java b/depthai/src/gen/java/org/bytedeco/depthai/Version.java index 38f6d102a51..64ff34132ec 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Version.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Version.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VersionOptional.java b/depthai/src/gen/java/org/bytedeco/depthai/VersionOptional.java index 1d6f3c62379..1fcdfdbfc6e 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VersionOptional.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VersionOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -27,6 +27,7 @@ public class VersionOptional extends Pointer { public native @Name("operator =") @ByRef VersionOptional put(@ByRef VersionOptional x); public native boolean has_value(); + public native void reset(); public native @Name("value") @ByRef Version get(); @ValueSetter public native VersionOptional put(@ByRef Version value); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoder.java b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoder.java index b19039c8c1b..fda8fbbb85b 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoder.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoder.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderProperties.java index 8ddb7b29e10..12ce58ef6dd 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesNode.java index 7b0c337f24d..0bf25195903 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesSerializable.java index dd275514341..a1d6bb2d456 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/VideoEncoderPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/Warp.java b/depthai/src/gen/java/org/bytedeco/depthai/Warp.java index 28b68d62f1d..bf99a768e6d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/Warp.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/Warp.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -95,7 +95,8 @@ public class Warp extends WarpPropertiesNode { * Specify which interpolation method to use * @param interpolation type of interpolation */ - public native void setInterpolation(@ByVal WarpProperties.Interpolation interpolation); + public native void setInterpolation(Interpolation interpolation); + public native void setInterpolation(@Cast("dai::Interpolation") int interpolation); /** Retrieve which interpolation method to use */ - public native @ByVal WarpProperties.Interpolation getInterpolation(); + public native Interpolation getInterpolation(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/WarpProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/WarpProperties.java index 4cea98a77ee..d55db989174 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/WarpProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/WarpProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -59,14 +59,6 @@ public class WarpProperties extends WarpPropertiesSerializable { /** Warp HW IDs to use, if empty, use auto/default */ public native @ByRef IntVector warpHwIds(); public native WarpProperties warpHwIds(IntVector setter); - - public enum Interpolation { BILINEAR(0), BICUBIC(1), BYPASS(2); - - public final int value; - private Interpolation(int v) { this.value = v; } - private Interpolation(Interpolation e) { this.value = e.value; } - public Interpolation intern() { for (Interpolation e : values()) if (e.value == value) return e; return this; } - @Override public String toString() { return intern().name(); } - } + /** Interpolation type to use */ public native Interpolation interpolation(); public native WarpProperties interpolation(Interpolation setter); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesNode.java index 12950bf7910..85f0e9a84fc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesSerializable.java index 2435e16f2a2..e1fefa292fa 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/WarpPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkConnection.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkConnection.java index 744293d2c95..5c3f6fcca2f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkConnection.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkConnection.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -68,6 +68,13 @@ public class XLinkConnection extends Pointer { */ public static native @ByVal DeviceInfo bootBootloader(@Const @ByRef DeviceInfo devInfo); + /** + * Get current accumulated profiling data + * + * @return ProfilingData from the specific connection + */ + public static native @ByVal ProfilingData getGlobalProfilingData(); + public XLinkConnection(@Const @ByRef DeviceInfo deviceDesc, @Cast("std::uint8_t*") @StdVector BytePointer mvcmdBinary, @Cast("XLinkDeviceState_t") int expectedState/*=X_LINK_BOOTED*/) { super((Pointer)null); allocate(deviceDesc, mvcmdBinary, expectedState); } private native void allocate(@Const @ByRef DeviceInfo deviceDesc, @Cast("std::uint8_t*") @StdVector BytePointer mvcmdBinary, @Cast("XLinkDeviceState_t") int expectedState/*=X_LINK_BOOTED*/); public XLinkConnection(@Const @ByRef DeviceInfo deviceDesc, @Cast("std::uint8_t*") @StdVector BytePointer mvcmdBinary) { super((Pointer)null); allocate(deviceDesc, mvcmdBinary); } @@ -109,4 +116,11 @@ public class XLinkConnection extends Pointer { * exceptions when calling any DepthAI apis to handle hardware events and multithreaded use. */ public native @Cast("bool") boolean isClosed(); + + /** + * Get current accumulated profiling data + * + * @return ProfilingData from the specific connection + */ + public native @ByVal ProfilingData getProfilingData(); } diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkError.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkError.java index 7d26047b037..13844355e35 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkError.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkError.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkGlobalHandler_t.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkGlobalHandler_t.java index 28414d79c71..cd068f645fc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkGlobalHandler_t.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkGlobalHandler_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkHandler_t.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkHandler_t.java index 6a5e7544427..ee7c97fd301 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkHandler_t.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkHandler_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkIn.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkIn.java index 9be9d43a12e..62099bf3b17 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkIn.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkIn.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInProperties.java index f95b000f79f..248a6f4a69f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesNode.java index c251d3419d0..d34d9321a70 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesSerializable.java index 3df46d03c47..62769b4fd97 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkInPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOut.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOut.java index 25a31ed2a2c..6df05064ccf 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOut.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOut.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutProperties.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutProperties.java index 6e06d690cec..d3fc395fa00 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutProperties.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutProperties.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesNode.java index 3c77b46f42a..c4e4bc050e5 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesSerializable.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesSerializable.java index 71ce43ff317..9d6ef3bd114 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesSerializable.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkOutPropertiesSerializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkProf_t.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkProf_t.java index 3e8bd1aa29e..d053aa32145 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkProf_t.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkProf_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkReadError.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkReadError.java index 6ee05fbec5c..7ca3278c0f8 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkReadError.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkReadError.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkStream.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkStream.java index a125fcad87d..1f575608ea3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkStream.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkStream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -44,9 +44,13 @@ public class XLinkStream extends Pointer { public native void write(@Cast("std::uint8_t*") @StdVector ByteBuffer data); public native void write(@Cast("std::uint8_t*") @StdVector byte[] data); public native @Cast("std::uint8_t*") @StdVector @Function BytePointer read(); + public native @Cast("std::uint8_t*") @StdVector @Function BytePointer read(@ByRef XLinkTimespec timestampReceived); public native @Function void read(@Cast("std::uint8_t*") @StdVector BytePointer data); public native @Function void read(@Cast("std::uint8_t*") @StdVector ByteBuffer data); public native @Function void read(@Cast("std::uint8_t*") @StdVector byte[] data); + public native @Function void read(@Cast("std::uint8_t*") @StdVector BytePointer data, @ByRef XLinkTimespec timestampReceived); + public native @Function void read(@Cast("std::uint8_t*") @StdVector ByteBuffer data, @ByRef XLinkTimespec timestampReceived); + public native @Function void read(@Cast("std::uint8_t*") @StdVector byte[] data, @ByRef XLinkTimespec timestampReceived); // split write helper public native void writeSplit(@Const Pointer data, @Cast("std::size_t") long size, @Cast("std::size_t") long split); public native void writeSplit(@Const @ByRef ByteVector data, @Cast("std::size_t") long split); diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkTimespec.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkTimespec.java new file mode 100644 index 00000000000..7d55e08ab51 --- /dev/null +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkTimespec.java @@ -0,0 +1,41 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.depthai; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import static org.bytedeco.openblas.global.openblas_nolapack.*; +import static org.bytedeco.openblas.global.openblas.*; +import org.bytedeco.opencv.opencv_core.*; +import static org.bytedeco.opencv.global.opencv_core.*; +import org.bytedeco.opencv.opencv_imgproc.*; +import static org.bytedeco.opencv.global.opencv_imgproc.*; + +import static org.bytedeco.depthai.global.depthai.*; + +// #endif + +@Properties(inherit = org.bytedeco.depthai.presets.depthai.class) +public class XLinkTimespec extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public XLinkTimespec() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public XLinkTimespec(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public XLinkTimespec(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public XLinkTimespec position(long position) { + return (XLinkTimespec)super.position(position); + } + @Override public XLinkTimespec getPointer(long i) { + return new XLinkTimespec((Pointer)this).offsetAddress(i); + } + + public native @Cast("uint64_t") long tv_sec(); public native XLinkTimespec tv_sec(long setter); + public native @Cast("uint64_t") long tv_nsec(); public native XLinkTimespec tv_nsec(long setter); +} diff --git a/depthai/src/gen/java/org/bytedeco/depthai/XLinkWriteError.java b/depthai/src/gen/java/org/bytedeco/depthai/XLinkWriteError.java index 6901d5fbe35..e48e4bb5bcc 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/XLinkWriteError.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/XLinkWriteError.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetwork.java index 709f18dbd31..5edc45e58a7 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetworkPropertiesNode.java index 878465d7ad6..7e885fd739f 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/YoloDetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetwork.java b/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetwork.java index cdb9c9b8653..93d4b288cac 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetwork.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetwork.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetworkPropertiesNode.java b/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetworkPropertiesNode.java index ea9d3b9bbff..855c1f3c845 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetworkPropertiesNode.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/YoloSpatialDetectionNetworkPropertiesNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/deviceDesc_t.java b/depthai/src/gen/java/org/bytedeco/depthai/deviceDesc_t.java index d8225ad9bb5..defa18a6c5d 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/deviceDesc_t.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/deviceDesc_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; diff --git a/depthai/src/gen/java/org/bytedeco/depthai/global/depthai.java b/depthai/src/gen/java/org/bytedeco/depthai/global/depthai.java index a066fa7ddf5..1dfa20b23d3 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/global/depthai.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/global/depthai.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai.global; @@ -37,6 +37,9 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { // Targeting ../BoardConfigIMUOptional.java +// Targeting ../BoardConfigUVCOptional.java + + // Targeting ../CameraSensorTypeOptional.java @@ -121,6 +124,9 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { // Targeting ../NodeIdNodeMap.java +// Targeting ../IntIntMap.java + + // Targeting ../LongNodeObjInfoMap.java @@ -166,6 +172,7 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { // #define _XLINKPUBLICDEFINES_H // #include // #include +// #include "XLinkTime.h" // #ifdef __cplusplus // #endif @@ -259,7 +266,7 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { public static final int INVALID_STREAM_ID = 0xDEADDEAD; public static final int INVALID_STREAM_ID_OUT_OF_MEMORY = 0xDEADFFFF; public static final int INVALID_LINK_ID = 0xFF; -public static final int MAX_STREAM_NAME_LENGTH = 64; +public static final int MAX_STREAM_NAME_LENGTH = 52; // Targeting ../deviceDesc_t.java @@ -296,6 +303,22 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { /* end of include file */ +// Parsed from XLink/XLinkTime.h + +// #ifndef _XLINK_TIME_H +// #define _XLINK_TIME_H + +// #ifdef __cplusplus +// Targeting ../XLinkTimespec.java + + + +public static native void getMonotonicTimestamp(XLinkTimespec ts); + +// #ifdef __cplusplus +// #endif +// #endif + // Parsed from depthai/depthai.hpp // #pragma once @@ -336,6 +359,9 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { // This build supports OpenCV integration? // #define DEPTHAI_HAVE_OPENCV_SUPPORT +// This build supports libusb? +// #define DEPTHAI_HAVE_LIBUSB_SUPPORT + // Build specific settings overwrite // #ifdef DEPTHAI_TARGET_CORE // #ifndef DEPTHAI_TARGET_OPENCV @@ -343,6 +369,21 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { // #endif // #endif +// #ifdef DEPTHAI_HAVE_OPENCV_SUPPORT + @Namespace("dai::build") @MemberGetter public static native @Cast("const bool") boolean HAVE_OPENCV_SUPPORT(); + public static final boolean HAVE_OPENCV_SUPPORT = HAVE_OPENCV_SUPPORT(); +// #else +// #endif + +// #ifdef DEPTHAI_HAVE_LIBUSB_SUPPORT +// #else + @Namespace("dai::build") @MemberGetter public static native @Cast("const bool") boolean HAVE_LIBUSB_SUPPORT(); + public static final boolean HAVE_LIBUSB_SUPPORT = HAVE_LIBUSB_SUPPORT(); +// #endif + + // namespace build + // namespace dai + // Parsed from depthai/utility/Initialization.hpp @@ -402,6 +443,16 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { + // namespace dai + + +// Parsed from depthai/utility/ProfilingData.hpp + +// #pragma once +// Targeting ../ProfilingData.java + + + // namespace dai @@ -528,18 +579,21 @@ public class depthai extends org.bytedeco.depthai.presets.depthai { */ @Namespace("dai") public enum CameraBoardSocket { AUTO(-1), - RGB(0), - LEFT(1), - RIGHT(2), - CENTER(RGB.value), - CAM_A(RGB.value), - CAM_B(LEFT.value), - CAM_C(RIGHT.value), - CAM_D(RIGHT.value + 1), - CAM_E(RIGHT.value + 2), - CAM_F(RIGHT.value + 3), - CAM_G(RIGHT.value + 4), - CAM_H(RIGHT.value + 5); + CAM_A(0), + CAM_B(1), + CAM_C(2), + CAM_D(3), + CAM_E(4), + CAM_F(5), + CAM_G(6), + CAM_H(7), + CAM_I(8), + CAM_J(9), + // Deprecated naming + @Deprecated RGB(CAM_A.value), + @Deprecated CENTER(CAM_A.value), + @Deprecated LEFT(CAM_B.value), + @Deprecated RIGHT(CAM_C.value); public final int value; private CameraBoardSocket(int v) { this.value = v; } @@ -882,6 +936,60 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // namespace dai +// Parsed from depthai-shared/common/Interpolation.hpp + +// #pragma once + +// #include + +/** + * Interpolation type + */ +@Namespace("dai") public enum Interpolation { + + AUTO(-1), + BILINEAR(0), + BICUBIC(1), + NEAREST_NEIGHBOR(2), + BYPASS(NEAREST_NEIGHBOR.value), + DEFAULT(BICUBIC.value), + DEFAULT_DISPARITY_DEPTH(NEAREST_NEIGHBOR.value); + + public final int value; + private Interpolation(int v) { this.value = v; } + private Interpolation(Interpolation e) { this.value = e.value; } + public Interpolation intern() { for (Interpolation e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + + // namespace dai + + +// Parsed from depthai-shared/common/MedianFilter.hpp + +// #pragma once + +// std +// #include + +// project +// #include "depthai-shared/utility/Serialization.hpp" + +/** + * Median filter config + */ +@Namespace("dai") public enum MedianFilter { MEDIAN_OFF(0), KERNEL_3x3(3), KERNEL_5x5(5), KERNEL_7x7(7); + + public final int value; + private MedianFilter(int v) { this.value = v; } + private MedianFilter(MedianFilter e) { this.value = e.value; } + public MedianFilter intern() { for (MedianFilter e : values()) if (e.value == value) return e; return this; } + @Override public String toString() { return intern().name(); } +} + + // namespace dai + + // Parsed from depthai-shared/common/ProcessorType.hpp // #pragma once @@ -1027,7 +1135,8 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); IMUData(14), StereoDepthConfig(15), FeatureTrackerConfig(16), - TrackedFeatures(17); + ToFConfig(17), + TrackedFeatures(18); public final int value; private DatatypeEnum(int v) { this.value = v; } @@ -1047,6 +1156,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include // #include +// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/DatatypeEnum.hpp" // #include "depthai-shared/utility/Serialization.hpp" // Targeting ../RawBuffer.java @@ -1080,7 +1190,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include // #include "depthai-shared/common/Point2f.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/DatatypeEnum.hpp" // #include "depthai-shared/datatype/RawAprilTagConfig.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" @@ -1181,7 +1290,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include // #include "depthai-shared/common/FrameEvent.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/utility/Serialization.hpp" // Targeting ../RawImgFrame.java @@ -1196,7 +1304,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #pragma once // #include "depthai-shared/common/Point3f.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/utility/Serialization.hpp" // Targeting ../ImgDetection.java @@ -1223,6 +1330,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // shared // #include "depthai-shared/common/Colormap.hpp" +// #include "depthai-shared/common/Interpolation.hpp" // #include "depthai-shared/common/Point2f.hpp" // #include "depthai-shared/common/RotatedRect.hpp" // #include "depthai-shared/common/Size2f.hpp" @@ -1239,7 +1347,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #pragma once // #include "depthai-shared/common/TensorInfo.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/utility/Serialization.hpp" // Targeting ../RawNNData.java @@ -1255,7 +1362,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "RawImgDetections.hpp" // #include "depthai-shared/common/Point3f.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/RawSpatialLocationCalculatorConfig.hpp" // #include "depthai-shared/utility/Serialization.hpp" // Targeting ../SpatialImgDetection.java @@ -1319,7 +1425,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "RawSpatialLocationCalculatorConfig.hpp" // #include "depthai-shared/common/Point3f.hpp" // #include "depthai-shared/common/Rect.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/DatatypeEnum.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/utility/Serialization.hpp" @@ -1341,21 +1446,10 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include // #include +// #include "depthai-shared/common/MedianFilter.hpp" // #include "depthai-shared/datatype/DatatypeEnum.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/utility/Serialization.hpp" - -/** - * Median filter config for disparity post-processing - */ -@Namespace("dai") public enum MedianFilter { MEDIAN_OFF(0), KERNEL_3x3(3), KERNEL_5x5(5), KERNEL_7x7(7); - - public final int value; - private MedianFilter(int v) { this.value = v; } - private MedianFilter(MedianFilter e) { this.value = e.value; } - public MedianFilter intern() { for (MedianFilter e : values()) if (e.value == value) return e; return this; } - @Override public String toString() { return intern().name(); } -} // Targeting ../RawStereoDepthConfig.java @@ -1379,6 +1473,23 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai + + +// Parsed from depthai-shared/datatype/RawToFConfig.hpp + +// #pragma once +// #include +// #include + +// #include "depthai-shared/common/MedianFilter.hpp" +// #include "depthai-shared/datatype/DatatypeEnum.hpp" +// #include "depthai-shared/datatype/RawBuffer.hpp" +// #include "depthai-shared/utility/Serialization.hpp" +// Targeting ../RawToFConfig.java + + + // namespace dai @@ -1390,7 +1501,6 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai-shared/common/Point3f.hpp" // #include "depthai-shared/common/Rect.hpp" -// #include "depthai-shared/common/Timestamp.hpp" // #include "depthai-shared/datatype/RawBuffer.hpp" // #include "depthai-shared/datatype/RawImgDetections.hpp" // #include "depthai-shared/utility/Serialization.hpp" @@ -1418,6 +1528,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai-shared/common/CameraSensorType.hpp" // #include "depthai-shared/common/UsbSpeed.hpp" // #include "depthai-shared/common/optional.hpp" +// #include "depthai-shared/datatype/RawImgFrame.hpp" // #include "depthai-shared/log/LogLevel.hpp" // #include "depthai-shared/utility/Serialization.hpp" // #include "depthai-shared/xlink/XLinkConstants.hpp" @@ -1438,6 +1549,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai @@ -1546,9 +1658,15 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // Targeting ../IMUPropertiesSerializable.java +// Targeting ../UVCPropertiesSerializable.java + + // Targeting ../AprilTagPropertiesSerializable.java +// Targeting ../CameraPropertiesSerializable.java + + // Targeting ../ColorCameraPropertiesSerializable.java @@ -1591,6 +1709,9 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // Targeting ../SystemLoggerPropertiesSerializable.java +// Targeting ../ToFPropertiesSerializable.java + + // Targeting ../VideoEncoderPropertiesSerializable.java @@ -1777,6 +1898,20 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai + + +// Parsed from depthai-shared/properties/UVCProperties.hpp + +// #pragma once + +// #include "depthai-shared/properties/Properties.hpp" +// Targeting ../UVCProperties.java + + + + + // namespace dai @@ -1793,6 +1928,25 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai + + +// Parsed from depthai-shared/properties/CameraProperties.hpp + +// #pragma once + +// #include "depthai-shared/common/CameraBoardSocket.hpp" +// #include "depthai-shared/common/CameraImageOrientation.hpp" +// #include "depthai-shared/common/CameraSensorType.hpp" +// #include "depthai-shared/common/optional.hpp" +// #include "depthai-shared/datatype/RawCameraControl.hpp" +// #include "depthai-shared/properties/Properties.hpp" +// Targeting ../CameraProperties.java + + + + + // namespace dai @@ -1805,6 +1959,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai-shared/common/CameraBoardSocket.hpp" // #include "depthai-shared/common/CameraImageOrientation.hpp" // #include "depthai-shared/common/FrameEvent.hpp" +// #include "depthai-shared/common/optional.hpp" // #include "depthai-shared/datatype/RawCameraControl.hpp" // #include "depthai-shared/properties/Properties.hpp" // Targeting ../ColorCameraProperties.java @@ -1841,6 +1996,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai-shared/common/CameraBoardSocket.hpp" // #include "depthai-shared/common/CameraImageOrientation.hpp" // #include "depthai-shared/common/FrameEvent.hpp" +// #include "depthai-shared/common/optional.hpp" // #include "depthai-shared/datatype/RawCameraControl.hpp" // #include "depthai-shared/properties/Properties.hpp" // Targeting ../MonoCameraProperties.java @@ -2060,6 +2216,21 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai + + +// Parsed from depthai-shared/properties/ToFProperties.hpp + +// #pragma once + +// #include "depthai-shared/datatype/RawToFConfig.hpp" +// #include "depthai-shared/properties/Properties.hpp" +// Targeting ../ToFProperties.java + + + + + // namespace dai @@ -2085,6 +2256,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai-shared/common/CameraBoardSocket.hpp" // #include "depthai-shared/common/EepromData.hpp" +// #include "depthai-shared/common/Interpolation.hpp" // #include "depthai-shared/common/optional.hpp" // #include "depthai-shared/datatype/RawStereoDepthConfig.hpp" // #include "depthai-shared/properties/Properties.hpp" @@ -2343,6 +2515,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #pragma once +// #include // #include // #include @@ -2563,6 +2736,22 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace dai + + +// Parsed from depthai/pipeline/datatype/ToFConfig.hpp + +// #pragma once + +// #include +// #include + +// #include "depthai-shared/datatype/RawToFConfig.hpp" +// #include "depthai/pipeline/datatype/Buffer.hpp" +// Targeting ../ToFConfig.java + + + // namespace dai @@ -2636,12 +2825,21 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // Targeting ../IMUPropertiesNode.java +// Targeting ../UVCPropertiesNode.java + + // Targeting ../AprilTagPropertiesNode.java +// Targeting ../CameraPropertiesNode.java + + // Targeting ../ColorCameraPropertiesNode.java +// Targeting ../MonoCameraPropertiesNode.java + + // Targeting ../ImageManipPropertiesNode.java @@ -2687,6 +2885,9 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // Targeting ../SystemLoggerPropertiesNode.java +// Targeting ../ToFPropertiesNode.java + + // Targeting ../VideoEncoderPropertiesNode.java @@ -2745,6 +2946,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // all the nodes // #include "node/AprilTag.hpp" +// #include "node/Camera.hpp" // #include "node/ColorCamera.hpp" // #include "node/DetectionNetwork.hpp" // #include "node/DetectionParser.hpp" @@ -2762,6 +2964,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "node/SpatialLocationCalculator.hpp" // #include "node/StereoDepth.hpp" // #include "node/SystemLogger.hpp" +// #include "node/ToF.hpp" // #include "node/VideoEncoder.hpp" // #include "node/Warp.hpp" // #include "node/XLinkIn.hpp" @@ -2789,6 +2992,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "datatype/SpatialLocationCalculatorData.hpp" // #include "datatype/StereoDepthConfig.hpp" // #include "datatype/SystemInformation.hpp" +// #include "datatype/ToFConfig.hpp" // #include "datatype/TrackedFeatures.hpp" // #include "datatype/Tracklets.hpp" @@ -2805,6 +3009,22 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace node + // namespace dai + + +// Parsed from depthai/pipeline/node/UVC.hpp + +// #pragma once + +// #include + +// shared +// #include +// Targeting ../UVC.java + + + // namespace node // namespace dai @@ -2823,6 +3043,26 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace node + // namespace dai + + +// Parsed from depthai/pipeline/node/Camera.hpp + +// #pragma once + +// #include + +// #include "depthai/pipeline/Node.hpp" +// #include "depthai/pipeline/datatype/ImgFrame.hpp" +// #include "depthai/utility/span.hpp" + +// shared +// #include +// Targeting ../Camera.java + + + // namespace node // namespace dai @@ -3084,6 +3324,24 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); + // namespace node + // namespace dai + + +// Parsed from depthai/pipeline/node/ToF.hpp + +// #pragma once + +// #include "depthai/pipeline/Node.hpp" + +// shared +// #include + +// #include "depthai/pipeline/datatype/ToFConfig.hpp" +// Targeting ../ToF.java + + + // namespace node // namespace dai @@ -3172,6 +3430,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // project // #include "depthai/utility/Path.hpp" +// #include "depthai/utility/ProfilingData.hpp" // Libraries // #include @@ -3206,6 +3465,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // libraries // #include +// #include // project // #include "depthai/xlink/XLinkConnection.hpp" @@ -3397,6 +3657,7 @@ public enum DetectionNetworkType { YOLO(0), MOBILENET(1); // #include "depthai/device/Version.hpp" // #include "depthai/openvino/OpenVINO.hpp" // #include "depthai/utility/Pimpl.hpp" +// #include "depthai/utility/ProfilingData.hpp" // #include "depthai/xlink/XLinkConnection.hpp" // #include "depthai/xlink/XLinkStream.hpp" diff --git a/depthai/src/gen/java/org/bytedeco/depthai/streamPacketDesc_t.java b/depthai/src/gen/java/org/bytedeco/depthai/streamPacketDesc_t.java index 334f6c86c20..5bf20bbeaad 100644 --- a/depthai/src/gen/java/org/bytedeco/depthai/streamPacketDesc_t.java +++ b/depthai/src/gen/java/org/bytedeco/depthai/streamPacketDesc_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.depthai; @@ -37,4 +37,6 @@ public class streamPacketDesc_t extends Pointer { public native @Cast("uint8_t*") BytePointer data(); public native streamPacketDesc_t data(BytePointer setter); public native @Cast("uint32_t") int length(); public native streamPacketDesc_t length(int setter); + public native @ByRef XLinkTimespec tRemoteSent(); public native streamPacketDesc_t tRemoteSent(XLinkTimespec setter); /** remote timestamp of when the packet was sent. Related to remote clock. Note: not directly related to local clock */ + public native @ByRef XLinkTimespec tReceived(); public native streamPacketDesc_t tReceived(XLinkTimespec setter); /** local timestamp of when the packet was received. Related to local monotonic clock */ } diff --git a/depthai/src/main/java/org/bytedeco/depthai/presets/depthai.java b/depthai/src/main/java/org/bytedeco/depthai/presets/depthai.java index a4d2c113489..644818cf05b 100644 --- a/depthai/src/main/java/org/bytedeco/depthai/presets/depthai.java +++ b/depthai/src/main/java/org/bytedeco/depthai/presets/depthai.java @@ -49,13 +49,17 @@ define = {"SHARED_PTR_NAMESPACE std", "UNIQUE_PTR_NAMESPACE std", "XLINK_USE_MX_ID_NAME ON"}, include = { "XLink/XLinkPublicDefines.h", + "XLink/XLinkTime.h", "depthai/depthai.hpp", "depthai/build/config.hpp", +// "depthai/utility/span.hpp", "depthai/utility/Initialization.hpp", "depthai/utility/LockingQueue.hpp", "depthai/utility/Pimpl.hpp", "depthai/utility/Path.hpp", + "depthai/utility/ProfilingData.hpp", "depthai-shared/utility/Serialization.hpp", +// "depthai-shared/common/optional.hpp", "depthai-shared/common/CameraBoardSocket.hpp", "depthai-shared/common/CameraImageOrientation.hpp", "depthai-shared/common/CameraSensorType.hpp", @@ -75,6 +79,8 @@ "depthai-shared/common/CameraInfo.hpp", "depthai-shared/common/Colormap.hpp", "depthai-shared/common/FrameEvent.hpp", + "depthai-shared/common/Interpolation.hpp", + "depthai-shared/common/MedianFilter.hpp", "depthai-shared/common/ProcessorType.hpp", "depthai-shared/common/StereoRectification.hpp", "depthai-shared/common/EepromData.hpp", @@ -97,6 +103,7 @@ "depthai-shared/datatype/RawSpatialLocations.hpp", "depthai-shared/datatype/RawStereoDepthConfig.hpp", "depthai-shared/datatype/RawSystemInformation.hpp", + "depthai-shared/datatype/RawToFConfig.hpp", "depthai-shared/datatype/RawTracklets.hpp", "depthai-shared/device/BoardConfig.hpp", "depthai-shared/device/CrashDump.hpp", @@ -106,7 +113,9 @@ "depthai-shared/properties/Properties.hpp", "depthai-shared/properties/AprilTagProperties.hpp", "depthai-shared/properties/IMUProperties.hpp", + "depthai-shared/properties/UVCProperties.hpp", "depthai-shared/properties/GlobalProperties.hpp", + "depthai-shared/properties/CameraProperties.hpp", "depthai-shared/properties/ColorCameraProperties.hpp", "depthai-shared/properties/ImageManipProperties.hpp", "depthai-shared/properties/MonoCameraProperties.hpp", @@ -120,6 +129,7 @@ "depthai-shared/properties/SpatialLocationCalculatorProperties.hpp", "depthai-shared/properties/StereoDepthProperties.hpp", "depthai-shared/properties/SystemLoggerProperties.hpp", + "depthai-shared/properties/ToFProperties.hpp", "depthai-shared/properties/VideoEncoderProperties.hpp", "depthai-shared/properties/WarpProperties.hpp", "depthai-shared/properties/XLinkInProperties.hpp", @@ -150,6 +160,7 @@ "depthai/pipeline/datatype/SpatialLocationCalculatorConfig.hpp", "depthai/pipeline/datatype/StereoDepthConfig.hpp", "depthai/pipeline/datatype/SystemInformation.hpp", + "depthai/pipeline/datatype/ToFConfig.hpp", "depthai/pipeline/datatype/Tracklets.hpp", "depthai/pipeline/AssetManager.hpp", "depthai/pipeline/Node.hpp", @@ -157,7 +168,9 @@ "depthai/pipeline/nodes.hpp", "depthai/pipeline/datatypes.hpp", "depthai/pipeline/node/IMU.hpp", + "depthai/pipeline/node/UVC.hpp", "depthai/pipeline/node/AprilTag.hpp", + "depthai/pipeline/node/Camera.hpp", "depthai/pipeline/node/ColorCamera.hpp", "depthai/pipeline/node/ImageManip.hpp", "depthai/pipeline/node/MonoCamera.hpp", @@ -171,6 +184,7 @@ "depthai/pipeline/node/SpatialLocationCalculator.hpp", "depthai/pipeline/node/StereoDepth.hpp", "depthai/pipeline/node/SystemLogger.hpp", + "depthai/pipeline/node/ToF.hpp", "depthai/pipeline/node/VideoEncoder.hpp", "depthai/pipeline/node/Warp.hpp", "depthai/pipeline/node/XLinkIn.hpp", @@ -221,9 +235,10 @@ public void map(InfoMap infoMap) { .put(new Info("dai::BoardConfig::GPIO").pointerTypes("BoardConfig.GPIO")) .put(new Info("dai::BoardConfig::UART").pointerTypes("BoardConfig.UART")) .put(new Info("dai::BoardConfig::IMU").pointerTypes("BoardConfig.IMU")) + .put(new Info("dai::BoardConfig::UVC").pointerTypes("BoardConfig.UVC")) .put(new Info("dai::BoardConfig::Camera").pointerTypes("BoardConfig.Camera")) .put(new Info("dai::DeviceBase::Config", "dai::Device::Config").pointerTypes("DeviceBase.Config")) - .put(new Info("auto", "std::initializer_list", "std::weak_ptr", "dai::XLinkStream(dai::XLinkStream)", + .put(new Info("auto", "span", "std::initializer_list", "std::weak_ptr", "dai::XLinkStream(dai::XLinkStream)", "dai::RawStereoDepthConfig::CostAggregation::defaultHorizontalPenaltyCosts", "dai::RawStereoDepthConfig::CostAggregation::defaultVerticalPenaltyCosts").skip()) .put(new Info("std::chrono::microseconds", "std::chrono::milliseconds", "std::chrono::seconds", "std::runtime_error", @@ -255,6 +270,7 @@ public void map(InfoMap infoMap) { .put(new Info("std::unordered_map").pointerTypes("CameraBoardSocketBoardConfigCameraMap").define()) .put(new Info("std::unordered_map >").pointerTypes("NodeIdConnectionSetMap").define()) .put(new Info("std::unordered_map >").pointerTypes("NodeIdNodeMap").define()) + .put(new Info("std::unordered_map").pointerTypes("IntIntMap").define()) .put(new Info("std::unordered_map").pointerTypes("LongNodeObjInfoMap").define()) .put(new Info("std::unordered_map").pointerTypes("ByteGPIOMap").define()) .put(new Info("std::unordered_map").pointerTypes("ByteUARTMap").define()) @@ -276,6 +292,7 @@ public void map(InfoMap infoMap) { .put(new Info("tl::optional").pointerTypes("SizeTOptional").define()) .put(new Info("tl::optional").pointerTypes("StringOptional").define()) .put(new Info("tl::optional").pointerTypes("BoardConfigIMUOptional").define()) + .put(new Info("tl::optional").pointerTypes("BoardConfigUVCOptional").define()) .put(new Info("tl::optional").pointerTypes("CameraSensorTypeOptional").define()) .put(new Info("tl::optional").pointerTypes("CameraImageOrientationOptional").define()) .put(new Info("tl::optional").pointerTypes("EepromDataOptional").define()) @@ -296,12 +313,14 @@ public void map(InfoMap infoMap) { .put(new Info("dai::Properties").pointerTypes("DaiProperties")) .put(new Info("dai::AprilTagConfig::Family").pointerTypes("RawAprilTagConfig.Family")) .put(new Info("dai::node::AprilTag").immutable().pointerTypes("AprilTagNode")) - .put(new Info("dai::node::IMU", "dai::node::ColorCamera", "dai::node::ImageManip", "dai::node::MonoCamera", + .put(new Info("dai::node::IMU", "dai::node::UVC", "dai::node::Camera", "dai::node::ColorCamera", "dai::node::ImageManip", "dai::node::MonoCamera", "dai::node::NeuralNetwork", "dai::node::EdgeDetector", "dai::node::DetectionNetwork", "dai::node::DetectionParser", "dai::node::ObjectTracker", "dai::node::SPIOut", "dai::node::SpatialDetectionNetwork", "dai::node::SpatialLocationCalculator", "dai::node::StereoDepth", - "dai::node::SystemLogger", "dai::node::VideoEncoder", "dai::node::Warp", "dai::node::XLinkIn", "dai::node::XLinkOut").immutable()) + "dai::node::SystemLogger", "dai::node::ToF", "dai::node::VideoEncoder", "dai::node::Warp", "dai::node::XLinkIn", "dai::node::XLinkOut").immutable()) .put(new Info("dai::node::IMU::Properties").pointerTypes("IMUProperties")) + .put(new Info("dai::node::UVC::Properties").pointerTypes("UVCProperties")) .put(new Info("dai::node::AprilTag::Properties").pointerTypes("AprilTagProperties")) + .put(new Info("dai::node::Camera::Properties").pointerTypes("CameraProperties")) .put(new Info("dai::node::ColorCamera::Properties").pointerTypes("ColorCameraProperties")) .put(new Info("dai::node::MonoCamera::Properties").pointerTypes("MonoCameraProperties")) .put(new Info("dai::node::ImageManip::Properties").pointerTypes("ImageManipProperties")) @@ -317,10 +336,12 @@ public void map(InfoMap infoMap) { .put(new Info("dai::node::SpatialLocationCalculator::Properties").pointerTypes("SpatialLocationCalculatorProperties")) .put(new Info("dai::node::StereoDepth::Properties").pointerTypes("StereoDepthProperties")) .put(new Info("dai::node::SystemLogger::Properties").pointerTypes("SystemLoggerProperties")) + .put(new Info("dai::node::ToF::Properties").pointerTypes("ToFProperties")) .put(new Info("dai::node::VideoEncoder::Properties").pointerTypes("VideoEncoderProperties")) .put(new Info("dai::node::Warp::Properties").pointerTypes("WarpProperties")) .put(new Info("dai::node::XLinkIn::Properties").pointerTypes("XLinkInProperties")) .put(new Info("dai::node::XLinkOut::Properties").pointerTypes("XLinkOutProperties")) + .put(new Info("dai::node::Camera::Properties::WarpMeshSource").pointerTypes("CameraProperties.WarpMeshSource")) .put(new Info("dai::node::ColorCamera::Properties::SensorResolution").pointerTypes("ColorCameraProperties.SensorResolution")) .put(new Info("dai::node::MonoCamera::Properties::SensorResolution").pointerTypes("MonoCameraProperties.SensorResolution")) // .put(new Info("dai::node::StereoDepth::Properties::DepthAlign").pointerTypes("StereoDepthProperties.DepthAlign")) @@ -332,10 +353,13 @@ public void map(InfoMap infoMap) { "Properties::DepthAlign", "AlgorithmControl::DepthAlign").enumerate().pointerTypes("RawStereoDepthConfig.AlgorithmControl.DepthAlign")) .put(new Info("dai::RawStereoDepthConfig::AlgorithmControl::DepthUnit", "Properties::DepthUnit", "AlgorithmControl::DepthUnit").enumerate().pointerTypes("RawStereoDepthConfig.AlgorithmControl.DepthUnit")) + .put(new Info("dai::ToFConfig::DepthParams::TypeFMod").pointerTypes("RawToFConfig.DepthParams.TypeFMod")) .put(new Info("dai::NodeCRTP").pointerTypes("IMUPropertiesNode")) + .put(new Info("dai::NodeCRTP").pointerTypes("UVCPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("AprilTagPropertiesNode")) + .put(new Info("dai::NodeCRTP").pointerTypes("CameraPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("ColorCameraPropertiesNode")) - .put(new Info("dai::NodeCRTP").pointerTypes("ColorCameraPropertiesNode")) + .put(new Info("dai::NodeCRTP").pointerTypes("MonoCameraPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("ImageManipPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("EdgeDetectorPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("NeuralNetworkPropertiesNode")) @@ -355,14 +379,19 @@ public void map(InfoMap infoMap) { .put(new Info("dai::NodeCRTP").pointerTypes("SpatialLocationCalculatorPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("StereoDepthPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("SystemLoggerPropertiesNode")) + .put(new Info("dai::NodeCRTP").pointerTypes("ToFPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("VideoEncoderPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("WarpPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("XLinkInPropertiesNode")) .put(new Info("dai::NodeCRTP").pointerTypes("XLinkOutPropertiesNode")) .put(new Info("dai::PropertiesSerializable", "dai::PropertiesSerializable").pointerTypes("IMUPropertiesSerializable")) + .put(new Info("dai::PropertiesSerializable", + "dai::PropertiesSerializable").pointerTypes("UVCPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", "dai::PropertiesSerializable").pointerTypes("AprilTagPropertiesSerializable")) + .put(new Info("dai::PropertiesSerializable", + "dai::PropertiesSerializable").pointerTypes("CameraPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", "dai::PropertiesSerializable").pointerTypes("ColorCameraPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", @@ -391,6 +420,8 @@ public void map(InfoMap infoMap) { "dai::PropertiesSerializable").pointerTypes("StereoDepthPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", "dai::PropertiesSerializable").pointerTypes("SystemLoggerPropertiesSerializable")) + .put(new Info("dai::PropertiesSerializable", + "dai::PropertiesSerializable").pointerTypes("ToFPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", "dai::PropertiesSerializable").pointerTypes("VideoEncoderPropertiesSerializable")) .put(new Info("dai::PropertiesSerializable", @@ -406,7 +437,9 @@ public void map(InfoMap infoMap) { .put(new Info("dai::Pipeline::create").javaText( "public native @Name(\"create\") @SharedPtr IMU createIMU();\n" + + "public native @Name(\"create\") @SharedPtr UVC createUVC();\n" + "public native @Name(\"create\") @SharedPtr AprilTagNode createAprilTag();\n" + + "public native @Name(\"create\") @SharedPtr Camera createCamera();\n" + "public native @Name(\"create\") @SharedPtr ColorCamera createColorCamera();\n" + "public native @Name(\"create\") @SharedPtr ImageManip createImageManip();\n" + "public native @Name(\"create\") @SharedPtr MonoCamera createMonoCamera();\n" @@ -423,6 +456,7 @@ public void map(InfoMap infoMap) { + "public native @Name(\"create\") @SharedPtr SpatialLocationCalculator createSpatialLocationCalculator();\n" + "public native @Name(\"create\") @SharedPtr StereoDepth createStereoDepth();\n" + "public native @Name(\"create\") @SharedPtr SystemLogger createSystemLogger();\n" + + "public native @Name(\"create\") @SharedPtr ToF createToF();\n" + "public native @Name(\"create\") @SharedPtr VideoEncoder createVideoEncoder();\n" + "public native @Name(\"create\") @SharedPtr Warp createWarp();\n" + "public native @Name(\"create\") @SharedPtr XLinkIn createXLinkIn();\n" diff --git a/dnnl/README.md b/dnnl/README.md index abd56295a71..01b86c3bf47 100644 --- a/dnnl/README.md +++ b/dnnl/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * DNNL 3.3 https://01.org/dnnl + * DNNL 3.3.2 https://01.org/dnnl Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -25,7 +25,7 @@ Sample Usage ------------ Here is a simple example of DNNL ported to Java from this C++ source file: - * https://github.com/oneapi-src/oneDNN/blob/v3.3/examples/cnn_inference_int8.cpp + * https://github.com/oneapi-src/oneDNN/blob/v3.3.2/examples/cnn_inference_int8.cpp We can use [Maven 3](http://maven.apache.org/) to download and install automatically all the class files as well as the native binaries. To run this sample code, after creating the `pom.xml` and `CpuCnnInferenceInt8.java` source files below, simply execute on the command line: ```bash @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco dnnl-platform - 3.3-1.5.10-SNAPSHOT + 3.3.2-1.5.10-SNAPSHOT diff --git a/dnnl/cppbuild.sh b/dnnl/cppbuild.sh index 55e64ff6c20..76fa2106ca0 100755 --- a/dnnl/cppbuild.sh +++ b/dnnl/cppbuild.sh @@ -11,7 +11,7 @@ export DNNL_CPU_RUNTIME="OMP" # or TBB export DNNL_GPU_RUNTIME="OCL" TBB_VERSION=2020.3 -MKLDNN_VERSION=3.3 +MKLDNN_VERSION=3.3.2 download https://github.com/oneapi-src/oneTBB/archive/v$TBB_VERSION.tar.gz oneTBB-$TBB_VERSION.tar.bz2 download https://github.com/oneapi-src/oneDNN/archive/v$MKLDNN_VERSION.tar.gz oneDNN-$MKLDNN_VERSION.tar.bz2 diff --git a/dnnl/platform/pom.xml b/dnnl/platform/pom.xml index 7ba4fb0fe47..2509a2ef93c 100644 --- a/dnnl/platform/pom.xml +++ b/dnnl/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco dnnl-platform - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} JavaCPP Presets Platform for DNNL diff --git a/dnnl/pom.xml b/dnnl/pom.xml index a45b02ece69..28acd7ac207 100644 --- a/dnnl/pom.xml +++ b/dnnl/pom.xml @@ -11,7 +11,7 @@ org.bytedeco dnnl - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} JavaCPP Presets for DNNL diff --git a/dnnl/samples/pom.xml b/dnnl/samples/pom.xml index 584bcd7971a..05e5a4b569e 100644 --- a/dnnl/samples/pom.xml +++ b/dnnl/samples/pom.xml @@ -12,7 +12,7 @@ org.bytedeco dnnl-platform - 3.3-1.5.10-SNAPSHOT + 3.3.2-1.5.10-SNAPSHOT diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java b/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java index e96150baed4..69e16b64d6e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java @@ -3475,7 +3475,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { public static final int DNNL_VERSION_MINOR = 3; /** Patch version */ -public static final int DNNL_VERSION_PATCH = 0; +public static final int DNNL_VERSION_PATCH = 2; /** Git commit hash */ public static native @MemberGetter String DNNL_VERSION_HASH(); diff --git a/onnxruntime/README.md b/onnxruntime/README.md index 0c2b29e969a..727f2715e23 100644 --- a/onnxruntime/README.md +++ b/onnxruntime/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * ONNX Runtime 1.16.2 https://microsoft.github.io/onnxruntime/ + * ONNX Runtime 1.16.3 https://microsoft.github.io/onnxruntime/ Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -46,14 +46,14 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco onnxruntime-platform - 1.16.2-1.5.10-SNAPSHOT + 1.16.3-1.5.10-SNAPSHOT org.bytedeco onnxruntime-platform-gpu - 1.16.2-1.5.10-SNAPSHOT + 1.16.3-1.5.10-SNAPSHOT diff --git a/onnxruntime/cppbuild.sh b/onnxruntime/cppbuild.sh index 47940b7eff6..83bc583084a 100755 --- a/onnxruntime/cppbuild.sh +++ b/onnxruntime/cppbuild.sh @@ -21,7 +21,7 @@ if [[ "$EXTENSION" == *gpu ]]; then GPU_FLAGS="--use_cuda" fi -ONNXRUNTIME=1.16.2 +ONNXRUNTIME=1.16.3 mkdir -p "$PLATFORM$EXTENSION" cd "$PLATFORM$EXTENSION" @@ -87,7 +87,7 @@ sedinplace 's/-fvisibility=hidden//g' cmake/CMakeLists.txt cmake/adjust_global_c sedinplace 's:/Yucuda_pch.h /FIcuda_pch.h::g' cmake/onnxruntime_providers.cmake sedinplace 's/${PROJECT_SOURCE_DIR}\/external\/cub//g' cmake/onnxruntime_providers.cmake sedinplace 's/ONNXRUNTIME_PROVIDERS_SHARED)/ONNXRUNTIME_PROVIDERS_SHARED onnxruntime_providers_shared)/g' cmake/onnxruntime_providers.cmake -sedinplace 's/DNNL_TAG v.*)/DNNL_TAG v3.3)/g' cmake/external/dnnl.cmake +sedinplace 's/DNNL_TAG v.*)/DNNL_TAG v3.3.2)/g' cmake/external/dnnl.cmake sedinplace 's/DNNL_SHARED_LIB libdnnl.1.dylib/DNNL_SHARED_LIB libdnnl.2.dylib/g' cmake/external/dnnl.cmake sedinplace 's/DNNL_SHARED_LIB libdnnl.so.1/DNNL_SHARED_LIB libdnnl.so.2/g' cmake/external/dnnl.cmake sedinplace 's/ CMAKE_ARGS/CMAKE_ARGS -DMKLDNN_BUILD_EXAMPLES=OFF -DMKLDNN_BUILD_TESTS=OFF/g' cmake/external/dnnl.cmake diff --git a/onnxruntime/platform/gpu/pom.xml b/onnxruntime/platform/gpu/pom.xml index 24069f9d53c..a6f5cd58488 100644 --- a/onnxruntime/platform/gpu/pom.xml +++ b/onnxruntime/platform/gpu/pom.xml @@ -12,7 +12,7 @@ org.bytedeco onnxruntime-platform-gpu - 1.16.2-${project.parent.version} + 1.16.3-${project.parent.version} JavaCPP Presets Platform GPU for ONNX Runtime @@ -24,7 +24,7 @@ org.bytedeco dnnl-platform - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} ${project.groupId} diff --git a/onnxruntime/platform/pom.xml b/onnxruntime/platform/pom.xml index 33ebcdafeb2..22def5140c3 100644 --- a/onnxruntime/platform/pom.xml +++ b/onnxruntime/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco onnxruntime-platform - 1.16.2-${project.parent.version} + 1.16.3-${project.parent.version} JavaCPP Presets Platform for ONNX Runtime @@ -23,7 +23,7 @@ org.bytedeco dnnl-platform - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} ${project.groupId} diff --git a/onnxruntime/pom.xml b/onnxruntime/pom.xml index 3a03b37962c..6850be14e4a 100644 --- a/onnxruntime/pom.xml +++ b/onnxruntime/pom.xml @@ -11,7 +11,7 @@ org.bytedeco onnxruntime - 1.16.2-${project.parent.version} + 1.16.3-${project.parent.version} JavaCPP Presets for ONNX Runtime @@ -22,7 +22,7 @@ org.bytedeco dnnl - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} org.bytedeco @@ -49,7 +49,7 @@ org.bytedeco dnnl-platform - 3.3-${project.parent.version} + 3.3.2-${project.parent.version} diff --git a/onnxruntime/samples/pom.xml b/onnxruntime/samples/pom.xml index cef44667bd3..0ce3dd138fe 100644 --- a/onnxruntime/samples/pom.xml +++ b/onnxruntime/samples/pom.xml @@ -12,14 +12,14 @@ org.bytedeco onnxruntime-platform - 1.16.2-1.5.10-SNAPSHOT + 1.16.3-1.5.10-SNAPSHOT org.bytedeco onnxruntime-platform-gpu - 1.16.2-1.5.10-SNAPSHOT + 1.16.3-1.5.10-SNAPSHOT diff --git a/onnxruntime/src/main/java/org/bytedeco/onnxruntime/presets/onnxruntime.java b/onnxruntime/src/main/java/org/bytedeco/onnxruntime/presets/onnxruntime.java index 2935d674bae..eba33444369 100644 --- a/onnxruntime/src/main/java/org/bytedeco/onnxruntime/presets/onnxruntime.java +++ b/onnxruntime/src/main/java/org/bytedeco/onnxruntime/presets/onnxruntime.java @@ -64,16 +64,16 @@ // "onnxruntime/core/providers/rocm/rocm_provider_factory.h", // "onnxruntime/core/providers/dml/dml_provider_factory.h", }, - link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.2"} + link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.3"} ), @Platform( value = {"linux-x86_64", "macosx-x86_64", "windows-x86_64"}, - link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.2", "onnxruntime_providers_dnnl"} + link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.3", "onnxruntime_providers_dnnl"} ), @Platform( value = {"linux-x86_64", "macosx-x86_64", "windows-x86_64"}, extension = "-gpu", - link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.2", "onnxruntime_providers_dnnl", "onnxruntime_providers_cuda"} + link = {"onnxruntime_providers_shared", "onnxruntime@.1.16.3", "onnxruntime_providers_dnnl", "onnxruntime_providers_cuda"} ), }, target = "org.bytedeco.onnxruntime", diff --git a/platform/pom.xml b/platform/pom.xml index b322e41ccbd..1cd763169c6 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -182,7 +182,7 @@ org.bytedeco dnnl-platform - 3.3-${project.version} + 3.3.2-${project.version} org.bytedeco @@ -307,7 +307,7 @@ org.bytedeco tensorflow-lite-platform - 2.14.0-${project.version} + 2.15.0-${project.version} org.bytedeco @@ -327,7 +327,7 @@ org.bytedeco depthai-platform - 2.21.2-${project.version} + 2.23.0-${project.version} org.bytedeco @@ -342,7 +342,7 @@ org.bytedeco onnxruntime-platform - 1.16.2-${project.version} + 1.16.3-${project.version} org.bytedeco diff --git a/tensorflow-lite/README.md b/tensorflow-lite/README.md index dcec91d87bf..40050605a73 100644 --- a/tensorflow-lite/README.md +++ b/tensorflow-lite/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * TensorFlow Lite 2.14.0 https://www.tensorflow.org/lite + * TensorFlow Lite 2.15.0 https://www.tensorflow.org/lite Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -25,7 +25,7 @@ Sample Usage ------------ Here is a simple example of TensorFlow ported to Java from this C++ source file: - * https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/lite/examples/minimal/minimal.cc + * https://github.com/tensorflow/tensorflow/blob/v2.15.0/tensorflow/lite/examples/minimal/minimal.cc We can use [Maven 3](http://maven.apache.org/) to download and install automatically all the class files as well as the native binaries. To run this sample code, after creating the `pom.xml` and `Minimal.java` source files below, simply execute on the command line: ```bash @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco tensorflow-lite-platform - 2.14.0-1.5.10-SNAPSHOT + 2.15.0-1.5.10-SNAPSHOT diff --git a/tensorflow-lite/cppbuild.sh b/tensorflow-lite/cppbuild.sh index b1e5b91211d..703a51f893f 100755 --- a/tensorflow-lite/cppbuild.sh +++ b/tensorflow-lite/cppbuild.sh @@ -12,7 +12,7 @@ if [[ "$EXTENSION" == *gpu ]]; then export CMAKE_FLAGS="-DTFLITE_ENABLE_GPU=ON" fi -TENSORFLOW_VERSION=2.14.0 +TENSORFLOW_VERSION=2.15.0 download https://github.com/tensorflow/tensorflow/archive/v$TENSORFLOW_VERSION.tar.gz tensorflow-$TENSORFLOW_VERSION.tar.gz mkdir -p "$PLATFORM$EXTENSION" diff --git a/tensorflow-lite/platform/pom.xml b/tensorflow-lite/platform/pom.xml index e2f809d5d6c..8f51428c44d 100644 --- a/tensorflow-lite/platform/pom.xml +++ b/tensorflow-lite/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tensorflow-lite-platform - 2.14.0-${project.parent.version} + 2.15.0-${project.parent.version} JavaCPP Presets Platform for TensorFlow Lite diff --git a/tensorflow-lite/pom.xml b/tensorflow-lite/pom.xml index b7b460ecc57..d59d2ae3114 100644 --- a/tensorflow-lite/pom.xml +++ b/tensorflow-lite/pom.xml @@ -16,7 +16,7 @@ tensorflowlite - 2.14.0 + 2.15.0 ${basedir}/cppbuild/${javacpp.platform}${javacpp.platform.extension}/tensorflow-${tensorflow.version}/ diff --git a/tensorflow-lite/samples/pom.xml b/tensorflow-lite/samples/pom.xml index a7a414b21bf..8bd181d6ee8 100644 --- a/tensorflow-lite/samples/pom.xml +++ b/tensorflow-lite/samples/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tensorflow-lite-platform - 2.14.0-1.5.10-SNAPSHOT + 2.15.0-1.5.10-SNAPSHOT diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java index 40e51edfa8c..8bcedbe130a 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java @@ -526,14 +526,12 @@ public class Interpreter extends Pointer { /** Perform a checked cast to the appropriate tensor type (immutable pointer * version). */ - /** \warning Experimental interface, subject to change. \n - * \brief Returns list of all keys of different method signatures defined + /** \brief Returns list of all keys of different method signatures defined * in the model. * Note, pointers returned have lifetime same as the Interpreter object. */ public native @ByVal StringVector signature_keys(); - /** \warning Experimental interface, subject to change. \n - * \brief Returns a pointer to the SignatureRunner instance to run the part + /** \brief Returns a pointer to the SignatureRunner instance to run the part * of the graph identified by a SignatureDef. The nullptr is returned if the * given signature key is not valid. * If you need to specify delegates, you have to do that before calling this @@ -559,8 +557,7 @@ public class Interpreter extends Pointer { public native int GetSubgraphIndexFromSignature(@Cast("const char*") BytePointer signature_key); public native int GetSubgraphIndexFromSignature(String signature_key); - /** \warning Experimental interface, subject to change. \n - * \brief Returns the mapping of inputs to tensor index in the signature + /** \brief Returns the mapping of inputs to tensor index in the signature * specified through 'signature_key'. * If invalid name passed, an empty list will be returned. */ public native @Const @ByRef StringIntMap signature_inputs( @@ -568,8 +565,7 @@ public class Interpreter extends Pointer { public native @Const @ByRef StringIntMap signature_inputs( String signature_key); - /** \warning Experimental interface, subject to change. \n - * \brief Returns the mapping of outputs to tensor index in the signature + /** \brief Returns the mapping of outputs to tensor index in the signature * specified through 'signature_key'. * If invalid name passed, an empty list will be returned. */ public native @Const @ByRef StringIntMap signature_outputs( @@ -577,8 +573,7 @@ public class Interpreter extends Pointer { public native @Const @ByRef StringIntMap signature_outputs( String signature_key); - /** \warning Experimental interface, subject to change. \n - * \brief Returns the input tensor identified by 'signature_input_name' in + /** \brief Returns the input tensor identified by 'signature_input_name' in * the signature identified by 'signature_key'. * Returns nullptr if not found. */ public native TfLiteTensor input_tensor_by_signature(@Cast("const char*") BytePointer signature_input_name, @@ -586,8 +581,7 @@ public native TfLiteTensor input_tensor_by_signature(@Cast("const char*") BytePo public native TfLiteTensor input_tensor_by_signature(String signature_input_name, String signature_key); - /** \warning Experimental interface, subject to change. \n - * \brief Returns the output tensor identified by 'signature_output_name' in + /** \brief Returns the output tensor identified by 'signature_output_name' in * the signature identified by 'signature_key'. * Returns nullptr if not found. */ public native @Const TfLiteTensor output_tensor_by_signature( diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java index ab2f435573d..26e12bb3681 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java @@ -8,9 +8,7 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** WARNING: Experimental interface, subject to change - * - * SignatureRunner class for running TFLite models using SignatureDef. +/** SignatureRunner class for running TFLite models using SignatureDef. * * Usage: * diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteSignatureRunner.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteSignatureRunner.java index ee69bc72b8b..f691de415d4 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteSignatureRunner.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteSignatureRunner.java @@ -8,10 +8,6 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// #endif // __cplusplus - -// -------------------------------------------------------------------------- -// Opaque types used by the C API. /** TfLiteSignatureRunner is used to run inference on a signature. * diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java index 9a0580531be..76e4ddb330b 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java @@ -236,7 +236,51 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl kTfLiteBuiltinSign = 158, kTfLiteBuiltinBitcast = 159, kTfLiteBuiltinBitwiseXor = 160, - kTfLiteBuiltinRightShift = 161; + kTfLiteBuiltinRightShift = 161, + kTfLiteBuiltinStablehloLogistic = 162, + kTfLiteBuiltinStablehloAdd = 163, + kTfLiteBuiltinStablehloDivide = 164, + kTfLiteBuiltinStablehloMultiply = 165, + kTfLiteBuiltinStablehloMaximum = 166, + kTfLiteBuiltinStablehloReshape = 167, + kTfLiteBuiltinStablehloClamp = 168, + kTfLiteBuiltinStablehloConcatenate = 169, + kTfLiteBuiltinStablehloBroadcastInDim = 170, + kTfLiteBuiltinStablehloConvolution = 171, + kTfLiteBuiltinStablehloSlice = 172, + kTfLiteBuiltinStablehloCustomCall = 173, + kTfLiteBuiltinStablehloReduce = 174, + kTfLiteBuiltinStablehloAbs = 175, + kTfLiteBuiltinStablehloAnd = 176, + kTfLiteBuiltinStablehloCosine = 177, + kTfLiteBuiltinStablehloExponential = 178, + kTfLiteBuiltinStablehloFloor = 179, + kTfLiteBuiltinStablehloLog = 180, + kTfLiteBuiltinStablehloMinimum = 181, + kTfLiteBuiltinStablehloNegate = 182, + kTfLiteBuiltinStablehloOr = 183, + kTfLiteBuiltinStablehloPower = 184, + kTfLiteBuiltinStablehloRemainder = 185, + kTfLiteBuiltinStablehloRsqrt = 186, + kTfLiteBuiltinStablehloSelect = 187, + kTfLiteBuiltinStablehloSubtract = 188, + kTfLiteBuiltinStablehloTanh = 189, + kTfLiteBuiltinStablehloScatter = 190, + kTfLiteBuiltinStablehloCompare = 191, + kTfLiteBuiltinStablehloConvert = 192, + kTfLiteBuiltinStablehloDynamicSlice = 193, + kTfLiteBuiltinStablehloDynamicUpdateSlice = 194, + kTfLiteBuiltinStablehloPad = 195, + kTfLiteBuiltinStablehloIota = 196, + kTfLiteBuiltinStablehloDotGeneral = 197, + kTfLiteBuiltinStablehloReduceWindow = 198, + kTfLiteBuiltinStablehloSort = 199, + kTfLiteBuiltinStablehloWhile = 200, + kTfLiteBuiltinStablehloGather = 201, + kTfLiteBuiltinStablehloTranspose = 202, + kTfLiteBuiltinDilate = 203, + kTfLiteBuiltinStablehloRngBitGenerator = 204, + kTfLiteBuiltinReduceWindow = 205; // #ifdef __cplusplus // extern "C" // #endif // __cplusplus @@ -260,8 +304,17 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl limitations under the License. ==============================================================================*/ // #ifndef TENSORFLOW_LITE_C_C_API_TYPES_H_ + +/// +/// // #define TENSORFLOW_LITE_C_C_API_TYPES_H_ +/** \file + * + * C API types for TensorFlow Lite. + * + * For documentation, see tensorflow/lite/core/c/c_api_types.h */ + // #include "tensorflow/lite/core/c/c_api_types.h" // #endif // TENSORFLOW_LITE_C_C_API_TYPES_H_ @@ -563,6 +616,9 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl /** A tensor in the interpreter system which is a wrapper around a buffer of * data including a dimensionality (or NULL if not currently defined). */ +// Targeting ../TfLiteSignatureRunner.java + + // -------------------------------------------------------------------------- /** The TensorFlow Lite Runtime version. @@ -573,10 +629,34 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl * in semver 2 format , starting with MAJOR.MINOR.PATCH, * e.g. "2.12.0" or "2.13.0-rc2". */ +/// /// /// public static native @Cast("const char*") BytePointer TfLiteVersion(); +// -------------------------------------------------------------------------- +/** The TensorFlow Lite Extension APIs version. + * + * Returns a pointer to a statically allocated string that is the version + * number of the TF Lite Extension APIs supported by the (potentially + * dynamically loaded) TF Lite Runtime library. The TF Lite "Extension APIs" + * are the APIs for extending TF Lite with custom ops and delegates. + * More specifically, this version number covers the (non-experimental) + * functionality documented in the following header files: + * + * * lite/c/c_api_opaque.h + * * lite/c/common.h + * * lite/c/builtin_op_data.h + * * lite/builtin_ops.h + * + * This version number uses semantic versioning, and the return value should + * be in semver 2 format , starting with MAJOR.MINOR.PATCH, + * e.g. "2.14.0" or "2.15.0-rc2". */ + +/// +/// +public static native @Cast("const char*") BytePointer TfLiteExtensionApisVersion(); + /** The supported TensorFlow Lite model file Schema version. * * Returns the (major) version number of the Schema used for model @@ -939,9 +1019,185 @@ public static native TfLiteTensor TfLiteInterpreterGetTensor(@Const TfLiteInterp * {@code TfLiteInterpreterOptionsEnableCancellation}. * * \warning This is an experimental API and subject to change. */ + +/// +/// +/// +/// public static native @Cast("TfLiteStatus") int TfLiteInterpreterCancel( @Const TfLiteInterpreter interpreter); +/** -------------------------------------------------------------------------- + * SignatureRunner APIs + * + * You can run inference by either: + * + * (i) (recommended) using the Interpreter to initialize SignatureRunner(s) and + * then only using SignatureRunner APIs. + * + * (ii) only using Interpreter APIs. + * + * NOTE: + * * Only use one of the above options to run inference, i.e. avoid mixing both + * SignatureRunner APIs and Interpreter APIs to run inference as they share + * the same underlying data (e.g. updating an input tensor “A” retrieved + * using the Interpreter APIs will update the state of the input tensor “B” + * retrieved using SignatureRunner APIs, if they point to the same underlying + * tensor in the model; as it is not possible for a user to debug this by + * analyzing the code, it can lead to undesirable behavior). + * * The TfLiteSignatureRunner type is conditionally thread-safe, provided that + * no two threads attempt to simultaneously access two TfLiteSignatureRunner + * instances that point to the same underlying signature, or access a + * TfLiteSignatureRunner and its underlying TfLiteInterpreter, unless all + * such simultaneous accesses are reads (rather than writes). + * * The lifetime of a TfLiteSignatureRunner object ends when + * TfLiteSignatureRunnerDelete() is called on it (or when the lifetime of the + * underlying TfLiteInterpreter ends -- but you should call + * TfLiteSignatureRunnerDelete() before that happens in order to avoid + * resource leaks). + * * You can only apply delegates to the interpreter (via + * TfLiteInterpreterOptions) and not to a signature. +

+ * Returns the number of signatures defined in the model. */ + +/// +public static native int TfLiteInterpreterGetSignatureCount( + @Const TfLiteInterpreter interpreter); + +/** Returns the key of the Nth signature in the model, where N is specified as + * {@code signature_index}. + * + * NOTE: The lifetime of the returned key is the same as (and depends on) the + * lifetime of {@code interpreter}. */ + +/// +/// +public static native @Cast("const char*") BytePointer TfLiteInterpreterGetSignatureKey( + @Const TfLiteInterpreter interpreter, int signature_index); + +/** Returns a new signature runner using the provided interpreter and signature + * key, or nullptr on failure. + * + * NOTE: {@code signature_key} is a null-terminated C string that must match the + * key of a signature in the interpreter's model. + * + * NOTE: The returned signature runner should be destroyed, by calling + * TfLiteSignatureRunnerDelete(), before the interpreter is destroyed. */ +public static native TfLiteSignatureRunner TfLiteInterpreterGetSignatureRunner(@Const TfLiteInterpreter interpreter, + @Cast("const char*") BytePointer signature_key); +public static native TfLiteSignatureRunner TfLiteInterpreterGetSignatureRunner(@Const TfLiteInterpreter interpreter, + String signature_key); + +/** Returns the number of inputs associated with a signature. */ + +/// +public static native @Cast("size_t") long TfLiteSignatureRunnerGetInputCount( + @Const TfLiteSignatureRunner signature_runner); + +/** Returns the (null-terminated) name of the Nth input in a signature, where N + * is specified as {@code input_index}. + * + * NOTE: The lifetime of the returned name is the same as (and depends on) the + * lifetime of {@code signature_runner}. */ + +/// +/// +/// +/// +public static native @Cast("const char*") BytePointer TfLiteSignatureRunnerGetInputName( + @Const TfLiteSignatureRunner signature_runner, int input_index); + +/** Resizes the input tensor identified as {@code input_name} to be the dimensions + * specified by {@code input_dims} and {@code input_dims_size}. Only unknown dimensions can + * be resized with this function. Unknown dimensions are indicated as {@code -1} in + * the {@code dims_signature} attribute of a TfLiteTensor. + * + * Returns status of failure or success. Note that this doesn't actually resize + * any existing buffers. A call to TfLiteSignatureRunnerAllocateTensors() is + * required to change the tensor input buffer. + * + * NOTE: This function is similar to TfLiteInterpreterResizeInputTensorStrict() + * and not TfLiteInterpreterResizeInputTensor(). + * + * NOTE: {@code input_name} must match the name of an input in the signature. + * + * NOTE: This function makes a copy of the input dimensions, so the caller can + * safely deallocate {@code input_dims} immediately after this function returns. */ +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, + @Const IntPointer input_dims, int input_dims_size); +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, String input_name, + @Const IntBuffer input_dims, int input_dims_size); +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, + @Const int[] input_dims, int input_dims_size); +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, String input_name, + @Const IntPointer input_dims, int input_dims_size); +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, + @Const IntBuffer input_dims, int input_dims_size); +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( + TfLiteSignatureRunner signature_runner, String input_name, + @Const int[] input_dims, int input_dims_size); + +/** Updates allocations for tensors associated with a signature and resizes + * dependent tensors using the specified input tensor dimensionality. + * This is a relatively expensive operation and hence should only be called + * after initializing the signature runner object and/or resizing any inputs. */ + +/// +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerAllocateTensors( + TfLiteSignatureRunner signature_runner); + +/** Returns the input tensor identified by {@code input_name} in the given signature. + * Returns nullptr if the given name is not valid. + * + * NOTE: The lifetime of the returned tensor is the same as (and depends on) + * the lifetime of {@code signature_runner}. */ + +/// +public static native TfLiteTensor TfLiteSignatureRunnerGetInputTensor( + TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name); +public static native TfLiteTensor TfLiteSignatureRunnerGetInputTensor( + TfLiteSignatureRunner signature_runner, String input_name); + +/** Runs inference on a given signature. + * + * Before calling this function, the caller should first invoke + * TfLiteSignatureRunnerAllocateTensors() and should also set the values for + * the input tensors. After successfully calling this function, the values for + * the output tensors will be set. */ +public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerInvoke( + TfLiteSignatureRunner signature_runner); + +/** Returns the number of output tensors associated with the signature. */ + +/// +public static native @Cast("size_t") long TfLiteSignatureRunnerGetOutputCount( + @Const TfLiteSignatureRunner signature_runner); + +/** Returns the (null-terminated) name of the Nth output in a signature, where + * N is specified as {@code output_index}. + * + * NOTE: The lifetime of the returned name is the same as (and depends on) the + * lifetime of {@code signature_runner}. */ + +/// +public static native @Cast("const char*") BytePointer TfLiteSignatureRunnerGetOutputName( + @Const TfLiteSignatureRunner signature_runner, int output_index); + +/** Returns the output tensor identified by {@code output_name} in the given + * signature. Returns nullptr if the given name is not valid. + * + * NOTE: The lifetime of the returned tensor is the same as (and depends on) + * the lifetime of {@code signature_runner}. */ +public static native @Const TfLiteTensor TfLiteSignatureRunnerGetOutputTensor( + @Const TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer output_name); +public static native @Const TfLiteTensor TfLiteSignatureRunnerGetOutputTensor( + @Const TfLiteSignatureRunner signature_runner, String output_name); + // -------------------------------------------------------------------------- // TfLiteTensor wraps data associated with a graph tensor. // @@ -996,6 +1252,10 @@ public static native int TfLiteTensorDim(@Const TfLiteTensor tensor, @Const TfLiteTensor output_tensor, Pointer output_data, @Cast("size_t") long output_data_size); +/** Destroys the signature runner. */ +public static native void TfLiteSignatureRunnerDelete( + TfLiteSignatureRunner signature_runner); + // NOLINTEND(modernize-redundant-void-arg) /** \} */ @@ -1191,9 +1451,7 @@ public static native void TfLiteRegistrationExternalSetInplaceOperator( // #include "tensorflow/lite/core/c/common.h" // #ifdef __cplusplus -// Targeting ../TfLiteSignatureRunner.java - - +// #endif // __cplusplus // -------------------------------------------------------------------------- /** Resets all variable tensors to zero. @@ -1508,226 +1766,43 @@ public static native int TfLiteInterpreterGetInputTensorIndex( * * WARNING: This is an experimental API and subject to change. */ -/// -/// -/// /// /// public static native int TfLiteInterpreterGetOutputTensorIndex( @Const TfLiteInterpreter interpreter, int output_index); -/** -------------------------------------------------------------------------- - * SignatureRunner APIs - * - * You can run inference by either: +/** Assigns (or reassigns) a custom memory allocation for the given + * tensor. {@code flags} is a bitmask, see TfLiteCustomAllocationFlags. + * The runtime does NOT take ownership of the underlying memory. * - * (i) (recommended) using the Interpreter to initialize SignatureRunner(s) and - * then only using SignatureRunner APIs. - * - * (ii) only using Interpreter APIs. - * - * NOTE: - * * Only use one of the above options to run inference, i.e. avoid mixing both - * SignatureRunner APIs and Interpreter APIs to run inference as they share - * the same underlying data (e.g. updating an input tensor “A” retrieved - * using the Interpreter APIs will update the state of the input tensor “B” - * retrieved using SignatureRunner APIs, if they point to the same underlying - * tensor in the model; as it is not possible for a user to debug this by - * analyzing the code, it can lead to undesirable behavior). - * * The TfLiteSignatureRunner type is conditionally thread-safe, provided that - * no two threads attempt to simultaneously access two TfLiteSignatureRunner - * instances that point to the same underlying signature, or access a - * TfLiteSignatureRunner and its underlying TfLiteInterpreter, unless all - * such simultaneous accesses are reads (rather than writes). - * * The lifetime of a TfLiteSignatureRunner object ends when - * TfLiteSignatureRunnerDelete() is called on it (or when the lifetime of the - * underlying TfLiteInterpreter ends -- but you should call - * TfLiteSignatureRunnerDelete() before that happens in order to avoid - * resource leaks). - * * You can only apply delegates to the interpreter (via - * TfLiteInterpreterOptions) and not to a signature. -

- * Returns the number of signatures defined in the model. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -public static native int TfLiteInterpreterGetSignatureCount( - @Const TfLiteInterpreter interpreter); - -/** Returns the key of the Nth signature in the model, where N is specified as - * {@code signature_index}. - * - * NOTE: The lifetime of the returned key is the same as (and depends on) the - * lifetime of {@code interpreter}. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -/// -public static native @Cast("const char*") BytePointer TfLiteInterpreterGetSignatureKey( - @Const TfLiteInterpreter interpreter, int signature_index); - -/** Returns a new signature runner using the provided interpreter and signature - * key, or nullptr on failure. - * - * NOTE: {@code signature_key} is a null-terminated C string that must match the - * key of a signature in the interpreter's model. - * - * NOTE: The returned signature runner should be destroyed, by calling - * TfLiteSignatureRunnerDelete(), before the interpreter is destroyed. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -public static native TfLiteSignatureRunner TfLiteInterpreterGetSignatureRunner(@Const TfLiteInterpreter interpreter, - @Cast("const char*") BytePointer signature_key); -public static native TfLiteSignatureRunner TfLiteInterpreterGetSignatureRunner(@Const TfLiteInterpreter interpreter, - String signature_key); - -/** Returns the number of inputs associated with a signature. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -public static native @Cast("size_t") long TfLiteSignatureRunnerGetInputCount( - @Const TfLiteSignatureRunner signature_runner); - -/** Returns the (null-terminated) name of the Nth input in a signature, where N - * is specified as {@code input_index}. - * - * NOTE: The lifetime of the returned name is the same as (and depends on) the - * lifetime of {@code signature_runner}. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -/// -/// -/// -public static native @Cast("const char*") BytePointer TfLiteSignatureRunnerGetInputName( - @Const TfLiteSignatureRunner signature_runner, int input_index); - -/** Resizes the input tensor identified as {@code input_name} to be the dimensions - * specified by {@code input_dims} and {@code input_dims_size}. Only unknown dimensions can - * be resized with this function. Unknown dimensions are indicated as {@code -1} in - * the {@code dims_signature} attribute of a TfLiteTensor. - * - * Returns status of failure or success. Note that this doesn't actually resize - * any existing buffers. A call to TfLiteSignatureRunnerAllocateTensors() is - * required to change the tensor input buffer. - * - * NOTE: This function is similar to TfLiteInterpreterResizeInputTensorStrict() - * and not TfLiteInterpreterResizeInputTensor(). - * - * NOTE: {@code input_name} must match the name of an input in the signature. - * - * NOTE: This function makes a copy of the input dimensions, so the caller can - * safely deallocate {@code input_dims} immediately after this function returns. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, - @Const IntPointer input_dims, int input_dims_size); -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, String input_name, - @Const IntBuffer input_dims, int input_dims_size); -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, - @Const int[] input_dims, int input_dims_size); -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, String input_name, - @Const IntPointer input_dims, int input_dims_size); -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name, - @Const IntBuffer input_dims, int input_dims_size); -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerResizeInputTensor( - TfLiteSignatureRunner signature_runner, String input_name, - @Const int[] input_dims, int input_dims_size); - -/** Updates allocations for tensors associated with a signature and resizes - * dependent tensors using the specified input tensor dimensionality. - * This is a relatively expensive operation and hence should only be called - * after initializing the signature runner object and/or resizing any inputs. + * NOTE: User needs to call TfLiteInterpreterAllocateTensors() after this. + * Invalid/insufficient buffers will cause an error during + * TfLiteInterpreterAllocateTensors or TfLiteInterpreterInvoke (in case of + * dynamic shapes in the graph). * + * Parameters should satisfy the following conditions: + * 1. tensor->allocation_type == kTfLiteArenaRw or kTfLiteArenaRwPersistent + * In general, this is true for I/O tensors & variable tensors. + * 2. allocation->data has the appropriate permissions for runtime access + * (Read-only for inputs, Read-Write for others), and outlives + * TfLiteInterpreter. + * 3. allocation->bytes >= tensor->bytes. + * This condition is checked again if any tensors are resized. + * 4. allocation->data should be aligned to kDefaultTensorAlignment + * defined in lite/util.h. (Currently 64 bytes) + * This check is skipped if kTfLiteCustomAllocationFlagsSkipAlignCheck is + * set through {@code flags}. * WARNING: This is an experimental API and subject to change. */ /// -/// -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerAllocateTensors( - TfLiteSignatureRunner signature_runner); - -/** Returns the input tensor identified by {@code input_name} in the given signature. - * Returns nullptr if the given name is not valid. - * - * NOTE: The lifetime of the returned tensor is the same as (and depends on) - * the lifetime of {@code signature_runner}. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -public static native TfLiteTensor TfLiteSignatureRunnerGetInputTensor( - TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer input_name); -public static native TfLiteTensor TfLiteSignatureRunnerGetInputTensor( - TfLiteSignatureRunner signature_runner, String input_name); - -/** Runs inference on a given signature. - * - * Before calling this function, the caller should first invoke - * TfLiteSignatureRunnerAllocateTensors() and should also set the values for - * the input tensors. After successfully calling this function, the values for - * the output tensors will be set. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerInvoke( - TfLiteSignatureRunner signature_runner); - -/** Returns the number of output tensors associated with the signature. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -public static native @Cast("size_t") long TfLiteSignatureRunnerGetOutputCount( - @Const TfLiteSignatureRunner signature_runner); - -/** Returns the (null-terminated) name of the Nth output in a signature, where - * N is specified as {@code output_index}. - * - * NOTE: The lifetime of the returned name is the same as (and depends on) the - * lifetime of {@code signature_runner}. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -/// -public static native @Cast("const char*") BytePointer TfLiteSignatureRunnerGetOutputName( - @Const TfLiteSignatureRunner signature_runner, int output_index); - -/** Returns the output tensor identified by {@code output_name} in the given - * signature. Returns nullptr if the given name is not valid. - * - * NOTE: The lifetime of the returned tensor is the same as (and depends on) - * the lifetime of {@code signature_runner}. - * - * WARNING: This is an experimental API and subject to change. */ - -/// -public static native @Const TfLiteTensor TfLiteSignatureRunnerGetOutputTensor( - @Const TfLiteSignatureRunner signature_runner, @Cast("const char*") BytePointer output_name); -public static native @Const TfLiteTensor TfLiteSignatureRunnerGetOutputTensor( - @Const TfLiteSignatureRunner signature_runner, String output_name); +public static native @Cast("TfLiteStatus") int TfLiteInterpreterSetCustomAllocationForTensor( + TfLiteInterpreter interpreter, int tensor_index, + @Const TfLiteCustomAllocation allocation, @Cast("int64_t") long flags); -/** Attempts to cancel in flight invocation if any. +/** -------------------------------------------------------------------------- + * SignatureRunner APIs +

+ * Attempts to cancel in flight invocation if any. * This will not affect calls to {@code Invoke} that happend after this. * Non blocking and thread safe. * Returns kTfLiteError if cancellation is not enabled, otherwise returns @@ -1736,17 +1811,9 @@ public static native TfLiteTensor TfLiteSignatureRunnerGetInputTensor( * in all SignatureRunners built from the same interpreter. * * WARNING: This is an experimental API and subject to change. */ - -/// public static native @Cast("TfLiteStatus") int TfLiteSignatureRunnerCancel( TfLiteSignatureRunner signature_runner); -/** Destroys the signature runner. - * - * WARNING: This is an experimental API and subject to change. */ -public static native void TfLiteSignatureRunnerDelete( - TfLiteSignatureRunner signature_runner); - // Forward declaration, to avoid need for dependency on // tensorflow/lite/profiling/telemetry/profiler.h. @@ -1782,25 +1849,14 @@ public static native void TfLiteInterpreterOptionsSetTelemetryProfiler( limitations under the License. ==============================================================================*/ -// This file defines common C types and APIs for implementing operations, -// delegates and other constructs in TensorFlow Lite. The actual operations and -// delegates can be defined using C++, but the interface between the interpreter -// and the operations are C. -// -// Summary of abstractions -// TF_LITE_ENSURE - Self-sufficient error checking -// TfLiteStatus - Status reporting -// TfLiteIntArray - stores tensor shapes (dims), -// TfLiteContext - allows an op to access the tensors -// TfLiteTensor - tensor (a multidimensional array) -// TfLiteNode - a single node or operation -// TfLiteRegistration - the implementation of a conceptual operation. -// TfLiteDelegate - allows delegation of nodes to alternative backends. -// -// Some abstractions in this file are created and managed by Interpreter. -// -// NOTE: The order of values in these structs are "semi-ABI stable". New values -// should be added only to the end of structs and never reordered. +/** \file +/** +/** This file defines common C types and APIs for implementing operations, +/** delegates and other constructs in TensorFlow Lite. The actual operations and +/** delegates can be defined using C++, but the interface between the +/** interpreter and the operations are C. +/** +/** For documentation, see tensorflow/lite/core/c/common.h. */ // #ifndef TENSORFLOW_LITE_C_COMMON_H_ // #define TENSORFLOW_LITE_C_COMMON_H_ @@ -2091,6 +2147,37 @@ public static native int TfLiteIntArrayEqualsArray(@Const TfLiteIntArray a, int kTfLiteCustom = 6, kTfLiteVariantObject = 7; +// Memory allocation strategies. +// +// TfLiteAllocationType values have been overloaded to mean more than their +// original intent. This enum should only be used to document the allocation +// strategy used by a tensor for it data. +/** enum TfLiteAllocationStrategy */ +public static final int + kTfLiteAllocationStrategyUnknown = 0, + kTfLiteAllocationStrategyNone = 1, // No data is allocated. + kTfLiteAllocationStrategyMMap = 2, // Data is mmaped. + kTfLiteAllocationStrategyArena = 3, // Handled by the arena. + kTfLiteAllocationStrategyMalloc = 4, // Uses `malloc`/`free`. + kTfLiteAllocationStrategyNew = 5; // Uses `new[]`/`delete[]`. + +// Describes how stable a tensor attribute is with regards to an interpreter +// runs. +/** enum TfLiteRunStability */ +public static final int + kTfLiteRunStabilityUnknown = 0, + kTfLiteRunStabilityUnstable = 1, // May change at any time. + kTfLiteRunStabilitySingleRun = 2, // Will stay the same for one run. + kTfLiteRunStabilityAcrossRuns = 3; // Will stay the same across all runs. + +// Describes the steps of a TFLite operation life cycle. +/** enum TfLiteRunStep */ +public static final int + kTfLiteRunStepUnknown = 0, + kTfLiteRunStepInit = 1, + kTfLiteRunStepPrepare = 2, + kTfLiteRunStepEval = 3; + // The delegates should use zero or positive integers to represent handles. // -1 is reserved from unallocated status. /** enum */ @@ -2406,6 +2493,29 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // 'opaque_delegate_builder' field is null. public static native Pointer TfLiteOpaqueDelegateGetData(@Cast("const TfLiteOpaqueDelegate*") TfLiteOpaqueDelegateStruct delegate); +// Returns a tensor data allocation strategy. +public static native @Cast("TfLiteAllocationStrategy") int TfLiteTensorGetAllocationStrategy( + @Const TfLiteTensor t); + +// Returns how stable a tensor data buffer address is across runs. +public static native @Cast("TfLiteRunStability") int TfLiteTensorGetBufferAddressStability(@Const TfLiteTensor t); + +// Returns how stable a tensor data values are across runs. +public static native @Cast("TfLiteRunStability") int TfLiteTensorGetDataStability(@Const TfLiteTensor t); + +// Returns the operation step when the data of a tensor is populated. +// +// Some operations can precompute their results before the evaluation step. This +// makes the data available earlier for subsequent operations. +public static native @Cast("TfLiteRunStep") int TfLiteTensorGetDataKnownStep(@Const TfLiteTensor t); + +// Returns the operation steop when the shape of a tensor is computed. +// +// Some operations can precompute the shape of their results before the +// evaluation step. This makes the shape available earlier for subsequent +// operations. +public static native @Cast("TfLiteRunStep") int TfLiteTensorGetShapeKnownStep(@Const TfLiteTensor t); + // #ifdef __cplusplus // extern "C" // #include @@ -2459,7 +2569,7 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #ifndef TF_LITE_STRIP_ERROR_STRINGS // #define TF_LITE_REPORT_ERROR(reporter, ...) // do { -// static_cast(reporter)->Report(__VA_ARGS__); +// static_cast<::tflite::ErrorReporter*>(reporter)->Report(__VA_ARGS__); // } while (false) // #else // TF_LITE_STRIP_ERROR_STRINGS // #define TF_LITE_REPORT_ERROR(reporter, ...)