Repository navigation
Expand file tree
/
Copy pathdocs.html
More file actions
1059 lines (1026 loc) · 70.5 KB
/
Copy pathdocs.html
File metadata and controls
1059 lines (1026 loc) · 70.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<meta name="description" content="" />
<meta name="author" content="" />
<title>FotoFaces - UA</title>
<!-- Favicon-->
<link rel="icon" type="image/x-icon" href="assets/img/favicon.ico" />
<!-- Font Awesome icons (free version)-->
<script src="https://use.fontawesome.com/releases/v5.15.4/js/all.js" crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet" type="text/css" />
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700" rel="stylesheet" type="text/css" />
<!-- Core theme CSS (includes Bootstrap)-->
<link href="css/styles.css" rel="stylesheet" />
</head>
<body id="page-top">
<!-- Navigation-->
<nav class="navbar navbar-expand-lg navbar-dark fixed-top navbar-shrink" id="mainNav">
<div class="container">
<a class="navbar-brand" href="index.html#page-top"><img src="assets/img/navbar-logo.png" alt="..." /></a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
Menu
<i class="fas fa-bars ms-1"></i>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav text-uppercase ms-auto py-4 py-lg-0">
<li class="nav-item"><a class="nav-link" href="index.html#features">Features</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#portfolio">About</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#team">Team</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#apk">Apk</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#documentation">Documentation</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#calendar">Calendar</a></li>
<li class="nav-item"><a class="nav-link" href="index.html#video">Videos</a></li>
<!--<li class="nav-item"><a class="nav-link" href="#contact">Contact</a></li>-->
</ul>
<label class="switch" style="margin-left: 5px">
<input type="checkbox" id="dark-mode" onclick="darkmode(this)"/>
<span class="slider round"></span>
</label>
</div>
</div>
</nav>
<br>
<div class="container page-section text-center">
<div class="row">
<div class="col-sm-3" id="docs">
<button class="btn-app" onclick="Documentation(event, 'doc-app')">
<a class="doc-link">
<span class="fa-stack fa-4x">
<i class="fas fa-circle fa-stack-2x text-secondary" id="tablinks1"></i>
<i class="fas fa-regular fa-mobile-alt fa-stack-1x fa-inverse"></i>
</span>
</a>
</button>
<h4 class="my-3">Mobile Application</h4>
<p class="text-muted font-weight-light mb-0">Some Documentation for the Mobile App needed</p>
<br>
<button class="btn-app" onclick="Documentation(event, 'doc-gen')">
<a class="doc-link">
<span class="fa-stack fa-4x">
<i class="fas fa-circle fa-stack-2x text-selected" id="tablinks2"></i>
<i class="fas fa-bars fa-stack-1x fa-inverse"></i>
</span>
</a>
</button>
<h4 class="my-3">General</h4>
<p class="text-muted font-weight-light mb-0">General Documentation like diagrams, tasks and roles</p>
<br>
<button class="btn-app" onclick="Documentation(event, 'doc-fot')">
<a class="doc-link">
<span class="fa-stack fa-4x">
<i class="fas fa-circle fa-stack-2x text-secondary" id="tablinks3"></i>
<i class="fas fa-camera-retro fa-stack-1x fa-inverse"></i>
</span>
</a>
</button>
<h4 class="my-3">FotoFaces</h4>
<p class="text-muted font-weight-light mb-0">Some Documentation for the FotoFaces API and algorithms</p>
</div>
<div class="col-md-9" style="overflow:auto; height: 100vh">
<!-- Documentation Modals-->
<!-- Mobile App-->
<div class="tabcontent container" id="doc-app">
<div class="row justify-content-center">
<div class="col-lg-12">
<!-- Project details-->
<!-- Body-->
<h3 class="text-uppercase">Functional Requirements</h3>
<ul class="text-muted font-weight-light mb-5">
<li>The system must allow the user to login with username and password (or SSO)</li>
<li>The system must allow the user to check his current photo</li>
<li>The system must allow the user to check the properties needed for a photo to be valid</li>
<li>The system must allow the user to pick between taking a live photo or choosing a photo from the gallery and do one of them</li>
<li>The system must allow the user to choose between updating a valid photo, going back to the last menu or return to the main page</li>
<li>The system must send a photo and the user ID to the FotoFaces API</li>
<li>The system must receive a JSON from the FotoFaces API with the validation properties</li>
<li>The system must check the validity of a photo (based on its properties)</li>
<li>The system must show the user if the chosen photo is valid</li>
</ul>
<div class="container">
<div class="row">
<div class="col-md-6">
<h3 class="text-uppercase">Development Tools</h3>
<div class="container">
<div class="row">
<div align="center" class="col-md-8">
<img class="image-doc" src="assets/img/others/react_native.png" alt="React Native" />
<p class="text-muted font-weight-light mb-5">
React Native
</p>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<h3 class="text-uppercase">Database</h3>
<img class="image-doc" src="assets/img/diagrams/db.png" alt="Database" />
<br><br>
</div>
</div>
</div>
<h3 class="text-uppercase">Mock-Ups</h3>
<div class="container">
<div class="row">
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/mockups/homepage.jpg" alt="Home Page" />
<p class="text-muted font-weight-light mb-5">
Home Page
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/mockups/login.jpg" alt="Login" />
<p class="text-muted font-weight-light mb-5">
Login
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/mockups/register.jpg" alt="Register" />
<p class="text-muted font-weight-light mb-5">
Register
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/mockups/upload.jpg" alt="Photo Upload" />
<p class="text-muted font-weight-light mb-5">
Photo Upload
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/mockups/update.jpg" alt="Update Photo" />
<p class="text-muted font-weight-light mb-5">
Update Photo
</p>
</div>
</div>
</div>
<br><br>
<h1 class="text-uppercase">Construction Phase</h1>
<h3 class="text-uppercase">Photo</h3>
<br>
<div class="container">
<div class="row">
<div align="center" class="col-sm-6">
<img class="image-doc" style="max-width: 60%" src="assets/img/mockups/Media_220423_164618.gif" alt="Take Photo" />
<p class="text-muted font-weight-light mb-5">
Take photo from camera roll
</p>
</div>
<div align="center" class="col-sm-6">
<img class="image-doc" style="max-width: 60%" src="assets/img/mockups/Media_220423_165205.gif" alt="Choose Photo" />
<p class="text-muted font-weight-light mb-5">
Choose photo from gallery
</p>
</div>
</div>
</div>
<br>
<h3 class="text-uppercase">Design</h3>
<div class="container">
<div class="row">
<div class="row">
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/startscreen.jpg" alt="Home Page" />
<p class="text-muted font-weight-light mb-5">
Start Screen
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/login.jpg" alt="Login" />
<p class="text-muted font-weight-light mb-5">
Login Screen
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/register.jpg" alt="Register" />
<p class="text-muted font-weight-light mb-5">
Register Screen
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/mainscreen2.jpg" alt="Photo Upload" />
<p class="text-muted font-weight-light mb-5">
Main Screen for Validation
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/mainscreen_prop.jpg" alt="Main Page" />
<p class="text-muted font-weight-light mb-5">
Main Screen with properties
</p>
</div>
<div align="center" class="col-md-2">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/accept.jpg" alt="Accept Photo" />
<p class="text-muted font-weight-light mb-5">
Phot Accept Screen
</p>
</div>
</div>
</div>
</div>
<br>
<h3 class="text-uppercase">Live Detection</h3>
<h4 class="text-uppercase">The Three Steps</h4>
<div class="container">
<div class="row">
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/step1.jpg" alt="Home Page" />
<p class="text-muted font-weight-light mb-5">
Winking
</p>
</div>
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/step2.jpg" alt="Home Page" />
<p class="text-muted font-weight-light mb-5">
Rotating the head
</p>
</div>
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 90%" src="assets/img/design/step3.jpg" alt="Home Page" />
<p class="text-muted font-weight-light mb-5">
Smiling
</p>
</div>
</div>
</div>
<br>
<h4 class="text-uppercase">Algorithm</h4>
<p class="text-muted font-weight-light mb-5">
The Live Detection algorithm is used when a user chooses
to take a new photo in the main screen or the register screen.
The camera option will take the user to an interface, based
on a project done by <a href="https://osamaqarem.com/blog/intro-to-liveness-detection-with-react-native">Osama Qarem</a>,
where he has to put his face inside a frame and do some verification steps, like
winking an eye.
</p>
<p class="text-muted font-weight-light mb-5">
We use an expo package called <a href="https://docs.expo.dev/versions/latest/sdk/facedetector/">FaceDetector</a> which
uses functions of <a href="https://developers.google.com/vision">Google Mobile Vision framework</a> to
detect the faces on images and gives an array that contains
information about the face, e.g. the coordinates of the center
of the nose, the winking probability, etc.. The FaceDetector
package is usually used along with the <a href="https://docs.expo.dev/versions/latest/sdk/camera/">Camera</a> package also
from expo, where we can define the properties of the
FaceDetector detection, as for example the minimum detection
interval, which defines in what space of time it should return a
new array of the properties of the face. By analysing that array,
we can confirm if the user is smiling or not, by checking the
value of the key 'smilingProbability', if the number is bigger,
it means that the user is most likely smiling.
</p>
</div>
</div>
</div>
<!-- General App-->
<div class="tabcontent container" id="doc-gen">
<div class="row justify-content-center">
<div class="col-lg-12">
<!-- Project details-->
<!-- Body-->
<h1 class="text-uppercase">Architecture</h1>
<h3 class="text-uppercase">Simple Architecture</h3>
<img class="image-doc" src="assets/img/diagrams/Simple_Architecture.png" alt="Simple Architecture" />
<br><br>
<br><br>
<h1 class="text-uppercase">Inception Phase</h1>
<h3 class="text-uppercase">Communication Plan</h3>
<div class="container">
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 60%" src="assets/img/others/discord-mascot.png" alt="Discord" />
<p class="text-muted font-weight-light mb-5">
Team communication
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 57%" src="assets/img/others/slack.png" alt="Slack" />
<p class="text-muted font-weight-light mb-5">
Advisor-Team discussion
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 107%" src="assets/img/others/GitHub-Logo.png" alt="Github" />
<p class="text-muted font-weight-light mb-5">
Project Bakclog management
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 60%" src="assets/img/others/website.png" alt="Website" />
<p class="text-muted font-weight-light mb-5">
Promotional Website
</p>
</div>
</div>
</div>
<h3 class="text-uppercase">Development Tools</h3>
<div class="container">
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 90%" src="assets/img/others/react_native.png" alt="React Native" />
<p class="text-muted font-weight-light mb-5">
Mobile App building
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 107%" src="assets/img/others/GitHub-Logo.png" alt="Github" />
<p class="text-muted font-weight-light mb-5">
Code repository
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 60%" src="assets/img/others/react.webp" alt="React" />
<p class="text-muted font-weight-light mb-5">
Website building
</p>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" style="max-width: 60%" src="assets/img/others/discord-mascot.png" alt="Discord" />
<p class="text-muted font-weight-light mb-5">
Team communication
</p>
</div>
</div>
</div>
<h3 class="text-uppercase">Project Calendar</h3>
<img class="image-doc" src="assets/img/diagrams/Lifecycle.png" alt="Project Calendar" />
<br><br>
<br><br>
<h1 class="text-uppercase">Elaboration Phase</h1>
<h3 class="text-uppercase">Non-Functional Requirements</h3>
<ul class="text-muted font-weight-light mb-5">
<li>Scalability - When many users use the API at the same time</li>
<li>Reliability - It shouldn’t crash all the time</li>
<li>Availability - Always available to any user</li>
<li>Maintainability - Maintain documentation and infrastructure</li>
<li>Usability - Intuitive application</li>
</ul>
<h3 class="text-uppercase">Actors</h3>
<div class="container">
<div class="row" align="center">
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fas fa-circle fa-stack-2x text-secondary"></i>
<i class="fas fa-user-tie fa-stack-1x fa-inverse"></i>
</span>
<h5>Employees</h5>
</div>
<div class="col-md-4">
<span class="fa-stack fa-4x">
<i class="fas fa-circle fa-stack-2x text-secondary"></i>
<i class="fas fa-user-alt fa-stack-1x fa-inverse"></i>
</span>
<h5>Human Resources representatives</h5>
</div>
</div>
</div>
<br>
<h3 class="text-uppercase">Use Cases</h3>
<img class="image-doc" src="assets/img/diagrams/UseCase.png" alt="Use Case"/>
<br>
<span class="text-muted font-weight-light mb-5">
User opens app, makes login, checks his or her photo, decides to take a newer photo, the app offers mechanisms to upload or to take a new photo, User waits for the response containing all the metrics of the FotoFaces then the mobile app validates those criterias and a new screen appears to the user offering them to take the red or the blue pill, while exhibiting the photo after cropping and fixing the pitch, yaw and raw.
</span>
<br><br>
<h3 class="text-uppercase">Domain Model</h3>
<img class="image-doc" src="assets/img/diagrams/DomainModel.png" alt="Domain Model" />
<br><br>
<h3 class="text-uppercase">Deployment Diagram</h3>
<img class="image-doc" src="assets/img/diagrams/DeploymentModel.png" alt="Deployment Model" />
<br><br>
<h3 class="text-uppercase">State of Art</h3>
<p class="text-muted font-weight-light mb-5">
<a class="link-primary" href="https://id.ua.pt/">id.ua.pt</a> already offers services that includes a similar software than the one we are going to build
</p>
<br><br>
<br><br>
<h1 class="text-uppercase">Construction Phase</h1>
<h3 class="text-uppercase">Database</h3>
<div class="container">
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/database/database_creation.png" alt="Create" />
<p class="text-muted font-weight-light mb-5">
Database Creation
</p>
</div>
</div>
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/database/database_update.png" alt="Update" />
<p class="text-muted font-weight-light mb-5">
Database Update
</p>
</div>
</div>
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/database/database_get.png" alt="Get" />
<p class="text-muted font-weight-light mb-5">
Database Get
</p>
</div>
</div>
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/swagger/unknown.png" alt="Get" />
<p class="text-muted font-weight-light mb-5">
Database Endpoints
</p>
</div>
</div>
</div>
<br>
<h3 class="text-uppercase">Message Dealing</h3>
<div class="container">
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/http-response.png" alt="Get" />
<p class="text-muted font-weight-light mb-5">
Http message Example
</p>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- FotoFaces App-->
<div class="tabcontent container" id="doc-fot">
<div class="row justify-content-center">
<div class="col-lg-12">
<!-- Project details-->
<!-- Body-->
<h3 class="text-uppercase">Functional Requirements</h3>
<ul class="text-muted font-weight-light mb-5">
<li>The system must be able to receive a photo and an user ID</li>
<li>The system must get the user old photo from the database</li>
<li>The system must compare the photos and check if it’s the same person</li>
<li>The system must detect a series of properties from the new photo</li>
<li>The system must send the detected properties in a JSON format to the user</li>
<li>The systen must allow for plugins to be added for detection of more properties</li>
</ul>
<h3 class="text-uppercase">Development Tools</h3>
<div class="container">
<div class="row">
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 60%" src="assets/img/others/flask.png" alt="React Native" />
<p class="text-muted font-weight-light mb-5">
Flask
</p>
</div>
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 40%" src="assets/img/others/OpenCV_Logo.png" alt="React Native" />
<p class="text-muted font-weight-light mb-5">
OpenCV
</p>
</div>
<div align="center" class="col-md-4">
<img class="image-doc" style="max-width: 50%" src="assets/img/others/dlib_find_min_global_header.webp" alt="React Native" />
<p class="text-muted font-weight-light mb-5">
Dlib
</p>
</div>
</div>
</div>
<h3 class="text-uppercase">Algorithms</h3>
<div class="container">
<div class="row">
<div class="col-md-3">
<ul class="text-muted font-weight-light mb-5">
<li>Facial Recognition</li>
<li>Face Reference Detected</li>
<li>Face Orientation</li>
<li>Frontal Face</li>
<li>Analyse photo quality</li>
<li>Analyse photo brightness</li>
<li>Analyse colored Picture</li>
<li>Blur background</li>
</ul>
</div>
<div class="col-md-3">
<ul class="text-muted font-weight-light mb-5">
<li>Resize</li>
<li>Cropping</li>
<li>EyesOpen</li>
<li>Gaze</li>
<li>Hat</li>
<li>Glasses</li>
<li>Sunglasses</li>
<li>Implement deep learning</li>
</ul>
</div>
</div>
</div>
<h3 class="text-uppercase">Properties</h3>
<div class="container">
<div class="row">
<div class="col-md-6">
<h5 class="text-muted">Returns True or False for the following:</h5>
</div>
<div class="col-md-6">
<h5 class="text-muted">Returns Levels for the following:</h5>
</div>
</div>
<div class="row">
<div class="col-md-3">
<ul class="text-muted font-weight-light mb-5">
<li>Has a face</li>
<li>Macthes old photo</li>
<li>Blurred</li>
<li>Cropped</li>
<li>Live</li>
<li>Colored</li>
</ul>
</div>
<div class="col-md-3">
<ul class="text-muted font-weight-light mb-5">
<li>Eyes Open</li>
<li>Frontal Profile</li>
<li>Hat</li>
<li>Glasses</li>
<li>Sunglasses</li>
</ul>
</div>
<div class="col-md-3">
<ul class="text-muted font-weight-light mb-5">
<li>Brightness</li>
<li>Quality</li>
</ul>
</div>
</div>
</div>
<br>
<br><br>
<h1 class="text-uppercase">Construction Phase</h1>
<h3 class="text-uppercase">Plugin Arquitecture</h3>
<div class="container">
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/database/Plugin_arquitecture.png" alt="plugin" />
<br><br>
<div class="text-muted font-weight-light mb-5">
<p>Each plugin folder (like Gaze) contains a python file with the algorithm code, with useful functions if needed, and a .yaml configuration file.</p>
<p>The main application will gather all the plugins and run them consecutively, until there are no more to execute.</p>
<p>Then it will gather each algorithm result and convert it into a single json message</p>
</div>
</div>
</div>
</div>
<br><br>
<h3 class="text-uppercase">Testing</h3>
<div class="container">
<div class="text-muted font-weight-light mb-5">
<p>All tests are conducted to a specified algorithm</p>
<p>They were made to observe the time the algorithms take to execute, from both the old and new fotofaces, as well as how well do they work</p>
</div>
<div class="row">
<h4 class="text-uppercase">Face Detection</h4>
<div align="center">
<img class="image-doc" src="assets/img/tests/FaceDetection.png" alt="faceDetection" />
</div>
</div>
<br><br>
<div class="row">
<h4 class="text-uppercase">Facial Comparison</h4>
<div align="center">
<img class="image-doc" src="assets/img/tests/Test_comparison1.png" alt="comparison_success" />
<p class="text-muted font-weight-light mb-5">
Same person = True
</p>
</div>
</div>
<div class="row">
<div align="center">
<img class="image-doc" src="assets/img/tests/Test_Comparison2.png" alt="comparison_fail" />
<p class="text-muted font-weight-light mb-5">
Different people = False
</p>
</div>
</div>
</div>
<br>
<h3 class="text-uppercase">Algorithms Implemented</h3>
<div class="container">
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Face Detection</h4>
</div>
<div class="col-md-6">
<h4 class="text-uppercase">Face Recognition</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-6">
<img class="image-doc" src="assets/img/plugins/detected_face.png" alt="faceDetection" width="45%"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/FaceRecognition/tests/images/GoncaloOldFoto.jpg" alt="face recognition 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/FaceRecognition/tests/images/GoncaloNoGlasses.jpg" alt="face recognition 2" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns a shape
</p>
</div>
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns true or false, will return true
</p>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Sunglasses Detection</h4>
</div>
<div class="col-md-6">
<h4 class="text-uppercase">Glasses Detection</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Sunglasses/tests/images/sunglasses_7.jpg" alt="sunglasses 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Sunglasses/tests/images/bright_mini_1.jpg" alt="sunglasses 2" width="68%"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Glasses/test/images/Glasses_1.jpg" alt="glasses 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/EyesOpen/tests/images/Open_eyes_3.jpg" alt="glasses 2" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns true or false, will return true to the left and true to the right
</p>
</div>
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns true or false, will return true to the left and true to the right
</p>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Focus/ Gaze</h4>
</div>
<div class="col-md-6">
<h4 class="text-uppercase">Image Quality</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Gaze/tests/images/Gaze_1.jpg" alt="gaze 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Gaze/tests/images/Gaze_4.jpg" alt="gaze 2"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/ImageQuality/tests/images/Pedro.jpg" alt="img quality 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/ImageQuality/tests/images/GoncaloOldFoto.jpg" alt="img quality 2" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns bewteen 50 and 100, the higher the better
</p>
</div>
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns value above 0, the lower the better
</p>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Head Position</h4>
</div>
<div class="col-md-6">
<h4 class="text-uppercase">Hat Detection</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/HeadPose/tests/images/head_pose1.jpg" alt="head pose 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/HeadPose/tests/images/head_pose2.jpg" alt="head pose 2"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Hats/tests/images/hat_person_6.jpg" alt="hats 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/ImageQuality/tests/images/GoncaloOldFoto.jpg" alt="hats 2" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns values above 0, the lower the better
</p>
</div>
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns true or false, will return true to the left and true to the right
</p>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Brightness</h4>
</div>
<div class="col-md-6">
<h4 class="text-uppercase">Open Eyes</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Brightness/tests/images/bright_Pedro_1.jpg" alt="brightness 1" width="68%"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/Brightness/tests/images/bright_vicente_6.jpg" alt="brightness 2"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/EyesOpen/tests/images/Open_eyes_3.jpg" alt="openeyes 1" />
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/EyesOpen/tests/images/Open_eyes_7.jpg" alt="openeyes 2" />
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns value above 0, the higher the better
</p>
</div>
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns values between 0.10 and 0.50, the higher the better
</p>
</div>
</div>
<br>
<div class="row">
<div class="col-md-6">
<h4 class="text-uppercase">Cropping</h4>
</div>
</div>
<div class="row">
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/vicente_before_cropped.png" alt="cropped 1" width="68%"/>
</div>
<div align="center" class="col-md-3">
<img class="image-doc" src="assets/img/plugins/cropped_image.png" alt="cropped 2"/>
</div>
</div>
<div class="row">
<div class="col-md-6">
<p class="text-muted font-weight-light mb-5">
Returns a cropped image
</p>
</div>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Footer-->
<footer class="footer py-4">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-4 text-lg-start">Copyright © FotoFaces 2021</div>
<div class="col-lg-4 my-3 my-lg-0 text-center">
<a class="btn btn-dark btn-social mx-2" href="http://www.github.com/FotoFaces"><i class="fab fa-github"></i></a>
</div>
<div class="col-lg-4 text-lg-end">
<a class="link-dark text-decoration-none me-3" href="#!">Privacy Policy</a>
<a class="link-dark text-decoration-none" href="#!">Terms of Use</a>
</div>
</div>
</div>
</footer>
<!-- Portfolio Modals-->
<!-- Portfolio item 1 modal popup-->
<div class="portfolio-modal modal fade" id="portfolioModal1" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="close-modal" data-bs-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project details-->
<h2 class="text-uppercase">Context</h2>
<p class="text-muted font-weight-light mb-5">Our project resides in identifying peoples on photos and adjusting those photos in order for them to have a high quality and an easy association between a person’s name and their face.<br>We also strive to invalidate photos which do not respect some standards, for instance if the photo will be used on an identification card such as the citizen card we cannot let people wear glasses or use a hat, because that does not respect some laws, of course this must be an extra module because not every business model must be that strict.</p>
<button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
<i class="fas fa-times me-1"></i>
Close
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio item 2 modal popup-->
<div class="portfolio-modal modal fade" id="portfolioModal2" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="close-modal" data-bs-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project details-->
<h2 class="text-uppercase">Problem</h2>
<p class="text-muted font-weight-light mb-5" >Our project will consist of a mobile application that sends a photo to an API which will respond with characteristics of that photo (Ex.: Has a face, has glasses…) and, according to the response message, the mobile app will check if it’s valid and update it to the database.</p>
<button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
<i class="fas fa-times me-1"></i>
Close
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio item 3 modal popup-->
<div class="portfolio-modal modal fade" id="portfolioModal3" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="close-modal" data-bs-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project details-->
<h2 class="text-uppercase mb-5">Goals</h2>
<ul class="text-muted font-weight-light mb-5 list-style-type:circle text-start mt-2 mx-auto">
<li>
Facial Recognition functionalities
</li>
<li>
Improve existing algorithms in FotoFaces
</li>
<li>
Add algorithms to FotoFaces to improve the reliability of the Facial Recognition
</li>
<li>
Implement deep learning to make the FotoFaces algorithms more reliable
</li>
</ul>
<button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
<i class="fas fa-times me-1"></i>
Close
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio item 4 modal popup-->
<div class="portfolio-modal modal fade" id="portfolioModal4" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="close-modal" data-bs-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project details-->
<h2 class="text-uppercase mb-5">Risks</h2>
<ul class="text-muted font-weight-light mb-5 list-style-type:circle text-start mt-2 mx-auto">
<li>
Modularization Problems
</li>
<li>
Performance and Efficiency of the algorithms
</li>
<li>
Bad implementation of deep learning
</li>
</ul>
<button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
<i class="fas fa-times me-1"></i>
Close
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Portfolio item 5 modal popup-->
<div class="portfolio-modal modal fade" id="portfolioModal5" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="close-modal" data-bs-dismiss="modal"><img src="assets/img/close-icon.svg" alt="Close modal" /></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="modal-body">
<!-- Project details-->
<h2 class="text-uppercase mb-5">Expected Results</h2>
<ul class="text-muted font-weight-light mb-5 list-style-type:circle text-start mx-auto mt-3">
<li>
Fully functional mobile app with FotoFaces integration
</li>
<li>
Reliable Facial Recognition
</li>
<li>
Robust backend capable of scaling
</li>
</ul>
<button class="btn btn-primary btn-xl text-uppercase" data-bs-dismiss="modal" type="button">
<i class="fas fa-times me-1"></i>
Close
</button>
</div>
</div>
</div>
</div>