Force TIFF IFilter to perform OCR for every page in a TIFF document
Obliger TIFF IFilter à effectuer un traitement OCR sur chaque page d'un document TIFF
Explanation
This Group Policy setting lets users turn off the performance optimization so that the TIFF IFilter will perform OCR for every page in a TIFF document, which allows indexing of all recognized text. By default, the TIFF IFilter optimizes its performance by skipping OCR (Optical Character Recognition) for document pages that have non-textual content (for example, pictures). In some cases, pages that contain text can be misclassified as non-text pages. If this is the case, the text in these pages will not be indexed.
If you enable this setting, TIFF IFilter will perform OCR for every page in a TIFF document to index all recognized text. Therefore, the OCR process will be slower. This decrease in performance can be significant if there are lots of non-textual pages (pictures) in TIFF documents on the system.
If you disable or do not configure this setting, TIFF IFilter will optimize its performance by skipping non-textual content during the OCR process.
Ce paramètre de stratégie de groupe permet aux utilisateurs de désactiver l'optimisation des performances de façon à ce que le composant TIFF IFilter applique le traitement OCR à chacune des pages d'un document TIFF, ce qui a pour effet d'indexer tout le texte reconnu. Par défaut, le composant TIFF IFilter améliore ses performances en ignorant le mode OCR (reconnaissance optique de caractères) pour les pages du document n'ayant aucun contenu textuel (comme les images, par exemple). Dans certains cas, il arrive que les pages contenant du texte soient considérées par erreur comme des pages sans texte. Si cela se produit, le texte figurant sur ces pages n'est pas indexé.
Si vous activez ce paramètre, le composant TIFF IFilter applique la reconnaissance optique de caractères à chaque page d'un document TIFF afin d'indexer l'intégralité du texte reconnu. La procédure OCR risque, par conséquent, d'être plus longue. Cela est d'autant plus vrai si les documents TIFF sur le système contiennent un grand nombre de pages sans texte (images).
Si vous désactivez ce paramètre de stratégie ou ne le configurez pas, le composant TIFF IFilter ignore le contenu non textuel lors du traitement OCR afin d'être le plus performant possible.
Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR- Value name
OCREveryPage
| State | Value written |
|---|---|
| Enabled | REG_DWORD = 1 |
| Disabled | REG_DWORD = 0 |
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Enable
# Enable: searchocr/OCREveryPage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'OCREveryPage' -Value 1 -Type DWordDisable
# Disable: searchocr/OCREveryPage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
Set-ItemProperty -Path $k -Name 'OCREveryPage' -Value 0 -Type DWordRevert to "Not configured"
# Revert to "Not configured": searchocr/OCREveryPage
$k = 'HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search\OCR'
Remove-ItemProperty -Path $k -Name 'OCREveryPage' -ErrorAction SilentlyContinue