This is a simple plugin which uses numpy to compute some stats on a test image. While not very useful on its own, it serves as a starting point for other plugin developers.
Plugins contain both code and packaging information. In this example, we've organized them as follows:
-
The code consists of:
- main.py. Main plugin code. It's primarily structured around the
process_frame
function. - test.py. Minimal test file which exercises
process_frame
on a test image. Serves as a starting point for building automated testing. - requirements.txt. Python dependencies file. Add any required modules to this file.
- main.py. Main plugin code. It's primarily structured around the
-
The packaging information consists of:
- sage.yaml. Defines plugin info used by ECR. You must update this for your example.
- Dockerfile. Defines plugin code and dependency bundle. You can update this if you have additional dependencies not covered by requirements.txt.
- ecr-meta. Science metadata for ECR.