\hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property}{}\doxysection{io.\+agora.\+rtc2.\+video.\+Segmentation\+Property Class Reference}
\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property}\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}


Processing properties for background images.  


\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a7acc207f0af8c1fae78f43b2e2f6c351}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a7acc207f0af8c1fae78f43b2e2f6c351}} 
{\bfseries Segmentation\+Property} (int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_ad0314ffb2a02369191ec5aca397d2e50}{model\+Type}}, float \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a51ed2ebf1863644b506c1ce744735824}{green\+Capacity}})
\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_ad0314ffb2a02369191ec5aca397d2e50}{model\+Type}}
\item 
float \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a51ed2ebf1863644b506c1ce744735824}{green\+Capacity}}
\item 
int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_afcd6af26aee0ae71ac0adbc3fce8c44a}{screen\+Color\+Type}}
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a5300933c15b1a99c833d9a5452bb7b7d}{S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+AI}} = 1
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1bf01d79eda2945ffcd2bc6d9500da83}{S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+G\+R\+E\+EN}} = 2
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1d3d01313b11baa56f8586921e3f4a9c}{S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+A\+U\+TO}} = 0
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_adaf34a6d2165e45705df9b04349233af}{S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+G\+R\+E\+EN}} = 1
\item 
static final int \mbox{\hyperlink{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a0b5dd564f9d584167e6c59bfbb81c469}{S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+B\+L\+UE}} = 2
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Processing properties for background images. 

\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a5300933c15b1a99c833d9a5452bb7b7d}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a5300933c15b1a99c833d9a5452bb7b7d}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!SEG\_MODEL\_AI@{SEG\_MODEL\_AI}}
\index{SEG\_MODEL\_AI@{SEG\_MODEL\_AI}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{SEG\_MODEL\_AI}{SEG\_MODEL\_AI}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+AI = 1\hspace{0.3cm}{\ttfamily [static]}}

1\+: (Default) AI segmentation algorithm. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1bf01d79eda2945ffcd2bc6d9500da83}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1bf01d79eda2945ffcd2bc6d9500da83}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!SEG\_MODEL\_GREEN@{SEG\_MODEL\_GREEN}}
\index{SEG\_MODEL\_GREEN@{SEG\_MODEL\_GREEN}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{SEG\_MODEL\_GREEN}{SEG\_MODEL\_GREEN}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+G\+R\+E\+EN = 2\hspace{0.3cm}{\ttfamily [static]}}

2\+: Green screen segmentation algorithm. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1d3d01313b11baa56f8586921e3f4a9c}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a1d3d01313b11baa56f8586921e3f4a9c}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!SCREEN\_COLOR\_AUTO@{SCREEN\_COLOR\_AUTO}}
\index{SCREEN\_COLOR\_AUTO@{SCREEN\_COLOR\_AUTO}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{SCREEN\_COLOR\_AUTO}{SCREEN\_COLOR\_AUTO}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+A\+U\+TO = 0\hspace{0.3cm}{\ttfamily [static]}}

0\+: (Default) Automatically recognizes the screen color. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_adaf34a6d2165e45705df9b04349233af}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_adaf34a6d2165e45705df9b04349233af}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!SCREEN\_COLOR\_GREEN@{SCREEN\_COLOR\_GREEN}}
\index{SCREEN\_COLOR\_GREEN@{SCREEN\_COLOR\_GREEN}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{SCREEN\_COLOR\_GREEN}{SCREEN\_COLOR\_GREEN}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+G\+R\+E\+EN = 1\hspace{0.3cm}{\ttfamily [static]}}

1\+: Green. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a0b5dd564f9d584167e6c59bfbb81c469}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a0b5dd564f9d584167e6c59bfbb81c469}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!SCREEN\_COLOR\_BLUE@{SCREEN\_COLOR\_BLUE}}
\index{SCREEN\_COLOR\_BLUE@{SCREEN\_COLOR\_BLUE}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{SCREEN\_COLOR\_BLUE}{SCREEN\_COLOR\_BLUE}}
{\footnotesize\ttfamily final int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+B\+L\+UE = 2\hspace{0.3cm}{\ttfamily [static]}}

2\+: Blue. \mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_ad0314ffb2a02369191ec5aca397d2e50}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_ad0314ffb2a02369191ec5aca397d2e50}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!modelType@{modelType}}
\index{modelType@{modelType}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{modelType}{modelType}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+model\+Type}

The type of algorithms to user for background processing.
\begin{DoxyItemize}
\item S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+AI (1)\+: (Default) Use the algorithm suitable for all scenarios.
\item S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+G\+R\+E\+EN (2)\+: Use the algorithm designed specifically for scenarios with a green screen background. 
\end{DoxyItemize}\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a51ed2ebf1863644b506c1ce744735824}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_a51ed2ebf1863644b506c1ce744735824}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!greenCapacity@{greenCapacity}}
\index{greenCapacity@{greenCapacity}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{greenCapacity}{greenCapacity}}
{\footnotesize\ttfamily float io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+green\+Capacity}

The accuracy range for recognizing background colors in the image. The value range is \mbox{[}0,1\mbox{]}, and the default value is 0.\+5. The larger the value, the wider the range of identifiable shades of pure color. When the value of this parameter is too large, the edge of the portrait and the pure color in the portrait range are also detected. Agora recommends that you dynamically adjust the value of this parameter according to the actual effect. \begin{DoxyNote}{Note}
This parameter only takes effect when {\ttfamily model\+Type} is set to {\ttfamily S\+E\+G\+\_\+\+M\+O\+D\+E\+L\+\_\+\+G\+R\+E\+EN}. 
\end{DoxyNote}
\mbox{\Hypertarget{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_afcd6af26aee0ae71ac0adbc3fce8c44a}\label{classio_1_1agora_1_1rtc2_1_1video_1_1_segmentation_property_afcd6af26aee0ae71ac0adbc3fce8c44a}} 
\index{io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}!screenColorType@{screenColorType}}
\index{screenColorType@{screenColorType}!io.agora.rtc2.video.SegmentationProperty@{io.agora.rtc2.video.SegmentationProperty}}
\doxysubsubsection{\texorpdfstring{screenColorType}{screenColorType}}
{\footnotesize\ttfamily int io.\+agora.\+rtc2.\+video.\+Segmentation\+Property.\+screen\+Color\+Type}

The screen color\+:
\begin{DoxyItemize}
\item S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+A\+U\+TO (0)\+: The S\+DK automatically selects the screen color.
\item S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+G\+R\+E\+EN (1)\+: Green.
\item S\+C\+R\+E\+E\+N\+\_\+\+C\+O\+L\+O\+R\+\_\+\+B\+L\+UE (2)\+: Blue. 
\end{DoxyItemize}