Filter: classifai_should_ocr_scan_image

apply_filters( 'classifai_should_ocr_scan_image', $should_ocr_scan, $metadata, $attachment_id ) → {bool}

Filters whether to run OCR scanning on the current image.

Parameters:
Name Type Description
$should_ocr_scan bool

Whether to run OCR scanning. The default value is set in ComputerVision settings.

$metadata array

Image metadata.

$attachment_id int

The attachment ID.

Since:
  • 1.6.0
Source:
Returns:

Whether to run OCR scanning.

Type
bool