PYTHON(88)
-
error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'cv::xfeatures2d::SIFT::create' 해결방법
에러 메시지 error: (-213:The function/feature is not implemented) This algorithm is patented and is excluded in this configuration; Set OPENCV_ENABLE_NONFREE CMake option and rebuild the library in function 'cv::xfeatures2d::SIFT::create' sift = cv2.xfeatures2d.SIFT_create() cv2.error: OpenCV(4.1.1) C:\projects\opencv-python\opencv_contrib\modules\xfeatures2d\src\sift.cpp:1207: error: (-213:The funct..
-
함수의 기본형식
함수의 기본형식· 함수를 정의할 때에는 입력부분, 처리부분, 출력부분을 각각 정의해야 합니다.· def는 함수를 만들 때 사용하는 예약어입니다.· 함수명은 사용자가 임의로 지정할 수 있습니다.· 함수명 뒤 괄호() 안의 입력 인수(parameter)는 이 함수에 입력될 입력값을 지정입니다.· : 다음 라인의 들여쓰기(indentation)한 문장은 함수에서 수행할 문장들을 작성합니다.· 함수의 끝에는 return키워드로 함수 종료 및 값을 반환합니다.· 함수와 다른 구문을 구분하기 위해 2줄을 띄어줍니다. (PEP 스타일 가이드) 구분 기본형태 설명 def 예약어 · 함수를 만들 때 사용하는 예약어입니다. 함수 이름 · 함수의 이름을 표현 인수1 입력 형태 · 입력부분 · 파라미터(Parameter) ·..
-
geopandas 설치시 에러 해결방법 - Complete output (1 lines): A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. ERROR: Command errored out with..
오류메시지 Complete output (1 lines): A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable. ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. C:\CodeLab>pip install geopandas Collecting geopandas Downloading https://files.pythonhosted.org/pac..
-
AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d' 해결방법
에러메시지 AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d' sift = cv2.xfeatures2d.SIFT_create() AttributeError: module 'cv2.cv2' has no attribute 'xfeatures2d' 해결방법 1 패키지를 설치합니다. pip install opencv-contrib-python C:\CodeLab>pip install opencv-contrib-python Collecting opencv-contrib-python Downloading https://files.pythonhosted.org/packages/ba/0d/40121ed697f6105b9ffafc0e455e955ba8cbff..
-
nltk 데이터 다운하기
nltk 데이터 다운하기 nltk.download() 실행하면 NLTK Downloader가 실행됩니다. nltk.download() [all] 선택된 상태에서 왼쪽의 [Download] 버튼 클릭 설치 중... update인 경우
-
opencv 하위 버전으로 변경하기
opencv 하위 버전으로 변경하기 · , 의 기존 설치 버전 삭제 후 하위 버전으로 설치합니다. · 4.1.1.26 -> 3.4.2.16 으로 변경합니다. 패키지 설치 버전 확인 C:\CodeLab>pip list | findstr opencv opencv-contrib-python 4.1.1.26 opencv-python 4.1.1.26 C:\CodeLab> 기존 설치 버전 삭제 - 4.1.1.26 pip uninstall opencv-contrib-python pip uninstall opencv-python C:\CodeLab>pip uninstall opencv-contrib-python Uninstalling opencv-contrib-python-4.1.1.26: Would remove: c..