阿尔哈曾 用于PHP中阿拉伯语OCR的Alhazen项目(仍处于Alpha之前的开发阶段) <?php // Set debug mode [true|false] $ debug = true ; include ( 'Alhazen.php' ); $ obj = new Alhazen (); // Load the page scan $ obj -> load ( 'sample-doc.jpg' ); // Get color for (needs only for check/debug) if ( $ debug ) $ c = ImageColorAllocate ( $ obj -> im , 0 , 0 , 255 ); // Analysis the document for ink