fix(scanner): escaneo QR ultra rapido con BarcodeDetector, jsQR optimizado y loop continuo

This commit is contained in:
unknown
2026-10-04 23:15:27 -06:00
parent 524a456bad
commit b0df669d39
3 changed files with 200 additions and 58 deletions
+4 -3
View File
@@ -779,10 +779,11 @@ app.get('/api/estudiantes/qr/:token', (req, res) => {
app.get('/api/qr-image/:token', async (req, res) => {
try {
const qrDataUrl = await QRCode.toDataURL(req.params.token, {
width: 300,
margin: 2,
width: 350,
margin: 3,
errorCorrectionLevel: 'M',
color: {
dark: '#0f172a',
dark: '#000000',
light: '#ffffff'
}
});