質問編集履歴

1

不要なコードを削除しました

2019/02/27 22:10

投稿

SaitoHiroaki
SaitoHiroaki

スコア15

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,7 @@
34
34
 
35
35
  'https://www.googleapis.com/auth/drive']
36
36
 
37
- json_file = r'************'
37
+ json_file = r'C:\Users*******\Downloads\face-id-022a16cbf2d0.json'
38
38
 
39
39
  credentials = ServiceAccountCredentials.from_json_keyfile_name(json_file, scopes=scopes)
40
40
 
@@ -42,9 +42,9 @@
42
42
 
43
43
 
44
44
 
45
- doc_id = '********'
45
+ doc_id = '*********'
46
46
 
47
- SPREADSHEET_KEY = '*******'
47
+ SPREADSHEET_KEY = '**********'
48
48
 
49
49
  client = gspread.authorize(credentials)
50
50
 
@@ -64,15 +64,13 @@
64
64
 
65
65
 
66
66
 
67
- dt_now = datetime.today()
68
-
69
- print(dt_now)
70
67
 
71
68
 
72
69
 
73
70
 
74
71
 
72
+
75
- img = cv2.imread(r'*********')
73
+ img = cv2.imread(r'C:\Users*******\Pictures\qrcode_testqr.png')
76
74
 
77
75
 
78
76
 
@@ -89,16 +87,6 @@
89
87
  print("バージョン:", ((straight_qrcode.shape[0] - 21) / 4) + 1)
90
88
 
91
89
 
92
-
93
- cell_value = worksheet.acell('B1').value
94
-
95
- print(cell_value)
96
-
97
-
98
-
99
- cell_value2 = worksheet.cell(1,2).value
100
-
101
- print(cell_value2)
102
90
 
103
91
  worksheet.append_row(data)
104
92