Documentation ¶
Index ¶
- func NewTypedValue(dataType data.Type, value interface{}) (data.TypedValue, error)
- func ToAny(val interface{}) (interface{}, error)
- func ToArray(val interface{}) ([]interface{}, error)
- func ToArrayIfNecessary(val interface{}) (interface{}, error)
- func ToBool(val interface{}) (bool, error)
- func ToBytes(val interface{}) ([]byte, error)
- func ToConnection(val interface{}) (connection.Manager, error)
- func ToDateTime(val interface{}) (time.Time, error)
- func ToFloat32(val interface{}) (float32, error)
- func ToFloat64(val interface{}) (float64, error)
- func ToImage(val interface{}) (gocv.Mat, error)
- func ToInt(val interface{}) (int, error)
- func ToInt32(val interface{}) (int32, error)
- func ToInt64(val interface{}) (int64, error)
- func ToObject(val interface{}) (map[string]interface{}, error)
- func ToParams(val interface{}) (map[string]string, error)
- func ToPoint(val interface{}) (image.Point, error)
- func ToPoints(val interface{}) ([]image.Point, error)
- func ToROI(val interface{}) (vision_types.ROI, error)
- func ToROIs(val interface{}) ([]vision_types.ROI, error)
- func ToString(val interface{}) (string, error)
- func ToType(value interface{}, dataType data.Type) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTypedValue ¶
func NewTypedValue(dataType data.Type, value interface{}) (data.TypedValue, error)
func ToArray ¶
func ToArray(val interface{}) ([]interface{}, error)
ToArray coerce a value to an array of empty interface values
func ToArrayIfNecessary ¶
func ToArrayIfNecessary(val interface{}) (interface{}, error)
ToArrayIfNecessary coerce a value to an array if it isn't one already
func ToConnection ¶
func ToConnection(val interface{}) (connection.Manager, error)
func ToDateTime ¶
func ToROI ¶ added in v0.1.6
func ToROI(val interface{}) (vision_types.ROI, error)
func ToROIs ¶ added in v0.1.6
func ToROIs(val interface{}) ([]vision_types.ROI, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.