imgutil

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BRIGHTNESS_THRESHOLD = 0.38

Image with mean brightness < threshold is considered taken at night

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct{ Img gocv.Mat }

func NewImage

func NewImage(imagePath string) (Image, error)

func NewImageFromBytes

func NewImageFromBytes(bytebuf []byte) (Image, error)

func (Image) BlueMask

func (img Image) BlueMask(imagePath string) error

Wow. This is soo much easier in python-opencv

func (Image) Close

func (img Image) Close()

func (Image) GetMeanBrightness

func (img Image) GetMeanBrightness() (float64, error)

func (Image) PutText

func (img Image) PutText(text string)

func (img Image) PutText(x int, y int, fontscale float64, thickness int, text string) {

Jump to

Keyboard shortcuts

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