rude-carnie icon indicating copy to clipboard operation
rude-carnie copied to clipboard

Custom Face Detector

Open tanmay-bhatnagar opened this issue 4 years ago • 3 comments

Can we fine tune the face detector or perhaps use our own ?

tanmay-bhatnagar avatar Aug 15 '19 19:08 tanmay-bhatnagar

Yeah, you can use your own by subclassing:

https://github.com/dpressel/rude-carnie/blob/master/detect.py#L5

It currently requires a small tweak to the code base. Basically subclass in detect.py and then in utils.py, edit this function to include your new class:

https://github.com/dpressel/rude-carnie/blob/master/utils.py#L167

dpressel avatar Nov 25 '19 21:11 dpressel

I know this ,but not easy as you said

ucasiggcas avatar Nov 27 '19 14:11 ucasiggcas

Im not sure how it actually could be any easier. I could make it a plugin but that adds complexity to the program. Subclassing is intuitive, the interface is quite simple and the factory method comes down to adding a key. Unclear what would be easier

dpressel avatar Nov 27 '19 14:11 dpressel