OpenCV6 OpenCV 설치 OpenCV Install * Ubuntu 20.04 OpenCV version : 4.6.0 or 4.5.5 0. 기존 설치한 opencv 삭제 https://doongdoongeee.tistory.com/107 Ubuntu에서 기존 설치된 OpenCV 삭제 및 재설치 $ pkg-config --modversion opencv 명령어를 통해 현재 설치된 opencv의 버전을 확인하자. $ sudo apt-get purge libopencv* python-opencv $ sudo find /usr/local/ -name "*opencv*" -exec rm {} \; 위의 명령어를 진행하는데 삭제가 되 doongdoongeee.tistory.com sudo find /usr/local/ -name "*opencv*" -exec rm.. 2023. 8. 21. [OpenCV] 이미지 데이터 타입 확인 및 변경 * 주요 데이터 타입 종류 uint8 : cv2.imread() 함수를 통해 읽은 경우 float32 : pytorch tensor를 numpy matrix로 바꾼 경우 * 데이터 타입 확인(Python) print(image.dtype) * 데이터 타입 변경 방법 - float32를 uint8로 J = I*255 J = J.astype(np.uint8) - uint8을 float32로 image = image.astype(np.float32) image /= 255. * Reference https://stackoverflow.com/questions/53235638/how-should-i-convert-a-float32-image-to-an-uint8-image How should I convert .. 2023. 7. 22. fatal error: opencv2/core/core.hpp: No such file or directory * Environment Ubuntu 20.04 Ros Noetic * Solution sudo ln -s /usr/include/opencv4/opencv2 /usr/include/opencv2 https://askubuntu.com/questions/1256279/make-opencv2-opencv-hpp-not-found make opencv2/opencv.hpp not found I am trying to build fastfusion from this repo: https://github.com/tum-vision/fastfusion . In the installation step, after running CMake ., I have to run make. But the make command.. 2023. 6. 1. cmake error "Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found." Solution * Error message CMake Error at /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake:113 (message): Project 'cv_bridge' specifies '/usr/include/opencv' as an include dir, which is not found. It does neither exist as an absolute directory nor in '${{prefix}}//usr/include/opencv'. Check the issue tracker 'https://github.com/ros-perception/vision_opencv/issues' and consider creating a ticket.. 2023. 5. 26. 이전 1 2 다음