Skip to content

rorodata/facial-recognition-demo

Repository files navigation

face-recognition-demo-tl

See the notebook to get started.

Testing the API:

import roro
import binascii

api = roro.Client("https://facial-recognition-demo.rorocloud.io/")

image_data = open('./test_image.jpg', 'rb').read()
image_data = binascii.b2a_base64(image_data)
image_data = str(image_data, encoding='utf-8')

new_image = api.tag_faces(ascii_image_data = image_data)

new_image = binascii.a2b_base64(new_image)
new_image = Image.open(fp=io.BytesIO(new_image))
new_image = cv.cvtColor(np.array(new_image), cv.COLOR_RGB2BGR)

cv.imwrite('new_image.jpg', new_image)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published