Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
P
py-bigstream-cam
Project
Project
Details
Activity
Releases
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
Kamron Aroonrua
py-bigstream-cam
Commits
15251dd9
Commit
15251dd9
authored
Oct 29, 2019
by
Kamron Aroonrua
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
face
parent
96c53e80
Pipeline
#53
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
faceprocess.py
test/faceprocess.py
+4
-0
No files found.
test/faceprocess.py
View file @
15251dd9
import
face_recognition
import
os
import
re
import
requests
def
send_to_bigstream
(
name
,
dist
,
feature
,
ba64frame
,
ba64lab
):
requests
.
post
(
'http://push02.igridproject.info/lsrface'
,
json
=
{
"name"
:
name
,
"distance"
:
dist
,
"feature"
:
feature
,
"img_raw"
:
ba64frame
,
"img_label"
:
ba64lab
})
def
image_files_in_folder
(
folder
):
return
[
os
.
path
.
join
(
folder
,
f
)
for
f
in
os
.
listdir
(
folder
)
if
re
.
match
(
r'.*\.(jpg|jpeg|png)'
,
f
,
flags
=
re
.
I
)]
...
...
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