docs.rs failed to build cu-dynthreshold-0.7.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
cu-dynthreshold-0.12.0
Compute a dynamic threshold for an image
Theory of operation
The task computes a dynamic threshold for an image using the mean-based adaptive thresholding algorithm.
The algorithm computes the threshold for each pixel based on the mean pixel values in a block around it.
The block radius is a parameter of the algorithm and is set in the configuration.
Configuration
In the ron config file:
Add the parameters of the expected image size and the block radius for the thresholding algorithm.
(
tasks: [
(
id: "thres",
type: "cu_dynthreshold::DynThreshold",
config: {"width": 1920, "height": 1080, "block_radius": 100}
),
]
)
As an input it takes a gstreamer buffer as a grey image 8 bits per pixel. For example the beginning of an NV12 buffer works directly (provided you give it the correct width and height in the config).
As an output it will produce a CuImage with 0 or 255 values for each pixel.