김현기

발표자료

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