write_ocrT_write_ocrWriteOcrWriteOcrwrite_ocr (算子名称)
名称
write_ocrT_write_ocrWriteOcrWriteOcrwrite_ocr — Writing an OCR classifier into a file.
警告
write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr is obsolete and is only provided for
reasons of backward compatibility. 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 该算子 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 (input_control) ocr_box → HOCRBox, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
ID of the OCR classifier.
FileNameFileNameFileNameFileNamefileNamefile_name (input_control) filename.write → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the file for the OCR classifier (without extension).
Default:
'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, 该算子
write_ocrwrite_ocrWriteOcrWriteOcrWriteOcrwrite_ocr 返回值 2 (
H_MSG_TRUE)
.
Otherwise an exception will be raised.
可能的前置算子
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
模块
OCR/OCV