mirror of
https://github.com/hybridgroup/gocv
synced 2025-08-25 08:41:04 +08:00
docs: update all OpenCV 3.3.1 references to v3.4.0
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
20
objdetect.go
20
objdetect.go
@@ -14,7 +14,7 @@ import (
|
||||
// CascadeClassifier is a cascade classifier class for object detection.
|
||||
//
|
||||
// For further details, please see:
|
||||
// http://docs.opencv.org/3.3.1/d1/de5/classcv_1_1CascadeClassifier.html
|
||||
// http://docs.opencv.org/3.4.0/d1/de5/classcv_1_1CascadeClassifier.html
|
||||
//
|
||||
type CascadeClassifier struct {
|
||||
p C.CascadeClassifier
|
||||
@@ -35,7 +35,7 @@ func (c *CascadeClassifier) Close() error {
|
||||
// Load cascade classifier from a file.
|
||||
//
|
||||
// For further details, please see:
|
||||
// http://docs.opencv.org/3.3.1/d1/de5/classcv_1_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc
|
||||
// http://docs.opencv.org/3.4.0/d1/de5/classcv_1_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc
|
||||
//
|
||||
func (c *CascadeClassifier) Load(name string) bool {
|
||||
cName := C.CString(name)
|
||||
@@ -47,7 +47,7 @@ func (c *CascadeClassifier) Load(name string) bool {
|
||||
// The detected objects are returned as a slice of image.Rectangle structs.
|
||||
//
|
||||
// For further details, please see:
|
||||
// http://docs.opencv.org/3.3.1/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498
|
||||
// http://docs.opencv.org/3.4.0/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498
|
||||
//
|
||||
func (c *CascadeClassifier) DetectMultiScale(img Mat) []image.Rectangle {
|
||||
ret := C.CascadeClassifier_DetectMultiScale(c.p, img.p)
|
||||
@@ -73,7 +73,7 @@ func (c *CascadeClassifier) DetectMultiScale(img Mat) []image.Rectangle {
|
||||
// to values other than just the defaults.
|
||||
//
|
||||
// For further details, please see:
|
||||
// http://docs.opencv.org/3.3.1/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498
|
||||
// http://docs.opencv.org/3.4.0/d1/de5/classcv_1_1CascadeClassifier.html#aaf8181cb63968136476ec4204ffca498
|
||||
//
|
||||
func (c *CascadeClassifier) DetectMultiScaleWithParams(img Mat, scale float64,
|
||||
minNeighbors, flags int, minSize, maxSize image.Point) []image.Rectangle {
|
||||
@@ -111,7 +111,7 @@ func (c *CascadeClassifier) DetectMultiScaleWithParams(img Mat, scale float64,
|
||||
// HOGDescriptor is a Histogram Of Gradiants (HOG) for object detection.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d33/structcv_1_1HOGDescriptor.html#a723b95b709cfd3f95cf9e616de988fc8
|
||||
// https://docs.opencv.org/3.4.0/d5/d33/structcv_1_1HOGDescriptor.html#a723b95b709cfd3f95cf9e616de988fc8
|
||||
//
|
||||
type HOGDescriptor struct {
|
||||
p C.HOGDescriptor
|
||||
@@ -133,7 +133,7 @@ func (h *HOGDescriptor) Close() error {
|
||||
// The detected objects are returned as a slice of image.Rectangle structs.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
// https://docs.opencv.org/3.4.0/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
//
|
||||
func (h *HOGDescriptor) DetectMultiScale(img Mat) []image.Rectangle {
|
||||
ret := C.HOGDescriptor_DetectMultiScale(h.p, img.p)
|
||||
@@ -159,7 +159,7 @@ func (h *HOGDescriptor) DetectMultiScale(img Mat) []image.Rectangle {
|
||||
// to values other than just the defaults.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
// https://docs.opencv.org/3.4.0/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
//
|
||||
func (h *HOGDescriptor) DetectMultiScaleWithParams(img Mat, hitThresh float64,
|
||||
winStride, padding image.Point, scale, finalThreshold float64, useMeanshiftGrouping bool) []image.Rectangle {
|
||||
@@ -196,7 +196,7 @@ func (h *HOGDescriptor) DetectMultiScaleWithParams(img Mat, hitThresh float64,
|
||||
// HOGDefaultPeopleDetector returns a new Mat with the HOG DefaultPeopleDetector.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
// https://docs.opencv.org/3.4.0/d5/d33/structcv_1_1HOGDescriptor.html#a660e5cd036fd5ddf0f5767b352acd948
|
||||
//
|
||||
func HOGDefaultPeopleDetector() Mat {
|
||||
return Mat{p: C.HOG_GetDefaultPeopleDetector()}
|
||||
@@ -205,7 +205,7 @@ func HOGDefaultPeopleDetector() Mat {
|
||||
// SetSVMDetector sets the data for the HOGDescriptor.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d33/structcv_1_1HOGDescriptor.html#a09e354ad701f56f9c550dc0385dc36f1
|
||||
// https://docs.opencv.org/3.4.0/d5/d33/structcv_1_1HOGDescriptor.html#a09e354ad701f56f9c550dc0385dc36f1
|
||||
//
|
||||
func (h *HOGDescriptor) SetSVMDetector(det Mat) error {
|
||||
C.HOGDescriptor_SetSVMDetector(h.p, det.p)
|
||||
@@ -215,7 +215,7 @@ func (h *HOGDescriptor) SetSVMDetector(det Mat) error {
|
||||
// GroupRectangles groups the object candidate rectangles.
|
||||
//
|
||||
// For further details, please see:
|
||||
// https://docs.opencv.org/3.3.1/d5/d54/group__objdetect.html#ga3dba897ade8aa8227edda66508e16ab9
|
||||
// https://docs.opencv.org/3.4.0/d5/d54/group__objdetect.html#ga3dba897ade8aa8227edda66508e16ab9
|
||||
//
|
||||
func GroupRectangles(rects []image.Rectangle, groupThreshold int, eps float64) []image.Rectangle {
|
||||
cRectArray := make([]C.struct_Rect, len(rects))
|
||||
|
||||
Reference in New Issue
Block a user