TensorFlow--01

# import tensorflow as tf
#
# hello=tf.constant("hello tensorflow!!")
# session=tf.Session()
#
# print(session.run(hello))

import cv2
print('hello opencv')

import cv2
#1  文件读取  2 封装解析格式  3数据解码   4 数据加载
img=cv2.imread('1.png',1)#read image    0 读取灰度图片    1读取彩色图片
# cv2.imshow('image',img)
# cv2.waitKey(0)

#图片的写入
cv2.imwrite('image1.jpg',img)

猜你喜欢

转载自www.cnblogs.com/Mengchangxin/p/10241936.html