Numpy Tutorial while I'm learning OpenCV-Python

I realized that I had to learn some basic knowledge of NumPy while I’m learning OpenCV-Python tutorials on the website ’ pythonprogramming.net ’ because I got confused on some parts of the author’s code.

Here’s the capture:
在这里插入图片描述
I don’t know why I have to take this step, and I also don’t know the data structure of variable ‘lower_red’ and ‘upper_red

so, I search the keywords ‘np.array’ for more information, and I found this website, It clarifies that:

在这里插入图片描述
,which means I can use np.array method and a certain Python list created by me to convert it into a specific example of a so-called “Python NumPy Array”, i.e, I generate an example of such data structure.

For more details please click the link NumPy Tutorial

PS: I recommand another useful tutorial Python Numpy Tutorial based on CS231n Convolutional Neural Networks for Visual Recognition

猜你喜欢

转载自blog.csdn.net/chenzz444/article/details/104384561