Skip to content

Instantly share code, notes, and snippets.

View alexlausz's full-sized avatar
🏠
Working from home

alexlausz

🏠
Working from home
View GitHub Profile
@smeschke
smeschke / paperReconstruct.py
Last active March 24, 2024 07:22
Python script that reconstructs torn sections of paper.
import cv2, numpy as np, random, math
# Find contour edges
# Find the edge that is torn
# use the hough line transform
# create a mask image where the lines and white on a black background
# check if the point is in a white or black region
# Rotate the torn edges
# Measure how much they overlap
# The rotation with the maximum overlap will be how they should align
@qti3e
qti3e / README.md
Last active January 12, 2026 15:29
List of file signatures and mime types based on file extensions