View Source IvcvEx (IvcvEx v0.10.0)

Documentation for IvcvEx.

Link to this section Summary

Functions

Get the result of a video analysis. Result include multiple items from the analysis.

Process video by url.

Link to this section Functions

Link to this function

get_analysis_result(result_id)

View Source

Get the result of a video analysis. Result include multiple items from the analysis.

Returns {:ok, Result.t()} and Result contains: emotions (object) - Average intensity and positivity during the video. Integer values between 0 to 100.

impression (object) - First impression analysis with Big Five metrics. Integer values between 0 to 100.

sentiment (float) - Sentiment analysis result. Integer value between 0 to 100.

status (string) - Current status of the processing. One of FINISHED, PROCESSING, FAILED.

resultId (string) - Id of the result.

parameters

Parameters

  • result_id: Id of the result. This is obtained when the video is sent initially.

examples

Examples

IvcvEx.get_analysis_result("result_id")

reference

Reference

https://docs.ivcv.eu/result_for_video.html#blueprints.direct_blueprints.analysis_result

Link to this function

process_video_by_url(video_url)

View Source
@spec process_video_by_url(binary()) :: {:ok, binary()} | {:error, any()}

Process video by url.

Returns {:ok, result_id} if video was accepted by IVCV servers, otherwise {:error, reason} is returned.

parameters

Parameters

  • video_url: String that represents the video url.

examples

Examples

IvcvEx.process_video_by_url("https://example.com/video.mp4")

reference

Reference

https://docs.ivcv.eu/result_for_video.html#blueprints.direct_blueprints.process_video_by_url