Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hocr option for Tesseract-based OCR #583

Merged
merged 1 commit into from
Jul 30, 2018
Merged

Add hocr option for Tesseract-based OCR #583

merged 1 commit into from
Jul 30, 2018

Conversation

dadoonet
Copy link
Owner

This change adds a new setting fs.ocr.output_type to change the OCR default behavior.

Set the output type from ocr process. fs.ocr.output_type property can be defined to txt or hocr in your ~/.fscrawler/test/_settings.json file:

{
 "name" : "test",
 "fs" : {
   "url" : "/path/to/data/dir",
   "ocr" : {
     "output_type": "hocr"
   }
 }
}

When omitted, txt value is used.

Closes #507.

This change adds a new setting `fs.ocr.output_type` to change the OCR default behavior.

Set the output type from ocr process. `fs.ocr.output_type` property can be defined to `txt` or `hocr` in your `~/.fscrawler/test/_settings.json` file:

```json
{
 "name" : "test",
 "fs" : {
   "url" : "/path/to/data/dir",
   "ocr" : {
     "output_type": "hocr"
   }
 }
}
```

When omitted, `txt` value is used.

Closes #507.
@dadoonet dadoonet added the new For new features or options label Jul 30, 2018
@dadoonet dadoonet added this to the 2.5 milestone Jul 30, 2018
@dadoonet dadoonet self-assigned this Jul 30, 2018
@dadoonet dadoonet merged commit 2b7555c into master Jul 30, 2018
@dadoonet dadoonet deleted the fix/507-hocr branch July 30, 2018 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new For new features or options
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant