Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Can i help me to run own code using NCS2

idata
Employee
966 Views

https://github.com/yehengchen/SmartCar-FaceRecognition

 

In my case. i using GPU to run my code before.

 

Now i want to run my code using NCS2 to real time face recognition.

 

Can you let me know how to using NCS2 to run my code.

 

And details code can see the identify_face_video.py file in my github.

 

Thanks.
0 Kudos
3 Replies
idata
Employee
581 Views

Hi @bigfoottt

 

Since you're using the NCS2, you will need to use the OpenVINO toolkit. You should be able to convert your Tensorflow FaceNet model using the Model Optimizer included in the toolkit. Take a look at the following section in the documentation: https://docs.openvinotoolkit.org/latest/_docs_MO_DG_prepare_model_convert_model_tf_specific_Convert_FaceNet_From_Tensorflow.html

 

I hope this information is helpful.

 

Best Regards,

 

Sahira
0 Kudos
idata
Employee
581 Views

I also have the NCS1, i want to using the NSC1 to run facenet + mtcnn.

 

I converted the facenet_celeb_ncs.graph and downloaded the ncappzoo/tensorflow/facenet demo.

 

The demo is no multi-face recognition support, so i want to using my code.

 

But i don't know how to import ncs1 devices.

 

Do you have any idea how i can use it to run my code.

 

Thanks.
0 Kudos
idata
Employee
581 Views

Hi @bigfoottt

 

I apologize if I misunderstood your question, but are you asking how to open the NCS device in your own code? If so, here is a code snippet (in C++ on how you would open the NCS device) so you can add this in your code to call the NCS. Please let me know if this was helpful.

 

//Try to open the NCS device via the device name

 

retCode = mvncOpenDevice(devName, &deviceHandle);

 

if (retCode != MVNC_OK)

 

{ // failed to open the device.

 

printf("Error - Could not open NCS device.\n");

 

printf(" mvncStatus value: %d\n", retCode);

 

exit(-1);

 

}

 

Best Regards,

 

Sahira
0 Kudos
Reply