mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #480] [CLOSED] serve, web: a space-free vision temp dir, lazy vision, and a Chinese UI #2658
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2658
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/480
Author: @ziphao2010
Created: 10/2/2026
Status: ❌ Closed
Base:
main← Head:vision-lazy-cn-ui📝 Commits (1)
f93b0f5serve, web: a space-free vision temp dir, lazy vision, and a Chinese UI📊 Changes
5 files changed (+519 additions, -16 deletions)
View changed files
📝
serve/server.py(+43 -14)📝
serve/test_server.py(+33 -0)➕
serve/web/i18n.js(+437 -0)📝
serve/web/index.html(+3 -1)📝
serve/web/monitor.html(+3 -1)📄 Description
Fixes vision on Windows machines where
%TEMP%(or the user name) contains a space, makes--lazywork with vision enabled, and adds a Chinese UI.serve/server.py:Vision.work_dir()now picks a temporary directory whose path has no space. The encoder splits itsENC <image> <out>line at the last space (tools/vision/strata_vision.cpp: parse_enc), so a space in the temp path made every image fail withUnable to open file.serve/server.py:--lazystarts the encoder on the first request instead of refusing to start when vision is on;Vision(start=False)plusalive()/restart()/close()handle an encoder that has not started yet.serve/test_server.py: tests for both.serve/web:i18n.js(Chinese dictionary) loaded byindex.htmlandmonitor.html; both pages arelang="zh-CN"and carry a data-URI favicon.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.