일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- NodeMCU
- ubuntu
- 정보처리기사후기
- libopencv-dev
- apt update
- vim명령어
- 아두이노
- vtk
- 고정ip할당
- Python
- Winform
- c#
- rotation
- google drive upload
- opencv resize
- esp32
- annotating
- api사용해서 google drive에 폴더만들기
- opengl
- 아두이노 설치
- 우분투 opencv 설치
- google drive 업로드
- sshkey
- translation
- vi
- 정보처리기사
- opencv
- opencv apt설치
- Google Drive API
- vim
- Today
- Total
목록rotation (2)
내가 보려고 만든 블로그

CMakeLists.txtcmake_minimum_required(VERSION 3.10)project(OpenCVExample)find_package(OpenCV REQUIRED)include_directories(${OpenCV_INCLUDE_DIRS}) add_executable(main main.cpp)target_link_libraries(main ${OpenCV_LIBS}) main.cpp#include #include int main() { // read image cv::Mat image = cv::imread("Lenna.png"); // rotated ///////////////////////////////////////////////////////////////// double a..

1.이미지 회전rotated.pyimport cv2 # Reading the imageimage = cv2.imread('Lenna.png') # dividing height and width by 2 to get the center of the imageheight, width = image.shape[:2]# get the center coordinates of the image to create the 2D rotation matrixcenter = (width/2, height/2) # using cv2.getRotationMatrix2D() to get the rotation matrixrotate_matrix = cv2.getRotationMatrix2D(center=center, angle=..