묻고 답해요
156만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
해결됨파이썬 무료 강의 (활용편6) - 이미지 처리 (OpenCV)
resize 동영상 크기 조정 오류
# 동영상 고정 크기로 설정 import cv2 cap = cv2.VideoCapture('video.mp4') while cap.isOpened(): ret, frame = cap.read() if not ret: break frame_resized = cv2.resize(frame, (400, 500)) cv2.imshow('video', frame_resized) if cv2.waitKey(1) == ord('q'): break cap.release() cv2.destroyAllWindows() #cv2.waitKey(1)# 동영상 비율 크기로 설정 import cv2 cap = cv2.VideoCapture('video.mp4') while cap.isOpened(): ret, frame = cap.read() if not ret: break frame_resized = cv2.resize(frame, None, fx = 1.5, fy = 1.5, interpolation = cv2.INTER_CUBIC) cv2.imshow('video', frame_resized) if cv2.waitKey(1) == ord('q'): break cap.release() cv2.destroyAllWindows() #cv2.waitKey(1) Mac OS 사용자 입니다. 마지막 'cv2.waitKey(1)' 코드는 맥의 경우 해당 코드를 추가하지 않았을 때에 python 출력 창이 닫히지를 않아 추가하게 된 코드입니다. cv2.waitKey(1) 추가 -> 실행 시, 출력 영상의 창이 1초 떴다가 사라짐 / 오류 코드 안 뜸cv2.waitKey(1) 삭제 -> 실행 시, 출력 영상의 창이 아예 안 뜸 / 오류 코드 안 뜸 강의 속 강사 님처럼 비율 조정이 된 영상이 정상적으로 출력이 되어야 하는데 저는 그렇지 않아서 혹시 해결방법을 아시는 분이 계실까 질문 해봅니다...ㅠㅠ 오류 코드도 안 뜨고 실행은 되는데 보여져야 할 출력 영상이 보이지 않아 답답합니다... 도와주세요
-
해결됨파이썬 무료 강의 (활용편6) - 이미지 처리 (OpenCV)
동영상 출력 창 크기
해당 강의에서 나오는 동영상 출력 예제를 실행 중인데요애초에 제가 선택한 동영상의 사이즈가 큰 건지 출력 창 자체가 full screen으로 출력이 됩니다 ㅜㅜ혹시 동영상 높이, 너비를 줄이는 방법이 있을까요...
-
미해결OpenCV 를 활용한 명함인식 기능 구현 강좌
jupiter notebook에서 python gui 화면이 안 떠요 (자답 포함)
예제 실습에서 이미지 표시를 해 보면 다음과 같이 python gui 화면이 안 뜨고 응답없음이라고 import cv2def handle_image():imgfile = 'images/sample.png'img = cv2.imread(imgfile, cv2.IMREAD_COLOR) cv2.imshow('image', img) cv2.waitKey(0)cv2.destroyAllWindows()cv2.waitKey(1) if name == '__main__':handle_image() 실습파일 - 실습예제코드(python3.5&opencv3.2)monterey 12.6.6 / conda 23.3.1 / opencv 4.6.0 jupiter notebook 환경이 아닌 일반 python3 로 해당 코드를 실행해도 위와 똑같습니다. 자답)강의자료는 conda install -c menpo opencv 로 해서 opencv 4.6.0 이 설치되는데pip3 install opencv-python 으로 설치하면 opencv 4.7.0 이 설치되고jupiter notebook과 일반 python 환경 모두에서 정상 동작함 pip3 로 설치해도 되는것 맞겠죠?
-
미해결파이썬 무료 강의 (활용편6) - 이미지 처리 (OpenCV)
ret, frame
따옴표를 넣어서 변수 지정에 두개를 넣을 수 있는 개념이 있는건지 아니면ret, frame 이라는 변수자체를 하나의 세트로 봐야하는건지 좀 헷갈려서요 if not ret: 할때 , frame은 빠졌는데 왜 인식이 잘 되는건가요? if not ret, frame: 이렇게 지정해주던지 아니면if not 문을 두개써서 각각 ret, frame 지정해줄거라 생각 했는데 그게아니라서 약간 혼동이 옵니다
-
미해결OpenCV 강좌 - 컴퓨터 비전
강의자료 유료화
강의자료를 다운받으려고 들어가니이렇게 19달러 결제하라고 나오네요 ㅠㅠ 무료 강좌라, 자료 받는데 이정도 돈이 아까운 건 아닌데, 해외 싸이트라, 결제하고, 돈 날릴까봐 걱정되서 질문드립니다. 옛날에 배포되던 자료가 유료로 바꼈고, 여기서 구하는 것이 맞나요?
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
cvtColor 실행 에러
cv2.cvtColor를 하면 아래와 같은 에러가 뜨는데 어떻게 해야할까요? error: OpenCV(4.5.5) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor'
-
미해결파이썬 무료 강의 (활용편6) - 이미지 처리 (OpenCV)
관련이미지 링크
[학습자료] 수업에 필요한 이미지, 동영상 자료 링크입니다. 고양이 이미지 : https://pixabay.com/images/id-2083492/ 크기 : 640 x 390 파일명 : img.jpg 고양이 동영상 : https://www.pexels.com/video/7515833/ 크기 : SD (360 x 640) 파일명 : video.mp4 신문 이미지 : https://pixabay.com/images/id-350376/ 크기 : 1280 x 853 파일명 : newspaper.jpg 카드 이미지 1 : https://pixabay.com/images/id-682332/ 크기 : 1280 x 1019 파일명 : poker.jpg 책 이미지 : https://www.pexels.com/photo/1029807/ 크기 : Small (640 x 853) 파일명 : book.jpg 눈사람 이미지 : https://pixabay.com/images/id-1300089/ 크기 : 1280 x 904 파일명 : snowman.png 카드 이미지 2 : https://pixabay.com/images/id-161404/ 크기 : 640 x 408 파일명 : card.png 퀴즈용 동영상 : https://www.pexels.com/video/3121459/ 크기 : HD (1280 x 720) 파일명 : city.mp4 프로젝트용 동영상 : https://www.pexels.com/video/3256542/ 크기 : Full HD (1920 x 1080) 파일명 : face_video.mp4 프로젝트용 캐릭터 이미지 : https://www.freepik.com/free-vector/c... 파일명 : right_eye.png (100 x 100), left_eye.png (100 x 100), nose.png (300 x 100) 무료 이미지 편집 도구 : https://pixlr.com/kr/ (Pixlr E -Advanced Editor) [ 연락 ] nadocoding@gmail.com * 질문은 댓글을 통해서 해주세요 ^^ Images, Videos by pixabay, pexels : https://www.pixabay.com : https://www.pexels.com Designed by freepik : https://www.freepik.com
-
미해결
colab face-recognition 에러
코랩에서 face recognition을 실행했을 때 원래는 사진이 잘 학습되었습니다. 그런데 어느순간부터 아래와 같은 에러가 발생하는데 어떻게 해결해야 할까요?
-
해결됨OpenCV + WebApp (얼굴 눈 검출 웹앱만들기)
가상환경에서 opencv를 찾을수 없다라고 나옵니다
안녕하세요 선생님~!! workon으로 가상환경을 진입하여 python을 실행뒤 import cv2를 하니 No module named 'cv2'라고 opencv 를 분명히 설치하였음에도 찾을수 없다라고 나옵니다 가상환경이 아닌경우에는 cv2를 import하는데 에러가 발생하지 않는데 가상환경에서만 에러가 발생하는군요... 선생님 강의를 하나도 빠짐없이 쫓아갔음에도 어디서 제가 멀 누락했는지... 몇번을 다시 반복해도 마찬가지 인데 어디가 문제일까요?? 참고로 python버전은 python3.10 입니다
-
미해결C# OpenCV 컴퓨터비전 입문 강좌
강의자료 질문
"OpenCV - 통합본" 관련 자료에는 강의 중 작성하시는 샘플 코드는 첨부 되어 있지 않은 게 맞는건가요?
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
Segmentation 시각화에 문제가 생겨 질문 드립니다.
mmdetection과 오픈소스 데이터셋으로 실습을 하려는 학생입니다. coco format의 데이터를 받아 시각화를 하려하는데, 시각화 과정에서 이미지의 아이디에 대응하는 세그먼트가 나오는 것이 아니라 사전에 설정된 세그먼트가 아래 그림처럼 이미지와 상관없이 나와 이 문제를 해결하고 싶습니다. 이 세그먼트가 어디에 영향을 받는지 찾아보니 mask rcnn 벌룬 실습코드 기준 3개 셀 위인 이 셀의 coco.loadimgs(*)[0] 중 *에 영향을 받는 것으로 추측할 수 있었습니다. (해당 id를 바꾸면 고정된 세그먼트가 다른 걸로 바뀝니다.) 어디서 문제가 생긴지는 알겠으나 코드를 수정하기엔 모르는 것이 많아 이 문제를 어떻게 해결할 지 여쭤보고자 질문 남깁니다. 추가로 1. 시각화 과정에는 문제가 있어도 학습에는 문제가 없을지(시각화 코드를 수정하지 않아도 학습 코드를 돌리면 제대로 학습이 되는지?) 2. Json 파일에 등록된 이미지의 일부만 images 폴더에 있어도 학습이 되는지(데이터셋이 28만장 이미지로 이루어져있어서 colab이 pro 버전임에도 i/o error를 출력함. 그래서 이미지 중 일부 -약 1만장- 만 빼서 학습에 사용한다면?)? 에 대해서도 답변 남겨주시면 감사하겠습니다. 늘 좋은 강의 잘 듣고 있습니다. 감사합니다.
-
미해결[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 - 손흥민을 찾아라!
질문이 있습니다!
윈도우 환경에서 파이참 이용해서 하고 있는데 YOLO 사용해서 object detection 프로그램 작성할 때 오류가 발생합니다.
-
미해결
라즈베리파이 yolov5 설치 질문입니다.
yolov5 를 설치하면서 $ cd yolov5 $ pip install -r requirements.txt까지 실행 하였습니다그런데 running setup.py bdist_wheel for opencv-python 이런 문구가 뜨면서 무한로딩이 지속 됩니다. 검색해봐서 찾아보니 $ pip3 install --upgrade setuptools pip $ pip3 install opencv-python 을 하면 된다길래 똑같이 해보았는데 이번에는 Building wheel for opencv-python (pyproject.toml) ... 이 문구가 뜨면서 무한 로딩이 지속됩니다.. 해결 방법이 없나요 ㅠㅠ
-
미해결
[Python] socketio 사용하여 영상스트리밍 시 추가 명령이 가능한지?
안녕하세요. 현재 파이썬 socketio 를 사용하여 서버-클라이언트를 구성하였는데요 클라이언트에서 카메라의 url 을 보내면 서버에서 카메라의 url 을 받아서 영상을 스트리밍하게 됩니다. 헌데 서버에서 영상을 스트리밍하게되면 서버가 계속 영상정보를 실행시켜서 추가적으로 클라이언트에서 정보를 전달을 못합니다.. (클라이언트에서 정보 보내면 socketio connection error 가 뜹니다) 혹시 이 사안에 대해서 추가적으로 정보를 보낼수 잇는 방법 아시는분이 계실까요? (궁극적으로 카메라가 켜졋다가 끄는 작업이 완료되어야하는데 켜지는건 되는데 끄는게 안됩니다ㅠ) 알려주시면 감사하겟습니다!!
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
opencv import 에러 관련 문의드립니다.
안녕하세요. 제가 yolov5를 Django와 연동하다가 opencv import 에러에 부딛히게 됐는데, 아무리 해도 해결이 안되어 문의드립니다. 에러는 표시는 다음과 같습니다. 혹시 방법이 없을까요???
-
미해결[라즈베리파이] IoT 딥러닝 Computer Vision 실전 프로젝트
openCV 여러개 윈도우 띄우면서 키보드 이벤트 처리
openCV를 이용해서 여러개의 윈도우를 띄우면서 키보드 이벤트 발생 시 지정된 디렉토리에 현재 프레임이 저장되는 코드를 작성중입니다. 아래 코드처럼 작성하였을 때 키보드 이벤트 발생 시 디렉토리에 순서대로 이미지가 저장되지만 프레임이 멈추는 문제가 발생하였는데 혹시 어떤 부분에서 문제가 생겼는지 여쭙고 싶습니다! # print frame image cv2.namedWindow('RealSense1', cv2.WINDOW_AUTOSIZE) cv2.namedWindow('RealSense2', cv2.WINDOW_AUTOSIZE) cv2.imshow('RealSense1', images1) cv2.imshow('RealSense2', images2) #save the frame image when pressed the any button i = 0 while i < 150: if cv2.waitKey(1) != -1: cv2.imwrite(f'C:/Users/user/Desktop/test/c{i}.png' , images1) cv2.imwrite(f'C:/Users/user/Desktop/test/d{i}.png' , images2) i += 1
-
미해결
opencv 회색
opencv 캠이 회색화면으로 출력됩니다. 해결방법이 궁금합니다.
-
미해결
opencv 오류
현재 opencv 4.4.0 사용중이고 CV_HAAR_FIND_BIGGEST_OBJECT | CV_HAAR_SCALE_IMAGE 이부분에서 오류 뜨는데 해결방법 알수 있을까요? 오류 내용은 E0020 식별자 가 정의되어있지 않습니다 라고 뜹니다.
-
미해결[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 - 손흥민을 찾아라!
face_recognition 에서 컴퓨터가 멈추는 듯 합니다.
face_recognition.face_location() 코드에서 컴퓨터가 거의 멈추ㄴ는 거와 다름이 없네요 이런 문제를 피할 수는 있는 방법은 없을까요?
-
미해결[OpenCV] 파이썬 딥러닝 영상처리 프로젝트 - 손흥민을 찾아라!
안녕하세요 질문 있습니다.
dlib을 설치하는데 계속 이런 에러가 떠서 찾아보고 해봤는데 계속 안되는데 왜 그런지 알려주실 수 있을까요.. (ComputerVision) usang-in-ui-MacBook-Pro:~ usang-in$ pip3 install dlib Collecting dlib Using cached https://files.pythonhosted.org/packages/63/92/05c3b98636661cb80d190a5a777dd94effcc14c0f6893222e5ca81e74fbc/dlib-19.19.0.tar.gz Building wheels for collected packages: dlib Running setup.py bdist_wheel for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-wheel-ecxo61rx --python-tag cp36: running bdist_wheel running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 03:02:14) Invoking CMake setup: 'cmake /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_475b6/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 261, in <module> 'Topic :: Software Development', File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 188, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 135, in run self.build_extension(ext) File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 172, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1. ---------------------------------------- Failed building wheel for dlib Running setup.py clean for dlib Failed to build dlib Installing collected packages: dlib Running setup.py install for dlib ... error Complete output from command /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-record-m5vnrry6/install-record.txt --single-version-externally-managed --compile: running install running build running build_py package init file 'dlib/__init__.py' not found (or not a regular file) running build_ext Building extension for Python 3.6.7 (v3.6.7:6ec5cf24b7, Oct 20 2018, 03:02:14) Invoking CMake setup: 'cmake /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6 -DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -DCMAKE_BUILD_TYPE=Release' -- The C compiler identification is unknown -- The CXX compiler identification is unknown -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- broken CMake Error at /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/cmake/data/CMake.app/Contents/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message): The C compiler "/usr/bin/cc" is not able to compile a simple test program. It fails with the following output: Change Dir: /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeTmp Run Build Command(s):/usr/bin/make cmTC_0561c/fast && xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun CMake will not be able to correctly generate this project. Call Stack (most recent call first): CMakeLists.txt:3 (project) -- Configuring incomplete, errors occurred! See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeOutput.log". See also "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/temp.macosx-10.9-x86_64-3.6/CMakeFiles/CMakeError.log". Traceback (most recent call last): File "<string>", line 1, in <module> File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 261, in <module> 'Topic :: Software Development', File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/__init__.py", line 129, in setup return distutils.core.setup(**attrs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup dist.run_commands() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands self.run_command(cmd) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/command/install.py", line 61, in run return orig.install.run(self) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/install.py", line 545, in run self.run_command('build') File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run self.run_command(cmd_name) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command self.distribution.run_command(command) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command cmd_obj.run() File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 135, in run self.build_extension(ext) File "/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py", line 172, in build_extension subprocess.check_call(cmake_setup, cwd=build_folder) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py", line 291, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/tools/python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/build/lib.macosx-10.9-x86_64-3.6', '-DPYTHON_EXECUTABLE=/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1. ---------------------------------------- Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-record-m5vnrry6/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_2/f0m32tsj68sf2fx0l4nhmh7w0000gn/T/pip-install-trs12u8b/dlib/ You are using pip version 10.0.1, however version 20.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command.