Skip to content

Simple dynamic library for video sentiment recognition

License

Notifications You must be signed in to change notification settings

EmotionEngi/EmotionLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

EmotionLib

Simple dynamic library for video sentiment recognition

Made using Caffe

Functions list:

- float* make(const char* path, double N, struct progress* bar), where progress is struct{int,int} to check the current progress of recognition
Returns a float array pointer with positivity values for each N-th frame of video in path, first array element is database size

You can use N = 0 for automatic frame rate detection. In this case, the function will take one frame for every second of the video

- int clean(float* res)
To clean up an array with coefficients

C# Import Example:

    [StructLayout(LayoutKind.Sequential)]
    public struct progress
    {
        public int cur;
        public int end;
    };
    [DllImport("EmotionLib.dll")]
    public static extern IntPtr make([MarshalAs(UnmanagedType.LPStr)] string path, double N, ref progress bar);
    [DllImport("EmotionLib.dll", CallingConvention = CallingConvention.Cdecl)]
    public static extern int clean(IntPtr ptr);

Demo

alt text alt text

TODO:

- Audio sentiment recognition

About

Simple dynamic library for video sentiment recognition

Resources

License

Stars

Watchers

Forks