Skip to content

Commit c854e1c

Browse files
committed
working
1 parent 129b729 commit c854e1c

File tree

5 files changed

+20
-15
lines changed

5 files changed

+20
-15
lines changed

.DS_Store

0 Bytes
Binary file not shown.

app/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ def image(data_image):
7373
cnt = 0
7474

7575
if __name__ == '__main__':
76-
socketio.run(app, port=9990, debug=True)
76+
socketio.run(app, port=8080, debug=True, host="0.0.0.0")

app/templates/index.html

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,33 @@
55
<title>Title</title>
66

77
<style>
8-
#video {
9-
-moz-transform:rotateY(180deg);
10-
-webkit-transform:rotateY(180deg); /* Safari and Chrome */
11-
transform: rotateY(180deg); /* Firefox */
12-
13-
}
8+
#video {
9+
-moz-transform:rotateY(180deg);
10+
-webkit-transform:rotateY(180deg); /* Safari and Chrome */
11+
transform: rotateY(180deg); /* Firefox */
12+
flex: auto;
13+
}
14+
15+
.container {
16+
width: 100%;
17+
margin: auto;
18+
align-items: flex;
19+
justify-content: flex;
20+
21+
}
1422
</style>
15-
1623
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
1724
<script src='https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.0.0/socket.io.js'></script>
1825
</head>
1926

2027
<body>
2128

22-
<div id="container">
23-
<video autoplay playsinline id="videoElement"></video>
24-
<canvas id="canvas" width="400" height="300"></canvas>
29+
<div class="container">
30+
<video autoplay playsinline id="videoElement"></video>
31+
<canvas id="canvas"></canvas>
2532
</div>
2633

27-
<div class = 'video'>
28-
<img id="photo" width="400" height="300">
34+
<div class="video">
2935
<h1>video</h1>
3036
</div>
3137

@@ -56,7 +62,7 @@ <h1>video</h1>
5662
});
5763
}
5864

59-
const FPS = 6;
65+
const FPS = 60;
6066
setInterval(() => {
6167
width=video.width;
6268
height=video.height;

data/.DS_Store

0 Bytes
Binary file not shown.

main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ def main(tryall=True):
3434
else:
3535
# if this is running we have had a gun man for more that 4 ticks
3636
print('you goofy goober')
37-
frame = cv2.imread("gunImages/gunMan.jpg")
3837
clothes_detection = ClothesDetection(len(cameras))
3938
wearing,colour = clothes_detection.run_detection(cameras)
4039
print(f"wearing {wearing} and RGB {colour}")

0 commit comments

Comments
 (0)