-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path問題.txt
40 lines (33 loc) · 1.08 KB
/
問題.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
解決
比較の一致度の数値をコールバックから取得使用とすると重くなる
解決としては、動画に書き込む
checkボックスをoffに出来るようにする
解決
concat_tileで起きてたエラー(rror
OpenCV(4.6.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\matrix_operations.cpp:67: error: (-215:Assertion failed) src[i].dims <= 2 && src[i].rows == src[0].rows && src[i].type() == src[0].type() in function 'cv::hconcat')
imgCut関数内の余白追加の処理の変更でエラー回避
変更前
# 元画像に余白を追加
start = 0
num = self.rows
two_list = []
for i in range(self.rows):
l = []
for j in range(start, num):
l.append(chunks_whitespace[j])
two_list.append(l)
start += self.rows
num += self.rows
変更後
# 元画像に余白を追加
start = 0
num = cols
two_list = []
for i in range(rows):
l = []
for j in range(start, num):
l.append(chunks_whitespace[j])
two_list.append(l)
start += cols
num += cols
numとstartをcolsに変更したら無事に動いた