Get gpu count and name

Add two new methods to get informations about graphic device
This commit is contained in:
Tino Hager
2018-07-10 21:46:14 +02:00
parent 81d4688b12
commit c021841a52
2 changed files with 24 additions and 0 deletions

View File

@ -49,6 +49,8 @@ extern "C" YOLODLL_API int init(const char *configurationFilename, const char *w
extern "C" YOLODLL_API int detect_image(const char *filename, bbox_t_container &container);
extern "C" YOLODLL_API int detect_mat(const uint8_t* data, const size_t data_length, bbox_t_container &container);
extern "C" YOLODLL_API int dispose();
extern "C" YOLODLL_API int get_device_count();
extern "C" YOLODLL_API int get_device_name(int gpu, char* deviceName);
class Detector {
std::shared_ptr<void> detector_gpu_ptr;