18if np_array.flags[
"OWNDATA"]:
19 raise RuntimeError(
"cannot map to numpy array")
22print(
"Modifying pixel data via numpy array.")
23np_array[83 : 108, 48 : 157] = 0
25print(
"Saving: ./ClaraUnknown.bmp")
26image.save(
"ClaraUnknown.bmp")
The Common Vision Blox image.
Definition: __init__.py:2097
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:8318
numpy.array as_array(Any buffer, bool copy=False)
Maps a cvb object to a numpy array.
Definition: __init__.py:8068