Skip to content

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

Notifications You must be signed in to change notification settings

FatemeFouladkar/SVG-To-TXT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published