Skip to content

Commit

Permalink
Merge branch 'rl-0.9.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
amenezes committed Jul 18, 2022
2 parents cde7850 + fb7e477 commit 2f331d6
Show file tree
Hide file tree
Showing 4 changed files with 164 additions and 98 deletions.
2 changes: 1 addition & 1 deletion aiopytesseract/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
)
from .models import OSD, Box, Data, Parameter

__version__ = "0.8.0"
__version__ = "0.9.0"
__all__ = [
"__version__",
"OSD",
Expand Down
22 changes: 11 additions & 11 deletions aiopytesseract/base_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ async def execute(
image: Any,
output_format: str,
dpi: int,
lang: Optional[str],
psm: int,
oem: int,
timeout: float,
lang: Optional[str] = None,
user_words: Optional[str] = None,
user_patterns: Optional[str] = None,
tessdata_dir: Optional[str] = None,
Expand All @@ -55,26 +55,26 @@ async def _(
image: str,
output_format: str,
dpi: int,
lang: Optional[str],
psm: int,
oem: int,
timeout: float,
lang: Optional[str] = None,
user_words: Optional[str] = None,
user_patterns: Optional[str] = None,
tessdata_dir: Optional[str] = None,
) -> bytes:
await file_exists(image)
response: bytes = await execute(
Path(image).read_bytes(),
output_format,
dpi,
lang,
psm,
oem,
timeout,
user_words,
user_patterns,
tessdata_dir,
output_format=output_format,
dpi=dpi,
psm=psm,
oem=oem,
timeout=timeout,
lang=lang,
user_words=user_words,
user_patterns=user_patterns,
tessdata_dir=tessdata_dir,
)
return response

Expand Down
Loading

0 comments on commit 2f331d6

Please sign in to comment.