The Business Card Parser contains the necessary functionality to parse and represent the output of an OCR Business Card Reader. Two classes are contained, one that will represent the model of the contact info parsed from the business card, including: Name, Phone Number, and Email Address. The other class contains the necessary methods to parse each field from the string of business card text.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import networkx as nx | |
from osgeo import ogr | |
import os | |
def load_graph_from_Digiroad_shape(filepath, direction='AJOSUUNTA', both_ways=2, against=3, along=4, strict=True): | |
"""Generates nx.MultiDiGraph() object from Digiroad 2.0 Shapefile. | |
Parameters | |
---------- | |