박선진

add README

Showing 1 changed file with 92 additions and 0 deletions
1 +## 개발 목표
2 +
3 +영상 데이터로부터 화재 및 침입자 감지하여 해당 프레임과 함께 알림이 출력되도록 하는 웹사이트 개발
4 +
5 +## FE/BE 빌드
6 +
7 +1. git clone http://khuhub.khu.ac.kr/2016104123/video-emergency-detection.git
8 +
9 +2. install NPM packages
10 +
11 + - /Back-end/
12 +
13 + ```shell
14 + npm install
15 + npm start
16 + ```
17 +
18 + - /Front-end/
19 +
20 + ```shell
21 + npm install
22 + npm start
23 + ```
24 +
25 +## detection api
26 +
27 +1. api 띄우고자 하는 서버에 python3, pip3 버전 3.6 이상 설치
28 +
29 + - 전체 패키지 업데이트
30 +
31 + ```shell
32 + sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y
33 + ```
34 +
35 + - 재부팅
36 +
37 + ```shell
38 + sudo shutdown -r now
39 + ```
40 +
41 + - OpenSSL 다운로드
42 +
43 + ```shell
44 + wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
45 + tar -zxvf openssl-1.1.1g.tar.gz sudo apt install build-essential
46 + ./config
47 + make
48 + make test
49 + sudo make install
50 + ```
51 +
52 + - Python 빌드 의존성 설치
53 +
54 + ```shell
55 + sudo apt-get update; sudo apt-get install --no-install-recommends make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
56 + ```
57 +
58 + - pyenv 설치
59 +
60 + ```shell
61 + git clone https://github.com/pyenv/pyenv.git ~/.pyenv
62 + echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
63 + echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
64 + echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc source ~/.bashrc
65 + pyenv install 3.7.0
66 + pyenv global 3.7.0
67 + pip3 install --upgrade setuptools
68 + ```
69 +
70 + 2. 필요한 모듈들 설치
71 +
72 + - git clone detection-API
73 +
74 + - model 가져오기(sftp)
75 +
76 + sftp user@ip
77 +
78 + put detection_model-ex-33--loss-4.97.h5
79 +
80 + - 필요한 모듈들 설치
81 +
82 + ```shell
83 + pip3 install --upgrade tensorflow
84 + pip3 install opencv-python
85 + pip3 install keras
86 + pip3 install imageai --upgrade
87 + pip3 install flask
88 + pip3 install flask-restplus
89 + pip3 install cmake
90 + pip3 install dlib
91 + pip3 install face-recognition
92 + ```