Skip to content

AutoCSS

demo

A 2018 computer-vision prototype for translating hand-drawn website sketches into rough HTML/CSS scaffolds.

back to write-up
example sketches
dashboard
01 · inputlay2.jpg
dashboard input stage
inspectload the archived sketch photo
01 · input · notebook snippetload the archived sketch photo
source_path = source_dir / case.source_name
gray = cv2.imread(str(source_path), cv2.IMREAD_GRAYSCALE)
if gray is None:
    raise FileNotFoundError(f"Could not read {source_path}")

input_color = cv2.imread(str(source_path), cv2.IMREAD_COLOR)