Cloud Video Intelligence V1beta2 Client - Class ExplicitContentFrame (1.13.1)

Reference documentation and code samples for the Cloud Video Intelligence V1beta2 Client class ExplicitContentFrame.

Video frame level annotation results for explicit content.

Generated from protobuf message google.cloud.videointelligence.v1beta2.ExplicitContentFrame

Namespace

Google \ Cloud \ VideoIntelligence \ V1beta2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ time_offset Google\Protobuf\Duration

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

↳ pornography_likelihood int

Likelihood of the pornography content..

getTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasTimeOffset

clearTimeOffset

setTimeOffset

Time-offset, relative to the beginning of the video, corresponding to the video frame for this location.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getPornographyLikelihood

Likelihood of the pornography content..

Generated from protobuf field .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2;

Returns
TypeDescription
int

setPornographyLikelihood

Likelihood of the pornography content..

Generated from protobuf field .google.cloud.videointelligence.v1beta2.Likelihood pornography_likelihood = 2;

Parameter
NameDescription
var int
Returns
TypeDescription
$this