Pass value from console to page

0

The program reads text from this image " new_img.jpg ". It reads perfectly, only goes straight to the console. How would you bring this value to my page? The purpose is to verify that the text is the same as the one the user entered.

NOTE: This script is right on my page that is in php format.

<script>
Tesseract.recognize('imagens/new_img.jpg')
.then(function(result){
    console.log(result.text)
})
    </script>
    
asked by anonymous 01.03.2018 / 03:57

0 answers