Skip to content

nubificus/vaccel-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go bindings for vAccel

Go bindings for vAccel wrap the vAccel C API and provide a native Go API to vAccel operations. The bindings are currently a WiP, supporting a subset of the vAccel operations.

You can find more information about these bindings and everything vAccel in the Documentation.

Usage

The Go bindings are implemented in the vaccel Go package.

Requirements

  • To use the vaccel Go package you need a valid vAccel installation. You can find more information on how to install vAccel in the Installation page.

  • This package requires Go 1.20 or newer. Verify your Go version with:

    go version

    and update Go as needed using the official instructions.

Using the vaccel package

You can use the package in your Go code like any other Go package with:

import "github.com/nubificus/vaccel-go/vaccel"

Running the examples

You can find examples in the examples directory. The provided examples are similar to the C examples and you must configure vAccel in order to use them.

To run an image classification, like the C classify, set:

export VACCEL_PLUGINS=libvaccel-noop.so

and, assuming vAccel is installed at /usr/local, run with:

$ go run github.com/nubificus/vaccel-go/examples/classify \
      /usr/local/share/vaccel/images/example.jpg
Output(1):  This is a dummy classification tag!
Output(2):  This is a dummy classification tag!

About

vAccel Go bindings

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors