Ctrl+K
Logo image Logo image

Site Navigation

  • API Reference
  • Examples

Site Navigation

  • API Reference
  • Examples

Section Navigation

  • PyFlink DataFrame
    • DataFrame
    • DataFrame Creation
    • Input / Output
    • SQL
    • Data Types
    • User Defined Functions
    • Configuration
    • Catalog
    • GPU Support
    • AI / LLM
    • Multimodal Expressions
  • PyFlink Multimodal
  • PyFlink Table
  • PyFlink DataStream
  • PyFlink Common

pyflink.multimodal.expression.ImageExpressionAccessor.crop_black_border#

ImageExpressionAccessor.crop_black_border(*, threshold: Optional[float] = None, detect_algorithm: Literal['auto', 'threshold', 'histogram', 'edge'] = 'auto', black_threshold: Optional[int] = None, edge_sensitivity: float = 1.0, min_border_size: int = 1, concurrency: Optional[int] = None) → pyflink.table.expression.Expression[source]#

Remove black borders from image values.

Equivalent to image_crop_black_border(). See that function for full parameter details.

Parameters
  • threshold – Optional border detection threshold.

  • detect_algorithm – Border detection algorithm.

  • black_threshold – Pixel threshold used to classify black borders.

  • edge_sensitivity – Sensitivity for detecting border edges.

  • min_border_size – Minimum border size in pixels.

  • concurrency – Optional execution concurrency for this operation. None uses the framework default.

Returns

A DataFrame expression that produces IMAGE values with black borders removed.

previous

pyflink.multimodal.expression.ImageExpressionAccessor.crop

next

pyflink.multimodal.expression.ImageExpressionAccessor.flip

Show Source

Created using Sphinx 4.5.0.