Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-208
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2021-208
2021-208
Commits
def34101
Commit
def34101
authored
Sep 26, 2021
by
IT18109290_Fernando W.S.D
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18109290_Dewmal' into 'master'
It18109290 dewmal See merge request
!84
parents
62bb9286
a26fea16
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
6 deletions
+9
-6
UI/app.js
UI/app.js
+0
-1
UI/results.html
UI/results.html
+4
-0
app.py
app.py
+1
-1
face_detection_recognition/db_Handler.py
face_detection_recognition/db_Handler.py
+2
-2
main.js
main.js
+2
-2
No files found.
UI/app.js
View file @
def34101
...
@@ -99,7 +99,6 @@ if(result != null){
...
@@ -99,7 +99,6 @@ if(result != null){
</div>
</div>
</div>`
</div>`
})
})
.
catch
(
error
=>
console
.
log
(
'
error
'
))
.
catch
(
error
=>
console
.
log
(
'
error
'
))
})
})
...
...
UI/results.html
View file @
def34101
...
@@ -38,6 +38,10 @@
...
@@ -38,6 +38,10 @@
<button
class=
"btn btn-primary"
id=
"result"
hidden
>
View Result
</button>
<button
class=
"btn btn-primary"
id=
"result"
hidden
>
View Result
</button>
<div
id=
"imageView"
style=
""
>
</div>
<div
id=
"dataSection"
>
<div
id=
"dataSection"
>
</div>
</div>
...
...
app.py
View file @
def34101
...
@@ -480,7 +480,7 @@ def GetAllData():
...
@@ -480,7 +480,7 @@ def GetAllData():
data2
=
{
'id'
:
faceRecogData
.
id
,
'Name'
:
faceRecogData
.
Name
,
'Age'
:
faceRecogData
.
Age
,
data2
=
{
'id'
:
faceRecogData
.
id
,
'Name'
:
faceRecogData
.
Name
,
'Age'
:
faceRecogData
.
Age
,
'Gender'
:
faceRecogData
.
Gender
,
'DOB'
:
faceRecogData
.
DOB
,
'Address'
:
faceRecogData
.
Address
,
'Gender'
:
faceRecogData
.
Gender
,
'DOB'
:
faceRecogData
.
DOB
,
'Address'
:
faceRecogData
.
Address
,
'Blood_Group'
:
faceRecogData
.
Blood_Group
,
'NIC'
:
faceRecogData
.
NIC
,
'Height'
:
faceRecogData
.
Height
,
'Blood_Group'
:
faceRecogData
.
Blood_Group
,
'NIC'
:
faceRecogData
.
NIC
,
'Height'
:
faceRecogData
.
Height
,
'Crimes'
:
faceRecogData
.
Crimes
,
'Profile_picture'
:
faceRecogData
.
Profile_picture
}
'Crimes'
:
faceRecogData
.
Crimes
}
data3
=
{
'id'
:
figureData
.
id
,
'age'
:
figureData
.
age
,
'gender'
:
figureData
.
gender
,
'height'
:
figureData
.
height
}
data3
=
{
'id'
:
figureData
.
id
,
'age'
:
figureData
.
age
,
'gender'
:
figureData
.
gender
,
'height'
:
figureData
.
height
}
return
jsonify
(
data1
,
data2
,
data3
)
return
jsonify
(
data1
,
data2
,
data3
)
...
...
face_detection_recognition/db_Handler.py
View file @
def34101
...
@@ -18,9 +18,9 @@ def return_data():
...
@@ -18,9 +18,9 @@ def return_data():
cursor
.
execute
(
cursor
.
execute
(
"CREATE TABLE criminal_result(id int(11) NOT NULL, Name varchar(100) NOT NULL, Age int(11) NOT NULL,"
"CREATE TABLE criminal_result(id int(11) NOT NULL, Name varchar(100) NOT NULL, Age int(11) NOT NULL,"
" Gender varchar(100) NOT NULL, DOB date NOT NULL, Address varchar(100) NOT NULL, Blood_Group varchar(100) NOT NULL,"
" Gender varchar(100) NOT NULL, DOB date NOT NULL, Address varchar(100) NOT NULL, Blood_Group varchar(100) NOT NULL,"
" NIC int(11) DEFAULT NULL,Height float NOT NULL, Crimes varchar(100) NOT NULL
,Profile_picture varchar(100) NOT NULL
)"
)
" NIC int(11) DEFAULT NULL,Height float NOT NULL, Crimes varchar(100) NOT NULL)"
)
# print("Criminal Result Table Created")
# print("Criminal Result Table Created")
sql
=
"INSERT INTO criminal_investigation.criminal_result SELECT criminals_details.id,criminals_details.Name,criminals_details.Age,criminals_details.Gender, criminals_details.DOB,criminals_details.Address,criminals_details.Blood_Group,criminals_details.NIC,criminals_details.Height, criminals_details.Crimes
, criminals_details.Profile_picture
"
\
sql
=
"INSERT INTO criminal_investigation.criminal_result SELECT criminals_details.id,criminals_details.Name,criminals_details.Age,criminals_details.Gender, criminals_details.DOB,criminals_details.Address,criminals_details.Blood_Group,criminals_details.NIC,criminals_details.Height, criminals_details.Crimes
"
\
"FROM criminals LEFT JOIN criminals_details ON (criminals_details.id = criminals.cID)"
\
"FROM criminals LEFT JOIN criminals_details ON (criminals_details.id = criminals.cID)"
\
"WHERE criminals.SNo = SNo = 1"
"WHERE criminals.SNo = SNo = 1"
cursor
.
execute
(
sql
)
cursor
.
execute
(
sql
)
...
...
main.js
View file @
def34101
...
@@ -4,8 +4,8 @@ require('electron-reload')(__dirname)
...
@@ -4,8 +4,8 @@ require('electron-reload')(__dirname)
function
createWindow
()
{
function
createWindow
()
{
const
mainWindow
=
new
BrowserWindow
({
const
mainWindow
=
new
BrowserWindow
({
width
:
8
00
,
width
:
10
00
,
height
:
6
00
height
:
8
00
})
})
mainWindow
.
loadFile
(
__dirname
+
'
/UI/loading.html
'
)
mainWindow
.
loadFile
(
__dirname
+
'
/UI/loading.html
'
)
...
...
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