Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The main method is ‘main(context, module_item)’. Its role is to edit the context that comes in as a parameter. Additional auxiliary methods can be added to the code. Standard libraries can be imported, typically together with the ‘cv2’ library. In the context, the image is under the ‘image’ attribute and its structure is a numpy NumPy array, see OpenCV documentationhttps://docs.opencv.org/3.0-beta/doc/py_tutorials/py_core/py_basic_ops/py_basic_ops.html.

You can use the keyboard shortcut ‘Ctrl+S’ for saving.

...