Questions tagged [python]
Python is a high-level interpreted general programming language. Python has popular numerical and scientific libraries/packages, most notably numpy and scipy. The scipy.signal package is a powerful signal processing software collection. This tag covers the use of numpy, scipy, and other Python packages often used for SP computations.
1,374 questions
Score of 1
1 answer
66 views
Best image-processing protocol/process/steps to isolate single samples from picture of overlapping samples
I have this image:
and would like to count the number and lenghts of the samples/objects in it.
I tried different approaches, but the main issue so far (other than calculate collinear fragments of ...
Score of 0
0 answers
13 views
Simple symbol timing synchronizer prototype
I'm learning about symbol synchronization and in order to experiment I've created a simple Python implementation. Seems to be working:
but I want to make sure it's not a coincidence and ask about ...
Score of 0
2 answers
76 views
Why does the inverse Fourier transform return complex data?
My understanding is super basic, but as I understand it, the FFT takes in data in the time domain (amplitude over time) and returns complex data in the frequency domain (magnitude over frequency).
...
Score of 1
0 answers
42 views
Confusion about energy preservation during griffin lim phase estimation
Currently I am trying to use griffin lim algorithm to generate waveform data from magnitude spectrogram input. In general everything works fine. However, I do not fully understand the effect of ...
Score of 1
1 answer
98 views
Is it feasible to recover musical structure from EEG imagination data?
I am new to DSP, and I am currently working on a project whose full details I cannot disclose yet. Broadly speaking, the goal is to study the relationship between EEG signals and musical structure ...
Score of 3
1 answer
130 views
Interpreting EEG spectrogram artifacts: Constant horizontal bands and periodic vertical lines after filtering
I am analyzing EEG data (CHB-MIT Scalp EEG) and generating spectrograms to visualize seizure transitions. I am trying to understand specific artifacts visible in my output to ensure my preprocessing ...
Score of 0
1 answer
68 views
Why does Python skimage.transform.resize give different results from MATLAB imresize for the same array?
I'm trying to replicate MATLAB's imresize behavior in Python using skimage.transform.resize. Here's my test case:
Python
...
Score of 0
0 answers
126 views
Deadlock issues with simultaneous USRP RX / TX using UHD Python API
I'm trying to set up simultaneous RX and TX using the two front-ends on a USRP B210 using the UHD Python API. This resource recommends using separate threads for RX and TX, and this one says that UHD ...
Score of 0
0 answers
42 views
How do I generate proper QAM-M modulated passband and save it as WAV file?
I'm new to digital signal processing and would like to know how to make a QAM-M modem that generates proper passband signal and saves it as a WAV file.
The tool should allow me to specify the carrier ...
Score of 1
0 answers
209 views
Why use Butterworth filter after MediaPipe smoothing (One-Euro) for pose landmarks?
I'm working on human pose estimation using MediaPipe (Pose or Face Mesh), which applies a LandmarkSmoothing filter (One-Euro style) to stabilize landmarks in real-time.
However, for offline post-...
Score of 0
1 answer
316 views
How to detect repeating patterns in short audio clips (≈4 seconds) using Python and machine learning?
I’m working on a machine learning project where I need to classify very short audio clips (about 4 seconds each) into two categories:
repeating song: clips that contain a repeating musical pattern.
...
Score of 0
0 answers
75 views
Help with Python assignment on signal processing
I'll try and detail as much as possible, please ask me if any info is missing in your opinions.
in this assigment i created the basic rect signal a[n] such that over the domain [-1000,1000] it's 1 ...
Score of 0
0 answers
74 views
Classifying audio signals in real time using python
apologies for what is maybe a silly newbie question, but my problem is I have a real-time feed of audio tones from a detector, and I want to classify them into maybe 3 or 4 buckets, eg not interested, ...
Score of 3
2 answers
250 views
Why FFT input has to be centered at x[0] from a algorithmic/mathematical point of view?
I am a beginner in FFT and, however, for my project, I have to process the autocovariance function and turn it into a spectral density. I am using Python for the calculations. If I center the ...
Score of 2
1 answer
133 views
Help with Implementation of Extended Target Tracking via EKF and inverse-Wishart updates
I am trying to implement the research paper linked here: Converted Measurements Random Matrix Approach
to Extended Target Tracking Using X-band Marine
Radar Data
I’ve managed to code the prediction ...