18if np_array.flags[
"OWNDATA"]:
19 raise RuntimeError(
"cannot map to numpy array")
22print(
"Modifining 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:1737
str install_path()
Directory Common Vision Blox has been installed to.
Definition: __init__.py:7146
numpy.array as_array(Any buffer, bool copy=False)
Maps a cvb object to a numpy array.
Definition: __init__.py:6916