How to solve the error? Because the image gets weird and all blue. Why is it turning blue? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to solve the error? Because the image gets weird and all blue. Why is it turning blue?

https://code.sololearn.com/ciKYD7PsGDWy ''' without line number 44: error:line 48, in <module> cv2.rectangle(frame, (20,320),(150,440) , (0,255,0), 3) TypeError: Layout of the output array img is incompatible with cv::Mat (step[ndims-1] != elemsize or step[1] != elemsize*nchannels) '''

20th Oct 2018, 10:02 PM
Raunak Jalan
Raunak Jalan - avatar
1 Answer
+ 1
Raunak Jalan SoloLearn does not support the Pygame module, Thats why you have a error message. https://www.sololearn.com/discuss/1562452/?ref=app
2nd Nov 2018, 4:47 AM
Potato Hacker
Potato Hacker - avatar