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
e47e7269
Commit
e47e7269
authored
8 years ago
by
Noah Eigenfeld
Browse files
Options
Downloads
Patches
Plain Diff
Reading files correctly - still not predicting the correct subject
parent
b90d3667
No related branches found
Branches containing commit
No related tags found
1 merge request
!5
Face detection
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FacialRec.cpp
+13
-1
13 additions, 1 deletion
FacialRec.cpp
with
13 additions
and
1 deletion
FacialRec.cpp
+
13
−
1
View file @
e47e7269
...
@@ -73,7 +73,7 @@ int main() {
...
@@ -73,7 +73,7 @@ int main() {
int
i
=
0
;
int
i
=
0
;
while
(
true
)
{
while
(
true
)
{
filename
=
to_string
(
i
);
filename
=
to_string
(
i
);
string
path
=
directory
+
subdirectory
+
filename
+
".pg
m
"
;
string
path
=
directory
+
subdirectory
+
filename
+
".p
n
g"
;
cout
<<
"path: "
<<
path
<<
endl
;
cout
<<
"path: "
<<
path
<<
endl
;
load_image
=
imread
(
path
,
1
);
load_image
=
imread
(
path
,
1
);
...
@@ -97,6 +97,18 @@ int main() {
...
@@ -97,6 +97,18 @@ int main() {
}
}
}
}
//Check that images were read correctly
cout
<<
"Images read: "
<<
images
.
size
()
<<
endl
;
int
counter
=
0
;
for
(
Mat
test_image
:
images
)
{
string
window_name
=
format
(
"test_image_%d"
,
counter
);
namedWindow
(
window_name
,
CV_WINDOW_AUTOSIZE
);
imshow
(
window_name
,
test_image
);
cout
<<
"showing image "
<<
counter
<<
endl
;
counter
++
;
}
//Convert to grayscale
//Convert to grayscale
picture_grayscale
=
picture
.
clone
();
picture_grayscale
=
picture
.
clone
();
cvtColor
(
picture
,
picture_grayscale
,
CV_BGR2GRAY
);
cvtColor
(
picture
,
picture_grayscale
,
CV_BGR2GRAY
);
...
...
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