컨베이어 움직임 DETECT
# conveyor 벨트 이미지 변경 import cv2 import numpy as np import matplotlib.pyplot as plt import glob import os from PIL import Image, ImageDraw, ImageFont import pygame def detect_lines(img, rho_a, theta_a): dst = img.copy() gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) canny = cv2.Canny(gray, 50, 150, apertureSize=3, L2gradient=True) lines = cv2.HoughLines(canny, 1, np.pi / 180, 150, srn=100, stn=200,..