Skip to content

Device discovery and management ​

Before scanning, query devices visible to Runtime and copy the actual device_id. Do not use a display name, USB index, or example placeholder as the ID. Device operations require the selected account or API Key authorization. Investigate connectivity with Runtime diagnostics first.

List devices and inspect details ​

bash
czur-open device list --json
czur-open device get "YOUR_DEVICE_ID" --json

The list's devices array contains descriptions that may include device_id, name, model, status, authorization information, and resolutions. Inspect details to confirm your choice. Optional fields depend on the device information supplied. An empty list is a valid query result, not an operation failure.

With multiple devices, confirm the intended model and name before passing its device_id onward. Do not automatically select the first device or reuse an ID from another computer.

One-shot open and close ​

bash
czur-open device open "YOUR_DEVICE_ID" --json
czur-open device close "YOUR_DEVICE_ID" --json

Use device open to check whether a device can be opened. Before exiting, the CLI attempts to close the device and release its connection. Opening in one command does not prepare a persistent session for the next command. The open result includes status, device_id, result, and released. released indicates this command performs its release lifecycle, not a session credential for later commands. Cleanup is best-effort; inspect Runtime or the owning application if the device remains unavailable.

device close requests closure of the specified device; it is not a general way to forcibly terminate another application. If another program owns the device, finish that program's session rather than repeatedly opening or closing it.

Resolution and output specifications ​

These options are available when opening a device. Select values from its resolutions and capability information, not arbitrary numbers:

OptionMeaning
--width, --heightPositive capture dimensions in pixels
--fpsPositive capture frame rate
--pixel-formatmjpeg, jpeg, or bgr24

These are device open capture settings, not general file conversion parameters, and are not retained for the next scan. Scan --target-size is a separate output specification based on the device's capture_output.target_sizes, not video resolution. Inspect result.capture_output in the open result for output-size information.

Scan directly ​

Normal scanning does not require a preceding device open:

bash
czur-open scan "YOUR_DEVICE_ID" --format jpg --output-dir "./scans" --json

One command connects, opens the device, starts capture, saves final images, and attempts to stop video, close the device, and disconnect before exiting. Read files[].path for actual paths. By default it captures once; turn the page and run it again as needed. See capture and processing.

Connection options and troubleshooting ​

All device list|get|open|close commands support --json, --command-url, --ca-file, and --timeout. The default request timeout is 3000 milliseconds. Custom CAs still enforce certificate verification; see connection configuration.

  • Empty list: Check power, cables, USB connectivity, and Runtime device detection; reconnect and query again if necessary.
  • Visible but cannot open: Close other scanning/video programs and check system device permissions, activation, and authorization.
  • Device busy: Finish the existing session instead of running concurrent capture processes.
  • Authorization failure: Run auth check. If an environment Key is set, inspect that Key instead of repeatedly signing in.
  • Unsupported specification: Read device capabilities again rather than guessing resolution or output settings.

Continue to OCR and document export, or pass scan results onward with JSON automation.