OCR verification tool
Paste data URLs here:
Paste labels here (one image ― one digit. Newlines, spaces, tabs, etc. are ignored):
If your labels are transposed somehow, you can put some JavaScript here to untranspose them.
// don't execute this if you don't know what the below means // the below example assumes your input_labels are arranged like this: // |A| |B| |C| |D| // |.| |.| |.| |.| // |.| |.| |.| |.| // |.| |.| |.| |.| // |.| |.| |.| |.| // |.| |.| |.| |.| // |.| |.| |.| |.| // ... // and your labels are AAAA...BBBB...CCCC...DDDD... // the below example will transform your labels to AAAABBBBCCCCDDDDAAAABBBBCCCCDDDD... var n_digits_per_col = 10; // 10 digits per column var n_rows = 62; // 62 rows per column var n_cols = 4; // number of columns // use match to create an array of substrings var regex = ".{1," + n_digits_per_col + "}"; var regex_obj = new RegExp(regex, "g"); var grouped_by_digits = input_labels_textarea.value.match(regex_obj); // transform var transformed = []; for (var row = 0; row < n_rows; row++) { for (var i = 0; i < n_cols; i++) { transformed.push(grouped_by_digits[i*n_rows + row]); } } // put result back into labels textarea input_labels_textarea.value = transformed.join("");
Execute transpose function
Start
Reset
Regenerate labels
Corrected labels:
Copy
If you need to re-transpose your labels, feel free to use this textarea for your transposition code.
// this code undoes the transposition above var n_digits_per_col = 10; // 10 digits per column var n_rows = 62; // 62 rows per column var n_cols = 4; // number of columns // use match to create an array of substrings var regex = ".{1," + n_digits_per_col + "}"; var regex_obj = new RegExp(regex, "g"); var grouped_by_digits = output_textarea.value.match(regex_obj); // transform var transformed = []; for (var i = 0; i < n_cols; i++) { for (var row = 0; row < n_rows; row++) { transformed.push(grouped_by_digits[row*n_cols + i]); } } // put result back into output labels textarea output_textarea.value = transformed.join("");
Execute
UI background color:
UI foreground color:
About