FatemeFouladkar / SVG-To-TXT

A short snippet that converts SVG to PNG and then converts it to TXT using google cloud API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG-To-TXT

A short python snippet that converts SVG to PNG and then converts it to TXT using Google Cloud Vision API

In order to use this code, Sign up here in google cloud and get a key.json from cloud console.

Steps Followed:

  1. Python 'svglib' is used to convert the SVG file into ReportLab Graphics Drawing objects.
  2. The ReportLab Graphics Drawing object is converted to PNG using the reportlab library.
  3. Generated ".png" file is passed to google cloud api and converted into TXT.

About

A short snippet that converts SVG to PNG and then converts it to TXT using google cloud API


Languages

Language:Jupyter Notebook 100.0%