dora-rs node to split one image into multiple images
Project description
dora-opencv-image-splitter
A dora-rs node to split one image into multiple images.
Usage
Inputs
| ID | Type | Metadata | Description |
|---|---|---|---|
image |
UInt8 Arrow array |
encoding, width, height |
Raw image as a flat array of shape H × W × channels |
Supported encodings: bgr8, rgb8, jpeg, jpg, jpe, bmp, webp, png.
Outputs
The outputs are dynamically named by index: image_0, image_1, ..., image_N-1.
| ID | Type | Metadata | Description |
|---|---|---|---|
image_N |
UInt8 Arrow array |
encoding, width, height |
JPEG-encoded sub-image cropped from the input image |
Each output carries the same metadata as the input, with encoding set to "jpeg" and width/height updated to the sub-image dimensions.
Configuration
The node can be configured via environment variables or command-line arguments:
| Environment variable | CLI argument | Default | Description |
|---|---|---|---|
SPLIT_MODE |
--split-mode |
"vertical" |
Split strategy: "horizontal" (rows), "vertical" (columns), or "bbox" |
NUM_SPLITS |
--num-splits |
2 |
Number of equal splits for horizontal/vertical mode |
JPEG_QUALITY |
--jpeg-quality |
90 |
JPEG quality for output encoding, 0–100 |
IMAGE_WIDTH |
--image-width |
640 |
Fallback image width when metadata is absent |
IMAGE_HEIGHT |
--image-height |
480 |
Fallback image height when metadata is absent |
IMAGE_ENCODING |
--image-encoding |
(none) | Fallback image encoding when metadata is absent |
BBOXES |
--bboxes |
(none) | Bounding boxes for bbox mode as a flat list: x1 y1 x2 y2 ... |
Example dataflow
See example/dataflow.yaml for an example that splits a camera image into two vertical halves and displays each half separately.
License
Licensed under the Apache License 2.0. See LICENSE for details.
Copyright 2026 Enactic, Inc.
Code of Conduct
All participation in the OpenArm project is governed by our Code of Conduct.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file dora_opencv_image_splitter-0.1.0.tar.gz.
File metadata
- Download URL: dora_opencv_image_splitter-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13fab657e9e2019eb4e47b413d19a8255db7443a68eb5a4244d72873363e25e
|
|
| MD5 |
d5e24ee7fc40652908bac04e3d71cdbb
|
|
| BLAKE2b-256 |
ed77421b9049cfe442b515580345be8570154e5a3f19a393540a71b1e187ae3a
|
Provenance
The following attestation bundles were made for dora_opencv_image_splitter-0.1.0.tar.gz:
Publisher:
package.yaml on enactic/dora-opencv-image-splitter
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dora_opencv_image_splitter-0.1.0.tar.gz -
Subject digest:
e13fab657e9e2019eb4e47b413d19a8255db7443a68eb5a4244d72873363e25e - Sigstore transparency entry: 2015594673
- Sigstore integration time:
-
Permalink:
enactic/dora-opencv-image-splitter@09c088ec9600c2a3cddf638a44ade9c053f7f173 -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/enactic
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
package.yaml@09c088ec9600c2a3cddf638a44ade9c053f7f173 -
Trigger Event:
push
-
Statement type: