Search Results for

    Show / Hide Table of Contents

    Minimal working example

    Opening the page will automatically do the following:

    1. Initialize the SDK
    2. Ask the user for camera permissions
    3. Load up the SDK
    4. Start emotion recognition
    5. Log the facial expression results to the console
    var reConfig = {
            accountHash: 'YOUR_ACCOUNT_HASH',
            autoStart: true,
            autoPreLoad: true,
    };
    
    window.Realeyesit.experienceSdk.init(reConfig);
    
    /* Subscribe to facial expression result event */
    window.Realeyesit.experienceSdk.on('facialExpressionsDetected', (params) => {
        console.log(params);
    });
    
    In This Article
    Back to top
    Realeyes is SOC2 Type 2 compliant
    © 2024 - Realeyes' Experience Platform Documentation - Support:   support@realeyesit.com Generated by DocFX