Image-based object detection and processing for action mapping
By using a machine learning-based image processing system that automatically identifies and extracts text from images using convolutional neural networks and multimodal architecture, the problem of time-consuming conversion of image text into structured data in existing technologies is solved, achieving efficient, accurate automated processing and resource conservation.
Patent Information
- Application Number
- CN202610679271.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-12-03
- Filing Date
- 2026-05-18
- Publication Date
- 2026-11-20
AI Technical Summary
In existing technologies, the process of converting real-world content into structured digital data is time-consuming and manual, making it difficult to efficiently automate the processing and extraction of text information from images.
The image processing system employs machine learning, utilizing convolutional neural networks and multimodal architecture machine learning models to automatically identify and extract text data from images through predefined information patterns, generating structured outputs that can adapt to the needs of different business and industrial sectors.
It improves the efficiency and accuracy of image text extraction, reduces human intervention, lowers resource utilization, and achieves seamless integration with downstream applications and automated data processing.
Smart Images

Figure CN123142194A_ABST
Abstract
Description
Cross-reference to related applications
[0001] This application claims the benefit of U.S. Provisional Application No. 63 / 808,609, filed May 19, 2025, entitled “IMAGE-BASED OBJECT DETECTION AND PROCESSING,” and U.S. Provisional Application No. 63 / 904,485, filed October 23, 2025, entitled “IMAGE-BASED OBJECT DETECTION AND PROCESSING FOR ACTIONMAPPING,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] This disclosure pertains to the field of image processing. Background Technology
[0003] Mobile electronic devices (such as smartphones) are popular and are typically carried by users while performing daily and / or repetitive tasks. Users frequently interact with these devices to access, process, and share information encountered in real-world environments. For example, users may capture images of physical documents, products, packaging, menus, receipts, or handwritten notes to reference or store associated information. However, converting such real-world content into structured digital data remains largely manual and time-consuming. Attached Figure Description
[0004] Specific features of this subject matter are set forth in the appended claims. However, for illustrative purposes, several aspects of this subject matter are illustrated in the following figures.
[0005] Figure 1 Example network environments based on various aspects of the techniques in this subject are illustrated.
[0006] Figure 2 Example computing architectures for systems based on various aspects of the techniques in this subject are illustrated.
[0007] Figure 3 An example data extraction pipeline for extracting text data from an image is shown.
[0008] Figure 4 An example data extraction pipeline is shown for generating information associated with elements depicted in an image.
[0009] Figure 5 An example user interface is shown for generating and displaying information associated with the items depicted in the image.
[0010] Figure 6 An example user interface is shown for generating and displaying information associated with the items depicted in the image.
[0011] Figure 7 An example machine learning model is shown for the implementation of a sample data extraction pipeline.
[0012] Figure 8 A flowchart illustrating an example process for extracting text data from an image is provided.
[0013] Figure 9 A flowchart illustrating an example process for processing an image to determine one or more relevant portions of the image is provided.
[0014] Figure 10 A flowchart illustrating an example process for detecting elements in an image and inferring information associated with the detected elements is provided.
[0015] Figure 11 An example data extraction pipeline is shown for generating motion mapping information associated with elements depicted in an image.
[0016] Figure 12 An example user interface is shown for generating motion mapping information associated with items depicted in an image.
[0017] Figure 13 An example user interface is shown for generating motion mapping information associated with items depicted in an image.
[0018] Figure 14 A flowchart illustrating an example process for detecting elements in an image and mapping actions to the detected elements is provided.
[0019] Figure 15 A flowchart illustrating an example process for detecting elements in an image and mapping actions to the detected elements is provided.
[0020] Figure 16 A flowchart illustrating an example process for detecting elements in an image and mapping actions to the detected elements is provided.
[0021] Figure 17 Example electronic systems, according to one or more specific implementations, are illustrated to implement aspects of the subject matter techniques.
[0022] The details in the brief description of the accompanying drawings are intended to describe only some aspects relevant to certain embodiments of the invention and should not in any way be considered as limiting or otherwise restricting any aspect of the claimed or omitted embodiments or embodiments consistent with its scope or spirit. Detailed Implementation
[0023] The detailed description listed below is intended to describe various configurations of the subject matter and is not intended to represent the only configuration in which the subject matter can be practiced. The accompanying drawings are incorporated herein and form part of the detailed description. The detailed description includes specific details intended to provide a thorough understanding of the subject matter. However, the subject matter is not limited to the specific details listed herein, but may be practiced in one or more other specific embodiments. In some specific embodiments, structures and components are shown in block diagram form to avoid obscuring the concepts of the subject matter.
[0024] This system provides a framework for image processing and data extraction of images captured and / or stored on user devices. It is configured to process images containing various types of visual information, including but not limited to product packaging, posters, menus, and business cards. The system can utilize a combination of image analysis and / or pattern-based text recognition to identify, extract, and format relevant text data for storage, manipulation of downstream tasks, applications, and / or processes, and integration therewith. The extracted text can be constructed according to predefined information patterns that indicate specific data attributes of the extracted data, thereby enabling target data retrieval.
[0025] This system offers technological improvements, advantages, and / or benefits that enhance the efficiency, accuracy, and / or usability of extracting structured data from images. By using a predefined information pattern-based extraction method, this system ensures that only context-relevant textual data is identified and extracted, thereby improving data accuracy and reducing the extraction of irrelevant information (which may reduce the utilization of processing, power, and / or memory resources). Through textual information extraction based on predefined information patterns, this system can also be adapted to different business, industrial, and information sectors without requiring additional user interaction and / or processing. This system can also be extended by introducing additional information patterns and / or image types as needed, ensuring that the system can evolve with user requirements and / or technological advancements without requiring extensive reconfiguration.
[0026] This system also facilitates seamless integration with downstream processing tasks, applications, and / or processes by generating structured output in standardized and / or predefined formats. For example, contact details extracted from business cards can be formatted in a way that allows them to be consumed and / or stored on behalf of the contact application, thus automating what would otherwise be a manual data entry process. Furthermore, this system improves operational efficiency by minimizing human intervention in the data capture workflow through automated text recognition and extraction. This reduces the likelihood of manual errors and accelerates the data extraction process, thereby reducing memory, processing, and / or power utilization.
[0027] Figure 1 An example network environment 100 according to one or more specific embodiments of the subject matter is illustrated. However, not all depicted components are usable in all embodiments, and one or more embodiments may include additional or different components compared to those shown in the figures. Variations in the arrangement and type of these components may be made without departing from the spirit or scope of the claims set forth herein. Additional components, different components, or fewer components may be provided.
[0028] Network environment 100 includes computing device 110 (also referred to herein as electronic device) and server 120. Network 106 is communicatively (directly or indirectly) coupled to electronic device 110 and / or server 120. In one or more embodiments, network 106 may be an interconnection network of devices that may include the Internet or be communicatively coupled to the Internet. For illustrative purposes, network environment 100 is described in... Figure 1 The network environment 100 is illustrated as including electronic device 110 and server 120; however, the network environment 100 may include any number of electronic devices and any number of servers.
[0029] Electronic device 110 may be, for example, a desktop computer, portable computing devices such as laptop computers, smartphones, peripherals (e.g., digital cameras, headphones), tablet devices, wearable devices such as watches, wristbands, etc. Figure 1 In this context, by way of example, electronic device 110 is described as a smartphone. Electronic device 110 may be and / or may include, as described below, relative to... Figure 2 and / or Figure 11 The system under discussion, in whole or in part.
[0030] In some implementations, electronic device 110 may provide a system for training a machine learning model using training data, wherein the trained machine learning model is then deployed locally on electronic device 110. Furthermore, electronic device 110 may provide one or more frameworks for training machine learning models and / or using machine learning models to develop applications. In the example, electronic device 110 may be an electronic device (e.g., smartphone, tablet, laptop, desktop computer, wearable electronic device, etc.) that can be used to communicate with entities (such as friends, family, colleagues, etc.).
[0031] In some implementations, server 120 may provide a platform for training one or more machine learning models for deployment to electronic device 110. The machine learning models deployed on electronic device 110 can then perform one or more machine learning tasks. In some implementations, server 120 may provide cloud services that utilize the trained machine learning models and continuously improve over time. Server 120 may be and / or may include, as described below, relative to... Figure 2 and / or relative to Figure 11 The system under discussion, in whole or in part.
[0032] Figure 2 Example systems 200 according to some specific implementations of the subject matter are illustrated. In the examples, system 200 may be implemented in electronic device 110 or server 120, or partially in both. In another example, system 200 may be implemented in a single device or in a distributed manner across multiple devices, and specific implementations of the system will be apparent to those skilled in the art.
[0033] In this example, system 200 may include a processor 202, a memory 204 (memory device), and a communication unit 210. Memory 204 may store data 206 and one or more machine learning models 208A. In this example, system 200 may include a storage device 212 or be communicatively coupled thereto. Therefore, storage device 212 may be an internal storage device or an external storage device. Figure 2 In this example, system 200 includes one or more cameras 211, a display 214, and one or more sensors 216. Sensors 216 may include position sensors (e.g., satellite positioning system sensors), motion sensors (e.g., inertial sensors), and / or depth sensors (e.g., stereo cameras, LiDAR sensors, radar sensors, time-of-flight sensors, etc.).
[0034] In the example, system 200 may execute system process 205 or a service that performs core and / or auxiliary functions within system 200. System process 205 may perform operations such as sensor data acquisition, real-time processing of input from camera or sensor 216, machine learning inference, communication handling, and user interface rendering. System processes are typically managed by the operating system (OS) of system 200 and are distinct from one or more applications 207 executing within system 200. In one or more implementations, system processes may interact with one or more applications 207 using application programming interfaces (APIs). In one or more implementations, system processes may be operating system processes or daemons.
[0035] In the example, processor 202 can be a single processing unit or multiple processing units. Processor 202 can be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units (CPUs), graphics processing units (GPUs), neural processors, or dedicated processors, such as devices for training and / or evaluating machine learning models, such as large language models, state machines, logic circuits, and / or manipulation signals based on operating instructions. In other capabilities, processor 202 is configured to fetch and execute computer-readable instructions and data stored in memory 204.
[0036] In the example, communication unit 210 may include one or more hardware units that support wired or wireless communication between processor 202 and processors of other computing devices and / or for communication over telecommunications networks.
[0037] The memory 204 may include any non-transitory computer-readable medium known in the art, including, for example, volatile memory such as static random access memory (SRAM) and dynamic random access memory (DRAM), and / or non-volatile memory such as read-only memory (ROM), erasable programmable ROM, flash memory, hard disk, optical disk and magnetic tape.
[0038] Memory 204 may include one or more applications 207 currently executing on system 200. The one or more applications 207 may use application programming interfaces (APIs) to interact with each other or with the operating system of system 200 to send or receive data. The one or more applications 207 may also include corresponding user interfaces (UIs) to facilitate user interaction, enabling the user to seamlessly provide input and receive output. For example, when implemented in electronic device 110, system 200 may execute a messaging application that provides a UI to receive input from the user of electronic device 110.
[0039] Among other things, data 206 may represent a data repository processed, received, and generated by one or more processors, such as processor 202. One or more of the aforementioned components of system 200 may, for example, use one or more input / output ports and one or more communication units to transmit or receive data.
[0040] In the example, machine learning (ML) model 208 may include one or more machine learning models, such as a first ML model 208A, which is trained to process input images to detect text data depicted in the input images and analyze the text data to determine predefined information patterns. In one or more specific implementations, the system predefined information pattern is a template specifying one or more data fields that specify the text data to be identified and extracted from the input image. Each pattern defines a set of data fields associated with a specific type of document or visual media and provides a contextual blueprint of how the extracted text should be interpreted and organized. For example, in the case of a business card, the pattern may include data fields such as “name,” “job,” “title,” “company,” “phone number,” “email address,” “website,” and “physical address.” These fields represent the most common and meaningful data categories found on business cards. Similarly, a pattern associated with product packaging may include data fields such as “product name,” “brand,” “ingredients,” “nutritional information,” “net content,” “manufacturing date,” “expiration date,” and “manufacturing details.” Similarly, a pattern associated with a promotional poster may define fields such as “event,” “name,” “date,” “time,” “location,” “organizer,” “call to action,” and “contact information.” Each of these patterns can correspond to a different content field that specifies one or more data fields to be extracted from the input image.
[0041] One or more of the machine learning models may also include a second ML model 208B, which is trained to process the input image to extract textual data present in the input image. In one or more embodiments, the second ML model 208B is a large language model (LLM) implemented using a transformer-based neural network architecture and trained on a corpus to infer descriptions associated with one or more topics. For example, the second ML model 208B can be used to generate information about specific foods, recipes, etc. In other embodiments, the second ML model 208B is configured to extract textual data present in the input image and generate inferred descriptions. In one or more embodiments, the first ML model 208A and the second ML model 208B can be supervised, semi-supervised, or unsupervised. The first ML model 208A and the second ML model 208B can be based on regression learning, reinforcement learning, decision trees, random forests, support vector machines, neural networks, diffusion-based synthetic models, or any suitable learning algorithm. By way of example and not limitation, neural network-based models may include one or more of transformer neural networks, long short-term memory units, or recurrent neural networks, or any combination thereof.
[0042] Figure 3This is an example of a data extraction pipeline implemented by system process 205, used to extract text data from an input image 302 captured using a camera of electronic device 110 or obtained from data 206 of electronic device 110. Input image 302 may include images depicting, for example, business cards, posters, product packaging, unpackaged food, menus, receipts, shopping lists, to-do lists, readings from health monitoring or testing devices (e.g., weight monitors, blood glucose monitors, etc.), booking information (e.g., hotels, flights, parking lots, etc.). The data extraction pipeline of system process 205 may include an OCR extractor 304 implemented using a rule-based engine or machine learning model, used to detect and extract text content present in the input image 302. In one or more specific implementations, the detected text from OCR extractor 304 is provided as input to a second ML model 208B as additional parameters for detecting and extracting text data. The data extraction pipeline may include a first ML model 208A, which is trained to process the input image 302 to detect text data present in the input image and analyze the text data to determine predefined information patterns. The data extraction pipeline may also include a second ML model 208B, which is trained to process the input image to extract the text data depicted in the input image to generate a structured output 310. The data extraction pipeline also includes a cue generator 308, which generates queries against the second ML model 208B based on the output of the first ML model 208A and the predefined information patterns selected by the first ML model 208A. The data extraction pipeline also includes a user activity module 306, which provides information related to user activities and their relationship to the input image 302. The techniques and methods implemented by the data extraction pipeline are further described below.
[0043] In one or more embodiments, after receiving the input image 302, a first ML model 208A may process the input image 302 to detect text data depicted in the image. In one example, the first ML model 208A may be implemented as a convolutional neural network (CNN) integrated with an attention mechanism that performs attention-based processing on regions of the input image containing text and infers one or more attributes (e.g., data type, data value, keywords) associated with the text data present in the input image 302. In yet another example, the first ML model 208A may be implemented as a transformer-based model (e.g., a visual transformer or a hybrid visual-language model) to learn complex textual relationships between detected text segments in the input image. In yet another example, the first ML model 208A may operate as an ensemble model that combines the outputs from multiple specialized sub-models trained on different image categories. Each sub-model may be optimized for a specific domain (e.g., health device readings, reservation confirmations, menus, handwritten to-do lists) to infer one or more attributes associated with the text data present in the image. Reference Figure 7 The first ML model 208A is further described.
[0044] In one or more embodiments, a first ML model 208A is configured to process an input image to generate one or more contextual attributes and one or more textual attributes associated with textual content present in the input image. Contextual attributes may include high-level semantic and positional properties that define the relationship between textual data and surrounding visual or structural components within the input image. These attributes may include, but are not limited to, spatial layout patterns, text grouping, proximity to graphic elements, color or background association, region-specific density of text, etc. One or more textual attributes may include inherent properties of the identified text segments and may include, for example, font style, size, text orientation, language, lexical content, keywords. In some embodiments, the first ML model 208A may also use attention-based mechanisms (e.g., transformer-based models) to capture local and global dependencies between textual elements and surrounding visual characteristics, thereby enhancing its ability to generate accurate contextual and textual attributes.
[0045] In one or more embodiments, the system process may use one or more contextual attributes and one or more textual attributes generated by the first ML model 208A to select a predefined information pattern for the input image. In one or more embodiments, each predefined information pattern specifies a structured template that includes one or more data fields associated with a specific type of document or visual content (e.g., business cards, product packaging, event posters, health devices, etc.). By comparing the textual attributes of the detected textual data with the pattern-specific data fields, the system process 205 may select an appropriate pattern. In one or more embodiments, each predefined information pattern is also associated with one or more contextual attributes, such as domain type, data type constraints, lexical cues, etc. In such embodiments, the system process 205 may compare the contextual attributes associated with the predefined information pattern with one or more contextual attributes associated with the textual content present in the input image 302 to select the appropriate pattern that is most context-relevant.
[0046] In one or more specific implementations, a first ML model 208A may process input image 302 to identify one or more portions of the input image containing text content deemed relevant based on one or more contextual attributes and one or more textual attributes. For example, if the image depicts a hotel booking confirmation, the first ML model 208A may prioritize areas containing the date, address, and booking number while ignoring promotional text. For another example, suppose the input image depicts the front and back of a packaged food product captured by a camera of electronic device 110. The first ML model 208A may analyze the spatial arrangement of text blocks, fonts (e.g., bold brand names), and lexical cues (e.g., ingredients, net weight, calories, etc.) to identify relevant portions of the text data. For example, the first ML model 208A may infer that a bold central phrase (e.g., "organic almond butter") corresponds to the product name, while text data such as slogans is discarded. Subsequently, system process 205 may identify portions of the input image that include relevant portions of the text data.
[0047] In one or more embodiments, after identifying one or more relevant portions of the input image 302, including text data, system process 205 may crop or isolate the corresponding portions of the input image to generate a refined set of visual input. These cropped portions of the input image are then provided as input to a second ML model 208B for structured data extraction, thereby limiting the scope of data extraction performed by the second ML model 208B to meaningful content.
[0048] In one or more embodiments, the user activity module 306 is configured to capture and provide metadata associated with user activity when acquiring or processing an input image. For example, the user activity module 306 may identify an application or interface (e.g., a user interface), such as a contact application, expense management platform, or document scanner, through which it captures or submits the input image 302 for structured data extraction, which can serve as an indicator of the intended use case of the application or interface. In some embodiments, the user activity module 306 may also receive user input specifying a downstream application or service in which the structured output 310 is intended to be used. For example, a user may specify that the structured output 310 will be exported to a calendar application or note-taking application. The user activity module 306 may provide such user input, or instructions to an application (or interface) through which it captures or submits the input image to the prompt generator 308, for customized query generation based on the use case of the structured output 310.
[0049] In one or more embodiments, the prompt generator 308 is configured to receive data related to user activity and an indication of a predefined information pattern selected by the first ML model 208A as input. The prompt generator 308 can use the input to generate a query tailored for querying the second ML model 208B to extract text data. In one or more embodiments, the query may also include one or more cropped portions of the input image containing relevant portions of text data, such as those identified by the first ML model 208A. These one or more portions of the input image may be embedded in the query or referenced by the query to guide the extraction process. In other embodiments, one or more portions of the input image may be provided directly to the second ML model 208B, either instead of or along with the generated query for extracting text data.
[0050] In one or more embodiments, the system process may use a second ML model 208B to extract text data from one or more cropped portions of an input image 302 based on a query generated by a prompt generator 308 and a selected predefined information pattern. The query provides instructions describing the type of data to be extracted (e.g., name, date, etc.), while the one or more cropped portions of the input image provide visual text from which text data is to be extracted. In one or more embodiments, the second ML model 208B may use a multimodal architecture capable of handling both image and text input. The second ML model 208B may encode one or more cropped portions of the input image using a visual feature extractor (e.g., a convolutional neural network or a visual transformer) that converts one or more cropped portions of the input image into a numerical representation. A query is then executed against the second ML model 208B to understand one or more attributes of the selected predefined information pattern and the numerical representation is processed to extract the text data as specified by the selected predefined information pattern.
[0051] In one or more specific implementations, the second ML model 208B is implemented as a neural network architecture incorporating multiple adapters, each of which is a modular subnetwork trained for a specific domain or use case (e.g., business cards, receipts, product packaging, health reports, etc.). These adapters allow the second ML model 208B to adapt to the text data extraction process depending on the input context without retraining the entire model. System process 205 can dynamically select and activate specific adapter configurations within the second ML model 208B based on signals from user activity module 306 encoded in queries generated by prompt generator 308, which captures information such as the application in use or user-specific intent. For example, suppose a user initiates a text extraction task within a expense management application on system process 205. Upon receiving an input image depicting a restaurant receipt, user activity module 306 can identify the application providing the input image. User activity module 306 can provide indications of the application used by the user to provide input image 302 to prompt generator 308. In response, the prompt generator 308 may embed indications for the application used by the user into the query generated by the prompt generator 308. When the second ML model 208B processes the query, the second ML model 208B may select a corresponding adapter module within the second ML model 208B that is specifically trained for the receipt processing domain. In other embodiments, the adapter module may be selectively loaded into the second ML model 208B to enable the second ML model 208B to perform text data extraction from the input image 302. For example, system process 205 may preprocess the query to determine one or more adapters and load one or more adapters into the second ML model 208B. System process 205 may select the adapter based on a selected predefined schema information schema, one or more text attributes and one or more context attributes of the text data present in the input image 302, and a domain or use case (e.g., business card, receipt, product packaging, health report, etc.).
[0052] In one or more specific implementations, the second ML model 208B can process a query generated by the prompt generator 308 and one or more portions of the input image to extract text data in the form of a structured output 310. The structured output 310 may be in the form of a data structure formatted according to a predefined information pattern selected by the first ML model 208A. The data structure organizes the extracted text into specific fields associated with the selected pattern. The structured output 310 is stored on the electronic device 110 in local memory or a persistent storage medium for subsequent access tasks or export of the extracted data. For example, if the input image is an image of a business card, the first ML model 208A may determine an appropriate predefined pattern corresponding to the business card format. The pattern may define fields such as “name,” “title,” “company,” “email,” “phone number,” and optionally “website” and “address.” Based on the selected pattern and the correspondingly generated query, the second ML model 208B analyzes one or more cropped regions of the input image to extract semantically relevant text associated with each field specified by the selected pattern. The structured output 310 generated from the image of the business card can be used by system process 205 to create or update entries in the contacts application on electronic device 110.
[0053] For another example, suppose the input image is a photograph of a digital blood pressure monitor display captured using a camera on electronic device 110. The display shows key health metrics, including “systolic heart rate,” “diastolic heart rate,” “pulse,” “units,” and “time stamp.” Upon receiving the input image, a first ML model 208A analyzes the spatial layout, numerical formatting, and visual structure of the input image and selects a predefined information pattern corresponding to the blood pressure reading. The first ML model 208A identifies one or more portions of the input image, including relevant textual data (e.g., numerical values, labels such as “SYS,” “DIA,” “PULSE”), and then filters out irrelevant portions of the device, such as brand names or UI icons. Subsequently, system process 205 can crop the portion of the image containing the detected health metrics. One or more cropped portions of the image and a query generated by prompt generator 308 are provided as input to a second ML model 208B. The second ML model processes the query to extract textual data from one or more cropped portions of the input image to generate a structured output 310 specifying the information displayed by the digital blood pressure monitor. For example, the structured output 310 may include data fields such as “heart contraction,” “heart relaxation,” “pulse,” “unit,” and “time stamp,” as well as corresponding values extracted from the input image, such as “128,” “82,” “74,” “mmHg,” and “2025-05-12-T08:42:00.” The structured output 310 can then be stored by the electronic device 110 and may be integrated into a personal health monitoring application, sent to a healthcare provider, or synchronized with a medical record system depending on user preferences or configured workflows.
[0054] In one or more embodiments, the data extraction pipeline may be further configured to display or generate information associated with one or more elements depicted in an input image. In such embodiments, a first ML model 208A may be configured to process the input image to detect and classify one or more elements contained within the input image 302. These elements may include textual components such as portions of a menu or visual objects such as packaged or unpackaged food (e.g., fruits, vegetables, and prepared meals). Upon detecting an element within the input image 302, the first ML model 208A may classify the element depicted in the image into a category type of element. For example, the first ML model 208A may classify the element as “menu,” “packaged food,” or “unpackaged food.” In response, a prompt generator may generate a query based on the element classification to infer information associated with the element depicted in the input image from a second ML model 208B and based on the classification generated by the first ML model 208A. Subsequently, the second ML model 208B may generate information about the elements depicted in the input image 302 and / or extract data from the input image to generate a structured output 310. (Reference) Figure 4The techniques and methods are described.
[0055] Figure 4 This is an example of a data extraction pipeline implemented by system process 205 to generate information associated with elements depicted in an input image and / or to extract text data from the input image 302. The input image 302 may depict elements such as text or objects, or both. For example, the input image may depict a menu, packaged food, or unpackaged food.
[0056] In one or more specific implementations, a first ML model 208A can process an input image to detect and classify elements depicted in the input image. These elements may include text content (e.g., a portion of a menu or receipt) and visual objects (e.g., packaged or unpackaged food). The first ML model 208A can analyze the structure, layout, and visual features of the input image to identify portions of the image that depict meaningful content. For example, the first ML model 208A can detect that a specific portion of the input image contains text and, in response, classify it as a “menu.” For another example, the first ML model 208A can determine that the input image depicts an item such as an apple or a salad. In response, the first ML model 208A can classify the element as “unpackaged food.” For yet another example, the first ML model 208A can determine that the input image depicts an item such as a bag of potato chips and, in response, classify the element as “packaged food.”
[0057] In one or more embodiments, when the first ML model 208A determines that the elements depicted in the input image 302 correspond to text content, the system process 205 may be configured to generate and display a user interface (UI) that allows the user to interact with the identified text elements. Specifically, the UI may be configured to enable the user to select a portion of the text content for which the user intends to receive additional information or initiate a data extraction process. For example, if the first ML model 208A categorizes the elements depicted in the input image as a “menu,” the system process 205 may render an interactive UI that displays the input image and allows the user to interact with the UI, such as by tapping or touching the display of the electronic device 110. The user can use the UI to select a specific food item listed in the menu. In response to receiving user input 402 (such as the user’s selection of an item via the UI), the system process 205 uses the selected item (as input to the prompt generator 308) and an indication of the categorization of the elements generated by the first ML model 208A to generate a query for the second ML model 208B.
[0058] In one or more embodiments, the prompt generator 308 may use the input to generate a query tailored for querying the second ML model 208B to infer information associated with selected items from the input image 302. In one or more embodiments, the query may also include one or more cropped portions of the input image, which may include additional text (e.g., text describing food items in a menu) or images depicted in the input image 302. One or more portions of the input image may be embedded in or referenced by the query to guide the extraction process. In other embodiments, one or more portions of the input image 302 may be provided directly to the second ML model 208B, either instead of or along with the generated query for extracting text data.
[0059] In one or more specific implementations, the second ML model 208B can process queries to retrieve or generate information associated with selected text from input image 302. Upon receiving a query, the second ML model 208B can combine a trained knowledge base, external data sources, or a pre-trained language model to process the query to infer or retrieve detailed information associated with the selected item. For example, if the selected item is a food item (e.g., “Lafayette”) from an image of a restaurant menu, the second ML model 208B can return a structured output 310 describing the food item “Lafayette.” The description may also include the nutritional content, typical ingredients, allergen data, recipe, common dietary categories (e.g., gluten-free, low-calorie), and preparation method of the food item “Lafayette.” The structured output 310 can then be presented to a user via electronic device 110 or integrated into downstream applications (such as health tracking or diet planning applications). Reference Figure 5 The UI is used to interpret, generate, and display information associated with the food listed on the restaurant menu.
[0060] For another example, if input image 302 depicts a bowl of fruit, first ML model 208A can detect elements depicted in input image 302 and classify them as "unpackaged food." In this case, prompt generator 308 can receive an indication of the classification generated by first ML model 208A and subsequently generate a query to generate or infer information associated with the bowl of fruit depicted in input image 302. In this case, the query may also include one or more cropped portions of the input image 302 depicting a bowl of fruit. These one or more cropped portions of input image 302 may be embedded in or referenced by the query to guide the inference process. In other embodiments, one or more cropped portions of input image 302 may be provided directly to second ML model 208B, instead of or along with the generated query.
[0061] In one or more specific implementations, the system process may provide a query to a second ML model 208B to process one or more cropped portions of the input image 302, thereby first determining the elements depicted in the input image 302. In response to determining the elements depicted in the cropped portions of the input image, the second ML model 208B may use a trained knowledge base, external data source, or pre-trained language model to infer and / or generate information associated with the elements. Continuing with the example of an input image 302 depicting a bowl of fruit, the second ML model 208B may generate a structured output 310, which may include information such as estimated food type (e.g., a bowl of mixed fruit), typical ingredients (e.g., bananas, grapes, etc.), nutritional content (e.g., calorie estimates, carbohydrates, sugar content, serving size), and dietary category (e.g., vegan, gluten-free). The structured output 310 may then be displayed to a user via a UI or stored for integration with applications such as diet tracking, meal planning, or health monitoring applications.
[0062] Figure 5 An example user interface (UI) provided by electronic device 110 is shown for generating and displaying information associated with the menu depicted in input image 302. For example... Figure 5 As shown, system process 205 displays an image 502 of the physical restaurant menu currently being captured by the camera or image sensor of electronic device 110. The UI includes UI element 504, which indicates to the user that food items from the displayed menu image 502 are selectable. In response to this query, the user can select food items, such as "Lafayette," as illustrated in shaded area 506.
[0063] When the user selects the food item "Lafayette," the UI presents UI element 508, which allows the user to initiate a search for the selected item "Lafayette." If the user interacts with UI element 508, system process 205 generates information related to the selected food item and displays this information via UI element 510, such as a brief description of the selected food item "Lafayette." The UI may also include UI element 512, which allows the user to save the generated information to a note-taking application.
[0064] Additionally, the UI can present UI element 514 to allow users to request further information about the selected item. For example, users can enter questions and / or queries via UI element 514, which are then processed by the second ML model 208B to generate further information related to the selected food item "Lafayette". Furthermore, the UI can display images of the selected food item "Lafayette" retrieved from the internet or generated by the second ML model 208B via UI element 516. Although Figure 5UI elements 512 to 516 are depicted, but it should be understood that the UI may support additional functionality, including but not limited to initiating a web-based search for the selected food, or prompting users to provide feedback or reviews related to the restaurants associated with the menu.
[0065] Figure 6 An example user interface (UI) for a data extraction pipeline, presented by system process 205, is illustrated. This data extraction pipeline is configured to generate and display information associated with the recipe depicted in input image 302. Figure 5 As shown, system process 205 displays image 602 of the recipe. The UI includes UI element 604, which indicates to the user that the user can request and / or obtain additional information associated with the recipe. If the user interacts with UI element 604, system process 205 generates recipe-related information and displays that information via UI element 604, such as a brief description of the recipe. If the user interacts with UI element 604, system process 205 can use a second ML model 208B to notify of recipe-related information and use UI element 606 to display that information.
[0066] In one or more embodiments, the UI may also render UI element 608 to process the text information depicted in the input image 602, thereby parsing the ingredients required for the recipe and adding an ingredient list to the reminder application. For example, if a user interacts with UI element 608, the second ML model 208B may extract the recipe from the input image 602 and add the ingredient list to the grocery list of the reminder application. For example, the UI may use UI element 610 to display the ingredient list, which may be stored in the reminder application using UI element 512. The UI may also render UI element 610 to allow the user to request further information about the selected item. For example, the user may enter a question via UI element 610, which is then processed by the second ML model 208B to generate further information related to the recipe.
[0067] As described above, the first ML model 208A is configured to perform preliminary image analysis within a data extraction pipeline. The first ML model processes the input image and identifies one or more elements contained within it. These elements may include textual content (such as menus, receipts, or business cards) and visual objects, including packaged food, unpackaged food, or electronic device displays. The first ML model 208A analyzes the input image based on its visual structure, spatial organization, and contextual features to detect regions of interest that may contain relevant data. After detection, the first ML model 208A classifies the detected elements into one or more predefined categories. These categories may include, but are not limited to, "menu," "receipt," "packaged food," and "unpackaged food." The following references... Figure 7 To describe the first ML model.
[0068] Figure 7 This is an example of a first ML model 208A for a data extraction pipeline implemented by system process 205. In one or more embodiments, the first ML model 208A may include a visual encoder 706 configured to process image 702 to generate corresponding feature maps. The visual encoder 706 is configured to extract and encode visual features of image 704, thereby transforming the raw pixel data of image 704 into a structured representation that captures the spatial and semantic data of image 704. In one or more embodiments, the visual encoder 706 is configured to generate feature maps with different spatial resolutions and channel depths depending on the processing stage within the visual encoder. For example, the visual encoder 706 may produce feature maps with a size of 80×80×128, where the spatial resolution is 80×80 pixels and each spatial location is represented by a 128-dimensional feature vector. At deeper stages in the visual encoder 706, the spatial resolution may gradually decrease while the number of features downloaded increases, resulting in feature maps such as 40×40×256 and 20×20×512.
[0069] In one or more embodiments, the visual encoder 706 includes multiple sequential processing stages, each including one or more convolutional neural network layers. In early stages of processing, the visual encoder 706 extracts low-level features, such as edges, textures, and color gradients, by applying a series of convolutions with a relatively small receptive field (e.g., a 3×3 kernel). The resulting feature map 708 obtained at this stage may exhibit a size of 80×80×128, where the spatial resolution is 80 pixels × 80 pixels, and each spatial location is associated with a 128-dimensional feature vector. In another embodiment, the visual encoder 706 may include intermediate processing stages where the spatial resolution of the feature map is gradually reduced via techniques such as strided convolutions or pooling, while the feature depth increases. For example, an intermediate stage of the visual encoder 706 may output a feature map 710 with a size of 40×40×256, thereby capturing intermediate visual features such as structural patterns. In yet another embodiment, the visual encoder 706 may include additional convolutional blocks or residual connections configured to capture high-level semantic features from image 702. At this stage, the visual encoder 706 can generate a feature map 712 with dimensions such as 20×20×512. These features Figure 1 This is called the first set of eigenvectors.
[0070] In each processing stage, the visual encoder 706 may also include additional components such as batch normalization layers, non-linear activation functions (e.g., ReLU), and skip connections to facilitate efficient learning.
[0071] In one or more specific implementations, the visual encoder 706 may alternatively be implemented using a transformer-based architecture. In such implementations, the image 702 is divided into fixed-size patches, each of which is flattened and projected into the embedding space of a transformer-based architecture, and positional information is encoded to preserve spatial relationships. The embedding is then processed using self-attention layers and feedforward layers to generate feature maps of the image.
[0072] In one or more specific implementations, the system process 205 for implementing the first ML model 208A may include a list (or library) of predefined labels, each label corresponding to a unique element that can be depicted in an image. The labels may represent various object categories or semantic entities that can be recognized by the first ML model 208A. Labels may include, for example, “car,” “human,” “chair,” “tree,” “receipt,” “menu,” “packaged food,” “unpackaged food,” “electronic device display,” etc.
[0073] In one or more embodiments, the first ML model 208A may include a text encoder 716 configured to process tags from a tag library to generate a second set 718 of feature vectors, wherein each feature vector from the second set of feature vectors corresponds to a tag from the tag library. The text encoder 716 may be implemented using a transformer-based architecture, a recurrent neural network (RNN), or other learned embedding models capable of encoding discrete tokens into a high-dimensional continuous vector space. In one or more embodiments, each output vector is a fixed-dimensional real-valued array. For example, the text encoder 716 may encode each tag from a predefined library into a 512-dimensional vector.
[0074] In one or more embodiments, a first ML model 208A is configured to perform a concatenation operation between a first set of features generated by a visual encoder 706 and a second set of feature vectors generated by a text encoder 716 to generate a third set 714 of feature vectors, thereby allowing the first ML model 208A to jointly represent each combination of visual features from the input image with label representations derived from a predefined label library. In one or more embodiments, to perform the concatenation, the first ML model 208A may combine each feature vector from the first set with each feature vector from the second set to produce pairwise concatenated vectors. For example, given a first set of feature vectors with dimensions of 80×80×128, 40×40×256, and 20×20×512, and assuming the predefined label library includes N labels, i.e., the second set of feature vectors includes N vectors, system process 205 may perform pairwise concatenation to generate a third set 714 of feature vectors, which includes (80×80+40×40+20×20)×N=8400×N feature vectors.
[0075] In one or more embodiments, the first ML model 208A may include a visual decoder 720 configured to process each feature vector in a third set 714 of feature vectors to generate a corresponding probability indicating the relevance of an element associated with a given feature vector to an element depicted in an input image. The visual decoder 720 may include one or more transformer layers, one or more fully connected neural network layers, normalization layers, and dropout layers. In some embodiments, the scalar output of the visual decoder 720 may be represented as a probability score, confidence value, or probability of an element indicated by the label of the feature vector corresponding to a visual region associated with the feature vector.
[0076] In one or more specific implementations, system process 205 may be configured to determine, based on the calculated probability values, the element most likely to exist in the input image 702 associated with the feature vectors from the third set 714 of feature vectors. For example, system process 205 may identify the element corresponding to the feature vector assigned the highest probability value as the element most likely to be depicted in image 702.
[0077] In another embodiment, system process 205 may compare the probability value assigned to a feature vector with a predetermined threshold. If the probability value of a given feature vector exceeds the predetermined threshold, system process 205 may determine that an element associated with that feature vector exists in image 702. If the probability values of one or more feature vectors meet or exceed the predetermined threshold, system process 205 may determine that an element associated with each of the one or more feature vectors may exist in image 702, thereby enabling the identification of one or more elements depicted in image 702.
[0078] In one or more specific embodiments, the visual decoder 720 is further configured to generate one or more bounding boxes (e.g., bounding box 722) as output, which spatially encapsulate one or more elements determined to be depicted in the input image 702. Each bounding box defines a region within image 702 determined to contain visual elements associated with labels from a predefined label library. The bounding boxes can be represented using coordinate formats (e.g., x_min, y_min, x_max, y_max) or other specifications suitable for identifying portions of image 702.
[0079] In one or more embodiments, system process 205 is configured to generate a corresponding data structure storing information associated with one or more elements depicted in image 702. The data structure may include, for example, labels for identifying element types, and probability values indicating confidence levels in detection. Additionally, system process 205 may store data identifying bounding boxes (e.g., x_min, y_min, x_max, y_max) generated by visual decoder 720. Electronic device 110 may also label one or more portions of image 702 corresponding to the bounding boxes and store identifiers or metadata associated with the cropped portions. In one or more embodiments, electronic device 110 may crop one or more portions of image 702 and store the cropped portions, which may be referenced by pointers or encoded in a compact format for further processing.
[0080] In one or more embodiments, a first ML model 208A may be trained on a training dataset comprising multiple labeled training images using a supervised learning framework. Each training image may include one or more annotated elements, where each annotation includes a label (e.g., “menu,” “receipt,” “packaged food,” “unpackaged food,” “human,” “animal,” “object,” etc.) and corresponding coordinates of a bounding box defining the spatial region occupied by the labeled element. The training process may involve optimizing the parameters of a visual encoder 706, a text encoder 716, and / or a visual decoder 720 to jointly minimize one or more loss functions. Loss functions may include, but are not limited to, classification loss, localization loss, similarity loss, etc. During training, visual features extracted from the training images by the visual encoder 706 are concatenated with label embeddings generated by the text encoder 716 to generate a third set 714 of feature vectors. The visual decoder 720 may process these vectors to predict the probability of relevance between elements associated with the feature vectors and elements depicted in the training images (and optionally, the coordinates of the bounding boxes encapsulating the elements). The predictions are compared with the baseline ground truth annotations to calculate the total loss, which is then backpropagated to update the training parameters of the visual encoder 706, text encoder 716, and visual decoder 720 using optimization algorithms such as stochastic gradient descent or Adam.
[0081] Figure 8 This is a flowchart illustrating an example process 800 for extracting text data from an input image. For illustrative purposes, this document primarily references... Figure 1 The process 800 is described using electronic devices 110 and server 120. However, the process 800 is not limited to... Figure 1The electronic device 110 and server 120, and one or more blocks (or operations) of process 800 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 800 are described herein as occurring serially or linearly. However, multiple blocks of process 800 may occur in parallel. Furthermore, the blocks of process 800 need not be performed in the order shown, and / or one or more blocks of process 800 need not be performed and / or may be replaced by other operations.
[0082] At box 802, system process 205 receives an input image and processes it using a first ML model 208A to select an information pattern. For example, system process 205 implements a data extraction pipeline to extract text data from an input image 302 captured using a camera of electronic device 110 or obtained from data 206 of electronic device 110. Input image 302 may include images depicting business cards, posters, product packaging, unpackaged food, menus, receipts, shopping lists, to-do lists, readings from health monitoring or testing devices (e.g., weight monitors, blood glucose monitors, etc.), and booking information (e.g., hotels, flights, parking lots, etc.). Upon receiving the input image, the first ML model 208A processes the input image to detect text data depicted within it. The first ML model 208A is configured to process the input image to generate one or more contextual attributes and one or more textual attributes associated with the text content. Contextual attributes may include high-level semantic and positional properties that define the relationship between the text data and surrounding visual or structural components within the input image. These attributes may include, but are not limited to, spatial layout patterns, text grouping, proximity to graphic elements, color or background association, and region-specific density of text. One or more text attributes may include inherent properties of the identified text segment and may include, for example, font style, size, text orientation, language, lexical content, and keywords. In some implementations, the first ML model 208A may also use attention-based mechanisms (e.g., transformer-based models) to capture local and global dependencies between text elements and surrounding visual features, thereby enhancing its ability to generate accurate contextual and textual attributes.
[0083] System process 205 can use one or more contextual attributes and one or more textual attributes generated by the first ML model 208A to select a predefined information pattern for the input image. Each predefined information pattern specifies a structured template that includes one or more data fields associated with a specific type of document or visual content (e.g., business card, product packaging, event poster, health device, etc.). The selection process may involve analyzing the contextual attributes and textual attributes to determine the semantic domain, structural layout, and content type of the textual data present in the input image, and then matching it against the data fields specified by one or more predefined information patterns stored in the electronic device 110. By comparing the contextual attributes and textual attributes with pattern-specific data fields and domain-specific keywords, the first ML model 208A can select the most appropriate pattern in the context.
[0084] At box 804, system process 205 uses a first ML model 208A to determine one or more portions of the descriptive text data of the input image. For example, the first ML model 208A may process the input image 302 to identify one or more portions of the input image containing text data deemed relevant based on one or more contextual attributes and one or more textual attributes. For example, if the image depicts a hotel booking confirmation, the first ML model 208A may prioritize areas containing the date, address, and booking number while ignoring promotional text. For another example, suppose the input image depicts the front and back of packaged food captured by a camera of electronic device 110. The first ML model 208A may analyze the spatial arrangement of text blocks, fonts (e.g., bold brand names), and lexical cues (e.g., ingredients, net weight, calories, etc.) to identify relevant portions of the text data. For example, the first ML model 208A may infer that a bold central phrase (e.g., "organic almond butter") corresponds to the product name, while text data such as advertisements and slogans are discarded. System process 205 may then identify one or more portions of the input image that include relevant portions of the text data.
[0085] In one or more embodiments, after identifying one or more relevant portions of the input image 302, including text data, system process 205 may crop or isolate the corresponding portions of the input image to generate a refined set of visual input. These cropped portions of the input image are then provided as input to a second ML model 208B for structured data extraction, thereby limiting the scope of data extraction performed by the second ML model 208B to the data identified as relevant.
[0086] At box 806, system process 205 uses a second ML model to process one or more portions of the input image to retrieve text data. User activity module 306 is configured to capture and provide metadata associated with user activity as the input image is acquired or processed. For example, user activity module 306 may record the identifier of the application or interface (e.g., a user interface) through which it captures or submits the input image for structured data extraction, such as a contact application, expense management platform, or document scanner, which can serve as an indicator of the intended use case of the application or interface. In some implementations, user activity module 306 may also receive user input specifying a downstream application or service in which the structured output 310 is intended to be used. For example, a user may specify that structured output 310 will be exported to a calendar application or note-taking application. User activity recorded by user activity module 306 may be provided to prompt generator 308 for customized query generation based on the use case of structured output 310.
[0087] The prompt generator 308 is configured to receive information related to user activity and an indication of a predefined information pattern selected by the first ML model 208A as input. The prompt generator 308 can use the input to generate a query tailored for querying the second ML model 208B to extract text data. In one or more embodiments, the query may also include one or more cropped portions of the input image containing relevant portions of text information such as that identified by the first ML model 208A.
[0088] The second ML model 208B is configured to extract text data from one or more cropped portions of an input image based on a query generated by the prompt generator 308 and a selected predefined information pattern. The query provides instructions describing the type of data to be extracted (e.g., name, date, etc.), while one or more cropped portions of the input image provide visual text from which the text data is to be extracted.
[0089] The second ML model 208B can encode one or more cropped portions of the input image using a visual feature extractor (e.g., a convolutional neural network or a visual transformer), which converts one or more cropped portions of the input image 302 into numerical representations. A query is then performed on the second ML model 208B to learn one or more attributes of a selected predefined information pattern and the numerical representations are processed to extract textual data as specified by the selected predefined information pattern.
[0090] In one or more implementations, the second ML model 208B is a transformer-based neural network. In other implementations, the second ML model 208B may include multiple adapters, each of which is a modular subnetwork trained for a specific domain or use case (e.g., business cards, receipts, product packaging, health reports, etc.).
[0091] At box 808, system process 205 uses the retrieved text data to generate a data structure. For example, a second ML model 208B may extract text data in the form of a structured output 310. The structured output 310 may be in the form of a data structure formatted according to a predefined information pattern selected by the first ML model 208A. The data structure organizes the extracted text into specific fields associated with the selected pattern. The structured output 310 is stored on the electronic device 110 in local memory or a persistent storage medium for subsequent access tasks or export of the extracted data. For example, if the input image is an image of a business card, the first ML model 208A may determine an appropriate predefined pattern corresponding to the business card format. The pattern may define fields such as “name,” “title,” “company,” “email,” “phone number,” and optionally “website” and “address.” Based on the selected pattern and the correspondingly generated query, the second ML model 208B analyzes one or more cropped regions of the input image to extract semantically relevant text associated with each field specified by the selected pattern. The structured output 310 generated from the image of the business card can be used by system process 205 to create or update entries within the contacts application on electronic device 110. In one or more specific implementations, the structured output can correspond to any data format that can be used on electronic device 110, such as any application-specific data format.
[0092] For another example, suppose input image 302 is an image of a digital blood pressure monitor display captured using a camera of electronic device 110. The display shows key health metrics, including “systolic heart rate,” “diastolic heart rate,” “pulse,” “units,” and “time stamp.” Upon receiving the input image, a first ML model 208A analyzes the spatial layout, numerical formatting, and visual structure of the input image and selects a predefined information pattern corresponding to the blood pressure reading. The first ML model 208A identifies multiple portions of the input image, including relevant textual information (e.g., numerical values, labels such as “SYS,” “DIA,” “PULSE”), and then filters out irrelevant portions of the device, such as brand names or UI icons. Subsequently, system process 205 can crop the portion of the image containing the detected health metrics. Subsequently, one or more cropped portions of the image and a query generated by prompt generator 308 are provided as input to a second ML model 208B. The second ML model processes the query to extract textual information from one or more cropped portions of the input image to generate a structured output 310 specifying the information displayed by the digital blood pressure monitor. For example, the structured output 310 may include data fields such as “heart contraction”, “heart relaxation”, “pulse”, “unit” and “time stamp”, as well as corresponding values extracted from the input image such as “128”, “82”, “74”, “mmHg”, and “2025-05-12-T08:42:00”.
[0093] At box 810, system process 205 stores data structures. For example, structured output 310 generated from an image of a business card can be used by system process 205 to create or update entries within a contacts application on electronic device 110. As another example, structured output 310 associated with an image displayed on a digital blood pressure monitor can be stored by system process 205 and can be integrated into a personal health monitoring application, sent to a healthcare provider, or synchronized with a medical record system depending on user preferences or configured workflows.
[0094] Figure 9 This is a flowchart illustrating an example process 900 for processing an input image using a first ML model 208A to determine one or more relevant portions of the input image. For illustrative purposes, this document primarily refers to... Figure 1 The process 900 is described using electronic devices 110 and server 120. However, the process 900 is not limited to... Figure 1The electronic device 110 and server 120, and one or more blocks (or operations) of process 900 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 900 are described herein as occurring serially or linearly. However, multiple blocks of process 900 may occur in parallel. Furthermore, the blocks of process 900 need not be performed in the order shown, and / or one or more blocks of process 900 need not be performed and / or may be replaced by other operations.
[0095] At box 902, a first ML model 208A processes the input image to generate a first set of feature vectors. For example, the first ML model 208A may include a visual encoder 706 configured to process image 702 to generate corresponding feature maps. The visual encoder 706 is configured to extract and encode visual features of image 704, thereby transforming the raw pixel data of image 704 into a structured representation that captures the spatial and semantic information of image 704. The visual encoder 706 is configured to generate feature maps with different spatial resolutions and channel depths depending on the processing stages within the visual encoder 706. The visual encoder 706 includes multiple sequential processing stages, each including one or more convolutional neural network layers. In early stages of processing, the visual encoder 706 applies a series of convolutions with relatively small receptive fields (e.g., 3×3 kernels) to extract low-level features such as edges, textures, and color gradients. The resulting feature map 708 obtained at this stage may exhibit a size of 80×80×128, where the spatial resolution is 80 pixels × 80 pixels, and each spatial location is associated with a 128-dimensional feature vector. In another embodiment, the visual encoder 706 may include an intermediate processing stage in which the spatial resolution of the feature map is gradually reduced via techniques such as strided convolution or pooling, while the feature depth is increased. For example, the intermediate stage of the visual encoder 706 may output a feature map 710 with a size of 40×40×256, thereby capturing intermediate visual features such as structural patterns. In yet another embodiment, the visual encoder 706 may include additional convolutional blocks or residual connections configured to capture high-level semantic features from the image 702. At this stage, the visual encoder 706 may generate a feature map 712 with a size such as 20×20×512. These features Figure 1 This is called the first set of eigenvectors.
[0096] At box 904, the first ML model 208A processes input labels corresponding to one or more elements that can be depicted in the input image to generate a second set of feature vectors. For example, system process 205 implementing the first ML model 208A may include a list (or library) of predefined labels, each label corresponding to a unique element that can be depicted in the image. The labels may represent various object categories or semantic entities that can be recognized by the first ML model 208A. Labels may include, for example, “car,” “human,” “chair,” “tree,” “receipt,” “menu,” “packaged food,” “unpackaged food,” “electronic device display,” or generally include labels corresponding to any identifiable object. The first ML model 208A may include a text encoder 716 configured to process labels from a label library to generate a second set 718 of feature vectors, where each feature vector from the second set of feature vectors corresponds to a label from the label library. The text encoder 716 may be implemented using a transformer-based architecture, a recurrent neural network (RNN), or other learned embedding models capable of encoding discrete tokens into a high-dimensional continuous vector space. In one or more specific implementations, each output vector is a fixed-dimensional real-valued array. For example, the text encoder 716 can encode each tag from a predefined library into a 512-dimensional vector.
[0097] At box 906, the first ML model 208A can generate a third set 714 of feature vectors by merging each corresponding feature vector in a first set of feature vectors with each corresponding feature vector in a second set of feature vectors. For example, the first ML model 208A is configured to perform a concatenation operation between the first set of features generated by the visual encoder 706 and the second set of feature vectors generated by the text encoder 716 to generate the third set 714 of feature vectors, thereby allowing the first ML model 208A to jointly represent each combination of visual features from the input image with label representations derived from a predefined label library. To perform the concatenation, the first ML model 208A can combine each feature vector from the first set with each feature vector from the second set to produce pairwise concatenated vectors. For example, given a first set of feature vectors with sizes of 80×80×128, 40×40×256, and 20×20×512, and assuming a predefined label library includes N labels, i.e., a second set of feature vectors includes N vectors, the first ML model 208A can perform pairwise concatenation to generate a third set 714 of feature vectors, which includes (80×80+40×40+20×20)×N=8400×N feature vectors.
[0098] At box 908, the first ML model 208A may use a neural network model to process each corresponding feature vector from the third set 714 of feature vectors to generate a corresponding probability that the corresponding element, corresponding to the corresponding label represented by the corresponding feature vector, is depicted in the input image. For example, the first ML model 208A may include a visual decoder 720 configured to process each feature vector in the third set 714 of feature vectors to generate a corresponding probability indicating the relevance of the element associated with the corresponding feature vector to the element depicted in the input image. The visual decoder 720 may include one or more transformer layers, one or more fully connected neural network layers, normalization layers, and dropout layers. In one or more embodiments, the scalar output of the visual decoder 720 may be represented as a probability score, confidence value, or probability of the element indicated by the label of the feature vector corresponding to the visual region associated with the feature vector.
[0099] At box 910, system process 205 can determine that the corresponding element, associated with the corresponding label represented by the corresponding feature vector, is depicted in the input image. For example, system process 205 can determine, based on the calculated probability value, that the element associated with the feature vector from the third set 714 of feature vectors is most likely to exist in the input image 702. For example, system process 205 can identify the element corresponding to the feature vector assigned the highest probability value as the most likely element depicted in image 702.
[0100] In another embodiment, system process 205 may compare the probability value assigned to a feature vector with a predetermined threshold. If the probability value of a given feature vector exceeds the predetermined threshold, system process 205 may determine that an element associated with that feature vector exists in image 702. If the probability values of one or more feature vectors meet or exceed the predetermined threshold, system process 205 may determine that an element associated with each of the one or more feature vectors exists in image 702, thereby enabling the identification of multiple elements depicted in image 702.
[0101] At box 912, system process 205 stores a data structure representing the association between a corresponding label and the input image. For example, system process 205 may be configured to generate a corresponding data structure storing information associated with one or more elements detected in image 702. The data structure may include, for example, labels for identifying element types and / or probability values indicating confidence in the detection. Additionally, system process 205 may store data identifying bounding boxes (e.g., x_min, y_min, x_max, y_max) generated by the visual decoder 720. System process 205 may also label one or more portions of image 702 corresponding to the bounding boxes and store identifiers or metadata associated with the labeled portions. In one or more embodiments, system process 205 may crop one or more portions of image 702 and store the cropped portions, referencing each cropped portion by pointers, or encode the cropped portions into a compact format for further processing.
[0102] Figure 10 This is a flowchart illustrating an example process 1000 for detecting elements in an input image and inferring information associated with the detected elements. For illustrative purposes, this document primarily refers to... Figure 1 The process 1000 is described using electronic devices 110 and server 120. However, the process 1000 is not limited to... Figure 1 The electronic device 110 and server 120 are used, and one or more blocks (or operations) of process 1000 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 1000 are described herein as occurring serially or linearly. However, multiple blocks of process 1000 may occur in parallel. Furthermore, the blocks of process 1000 need not be performed in the order shown, and / or one or more blocks of process 1000 need not be performed and / or may be replaced by other operations.
[0103] At box 1002, system process 205 may use a first ML model 208A to process the input image to determine the elements depicted in the input image and their classification. These elements may include text content (e.g., a portion of a menu or receipt) and visual objects (e.g., packaged or unpackaged food). The first ML model 208A may analyze the structure, layout, and visual features of the input image to identify portions of the image that depict meaningful content. For example, the first ML model 208A may detect that a specific portion of the input image contains text and, in response, classify it as “menu.” For another example, the first ML model 208A may determine that the input image depicts an item such as an apple or a salad. In response, the first ML model 208A may classify the element as “unpackaged food.” For yet another example, the first ML model 208A may determine that the input image depicts an item such as a bag of potato chips and, in response, classify the element as “packaged food.”
[0104] When the first ML model 208A determines that an element depicted in the input image 302 corresponds to text content, the system process 205 can be configured to generate and display a user interface (UI) that allows the user to interact with the identified text element. Specifically, the UI can be configured to enable the user to select a portion of the text content for which they intend to receive additional information or initiate a data extraction process. For example, if the first ML model 208A categorizes the element depicted in the input image as a “menu,” the system process 205 can render an interactive UI that displays the input image and allows the user to interact with it, such as by tapping or touching the display of the electronic device 110. The user can use the UI to select a specific food item listed in the menu. For another example, if the input image 302 depicts a bowl of fruit, the first ML model 208A can detect an element depicted in the input image 302 and categorize it as “unpackaged food.”
[0105] At box 1004, system process 205 may generate a query for a large language model (LLM) based in part on the classification of elements. For example, prompt generator 308 may use the input to generate a query tailored to query the large language model (e.g., a second ML model 208B) to infer information associated with selected items from input image 302. In one or more embodiments, the query may also include one or more cropped portions of the input image, which may include additional text (e.g., text describing food items in a menu) or images depicted in the input image 302. One or more portions of the input image may be embedded in or referenced by the query to guide the extraction process. In other embodiments, one or more portions of the input image 302 may be provided directly to the second ML model 208B, either instead of or along with the generated query for extracting textual information.
[0106] At box 1006, system process 205 may use a large language model to process queries to infer information associated with elements and the input image. For example, a second ML model 208B may process queries to retrieve or generate information associated with a selected item from the input image 302. Upon receiving a query, the second ML model 208B may combine a trained knowledge base, external data sources, or a pre-trained language model to process the query to infer or retrieve detailed information associated with the selected item. For example, if the selected item is a food item (e.g., “Lafayette”) from an image of a restaurant menu, the second ML model 208B may return a structured output 310 describing the food item “Lafayette”. The description may also include the nutritional content, typical ingredients, allergen data, recipe, common dietary categories (e.g., gluten-free, low-calorie), and preparation method of the food item “Lafayette”.
[0107] At box 1008, system process 205 can display the inferred information. For example, structured output 310 can be presented to the user or integrated into downstream applications (such as health tracking or diet planning applications) via system process 205. (See reference) Figure 5 If the user interacts with UI element 508, system process 205 generates information related to the selected food and displays that information via UI element 510, such as a brief description of the selected food "Lafayette". The UI may also include UI element 512, which allows the user to save the generated information to a note-taking application.
[0108] Additionally, the UI can present UI element 514 to allow users to request further information about the selected item. For example, a user can enter a question via UI element 514, which is then processed by the second ML model 208B to generate further information related to the selected food item "Lafayette". Furthermore, the UI can display an image of the selected food item "Lafayette" retrieved from the Internet or generated by the second ML model 208B via UI element 516.
[0109] Figure 11 An example data extraction pipeline for generating motion mapping information associated with elements depicted in an image, implemented by system process 205, is illustrated. In one or more specific embodiments, input image 302 may be captured, received, or otherwise provided to electronic device 110. Input image 302 may contain visual content, including objects, text, or combinations thereof, such as... Figure 4As shown. The first ML model 208A processes the input image 302 to detect and classify elements, including text portions and visual objects. The classification results from the first ML model 208A can help generate the visual bundle 1120 and subsequent downstream processing. The OCR extractor 304 can further process the input image 302 to detect and extract text content. The extracted text, along with the visual features derived from the input image 302, can then be provided as input to the second ML model 208B.
[0110] The execution of the first ML model 208A can trigger the creation of a predefined or dynamically generated set of actions. These actions can be associated with the input image 302 and displayed through the user interface of the electronic device 110. Example actions may include initiating a search (e.g., “Find this book”), navigating via hyperlinks, adding content to a reading list (e.g., “Add to reading list”), or invoking a third-party image search provider 1130. Action generation can occur automatically based on visual and textual content identified within the image, allowing for contextual interaction with the content. Specifically, the first ML model 208A can output structured feature data representing the contextual relationships between detected visual entities, identified text segments, and detected elements. The feature data can be passed through a classification layer of the first ML model 208A, which is configured to associate certain detected entities with predefined action categories. For example, the detection of a text region classified as a book title can be mapped to a “Find” or “Add to reading list” action, while the detection of an object classified as a product can be mapped to a “Visual search” or “Purchase” action. Based on a relevance score calculated from at least one of visual similarity, text confidence level, or historical action selection statistics, additional filtering or ranking can be applied to promote the retention of the most context-relevant actions. For example, referencing Figure 12 Content 1206 is provided for display on electronic device 110, and a set of actions (e.g., summary action 1208, visual search action 1210, "find" action 1212, "add to" action 1214, and add hyperlink navigation action 1216) are displayed through the user interface of electronic device 110. Each generated action may correspond to a specific intent that can be performed by electronic device 110 or routed to third-party image search provider 1130. Actions may include, but are not limited to, visual search, summarization, and data extraction. The generated actions may be ranked and presented to the user as optional elements within the interactive user interface, where the user selects to initiate a prompt action 1154, which may drive further processing by the second ML model 208B or the third-party image search provider 1130.
[0111] The visual bundle 1120 generated by the first ML model 208A may include data from the baseline model 1121, the visual lookup component 1122, and the pattern 1124. The pattern 1124 may include structured metadata, such as embeddings, for ranking available actions. The baseline model 1121 may output object- or entity-specific data (e.g., product identifiers, content categories), which may be used in downstream processing by components such as the cue action engine 1150, the save-for-later module 1140, or a third-party image search provider 1130. Action types may include application intents 1126, built-in functions 1128, and other system-level operations. Some application intents may be mapped to existing application intents to maintain compatibility with installed applications. For example, application intent 1126 (e.g., "Add to Reminders") may invoke structured data ingestion from built-in reminders or third-party applications.
[0112] In one or more embodiments, the semantic mapping module 1148 may associate baseline labels derived from the visual lookup component 1122 with higher-level categories within content category 1136, which may then be aligned with the ranking data structure 1138. In one or more embodiments, a hierarchical mapping process may be used to determine the content and / or application category 1136 associated with the visual input. The process may begin with a baseline label, which is mapped to a content category, and then to one or more application categories 1136. The baseline labels may be generated by the visual lookup component 1122 by analyzing object detection output, text recognition results, and associated feature embeddings extracted from the input image 302. Specifically, the detected objects and recognized text segments may be classified into semantic classes using a first ML model 208A, and the resulting class identifiers may form the baseline labels. For example, if the visual lookup component 1122 identifies a rectangular object with text corresponding to an ISBN or name, the generated baseline label may be “book”. Return values may be associated with each mapping to indicate the internal confidence level in the assignment. Higher confidence values can correspond to increased ranking weights, while lower confidence values can correspond to categories with weaker relevance or inconsistent classifications within pattern 1124. For example, a baseline label such as "book" can be directly mapped to the application category 1136 labeled "book" with high confidence, while other baseline labels can be mapped to multiple categories with reduced confidence. Therefore, confidence weighting can be incorporated into the genre relevance measure 1133 of the ranking data structure 1138. This hierarchical mapping process can beneficially prevent mismatched recommendations, such as recommending irrelevant content category 1136 when the input image 302 represents a consumer product.
[0113] The ranking data structure 1138 encodes hierarchical relationships between benchmark tags, content categories, and application categories, with lower levels adaptively refined based on behavioral data stored in the vector database 1114. Some parts of the ranking data structure 1138 can be pre-configured, while others can be dynamically determined based on applications available on the electronic device 110. The lower levels of the ranking data structure 1138 can be adaptively derived from historical user behavior stored in the vector database 1114, including usage frequency, interaction recency, and selection rate patterns. The ranking data structure 1138 is generated by clustering benchmark tags and associated user actions into hierarchical nodes, where relationships between nodes are encoded as weighted connections reflecting contextual relevance and engagement probability. Weights can be adjusted over time based on behavioral data stored in the vector database 1114, allowing the ranking data structure 1138 to evolve with user interaction patterns. Therefore, items exhibiting higher relevance scores or shorter embedding distances to a given benchmark tag can rank above other items. Action ranking can be based on action richness metric 1132, genre relevance metric 1133, engagement metric 1134, and embedding distance metric 1135. The embedding distance metric enables intra-class differentiation of items that share a baseline label but are semantically different.
[0114] User-specific behavioral patterns can influence action prioritization. Data such as selection frequency, interaction probabilities, and engagement rates regarding previous actions can be captured and stored in a vector database 1114. This behavioral data can be applied by a first ML model 208A to rank context-relevant actions and determine which image search provider 1130 to invoke. Provider selection can be informed by historical usage, where engagement frequency and content-specific associations determine prioritization across image search providers. For example, reusing a first provider for footwear-related content might bias subsequent footwear searches towards that provider, while a second provider might be prioritized for furniture-related content. For example, referencing... Figure 13 The user interface of electronic device 110 includes search results 1302 provided by a first provider in third-party image search provider 1130. Search results 1302 may include image 1304 containing footwear-related content associated with a second provider in third-party image search provider 1130, causing subsequent searches for footwear-related content to favor the second provider. In subsequent footwear searches associated with the second provider, the interactive user interface of electronic device 110 displays image 1306 containing footwear-related content associated with image 1304. The interactive user interface for subsequent searches may display a set of actions (e.g., summary action 1208, visual search action 1210, and add hyperlink navigation action 1216) to initiate actions that can drive further processing by second ML model 208B or third-party image search provider 1130.
[0115] Behavioral distributions can be represented in a vector database 1114 using a histogram-based or embedding-based structure, supporting embedding distance measures (e.g., embedding distance measure 1135), genre relevance scores (e.g., genre relevance measure 1133), engagement (e.g., engagement measure 1134), and action richness measures (e.g., action richness measure 1132) to guide ranking decisions. Each measure generates a normalized score computed from a weighted feature vector, where individual features correspond to user interaction frequency, semantic similarity, and contextual relevance derived from previous embeddings. A composite ranking score can be obtained by weighted summing of these normalized values, resulting in an overall ranking index for ranking actions. Higher-ranked actions provide more specific or context-friendly results, such as "add to calendar," compared to more general results (e.g., "summarize"). The application of action richness measure 1132 assigns greater relative weight to actions that provide more specific or beneficial results.
[0116] In addition to label-based classification, system process 205 can also operate within an embedding space maintained by vector database 1114. In this embedding space, semantic proximity between object features is calculated, allowing differentiation between input images 302 that share the same baseline label but represent different semantic contexts. For example, the baseline label "bottle" could correspond to a bottle of ketchup or a bottle of whiskey. Embedding space similarity metrics, combined with historical user behavior stored in vector database 1114, can determine whether a third-party image search provider 1130 is prioritized for whiskey-related searches, while a separate provider is recommended for food-related searches.
[0117] In one or more specific implementations, a baseline label such as "bottle" can be assigned to different objects, including ketchup bottles and wine bottles. In a ranking scenario where historical user behavior is evenly distributed between a first application associated with wine-related content and a second application associated with general retail content, the embedding space stored in vector database 1114 can be analyzed to determine whether the object embedding is closer to the cluster associated with wine-related content category 1136 or the cluster associated with general retail content category 1136. The objects can then be ranked accordingly within ranking data structure 1138. This method can provide differentiation even where the baseline label lacks sufficient granularity, enabling more accurate classification without requiring a large-scale expansion of pattern 1124. The methodology can also support incremental expansion of pattern 1124 by identifying areas where finer-grained classification might be beneficial, such as subdividing food-related products into item-specific distinctions.
[0118] Distinguishing between items within the same baseline label can be achieved using an embedding distance metric. For example, the label "bottle" can correspond to different subtypes, such as shampoo bottles, whiskey bottles, or ketchup bottles. Combining embedding similarity with historical user interaction data can determine which provider or content category is prioritized. When multiple items share the same baseline label but differ in semantic or contextual meaning, the embedding distance metric can operate as an intra-class tie-breaking mechanism. For example, shampoo bottles, whiskey bottles, and ketchup bottles can all be assigned the same baseline label, such as "packaged product." Although these objects fall into the same high-level category, their visual characteristics and usage contexts differ. The embedding space can be evaluated to determine the semantic proximity between these objects, allowing the first ML model 208A to distinguish them by referencing historical interaction behavior stored in the vector database 1114. The measurement process may include identifying close entries within the embedding space and evaluating cosine similarity distance. When the similarity value falls within a predefined threshold, the proximity relationship can be incorporated as a tie-breaking input into the ranking data structure 1138 executed by the first ML model 208A.
[0119] This differentiation process can also be extended to other categories where multiple visually distinct objects share the same baseline label. For example, within the packaged product category, cereal boxes can be distinguished from other packaged items by comparing their embedding representations and evaluating historical engagement using engagement metric 1134. When user behavior consistently associates an object's subtype with a specific application, the application whose embedding is closest to the queried object can be prioritized within the ranking data structure 1138.
[0120] The prompting action engine 1150 can generate default or user-specific prompts based on baseline tags, embeddings, or historical queries. Prompts can be displayed through a selectable prompting action interface 1152 and can include multiple queries inferred from content type. For example, an input image of a building can generate prompts such as "identify the architect," "determine the year of construction," or "categorize building styles." Integration with the prompting action engine 1150 enables the automatic generation of configurable default or user-specific prompts. These prompts can combine baseline tags, embeddings, and semantic mapping outputs to provide a ranked set of context-relevant actions. In one or more embodiments, the prompting action engine 1150 can retain user-specific queries for reuse. For example, if a user repeatedly queries "How old is this building?" in conjunction with an image of the building structure, the prompting action engine 1150 can store the query and automatically apply it to future instances of similar images. In one or more embodiments, the prompting action engine 1150 can infer new prompts from historical interaction data, thereby generating context-aware prompts without explicit user input. The stored prompts can support persistent personalization and context-aware interaction.
[0121] When ranked action suggestions are generated, system process 205 may present multiple potential actions or third-party image search providers 1130. One presentation mode may involve a horizontally scrollable interface using an selectable action suggestion interface 1152, where ranked actions are boosted based on ranking signals. In one or more implementations, ranking signals may include primary and / or secondary benchmark tags, action richness, frequency, relevance, frequency (global), relevance (global), engagement including negative feedback, embedding distance, application popularity, etc. Another presentation mode may be accessible via image search functionality, where available third-party image search providers 1130 are presented in ranked order based on historical usage frequency, relevance of interaction, content type, embedding-based similarity stored in vector database 1114, and genre relevance. For example, when a third-party image search provider 1130 has been consistently selected for searches involving clothing objects, that provider may rank higher than providers that have not been previously used for similar content. The ranking process can facilitate the presentation of the most context-relevant actions for the identified content type, thereby enabling subsequent actions, including purchases, bookmarks, or structured output generation for downstream applications.
[0122] In one or more implementations, the semantic mapping module 1148 may be incorporated to expand semantic interpretation capabilities as the number of available action instances increases. Direct semantic interpretation of scene content can be performed, rather than relying solely on behavioral analysis or traversal of the ranking data structure 1138. This process may involve embedding space similarity computation within the vector database 1114 to associate object-level features of the input image 302 with the most relevant application intent 1126 or built-in function 1128. For example, an image of a milk container can be directly mapped to the application intent 1126 corresponding to "add to grocery list," while an image of a wine bottle can be semantically linked to an application associated with a beverage provider, regardless of the intermediate mode 1124 traversal. This semantic mapping can be achieved by extracting object-level features and computing vector similarity to the stored embeddings of the application intent 1126.
[0123] The structured output 310 can be passed to downstream modules for efficient image data processing in computer vision pixel buffer format 1146, stored in vector database 1114, or routed to target application 1142. In one or more embodiments, an optimized data transmission mechanism can be used to perform the transmission of input image 302 to third-party image search provider 1130. The transmission process may involve both ranking logic and low-level processing of image transmission to facilitate efficient delivery of image data. In some embodiments, transmission can be optimized for the operating characteristics of mobile phone platforms, which can provide beneficial mitigation of memory degradation during data transmission and reduce lossy transformations that may otherwise degrade the accuracy of downstream processing. In one or more other embodiments, input image 302 can be maintained during transmission in an uncompressed and memory-efficient format such as computer vision pixel buffer format 1146. This can mitigate the imposition of predetermined compression or encoding schemes, such as JPEG or TIFF, on the receiving application. By avoiding constraints on a specific format, system process 205 allows the receiving system to use its local processing pipeline to perform a conversion to a preferred format, thereby maintaining image fidelity for provisioning side processing.
[0124] Similarly, performance-optimized delivery methods can be used to retrieve returned data from third-party image search provider 1130 to reduce end-to-end latency. In one implementation, system process 205 may utilize computer vision pixel buffer format 1146 to structure the sent or returned data. Structured data formatted in this way can be integrated into an application-level intent processing framework that may include compatibility with image capture pipelines, intent invocation layers, and provider-specific ingestion endpoints.
[0125] A visual search intent directed to a third-party image search provider 1130 may involve sending both computer vision pixel buffer format 1146 data and contextual metadata. The contextual metadata may include baseline labels or text representations generated by a first ML model 208A or a second ML model 208B. In one or more embodiments, the data sent may be limited to baseline labels and the corresponding input image 302. In one or more other embodiments, the data sent may include structured and semantically rich information. Providing additional structured information enables the third-party image search provider 1130 to return results with greater contextual completeness and improved relevance.
[0126] The Save for Later module 1140 can capture identified objects for subsequent use in target application 1142, such as reminders, shopping lists, or collection management. In one or more embodiments, integrating visual search into the Save for Later module 1140 can provide beneficial automation and increased contextual relevance to the stored content, particularly in applications utilizing structured product or project data. In one or more embodiments, content can be saved in different formats, including precise text representations, structured output 310, or captured visual data, such as screenshots. The Save for Later module 1140 can determine which representation to save based on contextual factors, application requirements, or user preferences. In one or more embodiments, the saved content can be routed to target application 1142, such as a list-making application, reminder, or collection management system. For example, a screenshot may include a recipe, processed food dish, or packaged product, and can then be associated with a specified application via an "Add to" action. The "Add to" action can direct the captured content to one or more target applications 1142, including shopping lists, reading lists, or reminder applications. In one or more specific implementations, integration with visual search functionality allows structured entities stored in the save-for-later module 1140 to support downstream actions, such as purchasing, categorizing, or retrieving across multiple application contexts.
[0127] In one or more specific implementations, overly generic labels can be excluded, where the second ML model 208B is used to infer and refine the baseline output into context-precise text strings. The text encoder 716 can generate text representations for storage, and the structured entity data retrieved from provider 1130 can support downstream tasks such as automating shopping list creation or purchase initiation. The stored content may include text, structured output, or visual data such as screenshots that are appropriately routed to the target application 1142.
[0128] In one or more specific implementations, functionality may be provided by the save-for-later module 1140 to capture identified objects for later use, such as adding entries to a reminder list, shopping list, or other note-taking system. For example, if the baseline process generates the generic label "fruit" for an object corresponding to a banana, saving the term "fruit" to a grocery list may provide less utility than saving the term "banana". In this case, the first ML model 208A may combine the baseline output with inference from the second machine learning model 208B to generate a more accurate and context-sensitive string representation.
[0129] When the returned baseline labels are too broad, the Save for Later Module 1140 can exclude them. For example, in the case where the baseline label "Nutrition" is returned for bananas, the label "Nutrition" can be excluded from the grocery list because it is too general to be used in the shopping context. Similarly, if the baseline process generates the label "Tortoise" for an image of a human subject, the resulting term may not provide meaningful context for note-taking or list-keeping systems. In one or more embodiments, the Action Richness Measure 1132 can influence the determination of whether to save a baseline label in the Save for Later Module 1140. For example, if the baseline label is highly general, the Action Richness Measure 1132 can assign a lower ranking to the action that saves it, resulting in the exclusion of that label.
[0130] In one or more implementations, when the intended storage target corresponds to an application that requires structured entities rather than text strings, the Save for Later Module 1140 can populate the structured output 310. For example, when storing a book in a reading list, system process 205 can initiate a search query via a third-party image search provider 1130 or other data source. The returned results provide structured search entries corresponding to the captured objects. The structured output 310 can then be linked to built-in functionality of the target application 1142. Once linked, the structured output 310 can support downstream actions, including initiating a purchase, adding an entity to a shopping list, or associating an entity with a user-specific set.
[0131] Figure 14 A flowchart illustrating an example process 1400 for detecting elements in an image and mapping actions to the detected elements is provided. For illustrative purposes, this document primarily references... Figure 1 The process 1400 is described using electronic devices 110 and server 120. However, the process 1400 is not limited to... Figure 1 The electronic device 110 and server 120, and one or more blocks (or operations) of process 1400 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 1400 are described herein as occurring serially or linearly. However, multiple blocks of process 1400 may occur in parallel. Furthermore, the blocks of process 1400 need not be performed in the order shown, and / or one or more blocks of process 1400 need not be performed and / or may be replaced by other operations.
[0132] At box 1402, system process 205 ( Figure 2 ) can be used in electronic devices (e.g., Figure 1 The electronic device 110 receives an input image (e.g., containing visual content) at its location. Figure 11 The input image 302). At box 1404, system process 205 can use a first machine learning model (e.g., Figure 11The first ML model 208A is used to process the input image 302 to detect one or more elements within the visual content. In one or more embodiments, the first ML model 208A includes an object detector configured to identify text portions, objects, or both within the input image 302. In one or more other embodiments, the system process 205 may use a second machine learning model (e.g., Figure 11 The second ML model (208B) is used to refine the baseline output to generate context-accurate text representations for downstream applications.
[0133] At box 1406, system process 205 may generate a set of candidate actions associated with the input image based on one or more detected elements. In one or more embodiments, the set of candidate actions may include at least one of visual search actions, summary actions, "add to" actions, or hyperlink navigation actions. In one or more other embodiments, a cueing action engine (e.g., Figure 11 The prompt action engine 1150 is configured to infer new prompts based on historical user queries to generate a set of candidate actions. In one or more implementations, at least one of the ranked candidate actions may include storing the identified object in a save-for-later module associated with at least one of the candidate actions (e.g., ...). Figure 11 The data is saved in module 1140 for later use.
[0134] At box 1408, system process 205 may use a ranking data structure that includes one or more ranking signals (e.g., Figure 11 The ranking data structure (1138) ranks candidate actions. In one or more implementations, one or more ranking signals include action richness metrics (e.g., Figure 11 Action richness measure 1132), benchmark label relevance measure (e.g., Figure 11 The relevance of the genre to the content (1133), and the participation measure (e.g., Figure 11 Engagement metrics (1134) or embedded similarity metrics (e.g., Figure 11 The embedding distance metric 1135). In one or more other specific implementations, the ranking data structure 1138 may be stored in a vector database (e.g., Figure 11 The system process 205 may use historical user interaction data in a vector database 1114, including selection frequency, interaction recentity, or engagement rate. In one or more embodiments, ranking candidate actions may include applying an embedding distance metric 1135 to distinguish objects with the same baseline label but different semantic contexts. In one or more other embodiments, the system process 205 may exclude baseline labels determined to be overly generic, at least in part, based on one or more ranking signals.
[0135] At box 1410, system process 205 may provide a display of at least a subset of ranked candidate actions for user selection via the user interface of electronic device 110. In one or more embodiments, the display of ranked candidate actions may include the presentation of a horizontally scrollable action-guided interface. In one or more other embodiments, system process 205 may include structured output (e.g., Figure 11 The content stored in the structured output 310 is routed to one or more target applications associated with the electronic device 110 (e.g., Figure 11 Target application 1142).
[0136] Figure 15 A flowchart illustrating an example process 1500 for detecting elements in an image and mapping actions to the detected elements is provided. For illustrative purposes, this document primarily references... Figure 1 The process 1500 is described using electronic devices 110 and server 120. However, the process 1500 is not limited to... Figure 1 The electronic device 110 and server 120, and one or more blocks (or operations) of process 1500 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 1500 are described herein as occurring serially or linearly. However, multiple blocks of process 1500 may occur in parallel. Furthermore, the blocks of process 1500 need not be performed in the order shown, and / or one or more blocks of process 1500 need not be performed and / or may be replaced by other operations.
[0137] At box 1502, system process 205 ( Figure 2 It can receive input images that include visual content (e.g., Figure 11 The input image 302). At box 1504, system process 205 may apply a first machine learning model (e.g., Figure 11 The first ML model 208A is used to detect one or more elements in the input image 302.
[0138] At box 1506, system process 205 may generate a visual bundle that includes features of the input image 302 (e.g., Figure 11 The visual bundle 1120, which includes text content or visual features, may include a baseline model (e.g., ...). Figure 11 The baseline model 1121), visual search components (e.g., Figure 11 The visual lookup component 1122) or an embedding generated by both. In one or more specific implementations, system process 205 may store the semantic mapping module (e.g., semantic mapping module 1148) in memory (e.g., Figure 2The memory 204) is used to perform semantic mapping module 1148 to map the baseline tag to one or more content categories or application categories using a hierarchical mapping with confidence weighting.
[0139] At box 1508, system process 205 can use a second machine learning model (e.g., Figure 11 The second ML model 208B is applied to the visual bundle 1120 to refine the detected elements into context-sensitive output. The context-sensitive output may correspond to refined visual or textual data aligned with semantic meaning and intended use within the surrounding content. The output may include normalized entity labels or text strings suitable for downstream action generation and ranking. In one or more embodiments, the second ML model 208B may refine the baseline output into context-accurate text strings for downstream processing.
[0140] At box 1510, system process 205 may generate a set of actions based on context-dependent output. At box 1512, system process 205 may at least partially base its actions on data stored in a vector database (e.g., Figure 11 Behavioral data in the vector database 1114) and one or more embedding distance metrics (e.g., Figure 11 The embedding distance metric (1135) is used to rank the action set. In one or more specific implementations, the ranking of the action set may be further based on an action richness metric (e.g., Figure 11 The action richness metric (1132) assigns greater relative weight to actions that provide specific or context-advantageous results.
[0141] At box 1514, system process 205 may provide a ranked list of actions for display in a user interface of the system (e.g., electronic device 110). In one or more embodiments, the ranked list of actions may include application intents (e.g., application intent 1126) mapped to built-in functionality of an installed application on electronic device 110. In one or more other embodiments, the user interface may be configured to display the ranked actions in an interactive list and receive user input to select one of the actions for execution. In one or more embodiments, the execution of one of the actions may include system process 205 transmitting an input image 302 and contextual metadata to a third-party image search provider (e.g., Figure 11 (1130, a third-party image search provider).
[0142] Figure 16 A flowchart illustrating an example process 1600 for detecting elements in an image and mapping actions to the detected elements is provided. For illustrative purposes, this document primarily references... Figure 1The process 1600 is described using electronic devices 110 and server 120. However, the process 1600 is not limited to... Figure 1 The electronic device 110 and server 120, and one or more blocks (or operations) of process 1600 may be performed by one or more other suitable devices. Further, for illustrative purposes, the blocks of process 1600 are described herein as occurring serially or linearly. However, multiple blocks of process 1600 may occur in parallel. Furthermore, the blocks of process 1600 need not be performed in the order shown, and / or one or more blocks of process 1600 need not be performed and / or may be replaced by other operations.
[0143] At box 1602, system process 205 can process the input image (e.g., Figure 11 The input image 302 is used to generate reference labels corresponding to the objects detected in the input image 302. At box 1604, system process 205 can use a semantic mapping module (e.g., ...) to generate reference labels corresponding to the objects detected in the input image 302. Figure 11 The semantic mapping module 1148 maps the base tag to one or more content categories or application categories (e.g., Figure 11 Content and application categories 1136). In one or more embodiments, the mapping from baseline tags to one or more content categories or application categories may include a hierarchical mapping from baseline tags to content categories and subsequently to application categories, wherein confidence weights are applied at each mapping level. At box 1606, system process 205 may use data stored in a vector database (e.g., Figure 11 The historical user behavior data in the vector database (1114) is used to refine the mapped baseline labels.
[0144] At box 1608, system process 205 may generate one or more prompts associated with the mapped baseline label, wherein the one or more prompts may correspond to candidate actions that can be performed by system process 205. In one or more other embodiments, the candidate actions may be provided by one or more third-party image search providers (e.g., Figure 11 The third-party image search provider 1130) performs the operation. In one or more implementations, one or more prompts may include default prompts, user-specific prompts, or inferred prompts based on the embedding and semantic interpretation of the input image 302. At box 1610, system process 205 may use confidence-weighted and embedding similarity calculations (e.g., Figure 11 The embedding distance metric (1135) is used to rank candidate actions.
[0145] At box 1612, system process 205 may initiate the execution of a selected candidate action in response to user interaction with one or more prompts. In one or more embodiments, the execution of the selected candidate action may include transmitting the input image 302 and contextual metadata to a third-party image search provider (e.g., Figure 11 (a third-party image search provider 1130). In one or more other embodiments, the execution of the selected candidate action may include storing the identified object to a target application on the electronic device 110 (e.g., Figure 11 The target application 1142) is associated with a save-for-later module (e.g., save-for-later module 1140).
[0146] Figure 17 An electronic system 1700 is illustrated, which can be used to implement one or more specific embodiments of the subject matter. The electronic system 1700 can be... Figure 1 The server 120 and / or electronic device 110 shown may be part of it. The electronic system 1700 may include various types of computer-readable media and interfaces for various other types of computer-readable media. The electronic system 1700 includes a bus 1708, one or more processing units 1712, system memory 1704 (and / or buffers), ROM 1710, persistent storage device 1702, input device interface 1714, output device interface 1706, and one or more network interfaces 1716, or subsets and variations thereof.
[0147] Bus 1708 generally represents all system buses, peripheral buses, and chipset buses that communicatively connect multiple internal devices of electronic system 1700. In one or more embodiments, bus 1708 communicatively connects one or more processing units 1712 to ROM 1710, system memory 1704, and persistent storage device 1702. One or more processing units 1712 retrieve instructions to be executed and data to be processed from these various memory units in order to perform the processes disclosed in this subject matter. In different embodiments, one or more processing units 1712 may be a single processor or a multi-core processor.
[0148] ROM 1710 stores static data and instructions required by one or more processing units 1712 and other modules of electronic system 1700. On the other hand, persistent storage device 1702 can be a read-write memory device. Persistent storage device 1702 can be a non-volatile memory cell that stores instructions and data even when electronic system 1700 is powered off. In one or more embodiments, mass storage devices (such as magnetic disks or optical disks and their corresponding disk drives) can be used as persistent storage device 1702.
[0149] In one or more embodiments, a removable storage device (such as a floppy disk, flash drive, and its corresponding disk drive) may be used as persistent storage device 1702. Like persistent storage device 1702, system memory 1704 may be a read-write memory device. However, unlike persistent storage device 1702, system memory 1704 may be volatile read-write memory, such as random access memory. System memory 1704 may store any instructions and data that one or more processing units 1712 may need during operation. In one or more embodiments, the processes disclosed in this subject matter are stored in system memory 1704, persistent storage device 1702, and / or ROM 1710. One or more processing units 1712 retrieve instructions to be executed and data to be processed from these various memory units to execute the processes of one or more embodiments.
[0150] Bus 1708 is also connected to input device interface 1714 and output device interface 1706. Input device interface 1714 enables a user to communicate information to electronic system 1700 and select commands. Input devices that can be used with input device interface 1714 may include, for example, an alphanumeric keypad and pointing devices (also known as "cursor control devices"). Output device interface 1706 may, for example, enable the display of images generated by electronic system 1700. Output devices that can be used with output device interface 1706 may include, for example, printers and display devices such as liquid crystal displays (LCDs), light-emitting diode (LED) displays, organic light-emitting diode (OLED) displays, flexible displays, flat panel displays, solid-state displays, projectors, or any other device for outputting information. One or more embodiments may include a device that functions as both an input device and an output device, such as a touchscreen. In these embodiments, the feedback provided to the user can be any form of sensory feedback, such as visual feedback, auditory feedback, or tactile feedback; and input from the user can be received in any form, including acoustic, voice, or tactile input.
[0151] Finally, as Figure 17 As shown, bus 1708 also couples electronic system 1700 to one or more networks and / or to one or more network nodes via one or more network interfaces 1716, such as Figure 1 The illustrated electronic device 110 or server 120. In this way, the electronic system 1700 may be part of a computer network (such as a LAN, wide area network (“WAN”), or intranet), or may be part of one of several networks (such as the Internet). Any or all components of the electronic system 1700 may be used in conjunction with the information disclosed in this subject matter.
[0152] Specific embodiments within the scope of this disclosure may be implemented, in whole or in part, as a computer program product including code in a tangible computer-readable storage medium (or one or more tangible computer-readable storage media of one or more types), wherein the tangible computer-readable storage medium encodes one or more instructions of the code. The tangible computer-readable storage medium may also be substantially non-transitory.
[0153] Computer-readable storage media can be any storage medium that can be read, written, or otherwise accessed by general-purpose or special-purpose computing devices, including any processing electronics and / or processing circuitry capable of executing instructions. For example, without limitation, computer-readable media can include any volatile semiconductor memory, such as RAM, DRAM, SRAM, T-RAM, Z-RAM, and TTRAM. Computer-readable media can also include any non-volatile semiconductor memory, such as ROM, PROM, EPROM, EEPROM, NVRAM, flash memory, nvSRAM, FeRAM, FeTRAM, MRAM, PRAM, CBRAM, SONOS, RRAM, NRAM, track memory, FJG, and Millipede memory.
[0154] Additionally, computer-readable storage media may include any non-semiconductor memory, such as optical disc storage devices, magnetic disk storage devices, magnetic tape, other magnetic storage devices, or any other medium capable of storing one or more instructions. In one or more embodiments, the tangible computer-readable storage medium may be directly coupled to a computing device, while in other embodiments, the tangible computer-readable storage medium may be indirectly coupled to a computing device, for example, via one or more wired connections, one or more wireless connections, or any combination thereof.
[0155] Instructions can be directly executable or can be used to develop executable instructions. For example, instructions can be implemented as executable or non-executable machine code, or as high-level language instructions that can be compiled to produce executable or non-executable machine code. Additionally, instructions can be implemented as data, or may include data. Computer executable instructions can also be organized in any format, including routines, subroutines, programs, data structures, objects, modules, applications, applets, functions, etc. As those skilled in the art will recognize, details including, but not limited to, the number, structure, sequence, and organization of instructions can vary significantly without altering the underlying logic, functionality, processing, and output.
[0156] While the above discussion primarily concerns microprocessors or multi-core processors that execute software, one or more specific implementations are executed by one or more integrated circuits such as ASICs or FPGAs. In one or more specific implementations, such integrated circuits execute instructions stored on the circuit itself.
[0157] Those skilled in the art will recognize that the various exemplary blocks, modules, elements, components, methods, and algorithms described herein can be implemented as electronic hardware, computer software, or a combination of both. To illustrate this interchangeability between hardware and software, the various exemplary blocks, modules, elements, components, methods, and algorithms have been generally described above in terms of functionality. Whether such functionality is implemented as hardware or software depends on the specific application and the design constraints imposed on the overall system. Those skilled in the art can implement the described functionality in different ways for each specific application. Various components and blocks can be arranged differently (e.g., in different orders or segmented in different ways), all without departing from the scope of the subject matter.
[0158] Various aspects of this technology may include collecting and using data available from specific and legitimate sources to train machine learning models and apply them to trained machine learning models deployed in a system. This disclosure contemplates that, in some instances, the collected data may include personal information data that uniquely identifies or can be used to identify specific individuals. Such personal information data may include metadata or other data associated with images, which may include demographic data, location-based data, online identifiers, telephone numbers, email addresses, home addresses, data or records related to a user's health or fitness level (e.g., vital sign measurements, medication information, exercise information), date of birth, or any other personal information.
[0159] This disclosure recognizes that the use of such personal information data in the techniques of this invention can benefit users. For example, personal information data can be used to train machine learning models to achieve better performance. Therefore, the use of such personal information data enables users to have greater control over the content delivered. Furthermore, this disclosure also anticipates other uses of personal information data that benefit users.
[0160] This disclosure anticipates that entities responsible for collecting, analyzing, disclosing, transmitting, storing, or otherwise using such personal information data will comply with established privacy policies and / or privacy practices. Specifically, it is expected that such entities will implement and consistently apply privacy practices generally recognized as meeting or exceeding industry or governmental requirements for protecting user privacy. Such information regarding the use of personal data should be highlighted and easily accessible to users, and should be updated as data collection and / or use change. Users' personal information should be collected only for lawful use. Furthermore, such collection / sharing should only occur after receiving user consent or other lawful grounds provided for in applicable law. Additionally, such entities should consider taking any necessary steps to protect and safeguard the right to access such personal information data and ensure that other entities with access to personal information data comply with the privacy policies and procedures of other entities. Furthermore, such entities may be subject to third-party assessments to demonstrate their compliance with widely accepted privacy policies and practices. Moreover, policies and practices should be tailored to the specific types of personal information data collected and / or accessed, and made applicable to applicable laws and standards, including specific jurisdictional considerations that may be used to impose higher standards. For example, in the United States, the collection or access to certain health data may be governed by federal and / or state laws, such as the Health Insurance Portability and Accountability Act (HIPAA); while health data in other countries may be subject to other regulations and policies and should be handled accordingly.
[0161] Regardless of the foregoing, this disclosure also anticipates implementation schemes that allow users to selectively block the use or access to personal information data. That is, this disclosure anticipates providing hardware and / or software components to prevent or block access to such personal information data. For example, with regard to training data collection, this technology can be configured to allow users to opt-in or opt-out at any time during or after service registration to participate in the collection of personal information data. In another example, users may choose not to provide emotion-related data for use as training data. Furthermore, users may choose to limit the duration for which emotion-related data is retained, or completely prevent the development of basic emotional states. In addition to providing "opt-in" and "opt-out" options, this disclosure also anticipates providing notifications related to access to or use of personal information. For example, users may be notified when downloading an application that their personal information data will be accessed, and then reminded again just before the application accesses the personal information data.
[0162] Furthermore, the intent of this disclosure is that personal information data should be managed and processed in a manner that minimizes the risk of unintentional or unauthorized access or use. Once data is no longer needed, this risk can be minimized by restricting data collection and deleting data. Additionally, and where applicable, including in certain health-related applications, data deidentification can be used to protect user privacy. Deidentification can be facilitated, where appropriate, by removing identifiers, controlling the amount or specificity of stored data (e.g., collecting location data at the city level rather than the address level), controlling how data is stored (e.g., aggregating data among users), and / or other methods (such as differentiated privacy).
[0163] Therefore, while this disclosure broadly covers the use of personal information data to implement one or more of the various disclosed embodiments, it is also contemplated that various embodiments can be implemented without access to such personal information data. That is, various embodiments of the present invention will not become inoperable due to the absence of all or part of such personal information data. For example, training data can be selected based on aggregated non-personal information data or an absolute minimum amount of personal information, such as content processed solely on the user's device or other non-personal information that can be used as training data.
[0164] It should be understood that any particular order or hierarchy of the boxes in the process disclosed in this invention is an example of the exemplary method. Based on design preferences, it should be understood that the particular order or hierarchy of the boxes in the process may be rearranged or all illustrated boxes may be executed. Any box within these boxes may be executed simultaneously. In one or more embodiments, multitasking and parallel processing may be advantageous. Furthermore, the division of various system components in the above embodiments should not be construed as requiring such division in all embodiments, and it should be understood that the described program components and systems may be integrated together in a single software product or packaged into multiple software products.
[0165] As used in this specification and any claim of this patent application, the terms "base station," "receiver," "computer," "server," "processor," and "memory" refer to electronic devices or other technical devices. These terms exclude persons or groups of persons. For the purposes of this specification, the terms "display" or "being displayed" mean displaying on an electronic device.
[0166] As used herein, the phrase “at least one of” following a series of items separated by the terms “and” or “or” modifies the list as a whole, not each member of the list (i.e., each item). The phrase “at least one of” does not require selection of at least one of each of the listed items; rather, it allows for the inclusion of at least one of any one of the items and / or at least one of any combination of items and / or at least one of each item. For example, the phrases “at least one of A, B, and C” or “at least one of A, B, or C” respectively refer to only A, only B, or only C; any combination of A, B, and C; and / or at least one of each of A, B, and C.
[0167] The predicates “configured to,” “operable to,” and “programmed to” do not imply any specific tangible or intangible modification to a particular subject but are intended to be used interchangeably. In one or more embodiments, a processor configured to monitor and control operations or components may also mean that the processor is programmed to monitor and control operations or that the processor is operable to monitor and control operations. Similarly, a processor configured to execute code can be interpreted as a processor programmed to execute code or operable to execute code.
[0168] Phrases such as aspect, that aspect, on the other hand, some aspects, one or more aspects, implementation, that implementation, another implementation, some implementations, one or more implementations, implementation scheme, that implementation scheme, another implementation scheme, some implementations, one or more implementations, configuration, that configuration, another configuration, some configurations, one or more configurations, subject matter, disclosure, this disclosure, other variations thereof, etc., are for convenience only and do not imply that disclosures involving such phrases are essential to the subject matter, nor do they imply that such disclosures apply to all configurations of the subject matter. Disclosures involving such phrases may apply to all configurations or one or more configurations. Disclosures involving such phrases may provide one or more examples. Phrases such as aspect or some aspects may refer to one or more aspects, and vice versa, and this applies similarly to other foregoing phrases.
[0169] The word “exemplary” is used herein to mean “serving as an example, instance, or illustration.” Any embodiment described herein as “exemplary” or “example” is not necessarily to be construed as preferred or superior to other specific embodiments. Furthermore, terms such as “comprising,” “having,” etc., are used to a certain extent in the specification or claims, and such terms are intended to be included in a manner similar to how the term “comprising” is interpreted when used as a transitional word in a claim.
[0170] All structural and functional equivalents of elements throughout the various aspects described herein that are known or later become apparent to those skilled in the art are expressly incorporated herein by reference and are intended to be covered by the claims. Furthermore, nothing disclosed herein is intended to be made public, regardless of whether such disclosure is expressly stated in the claims. No claim element should be interpreted in accordance with 35 USC §112(f) unless the element is expressly stated using the phrase “means for…” or, in the case of a method claim, using the phrase “step for…”.
[0171] The preceding description is provided to enable any person skilled in the art to practice the various aspects described herein. Various modifications to these aspects will be apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects. Therefore, this claim is not intended to be limited to the aspects shown herein, but rather to be consistent with the language of the claim, wherein references to singular elements are not intended to mean “only one” but rather “one or more” unless specifically indicated. Unless otherwise specifically stated, the term “some” means one or more. Male pronouns (e.g., his) include female and neutral pronouns (e.g., her and its), and vice versa. Titles and subtitles (if any) are used for convenience only and do not limit the disclosure of this subject matter.
Claims
1. A computer-implemented method, the computer-implemented method comprising: Receive input images, including visual content, at an electronic device; The input image is processed using a first machine learning model to detect one or more elements within the visual content, wherein the one or more elements include one or more objects in the visual content or one or more text portions of the visual content; Generate a set of candidate actions for processing at least a portion of the input image based on one or more detected elements; The candidate action set is ranked using a ranking data structure that includes one or more ranking signals; as well as The user interface of the electronic device provides a display of at least a subset of the ranked candidate action set for the user to select from.
2. The method of claim 1, wherein the first machine learning model comprises an object detector or a text recognition model, the object detector being configured to identify the one or more objects within the input image, and the text recognition model being configured to identify the one or more text portions within the visual content.
3. The method according to claim 1, wherein the one or more ranking signals include action richness measure, benchmark tag relevance measure, engagement measure or embedding similarity measure, and wherein the ranking data structure incorporates historical user interaction data stored in a vector database, the historical user interaction data including selection frequency, interaction recency or engagement rate.
4. The method of claim 1, wherein ranking the candidate actions includes applying an embedding distance metric to distinguish objects with the same baseline label but different semantic contexts.
5. The method of claim 1, wherein the candidate action set includes at least one of a visual search action, a summary action, an "add to" action, or a hyperlink navigation action.
6. The method according to claim 1, further comprising: Receive selection of a candidate action from the candidate action set via the user interface; as well as At least a portion of the input image is processed based at least in part on the selection of the candidate actions.
7. The method of claim 1, wherein the candidate action set is generated using a cue action engine configured to infer new cue suggestions based on historical user queries.
8. The method according to claim 1, further comprising: A second machine learning model is used to refine the baseline output to generate context-accurate text representations for downstream applications.
9. The method of claim 1, further comprising excluding benchmark labels determined to be overly generic based at least in part on the one or more ranking signals.
10. The method of claim 1, wherein at least one candidate action in the ranked set of candidate actions includes storing the identified object in a save-for-later module associated with at least one of the candidate actions.
11. The method of claim 1, further comprising routing the stored content, including structured output, to one or more target applications associated with the electronic device.
12. A system comprising: One or more processors; as well as The memory stores instructions that, when executed by the one or more processors, cause the system to: Receive input images including visual content; A first machine learning model is applied to detect one or more elements in the input image, wherein the one or more elements include one or more objects in the visual content or one or more text portions of the visual content; Generate a visual bundle that includes features of the input image, the features including one or more text portions of the visual content or one or more objects in the visual content; The second machine learning model is applied to the visual bundle to refine the detected one or more elements into context-sensitive outputs; Generate an action set based on the context-related output; The action set is ranked based at least in part on historical user interaction data; as well as Provide a ranked list of actions for display in the user interface of the system.
13. The system of claim 12, wherein the ranking of the action set is further based on an action richness metric, which assigns greater relative weight to actions that provide specific or context-advantageous results.
14. The system of claim 12, wherein the visual bundle includes an embedding generated by a baseline model, a visual lookup component, or both.
15. The system of claim 12, wherein the second machine learning model refines the baseline output into a context-accurate text string for downstream processing.
16. The system of claim 12, wherein the ranked action list includes application intents that map to built-in functions of installed applications on the system.
17. The system of claim 12, wherein the memory further stores a semantic mapping module configured to map a baseline label to one or more content categories or application categories using a confidence-weighted hierarchical mapping.
18. The system of claim 12, wherein the user interface is configured to display the ranked set of actions in an interactive list and to receive user input to select one of the actions for execution.
19. The system of claim 18, wherein the execution of one of the actions includes transmitting the input image and contextual metadata to a third-party image search provider.
20. A non-transitory computer-readable medium storing instructions, said instructions causing said one or more processors, when executed, to: The input image is processed to generate reference labels corresponding to the objects detected in the input image; The baseline tags are mapped to one or more content categories or application categories, at least in part, based on semantic mapping; Use historical user interaction data to refine the mapped baseline labels; Generate one or more prompts associated with the mapped baseline label, the one or more prompts corresponding to candidate actions that can be executed by the one or more processors; The candidate actions are ranked using confidence-weighted and embedding distance metrics; as well as Execution of the selected candidate action is initiated in response to the user's selection of the displayed action item associated with the candidate action.
