I have a problem with the current tesseract I use tesseract in PHP coding 
like under 


<?php

if(isset($_FILES['image'])){

$total = count($_FILES['image']['name']);

for( $i=0 ; $i < $total ; $i++ ) {

$file_name = $_FILES['image']['name'][$i];

$file_tmp =$_FILES['image']['tmp_name'][$i];

move_uploaded_file($file_tmp,"image1/".$file_name);

echo "<h3>Image Upload Success</h3>";

echo '<img src="image1/'.$file_name.'" style="width:100%">';


shell_exec('"C:\\Program Files (x86)\\Tesseract-OCR\\tesseract.exe" 
"D:\\xampp\\htdocs\\Image_OCR\\Image1\\'.$file_name.'" out');


echo "<br><h3>OCR after reading</h3><br><pre>";


$myfile = fopen("out.txt", "r") or die("Unable to open file!");

echo fread($myfile,filesize("out.txt"));

fclose($myfile);

echo "</pre>";

}

}

?> 


but I face a problem my image is .jpg and it is numeric and I found output 
in unread format can any one help me how can I got right text I send image 
for test

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/ef9acce9-dff9-4dfd-bec5-a9da254f68ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to