object_detection

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

README

Log

This activity allows you to write log messages.

Installation

AIflow CLI
AIflow install github.com/r2d2-ai/aiflow/activity/vision/object_detection

Configuration

Input:
Name Type Description
message string The message to log
addDetails bool Append contextual execution information to the log message
usePrint bool Use Print to stdout instead of the built-in Logger. The built-in logger may not be compatible with some cloud environments.

Examples

The below example logs a message 'test message':

{
  "id": "log_message",
  "name": "Log Message",
  "activity": {
    "ref": "github.com/r2d2-ai/aiflow/activity/vision/object_detection",
    "input": {
      "message": "test message",
      "addDetails": "false"
    }
  }
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Activity

type Activity struct {
	// contains filtered or unexported fields
}

Activity is an Activity that is used to inputs : {image, rois} outputs: none

func (*Activity) Eval

func (a *Activity) Eval(ctx activity.Context) (done bool, err error)

Eval implements api.Activity.Eval - Logs the Message

func (*Activity) Metadata

func (a *Activity) Metadata() *activity.Metadata

Metadata returns the activity's metadata

type Input

type Input struct {
	Image    gocv.Mat           `md:"image"`
	ROIs     []vision_types.ROI `md:"rois"`
	GroupdId string             `md:"groupId"`
	CameraId string             `md:"cameraId"`
}

func (*Input) FromMap

func (i *Input) FromMap(values map[string]interface{}) error

func (*Input) ToMap

func (i *Input) ToMap() map[string]interface{}

type Output

type Output struct {
	Results map[string]interface{} `md:"results"` //
}

func (*Output) FromMap

func (o *Output) FromMap(values map[string]interface{}) error

func (*Output) ToMap

func (o *Output) ToMap() map[string]interface{}

type Settings

type Settings struct {
	Model string `md:"model,required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL