Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I use the library with "offline" image? #10

Closed
romshiri opened this issue Nov 6, 2017 · 3 comments
Closed

Can I use the library with "offline" image? #10

romshiri opened this issue Nov 6, 2017 · 3 comments

Comments

@romshiri
Copy link

romshiri commented Nov 6, 2017

Hi,

I'd like to run face(s) detection in a given image (that was selected from the image gallery for example).

  1. Can I do it?
  2. Can it support multiple faces in a given image?
@dmitry-zaitsev
Copy link
Member

  1. Yes.
  2. Yes.

The library does not require Internet connection or Play Services.

@romshiri
Copy link
Author

romshiri commented Nov 6, 2017

Hi @dmitry-zaitsev, thank you so much for the quick response.

I see that the function named "detectFaces" should receive an image in NV21 format.
As I said, I'd like to run face detection on a simple image that was loaded from the photos gallery.

How do I convert the image (which is basically just a path for a local image), into an NV21 bytes array?
I don't have any experience with image processing etc, so perhaps you can help me with your experience.

@Diolor
Copy link
Member

Diolor commented Nov 7, 2017

Hi @romshiri . Did you search stackoverflow? There are several answers there

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

No branches or pull requests

3 participants