Answers for "how to use Py-agender for projects"

0

how to use Py-agender for projects

py-agender PATH_TO_IMAGE
Posted by: Guest on March-25-2021
0

how to use Py-agender for projects

pip3 install py-agender[cpu]  # for the cpu version of TensorFlow
pip3 install py-agender[gpu]  # for the gpu version of TensorFlow
Posted by: Guest on March-25-2021
0

how to use Py-agender for projects

from pyagender import PyAgender

agender = PyAgender() 
# see available options in __init__() src

faces = agender.detect_genders_ages(cv2.imread(MY_IMAGE))
# [
#   {left: 34, top: 11, right: 122, bottom: 232, width:(r-l), height: (b-t), gender: 0.67, age: 23.5},
#   ...
# ]

# Additional options & methods in PyAgender source
Posted by: Guest on March-25-2021

Code answers related to "how to use Py-agender for projects"

Browse Popular Code Answers by Language