不了解此pytesseract初始化错误

时间:2018-10-19 16:11:49

标签: python python-tesseract

这是我运行时的代码,它给出一个错误,它未在Windows中设置变量,但已安装,还有traindata,关于stackoverflow和github的解决方案,那里有一些想法,但他们确实做到了不帮我!

<?php
if(isset($_POST["Row"])){
    $rlist = $_POST["Row"];
    //$col = $_POST["Col"];
    $fname =($_POST["Fname"]);
    $fname = $fname . ".csv";
    $rArray = explode("-",$rlist);
    $totalR = count($rArray);
    $fp = fopen($fname, 'w');
    for($i =0; $i<$totalR;$i++){
        $row = $rArray[$i];
        $srow =explode(",",$row); 
        array_push($srow,"\n");
        fputcsv($fp,$srow);
    }
fclose($fp);
}
?>

错误:

image = Image.open(create_path)
print(pytesseract.image_to_string(image))

0 个答案:

没有答案