Intel® Compute Stick
Support for Intel® Compute Sticks and Cards
536 Discussions

Can I use OpenCV function in Neural Compute Stick 2 with OpenVINO ?

Yun_
Beginner
300 Views

Hello all,

 

I made Opencv python code on my computer. This is image crop and save code.

And, I'm now programming opencv python code for Neural compute stick 2 in Openvino.

 

I want to run opencv function in neural compute stick 2, but I can't find how to porting.

I'm using opencv function like "matchTemplate" and "minMaxLoc".

 

How can I use opencv function in neural compute stick 2 ?

 

Labels (3)
0 Kudos
2 Replies
Peh_Intel
Moderator
247 Views

Hi Yun,


OpenCV cannot use VPU (Intel® Neural Compute Stick 2) for regular functions. It can only infer Deep Learning networks via Inference Engine backend of DNN module.


#Load model

net = cv2.dnn.readNetFromModelOptimizer(model.xml, model.bin)

 

#Specify the target device as Myriad for NCS2

net.setPreferableTarget(cv2.dnn.DNN_TARGET_MYRIAD)



Regards,

Peh


Peh_Intel
Moderator
94 Views

Hi Yun,


This thread will no longer be monitored since we have provided answer. If you need any additional information from Intel, please submit a new question. 



Regards,

Peh


Reply