title: How to copy and paste of image as Picture-In-Picture in OpenCV
body: <pre><code>import cv2
  import numpy as np
  
  
  img = cv2.imread('C:\Users\SHUSHMA-PC\Desktop\sample\dumb.jpeg',cv2.IMREAD_COLOR)
  
  
  img[100,100]=[255,255,255]
  px=img[100,100]
  
  
  img[500:550,500:550]=[0,0,0]
  
  
  dumb_face= img[37:111,108:195]
  img[0:74,0:87]=dumb_face
  
  imS = cv2.resize(img, (250, 250))
  cv2.imshow("output", imS)
  
  cv2.waitKey()
  cv2.destroyAllWindows()
  </code></pre>
  
  <p>There is no error, it is just that the image is not copying and appears as normal output</p>
  
  <p><a href="https://i.stack.imgur.com/zVLNm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zVLNm.png" alt="this is the output, it is supposed to copy "></a></p>
  
  <p>Actually, I want to copy the entire image and paste it on the image itself(smaller one). Like image on a image.</p>