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
0b5f7973
Commit
0b5f7973
authored
Oct 15, 2021
by
IT18028188_Fernando K.P.P.E
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18028188_Praveen' into 'master'
v1.16 See merge request
!92
parents
613aba74
a2938f32
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
4 deletions
+46
-4
UI/Criminal_registration.html
UI/Criminal_registration.html
+2
-2
face_detection_recognition/Testing_files/accuracy.py
face_detection_recognition/Testing_files/accuracy.py
+42
-0
face_detection_recognition/Testing_files/snapping_input.py
face_detection_recognition/Testing_files/snapping_input.py
+2
-2
No files found.
UI/Criminal_registration.html
View file @
0b5f7973
...
...
@@ -29,14 +29,14 @@
</div>
<h1
class=
"mx-auto my-0 text-uppercase"
style=
"text-align: center;"
>
CRIMINAL REGISTRATION
</h1>
<form
id=
"myform"
style=
"margin-top: 5px;"
>
<form
id=
"myform"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col"
style=
"padding-left: 100px;}"
>
<div
class=
"form-input"
style=
"margin-bottom: 8px;"
>
<label
class=
"required"
>
Full name
</label><br>
<input
class=
"input_f"
type=
"text"
name=
"first_name"
id=
"Name"
onkeypress=
"return lettersValidate(event)"
required
/>
required
/>
</div>
<div
class=
"form-input"
style=
"margin-bottom: 8px;"
>
<label
for=
"age"
class=
"required"
>
Age
</label><br>
...
...
face_detection_recognition/Testing_files/accuracy.py
0 → 100644
View file @
0b5f7973
import
pandas
as
pd
import
seaborn
as
sns
import
statsmodels.formula.api
as
smf
from
sklearn.linear_model
import
LinearRegression
from
sklearn
import
metrics
import
numpy
as
np
# read data into a DataFrame
data
=
pd
.
read_csv
(
'C:
\\
Users
\\
Praveen
\\
Desktop
\\
test.csv'
,
index_col
=
0
)
data
.
head
()
# # create a fitted model
lm1
=
smf
.
ols
(
formula
=
'check ~ Robbery'
,
data
=
data
)
.
fit
()
# print(lm1.params)
### STATSMODELS ###
# create a fitted model with all three features
lm1
=
smf
.
ols
(
formula
=
'check ~ Robbery + Aggraveted_Assualt + Weapons_Dealing + Mortor_vehicle_Theft + Kidnapping_Cases + Murder_cases + Fighting_in_public'
,
data
=
data
)
.
fit
()
# print the coefficients
print
(
lm1
.
params
)
# create X and y
feature_cols
=
[
'Robbery'
,
'Aggraveted Assualt'
,
'Weapons Dealing'
,
'Mortor vehicle Theft'
,
'Kidnapping Cases'
,
'Murder cases'
,
'Fighting in public'
]
X
=
data
[
feature_cols
]
y
=
data
.
check
# instantiate and fit
lm2
=
LinearRegression
()
lm2
.
fit
(
X
,
y
)
# print the coefficients
print
(
lm2
.
intercept_
)
print
(
lm2
.
coef_
)
list
(
zip
(
feature_cols
,
lm2
.
coef_
))
### STATSMODELS ###
# print a summary of the fitted model
print
(
lm1
.
summary
())
\ No newline at end of file
face_detection_recognition/Testing_files/snapping_input.py
View file @
0b5f7973
# import cv2
#
# # input video
# cap = cv2.VideoCapture("
E:/Research/Criminal investigation management system/Input video/video3
.mp4")
# cap = cv2.VideoCapture("
C:/Users/Praveen/Desktop/video
.mp4")
#
# i = 0
# while cap.isOpened():
# flag, frame = cap.read()
# if flag == False:
# break
# cv2.imwrite('
E:/Research/Criminal investigation management system/Output snaps
/new' + str(i) + '.jpg', frame)
# cv2.imwrite('
C:/Users/Praveen/Desktop/New folder
/new' + str(i) + '.jpg', frame)
# i += 1
#
# # #Test Commit
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