Commit 76039977 authored by Igor Minin's avatar Igor Minin
Browse files

Fixed text recognition, broken in 3.0

parent e053e24e
Pipeline #32011 passed with stages
in 2 minutes and 10 seconds
Showing with 619 additions and 4 deletions
+619 -4
......@@ -21,9 +21,6 @@ build:
image: golang:latest
stage: build
script:
- export GOPATH=${PWD}
- go get cloud.google.com/go/vision/apiv1
- go get github.com/nfnt/resize
- cd src/gvision_canvus_demo
- go build
- cd -
......
go.mod 0 → 100644
module gitlab.multitaction.com/igor.minin/gvision_canvus_demo
go 1.18
require (
cloud.google.com/go/vision v1.2.0
github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646
)
require (
cloud.google.com/go v0.100.2 // indirect
cloud.google.com/go/compute v1.3.0 // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
go.opencensus.io v0.23.0 // indirect
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
golang.org/x/text v0.3.7 // indirect
google.golang.org/api v0.70.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220222213610-43724f9ea8cf // indirect
google.golang.org/grpc v1.44.0 // indirect
google.golang.org/protobuf v1.27.1 // indirect
)
go.sum 0 → 100644
This diff is collapsed.
......@@ -493,7 +493,7 @@ Loop:
var text string
var descriptions []string
if strings.HasPrefix(canvasImage.Title, "SNAPSHOT AT") {
if strings.HasPrefix(strings.ToUpper(canvasImage.Title), "SNAPSHOT AT") {
// debug
log.Printf("Image has title %v, doing text recognition", canvasImage.Title)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment