Capture, processing, and local enhancement
Capture paper or books, or process existing images, and save final results locally. These examples use JPG. Complete authorization and confirm your device or input files first.
Capture one document
czur-open device list --json
czur-open scan "YOUR_DEVICE_ID" --page-processing single_page --color-mode auto_optimize --format jpg --output-dir "./scans" --jsonCapture applies paper processing, color processing, then any selected enhancement, downloading final images. The CLI manages the device and connection in one command and attempts to stop video and close the device before exiting. No preceding device open is needed. Defaults are 1 capture, single_page paper processing, auto_optimize color, jpg format, and output directory ~/Pictures/CZUR Open.
| Option | Values or meaning |
|---|---|
--page-processing | single_page for a single page, curved_book for curved books, keep_original to retain the original page |
--color-mode | auto_optimize, color_enhance, black_white, grayscale, white_paper_seal, certificate, ancient, no_optimize |
--format | jpg, png, tif, tiff |
--quality | JPG/JPEG quality, integer 1–100; service default when omitted |
--target-size | Positive integer matching a device-advertised output specification, not arbitrary pixel dimensions |
--count | Positive integer, default 1; consecutive captures, not interactive page turning |
--capture-timeout | Completion deadline per capture, default 15000 milliseconds |
--output-dir | Local delivery directory; quote paths containing spaces |
--count does not wait for manual page-turn confirmation. For separate sheets, run a single-page command each time and place the next page before continuing. One capture can return multiple page assets; preserve every files entry and its order.
Successful results contain status: "succeeded", device_id, and files; each file includes path, content_type, and size, with warnings when relevant. Use actual MIME types and returned paths instead of constructing extensions or predicting filenames.
Process existing images
czur-open image process "./scans/page-1.jpg" --page-processing single_page --color-mode auto_optimize --output-dir "./processed" --json
czur-open image process-page "./scans/page-1.jpg" --page-processing curved_book --output-dir "./processed" --json
czur-open image apply-color-mode "./scans/page-1.jpg" --color-mode grayscale --output-dir "./processed" --jsonprocess combines paper and color processing; process-page handles paper processing; apply-color-mode handles color processing. Choose parameters relevant to the operation rather than relying on unrelated parameters to take effect. --target-size and --quality are also accepted; Runtime determines unspecified processing defaults. These three commands have no general --format conversion option.
Local input is uploaded to Runtime and the result downloaded locally, using the same default directory as scans. Results contain status, operation, input_path, output_path, content_type, and size, not files[].
Discover local enhancement capabilities
czur-open image enhance-capabilities --jsonLocal steps include cropping with crop_enhance, specification normalization with normalize_spec, rotation/deskew with rotate, blank-page detection with blank_page_detect, and red/green header enhancement with red_green_head. Inspect descriptions, available, unavailability reasons, and parameter defaults / schema before building configurations. Do not guess angles, thresholds, Providers, or membership parameters.
Run a one-off pipeline
Save this configuration as pipeline.json. This minimal example uses the service defaults for rotate, without specifying an angle. Run it only when the capability is available and its default behavior suits your material:
{
"version": "image.enhance.pipeline.v1",
"steps": [{ "type": "rotate", "enabled": true, "on_error": "fail" }],
"target": { "type": "images", "export_type": "single-page" }
}czur-open image enhance "./scans/page-1.jpg" "./scans/page-2.jpg" --pipeline "./pipeline.json" --output-dir "./enhanced" --task-timeout 600000 --jsonInputs are submitted in command-line order, and steps execute in array order. enabled: false disables a step. on_error: "fail" fails on a step error; "skip" allows skipping with a warning. Read warnings rather than treating a skipped step as successful. Filtering every page as blank does not produce a fabricated success with no files.
Independent enhancement supports image and PDF / OFD / TIFF output targets. Configure fields such as type, format, and export_type only according to the official capability and target schema. Document output does not imply an OCR text layer; use OCR export for searchable text. --output-dir controls local delivery only. Do not set Runtime filesystem paths such as target.path, target.output_path, target.dir, or target.output_dir.
Save and reuse workflows
Wrap the pipeline in a workflow object and save it as workflow.json:
{
"name": "Local document rotation",
"pipeline": {
"version": "image.enhance.pipeline.v1",
"steps": [{ "type": "rotate", "enabled": true, "on_error": "fail" }],
"target": { "type": "images", "export_type": "single-page" }
}
}czur-open image workflow save "./workflow.json" --json
czur-open image workflow list --json
czur-open image workflow get "YOUR_WORKFLOW_ID" --json
czur-open image enhance "./scans/page-1.jpg" --workflow "YOUR_WORKFLOW_ID" --output-dir "./enhanced" --json
czur-open image workflow delete "YOUR_WORKFLOW_ID" --jsonReplace the placeholder with the actual ID returned by save. To update a workflow, include its workflow_id in the saved object. Save also accepts image workflow save --file "./workflow.json"; the file may contain a direct workflow object or a { "workflow": { ... } } wrapper, not a bare pipeline.
Workflows live in the connected Runtime, not private account cloud storage. Save/update and delete are write operations, but saving does not run enhancement. Execution reads the workflow into a fixed pipeline snapshot, so later changes do not affect that invocation. Choose exactly one of --pipeline and --workflow.
Attach enhancement to capture
czur-open scan "YOUR_DEVICE_ID" --format jpg --pipeline "./pipeline.json" --capture-timeout 60000 --output-dir "./scans" --json
czur-open scan "YOUR_DEVICE_ID" --format jpg --workflow "YOUR_WORKFLOW_ID" --capture-timeout 60000 --output-dir "./scans" --jsonChoose one configuration source above. Enhancement is attached directly to capture, after paper and color processing, delivering final images without a download-and-reupload cycle.
For capture pipelines, omit target or use type: "images", with export_type omitted or single-page. Document targets, target.format, target.quality, TIFF-specific fields, and all Runtime output paths are rejected. Use scan --format / --quality for capture output. The minimal pipeline above is also valid for capture.
Enhancement failure does not silently fall back to the original image and report success. Explicitly skippable steps produce visible warnings. Increase --capture-timeout when needed. Without a selected pipeline or workflow, default scanning behavior remains unchanged.
Delivery and waiting
Independent enhancement defaults to ~/Pictures/CZUR Open and returns status, task_id, files[].path, file_uri, content_type, size, warnings, and progress. One command submits, waits, and downloads, with no background recovery command. Downloads do not overwrite existing files.
--timeout controls individual requests; enhancement --task-timeout defaults to 300000 milliseconds, while scans use --capture-timeout. Interruption/timeouts only attempt supported cancellation, without guaranteeing immediate computation termination. Inspect existing files before retrying after disconnection or delivery errors. See Command Reference for connection overrides and JSON automation for orchestration.