Documentation ¶
Overview ¶
Package pvl is the GoCV wrapper around the Intel Computer Vision (CV) SDK's Photography Vision Library (PVL).
For further details, please see: https://software.intel.com/en-us/cvsdk-devguide-advanced-face-capabilities-in-intels-opencv
Index ¶
- type Face
- func (f *Face) Close() error
- func (f *Face) IsLeftEyeClosed() bool
- func (f *Face) IsRightEyeClosed() bool
- func (f *Face) IsSmiling() bool
- func (f *Face) LeftEyePosition() image.Point
- func (f *Face) MouthPosition() image.Point
- func (f *Face) Ptr() C.Face
- func (f *Face) RIPAngle() int
- func (f *Face) ROPAngle() int
- func (f *Face) Rectangle() image.Rectangle
- func (f *Face) RightEyePosition() image.Point
- type FaceDetector
- func (f *FaceDetector) Close() error
- func (f *FaceDetector) DetectBlink(img gocv.Mat, face Face)
- func (f *FaceDetector) DetectEye(img gocv.Mat, face Face)
- func (f *FaceDetector) DetectFaceRect(img gocv.Mat) []Face
- func (f *FaceDetector) DetectMouth(img gocv.Mat, face Face)
- func (f *FaceDetector) DetectSmile(img gocv.Mat, face Face)
- func (f *FaceDetector) SetTrackingModeEnabled(enabled bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Face ¶
type Face struct {
// contains filtered or unexported fields
}
Face is a wrapper around cv::pvl::Face.
func (*Face) IsLeftEyeClosed ¶
IsLeftEyeClosed checks if the right sys is closed or not.
func (*Face) IsRightEyeClosed ¶
IsRightEyeClosed checks if the right sys is closed or not.
func (*Face) IsSmiling ¶
IsSmiling Face? :) You must call FaceDetector's DetectEye() and DetectSmile() with this Face first, or this function will throw an exception.
func (*Face) LeftEyePosition ¶
LeftEyePosition of Face.
func (*Face) RightEyePosition ¶
RightEyePosition of Face.
type FaceDetector ¶
type FaceDetector struct {
// contains filtered or unexported fields
}
FaceDetector is a wrapper around the cv::pvl::FaceDetector.
func NewFaceDetector ¶
func NewFaceDetector() FaceDetector
NewFaceDetector returns a new PVL FaceDetector.
func (*FaceDetector) DetectBlink ¶
func (f *FaceDetector) DetectBlink(img gocv.Mat, face Face)
DetectBlink uses PVL FaceDetector to detect blink on a Face.
func (*FaceDetector) DetectEye ¶
func (f *FaceDetector) DetectEye(img gocv.Mat, face Face)
DetectEye uses PVL FaceDetector to detect eyes on a Face.
func (*FaceDetector) DetectFaceRect ¶
func (f *FaceDetector) DetectFaceRect(img gocv.Mat) []Face
DetectFaceRect tries to detect Faces from the image Mat passed in as the param. The Mat must be a grayed image that has only one channel and 8-bit depth.
func (*FaceDetector) DetectMouth ¶
func (f *FaceDetector) DetectMouth(img gocv.Mat, face Face)
DetectMouth uses PVL FaceDetector to detect mouth on a Face.
func (*FaceDetector) DetectSmile ¶
func (f *FaceDetector) DetectSmile(img gocv.Mat, face Face)
DetectSmile uses PVL FaceDetector to detect smile on a Face.
func (*FaceDetector) SetTrackingModeEnabled ¶
func (f *FaceDetector) SetTrackingModeEnabled(enabled bool)
SetTrackingModeEnabled sets if the PVL FaceDetector tracking mode is enabled.