{'fraction_non_alphanumeric': 0.012300123001230012, 'fraction_numerical': 0.0, 'mean_word_length': 5.310077519379845, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Automatic invoice interpretation: invoice structure analysis

We propose a method of invoice document structure analysis that provides a means to extract the relevant information from an unknown invoice. Our method uses a combination of textual and graphical processing by analyzing the line and line intersection features in the document as well as searching for possible keywords such as item number, quantity, total, etc. Valid keyword search regions are determined by a specialized connected-component analysis before any OCR is performed. The results of the the keyword search and the line analysis are combined to give the search regions for extracting the relevant data contained in the invoice. This analysis will become part of a larger invoice interpretation system which is currently under development.