머신러닝 & 딥러닝/컴퓨터 비전 16

[OpenCV with Python] - 16. 두 점의 좌표를 이용해 무한한 직선 그리기 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 두 점의 좌표를 통해 a, b 계산 y = ax + b 꼴의 직선의 방정식에서 (x1, y1), (x2, y2)의 두 점 좌표가 주어졌을 때 a, b 값을 구하는 식은 다음과 같습니다. def cal_ab(x1, y1, x2, y2): # y = ax + b a = (y2 - y1)/(x2 - x1) b = (x2*y1 - x1*y2).. 머신러닝 & 딥러닝/컴퓨터 비전 2022. 7. 27.
[OpenCV with Python] - 15. 인물 사진 9000장 얼굴 인식 해보고 잘라서 저장해보기 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com https://seokii.tistory.com/111 [ML 논문 공부 - 004] Occlusion aware Facial Landmark Detection based Facial Expression Recognition with Face Mask 마스크 인식 관련 논문을 찾아보다가 발견해 읽게 된 논문입니다. 2021년 3월 IP.. 머신러닝 & 딥러닝/컴퓨터 비전 2022. 3. 17.
[OpenCV with Python] - 14. 히스토그램 평활화, 이퀄라이즈(histogram equalize) : cv2.equalizeHist() 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 이번에는 cv2.equalizeHist() 를 사용하여 영상(이미지)의 히스토그램을 평활화 시키고, 간단하게 그려보도록 하겠습니다. 히스토그램 평활화(equalize) 히스토그램의 평활화는 명암 값의 분포가 한쪽으로 치우친 영상을 고르게 분포시켜주기 위한 방법을 의미합니다. 평활화를 통해 영상(이미지)의 명암 대비를 증가시켜 인지도를 .. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 11. 10.
[OpenCV with Python] - 13. 히스토그램 계산 및 그리기 : cv2.calcHist() 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 이번에는 cv2.calcHist()를 사용하여 영상(사진)의 히스토그램을 계산하고 matplotlib로 간단하게 히스토그램을 그려보도록 하겠습니다. 함수 설명 1. cv2.calcHist(image, channel, mask, histSize, ranges, .. ) -> ret image : 영상, 이미지 (배열) channel : .. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 10. 24.
[OpenCV with Python] - 12. 행렬 덧셈과 곱셈을 이용한 이미지(영상) 합성/합치기 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 저번 포스팅에서는 이미지(영상)의 크기 변환에 대해서 포스팅 했었습니다. 이번에는, 행렬 덧셈과 곱셈을 이용해서 영상 합성을 해보도록 하겠습니다. 함수 설명 1. cv2.add(src1, src2, dst, mask, dtype) -> dst src1 : 입력할 첫 번째 영상 혹은 스칼라 src2 : 입력할 두 번째 영상 혹은 스칼라 .. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 9. 26.
[OpenCV with Python] - 11. 이미지(영상)의 크기 변환(확대 및 축소) : cv2.resize() 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 이번 포스팅에서는 OpenCV의 cv2.resize() 함수를 사용하여 이미지의 크기를 조절해보도록 하겠습니다. 함수 설명 1. cv2.resize(src, dsize, dst, fx, fy, interpolation) -> dst src : 입력 영상(이미지) dsize : 결과 영상(이미지)의 크기, (w, h) 형태로 입력. (0.. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 9. 26.
[OpenCV with Python] - 10. 이미지(영상)의 밝기 조절 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com 지난 포스팅에서는 관심 영역을 지정하고 값을 확인하는 것을 해봤고, 이번에는 행렬의 덧셈, 뺄셈을 통한 이미지(영상)의 밝기 조절을 해보도록 하겠습니다. OpenCV의 saturation연산 OpenCV에서는 행렬의 연산 시 화소 값이 0 미만이거나 255 이상일 경우 saturation 방식을 취합니다. ex) 100 + 300 = .. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 9. 25.
[OpenCV with Python] - 09. 관심 영역(ROI) 지정 및 값 확인 코드 및 이미지 : https://github.com/Seokii/Study_OpenCV GitHub - Seokii/Study_OpenCV: study about OpenCV study about OpenCV. Contribute to Seokii/Study_OpenCV development by creating an account on GitHub. github.com OpenCV의 사용과 함께 영상(이미지)의 관심영역(Region Of Interest)을 설정하고 값을 확인 및 영역 표시를 해보도록 하겠습니다. ROI (Region Of Interest) ROI는 이미지혹은 영상에서 관심있는 영역을 뜻합니다. 특정 오브젝트, 특이점을 찾는 것을 목표로 할 때 주로 사용합니다. ROI는 다음과 같이 .. 머신러닝 & 딥러닝/컴퓨터 비전 2021. 9. 25.