E-KTP Information Extraction With Google Cloud Function & Google Cloud Vision
E-KTP Information Extraction With Google Cloud Function & Google Cloud Vision
E-KTP Information Extraction With Google Cloud Function & Google Cloud Vision
Going Serverless w/
Cloud Function &
Vision API
Imre Nagi
Traveloka Data
@imrenagi
Imre Nagi
Previously:
Software Engineer @CERN @eBay Inc
Currently:
Software Engineer @Traveloka Data
Docker Community Leader, Indonesia
Ping me @imrenagi
Jakarta
Agenda
● Serverless Architecture
● Cloud Function
● Cloud Vision API
● Demo
Jakarta
Serverless Architecture
Jakarta
iOS
Text Analysis
Web
Jakarta
Text Analysis
Mobile Services
Compute Engine
Image Analysis
iOS
Text Analysis
Text Analysis
Mobile Services
Web Compute Engine
Image Analysis
Jakarta
Text Analysis
Mobile Services
Compute Engine
Text Analysis
Text Analysis
iOS
code()
Android
Web
Serverless Characteristic
● Server? Don’t care
● No upfront provisioning
● Scales as needed
● Stateless / ephemeral
https://www.slideshare.net/bretmc/serverless-with-google-cloud?from_action=save
Serverless building block in Google
Cloud Platform
Source: https://www.slideshare.net/bretmc/serverless-with-google-cloud?from_action=saveChart
Data Source Info
Jakarta
Function As
A Service (FaaS)
Cloud Function
Google Managed Serverless Block
triggers
bookingCreatedEvent {
“event_id”: “xas1sCz”,
“event_type”: “booking_created”,
“booking_id”: 1235123,
}
triggers
eKTPExtracted {
“nik”: “1423512478593247”,
New file uploaded
“name”: “syaiful”,
“birthdate”: “Jakarta, 21-07-1967“,
}
triggers
publish
Writes file
DEMO
eKTP Information Extraction
Image
uploader OCR Vision
eKTPExtracted {
“nik”: “1423512478593247”,
“name”: “syaiful”,
Http trigger
“birthdate”: “Jakarta, 21-07-1967“,
}
Store file
Cloud Pubsub
Cloud
eKTP
Trigger Information
Publish
Message Extraction
{"event_type":"text.recognized","data":{"results":[{"loc
ations":[],"properties":[],"mid":"","locale":"id","descripti
on":"PROVINSI DKI JAKARTA\nJAKARTA
PUSAT\nNIK\n3171082910720002\nSYAHRIAL
AFFANDY\nNama\nTempat/Tgl Lah…...
Jakarta
Thank you!
References
https://www.slideshare.net/bretmc/serverless-with-google-cloud?from_a
ction=save
https://cloud.google.com/icons/
Jakarta
Q&A