`catimages` from `compat` should be moved to be a separate python package that depends on pywikibot `core`, and a whole lot of other libraries.
Checklist for dependencies of catimages.py
| Package name | PYPI package | Ubuntu package | Py2.6 | Py3.5 |
| numpy | [[https://pypi.python.org/pypi/numpy|yes]] | | | yes | yes ||
| scipy | yes [1] | | [[https://pypi.python.org/pypi/scipy|yes]] | | yes | yes ||
| cv | deprecated and replaced by cv2 |
| cv2 | | yes for py2 [2]| yes | | yes for [[http://packages.ubuntu.com/trusty/python/python-opencv|py2]] | yes || yes |
| pyexiv2 | deprecated by gexiv2 ||
| gexiv2 (replaces pyexiv2) | | yes, with gi[3]| yes [[http://packages.ubuntu.com/trusty/gir1.2-gexiv2-0.10|gi]] | yes || yes |
| gi (new req for gexiv2) | | yes [4,5] | yes | yes | | yes ([[http://packages.ubuntu.com/trusty/python/python-gi|py2]], [[http://packages.ubuntu.com/trusty/python3-gi|py3]]) | yes | yes |
| gtk | | yes [6,7] | yes | yes | | yes ([[http://packages.ubuntu.com/trusty/python/python-gtk2|py2]], [[http://packages.ubuntu.com/trusty/gir1.2-gtk-2.0|py3]]) | yes | yes |
| rsvg | | yes [8,9] | yes | yes | | yes ([[http://packages.ubuntu.com/trusty/python-rsvg|py2]], [[http://packages.ubuntu.com/trusty/gir1.2-rsvg-2.0|py3]]) | yes | yes |
| cairo | | yes [10,11]| | yes ([[http://packages.ubuntu.com/trusty/python-cairo|py2]], [[http://packages.ubuntu.com/trusty/python3-cairo|py3]]) | yes | yes |
| magic | yes [12] | | [[https://pypi.python.org/pypi/python-magic|yes]] | | yes | yes ||
| jseg | This is currently a zip file. Pypi pkg needed |
| jseg/jpeg-6b | Can jpeg be used| Can Pillow be used instead ? jpeg-6b seems to be a zip |
| _music21 | Do we still need the patch ? If not, If not use [13] |use [[https://pypi.python.org/pypi/music21|pypi]] |
| opencv (self written) | Do we still need this ? |
| pydmtx | yes [14] | | | || [[https://pypi.python.org/pypi/pydmtx|yes]] | | | |
| py_w3c | yes [15] | | | || [[https://pypi.python.org/pypi/py_w3c|yes]] | | | |
| _zbar | Use a new lilibrary for barcodes. Not been updated since 2010 |
| _bob | Do we still need the patch ? If not use [16] |[https://pypi.python.org/pypi/bob|pypi]] |
| xbob_flandmark | yes [17 or 18] | | | | [[https://pypi.python.org/pypi/xbob.flandmark|yes]] or use [[https://pypi.python.org/pypi/bob.ip.flandmark|newer implementation]] | | | |
| pywt | yes [19] | | | || [[https://pypi.python.org/pypi/PyWavelets|yes]] | | | |
| slic | This is currently a zip file. Pypi pkg needed |
| yaafelib | No pypi pkg. Use [[https://github.com/bmcfee/librosa[20]|librosa]] as alternative maybe? -- as it has pypi ||
| matplotlib | yes [21] | | [[https://pypi.python.org/pypi/matplotlib|yes]] | | yes | yes ||
| pycolorname | yes [22] | | yes | yes |
[0] - https://pypi.python.org/pypi/numpy
[1] - https://pypi.python.org/pypi/scipy
[2] - http://packages.ubuntu.com/trusty/python/python-opencv
[3] - http://packages.ubuntu.com/trusty/gir1.2-gexiv2-0.10
[4] - http://packages.ubuntu.com/trusty/python/python-gi
[5] - For python2 http://packages.ubuntu.com/trusty/python/python-gtk2
[6] - For python3 http://packages.ubuntu.com/trusty/python3-gi
[7] - For python3 using GI http://packages.ubuntu.com/trusty/gir1.2-gtk-2.0
[8] - For python2 http://packages.ubuntu.com/trusty/python-rsvg
[9] - For python3 using GI http://packages.ubuntu.com/trusty/gir1.2-rsvg-2.0
[10] - For python2 http://packages.ubuntu.com/trusty/python-cairo
[11] - For python3 http://packages.ubuntu.com/trusty/python3-cairo
[12] - | [[https://pypi.python.org/pypi/python-magiccolorname|yes]] | | yes | yes |
[13] - https://pypi.python.org/pypi/music21
[14] - https://pypi.python.org/pypi/pydmtx
[15] - https://pypi.python.org/pypi/py_w3c
[16] - | Pillow | [[https://pypi.python.org/pypi/bob
[17] - https://pypi.python.org/pypi/xbob.flandmarkPillow|yes]] | | yes | yes |
Binary tools:
[18] - New flandmark implementation https://pypi.python.org/pypi/bob.ip.flandmark - exiftools
[19] - https://pypi.python.org/pypi/PyWavelets - convert (imagemagick)
[20] - https://github.com/bmcfee/librosa - pdftotext
[21] - https://pypi.python.org/pypi/matplotlib - pdfimages
[22] - https://pypi.python.org/pypi/pycolorname - ffprobe
Details:
Primary mentor: @DrTrigon
Co-mentor: @jayvdb
Other mentors: (optional, Phabricator username)
Skills: python and computer vision
Estimated project time for a senior contributor: 2-4 weeks
Microtasks: T76211 T128946 T67192