CLI : Command Line

The Chloros CLI provides powerful command-line access to the Chloros image processing engine, enabling automation, scripting, and headless operation for your imaging workflows.

Key Features

  • 🚀 Automation - Script batch processing of multiple datasets

  • 🔗 Integration - Embed in existing workflows and pipelines

  • 💻 Headless Operation - Run without GUI

  • 🌍 Multi-Language - Support for 38 languages

  • Parallel Processing - Dynamically scales to your CPU (up to 16 parallel workers)

Requirements

Requirement
Details

Operating System

Windows 10/11 (64-bit)

License

Memory

8GB RAM minimum (16GB recommended)

Internet

Required for license activation

Disk Space

Varies by project size

Quick Start

Installation

The CLI is automatically included with the Chloros installer:

  1. Download and run Chloros Installer.exe

  2. Complete the installation wizard

  3. CLI installed to: C:\Program Files\Chloros\resources\cli\chloros-cli.exe

First-Time Setup

Before using the CLI, activate your Chloros+ license:

Basic Usage

Process a folder with default settings:


Command Reference

General Syntax


Commands

process - Process Images

Process images in a folder with calibration.

Syntax:

Example:

Process Command Options

Option
Type
Default
Description

<input-folder>

Path

Required

Folder containing RAW/JPG multispectral images

-o, --output

Path

Same as input

Output folder for processed images

-n, --project-name

String

Auto-generated

Custom project name

--vignette

Flag

Enabled

Enable vignette correction

--no-vignette

Flag

-

Disable vignette correction

--reflectance

Flag

Enabled

Enable reflectance calibration

--no-reflectance

Flag

-

Disable reflectance calibration

--ppk

Flag

Disabled

Apply PPK corrections from .daq light sensor data

--format

Choice

TIFF (16-bit)

Output format: TIFF (16-bit), TIFF (32-bit, Percent), PNG (8-bit), JPG (8-bit)

--min-target-size

Integer

Auto

Minimum target size in pixels for calibration panel detection

--target-clustering

Integer

Auto

Target clustering threshold (0-100)

--exposure-pin-1

String

None

Lock exposure for camera model (Pin 1)

--exposure-pin-2

String

None

Lock exposure for camera model (Pin 2)

--recal-interval

Integer

Auto

Recalibration interval in seconds

--timezone-offset

Integer

0

Timezone offset in hours


login - Authenticate Account

Login with your Chloros+ credentials to enable CLI processing.

Syntax:

Example:

Output:


logout - Clear Credentials

Clear stored credentials and logout from your account.

Syntax:

Example:

Output:

SDK Users: The Python SDK also provides a programmatic logout() method for clearing credentials within Python scripts. See the Python SDK documentation for details.


status - Check License Status

Display current license and authentication status.

Syntax:

Example:

Output:


export-status - Check Export Progress

Monitor Thread 4 export progress during or after processing.

Syntax:

Example:

Use Case: Call this command while processing is running to check export progress.


language - Manage Interface Language

View or change the CLI interface language.

Syntax:

Examples:

Supported Languages (38 Total)

Code
Language
Native Name

en

English

English

es

Spanish

Español

pt

Portuguese

Português

fr

French

Français

de

German

Deutsch

it

Italian

Italiano

ja

Japanese

日本語

ko

Korean

한국어

zh

Chinese (Simplified)

简体中文

zh-TW

Chinese (Traditional)

繁體中文

ru

Russian

Русский

nl

Dutch

Nederlands

ar

Arabic

العربية

pl

Polish

Polski

tr

Turkish

Türkçe

hi

Hindi

हिंदी

id

Indonesian

Bahasa Indonesia

vi

Vietnamese

Tiếng Việt

th

Thai

ไทย

sv

Swedish

Svenska

da

Danish

Dansk

no

Norwegian

Norsk

fi

Finnish

Suomi

el

Greek

Ελληνικά

cs

Czech

Čeština

hu

Hungarian

Magyar

ro

Romanian

Română

uk

Ukrainian

Українська

pt-BR

Brazilian Portuguese

Português Brasileiro

zh-HK

Cantonese

粵語

ms

Malay

Bahasa Melayu

sk

Slovak

Slovenčina

bg

Bulgarian

Български

hr

Croatian

Hrvatski

lt

Lithuanian

Lietuvių

lv

Latvian

Latviešu

et

Estonian

Eesti

sl

Slovenian

Slovenščina


set-project-folder - Set Default Project Folder

Change the default project folder location (shared with GUI).

Syntax:

Example:


get-project-folder - Show Project Folder

Display the current default project folder location.

Syntax:

Example:

Output:


reset-project-folder - Reset to Default

Reset the project folder to the default location.

Syntax:


Global Options

These options apply to all commands:

Option
Type
Default
Description

--backend-exe

Path

Auto-detected

Path to backend executable

--port

Integer

5000

Backend API port number

--restart

Flag

-

Force restart backend (kills existing processes)

--version

Flag

-

Show version information and exit

--help

Flag

-

Show help information and exit

Example with Global Options:


Processing Settings Guide

Parallel Processing

Chloros+ CLI automatically scales parallel processing to match your computer's capabilities:

How It Works:

  • Detects your CPU cores and RAM

  • Allocates workers: 2× CPU cores (uses hyperthreading)

  • Maximum: 16 parallel workers (for stability)

System Tiers:

System Type
CPU
RAM
Workers
Performance

High-End

16+ cores

32+ GB

Up to 16

Maximum speed

Mid-Range

8-15 cores

16-31 GB

8-16

Excellent speed

Low-End

4-7 cores

8-15 GB

4-8

Good speed

Debayer Methods

The CLI uses High Quality (Faster) as the default and recommended debayer algorithm:

Method
Quality
Speed
Description

High Quality (Faster)

⭐⭐⭐⭐

⚡⚡⚡

Edge-aware algorithm (default, recommended)

Vignette Correction

What it does: Corrects light falloff at image edges (darker corners common in camera imagery).

  • Enabled by default - Most users should keep this enabled

  • Use --no-vignette to disable

Reflectance Calibration

Converts raw sensor values to standardized reflectance percentages using calibration panels.

  • Enabled by default - Essential for vegetation analysis

  • Requires calibration target panels in images

  • Use --no-reflectance to disable

Requirements: Ensure calibration panels are properly exposed and visible in your images for accurate reflectance conversion.

PPK Corrections

What it does: Applies Post-Processed Kinematic corrections using DAQ-A-SD log data for improved GPS accuracy.

  • Disabled by default

  • Use --ppk to enable

  • Requires .daq files in project folder from MAPIR DAQ-A-SD light sensor.

Output Formats

Format
Bit Depth
File Size
Best For

TIFF (16-bit)

16-bit integer

Large

GIS analysis, photogrammetry (recommended)

TIFF (32-bit, Percent)

32-bit float

Very Large

Scientific analysis, research

PNG (8-bit)

8-bit integer

Medium

Visual inspection, web sharing

JPG (8-bit)

8-bit integer

Small

Quick preview, compressed output


Automation & Scripting

PowerShell Batch Processing

Process multiple dataset folders automatically:

Windows Batch Script

Simple loop for batch processing:

Python Automation Script

Advanced automation with error handling:


Processing Workflow

Standard Workflow

  1. Input: Folder containing RAW/JPG image pairs

  2. Discovery: CLI auto-scans for supported image files

  3. Processing: Parallel mode scales to your CPU cores (Chloros+)

  4. Output: Creates camera-model subfolders with processed images

Example Output Structure

Processing Time Estimates

Typical processing times for 100 images (12MP each):

Mode
Time
Hardware

Parallel Mode

5-10 min

i7/Ryzen 7, 16GB RAM, SSD (up to 16 workers)

Parallel Mode

10-15 min

i5/Ryzen 5, 8GB RAM, HDD (up to 8 workers)

Performance Tip: Processing time varies based on image count, resolution, and computer specs.


Troubleshooting

CLI Not Found

Error:

Solutions:

  1. Verify installation location:

  1. Use full path if not in PATH:

  1. Add to PATH manually:

    • Open System Properties → Environment Variables

    • Edit PATH variable

    • Add: C:\Program Files\Chloros\resources\cli

    • Restart terminal


Backend Failed to Start

Error:

Solutions:

  1. Check if backend already running (close it first)

  2. Check Windows Firewall is not blocking

  3. Try different port:

  1. Force restart backend:


License / Authentication Issues

Error:

Solutions:

  1. Verify you have an active Chloros+ subscription

  2. Login with your credentials:

  1. Check license status:

  1. Contact support: info@mapir.camera


No Images Found

Error:

Solutions:

  1. Verify folder contains supported formats (.RAW, .TIF, .JPG)

  2. Check folder path is correct (use quotes for paths with spaces)

  3. Ensure you have read permissions for the folder

  4. Check file extensions are correct


Processing Stalls or Hangs

Solutions:

  1. Check available disk space (ensure enough for output)

  2. Close other applications to free memory

  3. Reduce image count (process in batches)


Port Already in Use

Error:

Solution:

Specify a different port:


FAQ

Q: Do I need a license for the CLI?

A: Yes! The CLI requires a paid Chloros+ license.

  • ❌ Standard (free) plan: CLI disabled

  • ✅ Chloros+ (paid) plans: CLI fully enabled

Subscribe at: https://cloud.mapir.camera/pricing


Q: Can I use the CLI on a server without GUI?

A: Yes! The CLI runs completely headless. Requirements:

  • Windows Server 2016 or later

  • Visual C++ Redistributable installed

  • Sufficient RAM (8GB minimum, 16GB recommended)

  • One-time GUI license activation on any machine


Q: Where are processed images saved?

A: By default, processed images are saved in the same folder as input in camera-model subfolders (e.g., Survey3N_RGN/).

Use -o option to specify different output folder:


Q: Can I process multiple folders at once?

A: Not directly in one command, but you can use scripting to process folders sequentially. See Automation & Scripting section.


Q: How do I save CLI output to a log file?

PowerShell:

Batch:


Q: What happens if I press Ctrl+C during processing?

A: The CLI will:

  1. Stop processing gracefully

  2. Shut down the backend

  3. Exit with code 130

Partially processed images may remain in the output folder.


Q: Can I automate CLI processing?

A: Absolutely! The CLI is designed for automation. See Automation & Scripting for PowerShell, Batch, and Python examples.


Q: How do I check the CLI version?

A:

Output:


Getting Help

Command-Line Help

View help information directly in the CLI:

Support Channels


Complete Examples

Example 1: Basic Processing

Process with default settings (vignette, reflectance):


Example 2: High-Quality Scientific Output

32-bit float TIFF:


Example 3: Fast Preview Processing

8-bit PNG without calibration for quick review:


Example 4: PPK-Corrected Processing

Apply PPK corrections with reflectance:


Example 5: Custom Output Location

Process to different drive with specific format:


Example 6: Authentication Workflow

Complete authentication flow:


Example 7: Multi-Language Usage

Change interface language:

Last updated