border2=np.zeros((430,10,3),dtype='int')border2[:,:,0]=0 code example
Example 1: declare numpy zeros matrix python
import numpy as np
dimensions = (3, 3)
np.zeros(dimensions) # 3x3 zeros matrix
Example 2: np.zeros([8,8,3])
>>> np.zeros([8,8,3])
array([[ 0.],
[ 0.]])