김현기

발표자료

1 -# KindOfYourDog 1 +<!--
2 -AWS Rekognition을 이용한 강아지 종류 분석입니다. 2 +*** Thanks for checking out this README Template. If you have a suggestion that would
3 +*** make this better, please fork the repo and create a pull request or simply open
4 +*** an issue with the tag "enhancement".
5 +*** Thanks again! Now go create something AMAZING! :D
6 +***
7 +***
8 +***
9 +*** To avoid retyping too much info. Do a search and replace for the following:
10 +*** github_username, repo, twitter_handle, email
11 +-->
3 12
4 -# 기술
5 -Frontend - html, css, javascript
6 13
7 -Backend - Nodejs
8 14
9 -AWS - EC2, S3
10 15
11 -이미지 분석 - AWS Rekognition
...\ No newline at end of file ...\ No newline at end of file
16 +
17 +<!-- PROJECT SHIELDS -->
18 +<!--
19 +*** I'm using markdown "reference style" links for readability.
20 +*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).
21 +*** See the bottom of this document for the declaration of the reference variables
22 +*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.
23 +*** https://www.markdownguide.org/basic-syntax/#reference-style-links
24 +-->
25 +
26 +<!-- PROJECT LOGO -->
27 +<br />
28 +<p align="center">
29 + <a href="http://khuhub.khu.ac.kr/2016101156/OSS-Project.git">
30 + <img src="images/puppy_logo.jpg" alt="Logo" width="80" height="80">
31 + </a>
32 +
33 + <h3 align="center">KindOfYourDog</h3>
34 +
35 +
36 +<!-- ABOUT THE PROJECT -->
37 +## About The Project
38 +
39 +[![screenshot.jpg][screenshot.jpg]](www.kindofyourdog.tk)
40 +
41 +* This project is a service that receives a photo of a puppy and notifies the user of the puppy's type using AWS Rekognition.
42 +
43 +
44 +### Built With
45 +
46 +* [nodejs]
47 +* [AWS]
48 +* [HTML,CSS,JS]
49 +
50 +
51 +
52 +<!-- GETTING STARTED -->
53 +## Getting Started
54 +
55 +To get a local copy up and running follow these simple steps.
56 +
57 +### Prerequisites
58 +
59 +This is an example of how to list things you need to use the software and how to install them.
60 +* npm
61 +```
62 +npm install npm@latest -g
63 +```
64 +
65 +### Installation
66 +
67 +1. Clone the repo
68 +```
69 +git clone http://khuhub.khu.ac.kr/2016101156/OSS-Project.git
70 +```
71 +2. Install NPM packages
72 +```
73 +npm install
74 +npm install express-generator
75 +npm install formidable
76 +npm install aws-sdk
77 +```
78 +3. Fill your aws-configuration accessId, secretKey.
79 +
80 +<!-- LICENSE -->
81 +## License
82 +
83 +Distributed under the Apache License 2.0. See `LICENSE` for more information.
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -6,22 +6,15 @@ var cookieParser = require('cookie-parser'); ...@@ -6,22 +6,15 @@ var cookieParser = require('cookie-parser');
6 var logger = require('morgan'); 6 var logger = require('morgan');
7 var fs = require('fs') 7 var fs = require('fs')
8 var AWS = require('aws-sdk'); // AWS 의 서비스를 이용하기 위해 사용 8 var AWS = require('aws-sdk'); // AWS 의 서비스를 이용하기 위해 사용
9 -const { Rekognition } = require('aws-sdk');
10 9
11 // 이미지를 저장할 버킷 이름 10 // 이미지를 저장할 버킷 이름
12 var bucketName = "kindofyourdogimage"; 11 var bucketName = "kindofyourdogimage";
13 // s3 버킷의 엔드 포인트 12 // s3 버킷의 엔드 포인트
14 var bucketRegion = 'ap-northeast-2'; 13 var bucketRegion = 'ap-northeast-2';
15 // access key 14 // access key
16 -<<<<<<< HEAD 15 +var accessId= 'your_accessId';
17 -var accessId= 'yourId';
18 // access secret key 16 // access secret key
19 -var secretKey = 'yoursecretId'; 17 +var secretKey = 'your_secretKey';
20 -=======
21 -var accessId= 'AKIAQVXKGU466IQYEGRN';
22 -// access secret key
23 -var secretKey = '0FrMPdZR6+AkMkabAyPZWrnsVVi9EaI9/IdrWKCm';
24 ->>>>>>> beb3f2225bf44a431a723a3c068f6a9c3f10686b
25 // AWS Cognito 인증 18 // AWS Cognito 인증
26 AWS.config.update({ 19 AWS.config.update({
27 region:bucketRegion, 20 region:bucketRegion,
......