1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge branch 4.x

This commit is contained in:
Alexander Smorkalov
2026-02-11 13:54:39 +03:00
committed by Alexander Smorkalov
468 changed files with 16647 additions and 11284 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ if __name__ == '__main__':
for fn in glob('*.py'):
print(' --- ', fn)
code = open(fn).read()
found |= set(re.findall('cv2?\.\w+', code))
found |= set(re.findall(r'cv2?\.\w+', code))
cv2_used = found & cv2_callable
cv2_unused = cv2_callable - cv2_used
+5 -1
View File
@@ -330,6 +330,10 @@ class AudioDrawing:
"""
time_step = self.windLen - self.overlap
if time_step <= 0:
raise ValueError(
"Invalid STFT parameters: overlap must be smaller than window length"
)
stft = []
if self.windowType == "Hann":
@@ -801,4 +805,4 @@ if __name__ == "__main__":
args = parser.parse_args()
AudioDrawing(args).Draw()
AudioDrawing(args).Draw()
+5 -1
View File
@@ -105,7 +105,11 @@ class App:
webbrowser.open(url)
def on_demo_select(self, evt):
name = self.demos_lb.get( self.demos_lb.curselection()[0] )
selection = self.demos_lb.curselection()
if not selection:
return
name = self.demos_lb.get(selection[0])
fn = self.samples[name]
descr = ""
+1 -3
View File
@@ -97,10 +97,8 @@ parser.add_argument(
)
parser.add_argument(
'--try_cuda',
action='store',
default=False,
action='store_true',
help="Try to use CUDA. The default value is no. All default values are for CPU mode.",
type=bool, dest='try_cuda'
)
parser.add_argument(
'--work_megapix', action='store', default=0.6,