Skip to content

Latest commit

 

History

History
56 lines (37 loc) · 5.27 KB

UPLOAD.md

File metadata and controls

56 lines (37 loc) · 5.27 KB

Upload Post Activity

IMAGE ALT TEXT HERE

Click Here To Watch The Video Demonstration

Description

The user can upload a post by selecting the floating upload icon present in the main feed's bottom right corner. The image icon on the upload post activity opens up the user’s gallery and allows them to select an image and loads it up in the upload screen. User can add a description to the image in the form of a text and then go forward with it. This uploaded post is visible to all your friends in their feed as well as on your profile. We also use the Image labeling tool to detect all the objects present in the image and use the results as tags for the image. Along with using that we use Face Detection model provided by the Google's Firebase Machine Learning Kit to detect all the faces present in a picture and prompt the user to tag them.

Image Labeling (Inbuilt)

Image labeling gives you insight into the content of images. When you use the API, you get a list of the entities that were recognized: people, things, places, activities, and so on. Each label found comes with a score that indicates the confidence the ML model has in its relevance.
We are implementing the Image Labeling tool to generate the dataset for our machine algorithm to work on. We are using it at the time of upload to identify all the entities present in the picture and categorize them into 3 groups based on the level of confidence.

  1. Tier 1
  2. Tier 2
  3. Tier 3

At the time of collecting the lables provided by the API we are also filtering out some unwanted lables that are not needed and are unsuitable for our app. After filtering all the lables and sorting them into different tiers based on their confidence value, we save those labels in the post in order to add them into the users who like the post lateron and we add these lables in the users tagged and the user uploading in various ratios to ensure we get a full understanding of what a user likes and what he doesn't like at the end of it. We are using the Cloud version of the API which gives us more accurate results and a wider array of lables.
For more information about the Api - Click Here

Face Detection (Inbuilt)

With ML Kit's face detection API, you can detect faces in an image, identify key facial features, and get the contours of detected faces. Note that the API detects faces, it does not recognize people.
We are implementing the Face Detection tool to generate the dataset for our machine algorithm to work on and to prompt users to tag people that might be in the picture. We detect faces at the time of upload and then identify all the faces and the coordinates of the rectangular box enclosing the face. We use this data to ask the users to tag each face which helps us build realtions between users who tag each other which feeds our Machine Learning Algorithm. We also identify weather the faces are smiling or not and if the majority of the faces are smiling (above 75% ) then we conclude that the picture is a happy picture or else we conclude that its a sad picture or we are unsure about the emotion of the picture. We are using the On App version of this API.
For more information about the Api - Click Here

Cloud Function - uploadPost

We have also created a cloud fucntion to create all the appropriate directories in the backend parallely and upload the picture to all the feeds. We create a entry of the post in the people who are tagged as well. We also save all the revelent tags based on their tier level in the user who uploaded the post and all the people who are tagged in the post. We also save the picture in the Firebase Storage with this. All this takes a couple of secconds to do and thus the post is not visible for a few seconds even after the post is uploaded successfully.

Tagging People

We give you an option to tag everyface identified by Face Detect API. You can tag anybody except you in the photo and you also have to tag novody for a face by clicking on none. To search a username there is a search bar below that helps you find the correct person. The person tagged will be able to see the photo in their tagged section as well.