webapi: github.com/gowebapi/webapi/graphics/shapedetection Index | Files

package shapedetection

import "github.com/gowebapi/webapi/graphics/shapedetection"

Package shapedetection providing access to accelerated shape detectors (e.g. human faces) for still images and/or live image feeds.

Index

Package Files

doc.go shapedetection.go

type BarcodeDetector Uses

type BarcodeDetector struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: BarcodeDetector

func BarcodeDetectorFromJS Uses

func BarcodeDetectorFromJS(value js.Wrapper) *BarcodeDetector

BarcodeDetectorFromJS is casting a js.Wrapper into BarcodeDetector.

func NewBarcodeDetector Uses

func NewBarcodeDetector(barcodeDetectorOptions *BarcodeDetectorOptions) (_result *BarcodeDetector)

func (*BarcodeDetector) Detect Uses

func (_this *BarcodeDetector) Detect(image *Union) (_result *PromiseSequenceDetectedBarcode)

func (*BarcodeDetector) JSValue Uses

func (_this *BarcodeDetector) JSValue() js.Value

type BarcodeDetectorOptions Uses

type BarcodeDetectorOptions struct {
    Formats []BarcodeFormat
}

dictionary: BarcodeDetectorOptions

func BarcodeDetectorOptionsFromJS Uses

func BarcodeDetectorOptionsFromJS(value js.Wrapper) *BarcodeDetectorOptions

BarcodeDetectorOptionsFromJS is allocating a new BarcodeDetectorOptions object and copy all values from input javascript object

func (*BarcodeDetectorOptions) JSValue Uses

func (_this *BarcodeDetectorOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type BarcodeFormat Uses

type BarcodeFormat int

enum: BarcodeFormat

const (
    AztecBarcodeFormat BarcodeFormat = iota
    Code128BarcodeFormat
    Code39BarcodeFormat
    Code93BarcodeFormat
    CodabarBarcodeFormat
    DataMatrixBarcodeFormat
    Ean13BarcodeFormat
    Ean8BarcodeFormat
    ItfBarcodeFormat
    Pdf417BarcodeFormat
    QrCodeBarcodeFormat
    UnknownBarcodeFormat
    UpcABarcodeFormat
    UpcEBarcodeFormat
)

func BarcodeFormatFromJS Uses

func BarcodeFormatFromJS(value js.Value) BarcodeFormat

BarcodeFormatFromJS is converting a javascript value into a BarcodeFormat enum value.

func (*BarcodeFormat) JSValue Uses

func (this *BarcodeFormat) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (BarcodeFormat) Value Uses

func (this BarcodeFormat) Value() string

Value is converting this into javascript defined string value

type DetectedBarcode Uses

type DetectedBarcode struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: DetectedBarcode

func DetectedBarcodeFromJS Uses

func DetectedBarcodeFromJS(value js.Wrapper) *DetectedBarcode

DetectedBarcodeFromJS is casting a js.Wrapper into DetectedBarcode.

func (*DetectedBarcode) BoundingBox Uses

func (_this *DetectedBarcode) BoundingBox() *geometry.DOMRectReadOnly

BoundingBox returning attribute 'boundingBox' with type geometry.DOMRectReadOnly (idl: DOMRectReadOnly).

func (*DetectedBarcode) CornerPoints Uses

func (_this *DetectedBarcode) CornerPoints() *javascript.FrozenArray

CornerPoints returning attribute 'cornerPoints' with type javascript.FrozenArray (idl: FrozenArray).

func (*DetectedBarcode) Format Uses

func (_this *DetectedBarcode) Format() BarcodeFormat

Format returning attribute 'format' with type BarcodeFormat (idl: BarcodeFormat).

func (*DetectedBarcode) JSValue Uses

func (_this *DetectedBarcode) JSValue() js.Value

func (*DetectedBarcode) RawValue Uses

func (_this *DetectedBarcode) RawValue() string

RawValue returning attribute 'rawValue' with type string (idl: DOMString).

type DetectedFace Uses

type DetectedFace struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: DetectedFace

func DetectedFaceFromJS Uses

func DetectedFaceFromJS(value js.Wrapper) *DetectedFace

DetectedFaceFromJS is casting a js.Wrapper into DetectedFace.

func (*DetectedFace) BoundingBox Uses

func (_this *DetectedFace) BoundingBox() *geometry.DOMRectReadOnly

BoundingBox returning attribute 'boundingBox' with type geometry.DOMRectReadOnly (idl: DOMRectReadOnly).

func (*DetectedFace) JSValue Uses

func (_this *DetectedFace) JSValue() js.Value

func (*DetectedFace) Landmarks Uses

func (_this *DetectedFace) Landmarks() *javascript.FrozenArray

Landmarks returning attribute 'landmarks' with type javascript.FrozenArray (idl: FrozenArray).

type FaceDetector Uses

type FaceDetector struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: FaceDetector

func FaceDetectorFromJS Uses

func FaceDetectorFromJS(value js.Wrapper) *FaceDetector

FaceDetectorFromJS is casting a js.Wrapper into FaceDetector.

func NewFaceDetector Uses

func NewFaceDetector(faceDetectorOptions *FaceDetectorOptions) (_result *FaceDetector)

func (*FaceDetector) Detect Uses

func (_this *FaceDetector) Detect(image *Union) (_result *PromiseSequenceDetectedFace)

func (*FaceDetector) JSValue Uses

func (_this *FaceDetector) JSValue() js.Value

type FaceDetectorOptions Uses

type FaceDetectorOptions struct {
    MaxDetectedFaces int
    FastMode         bool
}

dictionary: FaceDetectorOptions

func FaceDetectorOptionsFromJS Uses

func FaceDetectorOptionsFromJS(value js.Wrapper) *FaceDetectorOptions

FaceDetectorOptionsFromJS is allocating a new FaceDetectorOptions object and copy all values from input javascript object

func (*FaceDetectorOptions) JSValue Uses

func (_this *FaceDetectorOptions) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type Landmark Uses

type Landmark struct {
    Locations *javascript.FrozenArray
    Type      LandmarkType
}

dictionary: Landmark

func LandmarkFromJS Uses

func LandmarkFromJS(value js.Wrapper) *Landmark

LandmarkFromJS is allocating a new Landmark object and copy all values from input javascript object

func (*Landmark) JSValue Uses

func (_this *Landmark) JSValue() js.Value

JSValue is allocating a new javasript object and copy all values

type LandmarkType Uses

type LandmarkType int

enum: LandmarkType

const (
    MouthLandmarkType LandmarkType = iota
    EyeLandmarkType
    NoseLandmarkType
)

func LandmarkTypeFromJS Uses

func LandmarkTypeFromJS(value js.Value) LandmarkType

LandmarkTypeFromJS is converting a javascript value into a LandmarkType enum value.

func (*LandmarkType) JSValue Uses

func (this *LandmarkType) JSValue() js.Value

JSValue is converting this enum into a javascript object

func (LandmarkType) Value Uses

func (this LandmarkType) Value() string

Value is converting this into javascript defined string value

type PromiseSequenceBarcodeFormat Uses

type PromiseSequenceBarcodeFormat struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func GetSupportedFormats Uses

func GetSupportedFormats() (_result *PromiseSequenceBarcodeFormat)

func PromiseSequenceBarcodeFormatFromJS Uses

func PromiseSequenceBarcodeFormatFromJS(value js.Wrapper) *PromiseSequenceBarcodeFormat

PromiseSequenceBarcodeFormatFromJS is casting a js.Wrapper into PromiseSequenceBarcodeFormat.

func (*PromiseSequenceBarcodeFormat) Catch Uses

func (_this *PromiseSequenceBarcodeFormat) Catch(onRejected *PromiseSequenceBarcodeFormatOnRejected) (_result *PromiseSequenceBarcodeFormat)

func (*PromiseSequenceBarcodeFormat) Finally Uses

func (_this *PromiseSequenceBarcodeFormat) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceBarcodeFormat)

func (*PromiseSequenceBarcodeFormat) JSValue Uses

func (_this *PromiseSequenceBarcodeFormat) JSValue() js.Value

func (*PromiseSequenceBarcodeFormat) Then Uses

func (_this *PromiseSequenceBarcodeFormat) Then(onFulfilled *PromiseSequenceBarcodeFormatOnFulfilled, onRejected *PromiseSequenceBarcodeFormatOnRejected) (_result *PromiseSequenceBarcodeFormat)

type PromiseSequenceBarcodeFormatOnFulfilled Uses

type PromiseSequenceBarcodeFormatOnFulfilled js.Func

PromiseSequenceBarcodeFormatOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceBarcodeFormatOnFulfilledToJS Uses

func PromiseSequenceBarcodeFormatOnFulfilledToJS(callback PromiseSequenceBarcodeFormatOnFulfilledFunc) *PromiseSequenceBarcodeFormatOnFulfilled

type PromiseSequenceBarcodeFormatOnFulfilledFunc Uses

type PromiseSequenceBarcodeFormatOnFulfilledFunc func(value []BarcodeFormat)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceBarcodeFormatOnFulfilledFromJS Uses

func PromiseSequenceBarcodeFormatOnFulfilledFromJS(_value js.Value) PromiseSequenceBarcodeFormatOnFulfilledFunc

type PromiseSequenceBarcodeFormatOnRejected Uses

type PromiseSequenceBarcodeFormatOnRejected js.Func

PromiseSequenceBarcodeFormatOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceBarcodeFormatOnRejectedToJS Uses

func PromiseSequenceBarcodeFormatOnRejectedToJS(callback PromiseSequenceBarcodeFormatOnRejectedFunc) *PromiseSequenceBarcodeFormatOnRejected

type PromiseSequenceBarcodeFormatOnRejectedFunc Uses

type PromiseSequenceBarcodeFormatOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceBarcodeFormatOnRejectedFromJS Uses

func PromiseSequenceBarcodeFormatOnRejectedFromJS(_value js.Value) PromiseSequenceBarcodeFormatOnRejectedFunc

type PromiseSequenceDetectedBarcode Uses

type PromiseSequenceDetectedBarcode struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseSequenceDetectedBarcodeFromJS Uses

func PromiseSequenceDetectedBarcodeFromJS(value js.Wrapper) *PromiseSequenceDetectedBarcode

PromiseSequenceDetectedBarcodeFromJS is casting a js.Wrapper into PromiseSequenceDetectedBarcode.

func (*PromiseSequenceDetectedBarcode) Catch Uses

func (_this *PromiseSequenceDetectedBarcode) Catch(onRejected *PromiseSequenceDetectedBarcodeOnRejected) (_result *PromiseSequenceDetectedBarcode)

func (*PromiseSequenceDetectedBarcode) Finally Uses

func (_this *PromiseSequenceDetectedBarcode) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceDetectedBarcode)

func (*PromiseSequenceDetectedBarcode) JSValue Uses

func (_this *PromiseSequenceDetectedBarcode) JSValue() js.Value

func (*PromiseSequenceDetectedBarcode) Then Uses

func (_this *PromiseSequenceDetectedBarcode) Then(onFulfilled *PromiseSequenceDetectedBarcodeOnFulfilled, onRejected *PromiseSequenceDetectedBarcodeOnRejected) (_result *PromiseSequenceDetectedBarcode)

type PromiseSequenceDetectedBarcodeOnFulfilled Uses

type PromiseSequenceDetectedBarcodeOnFulfilled js.Func

PromiseSequenceDetectedBarcodeOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceDetectedBarcodeOnFulfilledToJS Uses

func PromiseSequenceDetectedBarcodeOnFulfilledToJS(callback PromiseSequenceDetectedBarcodeOnFulfilledFunc) *PromiseSequenceDetectedBarcodeOnFulfilled

type PromiseSequenceDetectedBarcodeOnFulfilledFunc Uses

type PromiseSequenceDetectedBarcodeOnFulfilledFunc func(value []*DetectedBarcode)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceDetectedBarcodeOnFulfilledFromJS Uses

func PromiseSequenceDetectedBarcodeOnFulfilledFromJS(_value js.Value) PromiseSequenceDetectedBarcodeOnFulfilledFunc

type PromiseSequenceDetectedBarcodeOnRejected Uses

type PromiseSequenceDetectedBarcodeOnRejected js.Func

PromiseSequenceDetectedBarcodeOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceDetectedBarcodeOnRejectedToJS Uses

func PromiseSequenceDetectedBarcodeOnRejectedToJS(callback PromiseSequenceDetectedBarcodeOnRejectedFunc) *PromiseSequenceDetectedBarcodeOnRejected

type PromiseSequenceDetectedBarcodeOnRejectedFunc Uses

type PromiseSequenceDetectedBarcodeOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceDetectedBarcodeOnRejectedFromJS Uses

func PromiseSequenceDetectedBarcodeOnRejectedFromJS(_value js.Value) PromiseSequenceDetectedBarcodeOnRejectedFunc

type PromiseSequenceDetectedFace Uses

type PromiseSequenceDetectedFace struct {
    // Value_JS holds a reference to a javascript value
    Value_JS js.Value
}

class: Promise

func PromiseSequenceDetectedFaceFromJS Uses

func PromiseSequenceDetectedFaceFromJS(value js.Wrapper) *PromiseSequenceDetectedFace

PromiseSequenceDetectedFaceFromJS is casting a js.Wrapper into PromiseSequenceDetectedFace.

func (*PromiseSequenceDetectedFace) Catch Uses

func (_this *PromiseSequenceDetectedFace) Catch(onRejected *PromiseSequenceDetectedFaceOnRejected) (_result *PromiseSequenceDetectedFace)

func (*PromiseSequenceDetectedFace) Finally Uses

func (_this *PromiseSequenceDetectedFace) Finally(onFinally *javascript.PromiseFinally) (_result *PromiseSequenceDetectedFace)

func (*PromiseSequenceDetectedFace) JSValue Uses

func (_this *PromiseSequenceDetectedFace) JSValue() js.Value

func (*PromiseSequenceDetectedFace) Then Uses

func (_this *PromiseSequenceDetectedFace) Then(onFulfilled *PromiseSequenceDetectedFaceOnFulfilled, onRejected *PromiseSequenceDetectedFaceOnRejected) (_result *PromiseSequenceDetectedFace)

type PromiseSequenceDetectedFaceOnFulfilled Uses

type PromiseSequenceDetectedFaceOnFulfilled js.Func

PromiseSequenceDetectedFaceOnFulfilled is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceDetectedFaceOnFulfilledToJS Uses

func PromiseSequenceDetectedFaceOnFulfilledToJS(callback PromiseSequenceDetectedFaceOnFulfilledFunc) *PromiseSequenceDetectedFaceOnFulfilled

type PromiseSequenceDetectedFaceOnFulfilledFunc Uses

type PromiseSequenceDetectedFaceOnFulfilledFunc func(value []*DetectedFace)

callback: PromiseTemplateOnFulfilled

func PromiseSequenceDetectedFaceOnFulfilledFromJS Uses

func PromiseSequenceDetectedFaceOnFulfilledFromJS(_value js.Value) PromiseSequenceDetectedFaceOnFulfilledFunc

type PromiseSequenceDetectedFaceOnRejected Uses

type PromiseSequenceDetectedFaceOnRejected js.Func

PromiseSequenceDetectedFaceOnRejected is a javascript function type.

Call Release() when done to release resouces allocated to this type.

func PromiseSequenceDetectedFaceOnRejectedToJS Uses

func PromiseSequenceDetectedFaceOnRejectedToJS(callback PromiseSequenceDetectedFaceOnRejectedFunc) *PromiseSequenceDetectedFaceOnRejected

type PromiseSequenceDetectedFaceOnRejectedFunc Uses

type PromiseSequenceDetectedFaceOnRejectedFunc func(reason js.Value)

callback: PromiseTemplateOnRejected

func PromiseSequenceDetectedFaceOnRejectedFromJS Uses

func PromiseSequenceDetectedFaceOnRejectedFromJS(_value js.Value) PromiseSequenceDetectedFaceOnRejectedFunc

type Union Uses

type Union struct {
    Value js.Value
}

func UnionFromJS Uses

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue Uses

func (u *Union) JSValue() js.Value

Package shapedetection imports 3 packages (graph). Updated 2019-09-19. Refresh now. Tools for package owners.