Skip to content
This repository has been archived by the owner on Nov 16, 2024. It is now read-only.

Commit

Permalink
remove unused function in feature.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo La Greca committed Mar 18, 2024
1 parent 0d18b42 commit 40797fe
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions feature.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,31 +27,6 @@ const (
ImageProperties
)

// DetectionType returns a value of detection type.
func (d DetectionFeature) String() string {
switch d {
case TypeUnspecified:
return "TYPE_UNSPECIFIED"
case FaceDetection:
return "FACE_DETECTION"
case LandmarkDetection:
return "LANDMARK_DETECTION"
case LogoDetection:
return "LOGO_DETECTION"
case LabelDetection:
return "LABEL_DETECTION"
case TextDetection:
return "TEXT_DETECTION"
case DocumentTextDetection:
return "DOCUMENT_TEXT_DETECTION"
case SafeSearchDetection:
return "SAFE_SEARCH_DETECTION"
case ImageProperties:
return "IMAGE_PROPERTIES"
}
return ""
}

func (d DetectionFeature) VisionFeature() visionpb.Feature_Type {
switch d {
case TypeUnspecified:
Expand Down

0 comments on commit 40797fe

Please sign in to comment.