I am pretty new to Affectiva. I have been using it for my research projects. So my question is related to create a Frame and pass it to a PhotoDetector to detect emotions in a picture.
When I create a Frame I get an AffdexException related to “memory violation” and my program breaks just in the line I have created the Frame in this way:
Frame frame = new Frame(img.Width, img.Height, pixelsArray, Frame.COLOR_FORMAT.RGB);
- “img” is a correct image object (I checked)
- “width” is in pixels
- “height” is in pixels
- “pixelsArray” is a byte array containing image data.
I don´t know if I am in the good way to create a Frame or I am doing something wrong.
P.S: I have read this topic C# AccessViolationException but this didn´t help me.
I would appreciate your help!