Here's comprehensive documentation for your No Man's Sky Glyph Detector web application:
A web application that detects and decodes portal glyph sequences from No Man's Sky screenshots using computer vision (OpenCV.js). Users can paste screenshots or navigate through a gallery of images to extract glyph sequences.
waitForOpenCV()export async function waitForOpenCV()
isGlyphs(tempImage, glyphSprite, cvInstance)export async function isGlyphs(tempImage, glyphSprite, cvInstance)
tempImage: Input image elementglyphSprite: Reference glyph sprite sheetcvInstance: OpenCV instancerenderGlyphString(glyphs, setSelectedGlyphIndex)export function renderGlyphString(glyphs, setSelectedGlyphIndex)
setupGlyphSpriteClick()export function setupGlyphSpriteClick(getSelectedGlyphIndex, setSelectedGlyphIndex)
export function setImages(data) // Sets image gallery
export function nextImage() // Navigates to next image
export function prevImage() // Navigates to previous image
export function showImage() // Displays image at index
setBodyBgColor(canvas)export function setBodyBgColor(canvas)
onOpenCVLoaded()Requirements:
Installation:
npm install -g http-server
http-server
Usage:
This documentation covers the core functionality and architecture of your glyph detection system. Would you like me to elaborate on any specific aspect or add additional sections?