├── trainStatus.txt
├── README.md
├── trained_knn_model.clf
├── static
├── uploads
│ └── Ashish
│ │ ├── 2020-07-02-230613.jpg
│ │ ├── 2020-07-02-230629.jpg
│ │ ├── 2020-07-02-230639.jpg
│ │ └── 2020-07-02-230644.jpg
├── js
│ └── script.js
└── css
│ ├── signup.css
│ └── bootstrap.min.css
├── templates
├── Webcam.html
├── table.html
├── index.html
├── student.html
├── camera.html
├── signup.html
├── charts.html
├── login.html
├── about.html
├── contact.html
├── IY_Home.html
├── chatbot.html
└── IY_Home_page.html
├── helloWorld.py
├── requirements.txt
├── listcomp_test.py
├── template_app.py
├── form_data.py
└── camera.py
/trainStatus.txt:
--------------------------------------------------------------------------------
1 | 0
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FaceRecognitionFlask
--------------------------------------------------------------------------------
/trained_knn_model.clf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashus3868/FaceRecognitionFlask/HEAD/trained_knn_model.clf
--------------------------------------------------------------------------------
/static/uploads/Ashish/2020-07-02-230613.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashus3868/FaceRecognitionFlask/HEAD/static/uploads/Ashish/2020-07-02-230613.jpg
--------------------------------------------------------------------------------
/static/uploads/Ashish/2020-07-02-230629.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashus3868/FaceRecognitionFlask/HEAD/static/uploads/Ashish/2020-07-02-230629.jpg
--------------------------------------------------------------------------------
/static/uploads/Ashish/2020-07-02-230639.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashus3868/FaceRecognitionFlask/HEAD/static/uploads/Ashish/2020-07-02-230639.jpg
--------------------------------------------------------------------------------
/static/uploads/Ashish/2020-07-02-230644.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/ashus3868/FaceRecognitionFlask/HEAD/static/uploads/Ashish/2020-07-02-230644.jpg
--------------------------------------------------------------------------------
/templates/Webcam.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Webcam
6 |
7 |
8 |
12 |
13 |
--------------------------------------------------------------------------------
/templates/table.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Table Data
6 |
7 |
8 |
9 | {% for key, value in result.items()%}
10 |
11 | | {{key}} |
12 | {{value}} |
13 |
14 | {% endfor %}
15 |
16 |
17 |
--------------------------------------------------------------------------------
/helloWorld.py:
--------------------------------------------------------------------------------
1 | from flask import Flask
2 |
3 | app=Flask(__name__)
4 |
5 |
6 | @app.route('/')
7 | def message():
8 | return "Hello World
"
9 |
10 | @app.route('/hello')
11 | def second_page():
12 | return "This is a testing api for routing. Innovate Yourself
"
13 |
14 | @app.route('/hello/')
15 | def Dynamic_api(name):
16 | return "Hello {}
".format(name)
17 |
18 | #save time and
19 | if __name__=="__main__":
20 | app.run(debug=True)
--------------------------------------------------------------------------------
/templates/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Innovate Yourself
6 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/templates/student.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Student Data
6 |
7 |
8 |
15 |
16 |
--------------------------------------------------------------------------------
/requirements.txt:
--------------------------------------------------------------------------------
1 | camera==1.3.0
2 | certifi==2020.4.5.2
3 | chardet==3.0.4
4 | click==7.1.2
5 | dlib==19.20.0
6 | face-recognition==1.3.0
7 | face-recognition-models==0.3.0
8 | Flask==1.1.2
9 | idna==2.5
10 | imutils==0.5.3
11 | itsdangerous==1.1.0
12 | Jinja2==2.11.2
13 | joblib==0.15.1
14 | MarkupSafe==1.1.1
15 | numpy==1.19.0
16 | opencv-python==4.2.0.34
17 | Pillow==7.1.2
18 | pkg-resources==0.0.0
19 | requests==2.23.0
20 | scikit-learn==0.23.1
21 | scipy==1.5.0
22 | sklearn==0.0
23 | threadpoolctl==2.1.0
24 | urllib3==1.21.1
25 | Werkzeug==1.0.1
26 |
--------------------------------------------------------------------------------
/static/js/script.js:
--------------------------------------------------------------------------------
1 | var CAMERA=function(){
2 | // $('button').click(function(){
3 | // var user = $('#inputUsername').val();
4 | // var pass = $('#inputPassword').val();
5 | $.ajax({
6 | url: '/camera',
7 | data: $('form').serialize(),
8 | type: 'POST',
9 | success: function(response){
10 | console.log(response);
11 | var data=JSON.parse(response);
12 | // document.getElementById("demo").innerHTML = data.result;
13 | $("#demo").html('
');
14 | CAMERA();
15 | },
16 | error: function(error){
17 | console.log(error);
18 | }
19 | });
20 | }
21 | CAMERA();
22 | //});
--------------------------------------------------------------------------------
/static/css/signup.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 40px;
3 | padding-bottom: 40px;
4 | background-color: #eee;
5 | }
6 |
7 | .form-signin {
8 | max-width: 330px;
9 | padding: 15px;
10 | margin: 0 auto;
11 | }
12 | .form-signin .form-signin-heading,
13 | .form-signin .checkbox {
14 | margin-bottom: 10px;
15 | }
16 | .form-signin .checkbox {
17 | font-weight: normal;
18 | }
19 | .form-signin .form-control {
20 | position: relative;
21 | height: auto;
22 | -webkit-box-sizing: border-box;
23 | -moz-box-sizing: border-box;
24 | box-sizing: border-box;
25 | padding: 10px;
26 | font-size: 16px;
27 | }
28 | .form-signin .form-control:focus {
29 | z-index: 2;
30 | }
31 | .form-signin input[type="email"] {
32 | margin-bottom: -1px;
33 | border-bottom-right-radius: 0;
34 | border-bottom-left-radius: 0;
35 | }
36 | .form-signin input[type="password"] {
37 | margin-bottom: 10px;
38 | border-top-left-radius: 0;
39 | border-top-right-radius: 0;
40 | }
41 |
--------------------------------------------------------------------------------
/templates/camera.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 | SignUp Template for Bootstrap
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 | Camera
20 |
21 |
22 |
23 |
24 |
25 |
26 |
33 |
34 |
35 |
36 |
--------------------------------------------------------------------------------
/templates/signup.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Signup Page
6 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 | Signup Page
35 |
42 |
43 |
--------------------------------------------------------------------------------
/listcomp_test.py:
--------------------------------------------------------------------------------
1 | from pprint import pprint
2 | import requests
3 | # project=['dp-slackbot','dp-sandbox','americanpod']
4 | # service=['dp-slackbotser','dp-service','americanservice']
5 | # pods=[['dp-slackbot1'],['dp-sandbox1'],['americanpod1']]
6 |
7 | # [p.update({i:s.update({j:pods})}) for j in service for i in project ]
8 | # pprint(p)
9 |
10 | projecturl="https://dpslackbotlistnr-dev.aexp.com/api/v1/tickroperations/projects?carid=200003973"
11 | serviceurl="https://dpslackbotlistnr-dev.aexp.com/api/v1/tickroperations/services?projects={}"
12 | podsurl="https://dpslackbotlistnr-dev.aexp.com/api/v1/tickroperations/pods?projects={}&services={}"
13 | project=requests.get(url=projecturl).json()
14 | p={}
15 | s={}
16 | for i in project:
17 | service=requests.get(serviceurl.format(i)).json()
18 | s={}
19 | #service will be fetched for each project
20 | for j in service:
21 | pods = requests.get(podsurl.format(i,j)).json()
22 | s.update({j:pods})
23 | # print(s)
24 | print(s)
25 | p.update({i:s})
26 | print(p)
27 |
28 | pprint(p)
--------------------------------------------------------------------------------
/templates/charts.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | My Daily Routine
6 |
7 |
8 |
9 |
10 |
11 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/templates/login.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Home page
6 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
Login Page
37 |
38 |
44 | or Create a new account
45 |
46 |
47 |