Camera parameter table (arParamDisp) printed regardless of the log level
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 35/100
Direzione di ricerca
Read the loadCamera() call to arParamDisp() in WebARKit/WebARKitTrackers/WebARKitNFT/ARToolKitNFTCore.cpp and the logging behavior described for include/ARUtil/log.h and lib/SRC/AR/paramDisp.c. The issue leaves open whether to gate the output, keep it unconditional, or expose it separately, so clarify that decision before starting implementation. If gating is chosen, add stdout tests for INFO and WARN and review the CAMERA_DUMP filters in the two runtime-settings tests; done means the chosen behavior and tests agree.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem
ARToolKitNFTCore::loadCamera() (WebARKit/WebARKitTrackers/WebARKitNFT/ARToolKitNFTCore.cpp, around line 445) calls arParamDisp(). That prints the camera parameter table through ARLOG, which is a plain printf with no log-level check (include/ARUtil/log.h, lib/SRC/AR/paramDisp.c):
--------------------------------------
SIZE = 640, 480
Distortion factor: k1=..., k2=..., p1=..., p2=...
fx=... fy=... x0=... y0=... s=...
<camera matrix rows>
--------------------------------------
So the table is printed whatever arLogLevel / webarkitLogLevel is set to. Since 0.12.0 every other start-up line follows the log level. jsartoolkitNFT can now set it before the core is constructed, for webarkit/jsartoolkitNFT#677. With logLevel = Error, this table is the only native start-up output left.
To decide
It is still open whether the table should be silenced. It is useful when debugging a camera calibration, and some users may rely on seeing it.
- Gate it on the level. Call
arParamDisp()only whenarLogLevel <= AR_LOG_LEVEL_INFO. It keeps printing by default (INFO) and disappears at WARN or above. - Keep it unconditional, and document that it is printed whatever the level. jsartoolkitNFT's tests already tolerate it explicitly.
- Expose it separately, for example as a flag or a debug-only call.
If it is gated
- Change only the call site in the core.
paramDisp.cis vendored ARToolKit code. - Add a test that captures stdout at INFO and at WARN.
- In jsartoolkitNFT, delete the
CAMERA_DUMPfilter from the start-up silence test intests/vitest/runtime-settings.test.tsandtests/node/runtime-settings.test.js. A comment marks it as covering this gap.
To be bundled with #107, #110 and #111 in a single 0.12.1 release.
- Lingua principale
- C++
- Stelle
- 21
- Fork
- 8
- Merge medio
- 7h 20m
- PR unite (30g)
- 26
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di webarkit/WebARKitLib
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
webarkit/WebARKitLib#114 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
webarkit/WebARKitLib#107 ·
I maintainer di solito rispondono entro 1 giorno
-
configure(): an explicit logLevel equal to arLogLevel does not sync a divergent webarkitLogLevelAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 38/100
webarkit/WebARKitLib#111 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
webarkit/WebARKitLib#110 ·
I maintainer di solito rispondono entro 1 giorno
-
Sync workflow: handle a conflicting sync branch with no open PR, and PRs the workflow did not openApertaCI enhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
webarkit/WebARKitLib#92 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di webarkit/WebARKitLib
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA-RTX/NRI#312 ·
I maintainer di solito rispondono entro 1 giorno
-
permute_q_b_proj / permute_wv_proj accept scale factors from another deviceForse già presa @0z5a l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
deepseek-ai/FlashMLA#247 ·
I maintainer di solito rispondono entro 1 giorno
-
Linux npm packaging leaves workspace files that block subsequent CI checkoutForse già presa @Spockkk0225 l’ha presa oggi. Apertaci
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
alibaba/neug#1195 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni