{
	"executor": {
		"executorType": "sequentialExecutor",
		"sequence": [ "start", "checkRuntimeMem", "inputToCVMat", "inputToFloatArray", "perspectiveTransfrom", "cvtColor","resizeLimitSizeForDirect","paddingForDirect","convertToForDirect","transposeForDirect","CVMatToTensorForDirect","inferForDirect","OcrDirectRecPost","rotatemat", "resize", "paddingFilterMin", "convertTo", "transpose", "CVMatToTensor", "infer", "OcrRecWithBoxPost", "final" ],
		"dataStream": {
			"checkRuntimeMem": {
				"input": [ "srcImage" ]
			},
			
			"inputToCVMat": {
				"input": [ "srcImage" ],
				"output": [ "InputToCVMatOutput" ]
			},
			"inputToFloatArray": {
				"input": [ "boxCoordinates" ],
				"output": [ "InputToFloatArrayOutput" ]
			},
			"perspectiveTransfrom": {
				"input": [ "InputToFloatArrayOutput", "InputToCVMatOutput" ],
				"output": [ "transfromOutput", "transfromOutputForPost" ]
			},
			"cvtColor": {
				"input": [ "transfromOutput" ],
				"output": [ "cvtColorOutputForDirect","cvtColorOutputForOcrWithBox" ]
			},		
			"resizeLimitSizeForDirect": {
				"input": [ "cvtColorOutputForDirect" ],
				"output": [ "resizeOutputForDirect" ]
			},
			"paddingForDirect": {
				"input": [ "resizeOutputForDirect" ],
				"output": [ "paddingOutputForDirect" ]
			},
			"convertToForDirect": {
				"input": [ "paddingOutputForDirect" ],
				"output": [ "convertToOutputForDirect" ]
			},
			"transposeForDirect": {
				"input": [ "convertToOutputForDirect" ],
				"output": [ "transposeOutputForDirect" ]
			},
			"CVMatToTensorForDirect": {
				"input": [ "transposeOutputForDirect" ],
				"output": [ "CVMatToTensorOutputForDirect" ]
			},
			"inferForDirect": {
				"input": [ "CVMatToTensorOutputForDirect" ],
				"output": [ "inferOutputForDirect" ]
			},
			"OcrDirectRecPost": {
				"input": ["inferOutputForDirect"],
				"output": [ "OcrDirectRecPostOutput","rotateDegree" ]
			},
			"rotatemat": {
				"input": [ "rotateDegree","cvtColorOutputForOcrWithBox" ],
				"output": [ "rotatematOutput" ]
			},		
			"resize": {
				"input": [ "rotatematOutput" ],
				"output": [ "resizeOutput" ]
			},
			"paddingFilterMin": {
				"input": [ "resizeOutput" ],
				"output": [ "paddingOutput" ]
			},
			"convertTo": {
				"input": [ "paddingOutput" ],
				"output": [ "convertToOutput" ]
			},
			"transpose": {
				"input": [ "convertToOutput" ],
				"output": [ "transposeOutput" ]
			},
			"CVMatToTensor": {
				"input": [ "transposeOutput" ],
				"output": [ "CVMatToTensorOutput" ]
			},
			"infer": {
				"input": [ "CVMatToTensorOutput" ],
				"output": [ "inferOutput" ]
			},
			"OcrRecWithBoxPost": {
				"input": [ "inferOutput", "transfromOutputForPost","OcrDirectRecPostOutput" ],
				"multipleOutput": [
					{
						"name": [ "outputWords" ],
						"type": "text"
					},
					{
						"name": [ "outputWordBoxs" ],
						"type": "twoDimIntArray"
					},
					{
						"name": [ "outputConfidence" ],
						"type": "float"
					}
				]
			}
		}
	},
	"node": {
		"start": {
			"nodeType": "StartNode"
		},
		"checkRuntimeMem": {
			"nodeType": "CheckRuntimeMemNode",
			"imageMemThreshold": {
				"1000000": [ 474, 100 ],
				"2250000": [ 474, 100 ],
				"4000000": [ 474, 100 ],
				"6250000": [ 487, 100 ],
				"9000000": [ 516, 100 ],
				"12250000": [ 551, 141 ],
				"16000000": [ 572, 162 ],
				"20250000": [ 612, 202 ],
				"25000000": [ 628, 218 ],
				"30250000": [ 672, 262 ],
				"36000000": [ 720, 310 ]
			}
		},
		"inputToCVMat": {
			"nodeType": "InputToCVMatNode",
			"releaseInputData": true
		},
		"inputToFloatArray": {
			"nodeType": "InputToFloatArrayNode"
		},
		"perspectiveTransfrom": {
			"nodeType": "PerspectiveTransformNode",
			"runtimePerspectiveMatrix": "tranformMatrix"
		},
		"cvtColor": {
			"nodeType": "CvtColorNode",
			"code": "RGB"
		},
		"resizeLimitSizeForDirect": {
			"nodeType": "ResizeLimitSizeNode",
			"width": -1,
			"height": 48,
			"equalProportion": true,
			"equalProportionScaleMode": 1,
			"scaleLimitSize":192
		},
		"paddingForDirect": {
			"nodeType": "PaddingNode",
			"width": 192,
			"height": 48,
			"borderType": 0,
			"makeBorderType": 1
		},
		"convertToForDirect": {
			"nodeType": "ConvertToNode",
			"rtype": 5,
			"alpha": 0.007843137254902,
			"beta": -1
		},
		"transposeForDirect": {
			"nodeType": "TransposeNode",
			"count": 3
		},
		"CVMatToTensorForDirect": {
			"nodeType": "CVMatToTensorNode",
			"elemsize": 4,
			"name": "serving_default_x:0",
			"layout": [ "n", "c", "h", "w" ]
		},
		"inferForDirect": {
			"nodeType": "InferenceNode",
			"backendType": 3,
			"precision": 0,
			"modelFileNames": [ "textbox_cls_v1.xml","textbox_cls_v1.bin" ]
		},
		"OcrDirectRecPost": {
			"nodeType": "OCRDirectRecPostNode"
		},		
		"rotatemat": {
			"nodeType": "RotateMatNode"
		},		
		"resize": {
			"nodeType": "ResizeNode",
			"width": -1,
			"height": 48,
			"equalProportion": true,
			"equalProportionScaleMode": 1
		},
		"paddingFilterMin": {
			"nodeType": "PaddingFilterMinNode",
			"width": 320,
			"height": 48,
			"borderType": 0,
			"makeBorderType": 1,
			"isDynamicWidth": true
		},
		"convertTo": {
			"nodeType": "ConvertToNode",
			"rtype": 5,
			"alpha": 0.007843137254902,
			"beta": -1
		},
		"transpose": {
			"nodeType": "TransposeNode",
			"count": 3
		},
		"CVMatToTensor": {
			"nodeType": "CVMatToTensorNode",
			"elemsize": 4,
			"name": "serving_default_x:0",
			"layout": [ "n", "c" , "h", "w"]
		},
		"infer": {
			"nodeType": "InferenceNode",
			"backendType": 3,
			"precision": 0,
			"modelFileNames": [ "textbox_rec_v2.xml", "textbox_rec_v2.bin" ]
		},
		"OcrRecWithBoxPost": {
			"nodeType": "OCRRecWithBoxPostNode",
			"charNum": 6625,
			"maxRatio": 6.666666,
			"vocabularyFileName": "ppocr_keys_v1.txt",
			"runtimePerspectiveMatrix": "tranformMatrix"
		},
		"final": {
			"nodeType": "FinalNode",
			"release": ["srcImage"]
		}
	}
}