mirror of
https://github.com/This-weiyuqing/ECG_by_Diffenert_CNN_Test.git
synced 2026-10-18 03:13:39 +08:00
19 lines
375 B
Python
19 lines
375 B
Python
## read_img.py
|
|
|
|
import cv2
|
|
import os
|
|
import matplotlib.pyplot as plt
|
|
from PIL import Image
|
|
|
|
source_path='E:/CToE/Pictures'
|
|
|
|
def show_pic():
|
|
# img=cv2.imread(os.path.join(source_path,'t1.png'))
|
|
img=Image.open(os.path.join(source_path,'1.png'))
|
|
# plt.imshow(img)
|
|
info = plt.imshow(img)
|
|
print(info)
|
|
plt.show()
|
|
|
|
if __name__ == '__main__':
|
|
show_pic() |