test.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:CPPyModule 作者: nlgranger 项目源码 文件源码
def main():
    assert len(sys.argv) > 1, "Pass image file as argument."

    I = cv2.imread(sys.argv[-1])
    assert I is not None, "Failed to open image."

    cv2.namedWindow("cat", cv2.WINDOW_NORMAL)
    cv2.imshow("cat", I)
    cv2.waitKey(0)
    J = pyflipping.vertflip(I)
    cv2.imshow("cat", J)
    cv2.waitKey(0)
    cv2.destroyAllWindows()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号