(Environment) (Cairo) – (1) Installing Required Libraries to Convert SVG Files to PNG
Installing Required Libraries to Convert SVG Files to PNG
The goal was to apply NBP OCR to SVG images and record the output as JSON (text, coordinates).
To achieve this, the first step was to convert the ".svg" file into ".png".
Initially, I thought that simply installing cairo via pip would suffice, but I soon realized that additional steps were necessary.
To avoid wasting time solving issues when I attempted it again later, I decided to document the process and share it.
If you need code references or encounter any setup issues, please feel free to leave a message here: https://github.com/shipjobs/HAND2TEXT/issues.
Environment
Language: Python 3.8.3 64bitOperating System: Windows 10
Development Environment: Visual Studio Code
To convert an ".svg" file to ".png", if you import the libraries as shown below, you will naturally encounter a reference error:
Comments
Post a Comment