Function decode_barcode
pub fn decode_barcode(image: &DecodedImage) -> Result<BarcodeResult, MediaError>Expand description
Re-exports the media runtime helpers when the media feature is enabled.
§Examples
ⓘ
use pharos_native::media::*;§Related
crate::runtimefor runtime flows that consume media helpers. Decodes the first barcode from an image.
§Parameters
image: Input consumed bycrate::decode_barcode.
§Returns
Returns the successful value produced by crate::decode_barcode or an error when the operation fails.
§Errors
Returns an error value when crate::decode_barcode cannot complete successfully.
§Examples
ⓘ
let _result = pharos_runtime_media::decode_barcode(todo!());§Related
- [
crate] for adjacent helpers that share the same runtime surface.