c3-sdk-go-example-image-recognition

command module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 12 Imported by: 0

README

Automated Release Notes by gren

C3 Go Image Recoginition Example

An image recognition example in Go that runs on C3

About

This library was forked from tinrab/go-tensorflow-image-recognition

Installation

If you don't want to run the docker file, you'll first need to install tensorflow.

Usage

This container accepts images and keeps track of how many of each type of image is has received. To run:

$ make build/docker
$ make run/sandbox IMAGEID=<docker_image_id> 

The "smart container" has three methods:

Process Image
  • Method Name: "processImage"
  • Method Payload: [bytesBuffer string, imageType (one of "png" or "jpg")]
Get All Results
  • Method Name: "getAllResults"
  • Method Payload: nil
  • Returns: A json object with a count of all of the image types received where the image type is the key and the count is the value.

e.g.

{
  "Egyptian cat": 5,
  "Arctic fox": 30,
  "Weasel": 1,
}
Get Results For Type
  • Method Name: "getResultsForType"
  • Method Payload: [type name string]
  • Returns: the count of that type, e.g. "Arctic fox" would return "30"

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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