MCPcopy Index your code
hub / github.com/azr/phash

github.com/azr/phash @v0.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.0 ↗ · + Follow
87 symbols 194 edges 27 files 40 documented · 46%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

phash Coverage ci.yml =====

A simple perceptual hashing library in Go.

Usage :

f, err := os.Open("image.jpg")
if err != nil {
    panic(err)
}
defer f.Close()
img, _, err := image.Decode(f)
if err != nil {
    panic(err)
}
hash1 := phash.DTC(img)
hash2 := phash.DTC(img)

if phash.Distance(hash1, hash2) == 0 {
    fmt.Println("these images sure do look alike.")
}

Core symbols most depended-on inside this repo

Unique
called by 8
geometry/triangle/triangle_sort.go
fixDet
called by 5
geometry/triangle/triangle_transfo.go
Bounds
called by 5
geometry/triangle/triangle.go
InPlaceRotation90
called by 4
geometry/rotation.go
WriteImageToPath
called by 4
cmd/utils.go
DTC
called by 3
dtc.go
sign
called by 3
geometry/triangle/triangle.go
DistanceInvalid
called by 3
geometry/triangle/possibilities.go

Shape

Function 38
Method 32
Struct 13
TypeAlias 4

Languages

Go100%

Modules by API surface

geometry/triangle/triangle_transfo.go12 symbols
geometry/triangle/triangle_sort.go9 symbols
geometry/triangle/triangle_transfo_test.go7 symbols
geometry/rotation.go7 symbols
cornerdetect/fast_9.go6 symbols
geometry/triangle/triangle.go5 symbols
geometry/triangle/possibilities.go5 symbols
geometry/point.go5 symbols
cornerdetect/fast_9.c.go4 symbols
geometry/rotation_test.go3 symbols
util_test.go2 symbols
geometry/util.go2 symbols

For agents

$ claude mcp add phash \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact