I am using cv2.blobFromImage function to pre-process the image before feeding to a dnn for face detection. I tried to display the output of this function. What I am getting is multiple images (9 images). My input image, code and output image are given below. Can anyone please tell me why 9 images are formed here?
Input image
Code
import cv2
import numpy as np
img = cv2.imread('messi.jpeg')
blob = cv2.dnn.blobFromImage(img,1.0,(300,300),[104,117,123],False,False)
print(blob.shape)
blobb = blob.reshape(blob.shape[2],blob.shape[3],blob.shape[1])
cv2.imshow('Blob',blobb)
cv2.waitKey(5000)
cv2.destroyAllWindows()
Output image