45 #ifndef DW_LANEDETECTOR_H__ 46 #define DW_LANEDETECTOR_H__ 58 #define DW_LANEMARK_MAX_COUNT 16 59 #define DW_LANEMARK_POINT_MAX_COUNT 128 62 #pragma pack(push,1) // Make sure we have consistent structure packings 128 uint32_t frameHeight,
225 dwLaneDetectorHandle_t obj);
370 #endif // DW_LANEDETECTOR_H__ lane marking on the right side next to ego lane
lane marking has been identifed but has not been categorized
DW_API_PUBLIC dwStatus dwLaneDetector_getCUDAStream(cudaStream_t *stream, dwLaneDetectorHandle_t obj)
Gets CUDA stream used by the lane detection.
NVIDIA DriveWorks API: Camera Methods
NVIDIA DriveWorks API: Core Types
all detected lane markings are treated the same type
DW_API_PUBLIC dwStatus dwLaneDetector_initializeLaneNet(dwLaneDetectorHandle_t *obj, uint32_t frameWidth, uint32_t frameHeight, dwContextHandle_t ctx)
Initializes a lane detector module based on LaneNet.
float float32_t
Specifies POD types.
Defines a two-element floating-point vector.
DW_API_PUBLIC dwStatus dwLaneDetector_setCameraExtrinsics(dwTransformation cam2rig, dwLaneDetectorHandle_t obj)
Set the transformation from camera to rig.
right lane marking of the ego lane
DW_API_PUBLIC dwStatus dwLaneDetector_setDetectionROI(const dwRect *roi, dwLaneDetectorHandle_t obj)
Set detection Region of Interest (ROI) for the detector.
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_getTemporalSmoothFactor(float32_t *factor, dwLaneDetectorHandle_t obj)
Gets the temporal smoothing factor for the LaneNet based detector.
NVIDIA DriveWorks API: Core Methods
DW_API_PUBLIC dwStatus dwLaneDetector_getLaneDetections(dwLaneDetection *lanes, dwLaneDetectorHandle_t obj)
Gets the latest computed results in image coordinates.
#define DW_LANEMARK_POINT_MAX_COUNT
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setDetectionThreshold(float32_t threshold, dwLaneDetectorHandle_t obj)
Sets the detection confidence threshold for the LaneNet based detector.
dwLaneMarkType lineType
Category of the line type of lane marking.
#define DW_LANEMARK_MAX_COUNT
DW_API_PUBLIC dwStatus dwLaneDetector_reset(dwLaneDetectorHandle_t obj)
Resets the lane detector module.
NVIDIA DriveWorks API: DNN Methods
NVIDIA DriveWorks API: Image Conversion and Streaming Functionality
dwStatus
Status definition.
struct dwCalibratedCameraObject * dwCalibratedCameraHandle_t
A pointer to the handle representing a calibrated camera.
The output format of detected lanes.
dwLanePositionType
Defintion of the position of a lane marking in respect to the ego lane.
uint32_t numLaneMarkings
Number of detected lane markings.
uint32_t numPoints
Number of points in the array.
dwLanePositionType positionType
Category of the position of lane marking.
DW_API_PUBLIC dwStatus dwLaneDetector_setCUDAStream(cudaStream_t stream, dwLaneDetectorHandle_t obj)
Sets the CUDA stream for CUDA related operations.
DW_API_PUBLIC dwStatus dwLaneDetector_setCameraHandle(dwCalibratedCameraHandle_t cam, dwLaneDetectorHandle_t obj)
Set the handle to the calibrated front looking camera.
DW_API_PUBLIC dwStatus dwLaneDetector_getDetectionROI(dwRect *roi, dwLaneDetectorHandle_t obj)
Get detection Region of Interest (ROI) for the detector.
DW_API_PUBLIC dwStatus dwLaneDetector_release(dwLaneDetectorHandle_t *obj)
Releases the detector module.
struct dwLaneDetectorObject * dwLaneDetectorHandle_t
Handle to a DataConditioner.
DW_API_PUBLIC dwStatus dwLaneDetector_interpretHost(dwLaneDetectorHandle_t obj)
Runs the interpretation of the processed results on the CPU.
left lane marking of the ego lane
DW_API_PUBLIC dwStatus dwLaneDetector_setMaxLaneDistance(float32_t maxDistance, dwLaneDetectorHandle_t obj)
Set the maximum distance in meters at which lane markings can be detected.
struct dwContextObject * dwContextHandle_t
Context handle.
dwLaneMarkType
Type of a lane mark.
dwLaneMarking laneMarkings[DW_LANEMARK_MAX_COUNT]
Detected lane markings.
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setTemporalSmoothFactor(float32_t factor, dwLaneDetectorHandle_t obj)
Sets the temporal smoothing factor for the LaneNet-based detector.
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_getDNNMetaData(dwDNNMetaData *metaData, dwLaneDetectorHandle_t obj)
Returns the DNN metadata.
DW_API_PUBLIC dwStatus dwLaneDetectorLaneNet_setHorizontalFOV(float32_t hfov, dwLaneDetectorHandle_t obj)
Sets the input camera horizontal Field Of View (FOV) in degree for the LaneNet-based detector...
DW_API_PUBLIC dwStatus dwLaneDetector_processDeviceAsync(const dwImageCUDA *frame, dwLaneDetectorHandle_t obj)
Processes the given frame on the GPU asynchronously.
lane marking on the left side next to ego lane