write_ocrT_write_ocrWriteOcrWriteOcrwrite_ocr (算子)
名称
write_ocrT_write_ocrWriteOcrWriteOcrwrite_ocr — 将 OCR 分类器写入文件。
警告
write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr 已过时,仅出于向后兼容性考虑而保留。 New applications should use the
MLP, SVM or CNN based operators instead.
签名
描述
算子 write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr writes the OCR classifier
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle into the file FileNameFileNameFileNameFileNamefileNamefile_name. Since the data
of the classifier will be lost when the program is finished, they
have to be stored after the training if the user wants to
use them again at a later execution of the program. The data can
then be read with the help of the operator read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr。The extension will be added automatically to the parameter
FileNameFileNameFileNameFileNamefileNamefile_name。
注意
The output file FileNameFileNameFileNameFileNamefileNamefile_name must be given without extension.
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
参数
OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle (输入控制) ocr_box → HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the OCR classifier.
FileNameFileNameFileNameFileNamefileNamefile_name (输入控制) filename.write → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the file for the OCR classifier (without extension).
默认值:
'my_ocr'
"my_ocr"
"my_ocr"
"my_ocr"
"my_ocr"
"my_ocr"
File extension:
.obc
结果
If the parameter OcrHandleOcrHandleOcrHandleOcrHandleocrHandleocr_handle is valid and the
indicated file can be written, the operator
write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr 返回值 2 ( H_MSG_TRUE )。否则将抛出异常。
可能的前趋
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box,
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box
可能的后继
do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMultido_ocr_multi,
do_ocr_singledo_ocr_singleDoOcrSingleDoOcrSingleDoOcrSingledo_ocr_single
另见
read_ocrread_ocrReadOcrReadOcrReadOcrread_ocr,
do_ocr_multido_ocr_multiDoOcrMultiDoOcrMultiDoOcrMultido_ocr_multi,
traind_ocr_class_boxtraind_ocr_class_boxTraindOcrClassBoxTraindOcrClassBoxTraindOcrClassBoxtraind_ocr_class_box,
trainf_ocr_class_boxtrainf_ocr_class_boxTrainfOcrClassBoxTrainfOcrClassBoxTrainfOcrClassBoxtrainf_ocr_class_box
模块
光学字符识别/光学字符验证