posenet

package module
v0.0.0-...-7a2ef33 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMultipleConfig = Config{
	Algorithm:       "multiple-pose",
	Architecture:    "MobileNetV1",
	OutputStride:    16,
	InputResolution: 200,
	Multiplier:      0.5,
	QuantBytes:      2,
}

DefaultMultipleConfig ...

View Source
var DefaultSingleConfig = Config{
	Algorithm:       "single-pose",
	Architecture:    "MobileNetV1",
	OutputStride:    16,
	InputResolution: 200,
	Multiplier:      0.5,
	QuantBytes:      2,
}

DefaultSingleConfig ...

Functions

func GetAdjacentKeyPoints

func GetAdjacentKeyPoints(keypoints js.Value, minConfidence float64) js.Value

GetAdjacentKeyPoints ...

Types

type Config

type Config struct {
	Algorithm       string  `js:"algorithm"`
	Architecture    string  `js:"architecture"`
	OutputStride    int     `js:"outputStride"`
	InputResolution int     `js:"inputResolution"`
	Multiplier      float64 `js:"multiplier"`
	QuantBytes      int     `js:"quantBytes"`
	FlipHorizontal  bool    `js:"flipHorizontal"`
}

Config ...

func (Config) JSValue

func (c Config) JSValue() js.Value

JSValue ...

type PoseNet

type PoseNet struct {
	Config Config
	// contains filtered or unexported fields
}

PoseNet ...

func New

func New(config Config) *PoseNet

New ...

func (*PoseNet) EstimateMultiplePoses

func (n *PoseNet) EstimateMultiplePoses(option map[string]interface{}) (js.Value, error)

EstimateMultiplePoses ...

func (*PoseNet) EstimateSinglePose

func (n *PoseNet) EstimateSinglePose(option map[string]interface{}) (js.Value, error)

EstimateSinglePose ...

func (*PoseNet) Start

func (n *PoseNet) Start(videoID string) error

Start ...

func (*PoseNet) Stop

func (n *PoseNet) Stop()

Stop ...

Jump to

Keyboard shortcuts

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