Skip to content

Commit

Permalink
Update make_sample.py
Browse files Browse the repository at this point in the history
  • Loading branch information
luyishisi authored Aug 25, 2021
1 parent 0370d8c commit dd9ed29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions make_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def get_date_list(start=None, end=None):

def get_label(date,typeid):
'''从获取数据库获取标签'''
conn = pymysql.connect(host='193.112.136.148',
conn = pymysql.connect(host='ip',
port=3306,
user='bcebos',
password='bcebos@123',
db='bcebos',
user='**',
password='**',
db='**',
charset='utf8')
cursor = conn.cursor()
# sql = "SELECT result,savedir FROM new_ocr_dir WHERE typeid = '{0}' AND time LIKE '{1}%'".format(typeid,date)
Expand Down Expand Up @@ -121,4 +121,4 @@ def make_sample():

if __name__ == '__main__':
make_sample()
# spilt_train_test('data','train','test')
# spilt_train_test('data','train','test')

0 comments on commit dd9ed29

Please sign in to comment.