forked from EmotionEngineer/EmotionLib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EmotionLib.h
27 lines (21 loc) · 813 Bytes
/
EmotionLib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef EMOTIONLIB_H_
#define EMOTIONLIB_H_
#if defined(_MSC_VER) || defined(_WIN32)
# define EMOTIONLIB_API_EXPORT __declspec(dllexport)
#else
# define EMOTIONLIB_API_EXPORT __attribute__((visibility("default")))
#endif
typedef float EmotionLibImage[3][224][224];
typedef float EmotionLibPrediction[4];
// Image inference
EMOTIONLIB_API_EXPORT void
EmotionLib_imageSentiment (EmotionLibImage const *image,
EmotionLibPrediction *result);
// Video inference
EMOTIONLIB_API_EXPORT void
EmotionLib_videoSentiment (EmotionLibImage const *frames,
int num_frames,
EmotionLibPrediction *results,
int *progress);
#undef EMOTIONLIB_API_EXPORT
#endif // EMOTIONLIB_H_