1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

dnn: fix various dnn related typos

Fixes source comments and documentation related to dnn code.
This commit is contained in:
luz paz
2022-03-18 17:15:14 -04:00
parent 90671233c6
commit 8e8e4bbabc
13 changed files with 20 additions and 20 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ private:
double highfreq = sample_rate / 2;
public:
// Mel filterbanks preperation
// Mel filterbanks preparation
double hz_to_mel(double frequencies)
{
//Converts frequencies from hz to mel scale
@@ -149,7 +149,7 @@ public:
return weights;
}
// STFT preperation
// STFT preparation
vector<double> pad_window_center(vector<double>&data, int size)
{
// Pad the window out to n_fft size
+3 -3
View File
@@ -44,7 +44,7 @@ import os
model.graph.initializer.insert(i,init)
```
6. Add an additional reshape node to handle the inconsistant input from python and c++ of openCV.
6. Add an additional reshape node to handle the inconsistent input from python and c++ of openCV.
see https://github.com/opencv/opencv/issues/19091
Make & insert a new node with 'Reshape' operation & required initializer
```
@@ -256,7 +256,7 @@ class FilterbankFeatures:
weights *= enorm[:, np.newaxis]
return weights
# STFT preperation
# STFT preparation
def pad_window_center(self, data, size, axis=-1, **kwargs):
'''
Centers the data and pads.
@@ -329,7 +329,7 @@ class FilterbankFeatures:
then padded with zeros to match n_fft
fft_window : a vector or array of length `n_fft` having values computed by a
window function
pad_mode : mode while padding the singnal
pad_mode : mode while padding the signal
return_complex : returns array with complex data type if `True`
return : Matrix of short-term Fourier transform coefficients.
'''