What does the ValueError : could not broadcast from input array(1) to input array(2) mean?

asked 2016-09-06 12:11:33 -0600

Sarala gravatar image

updated 2016-09-06 13:54:57 -0600

import numpy as np
import cv2
from matplotlib import pyplot as plt
while(1):
    img=cv2.imread('D:\IMG_0590_1.jpg')    
    ball = img[278:104, 330:158]
    img[181:355, 100:274] = ball

    cv2.imshow('img',img)

    if cv2.waitKey(10) & 0xFF == ord('q'):
            break
cv2.destroyAllWindows()

This is my code but it is giving the error mentioned in the question. What is the problem?

edit retag flag offensive close merge delete