cv4_ocr_create

Tesseract OCR 生成

cv4_ocr_create id, tessdata_dir, lang, oem, psm

id : 新規作成する OCR ハンドル
tessdata_dir : tessdata フォルダパス (eng.traineddata 等を置く)
lang : 言語コード ("eng", "jpn" 等)
oem : OCR エンジンモード (既定 3=DEFAULT)
psm : ページセグメンテーションモード (既定 3=AUTO)

(プラグイン / モジュール : hspcv4)

解説

cv::text::OCRTesseract を生成します。
tessdata フォルダに対応する traineddata ファイルが必要です。

情報

プラグイン / モジュールhspcv4
バージョン0.1
作成日2026/04/12
著作者HNWorks / IronHSP
URLhttps://github.com/
備考hspcv4.as をインクルードすること。
OpenCV 4.12.0 を静的リンクした 32bit / 64bit DLL です。
タイプ拡張命令
グループhspcv4 OCR
対応環境
  • Windows 版 HSP
hs ファイルhsphelp\hspcv4.hs