Monday, 3 September 2018

Best alternatives to crop a photo defining a polygon

I am looking for an open source Android library (or at least the best way to go) to help my users define a polygon (as easy as possible for them) over a photo and crop it. Features I would love to have:

  1. The user can define any corner independently.
  2. The user can drag the centre of any side of the polygon to change two of the corners at once.
  3. Some extra help, like a little 'magnifier', zooms the selected corner to help the user to be precise.

Very few of the libraries I've already checked allow features 1 or 2 out there.

I haven't seen feature 3 on any free library yet.

Scanbot and CamScanner are paid libraries that allow all these, but they are really expensive.

A short video showing the desired behaviour

enter image description here

Do you know any library (or mix of them) to get close to this? I would be even interested in a paid library at a reasonable price.

UPDATE

Someone downvoted this without any comment (that's rude and totally useless if I don't know what to improve). I've tried A LOT of libraries already, this is a summary of my main results (since the detailed list is huge):

  • Many of the available libraries don't maintain the aspect-ratio of the cropped image, like Android-Image-Cropper or cropper, so I can forget about them right now.
  • The ones that solve the previous problems, like AndroidScannerDemo or SmartCropper, could be a base point to develop myself what I need, but they are still not close enough. Just a little step forward between that and what I need would be great, IF IT EXISTS apart from the paid ones!


from Best alternatives to crop a photo defining a polygon

No comments:

Post a Comment