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:2038
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:8257
numpy.array as_array(Any buffer, bool copy=False)
Maps a cvb object to a numpy array.
Definition: __init__.py:8007