MediaWiki:Common.js: Difference between revisions
OCR enrich UX; handwriting / vision flag |
OCR enrich UX; handwriting / vision flag |
||
| Line 2,472: | Line 2,472: | ||
var $forceVision = $('<label>', { 'class': 'ocr-force-vision' }).append( | var $forceVision = $('<label>', { 'class': 'ocr-force-vision' }).append( | ||
$('<input>', { type: 'checkbox', checked: mwApiBool(job.force_vision) }), | $('<input>', { type: 'checkbox', checked: mwApiBool(job.force_vision) }), | ||
' Handwriting / hard scan ( | ' Handwriting / hard scan (print OCR first; paid vision only if weak)' | ||
); | ); | ||
if (!cfg.llmVision) { | if (!cfg.llmVision) { | ||
| Line 2,845: | Line 2,845: | ||
var $visionMode = $('<label>', { 'class': 'ocr-force-multi-upload' }).append( | var $visionMode = $('<label>', { 'class': 'ocr-force-multi-upload' }).append( | ||
$('<input>', { type: 'checkbox' }), | $('<input>', { type: 'checkbox' }), | ||
' Handwriting / hard scan ( | ' Handwriting / hard scan (free print OCR first; vision only if needed)' | ||
); | ); | ||
var $btn = $('<button>', { type: 'button', text: 'Upload & OCR' }); | var $btn = $('<button>', { type: 'button', text: 'Upload & OCR' }); | ||
| Line 2,881: | Line 2,881: | ||
var $vision2 = $('<label>', { 'class': 'ocr-force-multi-upload' }).append( | var $vision2 = $('<label>', { 'class': 'ocr-force-multi-upload' }).append( | ||
$('<input>', { type: 'checkbox' }), | $('<input>', { type: 'checkbox' }), | ||
' Handwriting / hard scan ( | ' Handwriting / hard scan (vision only if print OCR is weak)' | ||
); | ); | ||
var $btn2 = $('<button>', { type: 'button', text: 'Upload & OCR' }); | var $btn2 = $('<button>', { type: 'button', text: 'Upload & OCR' }); | ||