Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
23-yoshikawa committed Aug 15, 2024
1 parent a36f03a commit 64a9ddd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions app/imshow/imshow/imshow.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
class Imshow(Node):
def __init__(self):
super().__init__("imshow")
qos_profile = QoSProfile(reliability=ReliabilityPolicy.BEST_EFFORT,
history=HistoryPolicy.KEEP_LAST,depth=10)
qos_profile = QoSProfile(
reliability=ReliabilityPolicy.BEST_EFFORT,
history=HistoryPolicy.KEEP_LAST,
depth=10,
)
self.subscription = self.create_subscription(
CompressedImage,
"camera_image",
Expand Down
2 changes: 1 addition & 1 deletion device/camera_reader/camera_reader/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def __init__(self):
)
assert isinstance(camera_id, int)
self.cap = cv2.VideoCapture(camera_id)
# カメラ解像度の設定
# カメラ解像度の設定
self.cap.set(cv2.CAP_PROP_FRAME_WIDTH, 640) # 横幅640ピクセル
self.cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 480) # 縦幅480ピクセル
# バッファサイズの設定
Expand Down

0 comments on commit 64a9ddd

Please sign in to comment.