MCPcopy Create free account
hub / github.com/Souls-R/GetDeck / process

Method process

app/utils/recognition.ts:209–238  ·  view source on GitHub ↗

* 直接从源 Canvas 中裁剪并缩放到目标尺寸,返回 Uint8Array 供 WASM 使用 * 避免了中间的 ImageData 创建和额外的 Canvas 分配

(
        sourceCtx: CanvasRenderingContext2D,
        box: Box,
        cardType: { width: number; height: number; left: number; top: number; right: number; bottom: number }
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

getProcessDataURLMethod · 0.95
useRecognitionFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected