webcam

package
v0.0.0-...-3abdd02 Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeImage

func DecodeImage(frame []byte) (image.Image, error)

func EncodeImage

func EncodeImage(img image.Image) ([]byte, error)

func ScaleImage

func ScaleImage(src image.Image, scaleFactor int) image.Image

func StartStreaming

func StartStreaming(deviceName string, width uint32, height uint32, endpoint string, port string, frames chan []byte)

func StreamAsciiArt

func StreamAsciiArt(w http.ResponseWriter, req *http.Request, frames chan string)

func StreamImage

func StreamImage(w http.ResponseWriter, req *http.Request, frames chan []byte)

func TransformToASCII

func TransformToASCII(img image.Image) string

TransformToASCII converts an image to an ASCII art string.

func TransformToGrayScale

func TransformToGrayScale(img image.Image) *image.Gray

Types

This section is empty.

Jump to

Keyboard shortcuts

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