묻고 답해요
130만명의 커뮤니티!! 함께 토론해봐요.
인프런 TOP Writers
-
미해결[개정판] 딥러닝 컴퓨터 비전 완벽 가이드
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.
-
미해결OpenCV 강좌 - 컴퓨터 비전
그래픽카드가 없는 환경에서는
안녕하세요그래픽카드가 없는 환경(노트북)에서는 CUDA를 실행할 수가 없는데, 없어도 무방한가요?