import csv
import os
import sys
import numpy as np
import copy
import shutil
import pandas as pd
from collections import Counter
from shutil import copyfile
import cv2
path = path = os.getcwd()
path_1 = path + '/' + 'data_error_0813'
list_name = os.listdir(path_1)
for n in list_name:
if n[-3:] == 'csv':
csvpath = path_1 + '/' + n
imgpath = path_1 + '/' + n[:-3] + 'JPG'
print(imgpath)
if not os.path.exists(imgpath):
print("nothing")
filehand = open(csvpath,'r')
csvlist = filehand.readlines()
mark = []
image = []
count = 1
for m in csvlist[1:]:
m_split = m.split(',')