|
| 1 | +// Targeted by JavaCPP version 1.5.10: DO NOT EDIT THIS FILE |
| 2 | + |
| 3 | +package us.ihmc.zed; |
| 4 | + |
| 5 | +import org.bytedeco.cuda.cudart.CUctx_st; |
| 6 | +import org.bytedeco.cuda.cudart.CUstream_st; |
| 7 | +import java.nio.*; |
| 8 | +import org.bytedeco.javacpp.*; |
| 9 | +import org.bytedeco.javacpp.annotation.*; |
| 10 | + |
| 11 | +import static us.ihmc.zed.global.zed.*; |
| 12 | + |
| 13 | + |
| 14 | +/** |
| 15 | +\brief Structure containing a set of runtime properties of a certain class ID for the object detection module using a custom model. |
| 16 | +<p> |
| 17 | +The default constructor sets all parameters to their default settings. |
| 18 | +\note Parameters can be adjusted by the user. |
| 19 | +*/ |
| 20 | +@Properties(inherit = us.ihmc.zed.ZEDJavaAPIConfig.class) |
| 21 | +public class SL_CustomObjectDetectionProperties extends Pointer { |
| 22 | + static { Loader.load(); } |
| 23 | + /** Default native constructor. */ |
| 24 | + public SL_CustomObjectDetectionProperties() { super((Pointer)null); allocate(); } |
| 25 | + /** Native array allocator. Access with {@link Pointer#position(long)}. */ |
| 26 | + public SL_CustomObjectDetectionProperties(long size) { super((Pointer)null); allocateArray(size); } |
| 27 | + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ |
| 28 | + public SL_CustomObjectDetectionProperties(Pointer p) { super(p); } |
| 29 | + private native void allocate(); |
| 30 | + private native void allocateArray(long size); |
| 31 | + @Override public SL_CustomObjectDetectionProperties position(long position) { |
| 32 | + return (SL_CustomObjectDetectionProperties)super.position(position); |
| 33 | + } |
| 34 | + @Override public SL_CustomObjectDetectionProperties getPointer(long i) { |
| 35 | + return new SL_CustomObjectDetectionProperties((Pointer)this).offsetAddress(i); |
| 36 | + } |
| 37 | + |
| 38 | + /** |
| 39 | + \brief Index of the class represented by this set of properties. |
| 40 | + */ |
| 41 | + public native int class_id(); public native SL_CustomObjectDetectionProperties class_id(int setter); |
| 42 | + |
| 43 | + /** |
| 44 | + \brief Whether the object object is kept or not. |
| 45 | + */ |
| 46 | + public native @Cast("bool") boolean enabled(); public native SL_CustomObjectDetectionProperties enabled(boolean setter); |
| 47 | + |
| 48 | + /** |
| 49 | + \brief Confidence threshold. |
| 50 | + <p> |
| 51 | + From 1 to 100, with 1 meaning a low threshold, more uncertain objects and 99 very few but very precise objects. |
| 52 | + \n Default: 20.f |
| 53 | + \note If the scene contains a lot of objects, increasing the confidence can slightly speed up the process, since every object instance is tracked. |
| 54 | + */ |
| 55 | + public native float detection_confidence_threshold(); public native SL_CustomObjectDetectionProperties detection_confidence_threshold(float setter); |
| 56 | + |
| 57 | + /** |
| 58 | + \brief Provide hypothesis about the object movements (degrees of freedom or DoF) to improve the object tracking. |
| 59 | + - true: 2 DoF projected alongside the floor plane. Case for object standing on the ground such as person, vehicle, etc. |
| 60 | + \n The projection implies that the objects cannot be superposed on multiple horizontal levels. |
| 61 | + - false: 6 DoF (full 3D movements are allowed). |
| 62 | + <p> |
| 63 | + \note This parameter cannot be changed for a given object tracking id. |
| 64 | + \note It is advised to set it by labels to avoid issues. |
| 65 | + */ |
| 66 | + public native @Cast("bool") boolean is_grounded(); public native SL_CustomObjectDetectionProperties is_grounded(boolean setter); |
| 67 | + |
| 68 | + /** |
| 69 | + \brief Provide hypothesis about the object staticity to improve the object tracking. |
| 70 | + - true: the object will be assumed to never move nor being moved. |
| 71 | + - false: the object will be assumed to be able to move or being moved. |
| 72 | + */ |
| 73 | + public native @Cast("bool") boolean is_static(); public native SL_CustomObjectDetectionProperties is_static(boolean setter); |
| 74 | + |
| 75 | + /** |
| 76 | + \brief Maximum tracking time threshold (in seconds) before dropping the tracked object when unseen for this amount of time. |
| 77 | + <p> |
| 78 | + By default, let the tracker decide internally based on the internal sub class of the tracked object. |
| 79 | + Only valid for static object. |
| 80 | + */ |
| 81 | + public native float tracking_timeout(); public native SL_CustomObjectDetectionProperties tracking_timeout(float setter); |
| 82 | + |
| 83 | + /** |
| 84 | + \brief Maximum tracking distance threshold (in meters) before dropping the tracked object when unseen for this amount of meters. |
| 85 | + <p> |
| 86 | + By default, do not discard tracked object based on distance. |
| 87 | + Only valid for static object. |
| 88 | + */ |
| 89 | + public native float tracking_max_dist(); public native SL_CustomObjectDetectionProperties tracking_max_dist(float setter); |
| 90 | + |
| 91 | + /** |
| 92 | + \brief Maximum allowed width normalized to the image size. |
| 93 | + <p> |
| 94 | + Any prediction bigger than that will be filtered out. |
| 95 | + Default: -1 (no filtering) |
| 96 | + */ |
| 97 | + public native float max_box_width_normalized(); public native SL_CustomObjectDetectionProperties max_box_width_normalized(float setter); |
| 98 | + |
| 99 | + /** |
| 100 | + \brief Minimum allowed width normalized to the image size. |
| 101 | + <p> |
| 102 | + Any prediction smaller than that will be filtered out. |
| 103 | + Default: -1 (no filtering) |
| 104 | + */ |
| 105 | + public native float min_box_width_normalized(); public native SL_CustomObjectDetectionProperties min_box_width_normalized(float setter); |
| 106 | + |
| 107 | + /** |
| 108 | + \brief Maximum allowed height normalized to the image size. |
| 109 | + <p> |
| 110 | + Any prediction bigger than that will be filtered out. |
| 111 | + Default: -1 (no filtering) |
| 112 | + */ |
| 113 | + public native float max_box_height_normalized(); public native SL_CustomObjectDetectionProperties max_box_height_normalized(float setter); |
| 114 | + |
| 115 | + /** |
| 116 | + \brief Minimum allowed height normalized to the image size. |
| 117 | + <p> |
| 118 | + Any prediction smaller than that will be filtered out. |
| 119 | + Default: -1 (no filtering) |
| 120 | + */ |
| 121 | + public native float min_box_height_normalized(); public native SL_CustomObjectDetectionProperties min_box_height_normalized(float setter); |
| 122 | +} |
0 commit comments