A method, device and electronic device for processing archived pictures

By obtaining and analyzing the latitude and longitude information of archived pictures in the target archive, determining the judgment range of misarchived pictures and quasi-archived pictures, the problem of low archiving accuracy in the prior art is solved, and a higher archiving accuracy is achieved.

CN113495972BActive Publication Date: 2025-02-14SHENZHEN INTELLIFUSION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010249432.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-01
Publication Date
2025-02-14
Estimated Expiration
2040-04-01

AI Technical Summary

Technical Problem

Existing archive solutions have the problem of low archiving accuracy, especially because of the limitations of classification algorithms, very few images will be erroneously archived.

Method used

By obtaining the image information of archived pictures in the target archive, including latitude and longitude information, drawing distribution maps, obtaining information of discrete points and mode points, determining the judgment range of misarchive pictures and quasi-archive pictures, and making judgments based on this range and processing misarchives Pictures and quasi-archived pictures.

Benefits of technology

Improve the archive accuracy of archives, and by eliminating misarchive pictures and retaining accurately archived pictures, the overall accuracy of the archived target archives is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113495972B_ABST
    Figure CN113495972B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a method, device and electronic device for processing archived pictures, the method is used to process archived pictures in a picture archive, the method includes: obtaining picture information of archived pictures in a target archive, the archived pictures include mis-archived pictures and quasi-archived pictures, the picture information includes longitude and latitude information; drawing a distribution map of archived pictures according to the picture information; obtaining discrete point information of discrete points and mode point information of mode points in the distribution map; determining the judgment range of the mis-archived pictures and quasi-archived pictures according to the discrete point information and mode point information; judging the mis-archived pictures and quasi-archived pictures in the target archive based on the judgment range; processing the mis-archived pictures and quasi-archived pictures. The present invention can re-process the archived pictures of the target archive after archiving, thereby improving the archiving accuracy of the target archive.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of archive technology, and in particular to a method, device and electronic equipment for processing archived pictures. Background Art

[0002] The existing archiving solution is to archive the new data stream according to the similarity with the archives in the cover library through the existing cover library. In the archiving process, most of the pictures will be archived correctly, but a few pictures will be archived incorrectly. Due to the limitations of the classification algorithm, it is impossible to achieve 100% perfect archiving by adjusting the algorithm. It can be seen that the existing archiving solution has the problem of low archiving accuracy. Summary of the invention

[0003] The embodiment of the present invention provides a method for processing archived pictures, which can improve the archiving accuracy of archives.

[0004] In a first aspect, an embodiment of the present invention provides a method for processing archived pictures, the method being used to process archived pictures in a picture archive, the method comprising:

[0005] Acquire image information of archived images in a target archive, wherein the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information;

[0006] Draw a distribution map of archived pictures according to the picture information;

[0007] Obtain the discrete point information of the discrete points in the distribution graph and the mode point information of the mode points;

[0008] Determine the judgment range of the mis-filed picture and the quasi-filed picture according to the discrete point information and the majority point information;

[0009] Determine the mis-filed pictures and quasi-filed pictures in the target file based on the determination range;

[0010] The mis-filed pictures and the quasi-filed pictures are processed.

[0011] Optionally, the discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the judgment range includes the time judgment range; the step of determining the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information includes:

[0012] Calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point;

[0013] Calculate the actual time required to travel the actual distance according to the actual distance;

[0014] The time judgment range of the mis-filed picture is determined according to the discrete point time information and the actual time.

[0015] Optionally, the picture information further includes time information, and the step of determining the mis-filed pictures and the quasi-filed pictures in the target archive based on the determination range includes:

[0016] Searching the target archive for archived pictures within the time determination range according to the time information;

[0017] Comparing the longitude and latitude information of the archived images within the time judgment range with the mode point longitude and latitude information of the mode point, and determining whether the longitude and latitude information of the archived images within the time judgment range is consistent with the mode point longitude and latitude information;

[0018] If they are consistent, it is determined that the archived picture within the time judgment range is a wrongly archived picture;

[0019] If they are inconsistent, the archived pictures within the time judgment range are judged to be quasi-archived pictures in the target archive.

[0020] Optionally, the step of processing the mis-filed picture and the quasi-filed picture includes:

[0021] Deleting the misfiled image from the target archive;

[0022] The quasi-archive picture is retained in the target archive.

[0023] In a second aspect, an embodiment of the present invention further provides a device for processing archived pictures, the device comprising:

[0024] A first acquisition module is used to acquire image information of archived images in a target archive, wherein the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information;

[0025] A drawing module, used for drawing a distribution map of archived pictures according to the picture information;

[0026] A second acquisition module is used to obtain discrete point information of discrete points and mode point information of mode points in the distribution graph;

[0027] A determination module, used to determine the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information;

[0028] A judgment module, used for judging mis-filed pictures and quasi-filed pictures in the target file based on the judgment range;

[0029] A processing module is used to process the mis-filed pictures and the quasi-filed pictures.

[0030] Optionally, the discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the judgment range includes the time judgment range; and the determination module includes:

[0031] An actual distance calculation unit, used to calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point;

[0032] an actual time calculation unit, used to calculate the actual time required to travel the actual distance according to the actual distance;

[0033] A determination unit is used to determine the time judgment range of the mis-filed picture according to the discrete point time information and the actual time.

[0034] Optionally, the picture information further includes time information, and the judgment module includes:

[0035] A search unit, configured to search the target archive for archived pictures within the time determination range according to the time information;

[0036] a judgment unit, configured to compare the longitude and latitude information of the archived images within the time judgment range with the mode point longitude and latitude information of the mode point, and judge whether the longitude and latitude information of the archived images within the time judgment range is consistent with the mode point longitude and latitude information;

[0037] A first judging unit, configured to judge that the archived picture within the time judgment range is a mis-archived picture if they are consistent;

[0038] The second judgment unit is used to judge that the archived pictures within the time judgment range are quasi-archived pictures in the target archive if there is inconsistency.

[0039] Optionally, the processing module includes:

[0040] A deleting unit, used for deleting the misfiled picture from the target archive;

[0041] A retaining unit is used to retain the quasi-archive picture in the target archive.

[0042] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps in the method for processing archived images provided in the above embodiment when executing the computer program.

[0043] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the method for processing archived pictures provided in the above embodiment are implemented.

[0044] In an embodiment of the present invention, by obtaining the image information of archived images in the target archive, the archived images include mis-archived images and quasi-archived images, and the image information includes longitude and latitude information; drawing a distribution map of the archived images according to the image information; obtaining the discrete point information of the discrete points and the majority point information of the majority points in the distribution map; determining the judgment range of the mis-archived images and the quasi-archived images according to the discrete point information and the majority point information; judging the mis-archived images and the quasi-archived images in the target archive based on the judgment range; and processing the mis-archived images and the quasi-archived images. In this way, the discrete points and the majority points of the archived images can be found according to the longitude and latitude information of the archived images in the target archive, and some mis-archived images can be removed from the target archive based on the relationship between the discrete points and the majority points, and the archived images that have been accurately archived are retained, so that the archived images of the archived target archive are processed again, thereby improving the archiving accuracy of the target archive. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] 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.

[0046] Figure 1 is a flow chart of a method for processing archived pictures provided by an embodiment of the present invention;

[0047] Figure 2 yes Figure 1 A method flow chart provided in step 104 of the embodiment;

[0048] Figure 3 yes Figure 1 A method flow chart provided in step 105;

[0049] Figure 4It is a structural schematic diagram of a device for processing archived pictures provided by an embodiment of the present invention;

[0050] Figure 5 yes Figure 4 A structural schematic diagram provided by a determination module in an embodiment;

[0051] Figure 6 yes Figure 4 A structural schematic diagram provided by the determination module;

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

[0053] 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.

[0054] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms of "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0055] It should be understood that, although the terms first, second, etc. may be used to describe various units in embodiments of the present invention, these units should not be limited to these terms. These terms are only used to distinguish the units of the same type from each other. Moreover, the terms "comprise", "comprising" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or equipment comprising a series of elements not only include those elements, but also include other elements that are not clearly listed, or also include elements inherent to such process, method, article or equipment.

[0056] See also Figure 1 , Figure 1 is a flowchart of a method for processing archived images provided by an embodiment of the present invention. The method for processing archived images is used to process archived images in an image archive, such as Figure 1 As shown, the method for processing the archived images includes the following steps:

[0057] Step 101: Obtain image information of archived images in a target archive, where the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information.

[0058] Among them, the above-mentioned target archive is the archive that needs to be processed currently, and the target archive can be a picture archive, specifically a cover archive, which is used to archive pictures. The number of target archives can be multiple. When the target archive is a cover archive, the target archive belongs to the archive in the cover library. The cover archive archives the new picture data stream according to the similarity with the archive cover in the cover library. The above-mentioned picture can be called an image, a photo, etc., and the picture can also be a picture in a video. The above-mentioned archived pictures are pictures that have been archived in the target archive. For example, when a group of picture data is obtained, and preliminary clustering and archiving are performed according to the covers of different picture archives, the archived pictures in a certain target archive are obtained. There are multiple archived pictures. The above-mentioned mis-archived pictures are pictures that are mistakenly archived in the target archive. For example, picture A is a picture of target archive A, but during the archiving process, picture A is classified into target archive B, then picture A is a mis-archived picture for target archive B. There can be one or more mis-archived pictures. The above-mentioned quasi-archived pictures are pictures accurately archived in the target archive. For example, picture C is a picture of the C target archive, and when picture C is archived, picture C is classified into the C target archive. At this time, picture C is a quasi-archived picture of the C target archive. There are multiple quasi-archived pictures. The above-mentioned longitude and latitude information is the longitude and latitude information of the archived pictures. The longitude and latitude information can also be called geographic location information, which includes longitude and latitude. For example, the actual geographic location when picture D was taken. Of course, the above-mentioned picture information can also include time information.

[0059] Specifically, when it is necessary to process archived images in a target file, it is necessary to obtain the image information corresponding to each archived image in the target file, for example, to obtain the latitude and longitude information corresponding to each archived image in the target file.

[0060] Step 102: Draw a distribution map of archived pictures according to the picture information.

[0061] The distribution diagram is used to show the statistical diagram of the dispersion of a set of data, for example, it can be a box plot, a cluster statistical diagram, a linear regression statistical diagram. In this embodiment, a box plot is used as an example for explanation. Box plot: also known as a box-whisker plot, a box plot or a box-line plot, is a statistical diagram used to show the dispersion of a set of data.

[0062] Specifically, when the image information includes longitude and latitude information, a box plot corresponding to the archived image is drawn according to the longitude and latitude information.

[0063] As another implementation of this embodiment, a clustering statistical graph, a linear regression statistical graph, etc. may be drawn according to the latitude and longitude information.

[0064] As another implementation of this embodiment, when the picture information includes time information, a box plot, a clustering statistical graph, a linear regression statistical graph, etc. can also be drawn according to the time information.

[0065] It should be noted that by drawing a distribution map of archived images based on the image information, the discrete distribution of all archived images in the target archive can be understood.

[0066] Step 103: Obtain discrete point information of discrete points and mode point information of mode points in the distribution graph.

[0067] Among them, the above-mentioned discrete points are discrete points obtained by drawing a distribution map based on the longitude and latitude of the archived pictures of the target archive. For example, the discrete points of the box plot are obtained by drawing a box plot based on the longitude and latitude of the archived pictures of the target archive. The discrete points include the shooting time and shooting location (longitude and latitude) of the archived pictures corresponding to the discrete points. The discrete points can be called isolated points. The number of discrete points can be one or more. The archived pictures corresponding to the discrete points can be mis-archived pictures or quasi-archived pictures. The above-mentioned mode points can be points formed by pictures with obvious concentration trends in the longitude and latitude of the archived pictures of the target archive. Mode: refers to the value of a point with obvious concentration trend in statistical distribution, representing the general level of data. The mode point can be one or more. When the mode point is one, the archived pictures corresponding to the mode point are the most, and when the mode points are multiple, the number of archived pictures corresponding to each mode point is relatively front and concentrated. Taking the archived pictures corresponding to the target file of person A as an example, when the majority point is country A and the discrete point is country B, it can be explained that most of the archived pictures of person A were taken in country A, indicating that person A often travels to country A. Of course, since the discrete point is country B, it can be explained that person A may have also been to country B to take pictures, or the archived pictures corresponding to the discrete points may not be pictures of person A.

[0068] The discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the majority point information may also include the time information of the majority points.

[0069] Specifically, after the distribution map is drawn, the positions of the discrete points and the majority points in the distribution map can be located, and the image information of the archived images corresponding to the discrete points and the majority points can be retrieved, such as extracting the longitude and latitude information and time information corresponding to the discrete points and the majority points, wherein the discrete points correspond to the longitude and latitude information of the discrete points and the time information of the discrete points, and the majority points correspond to the longitude and latitude information of the majority points, and the time information of the discrete points.

[0070] Step 104: Determine the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information.

[0071] The above judgment range is used to judge the range of mis-filed pictures and quasi-filed pictures, and the judgment range can be a time judgment range. It can also be a space judgment range, such as a latitude and longitude judgment range. In this embodiment, the time judgment range is used as the main example for description.

[0072] For details, see Figure 2 , Figure 2 yes Figure 1 Step 104 in the embodiment provides a method flow chart.

[0073] Step 104 includes:

[0074] Step 201: Calculate the actual distance between the discrete point and the majority point based on the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point.

[0075] The actual distance is the actual geographical distance between the longitude and latitude of the archived image corresponding to the discrete point and the longitude and latitude of the archived image corresponding to the majority point.

[0076] Specifically, after the longitude and latitude information of the discrete points and the longitude and latitude information of the majority points are determined, the actual geographical distance between the two can be calculated based on the longitude and latitude of the discrete points and the longitude and latitude of the majority points.

[0077] Step 202: Calculate the actual time required to travel the actual distance according to the actual distance.

[0078] The actual time is the time it takes to actually pass through the actual geographical location between the discrete point and the majority point. The actual time can be calculated according to a preset calculation method. For example, if the actual location corresponding to the discrete point is in city A and the actual location corresponding to the majority point is in city B, then the time taken to travel from city A to city B can be calculated by the fastest mode of transportation from city A to city B (plane, high-speed rail, train, bus, private car, ship, etc.). It should be noted that the actual time can be calculated using a calculation method that conforms to common sense.

[0079] Specifically, after the actual distance between the discrete point and the majority point is calculated, the actual time spent can be calculated according to a preset calculation method.

[0080] Step 203: Determine the time judgment range of the mis-filed picture according to the discrete point time information and the actual time.

[0081] The time judgment range is a judgment range for judging mis-archived pictures and quasi-archived pictures based on the time attributes of archived pictures.

[0082] Specifically, after determining the discrete point time information of the discrete point and the corresponding actual time between the discrete point and the majority point, the discrete point time is used as a reference, and the discrete point time is added or subtracted from the actual time to form a time judgment interval. Assuming that the discrete point time is T0 and the actual time is Ti, the time judgment range can be expressed as (T0-Ti, T0+Ti).

[0083] Step 105: Determine the mis-filed images and quasi-filed images in the target file based on the determination range.

[0084] For details, see Figure 3 , Figure 3 yes Figure 1 Step 105 of the method provides a flow chart of a method. Figure 2 On the basis of Figure 3 As shown, step 105 includes:

[0085] Step 301: Search the target archive for archived pictures within a time determination range according to the time information.

[0086] Step 302: Compare the latitude and longitude information of the archived images within the time judgment range with the latitude and longitude information of the majority point of the majority point, and determine whether the latitude and longitude information of the archived images within the time judgment range is consistent with the latitude and longitude information of the majority point.

[0087] Step 303: If they are consistent, it is determined that the archived picture within the time judgment range is a wrongly archived picture.

[0088] Step 304: If there is inconsistency, the archived pictures within the time judgment range are determined to be quasi-archived pictures in the target archive.

[0089] Specifically, after determining the time judgment range, the target archive can be searched for archived images with time within the time judgment range according to the time information of the archived images in the target archive, that is, all archived images with time within the time judgment range in the target archive are searched.

[0090] After determining that the time belongs to the archived pictures within the time judgment range, the corresponding longitude and latitude information is compared with the latitude and longitude information of the majority point of the majority point, and it is determined whether the longitude and latitude information of the archived pictures within the time judgment range is consistent with the latitude and longitude of the majority point, that is, it is determined whether the latitude and longitude of the majority point exists in the archived pictures within the time judgment range. If the archived pictures within the time judgment have the latitude and longitude of the majority point, it is determined to be consistent, and if not, it is determined to be inconsistent. For example, there is an E target file, and the E target file has 100 archived pictures. Among the 100 archived pictures of the E target file, it is searched that the time corresponding to 10 archived pictures is within the time judgment range, and the other 90 archived pictures are not within the time judgment range, and the latitude and longitude corresponding to the 90 archived pictures are in F City (the latitude and longitude of the majority point of the E target file is in F City), then the latitude and longitude corresponding to 3 of the 10 archived pictures are also in F City, and the latitude and longitude corresponding to 7 archived pictures are in G, H, I or other cities. This means that among the 10 archived images, the time of 3 archived images is within the time judgment range, and the longitude and latitude information is the same as the longitude and latitude information of the majority point. At this time, the longitude and latitude information of these 3 archived images is consistent with the longitude and latitude information of the majority point, which means that the characters in these 3 images appear at the positions corresponding to the longitude and latitude of the majority point and the positions corresponding to the longitude and latitude of the discrete point at the same time within the unreasonable time and distance range, which is not in line with common sense. Although the time of the 7 archived images is within the time judgment range, it is not in the longitude and latitude F city of the majority point of the target file E, so it can be determined that the longitude and latitude information of the 7 archived images is inconsistent with the longitude and latitude information of the majority point, which means that the characters corresponding to these 7 archived images did not appear in the longitude and latitude F city of the majority point of the target file E within the unreasonable time and distance range, but appeared in other cities, which may happen here. It also further shows that it is impossible for a certain archived image in the target file of the same person to meet the requirements of being within the time judgment range and being at the longitude and latitude position of the majority point of the target file at the same time.

[0091] If a certain archived picture in a person's target file satisfies both that the time is within the time judgment range and the longitude and latitude are at the position of the majority point longitude and latitude of the target file, it can be determined that the archived picture is an incorrectly archived picture.

[0092] The archived images that are consistent with the latitude and longitude information of the majority point in the archived images within the time judgment range are judged as mis-archived images. If the archived images that are consistent with the latitude and longitude information of the majority point in the archived images within the time judgment range are searched, it means that the person corresponding to the consistent archived image cannot appear in the latitude and longitude corresponding to the discrete point within the time judgment range, so it can be judged that the consistent archived image is a misclassified image and is included in the target archive.

[0093] The archived pictures that are inconsistent with the latitude and longitude information of the majority point in the archived pictures within the time judgment range are judged as quasi-archived pictures. If the archived pictures that are inconsistent with the latitude and longitude information of the majority point in the archived pictures within the time judgment range are searched, it means that the person corresponding to the inconsistent archived picture can appear in the latitude and longitude corresponding to the discrete point within the time judgment range, so it can be judged that the inconsistent archived picture is accurately classified and included in the target archive.

[0094] Step 106: Process the mis-filed pictures and the nearly-filed pictures.

[0095] Specifically, after the misfiled images in the target file are determined, the misfiled images are deleted from the target file.

[0096] After determining the quasi-archive pictures in the target archive, the quasi-archive pictures are retained in the target archive.

[0097] In this way, the archived images in the target archive can be processed again, the wrongly archived images can be removed from the target archive, and the archived images that were originally archived accurately can be retained, thereby improving the archiving accuracy of the target archive.

[0098] In an embodiment of the present invention, by obtaining the image information of the archived images in the target archive, the archived images include mis-archived images and quasi-archived images, and the image information includes longitude and latitude information; drawing a distribution map of the archived images according to the image information; obtaining the discrete point information of the discrete points and the majority point information of the majority points in the distribution map; determining the judgment range of the mis-archived images and the quasi-archived images according to the discrete point information and the majority point information; judging the mis-archived images and the quasi-archived images in the target archive based on the judgment range; and processing the mis-archived images and the quasi-archived images. In this way, the discrete points and the majority points of the archived images can be found according to the longitude and latitude information of the archived images in the target archive, and some mis-archived images can be removed from the target archive based on the relationship between the discrete points and the majority points, and the archived images that have been accurately archived are retained, so that the archived images of the archived target archive are processed again, thereby improving the archiving accuracy of the target archive.

[0099] See also Figure 4 , Figure 4 4 is a schematic diagram of a structure of a device for processing archived images provided by an embodiment of the present invention. The device for processing archived images 400 is used to process archived images in an image archive, such as Figure 4 As shown, the archived picture processing device 400 includes:

[0100] The first acquisition module 401 is used to acquire the image information of the archived images in the target archive, the archived images include the mis-archived images and the quasi-archived images, and the image information includes the latitude and longitude information;

[0101] A drawing module 402, used for drawing a distribution map of archived pictures according to picture information;

[0102] The second acquisition module 403 is used to acquire the discrete point information of the discrete points and the mode point information of the mode points in the distribution graph;

[0103] A determination module 404, used to determine the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information;

[0104] A judgment module 405, used to judge the mis-filed pictures and the quasi-filed pictures in the target file based on the judgment range;

[0105] The processing module 406 is used to process the mis-filed pictures and the nearly-filed pictures.

[0106] Optionally, the distribution map includes a box plot; the drawing module 402 is used to draw a box plot corresponding to the archived image according to the latitude and longitude information.

[0107] Optional, see Figure 5 , Figure 5 yes Figure 4 In the embodiment, the determining module provides a structural schematic diagram, wherein the discrete point information includes the longitude and latitude information of the discrete point and the time information of the discrete point, the majority point information includes the longitude and latitude information of the majority point, and the judgment range includes the time judgment range; the determining module 404 includes:

[0108] The actual distance calculation unit 4041 is used to calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point;

[0109] An actual time calculation unit 4042 is used to calculate the actual time required to travel the actual distance according to the actual distance;

[0110] The determination unit 4043 is used to determine the time judgment range of the mis-filed picture according to the discrete point time information and the actual time.

[0111] Optional, see Figure 6 , Figure 6 yes Figure 4 A structural diagram provided by the determination module, the picture information also includes time information, Figure 5 On the basis of Figure 6 As shown, the judgment module 405 includes:

[0112] A search unit 4051 is used to search for archived pictures within a time determination range in a target archive according to time information;

[0113] The judging unit 4052 is used to compare the longitude and latitude information of the archived pictures within the time judging range with the latitude and longitude information of the majority point of the majority point, and judge whether the longitude and latitude information of the archived pictures within the time judging range is consistent with the longitude and longitude information of the majority point;

[0114] The first judgment unit 4053 is used to judge that the archived picture within the time judgment range is a wrongly archived picture if they are consistent;

[0115] The second judgment unit 4054 is used to judge that the archived pictures within the time judgment range are quasi-archived pictures in the target archive if there is no inconsistency.

[0116] Optionally, the processing module includes:

[0117] A deletion unit, used to delete the mis-filed pictures from the target archive;

[0118] A retention unit is used to retain quasi-archival images in a target archive.

[0119] The archived picture processing device 400 provided in the embodiment of the present invention can implement various implementation methods and corresponding beneficial effects in the above method embodiment, which will not be described again here to avoid repetition.

[0120] See also Figure 7 , Figure 7 : is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. The electronic device 500 includes: a memory 502, a processor 501, and a computer program stored in the memory 502 and executable on the processor 501. When the processor 501 executes the computer program, the steps in the method for processing archived pictures provided in the above embodiment are implemented. The method is used to process archived pictures in a picture archive. The processor 501 executes the following steps:

[0121] Obtaining image information of archived images in the target archive, where the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information;

[0122] Draw a distribution map of archived images based on image information;

[0123] Obtain the discrete point information of the discrete points in the distribution graph and the mode point information of the mode points;

[0124] Determine the judgment range of mis-filed pictures and quasi-filed pictures according to the discrete point information and the majority point information;

[0125] Determine the mis-filed images and quasi-filed images in the target archive based on the determination range;

[0126] Process the mis-archived pictures and the nearly-archived pictures.

[0127] Optionally, the distribution graph includes a box plot; the step of drawing the distribution graph of the archived pictures according to the picture information executed by the processor 501 includes:

[0128] Draw a box plot corresponding to the archived images based on the latitude and longitude information.

[0129] Optionally, the discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the judgment range includes the time judgment range; the step of determining the judgment range of the mis-filed picture and the quasi-filed picture according to the discrete point information and the majority point information performed by the processor 501 includes:

[0130] Calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point;

[0131] Calculate the actual time required to travel the actual distance based on the actual distance;

[0132] The time judgment range of the mis-filed images is determined based on the discrete point time information and the actual time.

[0133] Optionally, the picture information also includes time information. The step of determining the mis-filed pictures and the quasi-filed pictures in the target file based on the determination range performed by the processor 501 includes:

[0134] Searching for archived images within a time determination range in a target archive according to time information;

[0135] Compare the latitude and longitude information of the archived images within the time judgment range with the latitude and longitude information of the majority point of the majority point, and determine whether the latitude and longitude information of the archived images within the time judgment range is consistent with the latitude and longitude information of the majority point;

[0136] If they are consistent, the archived image within the time judgment range is judged to be an erroneously archived image;

[0137] If they are inconsistent, the archived pictures within the time judgment range are judged to be quasi-archived pictures in the target archive.

[0138] Optionally, the step of processing the mis-filed picture and the quasi-filed picture performed by the processor 501 includes:

[0139] Delete the misfiled images from the target archive;

[0140] Keep quasi-archival images in the target archive.

[0141] The electronic device 500 provided in the embodiment of the present invention can implement various implementations in the above method embodiment and the corresponding beneficial effects, which will not be described again here to avoid repetition.

[0142] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the method for processing archived images provided in the embodiment of the present invention are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0143] 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 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. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0144] 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 processing archived pictures, the method being used to process archived pictures in a picture archive, characterized in that: The method comprises: Acquire image information of archived images in a target archive, wherein the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information; Draw a distribution map of archived pictures according to the picture information; Obtain the discrete point information of the discrete points in the distribution graph and the mode point information of the mode points; The judgment range of the mis-filed pictures and the quasi-filed pictures is determined according to the discrete point information and the majority point information; the discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the judgment range includes the time judgment range; the step of determining the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information includes: Calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point; Calculate the actual time required to travel the actual distance according to the actual distance; Determine the time judgment range of the mis-filed picture according to the discrete point time information and the actual time; Determine the mis-filed pictures and quasi-filed pictures in the target file based on the determination range; The mis-filed pictures and the quasi-filed pictures are processed.

2. The method for processing archived pictures according to claim 1, characterized in that: The picture information also includes time information. The step of determining the mis-filed pictures and the quasi-filed pictures in the target file based on the determination range includes: Searching the target archive for archived pictures within the time determination range according to the time information; Comparing the longitude and latitude information of the archived images within the time judgment range with the mode point longitude and latitude information of the mode point, and determining whether the longitude and latitude information of the archived images within the time judgment range is consistent with the mode point longitude and latitude information; If they are consistent, it is determined that the archived picture within the time judgment range is a wrongly archived picture; If they are inconsistent, the archived pictures within the time judgment range are judged to be quasi-archived pictures in the target archive.

3. The method for processing archived pictures according to claim 2, characterized in that: The step of processing the mis-filed picture and the quasi-filed picture comprises: Deleting the misfiled image from the target archive; The quasi-archive picture is retained in the target archive.

4. A device for processing archived pictures, characterized in that: The device comprises: A first acquisition module is used to acquire image information of archived images in a target archive, wherein the archived images include mis-archived images and quasi-archived images, and the image information includes latitude and longitude information; A drawing module, used for drawing a distribution map of archived pictures according to the picture information; A second acquisition module is used to obtain discrete point information of discrete points and mode point information of mode points in the distribution graph; A determination module is used to determine the judgment range of the mis-filed pictures and the quasi-filed pictures according to the discrete point information and the majority point information; the discrete point information includes the longitude and latitude information of the discrete points and the time information of the discrete points, the majority point information includes the longitude and latitude information of the majority points, and the judgment range includes the time judgment range; the determination module includes: An actual distance calculation unit, used to calculate the actual distance between the discrete point and the majority point according to the longitude and latitude information of the discrete point and the longitude and latitude information of the majority point; an actual time calculation unit, used to calculate the actual time required to travel the actual distance according to the actual distance; A determining unit, configured to determine a time judgment range of the mis-filed picture according to the discrete point time information and the actual time; A judgment module, used for judging mis-filed pictures and quasi-filed pictures in the target file based on the judgment range; A processing module is used to process the mis-filed pictures and the quasi-filed pictures.

5. The method for processing archived pictures according to claim 4, characterized in that: The picture information also includes time information, and the judgment module includes: A search unit, configured to search the target archive for archived pictures within the time determination range according to the time information; a judgment unit, configured to compare the longitude and latitude information of the archived images within the time judgment range with the mode point longitude and latitude information of the mode point, and judge whether the longitude and latitude information of the archived images within the time judgment range is consistent with the mode point longitude and latitude information; A first judging unit, configured to judge that the archived picture within the time judgment range is a mis-archived picture if they are consistent; The second judgment unit is used to judge that the archived pictures within the time judgment range are quasi-archived pictures in the target archive if there is inconsistency.

6. The method for processing archived pictures according to claim 5, characterized in that: The processing module comprises: A deleting unit, used for deleting the misfiled picture from the target archive; A retaining unit is used to retain the quasi-archive picture in the target archive.

7. 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 the processor implements the steps in the method for processing archived pictures according to any one of claims 1 to 3 when executing the computer program.

8. 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 in the method for processing archived pictures according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method and device for archiving pictures

    CN106855867A

  • Archiving method and device

    CN109800674A