findpeaks is for the detection of peaks and valleys in a 1D vector and 2D array (image).
conda install conda-forge::findpeaks