image_data = tf.gfile.FastGFile(full_path,'rb').read() prediction = sess.run(softmax_tensor, {'DecodeJpeg/contents:0': image_data})
image_array = cv2.imread(full_path,0) prediction = sess.run(softmax_tensor, {'DecodeJpeg:0': image_array})
解析圖片,以及直接使用矩陣.python