Vision Lens SDK
    Preparing search index...

    Function searchKeyword

    • Keyword search: scan each image's text fields for the keyword (case-insensitive). Ranks by the number of fields that contain the keyword (descending).

      Fields scanned: shortDescription, elements (each element), extractedText.

      Parameters

      • keyword: string

        The search term (case-insensitive).

      • images: ProcessedResult[]

        All ProcessedResult records from analysis_results.json.

      • opts: { topK: number }
        • topK: number

          Maximum number of results to return.

      Returns SearchResult[]