@@ -163,10 +163,10 @@ Recognize the text in one image and print it in a `pre` element.
163163<script >
164164async function RecognizeOnePage (index ){
165165 let result = await DWTObject .Addon .OCRKit .Recognize (index);
166- PrintPrettyResult (result);
166+ PrettyPrintResult (result);
167167}
168168
169- function PrintPrettyResult (result ){
169+ function PrettyPrintResult (result ){
170170 let prettyResult = " " ;
171171 result .blocks .forEach (block => {
172172 block .lines .forEach (line => {
@@ -295,7 +295,7 @@ Here is the complete code of the demo.
295295 if (DWTObject .CurrentImageIndexInBuffer != - 1 ) {
296296 let imageID = DWTObject .IndexToImageID (DWTObject .CurrentImageIndexInBuffer );
297297 if (imageID in storedOCRResults) {
298- PrintPrettyResult (storedOCRResults[imageID]);
298+ PrettyPrintResult (storedOCRResults[imageID]);
299299 } else {
300300 document .getElementById (" result" ).innerText = " " ;
301301 }
@@ -380,10 +380,10 @@ Here is the complete code of the demo.
380380 let result = await DWTObject .Addon .OCRKit .Recognize (index,{settings: {language: language}});
381381 console .log (result);
382382 storedOCRResults[result .imageID ] = result;
383- PrintPrettyResult (result);
383+ PrettyPrintResult (result);
384384 }
385385
386- function PrintPrettyResult (result ){
386+ function PrettyPrintResult (result ){
387387 let prettyResult = " " ;
388388 result .blocks .forEach (block => {
389389 block .lines .forEach (line => {
0 commit comments