Skip to content

Commit

Permalink
fix: 引数で指定している色を小文字から大文字に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takahashitom committed Nov 5, 2024
1 parent 5a0abca commit d327dc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion front_camera/front_camera/frame_timing_calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, video_path, bounding_box_width=300, bounding_box_height=600):
self.video_path = video_path
self.bounding_box_width = bounding_box_width
self.bounding_box_height = bounding_box_height
self.yellow_rectangle_detector = ColorRectangleDetector("yellow")
self.yellow_rectangle_detector = ColorRectangleDetector("YELLOW")

def get_target_timing(self):
"""映像から特定のフレームを画像として切り出すタイミングを取得する"""
Expand Down
2 changes: 1 addition & 1 deletion front_camera/front_camera/get_correction_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def calculate_correction_angle(self, image_path):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="フロントカメラに関するプログラム")
parser.add_argument("--camera-num", type=int, default=0, help="カメラIDを指定する")
parser.add_argument("--color", type=str, default="yellow", help="検出する矩形の色を指定する")
parser.add_argument("--color", type=str, default="YELLOW", help="検出する矩形の色を指定する")

args = parser.parse_args()
camera = CameraInterface()
Expand Down
2 changes: 1 addition & 1 deletion module/Motion/CorrectingRotation.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class CorrectingRotation : public CompositeMotion {
* コンストラクタ
* @param _pwm 角度補正回頭時のPWM値
* @param _correctionTolerance 補正許容角度
* @param _color 検出する矩形の色("yellow" or "red")
* @param _color 検出する矩形の色("YELLOW" or "RED")
*/
CorrectingRotation(int _pwm = 50, int _correctionTolerance = 0, COLOR _color = COLOR::YELLOW);

Expand Down

0 comments on commit d327dc2

Please sign in to comment.