# Object Detection - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasObjDet\_Init(const char \*licenseKey) - Initialize object detection module. **WARNING:** Must be called once before other FastADAS functions except [FadasVersion()](https://docs.qualcomm.com/doc/80-63309-1/topic/misc.html#group__misc_1ga55cbdff48d751f2a0227ae4ac106d746). - Parameters: - **licenseKey** – Pointer to license key string. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasObjDet\_DeInit(void) - Deinitialize object detection module. **WARNING:** Must be called once after all FastADAS functions. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - void \*FadasObjDet\_NMS2D\_Create([FadasNMS2DPred\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_n_m_s2_d_pred__t.html#_CPPv416FadasNMS2DPred_t) \*pInList, uint32\_t inListLen, [FadasNMS2DPred\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_n_m_s2_d_pred__t.html#_CPPv416FadasNMS2DPred_t) \*pOutList, uint32\_t outListLen) - Create 2D NMS object. - Parameters: - - **pInList** – Pointer to list containing predictions from object detection network **NOTE:** Must be a multiple of 128 - **inListLen** – Maximum number of elements in input list - **pOutList** – Pointer to list containing filtered output from the NMS algorithm **NOTE:** Must be a multiple of 128 - **outListLen** – Maximum number of elements in output list - Returns: - Handle to 2D NMS object. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasObjDet\_NMS2D\_Destroy(void \*hNMS2D) - Destroy 2D NMS object. - Parameters: - **hNMS2D** – Handle to 2D NMS object. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - [FadasError\_e](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#_CPPv412FadasError_e) FadasObjDet\_NMS2D\_Run(void \*hNMS2D, uint32\_t inCnt, uint32\_t \*pOutCnt, [float32\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/typedef_fadas_8h_1a4611b605e45ab401f02cab15c5e38715.html#_CPPv49float32_t) threshConf = 0.1f, [float32\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/typedef_fadas_8h_1a4611b605e45ab401f02cab15c5e38715.html#_CPPv49float32_t) threshIoU = 0.4f, bool bPreSorted = false) - Run Non-maximum suppression on 2D bounding boxes. - Parameters: - - **hNMS2D** – Handle to 2D NMS object. - **inCnt** – Number of elements in input list for current image. **WARNING:** Input list (pInList) will be modified by the library and so, its contents should not be used after this API call - **pOutCnt** – Pointer to number of output elements for current image. - **threshConf** – Confidence score threshold. Valid range is 0 - 1. - **threshIoU** – IOU (Intersection over Union) threshold. Valid range is 0 - 1. - **bPreSorted** – Flag to indicate whether input list pre-sorted in decreasing order of confidence scores. - Returns: - [FADAS\_ERROR\_NONE](https://docs.qualcomm.com/doc/80-63309-1/topic/enum_fadas_8h_1a280abf443019bfc722ac1158e5fe1013.html#fadas_8h_1a280abf443019bfc722ac1158e5fe1013aea09a4171f0866f38326d7e5323f2d12) — Success. - struct FadasNMS2DPred\_t - NMS prediction structure. - Param confScore: - confidence score corresponding to the bounding box prediction. - Param bbox: - Structure describing bounding box prediction Public Members - [float32\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/typedef_fadas_8h_1a4611b605e45ab401f02cab15c5e38715.html#_CPPv49float32_t) confScore - - [FadasRectf32\_t](https://docs.qualcomm.com/doc/80-63309-1/topic/struct_fadas_rectf32__t.html#_CPPv414FadasRectf32_t) bbox - Last Published: Sep 30, 2024 [Previous Topic Matrix](https://docs.qualcomm.com/bundle/publicresource/80-63309-1/topics/matrix.md) [Next Topic Image Pyramid](https://docs.qualcomm.com/bundle/publicresource/80-63309-1/topics/image-pyramid.md)