Hi guys,
Do you know of any face detection library in Nim? It's a little difficult to find any, with Nvidia naming their new thing NIM...
Anyway, do you know of any? Preferably not bindings to OpenCV, since I'd like not to have to distribute external libraries with the binary.
Thanks.
Most libraries I could find (C, Python, but not Nim unfortunately) are built on top of OpenCV.
But I also found this little gem: https://github.com/nenadmarkus/pico
Written in C, without dependencies. Should be very easy to write bindings for.
Written in C, without dependencies. Should be very easy to write bindings for.
Better use the library which produces best results rather than what is "easiest to wrap at first glance"... Interfacing with Python works too and we have great packages for it in the Nimbleverse.
Better use the library which produces best results
Agreed. This method is from 2013 using old CV techniques.
You can look at https://paperswithcode.com/task/face-detection for the SOTA techniques - though some of these seem to be using old model architectures (e.g. ResNet, which is computationally cheaper than a stronger architecture such as ViT).
Here are the paths you could take:
You might run into issues exporting PyTorch models, e.g. see https://discuss.pytorch.org/t/pretrained-model-for-face-detection/62362/7
Here are some other related projects:
Side note: this list was a pain to format in RST. Numbered lists seem cause broken rendering, unless I'm doing something wrong.