Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
face_recognition
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
se_329_cylicon_valley
face_recognition
Commits
2307d668
Commit
2307d668
authored
8 years ago
by
johni
Browse files
Options
Downloads
Patches
Plain Diff
saved image shows name
parent
214161d8
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Saving features
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FacialRec.cpp
+2
-2
2 additions, 2 deletions
FacialRec.cpp
with
2 additions
and
2 deletions
FacialRec.cpp
+
2
−
2
View file @
2307d668
...
@@ -58,7 +58,7 @@ int main() {
...
@@ -58,7 +58,7 @@ int main() {
while
(
true
)
{
while
(
true
)
{
Mat
picture_with_text
=
picture
.
clone
();
Mat
picture_with_text
=
picture
.
clone
();
putText
(
picture_with_text
,
"Press 's' to save"
,
Point2f
(
375
,
100
),
FONT_HERSHEY_SIMPLEX
,
2.0
,
Scalar
(
255
,
0
,
0
,
0
),
3
);
putText
(
picture_with_text
,
"Press 's' to save"
,
Point2f
(
375
,
100
),
FONT_HERSHEY_SIMPLEX
,
2.0
,
Scalar
(
255
,
0
,
0
,
0
),
3
);
putText
(
picture_with_text
,
"Press ESC/Spacebar to return"
,
Point2f
(
160
,
600
),
FONT_HERSHEY_SIMPLEX
,
2.0
,
Scalar
(
0
,
0
,
255
,
255
),
3
);
putText
(
picture_with_text
,
"Press ESC/Spacebar to return"
,
Point2f
(
160
,
600
),
FONT_HERSHEY_SIMPLEX
,
2.0
,
Scalar
(
0
,
0
,
255
),
3
);
imshow
(
"Webcam"
,
picture_with_text
);
imshow
(
"Webcam"
,
picture_with_text
);
...
@@ -77,7 +77,7 @@ int main() {
...
@@ -77,7 +77,7 @@ int main() {
Point
org
;
Point
org
;
org
.
x
=
15
;
org
.
x
=
15
;
org
.
y
=
100
;
org
.
y
=
100
;
putText
(
picture
,
name
,
org
,
FONT_HERSHEY_SIMPLEX
,
2
,
Scalar
(
0
,
0
,
255
),
3
,
8
);
putText
(
picture
,
name
,
org
,
FONT_HERSHEY_SIMPLEX
,
2
,
Scalar
(
0
,
0
,
255
),
3
);
bool
maybe
=
imwrite
(
directory
,
picture
);
bool
maybe
=
imwrite
(
directory
,
picture
);
cout
<<
"s was pressed. saving image, success: "
<<
maybe
<<
endl
;
cout
<<
"s was pressed. saving image, success: "
<<
maybe
<<
endl
;
}
}
...
...
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