Documentation ¶
Index ¶
- func CheckFile(filename string) string
- func GetPixels(img image.Image) ([][]Pixel, error)
- func HasItem(list []string, items ...string) bool
- func MkdirIfNot(dir string) error
- func ReadDir(dir string) []string
- func ReadDirRecursive(dir string) []string
- func SaveJSON(data interface{}, outputname string)
- type Image
- type ImageMetadata
- type Pixel
- type TestImage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadDirRecursive ¶
ReadDirRecursive reads the directory recursively by given depth
Types ¶
type Image ¶
type Image interface { Save() func(string) error CropNumbers() func() (image.Image, error) CropAndSave() func(string) error }
Image interface for images
type ImageMetadata ¶
ImageMetadata contains width and height of an image
type TestImage ¶
type TestImage struct { image.Image ImageMetadata }
TestImage extends image.Image
func (*TestImage) CropAndSave ¶
CropAndSave crops and saves to system using cutter
func (*TestImage) DetectStartingPixel ¶
DetectStartingPixel detects the starting pixel from left to right
func (*TestImage) RemoveBlank ¶
RemoveBlank removes the blank part from the bottom of test image and saves to system by overriding original
Click to show internal directories.
Click to hide internal directories.