CHANGES :)
This commit is contained in:
parent
813b58a4b0
commit
22e024ab90
@ -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))
|
||||||
|
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user