This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
os.environ['GOOGLE_APPLICATION_CREDENTIALS']='your-service-key.json' | |
"""Object tracking in a video stored on GCS.""" | |
from google.cloud import videointelligence | |
video_client = videointelligence.VideoIntelligenceServiceClient() | |
features = [videointelligence.enums.Feature.OBJECT_TRACKING] | |
gcs_uri = 'gs://video_intel3/*.*' | |
output_uri = 'gs://video_intel3/response-multiple-video-intelligence-single-request.json' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://code.markedmondson.me/googleAnalyticsR/articles/setup.html | |
install.packages("googleAnalyticsR") | |
library(googleAnalyticsR) | |
#change location to your service key folder | |
ga_auth(json_file = "C:\\location-folder-for your-service-account-json\\service-key.json") | |
account_list <- ga_account_list() | |
account_list$viewId |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install packages | |
install.packages("googleAnalyticsR") | |
install.packages("tidyverse") | |
#load libraries | |
library(googleAnalyticsR) | |
library(tidyverse) | |
#creating service account json key | |
#http://code.markedmondson.me/googleAnalyticsR/articles/setup.html |
NewerOlder