CHANGES :)
This commit is contained in:
parent
813b58a4b0
commit
22e024ab90
@ -47,6 +47,5 @@ class SingleMotionDetector:
|
||||
(x, y, w, h) = cv2.boundingRect(c)
|
||||
(minX, minY) = (min(minX, x), min(minY, y))
|
||||
(maxX, maxY) = (max(maxX, x + w), max(maxY, y + h))
|
||||
# otherwise, return a tuple of the thresholded image along
|
||||
# with bounding box
|
||||
# otherwise, return a tuple of the thresholded image along with bounding box
|
||||
return (thresh, (minX, minY, maxX, maxY))
|
||||
|
@ -23,7 +23,7 @@
|
||||
<body>
|
||||
<div class="video">
|
||||
<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>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user