atnjqt / compassionapp

Repository documenting sample code testing the Instagram/Facebook Basic API functionality for a Docker Composed React-Flask-MongoDB web application to serve as a Proof Of Concept for a Compassion mobile app
0 stars 0 forks source link

Cloud image analysis pipeline #12

Open mbod opened 2 years ago

mbod commented 2 years ago

From images pulled from a timeline (image stored locally? metadata in Mongo?) adapt instagram WWE image analysis code to submit to one or more cloud image coders and store result in Mongo

mbod commented 2 years ago

@atnjqt thinking through the steps here...

Steps:

  1. On login pass token through to flask app for use in backend API. Store (in mongo? encrypted?)
  2. Set off post collection process
    • get user posts (page through results)
    • check if post already processed previous (i.e. in mongo)
  3. Process post
    • focusing on posts that contain images (need to see if there is overlap between user photos and posts with photos)
    • download image to processing hot folder
      • this folder will be watched and run the cloud image rec steps and interact with database
    • one image processed and logged in db filter on tagged features and rank photo as candidate for use
mbod commented 2 years ago

Were we thinking Azure for this?

atnjqt commented 2 years ago

Thanks for the note, some helpful resources for Facebook Graph API for Photos:

atnjqt commented 2 years ago

On quick review, Microsoft Azure provides an npm package for integrating image analysis, we want cognitiveservices-face but there is a whole suite of cog services available.

Microsoft has a few examples for integrating Cognitive Services into React apps as well: