Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
INT-HACK-Groupe7
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PC-AP-INT446-N-2023
Hacking Health
INT-HACK-Groupe7
Commits
4cbb194a
Commit
4cbb194a
authored
2 years ago
by
BIRK Renaud
Browse files
Options
Downloads
Patches
Plain Diff
Typos
parent
55b05655
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+1
-1
1 addition, 1 deletion
README.md
test.py
+9
-3
9 additions, 3 deletions
test.py
with
10 additions
and
4 deletions
README.md
+
1
−
1
View file @
4cbb194a
...
...
@@ -40,7 +40,7 @@ pip install "paddleocr>=2.0.1"
python test.py
```
Vous pouvez ajouter vos images de test dans le dossier
`data/img/`
.
Vous pouvez ajouter vos images de test
s
dans le dossier
`data/img/`
.
### Utilisation par le code
...
...
This diff is collapsed.
Click to expand it.
test.py
+
9
−
3
View file @
4cbb194a
...
...
@@ -32,7 +32,9 @@ def main():
ocr
.
save_ocr
(
device
.
useful_groups
,
TEST_IMAGES_DIR
+
"
/biomet.jpg
"
,
OUTPUT_DIR
+
"
/biomet_export_step2.jpg
"
,
FONT_DIR
+
"
/
"
+
FONT_FILENAME
)
# 3. Interface graphique de tri
UI
(
device
,
OUTPUT_DIR
+
"
/biomet_export_step3.txt
"
).
show
()
ui
=
UI
(
device
,
OUTPUT_DIR
+
"
/biomet_export_step3.txt
"
)
ui
.
show
()
print
(
ui
.
device
)
# Autres exemples
...
...
@@ -47,7 +49,9 @@ def main():
# output_file2.write(str(device2))
# output_file2.close()
# ocr.save_ocr(device2.useful_groups, TEST_IMAGES_DIR + "/passeo-18.jpg", OUTPUT_DIR + "/passeo-18_export_step2.jpg", FONT_DIR + "/" + FONT_FILENAME)
# UI(device2, OUTPUT_DIR + "/passeo-18_export_step3.txt").show()
# ui2 = UI(device2, OUTPUT_DIR + "/passeo-18_export_step3.txt").show()
# ui2.show()
# print(ui2.device)
# groups3 = ocr.recognize(TEST_IMAGES_DIR + "/stryker.jpg")
# ocr.save_ocr(groups3, TEST_IMAGES_DIR + "/stryker.jpg", OUTPUT_DIR + "/stryker_export_step1.jpg", FONT_DIR + "/" + FONT_FILENAME)
...
...
@@ -60,7 +64,9 @@ def main():
# output_file3.write(str(device3))
# output_file3.close()
# ocr.save_ocr(device3.useful_groups, TEST_IMAGES_DIR + "/stryker.jpg", OUTPUT_DIR + "/stryker_export_step2.jpg", FONT_DIR + "/" + FONT_FILENAME)
# UI(device3, OUTPUT_DIR + "/stryker_export_step3.txt").show()
# ui3 = UI(device3, OUTPUT_DIR + "/stryker_export_step3.txt").show()
# ui3.show()
# print(ui3.device)
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment