{
    "debug": {
        "comment_debuglevel": "0:error/init, 1:key, 2:info, 3:debug",
        "debuglevel": 1,

        "comment_watermarker": "0:disable, >=1:enable",
        "watermarkerEn": 0,

        "comment_bypass": "0:disable, >=1:enable",
        "bypassEn": 0,

        "comment_dump": "0:disable, >=1:enable",
        "dumpEn": 0
    },

    "aimodel": {
        "0": {
            "watermark_string": "model_frozen_v13_0706_dx5",
            "model_path": "/vendor/camera3rd/nti/document/model_frozen_v13_0706_dx5.vdnn",

            "comment_framework": "vdnn / qnn / hta/ eden / neuron",
            "framework": "vdnn",

            "comment_powerLevel": "100 / 90 / 80 / 70 / 60 / 50 / 40",
            "powerLevel": 100,

            "comment_device": "3:qnn / 4: neuron",
            "device": 4,

            "input_num": 5,
            "output_num": 1,

            "input_shape": [ 1, 12, 560, 560 ],
            "output_shape": [ 1, 12, 560, 560 ],

            "enable": 1,

            "comment_overlap_mode": "0: average, 1:linear ",
            "overlap_mode": 0,
            "overlap_w": 36,
            "overlap_h": 36,

            "comment_patch_pad": "overlap region boudary part for cut, this region is inside overlap region",
            "patch_pad_w": 12,
            "patch_pad_h": 12,

            "comment_manul_space2depth": "0: Pixel Unshuffle on NPU / 1: Pixel Unshuffle on CPU",
            "manul_space2depth": 1,

            "comment_manul_depth2space": "0: Pixel Shuffle on NPU / 1: Pixel Shuffle on CPU",
            "manul_depth2space": 1

        }
    },

    "allinfocus": {
        "0": {
            "comment_reference_frame_id": "choose reference frame, 0~x : frame index",
            "reference_frame_id": 0,

            "comment_algorithm_reference_frame_id": "choose reference frame for algorithm, default: input num // 2",
			"algorithm_reference_frame_id": 0,

            "comment_ref_cond_afposition": "ref cond afposition",
            "ref_cond_afposition": 5000,

            "comment_ref_cond_highlight_thres": "ref_cond_highlight_thres",
            "ref_cond_highlight_thres": 245,

            "comment_ref_cond_highlightcnt": "ref_cond_highlightcnt",
            "ref_cond_highlight_cnt": 1000000,

            "comment_enable_align_fov": "align fov, 0:disable, 1:enable",
            "enable_align_fov": 1,

            "comment_align_fov_relative": "align fov, 0:disable, 1:enable",
            "enable_align_fov_relative": 1,

            "comment_min_afposition": "setting for bound min afposition",
            "min_afposition": 11,

            "comment_max_afposition": "setting for bound max afposition",
            "max_afposition": 500,

            "comment_min_fov_factor": "setting for minimum fov factor",
            "min_fov_factor": 0.926297,

            "comment_max_fov_factor": "setting for maximum fov factor",
            "max_fov_factor": 1.0,

            "comment_enable_align_ref": "align ref, 0:disable, 1:enable",
            "enable_align_ref": 1,

            "comment_enable_block_align_ref": "align ref, 0:disable, 1:enable",
            "enable_block_align_ref": 0,

            "comment_blocksize": "fusion blocksize",
            "blocksize": 4,

            "comment_threadNum": "threadNum for global alignment, default: 1",
            "threadNum": 1,

            "comment_memPoolSize": "virtual memory of algorithm, magic number based on some tests", 
            "memPoolSize": 16,

            "alignment": {
                "comment_alignmethod": "0:opticalflow_method, 1:multi-H_method, 2:blockmatch+opticalflow_method, 3:homography_method, 4:pbm_method",
                "alignmethod": 0,

                "comment_opticalflow_method": "0: farneback, 1:l1TV, 2:nti_dis, 3:l1_dis, 4:epic_flow, 5:eva",
                "opticalflowmethod": 2,

                "comment_finestScale": "1 / finestScale is the begin scale for alignment ",
                "finestScale": 1,

                "comment_global_alignment": "0:off, 1:on",
                "globalAlignment": 0,

                "disflow": {
                    "comment_dis_finest_scale": "finest layer of pyramid in dis optical flow, suggest to be default",
                    "disfinestscale": 3,

                    "comment_dis_patch_size": "patch size in inverse search, suggest to be default",
                    "dispatchsize": 32,

                    "comment_dis_patch_stride": "patch stride in inverse search, suggest to be default",
                    "dispatchstride": 12,

                    "comment_dis_gradient_descent_iterations": "iterations in inverse search processing",
                    "disiteration": 12,

                    "comment_dis_gradient_descent_iterations": "iterations in inverse search processing",
                    "disiterationLastLayer": [ 3, 3 ],

                    "comment_dis_variational_refinement_iterations": "refinement interations, suggest to be default",
                    "disrefinementiteration": 0,

                    "comment_dis_use_spatial_propagation": "whether use spatial propagation in inverse search, 0:off, 1:on, suggest to be default",
                    "dispropagation": 1
                },

                "evaflow": {
                    "init_config_actual_fps": 30,
                    "init_config_operational_fps": 30,
                    "init_config_am_fileter_config_conf_thresh": 150,
                    "init_config_am_filter_config_step_size": 0,
                    "init_config_am_filter_config_up_scale": 0,
                    "init_config_am_filter_config_output_int_only": 0,
                    "init_config_am_filter_config_output_format": 0,
                    "init_config_conf_output_enable": 1,
                    "init_config_slic_output_enable": 1,
                    "init_config_mv_pack_format": 1,
                    "init_config_of_direction": 1,

                    "frame_config_hole_fill_enable": 1,
                    "frame_config_am_filter_enable": 1,
                    "frame_config_census_config_cur_noise_thresh_offset": 0,
                    "frame_config_census_config_cur_noise_thresh_scale": 0,
                    "frame_config_census_config_ref_noise_thresh_offset": 0,
                    "frame_config_census_config_ref_noise_thresh_scale": 0,
                    "frame_config_flatness_thresh": 1,
                    "frame_config_p1_config_adap_enable": 1,
                    "frame_config_p1_config_default_value": 11,
                    "frame_config_p1_config_edge_value": 10,
                    "frame_config_p1_config_smooth_value": 22,
                    "frame_config_p1_config_edge_thresh": 8,
                    "frame_config_p1_config_smooth_thresh": 2,
                    "frame_config_p2_config_adap_enable": 1,
                    "frame_config_p2_config_default_value": 33,
                    "frame_config_p2_config_edge_value": 22,
                    "frame_config_p2_config_smooth_value": 63,
                    "frame_config_conf_weight_occlusion": 8,
                    "frame_config_conf_weight_mv_variance": 8,
                    "frame_config_conf_weight_ds_mv_variance": 8,
                    "frame_config_conf_weight_flatness": 8,
                    "frame_config_flatness_override": 0,
                    "frame_config_ds_thresh": 2,
                    "frame_config_mv_var_thresh": 2,
                    "frame_config_hole_fill_config_high_conf_thresh": 150,
                    "frame_config_hole_fill_config_fill_conf_thresh": 180,
                    "frame_config_hole_fill_config_min_valid_pixels": 1,
                    "frame_config_hole_fill_config_zero_override": 0,
                    "frame_config_mv_cand_prun": 0,
                    "frame_config_ds4_max_overwrite": 0

                },
                "mismatch": {
                    "comment_mismatch": "using mismatch map to guide multi frame merge, 0:0ff, 1:on",
                    "mismatchEnable": 1,

                    "comment_mismatchC": "ralated to noise level,range[0.1,5]",
                    "mismatchC": [ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2 ],

                    "comment_mismatchMax": "range[0,1]",
                    "mismatchMax": [ 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8, 0.8 ],

                    "comment_mismatchHR": "calculating mismatch map in the high resolution, 0:0ff, 1:on",
                    "mismatchHREnable": 0,

                    "comment_mismatchHR_BlockSize": "the neighborhood block size when calculating mismatch map in the high resolution, odd number only",
                    "mismatchHRBlockSize": 3
                }
            }
        }
    }
}
