본문 바로가기

심화/영상 - 구현 및 OpenCV

Epipolar Geometry OpenCV: Epipolar Geometry OpenCV: Epipolar Geometry Goal In this section, We will learn about the basics of multiview geometry We will see what is epipole, epipolar lines, epipolar constraint etc. Basic Concepts When we take an image using pin-hole camera, we loose an important information, ie depth of the docs.opencv.org 그림에서 보다 시피 단안만을 이용하면 X의 투영되는 점이 OX 선중 어떤 3D 상의 점인지 알기 어렵다. 하지만, 다른 각도의 이미지.. 더보기
OpenCV는 Row-Major, Matlab은 Column-Major 출처: https://stackoverflow.com/questions/8184053/accessing-elements-of-a-cvmat-with-atfloati-j-is-it-x-y-or-row-col Accessing elements of a cv::Mat with at(i, j). Is it (x,y) or (row,col)? When we access specific elements of a cv::Mat structure, we can use mat.at(i,j) to access the element at position i,j. What is not immediately clear, however, whether (i,j) refers to the x,y coord... stackoverf.. 더보기
erode & dilate 참고 자료: https://docs.opencv.org/4.x/d9/d61/tutorial_py_morphological_ops.html OpenCV: Morphological Transformations Goal In this chapter, Theory Morphological transformations are some simple operations based on the image shape. It is normally performed on binary images. It needs two inputs, one is our original image, second one is called structuring element or kernel wh docs.opencv.org C++ 버전 문서:.. 더보기
ORB (Oriented FAST and Rotated BRIEF) 출처: https://docs.opencv.org/3.4/d1/d89/tutorial_py_orb.html OpenCV: ORB (Oriented FAST and Rotated BRIEF) Goal In this chapter, We will see the basics of ORB Theory As an OpenCV enthusiast, the most important thing about the ORB is that it came from "OpenCV Labs". This algorithm was brought up by Ethan Rublee, Vincent Rabaud, Kurt Konolige and Gary R. Bradski docs.opencv.org ※ 본 포스팅의 위의 ORB 설명 문.. 더보기
Optical Flow 출처 : https://docs.opencv.org/master/d4/dee/tutorial_optical_flow.html OpenCV: Optical Flow Prev Tutorial: Meanshift and Camshift Next Tutorial: Cascade Classifier Goal In this chapter, We will understand the concepts of optical flow and its estimation using Lucas-Kanade method. We will use functions like cv.calcOpticalFlowPyrLK() to track featur docs.opencv.org 1. 학습 목표 - Optical Flow 개념을 이해하고, .. 더보기
Fast Algorithm for Corner Detection 출처 : https://docs.opencv.org/master/df/d0c/tutorial_py_fast.html OpenCV: FAST Algorithm for Corner Detection Goal In this chapter, We will understand the basics of FAST algorithm We will find corners using OpenCV functionalities for FAST algorithm. Theory We saw several feature detectors and many of them are really good. But when looking from a real-time applicat docs.opencv.org ※ 본 포스팅은 위의 링크 글.. 더보기
Pillow Utils ▶Pillow를 이용해 이미지를 Grayscale로 바꾸는 방법 - .convert('L')을 이용해 grayscale로 바꿔준다. import cv2 import os import numpy as np from PIL import Image path = 'tmp' imagePaths = [os.path.join(path,file_name) for file_name in os.listdir(path)] for imagePath in imagePaths: # 1) img = Image.open(imagePath).convert('L') img_numpy = np.array(img, 'uint8') #PIL 자체가 0~255 범위인데 'uint8'이 필요한가? # 혹은 numpy array로 바꿔준 다음에 .. 더보기
[OpenCV + WebApp] 환경 Setting 1. 파이썬 패키지 매니저 pip3 설치 $wget https://bootstrap.pypa.io/get-pip.py $sudo python3.6 get-pip.py or $sudo apt-get install python3-pip $sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3 2. 파이썬 '패키지 가상환경' 설치 및 경로 bash 등록 $sudo pip3 install virtualenvwrapper # ~/.bashrc 에 아래의 3라인을 bashrc에 기입 export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.6 #(본인의 파이썬 설치 장소) export WORK_HOME=$HOME/.virtualenvs sourc.. 더보기