However, this is not correct and I am unsure how to correctly access the prediction values. I am getting an error that says “Uncaught TypeError: Cannot read property ‘emotions’ of undefined”.
This is my first time using Affectiva and any help would be greatly appreciated.
I’ve already familiarized myself with the code at https://github.com/Affectiva/js-sdk-sample-apps, but am still having trouble understanding how to access the prediction values. I am mostly interested in accessing the values for joy, sadness and anger.