# -*-conding:utf-8-*-
import cv2
import numpy as np
# 主函数
if __name__ == "__main__":
image0 = cv2.imread("images\\stop.jpg", 0)
np.savetxt("array.txt", image0, fmt="%d", delimiter=",")
# -*-conding:utf-8-*-
import cv2
import numpy as np
# 主函数
if __name__ == "__main__":
image0 = cv2.imread("images\\stop.jpg", 0)
np.savetxt("array.txt", image0, fmt="%d", delimiter=",")