Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
There's opencv for python (documentation here).
opencv
import cv2 import numpy as np img = ... # Your image as a numpy array cv2.imwrite("filename.png", np.zeros((10,10))img)
useful if you need to do more processing other than saving.
import cv2 import numpy as np cv2.imwrite("filename.png", np.zeros((10,10)))
import cv2 import numpy as np img = ... # Your image as a numpy array cv2.imwrite("filename.png", img)
There's opencv for python (documentation heredocumentation here).
There's opencv for python (http://docs.opencv.org/trunk/doc/py_tutorials/py_tutorials.htmldocumentation here).
There's opencv for python (http://docs.opencv.org/trunk/doc/py_tutorials/py_tutorials.html).