CHANGES :)

This commit is contained in:
Alexander Popov 2024-03-20 00:28:23 +03:00
parent 813b58a4b0
commit 22e024ab90
Signed by: iiiypuk
GPG Key ID: E47FE0AB36CD5ED6
2 changed files with 2 additions and 3 deletions

View File

@ -47,6 +47,5 @@ class SingleMotionDetector:
(x, y, w, h) = cv2.boundingRect(c) (x, y, w, h) = cv2.boundingRect(c)
(minX, minY) = (min(minX, x), min(minY, y)) (minX, minY) = (min(minX, x), min(minY, y))
(maxX, maxY) = (max(maxX, x + w), max(maxY, y + h)) (maxX, maxY) = (max(maxX, x + w), max(maxY, y + h))
# otherwise, return a tuple of the thresholded image along # otherwise, return a tuple of the thresholded image along with bounding box
# with bounding box
return (thresh, (minX, minY, maxX, maxY)) return (thresh, (minX, minY, maxX, maxY))

View File

@ -23,7 +23,7 @@
<body> <body>
<div class="video"> <div class="video">
<h1>OpenCV Stream video to web browser/HTML page</h1> <h1>OpenCV Stream video to web browser/HTML page</h1>
<img class="video-frame" src="{{ url_for('video_feed') }}"> <img class="video-frame rounded" src="{{ url_for('video_feed') }}">
</div> </div>
</body> </body>
</html> </html>