nagadomi / lbpcascade_animeface

A Face detector for anime/manga using OpenCV
1.93k stars 294 forks source link

Feature/package #4

Open rachmadaniHaryono opened 5 years ago

rachmadaniHaryono commented 5 years ago

with this pr lbpcascade_animeface can be uploaded to pypi and can be used on other program as package

nagadomi commented 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)
rachmadaniHaryono commented 5 years ago

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: