System and method for object detection
The system addresses the challenge of finding relevant images by employing object detection and captioning techniques to preprocess and organize images, allowing for effective natural language search and harmful content filtering, thus enhancing image management and retrieval efficiency.
Patent Information
- Application Number
- PCT/US2024/024508
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-12
- Filing Date
- 2024-04-12
- Publication Date
- 2024-10-17
AI Technical Summary
The proliferation of photographs taken with personal devices has made it difficult for users to efficiently find relevant images, as existing methods lack effective techniques for cataloging and searching images using natural language search criteria.
A system and method for object detection that preprocesses images, uses object-attribute detection models like VinVL for labeling, and vision-and-language pre-training modules like OSCAR for captioning, allowing for natural language search and album organization based on flagged labels, with sub-classifiers for additional attributes and harmful content filtering.
Enables efficient image cataloging and retrieval using natural language search, effectively organizing images into albums and filtering out harmful content, improving user experience and image management efficiency.
Smart Images

Figure US2024024508_17102024_PF_FP_ABST
Abstract
Description
SYSTEM AND METHOD FOR OBJECT DETECTIONCross-Reference to Related Applications
[0001] This application claims priority to U.S. Provisional Application No. 63 / 495.773, filed on April 12, 2023, now pending, the disclosure of which is incorporated herein by reference.Field of the Disclosure
[0002] The present disclosure relates to image processing, and more particularly to object detection and / or systems and methods for labeling and finding image using machine learning techniques.Background of the Disclosure
[0003] The ease of acquiring photographs using a personal device such as a smartphone has had many benefits but also has created the problem of finding relevant images in a mountain of photographs. Even where catalogs and albums have been employed, it is difficult to select appropriate search criteria to find the desired photograph(s). There is a need for techniques that catalog images such that a user is able to locate relevant photograph(s) using natural language search techniques.Brief Summary of the Disclosure
[0004] In an aspect, the present disclosure provides a method for object detection. The method includes receiving an image. The image may be preprocessed. For example, the image may be preprocessed to resize the image to a pre-determined standard size (for example, 500x500). The image has (contains) one or more objects. Each object is labeled according to a classification. For example, labeling each of the one or more objects in the image may include detecting each of the one or more objects in the image; classifying each detected object (e.g., with a pre-determined classification); and labeling each detected obj ect with the classification. Labeling each of the one or more obj ects in the image may be performed using an image encoding module, such as an object-attribute detection model (e.g, VinVL).
[0005] In some embodiments, labeling each of the one or more objects in the image further includes sub-classifying at least one of the classified detected objects using a sub-classifier model on a portion of the image. The sub-classifier model may include one or more of a pet sub-classifier, a car sub-classifier, a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model. In some embodiments, labeling further includes assigning one or more attributes to the detected object
[0006] The method includes captioning the image. Captioning the image may include generating an image caption and an associated confidence metric for the caption The captioning may be performed using a vision-and-language pre-training (VLP) module (e.g, Object- Semantics Aligned Pre-Training (OSCAR)). In some embodiments, captioning the image further includes sentence embedding, for example, by using SimCSE.
[0007] The method may further include flagging one or more labels as important when the label is contained in the caption.
[0008] In some embodiments, the method includes generating an album for organizing images based on a label flagged as important and assigning the image to the generated album.
[0009] In another aspect, the present embodiment may be embodied as a sy stem for object detection. Such a system may include a processor and an image interface in electronic communication with the processor. The image interface may be, for example, a network interface, a storage interface, or a peripheral interface (e.g., camera interface, etc.) The processor is programmed to perform any of the methods disclosed herein. For example, the processor may be programmed to receive an image from the image interface, the image having one or more objects. The processor labels each object according to a classification. Labeling each of the one or more objects in the image may include detecting each of the one or more objects in the image, classifying each detected object, and labeling each detected object with the classification. In some embodiments, labeling each of the one or more objects in the image is performed using an image encoding module, such as an object-attribute detection model (e.g. VinVL). Labeling may- further include assigning one or more attributes to the detected object.
[0010] Labeling each of the one or more objects in the image may further include subclassifying at least one of the classified detected objects using a sub-classifier model on a portion of the image. The sub-classifier model may include one or more of a pet sub-classifier, a car subclassifier, a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model.
[0011] The processor is programmed to caption the image. The processor may caption the image using a vision-and-language pre-training (VLP) module (e.g.. Object-Semantics Aligned Pre-Training (OSCAR)). Captioning the image may include generating an image caption and an associated confidence metric for the caption. Captioning the image may further include sentence embedding, wherein sentence embedding may be performed using SimCSE.
[0012] The processor may be further programmed to preprocess the image. In some embodiments, preprocessing the image includes resizing the image to a pre-determined standard size (e.g., 500x500 pixels).
[0013] In some embodiments, the processor may be programmed to flag one or more labels as important when the label is contained in the caption.
[0014] In some embodiments, the processor may be programmed to generate an album for organizing images based on a label flagged as important; and assign the image to the generated album.
[0015] In another aspect, the present disclosure may be embodied as a non-transitory computer-readable medium having stored thereon a program for instructing a processor to perform any of the methods disclosed herein. For example, the program may instruct a processor to receive an image from the image interface, the image having one or more objects. The program may instruct a processor to label each object according to a classification. Labeling each of the one or more objects in the image may include detecting each of the one or more objects in the image, classifying each detected object, and labeling each detected object with the classification. In some embodiments, labeling each of the one or more objects in the image is performed using an image encoding module, such as an object- attribute detection model (e.g., VinVL). Labeling may further include assigning one or more attributes to the detected object.
[0016] Labeling each of the one or more objects in the image may further include subclassifying at least one of the classified detected objects using a sub-classifier model on a portion of the image. The sub-classifier model may include one or more of a pet sub-classifier, a car subclassifier. a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model.
[0017] The program may instruct a processor to caption the image. The program may instruct a processor to caption the image using a vision-and-language pre-training (VLP) module (e.g, Object-Semantics Aligned Pre-Training (OSCAR)). Captioning the image may include generating an image caption and an associated confidence metric for the caption. Captioning the image may further include sentence embedding, wherein sentence embedding may be performed using SimCSE.
[0018] The program may instruct a processor to preprocess the image. In some embodiments, preprocessing the image includes resizing the image to a pre-determined standard size (e.g., 500x500 pixels).
[0019] In some embodiments, the program may instruct a processor to flag one or more labels as important when the label is contained in the caption.
[0020] In some embodiments, the program may instruct a processor to generate an album for organizing images based on a label flagged as important; and assign the image to the generated album.Description of the Drawings
[0021] For a fuller understanding of the nature and objects of the disclosure, reference should be made to the following detailed description taken in conjunction with the accompanying drawings, in which:Figure 1 is a high-level diagram of a method according to an embodiment of the present disclosure;Figure 2 is a diagram if the method of Figure 1, and showing more detail;Figure 3 is a representation of output received from VinVL after processing an image;Figure 4 is a diagram of an object detection portion of the method;Figure 5 is a diagram of an image detection portion of the method;Figure 6 is a diagram showing a nature language search processing method according to an embodiment of the present disclosure;Figure 7 is a diagram showing a sex, violence, and gore filter according to an embodiment of the present disclosure;Figure 8 is a diagram of a hate speech audio filter according to an embodiment of the present disclosure;Figure 9 is a diagram of a hate speech writing filter according to an embodiment of the present disclosure;Figure 10 is a diagram of a drug and drug-related paraphernalia filter according to an embodiment of the present disclosure;Figure 11 is a diagram of a terrorism imagery filter according to an embodiment of the present disclosure;Figure 12 is a diagram of a hate-content filter according to an embodiment of the present disclosure; andFigure 13 shows examples of JSON-formatted output from an embodiment of a hate-content filtering system according to an embodiment of the present disclosure.Detailed Description of the Disclosure
[0022] In some embodiments, an object detection system and method may include object detection and captioning. In the object detection step, an image (or multiple images) may be pre- processed and run through an object detection model that provides labels having information of the objects shown in the image. In some embodiments, sub-classifiers are used to provide additional information (e.g, animal breed, facial recognition, etc.) In the captioning step, using the labels from the object detection model and, in some embodiments, additional features as the input, captions that describe the image are generated. In some embodiments, the captions may be vectorized to better enable caption (and thus image) searching using arithmetic means. In some embodiments, labels may be identified as "‘important” and flagged for use in search matching or album creation.
[0023] In some embodiments, an interface is provided to allow image searching by an individual. In some embodiments, the system may be cloud based. For example, the system may be hosted on Microsoft’s Azure system. The information may be provided to the interface via, for example, the Azure Service Bus queues using the JSON format.
[0024] With reference to Figure 1, in a first aspect, the present disclosure may be embodied as a method 100 for object detection. Object detection is a computer technology related to computer vision and image processing that pertains to detecting instances of semantic objects of a certain class (such as humans, buildings, or cars) in digital images and videos. Themethod 100 includes receiving 103 an image. The image may have one or more objects depicted therein. For example, the image shown in Figure 1 includes a man, a child, and a television in the background.
[0025] Each of the one or more objects in the image are labelled 106 according to a classification. For example, the one or more objects may be detected 109. and each of the detected 109 objects may then be classified 112. The classifications may be labeled 115 — e.g, associated with the corresponding object of the image. In some embodiments, labeling 115 may include assigning one or more attributes to the detected object. For example, when an object such as a wall is detected in the image, it may be assigned attributes such as, for example, its color.
[0026] In some embodiments, the labeling may be performed using an object-attribute detection model such as, for example, Visual features in Vision-Language (VinVL). Given an image as input, VinVL provides an extensive list of labels with the corresponding image location for each label (see, Figure 3). VinVL is an object detection model pre-trained on a large training corpora that combines multiple public annotated object detection datasets. Therefore. VinVL can generate representations of a rich collection of visual objects and concepts.
[0027] In some embodiments, the image may be pre-processed. For example, in some embodiments, the image is re-sized to a predetermined standard size such as, for example, 500 x 500 pixels. Resizing in this way allows multiple images to be run through object detection at the same time. 500 x 500 pixels was found to be a suitable trade-off between performance and memory usage. However, other sizes may be used for resizing (larger, smaller, asymmetrical, etc.)
[0028] In the non-limiting embodiment using VinVL, the labeling step returns a list of BoxList for the image. The BoxList contains a number of bounding boxes, wherein each bounding box has an associated label (e.g.. man) and one or more associated attributes (e.g, standing, white).
[0029] In some embodiments, labeling 115 a classified, detected object may include subclassifying 118 the object. For example, a sub-classifier model may be applied to a portion of the image corresponding to the object. In this way, the initial classification may use a general object detection model, and sub-classification may use one or more specific models. In a particular example, a dog or cat detected in the image may be further sub-classified using a pet classifier toprovide a breed. The method 100 may include one or more sub-classifiers. In an example embodiment, sub-classifiers included a pet classifier, a car classifier, a fashion classifier, optical character recognition, and facial recognition.
[0030] In the example embodiment using VinVL, a set of sub-classifying models was grouped together to add further information where VinVL reached its limits. The models used portions (crops) of the image as their respective inputs This crop was based on the object’s location, which was known through the VinVL’s bounding boxes. The models used included:• Pet classifier: this classification model works with dogs and cats, given an image crop for either animal, the model will provide its breed (e.g., cat cat / Maine Coon).• Car classifier: this classification model provides the make and model of a car, given a crop of the original image containing only the car (e.g., car car / Ford Mazda).• Fashion classifier: this classification model provides a set of attributes of the piece of clothing, such as, for example, the material and style.• Optical Character Recognition (OCR): may include two models (e.g., where the general model does not detect text): a text detection model and a text recognition model. The text detection locates text within the image, and the text recognition provides the text in the image (e.g., the text as such rather than an image of text).• Face Recognition: may include two steps, similar to the OCR model, the first step is to detect the face and the second one is to create a face vector given the face detected in the first step. These face vectors are created in such a way that vectors from the same face will be close to each other (cosine similarity measure).
[0031] In the example embodiment, the first three sub-classifiers: pet classifier, car classifier and fashion classifier were trained using publicly available datasets. The pet classifier was trained on the Oxford-IIIT Pet Dataset. The car classifier was trained on the Vehicle Make and Model Recognition Dataset (VMMRdb). The fashion classifier was trained on the Fashion- MMT Dataset. The transformers used for all three classifiers were the Distilled data-efficient Image Transformer (DeiT) model pre-trained on ImageNet-lk (1 million images, 1,000 classes) at resolution 224 x 224 pixels. However, each used a slightly different Multi-Layer Perceptron that mapped the output of the transformer into the probabilities for each class. The pet and carclassifiers used two linear layers, while the fashion classifier used three of linear layers. All of the networks used dropout layers. The only difference in the interface was that the pet classifier requires an extra input to signal if the image contains a cat or a dog.
[0032] The other two sub-classifiers — optical character recognition and facial recognition — used publicly available pre-trained models. Optical character recognition used DB for detection and TrOCR for text recognition. Facial recognition used OpenFace, which is provided by the library deepface.
[0033] The training and network designs described here are only examples, and other schemes may be used.
[0034] The method 100 further includes captioning 121 the image. Image captioning involves describing the content of an image in words. This task lies at the intersection of computer vision and natural language processing. In the example embodiment, Object-Semantics Aligned Pre-Training (OSCAR) was used as the image captioning model. Some methods may simply concatenate image region features and text features as input to the model to be pre-trained and use self-attention to learn image-text semantic alignments in a brute force manner. OSCAR uses a learning method, which uses object tags detected in images as anchor points to significantly ease the learning of alignments.
[0035] In the exemplary embodiment, the inputs for the OSCAR system are the following:• '‘input_ids”: for each image in the batch contained 50 int64 set by the command line argument “max_img_seq_length”, where each integer represented a label.• “attention mask”: for each image in the batch contained a tensor of 100 by 100 int64, as the name suggests it is an attention mask.• “img_feats”: for each image in the batch contained a tensor of 50 by 2054 float32, which came from VinVL. once again 50 was from “max img seq length” and the 2054 features were 2048 image features plus 6 additional custom features.• “masked_pos”: for each image in the batch, contained 50 int32, once again 50 was from “max_img_seq_length” and as the name suggests this is a masked position
[0036] The output of this model may include the caption and its associated likelihood (i.e., a confidence metric for the caption). Captioning 121 may further include sentence embedding 124. Sentence embedding may be performed using, for example, SimCSE. SimCSE is a contrastive learning framework for generating sentence embeddings. It utilizes an unsupervised approach, which takes an input sentence and predicts itself in contrastive objective, with only standard dropout used as noise.
[0037] SimCSE may be used to match user queries (e.g, photos with my wife drinking wine in Italy) to image captions (e.g. a couple drinking wine).
[0038] In some embodiments, one or more labels may be flagged as important. For example, if a label or an attribute is also used in the caption, the label or attribute may be flagged as important. Labels and / or attributes flagged as important may be used to automatically generate albums — categorical groupings of images. An album for organizing images based on a label flagged as important may be generated; and the image may be assigned to the generated album. Albums may also use a user defined mapping. Mapping provides an album category given a label / attribute (e.g, guitar — > musical instrument, bracelet clothing & accessories, baseball bat baseball, etc.) It should be noted that albums may be implemented in various ways. For example, in some embodiments the albums may be implemented as tags for images. Other techniques are known and may be used.
[0039] In some embodiments, an interface is provided, where the generated information is aggregated and formatted. In an example embodiment, JSON was used as the output format, and the JSON-formatted output is sent to the interface through an Azure Service Bus Queue (i.e.. image_ai_outbound). In the example embodiment, the output message had the following elements:• “objectsDetected” set of objects detected in the image• '‘requestld” comes from the input message• “userid” comes from the input message• “type’’ comes from the input message• “messagingToken” comes from the input message• “responseQueue” comes from the input message• “caption” contains the following elements o “text” caption string o “confidence” caption's associated confidence metric o “embedding” embedding of the caption (out of simCSE)• “album” list of albums that the image has been assigned to
[0040] The objects in “objectsDetected” were organized with a categorical approach, with the following structure:• “People” includes “man”, "woman", “girl”, “boy”, ...• “Architecture” includes “castle”, “kitchen”, “stair”, . . .• “Food” includes “banana”, “bread”, “cake”, ...•
[0041] This grouping logic was stored in a comma-separated values-formatted file (vinvl_labels_categories.csv).Natural Language Search
[0042] Images and their respective captions (and other information, such as, for example, labels) may be saved to a common storage location (e.g, a database, etc.) Users may then query the stored images and related information to search for one or more desired images. Searching may be conducted using a scoring method such as a vector similarity search. For example, the SimCSE model may be used to convert text into multidimensional vectors (in the exemplary7embodiment, SimCSE was used to convert text into 768-dimension vectors). The resulting vectors will be near each other if the sentences have the same meaning and distant if not. For example, the best results to a user search query will be those vectors of stored captions w hich are closest to a vector resulting from the user’s search query7. In some embodiments, image results may be ranked by distance between the user’s search vector and each image caption vector.
[0043] In the example, SimCSE vectors were used to match a user text search with the stored image captions. To improve efficiency (e g., avoiding a search through the entire stored image library), the image library may be divided into groups of similar images using a clustering algorithm. In some embodiments, a global clustering model can be utilized with no retraining required.
[0044] Figure 6 illustrates the solution architecture for an embodiment of the natural language search functionality. In an embodiment, the search function may include one or more of the following steps (not necessarily in the following order): (1) vectorize search terms; (2) pull image captions from the stored images (e.g, database); (3) predict the cluster for image captions (predicts clusters from individual text strings or groups of strings); (4) store the cluster for each image caption in the database; (5) predict the cluster for search term; (6) pull relevant samples from the database; and (7) rank each sample in order of similarity (ability to rank many captions against the search query).Harmful Content Filtering
[0045] In some embodiments, the method includes one or more techniques for filtering “harmful'’ content. Harmful content may include sexual content, nudity, violence, gore, drugs or drug-related paraphernalia, symbols of terrorism, discrimination, and the like. Content depicting discrimination may include depictions of violence against a person or group of people, vocal discrimination against a person or group of people, written discrimination (e.g., memes, discriminatory protests, and other written content).
[0046] In an exemplary embodiment, the harmful content to be flagged includes: (1) sexual content & nudity; (2) violence; (3) gore; (4) drugs or drug-related paraphernalia; (5) symbols of terrorism; and (6) discrimination. One or more neural networks may be trained to classify images with respect to each of these categories. For example, these categories may be trained using data and systems as follows:
[0047] Sexual Content: Violence; and Gore
[0048] The 110k sensitive video dataset is a dataset of InceptionV3 embeddings, which means the sensitive images have been encoded into large vectors. One or more neural networks (for example, multi-layer perceptrons — ’MbPs") may be used to classify the type of activity. For example, to detect harmful content in an image, the image would be run through InceptionV3 and then passed to an MLP trained to detect the harmful content. In some embodiments, the classifier used for images may be different than the classifier used for videos (e.g., separate MLPs). See, for example, Figure 7.
[0049] Discriminatory Content
[0050] In the exemplary embodiment, discriminatory content was defined as involving at least one of the following:• Violence against a person or group of people• Vocal discrimination against a person or group of people • Written discrimination (memes, discriminatory protests, and other written content)
[0051] The first item (violence against a person or group of people) may be detected using a system such as that described above (e.g, using one or more trained classifier for image or video analysis).
[0052] Vocal discrimination may be detected by extracting audio from a video and analyzing the audio using audio processing techniques. For example, the audio from a video may be extracted, and the extracted audio may be processed through an audio speech recognition (ASR) system such as, for example, the wav2vec system. Output from the ASR system may then be analyzed using a hate speech classifier trained using data from one or more appropriate datasets such as, for example, the HateXplained dataset. An exemplary process is shown in Figure 8.
[0053] In addition to the hate speech detection model, discrimination filtering may also use a custom word bank. Such a word detection system may analyze all OCR output to detect any words that are predetermined to be filtered from the image storage system. This may be used in both vocal and written discrimination (Figure 9).
[0054] Drugs and Drug-Related Paraphernalia
[0055] Drug detection is often difficult to implement due to (1) the lack of an available training dataset; and (2) the easy confusion with innocent medical items.
[0056] A drug dataset can be used to train a classifier to determine whether images and / or videos include drug or drug-related paraphernalia. Such a classifier may also work in conjunction with a word detection system (such as described above with respect to hate speech) so as to detect the presence of drug-related words (see Figure 10).
[0057] Terrorism
[0058] An embodiment of a system to detect terrorism detection may rely primarily on finding terrorist logos, insignias, or text within images or video. Such a system may utilize classification methods and w ord detection methods similar to those described above. To preventhaving to collect data for thousands of innocent symbols, insignias, and flags in many environmental scenarios, a contrastive logo matching model may be used (e.g., a contrastive logo matching model may be trained using the collected data). A large dataset of terrorist logos, symbols, and imagery may be used in which embeddings of images / videos can be quickly compared with the know n set of logos, symbols, and imagery (see Figure 1 1).
[0059] The Complete Exemplary Hate Content Filtering System
[0060] A diagram of the completed exemplary' hate content filtering system is shown in Figure 12. Items with a white background are inputs and outputs of the sy stem. Items having a gray background are those processors and classifiers used in the exemplary system.
[0061] The system may produce a pass, fail, or review' status for each of the images or videos it evaluates (see, for example, the JSON-formatted example output in Figure 13)Further Embodiments
[0062] In another aspect, the present disclosure may be embodied as a system for objection detection, the system having a processor and an image interface in electronic communication with the processor. The image interface may be a network interface, a storage interface, or a peripheral interface (e.g., camera interface, etc.) The processor may be in communication with and / or may include a memory. The memory' can be, for example, a randomaccess memory (RAM) (e.g., a dynamic RAM, a static RAM), a flash memory, a removable memory, and / or so forth. In some instances, instructions associated with performing the operations described herein (e.g., labeling, captioning, etc.) can be stored within the memory and / or a storage medium (which, in some embodiments, includes a database in which the instructions are stored) and the instructions are executed at the processor.
[0063] In some instances, the processor includes one or more modules and / or components. Each module / component executed by the processor can be any combination of hardw are-based module / component (e.g., a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), a digital signal processor (DSP)), software-based module (e.g, a module of computer code stored in the memory and / or in the database, and / or executed at the processor), and / or a combination of hardware- and software-based modules. Each module / component executed by the processor is capable of performing one or more specificfunctions / operations as described herein. In some instances, the modules / components included and executed in the processor can be, for example, a process, application, virtual machine, and / or some other hardware or software module / component. The processor can be any suitable processor configured to run and / or execute such modules / components. The processor can be any suitable processing device configured to run and / or execute a set of instructions or code. For example, the processor can be a general-purpose processor, a central processing unit (CPU), an accelerated processing unit (APU), a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), a digital signal processor (DSP), and / or the like.
[0064] In another aspect, the present disclosure may be embodied as a non-transitory computer-readable medium having stored thereon a program for instructing a processor to perform any of the methods disclosed herein.
[0065] Although the present disclosure has been described with respect to one or more particular embodiments, it will be understood that other embodiments of the present disclosure may be made without departing from the spirit and scope of the present disclosure.
Claims
What is claimed is:
1. A method for object detection, comprising: receiving an image, the image having one or more objects; labeling each object according to a classification; and captioning the image.
2. The method of claim 1, further comprising preprocessing the image.
3. The method of claim 2, wherein preprocessing the image comprises resizing the image to a pre-determined standard size.
4. The method of claim 1, wherein labeling each of the one or more objects in the image comprises: detecting each of the one or more objects in the image; classifying each detected object; and labeling each detected object with the classification.
5. The method of claim 4, wherein labeling each of the one or more objects in the image further comprises sub-classifying at least one of the classified detected objects using a sub-classifier model on a portion of the image.
6. The method of claim 5, wherein the sub-classifier model includes one or more of a pet subclassifier, a car sub-classifier, a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model.
7. The method of claim 1, wherein labeling each of the one or more objects in the image is performed using an image encoding module, such as an object-attribute detection model.
8. The method of claim 1, wherein the captioning is performed using a vision-and-language pretraining (VLP) module.
9. The method of claim 1, wherein captioning the image comprises generating an image caption and an associated confidence metric for the caption.
10. The method of claim 9, wherein captioning the image further comprises sentence embedding.
11. The method of claim 10, wherein sentence embedding is performed using SimCSE.
12. The method of claim 1, wherein labeling further comprises assigning one or more attributes to the detected obj ect.
13. The method of claim 1, further comprising flagging one or more labels as important when the label is contained in the caption.
14. The method of claim 13, further comprising: generating an album for organizing images based on a label flagged as important; and assigning the image to the generated album.
15. A system for object detection, comprising: a processor; and an image interface in electronic communication with the processor, wherein the processor is programmed to: receive an image from the image interface, the image having one or more objects; label each object according to a classification; and caption the image.
16. The system of claim 15, wherein the image interface is a network interface, a storage interface, or a peripheral interface.
17. The system of claim 15, wherein the processor is further programmed to preprocess the image.
18. The system of claim 17, wherein preprocessing the image comprises resizing the image to a pre-determined standard size.
19. The system of claim 15, wherein labeling each of the one or more objects in the image comprises: detecting each of the one or more objects in the image; classifying each detected object; and labeling each detected object with the classification.
20. The system of claim 19, wherein labeling each of the one or more objects in the image further comprises sub-classifying at least one of the classified detected objects using a subclassifier model on a portion of the image.
21. The system of claim 20, wherein the sub-classifier model includes one or more of a pet subclassifier. a car sub-classifier, a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model.
22. The system of claim 15, wherein labeling each of the one or more objects in the image is performed using an image encoding module, such as an object-attribute detection model (e g., VinVL).
23. The system of claim 15, wherein the captioning is performed using a vision-and-language pre-training (VLP) module.
24. The system of claim 15, wherein captioning the image comprises generating an image caption and an associated confidence metric for the caption.
25. The system of claim 24, wherein captioning the image further comprises sentence embedding.
26. The system of claim 25, wherein sentence embedding is performed using SimCSE.
27. The system of claim 15, wherein labeling further comprises assigning one or more attributes to the detected obj ect.
28. The system of claim 15, further comprising flagging one or more labels as important when the label is contained in the caption.
29. The system of claim 28, further comprising: generating an album for organizing images based on a label flagged as important: and assigning the image to the generated album.
30. A non-transitory computer-readable medium having stored thereon a program for instructing a processor to: receive an image from the image interface, the image having one or more objects; label each object according to a classification; andcaption the image.
31. The non-transitory computer-readable medium of claim 30, wherein the processor is further programmed to preprocess the image.
32. The non-transitory computer-readable medium of claim 31, wherein preprocessing the image comprises resizing the image to a pre-determined standard size.
33. The non-transitory computer-readable medium of claim 30, wherein labeling each of the one or more objects in the image comprises: detecting each of the one or more objects in the image; classifying each detected object; and labeling each detected object with the classification.
34. The non-transitory computer-readable medium of claim 33, wherein labeling each of the one or more objects in the image further comprises sub-classifying at least one of the classified detected objects using a sub-classifier model on a portion of the image.
35. The non-transitory computer-readable medium of claim 34, wherein the sub-classifier model includes one or more of a pet sub-classifier, a car sub-classifier, a person sub-classifier, a fashion sub-classifier, an optical character recognition model, and a facial recognition model.
36. The non-transitory computer-readable medium of claim 30, wherein labeling each of the one or more objects in the image is performed using an image encoding module, such as an objectattribute detection model.
37. The non-transitory computer-readable medium of claim 30, wherein the captioning is performed using a vision-and-language pre-training (VLP) module.
38. The non-transitory computer-readable medium of claim 30, wherein captioning the image comprises generating an image caption and an associated confidence metric for the caption.
39. The non-transitory computer-readable medium of claim 38, wherein captioning the image further comprises sentence embedding.
40. The non-transitory computer-readable medium of claim 39. wherein sentence embedding is performed using SimCSE.
41. The non-transitory computer-readable medium of claim 30, wherein labeling further comprises assigning one or more attributes to the detected object.
42. The non-transitory computer-readable medium of claim 30, further comprising flagging one or more labels as important when the label is contained in the caption.
43. The non-transitory computer-readable medium of claim 42, further comprising: generating an album for organizing images based on a label flagged as important; and assigning the image to the generated album.
Citation Information
Patent Citations
System and method for associating textual summaries with content media
US20190318003A1
Image inventory production
US20200192934A1
Video retrieval using temporal visual content
US20210109966A1
Technologies for content analysis
US20220319219A1
Integrating overlaid textual digital content into displayed data via graphics processing circuitry using a frame buffer
US20220350974A1
