Method and device for identifying fuzzy object in photo album, electronic equipment and storage medium

By screening the second photo associated with the first photo in the album and identifying the target features in the second photo, the problem of low blur object recognition accuracy is solved and higher recognition accuracy is achieved.

CN118658089APending Publication Date: 2024-09-17SHENZHEN WATER WORLD SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410681684.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

Existing methods for identifying blurry objects in photo albums have low accuracy, making it difficult to accurately identify objects when the background is blurry.

Method used

By determining the target characteristics of the target object in the first photo, filtering out the second photo associated with the first photo based on the shooting time, and determining the object to be identified in the second photo based on the target characteristics, ensuring that the clarity of the object to be identified is greater than Preset thresholds to improve recognition accuracy.

Benefits of technology

It improves the recognition accuracy of fuzzy objects in the photo album, ensures that the recognition results of the object to be recognized and the target object are consistent, and improves the accuracy and reliability of recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118658089A
    Figure CN118658089A
Patent Text Reader

Abstract

The embodiment of the invention provides a method for identifying a fuzzy object in a photo album, and the method comprises the steps: determining a target feature of a target object in a first photo, and enabling the definition of the target object to be smaller than a preset definition threshold value; determining at least one second photo in the photo album according to the shooting time of the first photo; based on the target feature, determining a to-be-recognized photo in the at least one second photo; performing object recognition on a to-be-recognized object in the to-be-recognized photo to obtain a recognition result of the to-be-recognized object; and marking the identification result of the to-be-identified object at the target object. As the target features of the to-be-recognized object and the target object are the same, it can be ensured that the to-be-recognized object and the target object are the same object or the same object, and therefore when object recognition is carried out based on the to-be-recognized object, it can be ensured that the recognition result of the to-be-recognized object is consistent with the recognition result of the target object, the accuracy is high, and the user experience is improved. Therefore, the accuracy of the method for identifying the fuzzy object in the photo album is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method, device, electronic equipment and storage medium for identifying blurred objects in a photo album. Background Art

[0002] With the popularization of smart terminals, the application functions of smart terminals are gradually increasing. When users encounter unfamiliar objects such as animals and plants, they can use the camera function to aim at the object and take a photo. They can identify the object on the spot and increase their knowledge. However, in fact, there is also a need to recognize, learn or review the objects in the background when looking through the photos in the album later. If the objects in the background are blurred, it is difficult to use recognition software to assist in recognition. At this time, it is also difficult to adjust its clarity again. If the object recognition is forced, the accuracy is low. Therefore, how to improve the recognition accuracy of the existing recognition method for blurred objects in the album has become an urgent problem to be solved. Summary of the invention

[0003] The embodiment of the present invention provides a method for identifying blurred objects in an album, aiming to solve the problem of low accuracy of existing methods for identifying blurred objects in an album. A second photo associated with the first photo is obtained by screening in the album according to the shooting time of the first photo, and an object to be identified having the same target feature as the target object is determined in the second photo according to the target feature of the target object. Since the target features are the same, it can be ensured that the object to be identified and the target object are the same object or the same object, and then when object identification is performed based on the object to be identified, it can be ensured that the identification result of the object to be identified is consistent with the identification result of the target object, with high accuracy, thereby improving the accuracy of the method for identifying blurred objects in an album.

[0004] In a first aspect, an embodiment of the present invention provides a method for identifying blurred objects in an album, characterized in that the method comprises the following steps:

[0005] Determining a target feature of a target object in the first photo, wherein the clarity of the target object is less than a preset clarity threshold;

[0006] Determining at least one second photo in the photo album according to the shooting time of the first photo;

[0007] Based on the target feature, determining a photo to be identified in at least one of the second photos, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold;

[0008] Perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as the recognition result of the target object.

[0009] Optionally, the parameters of the first photo further include a shooting location, and determining at least one second photo in the album according to the shooting time of the first photo includes:

[0010] Based on the shooting location of the first photo and the first photo, determining, from other photos continuously arranged in the album, photos of the same location as the shooting location;

[0011] According to the shooting time of the first photo, a photo of the same location that is within the same time range as the shooting time is determined from among the photos of the same location as the second photo.

[0012] Optionally, the target feature includes a color feature, and the step of determining a photo to be identified in at least one of the second photos based on the target feature further includes:

[0013] When the color feature of the target object is a special color feature, image module division is performed based on the distribution of each color on the second photo to obtain the outline and color of each module in the second photo;

[0014] Dividing the image into modules based on the distribution of each color on the first photo to obtain the outline and color of each module in the first photo;

[0015] The outline and color of each module in the first photo are compared with the outline and color of each module in the second photo, the second photo with successful comparison is determined as the candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0016] Optionally, the target feature includes a color feature and a color orientation feature, and the step of determining a photo to be identified in at least one of the second photos based on the target feature further includes:

[0017] When the color feature of the target object is a non-special color feature, based on the color feature, screening out at least one candidate target object having the same color feature as the target object in at least one of the second photos;

[0018] Extracting color and orientation features of the candidate target object;

[0019] Based on the color and orientation features of the target object and the color and orientation features of at least one candidate target object, determining the object to be identified from at least one candidate target object;

[0020] The photo corresponding to the object to be identified is used as a candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0021] Optionally, determining the photo to be identified from the candidate photos to be identified includes:

[0022] If there are multiple candidate photos to be identified, based on the time distance between the shooting time of each candidate photo to be identified and the shooting time of the first photo, the clarity of the object to be identified in the candidate photos to be identified is identified one by one in order from near to far, until the clarity of the object to be identified meets the preset clarity threshold, the clarity identification is stopped, and the candidate photos to be identified corresponding to the object to be identified that meets the clarity threshold are determined as the photos to be identified;

[0023] If there is only one candidate photo to be identified, the candidate photo to be identified is determined as the photo to be identified.

[0024] Optionally, the determining the photo to be identified from the candidate photos to be identified further includes:

[0025] By means of thumbnails or by extracting and magnifying the object to be identified, attaching the object to be identified in the candidate photo to the side of the target object for the user to confirm, and obtaining a confirmation instruction from the user;

[0026] The candidate photo to be identified corresponding to the user's confirmation instruction is determined as the photo to be identified.

[0027] Optionally, the candidate photos to be identified include photos extracted from a recycle bin of the album, and the objects to be identified in the candidate photos to be identified are attached to the target object by thumbnail or by extracting and enlarging the objects to be identified for the user to confirm, and obtaining the user's confirmation instruction includes:

[0028] When the candidate photo to be identified is the photo extracted from the recycle bin of the album, the object to be identified of the candidate photo to be identified is attached to the side of the target object by means of the thumbnail or the extraction and magnification of the object to be identified, and the source of the candidate photo to be identified corresponding to the object to be identified is marked as the recycle bin for the user to confirm, thereby obtaining the user's confirmation instruction.

[0029] In a second aspect, an embodiment of the present invention further provides a device for identifying blurred objects in a photo album, the device for identifying blurred objects in a photo album comprising:

[0030] A first determination module is used to determine a target feature of a target object in a first photo, wherein the clarity of the target object is less than a preset clarity threshold;

[0031] A second determining module, configured to determine at least one second photo in the album according to the shooting time of the first photo;

[0032] a third determination module, configured to determine, based on the target feature, a photo to be identified in at least one of the second photos, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold;

[0033] The first recognition module is used to perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as a recognition result of the target object.

[0034] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the method for identifying blurred objects in a photo album provided in an embodiment of the present invention when executing the computer program.

[0035] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for identifying blurred objects in an album provided in an embodiment of the present invention are implemented.

[0036] In an embodiment of the present invention, a target feature of a target object is determined in a first photo, and the clarity of the target object is less than a preset clarity threshold; at least one second photo is determined in the photo album according to the shooting time of the first photo; based on the target feature, a photo to be identified is determined in at least one of the second photos, and the photo to be identified includes an object to be identified that has the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold; object recognition is performed on the object to be identified in the photo to be identified to obtain a recognition result of the object to be identified, and the recognition result of the object to be identified is used as the recognition result of the target object. A second photo with a large time correlation with the first photo is screened in the photo album according to the shooting time of the first photo, and a photo set with a large similarity in the shooting scene can be quickly screened out through the time correlation, and then an object to be identified with the same target feature as the target object is determined in the second photo according to the target feature of the target object, so as to quickly and accurately find the object to be identified. Among them, since the search is conducted in a collection of time-related photos and the target features are the same, it can be ensured that the object to be identified and the target object are most likely the same object or the same object. Furthermore, when object recognition is performed based on the object to be identified, it can be ensured that the recognition result of the object to be identified is consistent with the recognition result of the target object, with high accuracy, thereby improving the recognition accuracy of blurred objects in the album. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 is a flow chart of a method for identifying blurred objects in an album provided by an embodiment of the present invention;

[0039] Figure 2 is a schematic structural diagram of a device for identifying blurred objects in a photo album provided in an embodiment of the present invention;

[0040] Figure 3 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] like Figure 1 As shown, Figure 1 : is a flow chart of a method for identifying blurred objects in an album provided by an embodiment of the present invention, comprising:

[0043] 101. Determine target features of the target object in the first photo.

[0044] In the embodiment of the present invention, the above-mentioned method for identifying blurred objects in a photo album can be applied to any electronic device with a photo album function, for example, it can be an electronic device such as a smart camera, a smart phone, and a smart tablet computer.

[0045] The first photo may be a photo that the user is currently browsing, and the target object may be an object selected by the user for object recognition, such as plants, animals, buildings, vehicles, and other objects in the picture. The clarity of the target object is less than a preset clarity threshold, and the clarity may be calculated by an image clarity evaluation algorithm. The image clarity evaluation algorithm may be a Tenengrad gradient algorithm, a Laplacian gradient algorithm, a variance algorithm, and the like. The image clarity evaluation algorithm may be applied to the electronic device with an album function.

[0046] The target feature may be a texture feature, color feature or other recognizable feature of the target object. If the target feature is a texture feature, the texture feature of the target object may be identified by a texture segmentation algorithm or a clustering algorithm. If the target feature is a color feature, the color feature of the target object may be identified by methods such as color clustering or color moment, or the target feature recognition model to be trained may be constructed by any deep learning algorithm capable of image processing, and the target feature recognition model to be trained may be trained by a training set containing texture features and labels corresponding to the texture features or a training set containing color features and labels corresponding to the color features to obtain a target feature recognition model, wherein the target feature recognition model may include a feature extraction layer, and the feature extraction layer is used to extract the target features in the image. The preset clarity threshold may be set by the clarity requirement of the object recognition algorithm. When the clarity of the target object is greater than the preset clarity threshold, the target object may be identified by the object recognition algorithm, otherwise the target object may not be identified by the object recognition algorithm.

[0047] In a possible embodiment, when a user is browsing an album and is very interested in an object and wants to know what kind of object the object is, the user can select the object for object recognition. After selection, the object is used as the target object and the photo corresponding to the object is used as the first photo. The clarity of the target object is calculated by the image clarity evaluation algorithm, and the clarity is compared with a preset clarity threshold. When the clarity of the target object is less than the preset clarity threshold, the target object can be marked by the recognition method of blurred objects in the album. Otherwise, the target object can be directly recognized by the object recognition algorithm and the recognition result can be marked next to the target object.

[0048] 102. Determine at least one second photo in the photo album according to the shooting time of the first photo.

[0049] In the embodiment of the present invention, it can be understood that the first photo and the second photo are both taken by an image acquisition device, rather than being fabricated by electronic equipment or painting, etc., so the first photo or the second photo has a corresponding shooting time.

[0050] The above-mentioned second photo can be one or more photos. Specifically, according to the shooting time of the above-mentioned first photo, a time range can be defined on the timeline, and the above-mentioned album can be searched to see whether there are photos whose shooting time is within the above-mentioned time range. If there are photos whose shooting time is within the above-mentioned time range, they will be used as the above-mentioned second photo.

[0051] The time range can be set according to the time interval between the 3 to 5 photos in the album that are closest to the first photo in terms of time distance. When the time interval is larger, it means that there are fewer photos in the album that are related to the first photo, so the time range can be set smaller accordingly. When the time interval is smaller, it means that there are more photos in the album that are related to the first photo, so the time range can be set larger.

[0052] 103. Determine a photo to be identified in at least one second photo based on the target feature.

[0053] In an embodiment of the present invention, the above-mentioned photo to be identified includes an object to be identified having the same target features as the target object, and the clarity of the object to be identified is greater than a preset clarity threshold. It can be understood that the above-mentioned object to be identified has the same target features as the above-mentioned target object, which means that the above-mentioned object to be identified and the above-mentioned target object may be the same type of object, or the same object.

[0054] Specifically, the target feature of the target object may be compared with the object in the second photo, the successfully matched object may be used as the object to be identified, and the photo containing the object to be identified may be used as the photo to be identified.

[0055] In this embodiment, the target feature preferably includes the color feature of the target object. That is, in the second photo selected based on the shooting time of the first photo, as long as there is an object with the same color, it can be temporarily considered as an alternative photo to be identified (the alternative photo to be identified will be further confirmed in subsequent steps for information such as object clarity before being confirmed as the final photo to be identified).

[0056] It is worth mentioning that in this embodiment, it is not necessary to judge and count all the colors in the first photo and the second photo. In fact, as long as there is a point / corner of an object with the same target color in the consecutive photos (the shooting time of the first photo is used to confirm the time range before and after, thereby obtaining a certain number of consecutively arranged photos), it is likely to be the target object. In this embodiment, it is selected as an alternative photo to be identified. (It can be understood that the color feature can also be equivalently replaced by other target features)

[0057] 104. Perform object recognition on the object to be recognized in the photo to obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as a recognition result of the target object.

[0058] In an embodiment of the present invention, the above-mentioned object recognition can be constructed by any deep learning algorithm to obtain an object recognition model, and the above-mentioned photo to be recognized is input into the above-mentioned object recognition model to realize object recognition. The above-mentioned deep learning algorithm can be a YOLO series algorithm, an SSD algorithm, a Faster R-CNN algorithm, etc.

[0059] Specifically, the above-mentioned object recognition model can be deployed on an object recognition platform, and the above-mentioned object recognition platform can be constructed through a server or a server cluster. The above-mentioned server or server cluster can be any electronic device with image recognition, image processing, data transmission, data storage and other functions.

[0060] In a possible embodiment, after the electronic device with the album function determines the photo to be identified in at least one of the second photos based on the target features, the object to be identified in the photo to be identified is marked to obtain the marked photo to be identified, and the marked photo to be identified is uploaded to the object recognition platform through the data transmission function, and the object recognition platform inputs the marked photo to be identified into the object recognition model, so that the object recognition model performs object recognition on the object to be identified in the marked photo to be identified according to the mark, and obtains the recognition result of the object to be identified. The recognition result of the object to be identified is used as the recognition result of the target object, and the target object is marked by the image coordinates of the target object in the first photo for the user to view.

[0061] In an embodiment of the present invention, when the object recognition model performs object recognition on the object to be recognized and obtains the recognition result, the object recognition platform returns the recognition result to the electronic device with an album function through the data transmission function. The electronic device with an album function can mark the recognition result of the object to be recognized at the target object for user viewing.

[0062] Normally, the above recognition result is of text type. For example, when the above object to be identified is a rose, the above recognition result is "rose", and the recognition result of the above target object is also "rose". The knowledge related to roses can be obtained through the above data transmission function and attached to the drop-down list of the above electronic device with album function for users to view.

[0063] In an embodiment of the present invention, a target feature of a target object is determined in a first photo, and the clarity of the target object is less than a preset clarity threshold; at least one second photo is determined in the photo album according to the shooting time of the first photo; based on the target feature, a photo to be identified is determined in at least one of the second photos, and the photo to be identified includes an object to be identified that has the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold; object recognition is performed on the object to be identified in the photo to be identified to obtain a recognition result of the object to be identified, and the recognition result of the object to be identified is used as the recognition result of the target object. A second photo with a large time correlation with the first photo is screened in the photo album according to the shooting time of the first photo, and a photo set with a large similarity in the shooting scene can be quickly screened out through the time correlation, and then an object to be identified with the same target feature as the target object is determined in the second photo according to the target feature of the target object, so as to quickly and accurately find the object to be identified. Among them, since the search is conducted in a collection of time-related photos and the target features are the same, it can be ensured that the object to be identified and the target object are most likely the same object or the same object. Furthermore, when object recognition is performed based on the object to be identified, it can be ensured that the recognition result of the object to be identified is consistent with the recognition result of the target object, with high accuracy, thereby improving the recognition accuracy of blurred objects in the album.

[0064] It can be understood that in the specific implementation of this application, data related to the first photo, the second photo, etc. is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0065] Optionally, in the step of determining at least one second photo in the album according to the shooting time of the first photo, it is also possible to determine, based on the shooting location of the first photo and the first photo, various same-location photos with the same shooting location from other photos arranged continuously in the album; and according to the shooting time of the first photo, determine, among various same-location photos, the same-location photos within the same time range as the shooting time as the second photo.

[0066] In an embodiment of the present invention, the parameters of the above-mentioned first photo may include not only the above-mentioned shooting time but also the shooting location. The above-mentioned shooting location may be longitude and latitude coordinates, etc. In the above-mentioned photo album, photos with the same or similar (within a certain range) shooting location as the first photo are determined as the above-mentioned same-location photos. According to the shooting time of the first photo, the same-location photos with continuous shooting time are determined from each same-location photo as the second photo. And among the above-mentioned photos of the same location, the photos of the same location that are within the same time range as the shooting time of the above-mentioned first photo are selected as the second photo. The above-mentioned time range can be set according to historical recognition experience, or can also be set according to the historical shooting habits of the user using the above-mentioned album. For example, the historical shooting habits of the above-mentioned user are used to using the continuous shooting function to shoot photos, and are used to shooting the same object at multiple angles at the same time. In this case, there are often photos of the same location with relatively close shooting times in the above-mentioned album. At this time, the above-mentioned time range can be set to be smaller. On the contrary, if the above-mentioned user is not used to using the continuous shooting function to shoot photos, and is used to taking photos of a certain object when passing by a certain place, the shooting time of the photos of the same location in the above-mentioned album may be relatively far away. At this time, the above-mentioned time range can be set to be larger accordingly. The terminal can automatically set the above-mentioned time range by extracting the user's usage data. Of course, the user can also manually confirm the time range, or the user can adjust the above-mentioned time range by his own means.

[0067] In a possible embodiment, if there are no photos taken at the same location (i.e., the latitude and longitude coordinates are the same or close (within a certain range)), the location space range can also be set according to the location space interval between the three (or five, etc.) photos in the album that are closest to the first photo in terms of location space distance. The larger the space interval between the three photos and the first photo, the less relevant the first photo is in the album. Therefore, in order to avoid extracting too many useless second photos and reducing recognition efficiency, the above-mentioned space range can be set smaller accordingly. The smaller the above-mentioned space interval, the greater the relevance between the first photo and the album. Therefore, the above-mentioned space range can be set larger, so that more accurate photos to be identified can be screened out from a sufficient number of second photos.

[0068] After obtaining the above-mentioned spatial range, combine the above-mentioned spatial range and the above-mentioned time range to obtain the time-space range. At this time, you can directly search in the above-mentioned album whether there is a photo whose shooting time is within the above-mentioned time-space range. If there is a photo whose shooting time is within the above-mentioned time-space range, it will be used as the above-mentioned second photo.

[0069] Optionally, in the step of determining a photo to be identified in at least one of the second photos based on the target features, when the color features of the target object are special color features, image module division can be performed based on the color distributions on the second photo to obtain the outlines and colors of each module in the second photo; image module division can be performed based on the color distributions on the first photo to obtain the outlines and colors of each module in the first photo; the outlines and colors of each module in the first photo are compared with the outlines and colors of each module in each of the second photos, the second photo that has been successfully compared is determined as a candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0070] In an embodiment of the present invention, the target features include color features. For example, the special color features include green. Green usually represents plants and is easily visible everywhere, so the misjudgment rate is relatively high. Therefore, when the color features are special color features, image module division can be performed based on the color distributions on the first photo to obtain image modules of the first photo. The contours of the image modules are extracted based on a contour extraction algorithm to obtain contours. The contours may be contour point sets. Image module division is performed based on the color distributions on the second photos to obtain image modules of the second photos. The contours of the image modules are extracted based on a contour extraction algorithm to obtain contours. The contours and colors of the modules in the first photo are compared with the contours and colors of the modules in the second photos.

[0071] It is worth mentioning that the outline and color of each module can actually be multiple color modules distributed throughout the photo. In this embodiment, considering that in the same environment, even if the shooting angle is offset in the up, down, left, and right directions, the general color block distribution of the background / scene is still the same, therefore, when the color feature of the target object is a special color feature, this method can be used for auxiliary judgment. For example, if the color distribution in a second photo is a green module on the upper left, the right side is mainly an earth color module, and the lower side is parallel to a black module and a red module, and the color distribution of the first photo is also a green module on the upper left, the right side is mainly an earth color module, and the lower side is parallel to a black module and a red module, then the comparison result of the second photo is successful, and it can be used as the above-mentioned alternative photo to be identified. When there is only one alternative photo to be identified, the above-mentioned alternative photo to be identified can be directly used as the above-mentioned photo to be identified. When there are multiple alternative photos to be identified (that is, there are multiple second photos with successful comparison results), one photo to be identified can be selected according to the shooting time of the multiple alternative photos to be identified for identification.

[0072] It should be noted that when the above color feature is a non-characteristic color feature, this method can also be used for auxiliary judgment to improve the accuracy of the judgment.

[0073] Optionally, based on the target feature, when the color feature of the target object is a non-special color feature, based on the color feature, at least one alternative target object with the same color feature as the target object is screened out from at least one of the second photos; the color orientation feature of the alternative target object is extracted; based on the color orientation feature of the target object and the color orientation feature of at least one of the alternative target objects, the object to be identified is determined from at least one of the alternative target objects; the photo corresponding to the object to be identified is used as a candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0074] In an embodiment of the present invention, the target feature includes a color feature and a color orientation feature. It can be understood that the color orientation feature can be understood as the coordinates or orientation of the color of the target object in the photo. In each second photo, only one candidate target object can be determined. Based on the color feature of the target object, at least one candidate target object with the same color feature as the target object is selected in at least one second photo. The color orientation feature of the target object and the color orientation feature of at least one candidate target object are compared. The candidate target object with the color orientation feature closest to the color orientation feature of the target object in at least one candidate target object is determined as the object to be identified, and the photo corresponding to the object to be identified is used as the candidate photo to be identified. When there is only one candidate photo to be identified, the candidate photo to be identified can be directly used as the photo to be identified. When there are multiple candidate photos to be identified (i.e., there are multiple second photos with successful comparison results), one photo to be identified can be selected for identification based on the shooting time of the multiple candidate photos to be identified.

[0075] For example, in the first photo, the target features of a target object are "yellow" and "yellow in the lower left corner", and in the second photo, there is also a photo that includes the features of "yellow" and "yellow in the lower left corner". At this time, when the yellow target in the photo has good clarity, the photo can be confirmed as the photo to be identified. It is worth mentioning that sometimes even if the other second photo only captures a corner of the original target object, the orientation in the photo is still on that side. Therefore, superimposing the orientation feature on the basis of the color feature of the target object will make the search result more accurate.

[0076] It should be noted that when the target feature is a special color feature, the alternative photo to be identified can also be selected by superimposing the orientation feature on the basis of the color feature, and the accuracy of the search result can still meet the recognition requirements of most photos. Alternatively, regardless of whether the target feature is a special color feature or a non-special color feature, the second photo can be screened by superimposing the outline of the image module, the color of the image module, the color feature, and the color orientation feature to obtain the photo to be identified.

[0077] Optionally, in the step of determining the photo to be identified from the candidate photos to be identified, if there are multiple candidate photos to be identified, the clarity of the object to be identified in the candidate photos to be identified is identified one by one in order from near to far based on the time distance between the shooting time of each of the candidate photos to be identified and the shooting time of the first photo, until the clarity of the object to be identified meets the preset clarity threshold, stopping the clarity recognition, and determining the alternative photo to be identified corresponding to the object to be identified that meets the clarity threshold as the photo to be identified; if there is only one alternative photo to be identified, the alternative photo to be identified is determined as the photo to be identified.

[0078] In an embodiment of the present invention, if there are multiple candidate photos to be identified, the priority of each candidate target object is arranged in order from near to far based on the time distance between the shooting time of each candidate photo to be identified and the shooting time of the first photo, and a priority ranking table of each candidate target object is obtained. In the priority ranking table, the priority of the candidate target object corresponding to the second photo with a shorter time distance is higher, and vice versa. The clarity of the object to be identified in the candidate photos to be identified is extracted one by one from the priority ranking table in order from high to low, until the clarity is extracted to meet the preset clarity threshold, the extraction is stopped, and the candidate photo to be identified corresponding to the object to be identified whose clarity meets the preset clarity threshold is used as the photo to be identified. If there is only one candidate photo to be identified, the candidate photo to be identified can be directly determined as the photo to be identified, and the photo to be identified is identified in subsequent processing.

[0079] Optionally, in the step of determining the photo to be identified from the candidate photos to be identified, the object to be identified in the candidate photos to be identified can be attached to the side of the target object in the form of thumbnails or by extracting and enlarging the object to be identified for the user to confirm, thereby obtaining a confirmation instruction from the user; and the candidate photo to be identified corresponding to the user's confirmation instruction is determined as the photo to be identified.

[0080] In an embodiment of the present invention, the thumbnail can be understood as a preview image, a preview file, or a preview icon, which is a small image of the candidate object to be identified after being processed in a compressed manner, usually compressed to one eighth to one twelfth of the size of the original image file, and the small image is attached to the side of the target object for the user to compare. Alternatively, the object to be identified can be extracted from the second photo and enlarged to obtain a processed comparison image, and the comparison image is attached to the side of the target object for the user to compare. A confirmation option can be provided during the comparison process, and the user obtains the confirmation instruction by clicking the confirmation option, wherein the confirmation option can be confirmation of successful comparison or confirmation of failed comparison. If the confirmation instruction is confirmation of successful comparison, the candidate photo to be identified can be determined as the photo to be identified, and the photo to be identified can be transmitted to the object recognition platform for identification through the data transmission function.

[0081] It should be noted that if there is only one candidate photo to be identified available for the user to confirm, and the confirmation instruction is to confirm that the comparison has failed, the above candidate photo to be identified can be eliminated, and the above time range, space range or the above time and space range can be appropriately adjusted to re-screen the candidate photos to be identified, and the re-screening will be stopped when the user confirmation instruction is to confirm that the comparison has been successful.

[0082] If there are multiple candidate photos to be identified available for the user to confirm, the user can be guided to select a photo that is closest to the first photo from the multiple photos and issue a confirmation instruction to confirm that the comparison is successful, and the candidate photo to be identified corresponding to the above confirmation instruction is determined as the above photo to be identified.

[0083] Optionally, in the step of attaching the object to be identified in the alternative photo to be identified next to the target object by means of thumbnails or by extracting and enlarging the object to be identified for user confirmation, and obtaining a confirmation instruction from the user, it is also possible that when the alternative photo to be identified is the photo extracted from the recycle bin of the album, the object to be identified in the alternative photo to be identified is attached next to the target object by means of thumbnails or by extracting and enlarging the object to be identified, and the source of the alternative photo to be identified corresponding to the object to be identified is marked as the recycle bin, for user confirmation, and obtaining a confirmation instruction from the user.

[0084] In an embodiment of the present invention, the second photo may include a photo extracted from a recycle bin of an album. The recycle bin may also be understood as a garbage bin, a station for deleted photos, etc. When the candidate photo to be identified is a photo extracted from the recycle bin of an album, the object to be identified may be attached to the side of the target object in the form of a thumbnail or by extracting and enlarging the object to be identified, and the source corresponding to the object to be identified may be marked, and the user may determine whether the photo at the source is reliable.

[0085] like Figure 2 As shown, an embodiment of the present invention further provides a device for identifying blurred objects in an album, comprising:

[0086] A first determination module 201 is used to determine a target feature of a target object in a first photo, wherein the clarity of the target object is less than a preset clarity threshold;

[0087] A second determining module 202, configured to determine at least one second photo in the album according to the shooting time of the first photo;

[0088] A third determination module 203 is used to determine a photo to be identified in at least one of the second photos based on the target feature, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold;

[0089] The first recognition module 204 is used to perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as a recognition result of the target object.

[0090] Optionally, the parameters of the first photo also include a shooting location, and the second determining module 202 includes:

[0091] A first determining submodule is used to determine, based on the shooting location of the first photo and the first photo, photos of the same location as the shooting location from other photos continuously arranged in the album;

[0092] The second determining submodule is used to determine, according to the shooting time of the first photo, a photo of the same location that is within the same time range as the shooting time of the first photo from among the photos of the same location as the second photo.

[0093] Optionally, the target feature includes a color feature, and the third determination module 203 includes:

[0094] a third determination submodule, configured to, when the color feature of the target object is a special color feature, divide the image into modules based on the distribution of each color on the second photo, so as to obtain the outline and color of each module in the second photo;

[0095] A first segmentation submodule, configured to perform image module segmentation based on the distribution of each color on the first photo, to obtain the outline and color of each module in the first photo;

[0096] The first comparison submodule is used to compare the outline and color of each module in the first photo with the outline and color of each module in the second photo, determine the second photo that has been successfully compared as an alternative photo to be identified, and determine the photo to be identified from the alternative photos to be identified.

[0097] Optionally, the target feature includes a color feature and a color orientation feature. Optionally, the third determination module 203 further includes:

[0098] A first screening submodule is configured to screen out at least one candidate target object having the same color feature as the target object in at least one second photo based on the color feature when the color feature of the target object is a non-special color feature;

[0099] An extraction submodule, used to extract the color and position features of the candidate target object;

[0100] A fourth determination submodule, configured to determine the object to be identified from at least one of the candidate target objects based on the color and orientation features of the target object and the color and orientation features of at least one of the candidate target objects;

[0101] The fifth determination submodule is used to use the photo corresponding to the object to be identified as a candidate photo to be identified, and determine the photo to be identified from the candidate photos to be identified.

[0102] Optionally, the first comparison submodule or the fifth determination submodule includes:

[0103] A first determining unit is used for, if there are multiple candidate photos to be identified, to identify the clarity of the object to be identified in the candidate photos to be identified one by one in order from near to far based on the time distance between the shooting time of each of the candidate photos to be identified and the shooting time of the first photo, until the clarity of the object to be identified meets the preset clarity threshold, stopping the clarity recognition, and determining the candidate photos to be identified corresponding to the object to be identified that meets the clarity threshold as the photo to be identified;

[0104] The second determining unit is used to determine the candidate photo to be identified as the photo to be identified if there is only one candidate photo to be identified.

[0105] Optionally, the first comparison submodule or the fifth determination submodule further includes:

[0106] A first confirmation unit is used to attach the object to be identified in the candidate photo to be identified next to the target object by means of thumbnail or by means of extracting and enlarging the object to be identified, so as to provide confirmation to the user and obtain a confirmation instruction from the user;

[0107] A third determining unit is used to determine the candidate photo to be identified corresponding to the user's confirmation instruction as the photo to be identified.

[0108] Optionally, the second photo includes a photo extracted from a recycle bin of the photo album, and the first confirmation unit includes:

[0109] The confirmation subunit is used for attaching the object to be identified of the candidate photo to be identified next to the target object by means of thumbnails or by extracting and enlarging the object to be identified, and marking the source of the candidate photo to be identified corresponding to the object to be identified as the recycle bin, for the user to confirm, thereby obtaining the user's confirmation instruction.

[0110] like Figure 3 As shown, an embodiment of the present invention further provides an electronic device, characterized in that it includes a processor, and the processor can execute any of the above-mentioned methods for identifying blurred objects in a photo album.

[0111] Specifically, the method comprises a processor 301 and a memory 302, and a computer program for executing the method for identifying blurred objects in a photo album, which is stored in the memory 302 and can be run on the processor 301, wherein:

[0112] The processor 301 runs the computer program of the method for identifying blurred objects in the album stored in the memory 302, and performs the following steps:

[0113] Determining a target feature of a target object in the first photo, wherein the clarity of the target object is less than a preset clarity threshold;

[0114] Determining at least one second photo in the photo album according to the shooting time of the first photo;

[0115] Based on the target feature, determining a photo to be identified in at least one of the second photos, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold;

[0116] Perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as the recognition result of the target object.

[0117] Optionally, the parameter of the first photo further includes a shooting location, and the processor 301 determines at least one second photo in the album according to the shooting time of the first photo, including:

[0118] Based on the shooting location of the first photo and the first photo, determining, from other photos continuously arranged in the album, photos of the same location as the shooting location;

[0119] According to the shooting time of the first photo, a photo of the same location that is within the same time range as the shooting time is determined from among the photos of the same location as the second photo.

[0120] Optionally, the target feature includes a color feature, and the processor 301 determines the photo to be identified in at least one of the second photos based on the target feature, further comprising:

[0121] When the color feature of the target object is a special color feature, image module division is performed based on the distribution of each color on the second photo to obtain the outline and color of each module in the second photo;

[0122] Dividing the image into modules based on the distribution of each color on the first photo to obtain the outline and color of each module in the first photo;

[0123] The outline and color of each module in the first photo are compared with the outline and color of each module in the second photo, the second photo with successful comparison is determined as the candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0124] Optionally, the target feature includes a color feature and a color orientation feature, and the processor 301 determines the photo to be identified in at least one of the second photos based on the target feature, and further includes:

[0125] When the color feature of the target object is a non-special color feature, based on the color feature, screening out at least one candidate target object having the same color feature as the target object in at least one of the second photos;

[0126] Extracting color and orientation features of the candidate target object;

[0127] Based on the color and orientation features of the target object and the color and orientation features of at least one candidate target object, determining the object to be identified from at least one candidate target object;

[0128] The photo corresponding to the object to be identified is used as a candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

[0129] Optionally, the determining of the photo to be identified from the candidate photos to be identified performed by the processor 301 includes:

[0130] If there are multiple candidate photos to be identified, based on the time distance between the shooting time of each candidate photo to be identified and the shooting time of the first photo, the clarity of the object to be identified in the candidate photos to be identified is identified one by one in order from near to far, until the clarity of the object to be identified meets the preset clarity threshold, the clarity identification is stopped, and the candidate photos to be identified corresponding to the object to be identified that meets the clarity threshold are determined as the photos to be identified;

[0131] If there is only one candidate photo to be identified, the candidate photo to be identified is determined as the photo to be identified.

[0132] Optionally, the determining of the photo to be identified from the candidate photos to be identified performed by the processor 301 further includes:

[0133] By means of thumbnails or by extracting and magnifying the object to be identified, attaching the object to be identified in the candidate photo to the side of the target object for the user to confirm, and obtaining a confirmation instruction from the user;

[0134] The candidate photo to be identified corresponding to the user's confirmation instruction is determined as the photo to be identified.

[0135] Optionally, the candidate photos to be identified include photos extracted from a recycle bin of the album, and the processor 301 executes the thumbnail method or the method of extracting and magnifying the object to be identified to attach the object to be identified in the candidate photos to the side of the target object for the user to confirm, and obtains the user's confirmation instruction, including:

[0136] When the candidate photo to be identified is the photo extracted from the recycle bin of the album, the object to be identified of the candidate photo to be identified is attached to the side of the target object by means of the thumbnail or the extraction and magnification of the object to be identified, and the source of the candidate photo to be identified corresponding to the object to be identified is marked as the recycle bin for the user to confirm, thereby obtaining the user's confirmation instruction.

[0137] An embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the computer program implements the various processes of the method for identifying blurred objects in an album or the method for identifying blurred objects in an application-side album provided in the embodiment of the present invention, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0138] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the above-mentioned computer-readable storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0139] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.

Claims

1. A method for identifying blurred objects in a photo album, characterized in that: The method comprises the following steps: Determining a target feature of a target object in the first photo, wherein the clarity of the target object is less than a preset clarity threshold; Determining at least one second photo in the photo album according to the shooting time of the first photo; Based on the target feature, determining a photo to be identified in at least one of the second photos, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold; Perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as the recognition result of the target object.

2. The method for identifying blurred objects in a photo album as claimed in claim 1, characterized in that: The parameters of the first photo also include a shooting location, and determining at least one second photo in the album according to the shooting time of the first photo includes: Based on the shooting location of the first photo and the first photo, determining, from other photos continuously arranged in the album, photos of the same location as the shooting location; According to the shooting time of the first photo, a photo of the same location that is within the same time range as the shooting time is determined from among the photos of the same location as the second photo.

3. The method for identifying blurred objects in an album as claimed in claim 1, characterized in that: The target feature includes a color feature, and the step of determining a photo to be identified in at least one of the second photos based on the target feature further includes: When the color feature of the target object is a special color feature, image module division is performed based on the distribution of each color on the second photo to obtain the outline and color of each module in the second photo; Dividing the image into modules based on the distribution of each color on the first photo to obtain the outline and color of each module in the first photo; The outline and color of each module in the first photo are compared with the outline and color of each module in the second photo, the second photo with successful comparison is determined as the candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

4. The method for identifying blurred objects in an album as claimed in claim 1, characterized in that: The target feature includes a color feature and a color orientation feature, and the step of determining a photo to be identified in at least one of the second photos based on the target feature further includes: When the color feature of the target object is a non-special color feature, based on the color feature, screening out at least one candidate target object having the same color feature as the target object in at least one of the second photos; Extracting color and orientation features of the candidate target object; Based on the color and orientation features of the target object and the color and orientation features of at least one candidate target object, determining the object to be identified from at least one candidate target object; The photo corresponding to the object to be identified is used as a candidate photo to be identified, and the photo to be identified is determined from the candidate photos to be identified.

5. The method for identifying blurred objects in a photo album as claimed in claim 3 or 4, characterized in that: The step of determining the photo to be identified from the candidate photos to be identified includes: If there are multiple candidate photos to be identified, based on the time distance between the shooting time of each candidate photo to be identified and the shooting time of the first photo, the clarity of the object to be identified in the candidate photos to be identified is identified one by one in order from near to far, until the clarity of the object to be identified meets the preset clarity threshold, the clarity identification is stopped, and the candidate photos to be identified corresponding to the object to be identified that meets the clarity threshold are determined as the photos to be identified; If there is only one candidate photo to be identified, the candidate photo to be identified is determined as the photo to be identified.

6. The method for identifying blurred objects in a photo album as claimed in claim 3 or 4, characterized in that: The step of determining the photo to be identified from the candidate photos to be identified further includes: By means of thumbnails or by extracting and magnifying the object to be identified, attaching the object to be identified in the candidate photo to the side of the target object for the user to confirm, and obtaining a confirmation instruction from the user; The candidate photo to be identified corresponding to the user's confirmation instruction is determined as the photo to be identified.

7. The method for identifying blurred objects in a photo album as claimed in claim 6, characterized in that: The candidate photos to be identified include photos extracted from the recycle bin of the album, and the objects to be identified in the candidate photos to be identified are attached to the side of the target object by thumbnail or by extracting and enlarging the objects to be identified for the user to confirm, and obtaining the confirmation instruction of the user includes: When the candidate photo to be identified is the photo extracted from the recycle bin of the album, the object to be identified of the candidate photo to be identified is attached to the side of the target object by means of the thumbnail or the extraction and magnification of the object to be identified, and the source of the candidate photo to be identified corresponding to the object to be identified is marked as the recycle bin for the user to confirm, thereby obtaining the user's confirmation instruction.

8. A device for identifying blurred objects in a photo album, characterized in that: The device for identifying blurred objects in the album comprises: A first determination module is used to determine a target feature of a target object in a first photo, wherein the clarity of the target object is less than a preset clarity threshold; A second determining module, configured to determine at least one second photo in the album according to the shooting time of the first photo; a third determining module, configured to determine, based on the target feature, a photo to be identified in at least one of the second photos, wherein the photo to be identified includes an object to be identified having the same target feature as the target object, and the clarity of the object to be identified is greater than the preset clarity threshold; The first recognition module is used to perform object recognition on the object to be recognized in the photo to be recognized, obtain a recognition result of the object to be recognized, and use the recognition result of the object to be recognized as a recognition result of the target object.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the method for identifying blurred objects in an album as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for identifying blurred objects in an album as described in any one of claims 1 to 7 are implemented.