merry-go-round
merry-go-round

Reputation: 4615

How to draw square to tag on the image

enter image description here

I'm building Tagging feature on photo like above using React Native (expo). Is there any such Square Listener?

Here is its essential Use Cases

  1. User can change square size by dragging on their finger.
  2. We can monitor square information including square width, height, x-coordinate, y-coordinate.

How can I achieve this? Do you have any idea or know any good library?

Any answer will be highly appreciated!

Upvotes: 0

Views: 80

Answers (1)

Chris Geirman
Chris Geirman

Reputation: 9684

I think you're going to want to use some sort of face detection, such as by cloudinary. There are other services too, such as Google Face Detection which might be even closer to what you're looking for. These services will just give you the initial coordinates of the face, leaving you to draw the box yourself. So you can roll your own "size by dragging" feature as well.

Upvotes: 1

Related Questions