You are browsing a read-only backup copy of Wikitech. The live site can be found at


From Wikitech-static
Revision as of 10:29, 23 June 2016 by imported>AbdealiJK (Create page with instructions to install)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page holds information about the file-metadata application which is my GSoC 2016 project in Wikimedia/pywikibot. The crux of the project is to categorize images on wikimedia using a smart bot, mainly with exif data and computer vision techniques. It is a revamp of the older catimages script which was being run by commons:User:DrTrigonBot.

We've run some of the analysis on a large number of files on wikimedia, and the analysis of those results can be found at commons:User:AbdealiJKTravis/logs.

Installation on ToolsLab

To install the application on Tools Lab, we first create a python virtual environment so that pip can be used to install packages. Let us make a virtualenv in the venv folder:

$ virtualenv venv

Once the virtualenv has been enabled, we activate it using:

$ source venv/bin/activate

If a virtual environment is active, the name of the virtual env is added to the beginning of the command line prompt (Example: (venv)abdealijk@tools-bastion-03:~$ ). Once the virtual environment is active, we update pip (To be able to use python wheels for a faster installation) and install file-metadata using:

(venv)$ pip install -U pip
(venv)$ pip install file-metadata

Now you can use all the analysis features provided by file-metadata. For further information about using file-metadata visit commons:User:AbdealiJK/file-metadata#Usage.