{
	"executor": {
		"executorType": "sequentialExecutor",
		"sequence": [ "start", "checkRuntimeMem", "inputToCVMat", "inputToFloatArray", "perspectiveTransfrom", "cvtColor", "resize", "padding", "convertTo", "transpose", "CVMatToTensor", "infer", "ocrrecognizePost", "final" ],
		"dataStream": {
			"checkRuntimeMem": {
				"input": [ "srcImage" ]
			},
			
			"inputToCVMat": {
				"input": [ "srcImage" ],
				"output": [ "InputToCVMatOutput" ]
			},
			"inputToFloatArray": {
				"input": [ "boxCoordinates" ],
				"output": [ "InputToFloatArrayOutput" ]
			},
			"perspectiveTransfrom": {
				"input": [ "InputToFloatArrayOutput", "InputToCVMatOutput" ],
				"output": [ "transfromOutput" ]
			},
			"cvtColor": {
				"input": [ "transfromOutput" ],
				"output": [ "cvtColorOutputForOcrWithBox" ]
			},		
			"resize": {
				"input": [ "cvtColorOutputForOcrWithBox" ],
				"output": [ "resizeOutput" ]
			},
			"padding": {
				"input": [ "resizeOutput" ],
				"output": [ "paddingOutput" ]
			},
			"convertTo": {
				"input": [ "paddingOutput" ],
				"output": [ "convertToOutput" ]
			},
			"transpose": {
				"input": [ "convertToOutput" ],
				"output": [ "transposeOutput" ]
			},
			"CVMatToTensor": {
				"input": [ "transposeOutput" ],
				"output": [ "CVMatToTensorOutput" ]
			},
			"infer": {
				"input": [ "CVMatToTensorOutput" ],
				"output": [ "inferOutput" ]
			},
			"ocrrecognizePost": {
				"input": [ "inferOutput"],
				"multipleOutput": [
					{
						"name": [ "outputWords" ],
						"type": "text"
					},
					{
						"name": [ "outputWordBoxs" ],
						"type": "twoDimIntArray"
					}
				]
			}
		}
	},
	"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": "GRAY"
		},
		"resize": {
			"nodeType": "ResizeNode",
			"height": 32,
			"width": 640,
			"equalProportion": true,
			"equalProportionScaleMode": 0
		},
		"padding": {
            "nodeType": "PaddingNode",
            "width": 640,
            "height": 32,
            "borderType": 0,
            "makeBorderType": 0,
            "scalarArray": [255, 255, 255, 0]
        },
		"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": 0,
			"precision": 0,
			"modelFileNames": [ "text_recognize_v1.tflite" ]
		},
		"ocrrecognizePost": {
			 "nodeType": "OCRRecognizePostNode"
		},
		"final": {
			"nodeType": "FinalNode",
			"release": ["srcImage"]
		}
	}
}