Skip to content

Commit

Permalink
Rename funcs names
Browse files Browse the repository at this point in the history
  • Loading branch information
Danile71 committed Feb 12, 2020
1 parent 53e19db commit 46bb323
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions face.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func NewRecognizer() (rec *Recognizer, err error) {
return
}

func (rec *Recognizer) SetShape(shapePredictorPath string) (err error) {
func (rec *Recognizer) SetShapeModel(shapePredictorPath string) (err error) {
if !fileExists(shapePredictorPath) {
err = errors.New(fmt.Sprintf("File '%s' not found!", shapePredictorPath))
return
Expand All @@ -97,7 +97,7 @@ func (rec *Recognizer) SetShape(shapePredictorPath string) (err error) {
return
}

func (rec *Recognizer) SetDescriptor(resnetPath string) (err error) {
func (rec *Recognizer) SetDescriptorModel(resnetPath string) (err error) {
if !fileExists(resnetPath) {
err = errors.New(fmt.Sprintf("File '%s' not found!", resnetPath))
return
Expand All @@ -119,7 +119,7 @@ func (rec *Recognizer) SetCNN(cnnResnetPath string) (err error) {
return
}

func (rec *Recognizer) SetGender(genderPath string) (err error) {
func (rec *Recognizer) SetGenderModel(genderPath string) (err error) {
if !fileExists(genderPath) {
err = errors.New(fmt.Sprintf("File '%s' not found!", genderPath))
return
Expand All @@ -130,7 +130,7 @@ func (rec *Recognizer) SetGender(genderPath string) (err error) {
return
}

func (rec *Recognizer) SetAge(agePath string) (err error) {
func (rec *Recognizer) SetAgeModel(agePath string) (err error) {
if !fileExists(agePath) {
err = errors.New(fmt.Sprintf("File '%s' not found!", agePath))
return
Expand Down

0 comments on commit 46bb323

Please sign in to comment.