Skip to main content
Version: 0.10.x [Latest Beta]

SimplifiedPipeline

SimplifiedPipeline is the default way to run an exported .denkflow pipeline. It wraps a Pipeline, performs initialization internally, and returns structured results in absolute pixel coordinates. Subscribing to topics, publishing tensors, and decoding raw output tensors are handled automatically.

For full manual control over graph construction and topic wiring, see the classic Pipeline flow.

Basic usage

A SimplifiedPipeline is created from an uninitialized Pipeline and run on an image. The image argument accepts an image file path, an ImageTensor / ImageTensorU8, or a NumPy array.

import denkflow

pipeline = denkflow.Pipeline.from_denkflow("path/to/model.denkflow", pat="YOUR-PAT")
simplified = denkflow.SimplifiedPipeline(pipeline)

results = simplified.run("path/to/image.jpg", confidence_threshold=0.5)

for image_result in results:
for r in image_result.results:
if r.bounding_box:
bb = r.bounding_box
print(f"[{r.index}] {bb.class_label.name}: {bb.confidence:.2f}")

What comes next