README.md

RoogleVideo

R interface to the Google Cloud Video Intelligence API

overview

Installation

library(devtools)
devtools::install_github('kadekillary/RoogleVideo')

Example Workflow

client_id <- ""
client_secret <- ""
path_to_service_account_json <- ""

token <- service_auth(client_id, client_secret, path_to_service_account_json)

# -- Three Detection Methods --
# LABEL_DETECTION
# SHOT_CHANGE_DETECTION
# EXPLICIT_CONTENT_DETECTION
data_endpoint <- annotation_request('~/path/to/asset.mp4', 'LABEL_DETECTION')

data <- get_annotations(data_endpoint)

# Returns Tibble of all labels identified in video
terms_in_video <- get_term_descriptions(data)


beigebrucewayne/RoogleVideo documentation built on Aug. 14, 2019, 10:56 p.m.