Skip to content

Numpy example which computes some stats of a test frame.

Notifications You must be signed in to change notification settings

waggle-sensor/plugin-numpy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numpy Plugin Example

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.

Overview

Plugins contain both code and packaging information. In this example, we've organized them as follows:

  1. 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.
  2. 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.

About

Numpy example which computes some stats of a test frame.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published