这里是引用
import os
import cv2
import PIL
from PIL import Image
path_tu = "/media/workstation/4.0T/result/skin/"
# 该文件夹下所有的文件(包括文件夹)
filename_list = os.listdir(path_tu) # 返回指定路径下的文件和文件夹列表
#print(filename_list[0][0:5])
filename_list.sort(key=lambda x: int(x[:5]))
for files_name in filename_list:
list=[]
#print(os.path.join(path_tu, files_name))
img_yuan = cv2.imread(os.path.join(path_tu, files_name), 0)
img=img_yuan.copy()
for i in range(0, 360):
for j in range(0, 360):
if img[i][j] > 55:
if i!=359 and i!=0 and j!=359 and j!=0: #不在边上,
if img[i+1][j-1]==0</