Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

onPictureProcessed callback to receive detectedRectangle with interpolated coordinates and dimensions #52

Open
dibat opened this issue Apr 27, 2020 · 1 comment

Comments

@dibat
Copy link

dibat commented Apr 27, 2020

How about onPictureProcessed callback to receive detectedRectangle but with interpolated bottomLeft, bottomRight, topLeft, topRight coordinates and dimensions in regards of the final initialImage dimensions?
Right now, the detectedRectangle is usable only for RectangleOverlay, but if you need it later for an additional perspective crop processing (using https://github.com/Michaelvilleneuve/react-native-perspective-image-cropper for example) it is not usable since its aspect ratio doesn't correspond the final initialImage dimensions.

@humphreyja
Copy link
Member

@dibat We have been discussing the ability to send coordinates to the api for manual cropping. I think it'd be a great addition to this package. (Allowing developers to create photo editors similar to the iPhone document scanner that comes with the notes app).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants