def find_laser_loc(img, threshold):
    red_part = img[:,:,2]
    max_pos = red_part.argmax()
    ly, lx = np.unravel_index(max_pos, red_part.shape)
    if threshold < red_part[ly, lx]:
        return None
    return np.array([lx, ly])
dataset/ETHPy150Open fatcloud/PyCV-time/projects/laser_drawing/laser_drawing.py/find_laser_loc/swapped operands of `<`