Skip to content

preposterous-kumquat/photoProcessing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Photo Processor

Photo Processing Micro-service for photo upload to Amazon S3 and keyword generation from Clarifai API Lensity main repo

Team

Table of Contents

  1. Team
  2. Usage
  3. Docker Development
    1. Build Image
  4. Local Development
    1. Installing Dependencies
    2. API Key Set-UP
      1. Create api-key.js
      2. S3 access keys
      3. Clarifai
  5. Contributing

Usage

  • POST /photoProcessor/upload/:id Web server from Lensity sends POST /photoProcessor/upload/:id request to photo-processor service. Multer looks for the form data name attribute 'photo' and a save to local disk storage. Photo is scraped for GPS metadata, saved to S3 and then send to Clarifai AI to generate list of keywords associated with the photo.

  • POST /photoProcessor/validPhoto Checks the if uploaded photo is in a valid format

Docker Development

Build Image

In root folder run:

docker build -t photo-processor:0.1 .

Local Development

Installing Dependencies

From within the root directory

npm install
brew install graphicsmagick
brew install imagemagick
nodemon

API Key Set-Up:

Create api-key.js

  • Copy api-key-sample.js and rename to api-key.js

S3 access keys

  • Set-up S3 account
  • Obtain access keys, bucket and region
  • Update api-key.js

Clarifai

  • Obtain access keys Clarifai
  • Update api-key.js

Contributing

See CONTRIBUTING.md for contribution guidelines.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published