SlideShare a Scribd company logo
All around
Machine Learning
Tensorflow, ML APIs, Google Assistant
Oksana Savenko
student of Karazin Kharkiv
National University
ML is a world of capabilities
What’s it about?
● Recommendation systems
● Predictions
● Recognition abilities
● Diagnostics
● Anomaly detection
ML in Google
ML in Google
++
Flow of Tensors
Neural Network Classifier
Iris Setosa Iris Versicolor Iris Virginica
Code
8
Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина
Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина
Deep Playground
TensorFlow Architecture
12
13
14
1.3 <= 1.2
# Read text file
dataset = (tf.contrib.data.TextLineDataset(file_path)
# Skip header row
.skip(1)
# Transform each elem by applying decode_csv fn
.map(decode_csv))
# Randomize input
dataset = dataset.shuffle(buffer_size=256)
# Repeats dataset this # times
dataset = dataset.repeat(repeat_count)
# Batch size to use
dataset = dataset.batch(32)
iterator = dataset.make_one_shot_iterator()
batch_features, batch_labels = iterator.get_next()
# Load dataset
training_set =
tf.contrib.learn.datasets.base.load_csv_with_header(
filename=IRIS_TRAINING,
target_dtype=np.int,
features_dtype=np.float32)
feature_columns =
[tf.feature_column.numeric_column("x", shape=[4])]
# Define the training inputs
train_input_fn = tf.estimator.inputs.numpy_input_fn(
x={"x": np.array(training_set.data)},
y=np.array(training_set.target),
Cloud ML Engine
Google Cloud Machine Learning Use Cases
MNIST
17
MNIST
18
TensorBoard
19
ML APIs
Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина
https://cloud.google.com/vision/docs/drag-and-drop
What’s the game?
Translation API
23
Double Kill
Optical Character
Recognition (OCP)
Google Cloud Functions
Google Cloud Pub/Sub
Google Cloud Storage
Google Cloud Translation API
Google Cloud Vision API
# разворачиваем processImage
gcloud beta functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket
[YOUR_IMAGE_BUCKET_NAME] --entry-point processImage
# разворачиваем translateText
gcloud beta functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket
[YOUR_IMAGE_BUCKET_NAME] --entry-point processImage
# разворачиваем saveResult
gcloud beta functions deploy ocr-save --stage-bucket [YOUR_TEXT_BUCKET_NAME] --trigger-topic
[YOUR_RESULT_TOPIC_NAME] --entry-point saveResult
25
# создаем бакеты для данных
gsutil mb gs://[YOUR_STAGING_BUCKET_NAME]
gsutil mb gs://[YOUR_IMAGE_BUCKET_NAME]
gsutil mb gs://[YOUR_TEXT_BUCKET_NAME]
# локально создаем папку проекта
mkdir ~/gcf_ocr
cd ~/gcf_ocr
# портируем index.js и package.json с Git
# создаем новый файл
config.json
{
"RESULT_TOPIC": "[YOUR_RESULT_TOPIC_NAME]",
"RESULT_BUCKET": "[YOUR_TEXT_BUCKET_NAME]",
"TRANSLATE_TOPIC":
"[YOUR_TRANSLATE_TOPIC_NAME]",
"TRANSLATE": true,
"TO_LANG": ["en", "fr", "es", "ja", "ru"]
}
# загружаем картинку
gsutil cp [PATH_TO_IMAGE] gs://[YOUR_IMAGE_BUCKET_NAME]
# проверяем
gcloud beta functions logs read --limit 100
LEVEL NAME EXECUTION_ID TIME_UTC LOG
D ocr-extract 155750695892074 2017-09-25 18:51:28.260 Function execution started
I ocr-extract 155750695892074 2017-09-25 18:51:28.649 Looking for text in image bender.png
I ocr-extract 155750695892074 2017-09-25 18:51:31.148 Extracted text from image (9 chars)
I ocr-extract 155750695892074 2017-09-25 18:51:31.722 Detected language "en" for bender.png
I ocr-extract 155750695892074 2017-09-25 18:51:32.944 File bender.png processed.
D ocr-extract 155750695892074 2017-09-25 18:51:32.950 Function execution took 4690 ms, finished with status: 'ok'
D ocr-translate 113818010410062 2017-09-25 18:51:34.044 Function execution started
D ocr-save 113818102696070 2017-09-25 18:51:34.276 Function execution started
I ocr-translate 113818010410062 2017-09-25 18:51:34.456 Translating text into ru
I ocr-save 113818102696070 2017-09-25 18:51:34.680 Received request to save file bender.png
I ocr-save 113818102696070 2017-09-25 18:51:34.769 Saving result to bender.png_to_en.txt in bucket txtbuck
I ocr-translate 113818010410062 2017-09-25 18:51:35.921 Text translated to ru
D ocr-translate 113818010410062 2017-09-25 18:51:35.928 Function execution took 1885 ms, finished with status: 'ok'
...
I ocr-save 113817650764455 2017-09-25 18:51:48.919 File saved.
D ocr-save 113817650764455 2017-09-25 18:51:48.967 Function execution took 7642 ms, finished with status: 'ok'
26
APPLAUDISSEMENTS APPLAUSE 拍手 APLAUSOS АПЛОДИСМЕНТЫ
Video Intelligence API BETA
Features
● label detection
● shot change detection
● regionalization
Speech API
Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина
I almost understand
Jobs API BETA
● check better job site
engagement
● check higher apply rates
● check increased candidate
conversion
● check freed up product and
engineering resources
Google Assistant
32
2 Ways to integrate
Google Assistant library
Hands-free activation - activate your device by saying Hey
Google or Ok Google, just like with Google Home!
Audio capture and playback
Conversation state management
Timer and alarm management
Google Assistant gRPС API
Idiomatic client libraries in 10 languages
Highly efficient on wire and with a simple service definition
framework
Bi-directional streaming with http/2 based transport
Pluggable auth, tracing, load balancing and health
checking
Google Assistant gRPC API
Conversation Design
Create a persona
Pick up the voice
Tricks
● Unlock Your Phone with Google
Assistant
● Get Google Assistant to Remember
Things
● Take a Selfie
● See Your Photos
● Post to Facebook by Voice
● Translate on the Go
https://ifttt.com/join
35
36
Google News
наушники Pixel Buds
37
Google News
Teachable Machine https://teachablemachine.withgoogle.com/
38
Oksana Savenko
facebook.com/gingertailed
Q&A
39

More Related Content

PDF
Puppet Camp Melbourne 2014: Node Collaboration with PuppetDB
Puppet
 
PPTX
Scaling django
Md. Ahsanuzzaman Khan
 
KEY
Cloud Services - Gluecon 2010
Oren Teich
 
PDF
Gnocchi Profiling 2.1.x
Gordon Chung
 
PDF
Whats New in ASP.NET Core
Jon Galloway
 
PDF
Gnocchi v4 (preview)
Gordon Chung
 
PDF
Gnocchi Profiling v2
Gordon Chung
 
PDF
JEEConf. Vanilla java
Dmitriy Dumanskiy
 
Puppet Camp Melbourne 2014: Node Collaboration with PuppetDB
Puppet
 
Scaling django
Md. Ahsanuzzaman Khan
 
Cloud Services - Gluecon 2010
Oren Teich
 
Gnocchi Profiling 2.1.x
Gordon Chung
 
Whats New in ASP.NET Core
Jon Galloway
 
Gnocchi v4 (preview)
Gordon Chung
 
Gnocchi Profiling v2
Gordon Chung
 
JEEConf. Vanilla java
Dmitriy Dumanskiy
 

What's hot (20)

PDF
The Ring programming language version 1.10 book - Part 10 of 212
Mahmoud Samir Fayed
 
PPTX
Python database interfaces
Mohammad Javad Beheshtian
 
PPTX
Apex code benchmarking
purushottambhaigade
 
PPTX
Scheduling in Linux and Web Servers
David Evans
 
PPTX
Ac cuda c_5
Josh Wyatt
 
PDF
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
 
PPTX
Weather of the Century: Visualization
MongoDB
 
PPTX
Ac cuda c_4
Josh Wyatt
 
PDF
orca_fosdem_FINAL
addisonhuddy
 
PPTX
Weather of the Century: Design and Performance
MongoDB
 
PDF
The Weather of the Century
MongoDB
 
PDF
The Weather of the Century Part 3: Visualization
MongoDB
 
PPTX
Relational Database Access with Python
Mark Rees
 
PDF
Handout3o
Shahbaz Sidhu
 
PDF
Tailored source-code-transformation-synthesize-computationally-diverse-progra...
FoCAS Initiative
 
PDF
Automation in angular js
Marcin Wosinek
 
PDF
The Ring programming language version 1.9 book - Part 9 of 210
Mahmoud Samir Fayed
 
PPTX
The Weather of the Century Part 2: High Performance
MongoDB
 
PPTX
Virtual Memory (Making a Process)
David Evans
 
PDF
XSpect, a lightweight library to make your code reusable and maintainable.
岡諭 李
 
The Ring programming language version 1.10 book - Part 10 of 212
Mahmoud Samir Fayed
 
Python database interfaces
Mohammad Javad Beheshtian
 
Apex code benchmarking
purushottambhaigade
 
Scheduling in Linux and Web Servers
David Evans
 
Ac cuda c_5
Josh Wyatt
 
Accelerating Local Search with PostgreSQL (KNN-Search)
Jonathan Katz
 
Weather of the Century: Visualization
MongoDB
 
Ac cuda c_4
Josh Wyatt
 
orca_fosdem_FINAL
addisonhuddy
 
Weather of the Century: Design and Performance
MongoDB
 
The Weather of the Century
MongoDB
 
The Weather of the Century Part 3: Visualization
MongoDB
 
Relational Database Access with Python
Mark Rees
 
Handout3o
Shahbaz Sidhu
 
Tailored source-code-transformation-synthesize-computationally-diverse-progra...
FoCAS Initiative
 
Automation in angular js
Marcin Wosinek
 
The Ring programming language version 1.9 book - Part 9 of 210
Mahmoud Samir Fayed
 
The Weather of the Century Part 2: High Performance
MongoDB
 
Virtual Memory (Making a Process)
David Evans
 
XSpect, a lightweight library to make your code reusable and maintainable.
岡諭 李
 
Ad

Similar to Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина (20)

PDF
Workshop "Can my .NET application use less CPU / RAM?", Yevhen Tatarynov
Fwdays
 
PDF
Yevhen Tatarynov "From POC to High-Performance .NET applications"
LogeekNightUkraine
 
PDF
Kerberizing Spark: Spark Summit East talk by Abel Rincon and Jorge Lopez-Malla
Spark Summit
 
PDF
Apache Cassandra at Macys
DataStax Academy
 
PDF
How to create Treasure Data #dotsbigdata
N Masahiro
 
PDF
Project Tungsten: Bringing Spark Closer to Bare Metal
Databricks
 
PPTX
Certification Study Group -Professional ML Engineer Session 2 (GCP-TensorFlow...
gdgsurrey
 
PDF
Big Data Tools in AWS
Shu-Jeng Hsieh
 
PDF
Scaling 100PB Data Warehouse in Cloud
Changshu Liu
 
PPTX
Build a DataWarehouse for your logs with Python, AWS Athena and Glue
Maxym Kharchenko
 
PDF
JDD2015: Make your world event driven - Krzysztof Dębski
PROIDEA
 
ODP
Beyond php - it's not (just) about the code
Wim Godden
 
PDF
2024 Dec 05 - PyData Global - Tutorial Its In The Air Tonight
Timothy Spann
 
PDF
Lessons Learned While Scaling Elasticsearch at Vinted
Dainius Jocas
 
ODP
Beyond php it's not (just) about the code
Wim Godden
 
PDF
Treasure Data and AWS - Developers.io 2015
N Masahiro
 
PDF
The Flow of TensorFlow
Jeongkyu Shin
 
PDF
Spca2014 advanced share point troubleshooting hessing
NCCOMMS
 
PDF
Xephon K A Time series database with multiple backends
University of California, Santa Cruz
 
PPTX
More Data, More Problems: Evolving big data machine learning pipelines with S...
Alex Sadovsky
 
Workshop "Can my .NET application use less CPU / RAM?", Yevhen Tatarynov
Fwdays
 
Yevhen Tatarynov "From POC to High-Performance .NET applications"
LogeekNightUkraine
 
Kerberizing Spark: Spark Summit East talk by Abel Rincon and Jorge Lopez-Malla
Spark Summit
 
Apache Cassandra at Macys
DataStax Academy
 
How to create Treasure Data #dotsbigdata
N Masahiro
 
Project Tungsten: Bringing Spark Closer to Bare Metal
Databricks
 
Certification Study Group -Professional ML Engineer Session 2 (GCP-TensorFlow...
gdgsurrey
 
Big Data Tools in AWS
Shu-Jeng Hsieh
 
Scaling 100PB Data Warehouse in Cloud
Changshu Liu
 
Build a DataWarehouse for your logs with Python, AWS Athena and Glue
Maxym Kharchenko
 
JDD2015: Make your world event driven - Krzysztof Dębski
PROIDEA
 
Beyond php - it's not (just) about the code
Wim Godden
 
2024 Dec 05 - PyData Global - Tutorial Its In The Air Tonight
Timothy Spann
 
Lessons Learned While Scaling Elasticsearch at Vinted
Dainius Jocas
 
Beyond php it's not (just) about the code
Wim Godden
 
Treasure Data and AWS - Developers.io 2015
N Masahiro
 
The Flow of TensorFlow
Jeongkyu Shin
 
Spca2014 advanced share point troubleshooting hessing
NCCOMMS
 
Xephon K A Time series database with multiple backends
University of California, Santa Cruz
 
More Data, More Problems: Evolving big data machine learning pipelines with S...
Alex Sadovsky
 
Ad

More from Alina Vilk (20)

PDF
Designer in you, Irina Shapoval, Lead Designer, DataArt
Alina Vilk
 
PDF
.NET framework vs .net core 3.1 commons &amp; differences
Alina Vilk
 
PPTX
Expression trees in c#, Алексей Голубь (Svitla Systems)
Alina Vilk
 
PPTX
"Dev to PM" D.Fedotov
Alina Vilk
 
PPTX
Игорь Литвиненко (Senior iOS- и Android-разработчик,DataArt)
Alina Vilk
 
PDF
Алексей Рыбаков (Senior Engineer,Technical Evangelist DataArt )
Alina Vilk
 
PDF
Ирина Шаповал,(Lead UI/UX дизайнер, DataArt)
Alina Vilk
 
PPTX
Devops, v.02, Alexander Pavlenko (DataArt)
Alina Vilk
 
PPTX
O DevOps, Stanislav Kolenkin ( DataArt)
Alina Vilk
 
PPTX
Interactive 3D graphics for web with three.js, Andrey Vedilin, DataArt
Alina Vilk
 
PPTX
Architecture components, Константин Марс, TeamLead, Senior Developer, DataArt
Alina Vilk
 
PPTX
Встреча Google Post IO ( Владимир Иванов, Катерина Заворотченко и Сергей Комлач)
Alina Vilk
 
PPTX
Кирилл Безпалый, .NET Developer, Ciklum
Alina Vilk
 
PPTX
Игорь Леонтьев, Lead Architect on all Blockchain projects of Viseo group
Alina Vilk
 
PPTX
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
 
PPTX
Евгений Дубовик, Senior Developer, DataArtDb presentation gdg
Alina Vilk
 
PDF
Дмитрий Козицкий,Lead UX / UI Designer, DataArt
Alina Vilk
 
PPTX
Игорь Юзовицкий,UX Expert, DataArt
Alina Vilk
 
PPTX
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Alina Vilk
 
PPTX
«Делегирование как идеальный способ угробить проект», Александр Ивахненко, IT...
Alina Vilk
 
Designer in you, Irina Shapoval, Lead Designer, DataArt
Alina Vilk
 
.NET framework vs .net core 3.1 commons &amp; differences
Alina Vilk
 
Expression trees in c#, Алексей Голубь (Svitla Systems)
Alina Vilk
 
"Dev to PM" D.Fedotov
Alina Vilk
 
Игорь Литвиненко (Senior iOS- и Android-разработчик,DataArt)
Alina Vilk
 
Алексей Рыбаков (Senior Engineer,Technical Evangelist DataArt )
Alina Vilk
 
Ирина Шаповал,(Lead UI/UX дизайнер, DataArt)
Alina Vilk
 
Devops, v.02, Alexander Pavlenko (DataArt)
Alina Vilk
 
O DevOps, Stanislav Kolenkin ( DataArt)
Alina Vilk
 
Interactive 3D graphics for web with three.js, Andrey Vedilin, DataArt
Alina Vilk
 
Architecture components, Константин Марс, TeamLead, Senior Developer, DataArt
Alina Vilk
 
Встреча Google Post IO ( Владимир Иванов, Катерина Заворотченко и Сергей Комлач)
Alina Vilk
 
Кирилл Безпалый, .NET Developer, Ciklum
Alina Vilk
 
Игорь Леонтьев, Lead Architect on all Blockchain projects of Viseo group
Alina Vilk
 
Александр Сергиенко, Senior Android Developer, DataArt
Alina Vilk
 
Евгений Дубовик, Senior Developer, DataArtDb presentation gdg
Alina Vilk
 
Дмитрий Козицкий,Lead UX / UI Designer, DataArt
Alina Vilk
 
Игорь Юзовицкий,UX Expert, DataArt
Alina Vilk
 
Android Things, Alexey Rybakov, Technical Evangelist, DataArt
Alina Vilk
 
«Делегирование как идеальный способ угробить проект», Александр Ивахненко, IT...
Alina Vilk
 

Recently uploaded (20)

PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
PPTX
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
PPTX
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
DOCX
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
PDF
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
DOCX
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
DOCX
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
PPTX
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
PPTX
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
PPTX
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
PPTX
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
DOCX
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
PPTX
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
PPTX
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Applications of matrices In Real Life_20250724_091307_0000.pptx
gehlotkrish03
 
HISTORY COLLECTION FOR PSYCHIATRIC PATIENTS.pptx
PoojaSen20
 
Modul Ajar Deep Learning Bahasa Inggris Kelas 11 Terbaru 2025
wahyurestu63
 
Health-The-Ultimate-Treasure (1).pdf/8th class science curiosity /samyans edu...
Sandeep Swamy
 
pgdei-UNIT -V Neurological Disorders & developmental disabilities
JELLA VISHNU DURGA PRASAD
 
Unit 5: Speech-language and swallowing disorders
JELLA VISHNU DURGA PRASAD
 
BASICS IN COMPUTER APPLICATIONS - UNIT I
suganthim28
 
CONCEPT OF CHILD CARE. pptx
AneetaSharma15
 
How to Track Skills & Contracts Using Odoo 18 Employee
Celine George
 
Measures_of_location_-_Averages_and__percentiles_by_DR SURYA K.pptx
Surya Ganesh
 
SAROCES Action-Plan FOR ARAL PROGRAM IN DEPED
Levenmartlacuna1
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
CARE OF UNCONSCIOUS PATIENTS .pptx
AneetaSharma15
 
How to Close Subscription in Odoo 18 - Odoo Slides
Celine George
 
Gupta Art & Architecture Temple and Sculptures.pptx
Virag Sontakke
 
Virus sequence retrieval from NCBI database
yamunaK13
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 

Al around ML 2017, Оксана Савенко, студентка НТУ имени Каразина

  • 1. All around Machine Learning Tensorflow, ML APIs, Google Assistant Oksana Savenko student of Karazin Kharkiv National University ML is a world of capabilities
  • 2. What’s it about? ● Recommendation systems ● Predictions ● Recognition abilities ● Diagnostics ● Anomaly detection
  • 5. ++
  • 7. Neural Network Classifier Iris Setosa Iris Versicolor Iris Virginica
  • 13. 13
  • 14. 14 1.3 <= 1.2 # Read text file dataset = (tf.contrib.data.TextLineDataset(file_path) # Skip header row .skip(1) # Transform each elem by applying decode_csv fn .map(decode_csv)) # Randomize input dataset = dataset.shuffle(buffer_size=256) # Repeats dataset this # times dataset = dataset.repeat(repeat_count) # Batch size to use dataset = dataset.batch(32) iterator = dataset.make_one_shot_iterator() batch_features, batch_labels = iterator.get_next() # Load dataset training_set = tf.contrib.learn.datasets.base.load_csv_with_header( filename=IRIS_TRAINING, target_dtype=np.int, features_dtype=np.float32) feature_columns = [tf.feature_column.numeric_column("x", shape=[4])] # Define the training inputs train_input_fn = tf.estimator.inputs.numpy_input_fn( x={"x": np.array(training_set.data)}, y=np.array(training_set.target),
  • 16. Google Cloud Machine Learning Use Cases
  • 24. Double Kill Optical Character Recognition (OCP) Google Cloud Functions Google Cloud Pub/Sub Google Cloud Storage Google Cloud Translation API Google Cloud Vision API
  • 25. # разворачиваем processImage gcloud beta functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket [YOUR_IMAGE_BUCKET_NAME] --entry-point processImage # разворачиваем translateText gcloud beta functions deploy ocr-extract --stage-bucket [YOUR_STAGING_BUCKET_NAME] --trigger-bucket [YOUR_IMAGE_BUCKET_NAME] --entry-point processImage # разворачиваем saveResult gcloud beta functions deploy ocr-save --stage-bucket [YOUR_TEXT_BUCKET_NAME] --trigger-topic [YOUR_RESULT_TOPIC_NAME] --entry-point saveResult 25 # создаем бакеты для данных gsutil mb gs://[YOUR_STAGING_BUCKET_NAME] gsutil mb gs://[YOUR_IMAGE_BUCKET_NAME] gsutil mb gs://[YOUR_TEXT_BUCKET_NAME] # локально создаем папку проекта mkdir ~/gcf_ocr cd ~/gcf_ocr # портируем index.js и package.json с Git # создаем новый файл config.json { "RESULT_TOPIC": "[YOUR_RESULT_TOPIC_NAME]", "RESULT_BUCKET": "[YOUR_TEXT_BUCKET_NAME]", "TRANSLATE_TOPIC": "[YOUR_TRANSLATE_TOPIC_NAME]", "TRANSLATE": true, "TO_LANG": ["en", "fr", "es", "ja", "ru"] } # загружаем картинку gsutil cp [PATH_TO_IMAGE] gs://[YOUR_IMAGE_BUCKET_NAME] # проверяем gcloud beta functions logs read --limit 100 LEVEL NAME EXECUTION_ID TIME_UTC LOG D ocr-extract 155750695892074 2017-09-25 18:51:28.260 Function execution started I ocr-extract 155750695892074 2017-09-25 18:51:28.649 Looking for text in image bender.png I ocr-extract 155750695892074 2017-09-25 18:51:31.148 Extracted text from image (9 chars) I ocr-extract 155750695892074 2017-09-25 18:51:31.722 Detected language "en" for bender.png I ocr-extract 155750695892074 2017-09-25 18:51:32.944 File bender.png processed. D ocr-extract 155750695892074 2017-09-25 18:51:32.950 Function execution took 4690 ms, finished with status: 'ok' D ocr-translate 113818010410062 2017-09-25 18:51:34.044 Function execution started D ocr-save 113818102696070 2017-09-25 18:51:34.276 Function execution started I ocr-translate 113818010410062 2017-09-25 18:51:34.456 Translating text into ru I ocr-save 113818102696070 2017-09-25 18:51:34.680 Received request to save file bender.png I ocr-save 113818102696070 2017-09-25 18:51:34.769 Saving result to bender.png_to_en.txt in bucket txtbuck I ocr-translate 113818010410062 2017-09-25 18:51:35.921 Text translated to ru D ocr-translate 113818010410062 2017-09-25 18:51:35.928 Function execution took 1885 ms, finished with status: 'ok' ... I ocr-save 113817650764455 2017-09-25 18:51:48.919 File saved. D ocr-save 113817650764455 2017-09-25 18:51:48.967 Function execution took 7642 ms, finished with status: 'ok'
  • 26. 26 APPLAUDISSEMENTS APPLAUSE 拍手 APLAUSOS АПЛОДИСМЕНТЫ
  • 27. Video Intelligence API BETA Features ● label detection ● shot change detection ● regionalization
  • 31. Jobs API BETA ● check better job site engagement ● check higher apply rates ● check increased candidate conversion ● check freed up product and engineering resources
  • 33. 2 Ways to integrate Google Assistant library Hands-free activation - activate your device by saying Hey Google or Ok Google, just like with Google Home! Audio capture and playback Conversation state management Timer and alarm management Google Assistant gRPС API Idiomatic client libraries in 10 languages Highly efficient on wire and with a simple service definition framework Bi-directional streaming with http/2 based transport Pluggable auth, tracing, load balancing and health checking Google Assistant gRPC API
  • 34. Conversation Design Create a persona Pick up the voice
  • 35. Tricks ● Unlock Your Phone with Google Assistant ● Get Google Assistant to Remember Things ● Take a Selfie ● See Your Photos ● Post to Facebook by Voice ● Translate on the Go https://ifttt.com/join 35
  • 37. 37 Google News Teachable Machine https://teachablemachine.withgoogle.com/
  • 38. 38