USQL/Cognitive Imaging Emotion Detection Hello World

Última actualización: 23/09/2017
Editar en GitHub

Load the assemblies

REFERENCE ASSEMBLY ImageCommon;
REFERENCE ASSEMBLY FaceSdk;
REFERENCE ASSEMBLY ImageEmotion;
REFERENCE ASSEMBLY ImageTagging;
REFERENCE ASSEMBLY ImageOcr;

@emotions_from_extractor =
    EXTRACT FileName string, 
        NumFaces int, 
        FaceIndex int, 
        RectX float, 
        RectY float, 
        Width float, 
        Height float, 
        Emotion string, 
        Confidence float
    FROM @"/usqlext/samples/cognition/{FileName}.jpg"
    USING new Cognition.Vision.EmotionExtractor();