IdeaCredIdeaCred

macamp0328/photo-signal

60

Recognizes images and plays music

What's novel

No qr codes, art exhibit supplement

Code Analysis

10 files read · 3 rounds

A mobile-first camera app that recognizes printed photographs via client-side DCT-based perceptual hashing (pHash) with perspective rectification, then plays the associated concert audio with crossfading and displays metadata.

Strengths

Genuinely deep computer vision implementation (DCT pHash, homography-based perspective rectification, Sobel/morphological rectangle detection) all written from scratch with performance optimizations (precomputed cosine tables, SWAR popcount, Welford's algorithm, OffscreenCanvas in Web Workers). The recognition pipeline is multi-tiered with adaptive delays, quality gating, cross-concert margin checking, and blur hysteresis — production-grade logic, not a toy.

Weaknesses

The 75KB usePhotoRecognition hook, while well-organized, concentrates a large amount of stateful orchestration logic in a single React hook, making it harder to reason about and test in isolation compared to a more decomposed state machine or reducer approach. The rectangle detection, while impressive, uses a simplified Canny (single-threshold Sobel) and basic flood-fill contour tracing that may be less robust than a proper Canny + RANSAC pipeline for heavily occluded or low-contrast photos.

Score Breakdown

Innovation
5 (25%)
Craft
53 (35%)
Traction
6 (15%)
Scope
63 (25%)

Signal breakdown

Innovation

Not Fork+1
Code Novelty+1
Concept Novelty+2

Craft

Ci+5
Tests+8
Polish+2
Releases+0
Has License+0
Code Quality+27
Readme Quality+15
Recent Activity+7
Structure Quality+5
Commit Consistency+5
Has Dependency Mgmt+5

Traction

Forks+0
Stars+6
Hn Points+0
Watchers+0
Early Traction+0
Devto Reactions+0
Community Contribs+4

Scope

Commits+8
Languages+8
Subsystems+13
Bloat Penalty+0
Completeness+6
Contributors+8
Authored Files+15
Readme Code Match+3
Architecture Depth+7
Implementation Depth+8

Evidence

Commits

1126

Contributors

5

Files

329

Active weeks

24

TestsCI/CDREADMELicenseContributing

Repository

Language

TypeScript

Stars

1

Forks

0

License

—