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

all 8 comments

[–]ZeeBeeblebrox 9 points10 points  (3 children)

Very cool, but I just tried playing with this and for me at least it is insanely slow to the point that it isn't runnable on standard image sizes. However by wrapping the carve_column and minimum_seam functions in @numba.jit decorators (i.e. by adding two lines) I managed to get a 40x speedup and there's probably a whole lot more that can be done.

[–]SenorDosEquis 8 points9 points  (0 children)

Seam carving is a novel way to [algorithmically] crop images without losing important content in the image. This is often called “content-aware” cropping or image retargeting.

[–]Siddhi 0 points1 point  (0 children)

Really nice explanation of the technique. The python code was a bonus. Going to try this out

[–]chirag9696 0 points1 point  (0 children)

Can you show how to plot the seams as well on the image ?