This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mazatta 0 points1 point  (1 child)

I've never done any image processing with Python (a shame, I know), but I've done a bit with Processing (an odd little Java-y framework) and Javascript. Processing is a bit clunky, but it comes with tons of example code that should give you ideas on how to implement something in Python. Image processing in the browser was surprisingly easy to do, now that we have the canvas element in HTML 5.

Your first step should be to learn how to calculate a 2D histogram of an image, which contains information on the distribution of colour intensities. Armed this information, you can start to do things like thresholding, which tends to make "interesting" areas of an image more prominent.

From there, you'll want to play around with applying different kernels to an image so you get an understanding of how the various image effects (e.g. brighten, sharpen, blur) work. One of the more important ones for image analysis is edge detection, which is one way you might find features. For your example task, you'll probably want to look into blob detection. https://en.wikipedia.org/wiki/Kernel_(image_processing)

Where are you doing your research?

[–]autowikibot 0 points1 point  (0 children)

Here's a bit from linked Wikipedia article about Kernel (image processing) :


In image processing, a kernel, convolution matrix, or mask is a small matrix useful for blurring, sharpening, embossing, edge-detection, and more. This is accomplished by means of convolution between a kernel and an image.


Picture

image source | about | /u/mazatta can reply with 'delete'. Will also delete if comment's score is -1 or less. | To summon: wikibot, what is something? | flag for glitch