How to return empty numpy array as np.ndarray([[[]]])
simply return np.empty((10,10,10),object) because x=np.empty((10,10,10)) returns array with random values already stored in the memory buffer . x=np.empty((10,10,10),object) will return array with none values.
Here (10,10,10) dimension is just for example. Use the dimensions favourable for you.
I have a program that retrieves image and return the RGB image as 3D np.ndarray. I want to return  np.ndarray([[[]]]) when image is not available.
Can we do it?