Skip to content

Instantly share code, notes, and snippets.

@jungbin-kim
Last active September 18, 2018 06:22
Show Gist options
  • Save jungbin-kim/af5918737f415684975c0a61d98917df to your computer and use it in GitHub Desktop.
Save jungbin-kim/af5918737f415684975c0a61d98917df to your computer and use it in GitHub Desktop.
영상 처리 관련 노트

OpenCV 를 WebAssembly 로 빌드하기

Get the emsdk repo

git clone https://github.com/juj/emsdk.git

Enter that directory

cd emsdk

Fetch the latest version of the emsdk (not needed the first time you clone)

git pull

Download and install the latest SDK tools.

./emsdk install latest

Make the "latest" SDK "active" for the current user. (writes ~/.emscripten file)

./emsdk activate latest

Activate PATH and other environment variables in the current terminal

source ./emsdk_env.sh

Building OpenCV.js from Source

$ cd opencv
# Build asm.js version
$ python ./platforms/js/build_js.py build_js

# Build wasm version
$ python ./platforms/js/build_js.py build_wasm --build_wasm

detector와 tracker의 차이

  • detector(검출기): 미리 알고있는(학습된) 대상을 입력 영상에서 찾을 수 있는 방법. 아무 영상이나 이미지 1장만 주어져도 대상을 찾을 수 있어야함.
  • tracker(추적기): 일반적으로 동영상의 인접한 영상 프레임들 사이의 시간적, 공간적, 형태적 유사성을 이용하여 대상을 찾는 기술.

TLD - 추적하면서 학습한다

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment