CN113420677B - Method, device, electronic equipment and storage medium for determining reasonable image - Google Patents
Method, device, electronic equipment and storage medium for determining reasonable image Download PDFInfo
- Publication number
- CN113420677B CN113420677B CN202110709584.XA CN202110709584A CN113420677B CN 113420677 B CN113420677 B CN 113420677B CN 202110709584 A CN202110709584 A CN 202110709584A CN 113420677 B CN113420677 B CN 113420677B
- Authority
- CN
- China
- Prior art keywords
- image
- target
- matched
- information
- identification information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 39
- 230000001815 facial effect Effects 0.000 claims abstract description 103
- 238000001514 detection method Methods 0.000 claims description 8
- 239000013598 vector Substances 0.000 claims description 8
- 238000004590 computer program Methods 0.000 claims description 2
- 238000012545 processing Methods 0.000 abstract description 7
- 230000000694 effects Effects 0.000 abstract description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 238000000605 extraction Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 239000003814 drug Substances 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012549 training Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003795 chemical substances by application Substances 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 229940079593 drug Drugs 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/21—Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F18/214—Generating training patterns; Bootstrap methods, e.g. bagging or boosting
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Life Sciences & Earth Sciences (AREA)
- Image Analysis (AREA)
Abstract
The invention discloses a method, a device, electronic equipment and a storage medium for determining reasonable images, wherein the method comprises the following steps: when the face image information is detected to be included in the target image, determining a target face feature corresponding to the face image information; inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image; if the information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, determining that the target image is a reasonable image; the identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched. The technical scheme of the embodiment of the invention realizes the technical effects of processing the target image, determining the facial image characteristics and the product identification information of the target image and determining the rationality of the target image according to the facial image characteristics and the product identification information.
Description
Technical Field
The embodiment of the invention relates to the technical field of image recognition, in particular to a method, a device, electronic equipment and a storage medium for determining reasonable images.
Background
As users demand quality of life, more and more users tend to acquire corresponding items. Often, a secured item is obtained, for example, a product associated with a user.
However, in the actual application process, there is a technical problem that the user experience is poor because the obtained article is a counterfeit product due to the fact that the image of a certain user is stolen and the corresponding product is bound with the image.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for determining reasonable images, which are used for rapidly and conveniently determining whether displayed images are reasonable images or not, so that the technical effect of user experience is improved.
In a first aspect, an embodiment of the present invention provides a method for determining a reasonable image, where the method includes:
When the fact that the face image information is included in the target image is detected, determining a target face feature corresponding to the face image information; and
Inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image;
If the information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, determining that the target image is a reasonable image;
The identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched.
In a second aspect, an embodiment of the present invention further provides an apparatus for determining a reasonable image, where the apparatus includes:
a facial feature determination module configured to determine a target facial feature corresponding to face image information when it is detected that the face image information is included in the target image; and
The product identification information determining module is used for inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image;
A reasonable image determining module, configured to determine that the target image is a reasonable image if information consistent with the target facial feature and the target product identification information is matched from a pre-established recognition library;
The identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
One or more processors;
Storage means for storing one or more programs,
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement a method of determining a reasonable image as described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a method of determining a reasonable image according to any of the embodiments of the present invention.
According to the technical scheme, when the face image information is detected to be included in the target image, the face image characteristics in the face image information are extracted, meanwhile, the target product identification information in the target image can be obtained based on the pre-trained target information identification model, if the identification library comprises the target product identification information in the product identification information related to the target image characteristics, the target image is determined to be a reasonable image, further, the objects included in the target image are determined to be reasonable products, and the technical effect of convenience in determining the object information is improved.
Drawings
In order to more clearly illustrate the technical solution of the exemplary embodiments of the present invention, a brief description is given below of the drawings required for describing the embodiments. It is obvious that the drawings presented are only drawings of some of the embodiments of the invention to be described, and not all the drawings, and that other drawings can be made according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for determining a reasonable image according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for determining a reasonable image according to a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for determining a reasonable image according to a second embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a device for determining a reasonable image according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Example 1
Fig. 1 is a schematic flow chart of a method for determining a reasonable image according to an embodiment of the present invention, where the embodiment may be adapted to determine whether an image displayed in a network or an image posted in each physical store is a reasonable image, and further determine, according to a result, that a product displayed in a target image is a qualified product.
Before the technical scheme of the embodiment is introduced, an application scene is described in an exemplary mode. In general, in order to improve the sales volume of a certain product, the product can be told by a certain user, at this time, other illegal users can steal the pictures of the told user and replace the product information in the images, so as to improve the sales volume of the replaced product, but the replaced product information at this time is probably not guaranteed in corresponding quality, and can not be recognized in time by common consumers, and meanwhile, if the replaced product is food, health care product or medicine, etc., a certain potential danger exists. Based on the above, the technical scheme of the embodiment of the invention can process the images posted in the network or the entity store, extract the facial features and the product features in the images, and further determine whether the facial features and the product features are matched, so as to determine whether the displayed images are reasonable images according to the matching result.
It should be noted that, the technical solution of the embodiment of the present invention may be integrated in a mobile terminal, a PC end, or an application program may be developed based on the technical solution, and the image may be processed based on the application program.
As shown in fig. 1, the method of this embodiment includes:
and S110, when the fact that the face image information is included in the target image is detected, determining target face characteristics corresponding to the face image information.
Wherein an image whose detection is currently required may be taken as the target image. The target image may be an image displayed on the network or may be an image posted in each physical store, for example, an advertisement image, a propaganda image, or the like. The target image may be captured by an image capturing device, and analyzed and processed based on a program code developed in advance. In order to improve the processing efficiency of the image, whether the target image comprises a human face or not can be judged through the human face detection module, and then corresponding operation is executed, so that the problem of resource waste caused by extracting facial features in the image when the image does not comprise the facial image is avoided. If the face image information is included in the detected target image, feature extraction can be performed on the face image information to obtain the face image features of the target user in the target image.
In this embodiment, the determining, when it is detected that the target image includes face image information, a target face feature corresponding to the face image information includes: determining whether facial image information is included in the target image based on a face detection module; if yes, determining a target face image in the target image, and extracting facial features in the target face image to serve as target facial features.
The face detection module may be integrated in a corresponding program, and is configured to identify whether a face is included in the target image. The target face image is a face image in the target image, and alternatively, a face image having the largest occupied area may be used as the target face image. And extracting the characteristics of the target facial image through a facial image characteristic extraction model to obtain target facial characteristics matched with the target facial image.
In this embodiment, the reason for determining the target facial features is that it is possible to determine which products associated with the target facial features exist, and further determine whether the product information displayed in the target image is the product of the user's code, so as to improve the security of selling the product in the image.
S120, inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image.
The target information identification model can be trained in advance in an unsupervised mode and is used for extracting the product identification in the target image, and the extracted product identification can be used as the target product identification. The target product identification information is matched with the target product, and optionally, the target product identification information can be the name, the product classification number, the product model number and the like of the product.
Specifically, the target image is input into the target information recognition model, and the target information recognition module can extract the target product identification information corresponding to the target image.
In this embodiment, the inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image includes: and inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the product characteristics on the target image.
In order to play a role in promoting or selling a certain product, the image generally includes a face image and an identifier of the product. That is, the target image includes facial image information and features related to product information. The target product identification information may be an identification corresponding to a product feature.
Specifically, the target image recognition model may be input into the target information recognition model, and the recognition model may obtain a feature vector corresponding to the product feature for the product feature extracted from the target image, and may use the feature vector as the target product identification information.
S130, if information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, determining that the target image is a reasonable image.
The recognition library is pre-established according to facial image features and product identifiers extracted from images authenticated by authorities or institutions and disclosed. It is understood that the recognition library includes a plurality of facial image features and at least one product identification associated with the facial image features.
Specifically, if the recognition library includes data consistent with the facial image features and the target product identification information, the user displayed in the target image and the product associated with the user are determined to be regular products, and at this time, the target image can be determined to be a reasonable image, otherwise, the target image is determined to be an unreasonable image.
It should also be noted that the data store in the identification library may be a piece of data store, e.g., a facial feature and associated product identifier as a piece of data in the identification library. The data storage in the recognition library can also be stored in the form of a tree graph, for example, the facial image features can be used as root nodes, a plurality of product identifiers associated with the facial image features can be used as leaf nodes, the target facial image features are used for matching in the recognition library, if the matching is successful, whether the leaf nodes associated with the target facial image comprise target product identifiers is determined, if the target product identifiers exist, the target image is determined to be a reasonable image, and otherwise, the target image is determined not to be a reasonable image.
It should be noted that the identification library may also include a face library and a product information table, where the face library stores facial image features of each user, and the product information table stores product identification information of corresponding products. After the facial image features are acquired, it may be determined whether the facial image features are included in the facial library, and whether corresponding product identification information exists from the product information table.
According to the technical scheme, when the face image information is detected to be included in the target image, the face image characteristics in the face image information are extracted, meanwhile, the target product identification information in the target image can be obtained based on the pre-trained target information identification model, if the identification library comprises the target product identification information in the product identification information related to the target image characteristics, the target image is determined to be a reasonable image, further, the objects included in the target image are determined to be reasonable products, and the technical effect of convenience in determining the object information is improved.
Example two
Fig. 2 is a flowchart of a method for determining a reasonable image according to a second embodiment of the present invention. Based on the foregoing embodiment, an identification library may be created first, and then whether the target image is a reasonable image may be determined based on the identification library, and a specific implementation manner of the method may be described in detail in this technical solution. Wherein, the technical terms identical to or corresponding to the above embodiments are not repeated herein.
As shown in fig. 2, the method includes:
s210, extracting facial image features in each image to be processed as features to be matched.
It should be noted that, in order to determine whether the target image is a reasonable image, a reasonable image may be acquired in advance and an identification library may be established according to the reasonable image, so as to determine whether the image posted in the network or the entity store is a reasonable image based on information stored in the identification library.
Wherein the features authenticated by authorities or certification authorities, including the speaking user and the product, may be taken as the image to be processed. The agent user may be a doctor. The facial image features in the images to be processed can be extracted to obtain facial image features corresponding to the speaking users in each image to be processed, and the facial images are used as the features to be matched.
In this embodiment, the image to be processed includes a speaker or a medical staff, and the product identification information includes feature vectors corresponding to product brand information and/or product text information.
Illustratively, first an image of the referring physician, or an image including the referring physician and the product, is collected, which is published by the lower authority or certification authority. Based on the mode, the face library with larger scale can be obtained. And extracting facial image information in the face database by a feature extraction module to extract facial features, so as to obtain facial image features corresponding to each facial image information, and storing the facial image features into the face database in the recognition database.
S220, at least one product identification information to be matched, which is associated with the characteristics to be matched, is respectively determined.
Specifically, product information of each pronouncing user can be determined, and the product information can be electronic products such as courses, learning materials, or medical health products such as health products, medicines, and the like. The products spoken by the speaking users may be collected or, based on the product information in the validated image, product information associated with each speaking user may be determined. Based on the above manner, the product associated with each of the pronouncing users can be determined, so that the corresponding relation between the pronouncing users and at least one pronouncing product is established.
In this embodiment, in order to improve the efficiency of determining whether the target image is a reasonable image, the product identification information of each product for the code may be determined, and then determined based on the product identification information.
Specifically, the product information can be processed by using the target information identification model obtained through pre-selection training to obtain a feature vector corresponding to the product information, and the feature vector can be used as product identification information.
S230, determining the identification library based on the identification information of at least one product to be matched associated with each feature to be matched and the feature to be matched.
Specifically, a corresponding relationship between the feature to be matched and at least one product identification information to be matched associated with the feature to be matched can be established, so as to obtain the identification library.
S240, when it is detected that the face image information is included in the target image, determining a target face feature corresponding to the face image information.
For example, referring to fig. 3, an image with a brand mark is taken as a target image, and face detection is performed by using a face detection module to determine whether the target image includes face information, and if no face information is present, the whole process is ended. If the face information exists, the face information with the largest occupied area is determined, because the target image can comprise a plurality of pronouncing users, the face information of all pronouncing users can be extracted, and the face information with the largest occupied area can be extracted. And extracting the characteristics of the face information through a face characteristic extractor, and taking the extracted characteristics as target facial characteristics.
S250, inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image.
For example, with continued reference to fig. 3, the target image including the product information is input into a pre-trained target information recognition model, that is, a brand recognition model, and the target information recognition model may process the product information in the target image to obtain product identification information (feature vector) corresponding to the product information, where the obtained product identification information is used as target product identification information.
And S260, if the information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, determining that the target image is a reasonable image.
Specifically, after the target image features are determined, whether the facial image features are included in the recognition library can be determined, and if not, the product identification can be omitted. If yes, the target image can be input into a target information recognition model which is obtained through pre-training, so that product identification information is obtained. After the target facial features and the target product identification information are obtained, it may be determined based on this whether information consistent therewith is included in the recognition library.
In this embodiment, if the feature to be matched with the target facial image feature is matched from the recognition library, at least one piece of product identification information to be matched associated with the target facial image feature is retrieved; and if the at least one piece of product identification information to be matched comprises the target product identification information, determining that the target image is a reasonable image.
Specifically, the target facial image feature may be used as a root node, whether the recognition library includes a feature to be matched corresponding to the target facial image feature is determined, and if the feature to be matched exists, the product identifier to be matched associated with the target facial image feature is called. The cosine similarity between each adjusted product identifier to be matched and the target product identifier can be determined in sequence, and if the product identifier to be matched with the similarity threshold value higher than the preset similarity threshold value exists, the person and the product displayed in the target image are indicated to be reasonable, so that the target image is determined to be a reasonable image.
On the basis of the technical scheme, the method further comprises the following steps: and if the feature to be matched with the target facial image is not matched in the identification library, determining that the target image is an image to be checked, and sending reminding information.
In the actual application process, if the feature to be matched is not matched with the feature of the target image from the identification library, the facial feature of the user not included in the identification library can be preliminarily determined, the image can be used as the image to be checked, and the related user is reminded to conduct manual verification, so that the accuracy of the determined target image is improved.
For example, with continued reference to fig. 3, brand information appearing in the target image is entered into the expression information table along with face information. Searching whether the brand is a product of the code user. If the matching is successful, the product is checked to pass, and the verification is judged to be effective. If the matching fails, the false medical article substitution condition exists in the product, namely the matching fails, and a manual secondary confirmation process can be carried out, so that the accuracy of determining that the target image is a reasonable image is improved.
According to the technical scheme, when the face image information is detected to be included in the target image, the face image characteristics in the face image information are extracted, meanwhile, the target product identification information in the target image can be obtained based on the pre-trained target information identification model, if the identification library comprises the target product identification information in the product identification information related to the target image characteristics, the target image is determined to be a reasonable image, further, the objects included in the target image are determined to be reasonable products, and the technical effect of convenience in determining the object information is improved.
Example III
Fig. 4 is a schematic structural diagram of an apparatus for determining a reasonable image according to a third embodiment of the present invention, where the apparatus includes a facial feature determining module 310, a product identification information determining module 320, and a reasonable image determining module 330.
Wherein, the facial feature determining module 310 is configured to determine, when it is detected that the target image includes facial image information, a target facial feature corresponding to the facial image information; the product identification information determining module 320 is configured to input the target image into a pre-trained target information identification model, so as to obtain target product identification information corresponding to the target image; a reasonable image determining module 330, configured to determine that the target image is a reasonable image if information consistent with the target facial feature and the target product identification information is matched from a pre-established recognition library; the identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched.
On the basis of the above technical solution, the facial feature determining module is further configured to:
and determining whether the target image comprises facial image information or not based on a face detection module, if so, determining a target facial image in the target image, and extracting facial features in the target facial image to serve as target facial features.
On the basis of the technical scheme, the product identification information determining module is further used for:
and inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the product characteristics on the target image.
On the basis of the technical scheme, the reasonable image determining module is further used for:
retrieving at least one product identification information to be matched associated with the target facial image feature if a match to the target facial image feature is made from the recognition library;
And if the at least one piece of product identification information to be matched comprises the target product identification information, determining that the target image is a reasonable image.
On the basis of the technical scheme, the device further comprises a reminding module for:
and if the feature to be matched with the target facial image is not matched in the identification library, determining that the target image is an image to be checked, and sending reminding information.
On the basis of the technical scheme, the device further comprises: an identification library determination module comprising:
the feature extraction unit to be matched is used for extracting facial image features in each image to be processed to be used as features to be matched;
the product identification information determining unit is used for determining at least one product identification information to be matched, which is associated with the characteristics to be matched, respectively;
And the identification library generation unit is used for determining the identification library based on the identification information of at least one product to be matched associated with each feature to be matched and the feature to be matched.
On the basis of the technical scheme, the image to be processed comprises a speaker or a medical staff, and the product identification information comprises product brand information and/or product text information.
According to the technical scheme, when the face image information is detected to be included in the target image, the face image characteristics in the face image information are extracted, meanwhile, the target product identification information in the target image can be obtained based on the pre-trained target information identification model, if the identification library comprises the target product identification information in the product identification information related to the target image characteristics, the target image is determined to be a reasonable image, further, the objects included in the target image are determined to be reasonable products, and the technical effect of convenience in determining the object information is improved.
The reasonable image determining device provided by the embodiment of the invention can execute the method for determining the reasonable image provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present invention.
Example IV
Fig. 5 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention. Fig. 5 shows a block diagram of an exemplary electronic device 40 suitable for use in implementing the embodiments of the present invention. The electronic device 40 shown in fig. 5 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 5, the electronic device 40 is in the form of a general purpose computing device. Components of electronic device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, a bus 403 that connects the various system components (including the system memory 402 and the processing units 401).
Bus 403 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 40 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by electronic device 40 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 404 and/or cache memory 405. Electronic device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5, commonly referred to as a "hard drive"). Although not shown in fig. 5, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 403 through one or more data medium interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored in, for example, memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The electronic device 40 may also communicate with one or more external devices 409 (e.g., keyboard, pointing device, display 410, etc.), one or more devices that enable a user to interact with the electronic device 40, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device 40 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 411. Also, electronic device 40 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 412. As shown, network adapter 412 communicates with other modules of electronic device 40 over bus 403. It should be appreciated that although not shown in fig. 5, other hardware and/or software modules may be used in connection with electronic device 40, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 401 executes various functional applications and data processing by running programs stored in the system memory 402, for example, implements the method of determining a reasonable image provided by the embodiment of the present invention.
Example five
The fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions for performing a method of determining a reasonable image when executed by a computer processor.
The method comprises the following steps:
When the fact that the face image information is included in the target image is detected, determining a target face feature corresponding to the face image information; and
Inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image;
If the information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, determining that the target image is a reasonable image;
The identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (8)
1. A method of determining a reasonable image, comprising:
when the fact that the face image information is included in the target image is detected, determining target face features corresponding to the face image information; and
Inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image; the product identification information comprises feature vectors corresponding to product brand information and/or product text information;
If the information consistent with the target facial features and the target product identification information is matched from a pre-established identification library, the target image is determined to be a reasonable image, and the method specifically comprises the following steps: retrieving at least one product identification information to be matched associated with the target facial feature if a match to the feature to be matched to the target facial feature is made from the recognition library;
If the at least one piece of product identification information to be matched comprises the target product identification information, determining that the target image is a reasonable image;
The identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched;
The identification library is determined in the following manner: extracting facial image characteristics in each image to be processed as characteristics to be matched;
Respectively determining at least one product identification information to be matched associated with the characteristics to be matched;
The identification library is determined based on at least one product identification information to be matched associated with each feature to be matched and with the feature to be matched.
2. The method of claim 1, wherein the determining the target facial feature corresponding to the facial image information when the target image is detected to include the facial image information comprises:
determining whether facial image information is included in the target image based on a face detection module;
If yes, determining a target face image in the target image, and extracting facial features in the target face image to serve as target facial features.
3. The method according to claim 1, wherein the inputting the target image into a pre-trained target information recognition model to obtain target product identification information corresponding to the target image includes:
and inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the product characteristics on the target image.
4. The method as recited in claim 1, further comprising:
And if the feature to be matched with the target facial feature is not matched in the identification library, determining that the target image is an image to be checked, and sending reminding information.
5. The method according to claim 1, wherein the image to be processed comprises a speaker or a medical person.
6. An apparatus for determining a reasonable image, comprising:
a facial feature determination module for determining a target facial feature corresponding to face image information when it is detected that the face image information is included in a target image; and
The product identification information determining module is used for inputting the target image into a pre-trained target information identification model to obtain target product identification information corresponding to the target image; the product identification information comprises feature vectors corresponding to product brand information and/or product text information;
A reasonable image determining module, configured to determine that the target image is a reasonable image if information consistent with the target facial feature and the target product identification information is matched from a pre-established recognition library;
The reasonable image determining module is specifically used for retrieving at least one product identification information to be matched associated with the target facial feature if the feature to be matched with the target facial feature is matched from the identification library; if the at least one piece of product identification information to be matched comprises the target product identification information, determining that the target image is a reasonable image; the identification library comprises facial image features to be matched and at least one product identification information to be matched, wherein the product identification information is associated with the facial image features to be matched;
The identification library is determined in the following manner: extracting facial image characteristics in each image to be processed as characteristics to be matched;
Respectively determining at least one product identification information to be matched associated with the characteristics to be matched;
The identification library is determined based on at least one product identification information to be matched associated with each feature to be matched and with the feature to be matched.
7. An electronic device, the electronic device comprising:
One or more processors;
Storage means for storing one or more programs,
When executed by the one or more processors, causes the one or more processors to implement the method of determining a reasonable image as recited in any one of claims 1-5.
8. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements a method of determining a reasonable image according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110709584.XA CN113420677B (en) | 2021-06-25 | 2021-06-25 | Method, device, electronic equipment and storage medium for determining reasonable image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110709584.XA CN113420677B (en) | 2021-06-25 | 2021-06-25 | Method, device, electronic equipment and storage medium for determining reasonable image |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113420677A CN113420677A (en) | 2021-09-21 |
CN113420677B true CN113420677B (en) | 2024-06-11 |
Family
ID=77716668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110709584.XA Active CN113420677B (en) | 2021-06-25 | 2021-06-25 | Method, device, electronic equipment and storage medium for determining reasonable image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113420677B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446390A (en) * | 2018-03-22 | 2018-08-24 | 百度在线网络技术(北京)有限公司 | Method and apparatus for pushed information |
CN108960145A (en) * | 2018-07-04 | 2018-12-07 | 北京蜂盒科技有限公司 | Facial image detection method, device, storage medium and electronic equipment |
CN109767238A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | Product discriminating method, device, equipment and storage medium based on image recognition |
CN110737845A (en) * | 2019-10-15 | 2020-01-31 | 精硕科技(北京)股份有限公司 | method, computer storage medium and system for realizing information analysis |
CN110751501A (en) * | 2019-09-06 | 2020-02-04 | 平安科技(深圳)有限公司 | Commodity shopping guide method, device, equipment and storage medium in new retail mode |
CN111582954A (en) * | 2020-06-01 | 2020-08-25 | 湖南快乐阳光互动娱乐传媒有限公司 | False data identification method and device |
CN111949744A (en) * | 2020-07-31 | 2020-11-17 | 北京明略昭辉科技有限公司 | Associated information mining method and device based on knowledge graph |
CN112418062A (en) * | 2020-11-19 | 2021-02-26 | 北京软通智慧城市科技有限公司 | Face recognition method, face recognition system, electronic equipment and storage medium |
CN112995696A (en) * | 2021-04-20 | 2021-06-18 | 共道网络科技有限公司 | Live broadcast room violation detection method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107330904B (en) * | 2017-06-30 | 2020-12-18 | 北京乐蜜科技有限责任公司 | Image processing method, image processing device, electronic equipment and storage medium |
-
2021
- 2021-06-25 CN CN202110709584.XA patent/CN113420677B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108446390A (en) * | 2018-03-22 | 2018-08-24 | 百度在线网络技术(北京)有限公司 | Method and apparatus for pushed information |
CN108960145A (en) * | 2018-07-04 | 2018-12-07 | 北京蜂盒科技有限公司 | Facial image detection method, device, storage medium and electronic equipment |
CN109767238A (en) * | 2018-12-15 | 2019-05-17 | 深圳壹账通智能科技有限公司 | Product discriminating method, device, equipment and storage medium based on image recognition |
CN110751501A (en) * | 2019-09-06 | 2020-02-04 | 平安科技(深圳)有限公司 | Commodity shopping guide method, device, equipment and storage medium in new retail mode |
CN110737845A (en) * | 2019-10-15 | 2020-01-31 | 精硕科技(北京)股份有限公司 | method, computer storage medium and system for realizing information analysis |
CN111582954A (en) * | 2020-06-01 | 2020-08-25 | 湖南快乐阳光互动娱乐传媒有限公司 | False data identification method and device |
CN111949744A (en) * | 2020-07-31 | 2020-11-17 | 北京明略昭辉科技有限公司 | Associated information mining method and device based on knowledge graph |
CN112418062A (en) * | 2020-11-19 | 2021-02-26 | 北京软通智慧城市科技有限公司 | Face recognition method, face recognition system, electronic equipment and storage medium |
CN112995696A (en) * | 2021-04-20 | 2021-06-18 | 共道网络科技有限公司 | Live broadcast room violation detection method and device |
Non-Patent Citations (2)
Title |
---|
Matching-up celebrities’ brands with products and social causes;Ana Luisa Santos 等;《Journal of Product & Brand Management》;20191231;第28卷(第2期);242–255 * |
基于事件相关电位的代言人与产品匹配认知研究;王浩;《万方数据知识服务平台》;20200727;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113420677A (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11610394B2 (en) | Neural network model training method and apparatus, living body detecting method and apparatus, device and storage medium | |
US10817707B2 (en) | Attack sample generating method and apparatus, device and storage medium | |
CN109543058B (en) | Method, electronic device, and computer-readable medium for detecting image | |
CN112863683B (en) | Medical record quality control method and device based on artificial intelligence, computer equipment and storage medium | |
CN110619568A (en) | Risk assessment report generation method, device, equipment and storage medium | |
CN109034069B (en) | Method and apparatus for generating information | |
CN110232340B (en) | Method and device for establishing video classification model and video classification | |
CN109408829B (en) | Method, device, equipment and medium for determining readability of article | |
CN112650867B (en) | Picture matching method and device, electronic equipment and storage medium | |
US20190026575A1 (en) | Living body detecting method and apparatus, device and storage medium | |
CN113158656B (en) | Ironic content recognition method, ironic content recognition device, electronic device, and storage medium | |
CN110377750B (en) | Comment generation method, comment generation device, comment generation model training device and storage medium | |
CN110874534A (en) | Data processing method and data processing device | |
CN113094478B (en) | Expression reply method, device, equipment and storage medium | |
CN111986793A (en) | Diagnosis guide processing method and device based on artificial intelligence, computer equipment and medium | |
CN113096687A (en) | Audio and video processing method and device, computer equipment and storage medium | |
CN113254814A (en) | Network course video labeling method and device, electronic equipment and medium | |
CN112364068A (en) | Course label generation method, device, equipment and medium | |
CN112542172A (en) | Communication auxiliary method, device, equipment and medium based on online conference | |
CN113420677B (en) | Method, device, electronic equipment and storage medium for determining reasonable image | |
CN113627186B (en) | Entity relation detection method based on artificial intelligence and related equipment | |
CN113177479B (en) | Image classification method, device, electronic equipment and storage medium | |
CN113011919B (en) | Method and device for identifying object of interest, recommendation method, medium and electronic equipment | |
CN114067362A (en) | Sign language recognition method, device, equipment and medium based on neural network model | |
CN112055013A (en) | Automatic authentication method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |