• Stars
    star
    1,485
  • Rank 31,644 (Top 0.7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A very simple Chrome Extension that displays the automated image tags that Facebook has generated for your images

Show Facebook Computer Vision Tags Chrome Extension

Since April 2016, Facebook has been automatically adding alt tags to images you upload that are populated with keywords representing the content of your images:

<img csrc="https://facebook.com/some-url.jpg"
alt="Image may contain: golf, grass, outdoor and nature"
width="316" height="237">

They are labeling your images using a Deep ConvNet built by Facebook's FAIR team.

On one hand, this is really great. It improves accessibility for blind users who depend on screen readers which are only capable of processing text.

But I think a lot of internet users don't realize the amount of information that is now routinely extracted from photographs. Facebook (and Google, Apple, Amazon, etc) can easily tell from your photographs if you have a pet dog, if you collect cameras, if you play golf, if you have children, or if you are just really into sunglasses. There's nothing stopping them from using this information to show you relevant ads just based on photos of you - even if another user uploaded the photo and didn't even directly tag you!

This is a very simple Chrome Extension that I hacked together in a few minutes to make it easy to see the tags that Facebook is automatically applying to you and your friends' photos. Once you install it, all the photos you see on your Facebook timeline will automatically be overlaid with their tags, like this:

The goal is simply to make everyone aware of the kind of information that is routinely extracted from your own images today. This isn't some technology that is 'coming soon', but this is something in wide-spread production use now by every major internet company. You can even learn how to implement this kind of system yourself using widely available open-source software.

Here's some examples of the kinds of things that Facebook detects in your photos:

Objects in your photos

It's possible to tell what kinds of objects are in your photos and identify your interests based on that.

Activities you are doing

Whether you are eating, running, or playing golf, it's possible for an algorithm to tell what you are doing in your photographs.

When and where a photo was taken

You can tell if a photo was taken inside or outside, what the time of day was, what physical landmarks (mountains, trees, water, etc) were around, and so on.

screen shot 2016-12-30 at 4 30 36 pm

Events you are attending

It's even possible to tell which kind of sporting event you are attending.

screen shot 2016-12-30 at 4 35 31 pm

These are just a few examples. See what kinds of things Facebook has found in your own photos!

Installing this Chrome Extension

Option 1: From the Chrome Web Store

  1. Update: Sorry, this is extension not currently available in the Chrome Web Store. Facebook filed a Trademark complaint due to the name of the extension having the word "Facebook" in it, so I had to remove it.

Option 2: From Source

  1. Clone this repo so you have a copy in a folder locally.
  2. Open chrome://extensions in the location or go to Tools > Extensions
  3. Enable Developer mode by checking the checkbox in the upper-right corner.
  4. Click on the button labelled Load unpacked extension....
  5. Select the directory where you cloned this repo to.
  6. Visit Facebook!

Installing in Firefox

Option 1: From the Add-ons website:

  1. Click here and choose "+ Add to Firefox"

Option 2: From Source

  1. Clone this repo so you have a copy in a folder locally.
  2. Open about:debugging URL
  3. Click on the button labelled Load Temporary Add-on.
  4. Select the directory where you cloned this repo to, and select facebook.js
  5. Visit Facebook!

Caveats

  1. This only works for English-speaking Facebook users. I made no attempt to make this work for any other language. Sorry! But you could easily fork this and make it work for a different language. There's not a lot to this.

Press

More Repositories

1

face_recognition

The world's simplest facial recognition api for Python and the command line
Python
52,535
star
2

node-unfluff

Automatically extract body content (and other cool stuff) from an html document
HTML
2,151
star
3

amplify

A Jekyll html theme in the vague style of Medium.com built using Google AMP
CSS
1,872
star
4

face_recognition_models

Trained models for the face_recognition python library
Makefile
346
star
5

image_to_numpy

Load an image file into a numpy array with Exif orientation support. Prevents upside-down and sideways images!
Python
180
star
6

all-podcasts-dataset

A free dataset of (almost) all publicly available podcasts.
127
star
7

medium_to_ghost

Instantly move all your Medium.com content (formatted posts + images) to an open source Ghost blog!
Python
121
star
8

node-pullquoter

Automatically pull interesting quotes out of an article.
CoffeeScript
115
star
9

image_segmentation_examples

Examples of Image Segmentation with Mask R-CNN from PyImageConf 2018
Python
44
star
10

spanish-to-english-translation

Example of building a working Spanish-to-English translation model with Marian NMT
Python
21
star
11

titanic_machine_learning_example

A simple example of how to solve Kaggle's "Titanic: Machine Learning from Disaster" challenge using Python and scikit-learn
Python
12
star
12

pyflight

A Python Wrapper around Google's QPX Express API that supports both asynchronous and synchronous operation.
Python
3
star
13

london_bus_simple_led_sign

a simple london bus arrival sign script to use on a raspberry pi to show a kid how that works
Python
2
star