pywikibot-catfiles / file-metadata

A python package to analyze files and provide useful metadata
MIT License
15 stars 1 forks source link

[Tracking] Interesting things to do with computer vision #15

Open AbdealiLoKo opened 8 years ago

AbdealiLoKo commented 8 years ago

Detect line drawings

  1. Average color in greyscale: Convert the image to greyscale and find the average color. if the average color is > 230 (for example) it is most probably a bunch of lines like a sketch example1 example2 example3

    Detect pie charts

  2. use hough to detect circles. There should be one huge circle with fragments. Use hough line transform to find the edges of the pie ? Probably each pie segment would be segmented out separately, different colors or borders clear. Category:Pie_charts

    Detect line charts

  3. Find 2 lines which are perfectly horizontal and vertical - these are the axes (X, Y). Then there should be some lines in between ? could be curved or anything. Ideally, there will be differnet symbols or different colors. possible a title and labels for the axes and a legend. Category:XY_plots
  4. Matlab and matplotlib images have a typical look to it. corners are grey, and so on. Possibly even check exif data ?
  5. Possibly even do empty graphs ? Category:Empty_graph_sheets

    Detect if SVG

  6. Just use a auto SVG converter and convert an image to SVG. If the image has less than 1000 fragments it would probably be a good idea to convert to svg. Ensure than all colors are flat, and no aero/glossy textures are used maybe ?
drtrigon commented 8 years ago

Created phabricator proposal: https://phabricator.wikimedia.org/T141653