> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/cameras-and-gravadores/integracao-api-cftvip-e-mibo/cameras-e-gravadores/configuracoes-de-analise-de-video.md).

# Configurações de Análise de Vídeo

APIs CGI para análise de vídeo: getcaps, get/set VideoAnalyseGlobal e VideoAnalyseRule, habilitar cenas, consultar último evento e uso de recursos (attachResource).

## Dicas & Boas Práticas <a href="#dicas-and-boas-praticas" id="dicas-and-boas-praticas"></a>

* Mantenha a **conexão HTTP de assinatura sempre ativa**, garantindo que o cliente implemente reconexão automática em caso de falhas de rede.
* Utilize o campo **`EventBaseInfo.Code`** para identificar o tipo de evento e aplicar tratamentos específicos no sistema assinante.
* Ao lidar com múltiplos eventos simultâneos, utilize os campos **`GroupID`**, **`CountInGroup`** e **`IndexInGroup`** para correlacionar corretamente eventos pertencentes ao mesmo grupo.
* Recomenda-se validar previamente as **capacidades do dispositivo** antes de configurar regras ou cenas, garantindo compatibilidade com os recursos disponíveis.
* Após alterações de configuração, sempre verifique o retorno da API (`OK`) e, quando possível, realize uma leitura (`getConfig`) para confirmar a aplicação correta.

***

### Tabela de Parâmetros

<table><thead><tr><th>Name</th><th>Type</th><th width="93.92596435546875">R/O</th><th>Description</th><th>Example</th></tr></thead><tbody><tr><td>caps</td><td>object</td><td>R</td><td>Capabilities do serviço de análise de vídeo</td><td>—</td></tr><tr><td>SupportedScene</td><td>char[][]</td><td>O</td><td>Lista de cenas suportadas pelo dispositivo</td><td>["Normal","ATM","NumberStat"]</td></tr><tr><td>SupportedScenes</td><td>object</td><td>O</td><td>Estrutura de cenas suportadas por classe</td><td>—</td></tr><tr><td>MaxModules</td><td>uint8</td><td>O</td><td>Número máximo de módulos suportados</td><td>5</td></tr><tr><td>MaxRules</td><td>uint8</td><td>O</td><td>Número máximo de regras por canal</td><td>32</td></tr><tr><td>SupportedRules</td><td>char[][]</td><td>O</td><td>União de todas as regras suportadas</td><td>["CrossLineDetection","FlowStat"]</td></tr><tr><td>MaxCalibrateAreas</td><td>int</td><td>O</td><td>Máximo de áreas de calibração</td><td>10</td></tr><tr><td>MaxStaffs</td><td>int</td><td>O</td><td>Máximo de staffs (linhas auxiliares)</td><td>10</td></tr><tr><td>MaxPointOfLine</td><td>int</td><td>O</td><td>Máximo de pontos por linha</td><td>2</td></tr><tr><td>MaxPointOfRegion</td><td>int</td><td>O</td><td>Máximo de pontos por região</td><td>4</td></tr><tr><td>MaxExcludeRegions</td><td>int</td><td>O</td><td>Máximo de regiões de exclusão</td><td>10</td></tr><tr><td>MaxInternalOptions</td><td>int</td><td>O</td><td>Máximo de opções internas</td><td>512</td></tr><tr><td>ComplexSizeFilter</td><td>bool</td><td>O</td><td>Suporte a filtro de tamanho complexo</td><td>true</td></tr><tr><td>SpecifiedObjectFilter</td><td>bool</td><td>O</td><td>Suporte a filtro por tipo de objeto</td><td>true</td></tr><tr><td>SupportSnapEnhance</td><td>uint</td><td>O</td><td>Suporte a melhoria de snapshot</td><td>0</td></tr><tr><td>SupportSnapOptimize</td><td>uint</td><td>O</td><td>Suporte a preferência de snapshot</td><td>0</td></tr><tr><td>SupportOccRecognition</td><td>bool</td><td>O</td><td>Suporte a reconhecimento de oclusão facial</td><td>false</td></tr><tr><td>SupportSwitchVideoSrcCount</td><td>uint</td><td>O</td><td>Quantidade de fontes de vídeo suportadas</td><td>2</td></tr><tr><td>VideoSourceInfo</td><td>object[]</td><td>O</td><td>Informações das fontes de vídeo</td><td>—</td></tr><tr><td>SrcType</td><td>enum int</td><td>O</td><td>Tipo da fonte de vídeo (0/1/2)</td><td>1</td></tr><tr><td>Id</td><td>uint</td><td>O</td><td>ID do canal de vídeo</td><td>0</td></tr><tr><td>Scene.Type</td><td>char[]</td><td>O</td><td>Tipo de cena configurada</td><td>"Normal"</td></tr><tr><td>Scene.PtzPresetId</td><td>uint8</td><td>O</td><td>Preset PTZ associado</td><td>1</td></tr><tr><td>Scene.Depth</td><td>enum char[]</td><td>O</td><td>Distância da cena</td><td>"Normal"</td></tr><tr><td>Scene.Detail</td><td>object</td><td>O</td><td>Parâmetros detalhados da cena</td><td>—</td></tr><tr><td>TimePeriod.Day</td><td>char[2][]</td><td>O</td><td>Período diurno (hh:mm:ss)</td><td>["08:00:00","20:00:00"]</td></tr><tr><td>TimePeriod.Night</td><td>char[2][]</td><td>O</td><td>Período noturno (hh:mm:ss)</td><td>["20:00:00","07:00:00"]</td></tr><tr><td>VideoAnalyseRule</td><td>object[][]</td><td>O</td><td>Regras de análise por canal</td><td>—</td></tr><tr><td>Name</td><td>char[128]</td><td>O</td><td>Nome único da regra</td><td>"GuardLine1"</td></tr><tr><td>Enable</td><td>bool</td><td>O</td><td>Habilita ou desabilita a regra</td><td>true</td></tr><tr><td>Type</td><td>char[32]</td><td>R</td><td>Tipo da regra de análise</td><td>"CrossLineDetection"</td></tr><tr><td>EventHandler</td><td>object</td><td>O</td><td>Configuração do manipulador de eventos</td><td>—</td></tr><tr><td>Config</td><td>object</td><td>O</td><td>Configuração específica da regra</td><td>—</td></tr><tr><td>DetectLine</td><td>uint16[][]</td><td>O</td><td>Linha de detecção (0–8192)</td><td>[[100,200],[300,400]]</td></tr><tr><td>DetectRegion</td><td>uint16[][]</td><td>O</td><td>Região de detecção</td><td>—</td></tr><tr><td>Direction</td><td>enum char[]</td><td>O</td><td>Direção da detecção</td><td>"Both"</td></tr><tr><td>SizeFilter.MinSize</td><td>int[2]</td><td>O</td><td>Tamanho mínimo do objeto</td><td>[0,0]</td></tr><tr><td>SizeFilter.MaxSize</td><td>int[2]</td><td>O</td><td>Tamanho máximo do objeto</td><td>[8191,8191]</td></tr><tr><td>MinDuration</td><td>uint</td><td>O</td><td>Tempo mínimo de disparo (s)</td><td>10</td></tr><tr><td>Sensitivity</td><td>uint8</td><td>O</td><td>Sensibilidade (1–10)</td><td>5</td></tr><tr><td>EnterThreshold</td><td>uint16</td><td>O</td><td>Limite de entrada</td><td>0</td></tr><tr><td>ExitThreshold</td><td>uint16</td><td>O</td><td>Limite de saída</td><td>0</td></tr><tr><td>InsideThreshold</td><td>uint16</td><td>O</td><td>Limite interno</td><td>0</td></tr><tr><td>FilterUnAliveEnable</td><td>bool</td><td>O</td><td>Filtro de objetos não vivos</td><td>false</td></tr><tr><td>EyesDistThreshold</td><td>uint32</td><td>O</td><td>Limite de distância pupilar</td><td>50</td></tr><tr><td>HelmetEnable</td><td>bool</td><td>O</td><td>Detecção de capacete</td><td>false</td></tr><tr><td>TempSwitch</td><td>uint8</td><td>O</td><td>Estado do monitoramento térmico</td><td>1</td></tr><tr><td>TempModel</td><td>uint8</td><td>O</td><td>Modo de medição térmica</td><td>0</td></tr><tr><td>TempStrategy</td><td>object</td><td>O</td><td>Estratégia de temperatura</td><td>—</td></tr><tr><td>TempValueMin</td><td>double</td><td>O</td><td>Temperatura mínima normal</td><td>35.5</td></tr><tr><td>TempValueMax</td><td>double</td><td>O</td><td>Temperatura máxima normal</td><td>45.1</td></tr><tr><td>FilterMaskUnAliveEnable</td><td>bool</td><td>O</td><td>Liveness para pessoas com máscara</td><td>false</td></tr><tr><td>IntelliSchemeTour.Enable</td><td>bool</td><td>O</td><td>Habilita tour inteligente</td><td>true</td></tr><tr><td>TourPriMode</td><td>enum char[]</td><td>O</td><td>Prioridade do tour</td><td>"Switch"</td></tr><tr><td>IdleWaitingTime</td><td>uint32</td><td>O</td><td>Tempo ocioso antes do tour</td><td>10</td></tr><tr><td>SceneSwitchingTime</td><td>uint32</td><td>O</td><td>Tempo para troca de cena</td><td>20</td></tr><tr><td>TourPlan</td><td>object[][]</td><td>O</td><td>Plano semanal do tour</td><td>—</td></tr><tr><td>SchemeID</td><td>uint32</td><td>O</td><td>ID do pacote inteligente</td><td>1</td></tr><tr><td>Duration</td><td>uint32</td><td>O</td><td>Tempo de permanência (s)</td><td>600</td></tr><tr><td>Speed</td><td>uint32</td><td>O</td><td>Velocidade de rotação PTZ</td><td>5</td></tr><tr><td>LaneNumber</td><td>int</td><td>O</td><td>Número da faixa</td><td>0</td></tr><tr><td>SpeedLimit</td><td>int[2]</td><td>O</td><td>Limite de velocidade</td><td>[60,120]</td></tr><tr><td>OverSpeedMargin</td><td>uint32</td><td>O</td><td>Margem de tolerância (km/h)</td><td>10</td></tr><tr><td>UnderSpeedMargin</td><td>uint32</td><td>O</td><td>Margem mínima de velocidade</td><td>10</td></tr><tr><td>VoiceBroadcastEnable</td><td>bool</td><td>O</td><td>Ativa aviso por voz</td><td>true</td></tr><tr><td>DelayInfo.Enable</td><td>bool</td><td>O</td><td>Ativa atraso de vigência</td><td>false</td></tr><tr><td>DelayInfo.Time</td><td>int32</td><td>O</td><td>Tempo de atraso (s)</td><td>60</td></tr><tr><td>EnablePresnap</td><td>uint8</td><td>O</td><td>Ativa pré-captura</td><td>1</td></tr></tbody></table>

***

### Obter Capacidade de Análise de Vídeo

**Tópicos:** Consulta as capacidades de análise de vídeo suportadas pelo dispositivo, incluindo tipos de regras, cenas, limites de configuração e parâmetros avançados.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=getcaps`

Exemplo:

```http
http://<ip>/cgi-bin/devVideoAnalyse.cgi?action=getcaps&channel=1
```

**Resposta**:

```json
caps.CalibrateBoxs[0]=2 
caps.CalibrateBoxs[1]=3 
caps.ComplexSizeFilter=false 
caps.MaxCelibateAreas=10 
caps.MaxExcludeRegions=0 
caps.MaxInternalOptions=512 
caps.MaxModules=1 
caps.MaxPointOfLine=20 
caps.MaxPointOfRegion=20 
caps.MaxRules=10 
caps.MaxStaffs=4 
caps.SpecifiedObjectFilter=true 
caps.SupportedRules[0]=CrossLineDetection 
caps.SupportedRules[1]=CrossRegionDetection 
caps.SupportedRules[2]=LeftDetection 
caps.SupportedRules[3]=TakenAwayDetection 
caps.SupportedScene[0]=Normal 
caps.SupportedScene[1]=FaceDetection 
caps.SupportedScene[2]=VideoDiagnosis 
caps.SupportedScenes. Normal. SupportedSceneParams. LLM. EnableCtrl=1 
caps.SupportedScenes. Normal. SupportedSceneParams. LLM. ModelList[0]= ["StarThink-V"] 
caps.SupportedScenes. Normal. SupportedSceneParams. LLM. Support=true 
caps.SupportedScenes.FaceDetection.SupportedCalibrateParams.Groud.HorizontalStaffs[0]=0 
caps.SupportedScenes.FaceDetection.SupportedCalibrateParams.Groud.HorizontalStaffs[1]=0 
caps.SupportedScenes.FaceDetection.SupportedCalibrateParams.Groud.VerticalStaffs[0]=0 
caps.SupportedScenes.FaceDetection.SupportedCalibrateParams.Groud.VerticalStaffs[1]=0 
caps.SupportedScenes.StereoNumber.SupportedRules.ManNumDetection.SupportLocalDataStore=fals
e 
caps.SupportedScenes.NumberStat.CameraType=1 
caps.SupportedScenes.NumberStat.SupportedRules.NumberStat.MaxRules=8 
caps.SupportedScenes.StereoBehavior.OnlyFindLastEvtList[0]=ManStandDetection 
```

### Obter Configuração de Análise de Vídeo Global

**Tópicos:** Obtém a configuração global de análise de vídeo do dispositivo, incluindo tipo de cena, parâmetros da câmera, profundidade, ângulo, distância e períodos de operação.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoAnalyseGlobal
```

**Resposta**:

```powershell
table.VideoAnalyseGlobal[0].Scene.Type=Normal 
table.VideoAnalyseGlobal[0].Scene.PtzPresetId=1 
table.VideoAnalyseGlobal[0].Scene.Depth=Far 
table.VideoAnalyseGlobal[0].Scene.Detail.CameraAngle=30 
table.VideoAnalyseGlobal[0].Scene.Detail.CameraDistance=10.000000 
table.VideoAnalyseGlobal[0].Scene.Detail.CameraHeight=6.200000 
table.VideoAnalyseGlobal[0].TimePeriod.Day[0]=8:00:00 
table.VideoAnalyseGlobal[0].TimePeriod.Day[1]=20:00:00 
table.VideoAnalyseGlobal[0].TimePeriod.Night[0]=20:00:00 
table.VideoAnalyseGlobal[0].TimePeriod.Night[1]=8:00:00 
… 
```

### Definir Configuração de Análise de Vídeo Global

**Tópicos:** Define ou altera os parâmetros globais de análise de vídeo, como tipo de cena e preset PTZ associado.tilizada para criar um novo grupo facial no sistema de reconhecimento facial.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoAnalyseGlobal[0].Scene.Type=
Normal&VideoAnalyseGlobal[0].Scene.PtzPresetId=1
```

**Resposta**:

```
OK
```

### Obter Configuração de Regra de Análise de Vídeo

**Tópicos:** Consulta as regras de análise de vídeo configuradas no dispositivo, incluindo nome da regra, tipo, estado de ativação e manipuladores de eventos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoAnalyseRule
```

**Resposta**:

```json
table.VideoAnalyseRule[0][0].Name= line1 
table.VideoAnalyseRule[0][0].Type=CrossLineDetection 
table.VideoAnalyseRule[0][0].VideoAnalyseRule[0][0].Enable =true 
table.VideoAnalyseRule[0][0].VideoAnalyseRule[0][0].EventHandler= (output of EventHandler is 
described in GetEventHandler) 
… 
```

### Definir Configuração de Regra de Análise de Vídeo

**Tópicos:** Cria ou altera regras de análise de vídeo, como detecção de cruzamento de linha, associando nome, tipo e parâmetros específicos.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoAnalyseRule[0][0].Name=myAn
alyseRule1&VideoAnalyseRule[0][0].Type=CrossLineDetection
```

**Resposta**:

```
OK
```

### Obter informações do último evento

**Tópicos:** Consulta o último evento gerado por uma regra de análise específica, informando o estado atual e a ação do evento.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=getLastEventInfo`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoAnalyse.cgi?action=getLastEventInfo&channel=1&ClassName=St
ereoBehavior&EventName=ManStandDetection
```

**Resposta**:

```powershell
State=1 
EventInfo.Code=ManStandDetection 
EventInfo.Action=Start 
```

### Obter Configuração dos Parâmetros Globais Do Dispositivo

**Tópicos:** Obtém parâmetros globais do dispositivo que influenciam o comportamento da análise inteligente, como altura de instalação e perfil operacional.tilizada para criar um novo grupo facial no sistema de reconhecimento facial.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=GlobalDeviceParam
```

**Resposta**:

```json
table.GlobalDeviceParam.LocateHeight=10.5 
table.GlobalDeviceParam.Profile=0 
```

### Definir Configurações dos Parâmetros Globais Do Dispositivo

**Tópicos:** Define os parâmetros globais do dispositivo utilizados pela análise inteligente.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&GlobalDeviceParam.LocateHeight=10.5
```

**Resposta**:

```
OK
```

### Obter as Regras do Modelo

**Tópicos:** Consulta as regras padrão do modelo de análise, incluindo configurações iniciais e limites de filtragem por tamanho, direção e tipo de objeto.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=getLastEventInfo`

**Exemplo:**

```http
http://<ip>/cgi-bin/VideoInAnalyse.cgi?action=getTemplateRule&Channel=1&Class=Normal
```

**Resposta**:

```json
Rule.Normal.CrossLineDetection.Id=0 
Rule.Normal.CrossLineDetection.Enable=false 
Rule.Normal.CrossLineDetection.Class=Normal 
Rule.Normal.CrossLineDetection.Type=CrossLineDetection 
Rule.Normal.CrossLineDetection.ObjectTypes[0]=Unknown 
Rule.Normal.CrossLineDetection.PtzPresetId=0 
Rule.Normal.Config.Direction=Both 
Rule.Normal.Config.SizeFilter.MaxSize[0]=[8191, 8191] 
Rule.Normal.Config.SizeFilter.MinSize[0]=[0, 0] 
…
```

### Obter Configuração De Ativação Do Tour Do IntelliScheme

**Tópicos:** Consulta se o modo de tour inteligente (IntelliScheme) está habilitado no dispositivo.

**Exemplo:**

```powershell
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=IntelliSchemeTour
```

**Resposta**:

```powershell
table.IntelliSchemeTour.Enable=true 
```

### Definir Configuração De Ativação Do Tour Do IntelliScheme

**Tópicos:** Ativa ou desativa o tour inteligente do dispositivo.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&IntelliSchemeTour.Enable=true
```

**Resposta**:

```
OK
```

### Obter Configuração Plano de Viagem Inteligente

**Tópicos:** Consulta o plano detalhado do tour inteligente, incluindo tempos de espera, troca de cenas e programação por período.tilizada para criar um novo grupo facial no sistema de reconhecimento facial.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=IntelliSchemeTour
```

**Resposta**:

```json
table.IntelliSchemeTour.Enable=true 
table.IntelliSchemeTour.IdleWaitingTime=10 
table.IntelliSchemeTour.SceneSwitchingTime=20 
table.IntelliSchemeTour.TourPlan[0][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[0][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][5].TimeSection=1 00:00:00-23:00:00 
table.IntelliSchemeTour.TourPlan[1][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[1][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[2][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[3][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[4][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[5][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][0].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][1].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][2].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][3].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][4].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][5].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][6].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][7].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][8].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][9].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][10].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][11].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][12].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][13].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][14].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPlan[6][15].TimeSection=1 00:00:00-00:00:00 
table.IntelliSchemeTour.TourPriMode=Switch 
```

### Definir Configurações do Plano de Viagem Inteligente

**Tópicos:** Exporta dados criptografados contendo informações de diagnóstico, listas de permissões e bloqueios.

**Exemplo:**

```powershell
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&IntelliSchemeTour.TourPriMode=Switch
```

**Resposta**:

```
OK
```

### Exportar informações de Diagnóstico Inteligente

**Tópicos:** Exportar informações de Diagnóstico Inteligente, Lista de Permissões e Lista de Bloqueios

**Métodos: `POST`**` ``/cgi-bin/api/ImExport/exportData`

**Exemplo:**

```json
{ 
    "type": 1 
}
```

**Resposta**:

```http
HTTP/1.1 200 OK 
Server: Device/1.0 
Content-Type: application/octet-stream 
Content-Length: <length> 
 
< binary data> 
```

### Importar informações de O\&M Inteligente

**Tópicos:** Importar informações de O\&M Inteligente, Lista de Permitidos e Lista de Bloqueios

**Métodos: `POST`**` ``/cgi-bin/api/ImExport/importData`

**Exemplo:**

```http
POST http://<server>/cgi-bin/api/ImExport/importData HTTP/1.1 
User-Agent: client/1.0 
Content-Type: multipart/x-mixed-replace; boundary=<boundary> 
 --<boundary> 
Content-Type: application/json 
Content-Length: 12 
 
{ 
"type": 0, 
"isOverWrite": true 
} --<boundary> 
Content-Type: application/octet-stream 
Content-Length: 800 
 
< binary data> --<boundary> 
```

**Resposta**:

```
{}
```

### Obter Capacidade Inteligente

**Tópicos:** Consulta as capacidades gerais de análise inteligente do dispositivo, incluindo modos de análise, algoritmos disponíveis e capacidade total por classe.

**Métodos: `GET`**` ``/cgi-bin/intelli.cgi?action=getCaps`

**Exemplo:**

```http
http://<ip>/cgi-bin/intelli.cgi?action=getCaps&capsName=AnalyseMode
```

**Resposta**:

```json
caps.AnalyseMode=RealStream 
caps.MultiChannelMode.IndepMode[0][0].Channel=0 
caps.MultiChannelMode.IndepMode[0][0].Type=Normal 
caps.MultiChannelMode.IndepMode[0][1].Channel=1 
caps.MultiChannelMode.IndepMode[0][1].Type=ObjectDetect 
… 
caps.MultiChannelMode.CompMode[0][0].Channel=0 
caps.MultiChannelMode.CompMode[0][0].Type=Normal 
caps.MultiChannelMode.CompMode[0][1].Channel=1 
caps.MultiChannelMode.CompMode[0][1].Type=ObjectDetect 
… 
caps.Algorithm[0].Class=Normal 
caps.Algorithm[0].AlgorithmVersion=V2.8 
caps.Algorithm[0].AlgorithmVendor=XXX 
caps.Algorithm[1].Class=ObjectDetect 
caps.Algorithm[1].AlgorithmVersion=V2.8 
caps.Algorithm[1].AlgorithmVendor=YYY 
… 
caps.TotalCapacity[0].Class=Normal 
caps.TotalCapacity[0].Type[0]=FaceDetection 
caps.TotalCapacity[0].Number=3 
caps.TotalCapacity[1].Class=ObjectDetect 
caps.TotalCapacity[1].Type[0]=FaceDetection 
caps.TotalCapacity[1].Number=3
```

### Inscrever-se nas Informações de Uso de Recursos

**Tópicos:** Assina informações de uso de recursos inteligentes do dispositivo, permitindo monitorar capacidade restante em tempo real.

**Métodos: `GET`**` ``/cgi-bin/intelli.cgi?action=attachResource`

**Exemplo:**

```http
http://<ip>/cgi-bin/intelli.cgi?action=attachResource&heartbeat=5
```

**Resposta**:

```http
TTP/1.1 200 OK 
Server: Device/1.0 
Content-Type: multipart/x-mixed-replace; boundary=<boundary> 
Connection: closed 
 --<boundary> 
Content-Type: text/plain 
Content-Length: <length> 
 
RemainCapacity[0].Class=Normal 
RemainCapacity[0].Number=1 
RemainCapacity[1].Class=ObjectDetect 
RemainCapacity[1].Number=2 
 --<boundary> 
Content-Type: text/plain 
Content-Length: 11 
 
Heartbeat --<boundary> 
Content-Type: text/plain 
Content-Length: <length> 
 
RemainCapacity[0].Class=Normal 
RemainCapacity[0].Number=1 
RemainCapacity[1].Class=ObjectDetect 
RemainCapacity[1].Number=1 
```

### Exportar Arquivos Criptografados

**Tópicos:** Exportar Arquivos Criptografados.

**Métodos: `POST`**` ``/cgi-bin/api/SecurityImExport/exportData`

**Exemplo:**

```json
{ 
    "key": "1BBzdSS***", 
    "type": 0 
} 
```

**Resposta**:

```http
HTTP/1.1 200 OK 
Server: Device/1.0 
Content-Type: application/octet-stream 
Content-Length: <length> 
 
< binary data> 
```

### Controle Inteligente da Plataforma

**Tópicos:** Controle inteligente da plataforma.

**Métodos: `POST`**` ``/cgi-bin/api/intelli/setPollingConfig`

**Exemplo:**

```json
{ 
"Config": [{ 
"Enable": true, 
"Channel": 12, 
"GlobalType": "Normal", 
"RulelType": ["CrossLineDetection"], 
"GlobalTypeList": ["Normal", "GasStation"] 
},…{}] 
```

**Resposta**:

```
{}
```

### Obter Lista de Cenas

**Tópicos:** Retorna a lista de cenas de análise suportadas e configuradas no dispositivo.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=getSceneList`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoAnalyse.cgi?action=getSceneList
```

**Resposta**:

```json
VideoAnalyseGlobal[0].Scenes[0]=Normal 
VideoAnalyseGlobal[0].Scenes[1]=FaceDetection 
```

### Ativar Esquemas Inteligentes

**Tópicos:** Ativa cenas ou esquemas inteligentes específicos em um canal.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=enableScene`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoAnalyse.cgi?action=enableScene&typeList=[Normal,HeatMap]&ch
annel=0
```

**Resposta**:

```
OK
```

### Desativar Esquemas Inteligentes

**Tópicos:** Desativa cenas ou esquemas inteligentes previamente ativados.

**Métodos: `GET`**` ``/cgi-bin/devVideoAnalyse.cgi?action=disableScene`

**Exemplo:**

```http
http://<ip>/cgi-bin/devVideoAnalyse.cgi?action=disableScene&typeList=[Normal,HeatMap]&c
hannel=0
```

**Resposta**:

```
OK
```

### Obter Versão do Algoritmo do Canal

**Tópicos:** Consulta a versão do algoritmo de análise utilizado em um ou mais canais.

**Métodos: `GET`**` ``/cgi-bin/api/intelli/getChannelAlgVersion`

**Exemplo:**

```json
{ 
    "Channel": -1, 
    "AlgType": "Normal" 
}  
```

**Resposta**:

```json
{ 
    "Info": [[{ 
        "ClassType": "Normal", 
        "AlgTypeVersion": ["R497490.0_V3.004.0000000.1.R"] 
    },…{}],…[]] 
} 
```

### Obter Configuração de Acesso do Modo Cenário

**Tópicos:** Consulta o modo de cenário atualmente configurado no dispositivo.\
O modo de cenário define como o dispositivo opera em relação às cenas inteligentes habilitadas.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=DeviceSceneMode
```

**Resposta**:

```json
table. DeviceSceneMode.Mode=0 
… 
```

### Definir Configuração de Acesso do Modo Cenário

**Tópicos:** Define o modo de cenário do dispositivo, controlando o comportamento global das análises inteligentes.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&DeviceSceneMode.Mode=0
```

**Resposta**:

```
OK
```

### Obter Configuração de Tráfego Acima ou Abaixo da Velocidade

**Tópicos:** Consulta as regras de análise de tráfego relacionadas à detecção de veículos acima ou abaixo do limite de velocidade configurado.tilizada para criar um novo grupo facial no sistema de reconhecimento facial.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=VideoAnalyseRule
```

**Resposta**:

```powershell
table.VideoAnalyseRule[0][0].Name=OverSpeed 
table.VideoAnalyseRule[0][0].Type=TrafficOverSpeed 
table.VideoAnalyseRule[0][0].Enable=true 
table.VideoAnalyseRule[0][0].Config.LaneNumber=0 
table.VideoAnalyseRule[0][0].Config.SpeedLimit[0]=60 
table.VideoAnalyseRule[0][0].Config.SpeedLimit[0]=120 
table.VideoAnalyseRule[0][0].Config.MinDuration=10 
table.VideoAnalyseRule[0][0].EventHandler= (output of EventHandler is described in GetEventHandler) 
…
```

### Definir Configuração de Tráfego Acima ou Abaixo da Velocidade

**Tópicos:** Cria ou atualiza regras de detecção de velocidade, permitindo configurar limites e parâmetros de análise de tráfego.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&VideoAnalyseRule[0][0].Type=TrafficOverSp
eed&VideoAnalyseRule[0][0].Name=OverSpeed&VideoAnalyseRule[0][0].Enable=true&VideoAnalyseRu
le[0][0].Config.LaneNumber=0
```

**Resposta**:

```
OK
```

### Obter Configuração do Modo Acupick

**Tópicos:** Cria ou atualiza regras de detecção de velocidade, permitindo configurar limites e parâmetros de análise de tráfego.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=getConfig&name=AcupickMode
```

**Resposta**:

```json
table.AcupickMode[0].DetectType=1 
table.AcupickMode[0].Enable=false 
table.AcupickMode[0].Mode=0 
table.AcupickMode[1].DetectType=1 
table.AcupickMode[1].Enable=false 
table.AcupickMode[1].Mode=0 
… 
```

### Definir Configuração do Modo Acupick

**Tópicos:** Define os parâmetros do modo AcuPick, controlando o tipo de detecção e o comportamento da análise inteligente.

**Exemplo:**

```http
http://<ip>/cgi-bin/configManager.cgi?action=setConfig&AcupickMode[0].DetectType=1
```

**Resposta**:

```
OK
```

### Obtenha Informações Inteligentes

**Tópicos:** Consulta informações detalhadas sobre os recursos inteligentes do dispositivo.

**Métodos: `POST`**` ``/cgi-bin/api/intelli/getIntelliInfo`

**Exemplo:**

```json
{ 
"Channel": -1, 
AlgType": "Normal 
} 
```

**Resposta**:

```json
{ 
"License": { 
"BeginTime": 1465389120, 
"Days": 99999 
    }, 
"VersionInfo": [{ 
"AlgType": "Normal", 
"FeatureVersion": "1003001004001", 
"AlgorithmVersion": "V3.002.0000000.2.R.20200324.227607", 

"Match": 0, 
"FeatureInfos": [{ 
FeatureType": "HumanTrait 
FeatureVersion": "1003001004001 
        },…{}], 
"AcuPick": [{ 
"FeatureInfos": [{ 
"FeatureType": "Human", 
"FeatureVersions": ["1003001004001", "1003001004002"] 
            },…{}] 
        },…{}] 
    },…{}], 
"FaceReAbstractInfo": { 
"State": 0, 
"HistoryFinish": false 
    }, 
    "Info": [[{ 
"ClassType": "Normal", 
"AlgTypeVersion": ["R497490.0_V3.004.0000000.1.R"] 
    },…{}],…[]] 
}
```

***

Notas finais:

* Todas as APIs seguem o modelo **HTTP CGI**, com parâmetros via query string ou corpo JSON.
* Recomenda-se validar sempre as **capacidades do dispositivo** antes de configurar regras ou cenas avançadas.
* Alterações de configuração entram em vigor imediatamente, salvo indicação contrária do dispositivo.
* Para ambientes com múltiplos canais, atenção especial ao parâmetro **`channel`**.

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://portal-integracao.intelbras.com.br/cameras-and-gravadores/integracao-api-cftvip-e-mibo/cameras-e-gravadores/configuracoes-de-analise-de-video.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
