Refactoring to use the new ncsdk2
cpagravel opened this issue · 3 comments
Hello there,
I've refactored the code to use the new ncsdk2 API. Should I make a PR?
yes please.
do you have an easy way to switch to the new ncsdk2 API? Or will it detect the hardware automatically?
I'm not sure I understand what you mean by "detect the hardware automatically".
Perhaps you're referring to detecting which version of the API is installed? In that case, no, I don't. It is possible to determine the API version from regex'ing the copyright year in the output of mvNCCheck. (2016 is version 1 and 2017 is version 2). Though I think a nicer solution would be to make a tag with support for ncsdk version 1.
I will make a pull request and you can have a look for yourself. Maybe you have a better implementation in mind.