mbeyeler / opencv-python-blueprints

M. Beyeler (2015). OpenCV with Python Blueprints: Design and develop advanced computer vision projects using OpenCV with Python, Packt Publishing Ltd., ISBN 978-178528269-0.
GNU General Public License v3.0
291 stars 184 forks source link

error params order for row and cols in ` plot_power_spectrum` #37

Open pjgao opened 3 years ago

pjgao commented 3 years ago

code this line saliency.py#176 should be

frame = cv2.copyMakeBorder(frame, 0, nrows-rows, 0, ncols - cols,
                           cv2.BORDER_CONSTANT, value=0)

not

frame = cv2.copyMakeBorder(frame, 0, ncols - cols, 0, nrows - rows,
                           cv2.BORDER_CONSTANT, value=0)
mbeyeler commented 3 years ago

Can you submit a pull request? Thanks!