Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IA DETECTION SIGNE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
KHRIS Badreddine
IA DETECTION SIGNE
Commits
ee64a956
Commit
ee64a956
authored
2 months ago
by
Badreddine
Browse files
Options
Downloads
Patches
Plain Diff
trad
parent
21d77a36
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
collect_imgs.py
+5
-5
5 additions, 5 deletions
collect_imgs.py
with
5 additions
and
5 deletions
collect_imgs.py
+
5
−
5
View file @
ee64a956
...
...
@@ -7,15 +7,15 @@ DATA_DIR = './data'
if
not
os
.
path
.
exists
(
DATA_DIR
):
os
.
makedirs
(
DATA_DIR
)
n
u
mb
er_of
_classe
s
=
3
dataset
_size
=
100
n
o
mb
re_de
_classe
=
3
taille_du_
dataset
=
100
cap
=
cv2
.
VideoCapture
(
0
)
for
j
in
range
(
n
u
mb
er_of
_classe
s
):
for
j
in
range
(
n
o
mb
re_de
_classe
):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
DATA_DIR
,
str
(
j
))):
os
.
makedirs
(
os
.
path
.
join
(
DATA_DIR
,
str
(
j
)))
print
(
'
Collect
ing data for
class {}
'
.
format
(
j
))
print
(
'
Collect
e image pour la
class
e
{}
'
.
format
(
j
))
done
=
False
while
True
:
...
...
@@ -27,7 +27,7 @@ for j in range(number_of_classes):
break
counter
=
0
while
counter
<
dataset
_size
:
while
counter
<
taille_du_
dataset
:
ret
,
frame
=
cap
.
read
()
cv2
.
imshow
(
'
frame
'
,
frame
)
cv2
.
waitKey
(
25
)
...
...
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