Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
face_detect
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiajunjie
face_detect
Commits
ba0b15f2
Commit
ba0b15f2
authored
Jan 25, 2021
by
jack
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.ubocare.com:jiajunjie/face_detect
update
parents
0c0aff4e
6b585429
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
2 deletions
+15
-2
darknet.cpython-35.pyc
examples/python/hatdet/__pycache__/darknet.cpython-35.pyc
+0
-0
darknet.py
examples/python/hatdet/darknet.py
+2
-1
darknet.pyc
examples/python/hatdet/darknet.pyc
+0
-0
test_darknet.py
examples/python/hatdet/test_darknet.py
+13
-1
ubotest.mp4
examples/python/hatdet/ubotest.mp4
+0
-0
No files found.
examples/python/hatdet/__pycache__/darknet.cpython-35.pyc
deleted
100644 → 0
View file @
0c0aff4e
File deleted
examples/python/hatdet/darknet.py
View file @
ba0b15f2
...
...
@@ -86,4 +86,5 @@ class DarknetYolo:
k
=
k
+
1
return
lists
else
:
print
(
"Cann't detect objects,please check image!"
)
#print("Cann't detect objects,please check image!")
return
[]
examples/python/hatdet/darknet.pyc
0 → 100644
View file @
ba0b15f2
File added
examples/python/hatdet/test_darknet.py
View file @
ba0b15f2
...
...
@@ -2,6 +2,9 @@ import cv2 as cv
import
os.path
import
darknet
as
interface
import
argparse
import
sys
import
time
import
datetime
configPath
=
'hat-obj-test.cfg'
...
...
@@ -54,9 +57,14 @@ while cv.waitKey(1) < 0:
cap
.
release
()
break
detections_lists
=
[]
t1
=
time
.
time
()
detections_lists
=
yolo
.
getdetresults
(
frame
)
print
(
len
(
detections_lists
))
t
=
time
.
time
()
print
(
int
(
round
((
t
-
t1
)
*
1000
)))
if
detections_lists
:
print
(
len
(
detections_lists
))
for
i
in
range
(
len
(
detections_lists
)
):
# get x,y,w,h
x1
=
detections_lists
[
i
][
0
]
...
...
@@ -71,5 +79,9 @@ while cv.waitKey(1) < 0:
text
=
"{}: {:.4f}"
.
format
(
label
,
confidence
)
cv
.
putText
(
frame
,
text
,
(
x1
,
y1
-
5
),
cv
.
FONT_HERSHEY_SIMPLEX
,
0.5
,
color
,
1
,
lineType
=
cv
.
LINE_AA
)
else
:
print
(
0
)
cv
.
imshow
(
"Tag"
,
frame
)
#print(detections_lists)
examples/python/hatdet/ubotest.mp4
0 → 100644
View file @
ba0b15f2
File added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment