목록분류 전체보기 (19)
what i learned
이미지에서 특징점(keypoint)를 찾아서 물체를 추적하거나 인식한다. 좋은 특징점의 조건으로는 코너점(corner point)이 사용되어서 대부분의 물체 추적 알고리즘에서는 corner 검출을 사용한다. 특징점을 찾는 기본적인 방법으로는 작은 윈도우를 조금씩 이동시키면서 코너점일 경우 모든 방향으로 영상 변화가 크다는 것을 활용한다. [종류] 0. Moravec 1. Harris Corner 2. SIFT 2. FAST Corner 3. BRIEF 4. ORB 5. FLANN, AKAZE... 0. Moravec 각 픽셀위치를 수직, 수평, 좌우 대각선 방향으로 픽셀을 움직이면서 코너를 확인 1. Harris corner Moravec의 알고리즘을 보완 4방향이 아닌 2방향 X, Y 방향만 계산하고 ..
카메라에 calibration이 필요한 이유: 링크 calibration code import cv2 import numpy as np image_width, image_height = 640, 480 capture = cv2.VideoCapture(1) capture.set(cv2.CAP_PROP_FRAME_WIDTH, 640) capture.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) def calibrate_image(src): global image_width, image_height # calibrate_mtx와 dist 각자 카메라에 맞는 mtx로 변경해 줘야 한다. calibrate_mtx = np.array([ [ 350.354184, 0.0, 328.104147], [..
1. express 프로젝트 생성하기 npm 전역설치 $ npm i -g express-generator $ express 프로젝트명 생성한 프로젝트에 들어가서 $ cd 프로젝트 서버를 돌리기 위해 필요한 것 설치 $ npm i 서버 계속 돌리기 위한 패키지 설치 $ npm install -D nodemon +) nodemon을 설치했다면 package.json 파일에서 nodemon으로 수정해야한다. "scripts": { "start": "nodemon ./bin/www" }, 2. 필요한 폴더 및 파일 생성하기 1) .env 파일 생성 (환경변수를 관리하는 파일) DATABASE = 데이터베이스명 PASSWORD = MySQL비밀번호 USERNAME = root HOST = localhost//lo..
1. 가상환경에서 시작하기 $ conda activate 가상환경명 2. 데이터를 넣을 DB 만들기 MySQL 접속 $ mysql -u root -p 비밀번호 입력 후 DB 생성하기 (비밀번호는 창에서 보이지 않는다..!) CREATE DATABASE DB명 CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; +) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; 명령어는 한국어와 이모지 지원 기능이지만 자동으로 지원될 수도 있음 3. 클론하기 $ git clone 클론하려는_깃주소 4. python package 설치 $ pip install django $ pip install mysqlclient $ pip install ..