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 example1example2example3
Detect pie charts
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
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
Matlab and matplotlib images have a typical look to it. corners are grey, and so on. Possibly even check exif data ?
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 ?
Detect line drawings
Detect pie charts
Detect line charts
Detect if SVG