duangenquan / YoloV2NCS

This project shows how to run tiny yolo v2 with movidius stick.
148 stars 63 forks source link

Refactoring to use the new ncsdk2 #19

Open cpagravel opened 6 years ago

cpagravel commented 6 years ago

Hello there,

I've refactored the code to use the new ncsdk2 API. Should I make a PR?

duangenquan commented 6 years ago

yes please.

duangenquan commented 6 years ago

do you have an easy way to switch to the new ncsdk2 API? Or will it detect the hardware automatically?

cpagravel commented 6 years ago

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.