Skip to content

Commit

Permalink
'size' fixed again
Browse files Browse the repository at this point in the history
  • Loading branch information
javvi51 committed Mar 15, 2024
1 parent f237a72 commit f520a8a
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 3 deletions.
22 changes: 20 additions & 2 deletions eDOCr.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: opencv-python
Requires-Dist: tensorflow>=2.0.0
Requires-Dist: Pillow
Requires-Dist: shapely
Requires-Dist: anytree
Requires-Dist: scikit-image
Requires-Dist: scikit-learn
Requires-Dist: tqdm
Requires-Dist: validators
Requires-Dist: essential_generators
Requires-Dist: imgaug
Requires-Dist: fonttools
Requires-Dist: editdistance
Requires-Dist: pyclipper
Requires-Dist: efficientnet==1.0.0
Requires-Dist: pytest
Requires-Dist: pdf2image

# eDOCr

Expand All @@ -26,7 +43,7 @@ Open Anaconda Prompt and type the following commands:


```bash
conda create -n edocr -ypip
conda create -n edocr -y
conda activate edocr

# To install from PyPi
Expand All @@ -38,6 +55,7 @@ cd path/to/your/folder
git clone https://github.com/javvi51/eDOCr
cd eDOCr
pip install -r requirements.txt
pip install .
```

### Using
Expand All @@ -56,7 +74,7 @@ python PATH/TO/YOUR/FOLDER/eDOCr/ocr_it.py PATH/TO/YOUR/DRAWING/my_drawing.pdf
Additional commands you can use are:

```bash
# Specify the destination path. By default, it is the same as your drawing.
# Specify the destination path. By default, it is the path you are running your code from.
--dest-folder PATH/TO/YOUR/DESTINATION/FOLDER
# Does the drawing have watermark you want to remove? By default, it is not considered.
--water
Expand Down
3 changes: 2 additions & 1 deletion eDOCr.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ eDOCr/tools/pipeline_dimensions.py
eDOCr/tools/pipeline_gdts.py
eDOCr/tools/pipeline_infoblock.py
eDOCr/tools/tolerances.py
eDOCr/tools/watermark.py
eDOCr/tools/watermark.py
tests/test_drawing.py
18 changes: 18 additions & 0 deletions tests/test_Results/LIU0010_0_dimensions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ID,type,flag,nominal,value,tolerance,upper_bound,lower_bound
1,Angle,True,20°,20,,,
2,Length,False,12.5,12.5,general,,
3,Length,False,25,25,general,,
4,Length,False,2,2,general,,
5,Length,False,16,16,general,,
6,Length,False,.9 0 -0.1,.9,,0,-0.1
7,Length,False,15,15,general,,
8,Length,False,1.6,1.6,general,,
9,Length,False,0.8,0.8,general,,
10,Length,True,1.6,1.6,general,,
11,Thread,False,M8,M8,,,
12,Length,False,20,20,general,,
13,Length,False,2xR0.15,2xR0.15,general,,
14,Length,True,16.5 +0.1 0,16.5,,+0.1,0
15,Length,True,2x⌀19.,2x⌀19.,general,,
16,Length,False,2xR0.2,2xR0.2,general,,
17,Length,True,".G""2",".G""2",general,,
Expand Down
1 change: 1 addition & 0 deletions tests/test_Results/LIU0010_0_gdts.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ID,flag,nominal,condition,tolerance
Expand Down
20 changes: 20 additions & 0 deletions tests/test_Results/LIU0010_0_tables.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ID,nominal
1,Revsion; A
2,drawng number; /ritnnosumme; LiU0010
3,DecpqoVbem0e; Kov; CykeIpump
4,format; A4
5,Surface treatmen Ytbehanding; Anodiserad 15-20um; KuI0r: Natur
6,MateriaI; EN AW-6082
7,Group/Grupp; Verkstad
8,av; Appr. by/Godk.
9,"Rev. by/Grask. a,"
10,Date/datum; 2021-10-15
11,Created ar; by/ritad
12,Contact q
13,"GeneraI surace insh /genereN ystruktur; Ra 3,2"
14,"Tolerance, f not ndiated acc. o ,; senerela toleranser dar e, anna ages engt; ISO 2768-mK"
15,Sign.
16,Date/Datum
17,Change edAqqoz
18,Rev.
19,REVISION
Expand Down
Binary file modified tests/test_Results/LIU0010_mask.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/test_Results/LIU0010_process.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f520a8a

Please sign in to comment.