yanminhui / python-facepp

Library for communicating with a Face++ facial recognition service
MIT License
9 stars 2 forks source link

image_file #9

Open MatteoSerafino opened 2 years ago

MatteoSerafino commented 2 years ago

Hello, is there a way to work with image_data and not directly image_url?

Citing the official website:

Required ( choose any of three) | image_url | String | URL of the image.Note: getting images from URLs may take a long time due to internet connection problems, so it is recommended that you upload images directly by using image_file. -- | -- | -- | -- image_file | File | The binary data of the image, uploaded via POST multipart/form-data. image_base64 | String | Base64 encoded binary data of the image.These three parameters (image_url, image_file and image_base64) will be adopted in the following order of precedence:Highest: image_file; Lowest: image_url.
sbelharbi commented 1 year ago

hi, were you able to install it and test it using url at least? i am facing this issue https://github.com/yanminhui/python-facepp/issues/2#issuecomment-1412555627 and i intend to use it using files. thanks

mritunjoyh commented 1 year ago

@sbelharbi in the Facepp module, there is main.py file there. Change API key and secret in that file.