imgutil

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

go-image-stuff

Image utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScaleJpegBufr

func ScaleJpegBufr(inputBufr []byte, sizeX int, sizeY int) ([]byte, error)

func ScaleJpegFile

func ScaleJpegFile(inputPath string, outputPath string, sizeX int, sizeY int) error

Types

type Image

type Image struct{ Img gocv.Mat }

func NewCVImage

func NewCVImage(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)

Jump to

Keyboard shortcuts

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