Turqoa Docs

Camera Integration

Turqoa ingests live video streams from IP cameras deployed across gate lanes, perimeter zones, and terminal areas. Camera feeds provide the raw visual data that powers OCR, damage detection, intrusion detection, and container identification.

Camera Requirements

All cameras integrated with Turqoa must meet the following baseline specifications:

AttributeGate Lane CamerasPerimeter CamerasYard Cameras
Minimum resolution4 MP (2688 x 1520)2 MP (1920 x 1080)2 MP (1920 x 1080)
Recommended resolution8 MP (3840 x 2160)4 MP (2688 x 1520)4 MP (2688 x 1520)
Minimum framerate15 fps10 fps10 fps
Recommended framerate25 fps15 fps15 fps
Lens typeFixed or varifocalVarifocal or PTZPTZ
ProtocolONVIF Profile S + TONVIF Profile SONVIF Profile S
CompressionH.264 / H.265H.264 / H.265H.264 / H.265

ONVIF Protocol Setup

Turqoa discovers and manages cameras through the ONVIF protocol. Ensure ONVIF is enabled on each camera before configuration.

Enabling ONVIF on the Camera

  1. Access the camera's web interface.
  2. Navigate to Network > Advanced > Integration Protocol.
  3. Enable ONVIF and set a dedicated ONVIF user with Media and PTZ privileges.
  4. Note the ONVIF service port (default: 80 or 8080).

Registering a Camera in Turqoa

# camera-config.yaml
cameras:
  - id: gate-lane-01-left
    name: "Gate Lane 1 - Left Side"
    type: gate
    onvif:
      host: 192.168.10.101
      port: 80
      username: ${CAM_ONVIF_USER}
      password: ${CAM_ONVIF_PASS}
    stream:
      profile: main
      codec: h265
      resolution: 3840x2160
      fps: 25
    zone: gate-lane-01
    position: left

Auto-Discovery

Turqoa can discover ONVIF cameras on the local network automatically:

turqoa cameras discover --subnet 192.168.10.0/24

This scans the subnet for ONVIF-compliant devices and outputs their IP, model, and firmware version.

RTSP Stream Configuration

Each camera exposes one or more RTSP streams. Turqoa connects to the main stream for AI processing and optionally to a sub-stream for live monitoring.

rtsp://<camera-ip>:<port>/Streaming/Channels/101   # Main stream (high-res)
rtsp://<camera-ip>:<port>/Streaming/Channels/102   # Sub stream (low-res)

Stream Parameters

ParameterMain Stream (AI)Sub Stream (Monitoring)
ResolutionFull (4K / 4MP)720p or 1080p
Framerate25 fps10 fps
Bitrate8-16 Mbps1-2 Mbps
CodecH.265 (preferred)H.264
GOP size25-50 frames20-30 frames

Multi-Camera Network

A typical gate lane uses 4-6 cameras to capture all required angles:

PositionPurposeCount per Lane
FrontLicense plate, driver face1
Left sideContainer number, damage, chassis1
Right sideContainer number, damage, chassis1
TopContainer top, seal, ISO code1
RearRear container number, hazmat placard1 (optional)
OverviewFull lane context1 (optional)

Network Design

  • Dedicate a separate VLAN for camera traffic to isolate bandwidth from business network traffic.
  • Use PoE+ switches (IEEE 802.3at) capable of delivering 30W per port for powered cameras.
  • Ensure minimum 1 Gbps uplink from camera switches to the Turqoa processing server.
  • Calculate bandwidth per lane: 6 cameras x 12 Mbps average = 72 Mbps per gate lane.

Night Vision and IR Considerations

Gate operations run 24/7. Cameras must perform reliably in low-light and complete darkness.

  • IR illumination --- Use cameras with built-in IR LEDs rated for at least 30m range. Gate lane cameras should have 50m+ IR range.
  • IR cut filter --- Ensure the camera has an automatic IR cut filter that switches between day and night modes.
  • Supplemental lighting --- For OCR accuracy, install dedicated LED illuminators at gate lanes. White light at 200+ lux ensures consistent character recognition.
  • WDR (Wide Dynamic Range) --- Required for gate lanes where headlights and shadows create extreme contrast. 120 dB WDR minimum recommended.

Note: AI model accuracy for OCR and damage detection drops measurably below 100 lux without supplemental lighting. Always validate detection accuracy during nighttime commissioning.