-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Desumai/version03
Version03
- Loading branch information
Showing
11 changed files
with
157 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
TESSERACT_PATH = r"tesseract\tesseract.exe" | ||
TEMP_PATH = r"temp" | ||
TEMP_PATH = r"temp" | ||
LINE_CLEAR = '\x1b[2K' #ANSI sequence to clear line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
class DwgPage: | ||
def __init__(self, pageNum:int, dwgNum:str, currentSheet:int, totalSheet:int): | ||
self.pageNum = pageNum | ||
self.dwgNum = dwgNum | ||
self.currentSheet = currentSheet | ||
self.totalSheet = totalSheet | ||
|
||
def is_same_dwg(self, otherPage) -> bool: | ||
return (self.dwgNum == otherPage.dwgNum) | ||
|
||
def is_last_sheet(self) -> bool: | ||
return self.currentSheet == self.totalSheet | ||
|
||
def is_right_after(self, pageBefore) -> bool: | ||
return self.is_same_dwg(pageBefore) and (self.currentSheet - pageBefore.currentSheet == 1) | ||
|
||
def is_valid(self) -> bool: | ||
return (self.dwgNum is not None) and (self.currentSheet is not None) and (self.totalSheet is not None) |
Oops, something went wrong.