Closed xiuxiusen closed 2 years ago
Hello @xiuxiusen. You can install dlib by using this command:
pip3 install dlib
To build Open Model Zoo demos, you can refer to Build the Demo Applications on Linux.
@zulkifli-halim The command doesn't work.I met some error when I run the command. ERROR:Could not find a version that satisfied the requirement dlib(from versinos: none) ERROR: No matching distribution found for dlib
@xiuxiusen try to run these commands before installing dlib:
python3 -m pip install --upgrade pip
pip3 install -U pip
pip3 install cmake
Then rerun the command to install dlib:
pip3 install dlib
I have solved the question through reinstalling openvino.And I have successfully build open_model_zoo..And the directory omz_demos_build occurs. I use the intel realsense D435i and NCS2. I follwoed this link https://docs.openvino.ai/latest/omz_demos_human_pose_estimation_demo_cpp.html. Then I open ~/omz_demos_build/aarch64/Release in the Terminal. I run the commend ./human_pose_estimation_demo -i /dev/video -m ~/intel/human-pose-estimation-0001/FP16/human-pose-estimation-0001.xml -d MYRIAD And it says connect:Connection refused. Does anyone meet the same question? Thanks for any help what so ever! More than happy to provide further info if required.
Can you narrow the problem down further, please? Which "connection" gets refused? Can you share log-files or console-output?
Is it related to NCS2 (e.g. missing to install udev-rules for the MyriadX NCS2)? Is it related to the RealSense device - e.g. will it work with a local video-file or a "standard Logitec USB-webcam"?
@brmarkus Maybe I have found the answer.First I want to ask a question.Is the open_model_zoo should have the same vision with openvino?If so,things become clear.The vision of my openvino is 2021.3 but the open_model_zoo I run is 2020.4.So I want to use openvino 2020.4.And I have found an approach installing openvino on my ubuntu mate 2020.4 system. But i'm not sure whether it will work well.Do you have a better method? The command I use to install openvino 2020.4 is here. git clone -b 2020.4 https://github.com/openvinotoolkit/openvino.git cd openvino git submodule update --init --recursive mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release \ -DENABLE_SSE42=OFF \ -DTHREADING=SEQ \ -DENABLE_GNA=OFF .. && make I will reply to you once I finished installing.Thanks for your reply.
I met some errors when i run the code "make -j 4"
/home/xiuxiusen/openvino/inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp: In member function ‘std::unique_ptr~~~^~~
/home/xiuxiusen/openvino/inference-engine/thirdparty/ade/sources/ade/source/execution_engine.cpp:141:21: note: remove ‘std::move’ call
cc1plus: all warnings being treated as errors
make[2]: [inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/build.make:132: inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/source/execution_engine.cpp.o] Error 1
make[1]: [CMakeFiles/Makefile2:2858: inference-engine/thirdparty/ade/sources/ade/CMakeFiles/ade.dir/all] Error
You might revert back to your previous state where you wrote "solved the question through reinstalling openvino.And I have successfully build open_model_zoo" - using Open-Model-Zoo also in version "2021.3"? And then focus on the connection-refused problem.
Closing, please re-open if additional assistance is needed.
~~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/include/dlib_face.hpp:26:57: error: expected ‘,’ or ‘...’ before ‘pos_model’ 26 | extern int eye_func(cv::Mat temp, dlib::shape_predictor pos_model, dlib::frontal_face_detector detector); | ^~~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo/include/dlib_face.hpp:27:8: error: ‘dlib’ does not name a type 27 | extern dlib::shape_predictor loadModel(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/include/dlib_face.hpp:27:8: error: ‘dlib’ does not name a type 27 | extern dlib::shape_predictor loadModel(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo/include/dlib_face.hpp:28:8: error: ‘dlib’ does not name a type 28 | extern dlib::frontal_face_detector loadDetector(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/include/dlib_face.hpp:28:8: error: ‘dlib’ does not name a type 28 | extern dlib::frontal_face_detector loadDetector(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/main.cpp: In function ‘int main(int, char)’: /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/main.cpp:389:2: error: ‘dlib’ has not been declared 389 | dlib::shape_predictor pos_model = loadModel(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/main.cpp:390:2: error: ‘dlib’ has not been declared 390 | dlib::frontal_face_detector detector = loadDetector(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo/main.cpp: In function ‘int main(int, char)’: /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo/main.cpp:255:2: error: ‘dlib’ has not been declared 255 | dlib::shape_predictor pos_model = loadModel(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo/main.cpp:256:2: error: ‘dlib’ has not been declared 256 | dlib::frontal_face_detector detector = loadDetector(); | ^~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/main.cpp:599:25: error: ‘pos_model’ was not declared in this scope 599 | eye_func(curr_frame, pos_model, detector); | ^~~~~ /home/xiuxiusen/intel/open_model_zoo/demos/human_pose_estimation_demo_meng/main.cpp:599:36: error: ‘detector’ was not declared in this scope; did you mean ‘detection’? 599 | eye_func(curr_frame, pos_model, detector); | ^~~~ | detectionI have tied to install dlib in my system from this link.But it made no sense. https://stackoverflow.com/questions/50545025/how-can-i-add-dlib-in-cmake-with-findpackage