Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

cv2.imshow is working with a jpg file but not with an array

$
0
0
HI, I am using python and try to use cv2.impshow : img = cv2.imread('messi5.jpg',0) cv2.imshow('image',im[index]) cv2.waitKey(0) cv2.destroyAllWindows() and it is working fine. But when I try to replace img with a array of 96*96 with each elements have value between 0 to 255, then it display be a gray box. If I try to use matplotlib, it is then nicely displayed. How could I display my array with cv2.imshow ? Thank you for your help in advance, Sébastien

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>