20if np_array.flags[
"OWNDATA"]:
21 raise RuntimeError(
"cannot map to numpy array")
24print(
"Modifying pixel data via numpy array.")
25np_array[83 : 108, 48 : 157] = 0
27print(
"Saving: ./ClaraUnknown.bmp")
28image.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