Python - How to split image using PIL -


i know best way split given image multiple images each image includes 1 object. example, in vase image includes - tree, dog, cat, ball output should 4 different images of tree, dog, cat, ball

btw, i'm using pil module in python.

thanks

in short: can't that.

longer answer: apparently simple task involves not complicated code (15-50 lines), separate original image arbitrarily shaped parts, paste them on default background, choosing appropriate name , saving each part.

it involves object recognizing - humans - so, bit strong "you can't that", involves a.i. techniques image recognition, a lot, , mean a lot of work in getting neural-networking tool correctly coupled , trained identify distinguished objects. (a lot like: years team, not hours person).

and anyway, if you'd know start from, pil alone not fit - pil quick image manipulation library handfull of image methods. although of machinery python a.i. image processing can use pil convert image numpy array representation "real algorithms" run.

now, if don't care program knows which objects in image, distinct objects on image saved different files, 1 come series of image processing filters segment image without resourcing a.i. @ - a lot of work 3 days 2 weeks 1 experience in image processing. couple hours if person skills sharp , images have contrast background , no object superposition.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -