Documentation ¶
Index ¶
- func Countdown(t time.Duration)
- func CountdownTime() time.Duration
- func Device() string
- func ImageUpdater(f func(string, *Image))
- func License() string
- func Msgs(name string) string
- func Panic(msg string)
- func Path(path ...string) string
- func RegisterCam(name string, c Camera)
- func RegisterUI(name string, ui UserInterface)
- func Run()
- func RunUI()
- func Runner(r func())
- func SaveDir() string
- func ShowImage(i *Image)
- func ShowMsg(msg string)
- func TakePicture()
- type Camera
- type Config
- type Image
- type UserInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountdownTime ¶
func ImageUpdater ¶
func RegisterCam ¶
func RegisterUI ¶
func RegisterUI(name string, ui UserInterface)
func TakePicture ¶
func TakePicture()
Types ¶
type Camera ¶
type Image ¶
type Image struct {
// contains filtered or unexported fields
}
Image can either contain a []byte with JPEG data or a image.Image which can both be semlessly converted between
func ImageFromBytes ¶
func ImageFromImage ¶
type UserInterface ¶
type UserInterface interface { Countdown(i time.Duration) // should wait i seconds and display countdown ShowImage(*Image) // should down a image as result ShowMsg(string) // should show a message string SetStatus(string) // should set a (almost) always visible status string Run() // start ui }
func GetUI ¶
func GetUI() UserInterface
Click to show internal directories.
Click to hide internal directories.