Implement OCR with Firebase Cloud Functions and Google Cloud Vision

preview_player
Показать описание
In this video, learn how to use Firebase Cloud Functions and Google Cloud Vision to implement a new feature, optical character recognition (OCR). This enables users to upload expenses that will be automatically read so that they no longer need to manually input every field, and machine learning will extract the receipt text to send to users to confirm and edit if necessary.

Feel free to dive right into this video even if you haven’t watched the first one!

Chapters:
0:00 - Introduction
3:58 - Cloud Functions
7:13 - Project Setup
9:42 - Cloud Functions: Trigger
10:37 - Google Cloud Vision: Image Processing
11:52 - Cloud Functions: Deploy
12:51 - Firestore: Indexes
14:54 - Firestore: Admin SDK
16:36 - Final App

Resources:

#FirebaseCodealong
Рекомендации по теме
Комментарии
Автор

Do you have any good reference on how to parse text outputted by Google Cloud Vision ?

francoisguezengar
Автор

Good info because of the API but i feel like the key point of the title was skipped. There's any hint of how we can parse the data returned by OCR?

freesgen
Автор

I think the whole point of the video was how to parse the text. What is the machine learning that can extrapolate the key elements??

Antebios
Автор

for those who got stuck around min 12 due to error:
! functions: Please note that there will be breaking changes when you upgrade.

Error: Failed to load function definition from source: Failed to generate manifest from function source: ReferenceError: require is not defined in ES module scope, you can use import instead
This file is being treated as an ES module because it has a '.js' file extension and 'D:\Coding\Tutorial contains "type": "module". To treat it as a CommonJS script, rename it to use the '.cjs' file extension.
"
this is because what she shows in the video is NOT what is in the github files in folder ocr-starter. In Functions/index.js delete const functions = and replace it with normal import "import functions, { logger } from 'firebase-functions';"

TomAsh
Автор

love the way you explained everything, thank you

aminadarwish
Автор

Awesome video ... Where can I find a full list of API which can be accessed on the MarketPlace thanks!

mycloudvip