Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindTable ¶
Find the attendance list in an image It expects a white paper on white background with the attendance list being black It performs a reverse perspective transform to show the table from an orthogonal view. This modified image is returned from the function.
func ValidSignature ¶
func ValidSignature(img PreparedImage) bool
Check whether the signature in `img` is valid. This is done by checking that there is only one signature.
It returns true if the signature is valid, false otherwise.
Types ¶
type BackendImgproc ¶
type BackendImgproc struct { MVVM mvvm // contains filtered or unexported fields }
func NewBackend ¶
func NewBackend(mvvm mvvm) *BackendImgproc
type PreparedImage ¶
An image that has been prepared with to PrepareImage
func PrepareImage ¶
func PrepareImage(img gocv.Mat) (PreparedImage, error)
Prepare the image in a way that it can be used for further processing
type Table ¶
func NewTable ¶
Parses `img` to return a new table
This extracts the students names from the image and validates the signatures.
func ParseTable ¶
func ParseTable(img PreparedImage) *Table
Extract the table structure from an image of the attendance list table