Skip to content

Commit

Permalink
refactor: コメントを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashitom committed Nov 5, 2024
1 parent 7dbcd90 commit 5a0abca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion front_camera/front_camera/color_rectangle_detector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""
動画中の背景下部の指定色検出クラス
@author: bizyutyu YKhm20020 CHIHAYATAKU
@author: bizyutyu YKhm20020 CHIHAYATAKU takahashitom
"""
import cv2
import os
Expand Down Expand Up @@ -31,6 +31,15 @@ def detect_rectangle(self, frame):
"""対象色の矩形を検出する。
Args:
frame (numpy.ndarray): 処理対象の画像データ
Returns:
輪郭が見つかった場合:
int: 最大の輪郭(矩形)の左上のx座標
int: 最大の輪郭(矩形)の左上のy座標
int: 最大の輪郭(矩形)の幅
int: 最大の輪郭(矩形)の高さ
輪郭が見つからなかった場合: None
"""
# HSV色空間に変換
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
Expand Down
2 changes: 1 addition & 1 deletion module/Motion/CorrectingRotation.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @file CorrectingRotation.cpp
* @brief プラレール・背景撮影のための角度補正回頭動作
* @author bizyutyu CHIHAYATAKU takahashitpom
* @author bizyutyu CHIHAYATAKU takahashitom
*/

#include "CorrectingRotation.h"
Expand Down

0 comments on commit 5a0abca

Please sign in to comment.