일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- api사용해서 google drive에 폴더만들기
- 아두이노 설치
- esp32
- vi
- opencv resize
- 아두이노
- opencv apt설치
- Google Drive API
- translation
- opencv
- annotating
- opengl
- Winform
- google drive upload
- NodeMCU
- vim명령어
- 정보처리기사후기
- google drive 업로드
- libopencv-dev
- c#
- vim
- apt update
- sshkey
- 정보처리기사
- 고정ip할당
- Python
- rotation
- 우분투 opencv 설치
- ubuntu
- vtk
- 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=..