Skip to content
longsizhuoPublic

About

Turn any image into a layered, interactive holographic card · 把任意照片自动切成前中后景,每层各上各的箔面,渲染成可交互的全息闪卡

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Repository files navigation

HoloCard

English | 中文

npm @holocard/player

HoloCard

HoloCard splits a photo into layers automatically and renders it as an interactive holographic card: the server estimates depth, separates the image into foreground, middle and background layers, assigns each layer its own foil, and the card turns with the pointer or device tilt. Live site: https://holocard.longsizhuo.com

The foil effects and interaction are ported from pokemon-cards-css (Simon Goellner, GPL-3.0). That project requires a hand-drawn foil mask for every card; HoloCard generates the masks with a layering algorithm, so any photo can become a card.

Documentation

The full documentation is published at https://holocard.longsizhuo.com/docs/en/ ; the sources are in docs-site/.

Topic Link
Guide /docs/en/
API /docs/en/api/
Player @holocard/player /docs/en/player/
File format .layers /docs/en/format/
Local development and verification scripts /docs/en/develop/
Architecture, layering pipeline, renderer /docs/en/develop/architecture
Self-hosting /docs/en/deploy/

The operations runbook for the hosted site (servers, staging, releases) is in deploy/README.md (Chinese).

Quick start

corepack enable && pnpm install
pnpm dev            # front end: http://localhost:5273
pnpm dev:server     # layering service: http://localhost:8791 (needs model weights; see Local development)
pnpm docs:dev       # documentation site

License

GPL-3.0-only; see LICENSE.

About

Turn any image into a layered, interactive holographic card · 把任意照片自动切成前中后景,每层各上各的箔面,渲染成可交互的全息闪卡

Topics

Resources

Stars

10 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages