agilescientific / freqbot

Skunkworks flask app for random geophysics stuff
Apache License 2.0
4 stars 3 forks source link

Automagically detect the data #4

Open kwinkunks opened 9 years ago

kwinkunks commented 9 years ago

Right now you have to crop the borders off an image yourself, which is a pain because you have to go and find the pixel coordinates in GIMP or whatever.

mycarta commented 9 years ago

I would probably try texture classification http://scikit-image.org/docs/dev/auto_examples/plot_glcm.html It should more or less easily separate: a) text b) data c) empty space around data

mycarta commented 9 years ago

The alternative approach is corner/edge detection:

http://blog.ayoungprogrammer.com/2013/04/tutorial-detecting-multiple-rectangles.html?m=1 http://artsy.github.io/blog/2014/09/24/using-pattern-recognition-to-automatically-crop-framed-art/ http://vkedco.blogspot.ca/2012/08/edge-detection-with-python-pil.html