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
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
dda494cd
Commit
dda494cd
authored
2 years ago
by
Renaud
Browse files
Options
Downloads
Patches
Plain Diff
Mise à jour licence
parent
d1ba9533
No related branches found
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
LICENSE
+1
-1
1 addition, 1 deletion
LICENSE
poc/__init__.py
+1
-1
1 addition, 1 deletion
poc/__init__.py
poc/_identification.py
+2
-2
2 additions, 2 deletions
poc/_identification.py
poc/_models.py
+7
-9
7 additions, 9 deletions
poc/_models.py
poc/_ocr.py
+0
-2
0 additions, 2 deletions
poc/_ocr.py
with
11 additions
and
15 deletions
LICENSE
+
1
−
1
View file @
dda494cd
MIT License
Copyright (c) 2023
BIRK Renaud
Copyright (c) 2023
ALAPETITE Nino, AOUAD Mohamed Jad, ARIFA Mohamed Salim, BERRADA Rania, BIRK Renaud, BRETÉCHÉ Youenn, CHEUCLE Antoine, GOLDET Frantz, LAVENAN Kilian, LEFEVRE Antoine, PARION Arnaud, RABIER Nathan, WASSEL Jemli
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
...
...
This diff is collapsed.
Click to expand it.
poc/__init__.py
+
1
−
1
View file @
dda494cd
...
...
@@ -9,6 +9,6 @@ __all__ = [
from
._db
import
DB
from
._identification
import
Identification
from
._models
import
*
from
._models
import
Dispositif
,
Group
from
._ocr
import
OCR
from
._ui
import
UI
This diff is collapsed.
Click to expand it.
poc/_identification.py
+
2
−
2
View file @
dda494cd
...
...
@@ -51,7 +51,7 @@ class Identification:
def
estPasUtile
(
self
,
groupe
):
return
self
.
estMarqueur
(
groupe
.
split
(
"
"
,
1
)[
0
],
"
lot
"
)
or
self
.
estCodeBarre
(
groupe
)
or
self
.
estDate
(
groupe
)
def
identify
(
self
):
def
identify
(
self
)
->
Tuple
[
Dispositif
,
List
]
:
"""
Prend la liste de texte et retourne un dispositif contenant les données déterminées et les données à classer par l
'
utilisateur
"""
...
...
@@ -75,4 +75,4 @@ class Identification:
if
not
self
.
estPasUtile
(
subgroup
.
string
):
self
.
dispositif
.
addATrier
(
subgroup
.
string
)
res_subgroups
.
append
(
subgroup
)
return
self
.
dispositif
,
res_subgroups
return
(
self
.
dispositif
,
res_subgroups
)
This diff is collapsed.
Click to expand it.
poc/_models.py
+
7
−
9
View file @
dda494cd
...
...
@@ -3,8 +3,6 @@ from typing import List, Tuple
class
Group
:
"""
Classe représentant un regroupement (boîte, chaîne de caractères, score)
@author: Groupe 7
"""
def
__init__
(
self
,
box
:
List
[
List
[
float
]],
string
:
str
,
score
:
float
)
->
None
:
self
.
box
=
box
...
...
@@ -16,13 +14,13 @@ class Dispositif:
Classe représentant les informations d
'
identification d
'
un dispositif
"""
def
__init__
(
self
):
self
.
fabricant
=
""
self
.
marque
=
""
self
.
description
=
""
self
.
iud
=
""
self
.
ref
=
""
self
.
aTrier
=
[]
def
__init__
(
self
,
fabricant
=
""
,
marque
=
""
,
description
=
""
,
iud
=
""
,
ref
=
""
,
groups
=
""
):
self
.
fabricant
=
fabricant
self
.
marque
=
marque
self
.
description
=
description
self
.
iud
=
iud
self
.
ref
=
ref
self
.
groups
=
list
()
def
setFabricant
(
self
,
fabricant
):
self
.
fabricant
=
fabricant
...
...
This diff is collapsed.
Click to expand it.
poc/_ocr.py
+
0
−
2
View file @
dda494cd
...
...
@@ -6,8 +6,6 @@ from typing import List
class
OCR
:
"""
Classe d
'
implémentation de la reconnaissance optique de caractères (OCR)
@author: Groupe 7
"""
def
__init__
(
self
,
use_gpu
=
True
)
->
None
:
# Il n'y a besoin d'exécuter une seule fois pour télécharger et charger
...
...
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