Skip to content

AlexeyPichugin/lunasdk

 
 

Repository files navigation

Luna VisionLabs

Codacy Badge Build Status Code style: black

A python interface to VisionLabs LUNA product.

We implemented only interface to LUNA C++ SDK. It is face detection and recognition library.

Install

The main dependencies is Luna SDK library and an FaceEnginePythonBindings. If these dependencies is installed add to PATH a path to FaceEngineSDK.dll or FaceEngineSDK.so.

You can install this package several path:

  • install from github:

    pip install git+https://github.com/matemax/lunasdk.git

Setup

We get a path to folder with neural network models and path to a FaceEngine configuration file from environment variable FSDK_ROOT ({FSDK_ROOT}/data, {FSDK_ROOT}/data/faceengine.conf) by default. You can also specify these paths within VLFaceEngine initialization.

Getting Started

Attributes estimation example:

>>> from lunavl.sdk.luna_faces import VLFaceDetector
>>> from lunavl.sdk.luna_faces import VLImage
>>> detector = VLFaceDetector()
>>> image = VLImage.load(
...         url='https://cdn1.savepice.ru/uploads/2019/4/15/aa970957128d9892f297cdfa5b3fda88-full.jpg')
>>> detection = detector.detectOne(image)
>>> detection.basicAttributes.age
16.0
>>> detection.emotions.predominateEmotion.name
'Happiness'

About

LunaVL, python bindings for VisionLabs Luna

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%