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