- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Im trying to run the demo using this cmd
openvino_env1) chvenb@ubuntu:~/open_model_zoo/demos/face_recognition_demo/python$
python3 face_recognition_demo.py \
-i "/home/chvenb/Downloads/trumptest.mp4" \
-m_fd "/home/chvenb/face_recognition_demo/python/intel/face-detection-retail-0004/FP16/face-detection-retail-0004.xml" \
-m_lm "/home/chvenb/face_recognition_demo/python/intel/landmarks-regression-retail-0009/FP16/landmarks-regression-retail-0009.xml" \
-m_reid "/home/chvenb/face_recognition_demo/python/intel/face-reidentification-retail-0095/FP16/face-reidentification-retail-0095.xml" \
-fg "/home/chvenb/Downloads/Face3" --loop -o trumpvidtest.avi --verbose
and ended up getting this error
Traceback (most recent call last):
File "/home/chvenb/open_model_zoo/demos/face_recognition_demo/python/face_recognition_demo.py", line 32, in <module>
from utils import crop
File "/home/chvenb/open_model_zoo/demos/face_recognition_demo/python/utils.py", line 19, in <module>
from model_api.models.utils import resize_image
ModuleNotFoundError: No module named 'model_api'
Note:
also i have install omz_dir/common/py.
please help me out
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, could you clarify:
- which OpenVINO version are you using?
- which method of installation did you installed the OpenVINO? (Runtime, PyPI, GitHub, etc)
- what Ubuntu version are you using?
Cordially,
Iffa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. Im using 2023.2.0 version of openvino
2. PyPi
3. ubuntu versions is 22.04.3 LTS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I managed to run the face recogtion demo:
Steps that I did:
1. Installed openvino-dev as instructed here
2. Get the OpenVINO OMZ from this repo
3. Install requirements.txt in the demo folder: pip install -r requirements.txt
4. Download 3 models (face-detection-retail-0004, landmarks-regression-retail-0009, face-reidentification-retail-0095): omz_downloader --name modelname
5. Run the python demo: python face_recognition_demo.py -i <path_to_video>/input_video.mp4 -m_fd <path_to_model>/face-detection-retail-0004.xml -m_lm <path_to_model>/landmarks-regression-retail-0009.xml -m_reid <path_to_model>/face-reidentification-retail-0095.xml
Note: add -fg "C:/face_gallery" if you have folder of faces that you want to be recognized.
Refer to this section to see supported models.
Cordially,
Iffa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Intel will no longer monitor this thread since we have provided a solution. If you need any additional information from Intel, please submit a new question.
Cordially,
Iffa

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page