This commit is contained in:
Sem van der Hoeven
2023-06-03 15:46:55 +02:00
parent 9a255bad12
commit 402fcbab96
2 changed files with 2 additions and 2 deletions

View File

@@ -14,7 +14,7 @@
<!-- <div class="video"> -->
<div class="mainvideo">
<p>Camera view:</p>
<canvas id="result-video" style="border: 1px solid blue;" width="800" height="600">
<canvas id="result-video" style="border: 1px solid blue;" width="800" height="600"></canvas>
<div id="connectedbuttons">
<div id="connectedstatus">
<p id="connectedlabel">Connected: <%- api_connected %></p>

View File

@@ -71,7 +71,7 @@ class CameraController(Node):
try:
while(vid.isOpened()):
img, frame = vid.read()
self.get_logger().info("frame before: " + str(frame.shape))
# self.get_logger().info("frame before: " + str(frame.shape))
#frame = cv2.resize(frame,(RES_4K_W,RES_4K_H))
#print("frame after: " + str(frame.shape))
encode_param = [int(cv2.IMWRITE_JPEG_QUALITY), 100]