Open rachmadaniHaryono opened 5 years ago
The license is described in the XML file. It is MIT license.
I do not consider examples/detect.py
as a cli tool. I think that it probably will not be used.
However it may be useful to be able to get the XML path from a module.
like:
import lbpcascade_animeface
cascade = cv2.CascadeClassifier(lbpcascade_animeface.XML_PATH)
i just made it as you ask, the constant can be used as above (from lbpcascade_animeface import XML_PATH
).
as example if you install on virtual env, virtualenv root = /home/q/envs
, virtualenv name = temp
it will be
'/home/<username>/envs/temp/lib/python3.6/site-packages/lbpcascade_animeface/lbpcascade_animeface.xml'
to try it:
python setup.py sdist
)pip install
from distribution fileimport lbpcascade_animeface as la; print(la.XML_PATH)
with this pr lbpcascade_animeface can be uploaded to pypi and can be used on other program as package
detect
subcommand and other example like on #1 can be added to another subcommand likecrop