| | |
| | | |
| | | void VptDetectWrapper::init() { |
| | | m_param.mode = DEVICE_GPU; |
| | | #if 0 |
| | | m_param.gpuid = m_gpuIdx; |
| | | m_param.hp_recg_config = SY_CONFIG_OPEN; |
| | | m_param.hcp_recg_config = SY_CONFIG_OPEN; |
| | |
| | | m_param.vehicle_pendant_det_recg_config = SY_CONFIG_OPEN; |
| | | m_param.dbPath = const_cast<char *>(m_dbFilePath.data()); |
| | | m_param.log = SY_CONFIG_OPEN; |
| | | #else |
| | | m_param.gpuid = m_gpuIdx; |
| | | m_param.hp_recg_config = SY_CONFIG_CLOSE; |
| | | m_param.hcp_recg_config = SY_CONFIG_CLOSE; |
| | | m_param.vehicle_color_config = SY_CONFIG_CLOSE; |
| | | m_param.vehicle_recg_config = SY_CONFIG_CLOSE; |
| | | m_param.vehicle_pendant_det_recg_config = SY_CONFIG_CLOSE; |
| | | m_param.dbPath = const_cast<char *>(m_dbFilePath.data()); |
| | | m_param.log = SY_CONFIG_CLOSE; |
| | | #endif |
| | | vpt_pic_init(&m_handle, m_param); |
| | | } |
| | | |