adas_opencv_generate_fusion_tracks_from_rect()

Updated: April 19, 2023

Create ADAS fusion objects from rectangles extracted by OpenCV

Synopsis:

#include <adas/adas_opencv.h>
adas_error_t adas_opencv_generate_fusion_tracks_from_rect(
                                                 const std::vector< cv::Rect > &founds,
                                                 const cv::Point &src_offset,
                                                 const cv::Size &src_size,
                                                 const cv::Size &dst_size,
                                                 adas_fusion_object_type_t type,
                                                 adas_fusion_object_data_t **return_objects,
                                                 size_t *nb_objects)

Arguments:

founds
The rectangles around the objects found in OpenCV.
src_offset
The coordinates of an offset into the original source image that serve as the new origin.
src_size
The dimensions of the original source image.
dst_size
The dimensions of the destination image that was used to obtain the tracks; this supports the image being a scaled version of the original source image.
type
The type of objects found (see adas_fusion_object_type_t).
return_objects
On success, the referenced memory gets filled with the array of fusion objects generated.
nb_objects
On success, the referenced memory gets filled with the number of fusion objects generated.

Library:

libadas

Description:

The ADAS fusion objects created by this function can then be passed to adas_fusion_create_buffer_from_tracking() to create the fusion buffer output for the algorithm.

Returns:

ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.