5.ファイルの説明
一部重要なファイルの内容を説明します。
5.1 st_mobile_common
画像の形式やエラーコードなどを定義するファイルです。それに関するメソッドも含まれます。
//// @brief Blink動作の閾値設定。[0,1]の範囲内で設定可能であり,デフォルト設定値は0.5である
ST_SDK_API void
st_mobile_set_eyeblink_threshold(
float threshold
);
/// @brief 口開ける動作の閾値設定。[0,1]の範囲内で設定可能であり,デフォルト設定値は0.5である
ST_SDK_API void
st_mobile_set_mouthah_threshold(
float threshold
);
/// @brief 頭振る動作の閾値設定。[0,1]の範囲内で設定可能であり,デフォルト設定値は0.5である
ST_SDK_API void
st_mobile_set_headyaw_threshold(
float threshold
);
/// @brief 頷く動作の閾値設定。[0,1]の範囲内で設定可能であり,デフォルト設定値は0.5である
ST_SDK_API void
st_mobile_set_headpitch_threshold(
float threshold
);
/// @brief 眉毛動く動作の閾値設定。[0,1]の範囲内で設定可能であり,デフォルト設定値は0.5である
ST_SDK_API void
st_mobile_set_browjump_threshold(
float threshold
);
/// @brief 顔識別のスムーズさを設定する。デフォルトは0.8である
ST_SDK_API void
st_mobile_set_smooth_threshold(
float threshold
);
/// @brief 顔識別の3D回転角度を設定する。デフォルトは0.8である
ST_SDK_API void
st_mobile_set_headpose_threshold(
float threshold
);
/// @brief SSE命令集のみ利用可能の設定
ST_SDK_API void st_mobile_set_sse_only(
bool sse_only
);
/// @brief 画像色の転換
ST_SDK_API st_result_t
st_mobile_color_convert(
const unsigned char *image_src,
unsigned char *image_dst,
int image_width,
int image_height,
st_color_convert_type type
);
/// @brief 画像の回転
ST_SDK_API st_result_t st_mobile_image_rotate(
const unsigned char *image_src,
unsigned char *image_dst,
int image_width,
int image_height,
int image_stride,
st_pixel_format pixel_format,
st_rotate_type rotate_type
);
/// @brief st_mobileのカレントログレベルを設定
/// ST_LOG_DISABLEで設定した場合はログを禁止する
///
@param[in] level ログレベルを設定する
///
@return 正常の場合はST_OKで返す、異常の場合はエラーで返す
ST_SDK_API st_result_t
st_mobile_set_log_level(
st_log_level_t level
);
/// @brief ログのレベルを取得する
/// @param[out] p_level カレントログレベルの結果
/// @return 正常の場合はST_OKで返す、異常の場合はエラーで返す
ST_SDK_API st_result_t
st_mobile_get_log_level(
st_log_level_t* p_level
);
/// @brief ログパスを設定する
/// @param[in] p_file_path ログファイルのパスを設定する
/// @param[in] b_tranc_file ファイル内容削除可否,true - 削除可,false - 削除不可
/// @return 正常の場合はST_OKで返す、異常の場合はエラーで返す
ST_SDK_API st_result_t
st_mobile_redirect_log_to_file(
const char* p_file_path, bool b_tranc_file
);
/// @brief sdkバージョンを取得する
ST_SDK_API
const char* st_mobile_get_version(); 5.2 st_mobile_license
ライセンス認証関連メソッドが含まれます。
5.3 st_mobile_human_action
st_mobile_human_actionのAPI関連設定が含まれます。
5.4 st_mobile_face_attribute
st_mobile_face_attributeのAPI関連設定が含まれます。
5.5 st_mobile_beautify
st_mobile_beautifyのAPI関連設定が含まれます。
5.6 st_mobile_sticker
st_mobile_stickerのAPI関連設定が含まれます。
5.7 st_mobile_filter
st_mobile_filter(顔のフィルター)のAPI関連設定が含まれます。
5.8 st_mobile_object
st_mobile_object(物体識別)のAPI関連設定が含まれます。
5.9 st_mobile_makeup
st_mobile_makeup(メークアップ)のAPI関連設定が含まれます。
5.10 st_mobile_animal
st_mobile_animal(猫顔の識別)のAPI関連設定が含まれます。
5.11 st_mobile_body_beautify
st_mobile_body_beautify(体型の美化)のAPI関連設定が含まれます。
5.12 st_mobile_avatar
st_mobile_avatar(アバターの設定)のAPI関連設定が含まれます。
Last updated