blob: 100a5dba47583db8d04326d89a61f919d5b84593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
<?xml version="1.0" encoding="utf-8"?>
<Config>
<portraitSegmentKFAlg enable="1"> <!-- 0: disable 1: enable -->
<srcRGBImageKFWidth> 480 </srcRGBImageKFWidth>
<srcRGBImageKFHeight> 480 </srcRGBImageKFHeight>
<dstMaskImageKFWidth> 120 </dstMaskImageKFWidth>
<dstMaskImageKFHeight> 120 </dstMaskImageKFHeight>
<modelPath>/vendor/etc/camera/cnnmodel/imagesegmentation/body_seg_rt_480.om</modelPath>
<dataType>0</dataType> <!-- 0, 不归一化,1,除以255,归一化0到1, 2, 除以255,再减均值并除以标准差 -->
</portraitSegmentKFAlg>
<renderNetAlg enable="1"> <!-- 0: disable 1: enable -->
<srcRenderWidth> 480 </srcRenderWidth>
<srcRenderHeight> 272 </srcRenderHeight>
<srcCocWidth> 480 </srcCocWidth>
<srcCocHeight> 270 </srcCocHeight>
<modelPath>/vendor/etc/camera/cnnmodel/dualcamera/RenderNet.om</modelPath>
<sigmaDepthFocusOffsetMain> 0.0 </sigmaDepthFocusOffsetMain>
<sigmaDepthFocusOffsetTele> -0.4 </sigmaDepthFocusOffsetTele>
<sigmaFnumOffsetMain> 0.14 </sigmaFnumOffsetMain>
<sigmaFnumOffsetTele> 0.25 </sigmaFnumOffsetTele>
<renderNetMaxFEMain> 0.9 </renderNetMaxFEMain>
<renderNetMaxFETele> 0.6 </renderNetMaxFETele>
<renderNetSigCommonCoef> 0.58 </renderNetSigCommonCoef>
<useAIV> 1 </useAIV>
<sigmaBaseLineCoefMain> 1.0 </sigmaBaseLineCoefMain>
<sigmaBaseLineCoefTele> 1.0 </sigmaBaseLineCoefTele>
</renderNetAlg>
<distanceSigmaCoefBig> 220 </distanceSigmaCoefBig>
<distanceSigmaCoefSmall> 170 </distanceSigmaCoefSmall>
<boxFilter>
<radius> 2 </radius>
</boxFilter>
<dofBoundarySmooth>
<smoother> 8 </smoother> <!--the greater, the smoother-->
</dofBoundarySmooth>
<isBlurOnMask enable="0"> <!-- 0: disable 1: enable -->
</isBlurOnMask>
<drawFocusPoint enable="0">
</drawFocusPoint>
<totalSendLastFrameCnt> 5 </totalSendLastFrameCnt>
<bokehStartSmoothFrameNum> 12 </bokehStartSmoothFrameNum>
<guideResize enable="0"> <!-- 0: disable 1: enable -->
</guideResize>
<erodeSegMaskEnable enable="0">
<radius> 1 </radius>
<ratio> 1 </ratio>
</erodeSegMaskEnable>
<denseDmapOptAlg enable="1"> <!-- 0: disable 1: enable -->
</denseDmapOptAlg>
<bokehParam>
<bokehCoefRatio> 1.2</bokehCoefRatio>
<zoomRatioConvertNode> 3.67 </zoomRatioConvertNode>
<circleFilterTransitionEnable> 1 </circleFilterTransitionEnable> <!--大尺度圆形滤波使能-->
</bokehParam>
<eisCompensationParam>
<enableEisComp> 0 </enableEisComp> <!--eisWarp标志-->
<fovCompX> 7 </fovCompX>
<fovCompY> 4 </fovCompY>
<fovCompWidth> 14 </fovCompWidth>
<fovCompHeight> 8 </fovCompHeight>
<resolutionCompFullx> 1 </resolutionCompFullx>
<resolutionCompFully> 6 </resolutionCompFully>
<resolutionComp219x> 1 </resolutionComp219x>
<resolutionComp219y> 9 </resolutionComp219y>
<resolutionComp720Px> 1 </resolutionComp720Px>
<resolutionComp720Py> 0 </resolutionComp720Py>
<widthCompCLT>1</widthCompCLT>
</eisCompensationParam>
<nullDepthSendLastFrameTotal> 10 </nullDepthSendLastFrameTotal>
<transFrameNum> 32 </transFrameNum>
<trackMaskCntTotal> 16 </trackMaskCntTotal>
<delayFrameNum> 0 </delayFrameNum>
<bokehCiclePara>
<tfCoef> 60 </tfCoef>
</bokehCiclePara>
<segBinDilateTimes> 2 </segBinDilateTimes>
<flareEnhance>
<flareEnhanceEnable enable="1"> <!-- 0: disable 1: enable -->
</flareEnhanceEnable>
<dgammaEnhanceEnable enable="0"> <!-- 0: disable 1: enable -->
</dgammaEnhanceEnable>
<degammaCoef> 2.0 </degammaCoef>
<feQuantGain> 100 </feQuantGain>
<degammaQuantGain> 100 </degammaQuantGain>
<brightenCoef> 2.0 </brightenCoef>
<minCocTh> 5 </minCocTh>
<maxCocTh> 10 </maxCocTh>
</flareEnhance>
<sigmaCurveParam>
<commonSlopCoef> 1.15 </commonSlopCoef>
<dofCuvreParamA> 3.0 </dofCuvreParamA>
<dofCuvreParamB> 0.25 </dofCuvreParamB>
</sigmaCurveParam>
</Config>
|