From 985a0737f9c187e4ad7377d0d69aa60400acdd83 Mon Sep 17 00:00:00 2001 From: "lilong.129" Date: Fri, 20 Dec 2024 22:01:05 +0800 Subject: [PATCH] change: add notice for FindText --- hrp/internal/version/VERSION | 2 +- hrp/pkg/uixt/ai.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hrp/internal/version/VERSION b/hrp/internal/version/VERSION index c1c84bcc..c1960ff1 100644 --- a/hrp/internal/version/VERSION +++ b/hrp/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2412191325 +v5.0.0+2412202201 diff --git a/hrp/pkg/uixt/ai.go b/hrp/pkg/uixt/ai.go index c4abc087..1b8c7ff6 100644 --- a/hrp/pkg/uixt/ai.go +++ b/hrp/pkg/uixt/ai.go @@ -125,6 +125,8 @@ func (t OCRTexts) FilterScope(scope AbsScope) (results OCRTexts) { return } +// FindText returns matched text with options +// Notice: filter scope should be specified with WithAbsScope func (t OCRTexts) FindText(text string, options ...ActionOption) (result OCRText, err error) { actionOptions := NewActionOptions(options...)