Showing
2 changed files
with
37 additions
and
7 deletions
This diff is collapsed. Click to expand it.
| ... | @@ -51,8 +51,9 @@ | ... | @@ -51,8 +51,9 @@ |
| 51 | <li> | 51 | <li> |
| 52 | <a href="#getting-started">Getting Started</a> | 52 | <a href="#getting-started">Getting Started</a> |
| 53 | <ul> | 53 | <ul> |
| 54 | - <li><a href="#prerequisites">Installation</a></li> | 54 | + <li><a href="#connect-to-server">Connect to Server</a></li> |
| 55 | - <li><a href="#installation">Initial setting</a></li> | 55 | + <li><a href="#installation">Installation</a></li> |
| 56 | + <li><a href="#initial-setting">Initial setting</a></li> | ||
| 56 | </ul> | 57 | </ul> |
| 57 | </li> | 58 | </li> |
| 58 | <li><a href="#usage">Usage</a></li> | 59 | <li><a href="#usage">Usage</a></li> |
| ... | @@ -85,6 +86,8 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 | ... | @@ -85,6 +86,8 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 |
| 85 | * [Nodejs](https://nodejs.org) | 86 | * [Nodejs](https://nodejs.org) |
| 86 | - [express](https://github.com/expressjs/express) | 87 | - [express](https://github.com/expressjs/express) |
| 87 | - [ejs](https://github.com/mde/ejs) | 88 | - [ejs](https://github.com/mde/ejs) |
| 89 | +* [python](https://www.python.org) | ||
| 90 | + * [selenium](https://selenium-python.readthedocs.io) | ||
| 88 | * [Teachable Machine](https://teachablemachine.withgoogle.com) | 91 | * [Teachable Machine](https://teachablemachine.withgoogle.com) |
| 89 | * [Kakao TTS API](https://developers.kakao.com/docs/latest/ko/voice/common) | 92 | * [Kakao TTS API](https://developers.kakao.com/docs/latest/ko/voice/common) |
| 90 | 93 | ||
| ... | @@ -94,27 +97,52 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 | ... | @@ -94,27 +97,52 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 |
| 94 | <!-- GETTING STARTED --> | 97 | <!-- GETTING STARTED --> |
| 95 | ## Getting Started | 98 | ## Getting Started |
| 96 | 99 | ||
| 100 | +### Connect to Server | ||
| 101 | + * https://www.khumwd.ml:8080 에 오시면 바로 실행이 가능합니다 | ||
| 102 | + | ||
| 97 | ### Installation | 103 | ### Installation |
| 98 | 104 | ||
| 105 | +#### (배포 이전)Local 에서 실행하는 방법입니다. | ||
| 106 | + | ||
| 99 | 1. Repository Clone 하기 | 107 | 1. Repository Clone 하기 |
| 100 | ```sh | 108 | ```sh |
| 101 | git clone http://khuhub.khu.ac.kr/MWD/2020-02-OSS-TermProject.git | 109 | git clone http://khuhub.khu.ac.kr/MWD/2020-02-OSS-TermProject.git |
| 102 | ``` | 110 | ``` |
| 103 | -2. NPM 패키지 설치하기 | 111 | +2. 모델 만들기 |
| 112 | + 1. 파이썬 모듈 설치하기(파이썬이 설치된 폴더에서) | ||
| 113 | + ```sh | ||
| 114 | + pip install -r requirements.txt | ||
| 115 | + ``` | ||
| 116 | + 2. 크롬 드라이버 설치<br> | ||
| 117 | + https://chromedriver.chromium.org/downloads 에 접속하여 자신의 크롬 브라우져와 맞는 버전 다운받기 | ||
| 118 | + 3. `google.py`에 크롬드라이버 경로 설정하기 | ||
| 119 | + ```python | ||
| 120 | + chromedriver_path = "경로" | ||
| 121 | + ``` | ||
| 122 | + 4. `google.py`실행하기 | ||
| 123 | + ```sh | ||
| 124 | + python google.py | ||
| 125 | + ``` | ||
| 126 | + 5.모델 만들기<br> | ||
| 127 | + https://teachablemachine.withgoogle.com 에 접속하여 /python/model 에 저장된 크롤링된 이미지들을 넣어 모델을 만든다 | ||
| 128 | + <br><br> | ||
| 129 | +3. 로컬서버 실행하기 | ||
| 130 | + 1. NPM 패키지 설치하기 | ||
| 104 | ```sh | 131 | ```sh |
| 105 | npm install | 132 | npm install |
| 106 | ``` | 133 | ``` |
| 107 | -3. `index.ejs`에 API 넣기 | 134 | + 2. `index.ejs`에 API 넣기 |
| 108 | ```JS | 135 | ```JS |
| 109 | const URL = 'Teachable Machine 모델의 Url을 입력'; | 136 | const URL = 'Teachable Machine 모델의 Url을 입력'; |
| 110 | ``` | 137 | ``` |
| 111 | -4. NPM을 이용해 서버 시작하기 | 138 | + 3. NPM을 이용해 서버 시작하기 |
| 112 | ```sh | 139 | ```sh |
| 113 | npm start | 140 | npm start |
| 114 | ``` | 141 | ``` |
| 142 | + | ||
| 115 | ### Initial setting | 143 | ### Initial setting |
| 116 | 1. Main page 접속<br> | 144 | 1. Main page 접속<br> |
| 117 | - 1.1 https://localhost:3000 으로 Main page에 접속합니다.<br><br> | 145 | + 1.1 로컬서버를 직접 열어 https://localhost:3000 으로 Main page에 접속하거나, https://www.khumwd.ml:8080 를 통해 Main page에 접속합니다.<br><br> |
| 118 | 2. 카메라 허용<br> | 146 | 2. 카메라 허용<br> |
| 119 | 2.1 카메라 권한 요청 메시지가 표시되면 허용을 선택합니다.<br><br> | 147 | 2.1 카메라 권한 요청 메시지가 표시되면 허용을 선택합니다.<br><br> |
| 120 | 148 | ||
| ... | @@ -185,6 +213,8 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 | ... | @@ -185,6 +213,8 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 |
| 185 | <a href="https://devdocs.io/express/">Express</a> | 213 | <a href="https://devdocs.io/express/">Express</a> |
| 186 | · | 214 | · |
| 187 | <a href="https://devdocs.io/node/">Node.js</a> | 215 | <a href="https://devdocs.io/node/">Node.js</a> |
| 216 | + · | ||
| 217 | +<a href="https://selenium-python.readthedocs.io">selenium</a> | ||
| 188 | 218 | ||
| 189 | <a href="https://developers.kakao.com/docs/latest/ko/voice/common">Kakao TTS API</a> | 219 | <a href="https://developers.kakao.com/docs/latest/ko/voice/common">Kakao TTS API</a> |
| 190 | 220 | ||
| ... | @@ -193,7 +223,7 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 | ... | @@ -193,7 +223,7 @@ Teachable Machine 2.0을 이용해 마스크 착용을 유형별로 학습시킨 |
| 193 | ## License | 223 | ## License |
| 194 | 224 | ||
| 195 | <!-- 라이센스 나중에 올리고 링크 수정 필요--> | 225 | <!-- 라이센스 나중에 올리고 링크 수정 필요--> |
| 196 | -GPL-v3.0 라이센스를 적용합니다. 자세한 정보는 [License][license-url]를 확인해주세요.<br> | 226 | +MIT 라이센스를 적용합니다. 자세한 정보는 [License][license-url]를 확인해주세요.<br> |
| 197 | 227 | ||
| 198 | 228 | ||
| 199 | 229 | ... | ... |
-
Please register or login to post a comment