Skip to content

Instantly share code, notes, and snippets.

@huks0
huks0 / cellrecognition.py
Last active October 1, 2024 09:21
A table detection, cell recognition and text extraction algorithm to convert tables in images to excel files, using pytesseract and open cv.
import cv2
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import csv
try:
from PIL import Image
except ImportError:
import Image