WO2022121701A1 - Procédé et appareil de traitement d'images, dispositif électronique et support de stockage - Google Patents

Procédé et appareil de traitement d'images, dispositif électronique et support de stockage Download PDF

Info

Publication number
WO2022121701A1
WO2022121701A1 PCT/CN2021/133246 CN2021133246W WO2022121701A1 WO 2022121701 A1 WO2022121701 A1 WO 2022121701A1 CN 2021133246 W CN2021133246 W CN 2021133246W WO 2022121701 A1 WO2022121701 A1 WO 2022121701A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
processed
similar
image processing
storage area
Prior art date
Application number
PCT/CN2021/133246
Other languages
English (en)
Chinese (zh)
Inventor
吴佳涛
郭彦东
李亚乾
杨林
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022121701A1 publication Critical patent/WO2022121701A1/fr

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • the present application relates to the field of computer technology, and more particularly, to an image processing method, apparatus, electronic device, and storage medium.
  • the electronic device can perform further beautification processing, so that the visual effect of the image can be improved.
  • the present application proposes an image processing method, apparatus, electronic device and storage medium to improve the above problems.
  • the present application provides an image processing method, which is applied to an electronic device, the method comprising: acquiring an image to be processed; searching for a similar image to the image to be processed in a specified storage area based on the characteristics of the image to be processed to obtain similar images, wherein the images in the designated storage area correspond to image processing parameters; acquire image processing parameters corresponding to the similar images; and perform image processing on the to-be-processed images based on the image processing parameters.
  • the present application provides an image processing method, which is applied to a server.
  • the method includes: receiving an image to be processed sent by an electronic device; Process images with similar images to obtain similar images, wherein the images in the designated storage area correspond to image processing parameters; obtain image processing parameters corresponding to the similar images; perform processing on the to-be-processed images based on the image processing parameters Image processing to obtain a processed image; and returning the processed image to the electronic device.
  • the present application provides an image processing apparatus, which runs on an electronic device, and the apparatus includes: an image acquisition unit for acquiring an image to be processed; an image search unit for Searching for an image similar to the image to be processed in the designated storage area, and obtaining a similar image, wherein, the image in the designated storage area corresponds to an image processing parameter; a parameter obtaining unit is used to obtain the image processing corresponding to the similar image. parameters; an image processing unit configured to perform image processing on the to-be-processed image based on the image processing parameters.
  • the present application provides an image processing apparatus, running on a server, the apparatus comprising: a data communication unit for receiving an image to be processed sent by an electronic device; an image search unit for based on the image to be processed The feature of the specified storage area is to search for an image similar to the image to be processed to obtain a similar image, wherein the image in the specified storage area corresponds to an image processing parameter; a parameter acquisition unit is used to obtain the corresponding image of the similar image. the image processing parameters; the image processing unit is used to perform image processing on the to-be-processed image based on the image processing parameters to obtain the processed image; the data communication unit is also used to return the processed image to to the electronic device.
  • the present application provides an electronic device including a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.
  • the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, wherein the above-mentioned method is executed when the program code is executed by a startup controller.
  • FIG. 1 shows a schematic diagram of an application scenario of an image processing method proposed by an embodiment of the present application
  • FIG. 2 shows a schematic diagram of an application scenario of an image processing method proposed by an embodiment of the present application
  • FIG. 3 shows a flowchart of an image processing method proposed by an embodiment of the present application
  • FIG. 4 shows a schematic diagram of an image being selected in an image management program according to an embodiment of the present application
  • FIG. 5 shows a schematic diagram of an editing interface in an embodiment of the present application
  • FIG. 6 shows a schematic diagram of determining similar images in an embodiment of the present application
  • FIG. 7 shows a flowchart of another image processing method proposed by an embodiment of the present application.
  • FIG. 8 shows a flowchart of interface jumping based on link information proposed by an embodiment of the present application
  • FIG. 9 shows a schematic diagram of triggering interface jumping proposed by an embodiment of the present application.
  • FIG. 10 shows a flowchart of still another image processing method proposed by an embodiment of the present application.
  • FIG. 11 shows a flowchart of obtaining a global feature and a local feature map in an embodiment of the present application
  • FIG. 12 shows a schematic diagram of obtaining a global feature in an embodiment of the present application.
  • FIG. 13 shows a schematic diagram of a feature set corresponding to a position in an initial feature map in an embodiment of the present application
  • FIG. 14 shows a schematic diagram of obtaining a local feature map in an embodiment of the present application.
  • FIG. 15 shows a schematic diagram of position correspondence in an embodiment of the present application
  • FIG. 16 shows a flowchart of an image processing method proposed by another embodiment of the present application.
  • FIG. 17 shows a structural block diagram of an image processing apparatus proposed by an embodiment of the present application.
  • FIG. 18 shows a structural block diagram of an image processing apparatus proposed by another embodiment of the present application.
  • FIG. 19 shows a structural block diagram of an image processing apparatus proposed by still another embodiment of the present application.
  • FIG. 20 shows a structural block diagram of an electronic device of the present application for executing the image processing method according to an embodiment of the present application
  • FIG. 21 is a storage unit for storing or carrying a program code for implementing the image processing method according to the embodiment of the present application according to an embodiment of the present application.
  • image processing can be performed on an image to enhance the visual effect of the image.
  • the inventor found in the research that the related image beautification processing methods still have the problems of low degree of intelligence and poor beautification efficiency.
  • the parameters to be processed are usually selected manually by the user, and because of the differences in the user's own image processing experience, the parameter selection process needs to consume a lot of Time, resulting in low processing efficiency, and does not have better intelligence.
  • the inventor proposes an image processing method, device, electronic device, and storage medium in the present application that can improve the above-mentioned problems. Describe the image similar to the image to be processed, and obtain the similar image, wherein, the image in the designated storage area corresponds to the image processing parameter, and then the similar image can also be obtained while obtaining the image processing parameter corresponding to the similar image, and then based on the similar image Perform image processing on the to-be-processed image with the image processing parameters.
  • the method of acquiring the image processing parameters of the image similar to the image to be processed can be obtained by query, so that the image processing parameters of the image similar to the image to be processed can be directly obtained based on the similarity of the image to be processed.
  • the image processing parameters of the image to be processed are used to process the image to be processed, thereby improving the degree of intelligence in the image processing process.
  • the efficiency of image processing is also improved.
  • the image processing method provided by the embodiments of the present application may be executed in electronic devices such as mobile phones and tablet computers, and may also be executed in a server.
  • the server can be a single physical server, or a server cluster or distributed system composed of multiple physical servers, and can also provide cloud services, cloud computing, cloud storage, CDN (Content Delivery Network, Content Delivery Network), And cloud servers for basic cloud computing services such as artificial intelligence platforms.
  • the image processing method provided by the embodiment of the present application is performed by an electronic device alone, or can be performed by an electronic device and a server cooperatively, or can be performed cooperatively by a server cluster or a distributed system composed of multiple physical servers.
  • the acquisition of the to-be-processed image may be completed by the client 110 in the electronic device, and
  • the subsequent search for a similar image corresponding to the to-be-processed image and an image processing unit corresponding to the similar image, and subsequent image processing on the to-be-processed image based on the image processing parameters may be performed by the server 120 .
  • the acquisition of the to-be-processed image may be performed by the server 130 alone, and the subsequent search for a similar image corresponding to the to-be-processed image and an image processing unit corresponding to the similar image, and based on the image processing parameters Image processing on the to-be-processed image may be performed by the server 140 .
  • an image processing method provided by an embodiment of the present application is applied to an electronic device, and the method includes:
  • the image processing method provided in this embodiment may operate in various scenarios, and correspondingly, the images to be processed obtained in different scenarios are different.
  • the image processing method provided in this embodiment may be executed in an image management program (eg, a photo album).
  • an image selected by the user from the image management program may be used as an image to be processed.
  • an image a, an image b, an image c, an image d, an image e, an image f, an image g, an image h, and an image i are displayed on the image display interface 10 .
  • the image enlargement display interface 11 corresponding to the image a on the right side in FIG. 4 is triggered to be displayed.
  • the image magnification display interface 11 the image a will be enlarged and displayed, and an editing control will be displayed.
  • the editing interface 12 shown in FIG. 5 will be displayed by triggering.
  • the beautification operation control is displayed in the . If it is detected that the beautification operation control is touched, it will enter the beautification editing mode, and at the same time, the image a will be used as the image to be processed, and the subsequent image will be directly executed after the image a is used as the image to be processed. , and then realize one-click beautification of the image to be processed.
  • the manner of determining the image to be processed as shown in FIG. 4 and FIG. 5 is only an exemplary manner, and there may be other manners to trigger the determination of the image to be processed.
  • the editing interface 12 shown in FIG. 5 can also be directly triggered by long-pressing the image in the image display interface 10 .
  • entry into the corresponding beautification editing mode in the editing interface 12 can also be directly triggered by long-pressing the image in the image display interface 10 .
  • the image processing method provided in this embodiment may also be run in a network information search scenario.
  • the user can input an image, and then search for images similar to the input image.
  • the image input by the user can be used as the image to be processed.
  • S120 Search for an image similar to the image to be processed in a designated storage area based on the feature of the image to be processed, to obtain a similar image, wherein the image in the designated storage area corresponds to an image processing parameter.
  • the features of the image can be used to characterize the content of the image.
  • the content of the image to be processed can be characterized based on the feature vector.
  • the feature vector may be inputting the image to be processed into the target neural network model, and then acquiring the feature vector output by the neural network model as a feature representing the content of the image to be processed.
  • the images in the designated storage area also have their own characteristics, so in the process of determining similar images, the characteristics of the images to be processed can be compared with the characteristics of the images in the designated storage area, and then obtain to similar images.
  • the feature vector as an example, as shown in Figure 6, for the image to be processed and the image currently being compared with the object to be processed in the specified storage area, it can be input into the CNN (Convolutional Neural Networks) model respectively to obtain the respective features. vector, and then calculate the distance between the respective feature vectors of the image to be processed and the image currently being compared. If the distance is less than the distance threshold, it is determined that the image to be processed is similar to the image currently being compared with the object to be processed. , and then determined to be similar images.
  • CNN Convolutional Neural Networks
  • the similar images in the embodiments of the present application may be IND (identical ND images) similar images, or may be NIND (non-identical ND images) similar images
  • the image in the designated storage area may correspondingly store image processing parameters.
  • the image processing parameter is an image processing parameter that enables the image of the designated storage area to exhibit the current visual effect.
  • the image processing parameters corresponding to image j include the gamma value when performing gamma correction and the saturation value when performing saturation enhancement. degree enhancement parameter.
  • the acquired image processing parameters will include the gamma value corresponding to the image j for gamma correction, and the gamma value used for saturation enhancement.
  • the saturation enhancement parameter of of .
  • S140 Perform image processing on the to-be-processed image based on the image processing parameter.
  • the to-be-processed images may be processed based on the image processing parameters corresponding to the similar images.
  • the aforementioned image j is determined to be a similar image, and the image processing parameters corresponding to the image j include a gamma value for gamma correction and a saturation enhancement parameter for saturation enhancement, and then the object to be processed is processed.
  • the gamma correction will be performed on the image to be processed based on the gamma value
  • the saturation enhancement will be performed on the image to be processed based on the saturation enhancement parameter.
  • an image processing method After acquiring an image to be processed, an image similar to the image to be processed is searched in a designated storage area based on the characteristics of the image to be processed, so as to obtain a similar image, wherein, in The images in the designated storage area correspond to image processing parameters, and then the image processing parameters corresponding to the similar images can be obtained while the similar images are obtained, and then image processing is performed on the to-be-processed images based on the image processing parameters of the similar images.
  • the method of acquiring the image processing parameters of the image similar to the image to be processed can be obtained by query, so that the image processing parameters of the image similar to the image to be processed can be directly obtained based on the similarity of the image to be processed.
  • the image processing parameters of the image to be processed are used to process the image to be processed, thereby improving the degree of intelligence in the image processing process.
  • the efficiency of image processing is also improved.
  • an image processing method provided by an embodiment of the present application is applied to an electronic device, and the method includes:
  • S220 Search for an image similar to the to-be-processed image in a designated storage area based on the feature of the to-be-processed image, to obtain a similar image, wherein the image in the designated storage area corresponds to an image processing parameter.
  • the designated storage area in this embodiment may be a local storage area of the electronic device, or may be a storage area in a server. If the storage area is a storage area in the server, the electronic device may implement S120 by sending a search instruction to the server where the storage area is located.
  • an image to be processed may be carried in the sending search instruction, and after receiving the image to be processed, the server needs to first acquire the features of the image to be processed, and then search for similar images based on the acquired features.
  • the electronic device can also obtain the feature (for example, a feature vector) of the image to be processed locally, and directly carry the feature vector in the search instruction, so that the server can directly obtain the feature of the image to be processed. vector, and then search for similar images faster.
  • the electronic device may determine, in real time, the data content carried in the search instruction according to the currently available processing resources or network resources.
  • the electronic device detects that the current remaining available processing resources meet the resource threshold condition, it will locally acquire the characteristics of the image to be processed, and send a search instruction that carries the characteristics of the image to be processed (that is, when searching for the image to be processed).
  • the instruction does not carry the image to be processed), so that the server that receives the search instruction directly searches for images similar to the image to be processed in the specified storage area according to the features in the search instruction to obtain similar images.
  • the electronic device is still stuck locally, which is caused by acquiring the feature.
  • the resource threshold condition may include that the remaining available processing resources are greater than the specified resource threshold.
  • the processing resource may be CPU availability.
  • the CPU availability rate may be 1 minus the current load rate of the CPU.
  • the load rate of the CPU can be the ratio of the CPU's currently running threads to the total supported threads.
  • the electronic device detects that the current network resource meets the specified network conditions, it can add the image to be processed to the search instruction, and then directly send the image to be processed to the server through the search instruction, so that the server can first obtain the characteristics of the image to be processed and then , and then search for images similar to the to-be-processed image in the designated storage area based on the characteristics of the to-be-processed image to obtain a similar image.
  • the current network resources can be more effectively utilized, and the effective utilization rate of the network resources can be improved.
  • the specified network conditions may include at least one of the following conditions: the Internet is currently accessed based on WIFI communication; and the network transmission rate satisfies the specified efficiency.
  • the network transmission efficiency can be understood as the number of bits of binary numbers transmitted per second.
  • detection can be triggered based on different ways.
  • the electronic device can trigger the detection of whether the resource threshold condition and the specified network condition are met at the same time. It should be noted that whether the resource threshold conditions are met and the specified network conditions need to obtain certain data for calculation, and the calculation will consume time, then trigger the detection of whether the resource threshold conditions and the specified network conditions are met at the same time. Under the following conditions, the results of the detection of the two conditions may be returned in sequence, and in this embodiment of the present application, the generation method of the search instruction may be determined based on the detection result returned first.
  • the electronic device can trigger the simultaneous detection of whether the resource threshold condition and the specified network condition are satisfied.
  • the corresponding steps when the resource threshold conditions are met, and the subsequent detection results of whether the specified network conditions are met are ignored. If the detection result for the resource threshold condition is obtained first, but it is detected that the resource threshold condition is not met, it will wait for the subsequent detection result for the specified network condition, and execute the corresponding steps according to the subsequent detection result for the specified network condition .
  • the detection result for the specified network condition is obtained first, and it is detected that the specified network condition is met, the aforementioned steps corresponding to when the specified network condition is met are performed, and the subsequent detection of whether the resource threshold condition is met is ignored. If the detection result for the specified network condition is obtained first, and it is detected that the specified network condition is not satisfied, the subsequent detection result for the resource threshold condition is waited for, and corresponding steps are performed according to the detection result for the resource threshold condition.
  • the resource threshold condition is met. If the resource threshold condition is met, the aforementioned steps corresponding to the resource threshold condition are directly executed. If the resource threshold condition is not met, then the detection is triggered The specified network conditions are met.
  • the electronic device will provide randomly acquired image processing parameters, so as to process images based on the randomly acquired image processing parameters. Parameters to process the image to be processed.
  • the randomly acquired image processing parameters may be randomly acquired from locally pre-stored image processing parameters, or may be randomly acquired from the aforementioned image processing parameters in the designated storage area.
  • the found multiple similar images may be displayed.
  • the similar images have been processed by their corresponding image processing parameters, and when the similar images are displayed, the user can perceive the visual effects processed by the corresponding image processing parameters.
  • S240 Acquire a target similar image determined from the plurality of similar images.
  • S260 Perform image processing on the to-be-processed image based on the image processing parameter corresponding to the target similar image.
  • the method further includes: acquiring a reference similar image, where the reference similar image is a similar image detected to be subjected to a specified touch operation among the plurality of similar images.
  • the preview effect of the image to be processed after image processing based on the image processing parameters corresponding to the reference similar image is displayed. If it is detected that the designated touch operation ends, the preview effect is canceled.
  • the specified touch operation may include a pressing operation whose duration satisfies the specified duration or a pressing operation whose pressing area satisfies the specified area.
  • the image in the designated storage area also corresponds to link information of the display interface; the search for the image to be processed in the designated storage area based on the characteristics of the image to be processed is related to the image to be processed.
  • Similar images after obtaining similar images, also include:
  • the link information in this embodiment may be a link address of a display interface corresponding to the similar image.
  • the aforementioned designated storage area may be the resource storage area corresponding to the image download platform or the theme download platform, then in this case, after the similar image is obtained, the similar image can also be displayed by triggering the electronic device.
  • the similar images are displayed on the display interface in the image download platform or the theme download platform, thereby facilitating traffic flow for the image download platform or the theme download platform.
  • the electronic device displays the similar image on the display interface in the image download platform or theme download platform, it can search for other types of images or themes in the image download platform or theme download platform.
  • the electronic device may jump to the display interface corresponding to the link information based on the link information in response to the user's touch operation.
  • a similar image k and a similar image m are displayed in the interface shown in FIG. 9 .
  • the menu interface 13 in the right image in FIG. 9 can be displayed.
  • the menu interface 13 includes the option of using image processing parameters and the option of jumping to the corresponding platform. If it is detected that the option of jumping to the corresponding platform is selected, the electronic device can trigger jumping to the display interface in the image download platform or the theme download platform to display the similar image k.
  • the method of obtaining image processing parameters of an image similar to the image to be processed can be obtained by querying , so that the image to be processed can be directly processed based on the image processing parameters of the image similar to the image to be processed, thereby improving the degree of intelligence in the image processing process.
  • the efficiency of image processing is also improved.
  • the preview effect of the corresponding image processing can also be triggered by triggering a designated touch operation on a plurality of similar images, which is beneficial for the user to select the image processing parameters required by himself, and further The convenience of image processing is improved.
  • an image processing method provided by an embodiment of the present application is applied to an electronic device, and the method includes:
  • S320 Based on the global feature and the local feature map of the image to be processed, search for an image similar to the image to be processed in a designated storage area, and obtain a similar image, wherein the image in the designated storage area corresponds to image processing parameter.
  • the global feature can be understood as the feature that characterizes the image content as a whole, and correspondingly, the local feature can be understood as the feature that characterizes the image content from the part of the image.
  • the obtaining of the global feature and the local feature map includes:
  • the target neural network can be a CNN (Convolutional Neural Networks) network.
  • the target neural network in this embodiment may be a model that has been trained in other tasks, such as a classification model, a segmentation model, and the like.
  • S322 Perform global average pooling processing on the initial feature map to obtain global features.
  • global average pooling can be performed based on the following formula, which is:
  • F(i,j) represents the feature vector at position (i,j)
  • w represents the width of the initial feature map
  • h represents the height of the initial feature map.
  • the initial feature map F of size w*h*d can be processed by global average pooling to obtain global image feature G with size 1*d as global feature.
  • S323 Acquire feature sets corresponding to multiple positions in the initial feature map, where the feature sets corresponding to each position include features of each position and features of adjacent positions of each position.
  • the plurality of locations may be each location in the initial feature map.
  • the initial feature map may correspond to a channel dimension
  • the information of each position (i, j) includes the color information of each channel.
  • the initial feature map 20 shown in FIG. 13 is exemplarily shown as position a to position i (the initial feature map 20 may also include positions other than position a to position i) other positions), wherein, for position a, adjacent positions include position b, position e and position d, for example, for position e, adjacent positions include position a, position b, position c, position f , position i, position h, position g, position d.
  • S324 Perform averaging processing on the feature sets corresponding to each of the positions to obtain local features corresponding to each of the positions.
  • S325 Obtain the local feature map based on the local features corresponding to each of the positions.
  • an initial feature map F with a size of w*h*d can be obtained, and then the position (i, j ) of the feature set, and then average the local domain of the feature set at the position (i, j) (that is, average processing), you can obtain a local feature of size 1*d, and then the size corresponding to each position is 1
  • the local feature map corresponding to the to-be-processed image of size W*H*3 can be obtained.
  • the local feature corresponding to each position can also be understood as the local feature vector of each position.
  • the local feature vector of each position can be calculated by the following formula. The formula is: :
  • F(u, v) represents the feature vector at the position (u, v)
  • M represents the number of adjacent positions corresponding to the position (u, v).
  • searching for an image similar to the to-be-processed image in a designated storage area to obtain a similar image including:
  • the corresponding global feature and the global feature of the image to be processed satisfy the first similarity condition
  • the corresponding local feature map and the local feature map of the image to be processed satisfy the second similarity condition images as similar images.
  • the global feature of the image to be processed may be used as the first global feature
  • the local feature map of the image to be processed may be used as the first local feature map.
  • the global feature of the image that is currently compared with the image to be processed in the specified storage area can be used as the second global feature
  • the local feature map of the image that is currently compared with the image to be processed in the specified storage area can be used as the second local feature. picture.
  • the distance between the first global feature and the second global feature is less than a first distance threshold, it is determined that the first global feature and the second global feature satisfy a first similarity condition.
  • the distance between the first global feature and the second global feature may be calculated based on the Euclidean distance or the cosine distance.
  • the distance between the first global feature and the second global feature can be calculated based on the following formula, where the formula is:
  • D G represents the calculated distance between the first global feature and the second global feature
  • G 1 represents the first global feature
  • G 2 represents the second global feature
  • calculating whether the first local feature map and the second local feature map satisfy the second similarity condition may include:
  • the first local feature is the local feature included in the first local feature map
  • the second local feature is the second local feature The local features included in the feature map.
  • the first local feature map is obtained by combining local features corresponding to multiple positions in the aforementioned first initial feature map.
  • the second local feature map is obtained by combining local features corresponding to multiple positions in the aforementioned second initial feature map.
  • the positions in the first initial feature map and the second initial feature map may be identified based on coordinates, and then positions with the same corresponding coordinates may be used as mutually corresponding positions.
  • the coordinates of the position (i 1 , j 1 ) of the first local feature map and the position (i 1 , j 1 ) of the second local feature map are both (i 1 , j 1 ), then the first local The position (i 1 , j 1 ) in the feature map and the position (i 1 , j 1 ) in the second local feature map are two positions whose positions correspond to each other.
  • the local features corresponding to the two positions corresponding to each other are the corresponding local features.
  • the first local feature and the second local feature corresponding to each other can be understood as the position corresponding to the first local feature, and the position corresponding to the second local feature is corresponding to each other.
  • the first initial feature map 30 and the second initial feature map 40 are shown, wherein the coordinates of the position 31 of the first initial feature map 30 are (1, 1), and the coordinates of the second initial feature map 40 are The coordinates corresponding to the position 41 are also (1, 1), because the coordinates of the position 31 in the first initial feature map 30 and the coordinates of the position 41 in the second initial feature map 40 are the same, then the position 31 and the position feature 31 is the corresponding position, and the first local feature corresponding to the position 31 and the first local feature corresponding to the position 41 are the corresponding first local feature and the second local feature.
  • the sizes of the first initial feature map and the second initial feature map are also the same. Then, for each position in the first initial feature map, there will be a corresponding position in the second initial feature map.
  • the feature distance between the first local feature and the second local feature corresponding to each other can be calculated based on the following formula, which is:
  • L 1 (i, j) represents the local feature corresponding to the position (i, j) in the first initial feature map.
  • L 2 (i, j) represents the local feature corresponding to the position (i, j) in the second initial feature map.
  • the first local feature whose corresponding feature distance is smaller than the second distance threshold is used as the target local feature.
  • the first partial corresponding to each position in the first initial feature map can be obtained by calculation
  • the feature distance corresponding to the feature may be understood as the feature distance between the first local feature and the second local feature corresponding to the position.
  • the ratio of the number of target local features to the number of local features included in the first local feature map is greater than a scale threshold, it is determined that the first local feature map and the second local feature map satisfy a second similarity condition.
  • NL represents the number of target local features
  • w represents the width of the first initial feature map
  • h is the height of the first initial feature map.
  • the R can be 0.6.
  • the product of the width of the first initial feature map and the height of the first initial feature map represents the number of positions in the first initial feature map.
  • the number of local features included in the first local feature map is the number of positions in the first initial feature map.
  • S340 Perform image processing on the to-be-processed image based on the image processing parameter.
  • the method of obtaining image processing parameters of an image similar to the image to be processed can be obtained by querying , so that the image to be processed can be directly processed based on the image processing parameters of the image similar to the image to be processed, thereby improving the degree of intelligence in the image processing process.
  • the global features and local features of the images can be combined to perform similarity detection, so that a more comprehensive detection can be performed in the process of image similarity detection, which improves the performance of the image similarity detection process. Accuracy of similarity detection.
  • an image processing method provided by an embodiment of the present application is applied to a server, and the method includes:
  • S410 Receive the to-be-processed image sent by the electronic device.
  • S420 Search for an image similar to the image to be processed in a designated storage area based on the feature of the image to be processed, to obtain a similar image, wherein the image in the designated storage area corresponds to an image processing parameter.
  • S440 Perform image processing on the to-be-processed image based on the image processing parameter to obtain a processed image.
  • an image processing method After acquiring an image to be processed, an image similar to the image to be processed is searched in a designated storage area based on the characteristics of the image to be processed, so as to obtain a similar image, wherein, in The images in the designated storage area correspond to image processing parameters, and then the image processing parameters corresponding to the similar images can be obtained while the similar images are obtained, and then image processing is performed on the to-be-processed images based on the image processing parameters of the similar images.
  • the method of acquiring the image processing parameters of the image similar to the image to be processed can be obtained by query, so that the image processing parameters of the image similar to the image to be processed can be directly obtained based on the The image processing parameters of the image to be processed are used to process the image to be processed, thereby improving the degree of intelligence in the image processing process. Moreover, because the image to be processed is directly processed based on the image processing parameters of the image similar to the image to be processed, and the user does not need to perform the processing by himself, the efficiency of image processing is also improved.
  • an image processing apparatus 500 provided by an embodiment of the present application operates on an electronic device, and the apparatus 500 includes:
  • an image acquisition unit 510 configured to acquire an image to be processed
  • the image search unit 520 is configured to search for an image similar to the image to be processed in a designated storage area based on the characteristics of the image to be processed, and obtain a similar image, wherein the image in the designated storage area corresponds to an image processing parameter .
  • the parameter obtaining unit 530 is configured to obtain image processing parameters corresponding to the similar images.
  • the image processing unit 540 is configured to perform image processing on the to-be-processed image based on the image processing parameter.
  • the parameter obtaining unit 530 is specifically configured to display a plurality of similar images found; obtain a target similar image determined from the plurality of similar images; and obtain image processing parameters corresponding to the target similar images.
  • the image processing unit 540 is specifically configured to perform image processing on the to-be-processed image based on image processing parameters corresponding to the target similar image.
  • the apparatus 500 further includes: a processing effect preview unit 550 and a flow drainage unit 560 .
  • the processing effect preview unit 550 is used to obtain a reference similar image, where the reference similar image is a similar image that is detected with a designated touch operation in the plurality of similar images; during the action of the designated touch operation, Display the preview effect of the image to be processed based on the image processing parameters corresponding to the reference similar image after image processing; if it is detected that the specified touch operation ends, cancel the display of the preview effect.
  • the images in the designated storage area also correspond to link information of the display interface
  • the traffic diversion unit 560 is configured to obtain the link information corresponding to the similar images; jump to the link information based on the link information corresponding display interface.
  • the features include global features and local feature maps
  • the image search unit 520 is specifically configured to search for images related to the to-be-processed image in the designated storage area based on the global features and local feature maps of the to-be-processed image. Similar images, get similar images.
  • the image search unit 520 is specifically configured to perform similarity comparison between the global feature of the image to be processed and the global feature of the image in the designated storage area, and compare the global feature of the image to be processed with The local feature map of the processed image and the local feature map of the image in the designated storage area are similarly compared; in the designated storage area, the corresponding global feature and the global feature of the image to be processed satisfy the first similarity condition , and an image satisfying the second similarity condition between the corresponding local feature map and the local feature map of the image to be processed is regarded as a similar image.
  • an image processing apparatus 600 provided by an embodiment of the present application operates on an electronic device, and the apparatus 600 includes:
  • the data communication unit 610 is configured to receive the to-be-processed image sent by the electronic device.
  • the image search unit 620 is configured to search for an image similar to the image to be processed in a designated storage area based on the characteristics of the image to be processed, and obtain a similar image, wherein the image in the designated storage area corresponds to an image processing parameter .
  • the parameter obtaining unit 630 is configured to obtain image processing parameters corresponding to the similar images.
  • the image processing unit 640 is configured to perform image processing on the to-be-processed image based on the image processing parameter to obtain a processed image.
  • the data communication unit 610 is further configured to return the processed image to the electronic device.
  • An image processing apparatus obtains a similar image by searching for an image similar to the to-be-processed image in a designated storage area based on the characteristics of the to-be-processed image after acquiring the to-be-processed image, wherein:
  • the images in the designated storage area correspond to image processing parameters, and then the image processing parameters corresponding to the similar images can be obtained while obtaining the similar images, and then image processing is performed on the to-be-processed images based on the image processing parameters of the similar images.
  • the method of acquiring the image processing parameters of the image similar to the image to be processed can be obtained by query, so that the image processing parameters of the image similar to the image to be processed can be directly obtained based on the The image processing parameters of the image to be processed are used to process the image to be processed, thereby improving the degree of intelligence in the image processing process. Moreover, because the image to be processed is directly processed based on the image processing parameters of the image similar to the image to be processed, and the user does not need to perform the processing by himself, the efficiency of image processing is also improved.
  • the electronic device 200 includes one or more (only one shown in the figure) a processor 102, a memory 104, and a network module 106 that are coupled to each other.
  • the memory 104 stores a program that can execute the content in the foregoing embodiments, and the processor 102 can execute the program stored in the memory 104 .
  • the processor 102 may include one or more cores for processing data.
  • the processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 200, and executes by running or executing the instructions, programs, code sets or instruction sets stored in the memory 104, and calling the data stored in the memory 104.
  • the processor 102 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), field-programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA).
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA programmable logic array
  • the processor 102 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used for rendering and drawing of the display content
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 102, and is implemented by a communication chip alone.
  • the memory 104 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). Memory 104 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 104 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing the operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the memory 104 may store means for image processing.
  • the image processing apparatus may be the aforementioned apparatus 500 or the aforementioned apparatus 600 .
  • the storage data area may also store data created by the terminal 100 during use (such as phone book, audio and video data, chat record data) and the like.
  • the network module 106 is used for receiving and sending electromagnetic waves, realizing mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices, for example, communicate with an audio playback device.
  • the network module 106 may include various existing circuit elements for performing these functions, eg, antennas, radio frequency transceivers, digital signal processors, encryption/decryption chips, subscriber identity module (SIM) cards, memory, etc. .
  • the network module 106 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.
  • the aforementioned wireless network may include a cellular telephone network, a wireless local area network, or a metropolitan area network.
  • the network module 106 may interact with the base station for information.
  • FIG. 21 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • the computer-readable medium 1100 stores program codes, and the program codes can be invoked by the processor to execute the methods described in the above method embodiments.
  • the computer-readable storage medium 1100 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 1100 includes a non-transitory computer-readable storage medium.
  • the computer-readable storage medium 1100 has storage space for program code 1110 that performs any of the method steps in the above-described methods. These program codes can be read from or written to one or more computer program products. Program code 1110 may be compressed, for example, in a suitable form.
  • an image processing method, device, electronic device and storage medium provided by the present application, after acquiring an image to be processed, and then based on the characteristics of the to-be-processed image in a designated storage area to search for and the to-be-processed image Images with similar images are obtained to obtain similar images, wherein the images in the designated storage area correspond to image processing parameters, and then the image processing parameters corresponding to similar images can be obtained while obtaining similar images, and then the image processing parameters based on similar images can be obtained.
  • the parameter performs image processing on the to-be-processed image.
  • the method of acquiring the image processing parameters of the image similar to the image to be processed can be obtained by query, so that the image processing parameters of the image similar to the image to be processed can be directly obtained based on the The image processing parameters of the image to be processed are used to process the image to be processed, thereby improving the degree of intelligence in the image processing process. Moreover, because the image to be processed is directly processed based on the image processing parameters of the image similar to the image to be processed, and the user does not need to perform the processing by himself, the efficiency of image processing is also improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Molecular Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • Biophysics (AREA)
  • Computational Linguistics (AREA)
  • Mathematical Physics (AREA)
  • Computing Systems (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Certains modes de réalisation de la présente demande divulguent un procédé et un appareil de traitement d'images, un dispositif électronique et un support de stockage. Le procédé consiste à : acquérir une image à traiter ; chercher, selon une caractéristique de l'image à traiter, une zone spécifiée de stockage pour une image similaire à l'image à traiter pour obtenir une image similaire, des images de la zone spécifiée de stockage ayant des paramètres correspondants de traitement d'images ; acquérir un paramètre de traitement d'image correspondant à l'image similaire ; et réaliser, selon le paramètre de traitement d'image, un traitement d'image sur l'image à traiter. Pendant un processus de réalisation de traitement d'image sur une image pour embellir l'image donc, un paramètre de traitement d'image d'une image similaire à une image à traiter peut être acquis par interrogation, pour pouvoir réaliser un traitement d'image sur l'image à traiter directement selon le paramètre de traitement d'image de l'image similaire à l'image à traiter, ce qui améliore le degré d'intelligence pendant un processus de traitement d'images ainsi que l'efficacité de traitement d'images.
PCT/CN2021/133246 2020-12-08 2021-11-25 Procédé et appareil de traitement d'images, dispositif électronique et support de stockage WO2022121701A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011446215.8 2020-12-08
CN202011446215.8A CN112487223A (zh) 2020-12-08 2020-12-08 图像处理方法、装置以及电子设备

Publications (1)

Publication Number Publication Date
WO2022121701A1 true WO2022121701A1 (fr) 2022-06-16

Family

ID=74941325

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133246 WO2022121701A1 (fr) 2020-12-08 2021-11-25 Procédé et appareil de traitement d'images, dispositif électronique et support de stockage

Country Status (2)

Country Link
CN (1) CN112487223A (fr)
WO (1) WO2022121701A1 (fr)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117671554A (zh) * 2023-10-20 2024-03-08 上海盈蝶智能科技有限公司 一种安防监控方法及系统

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487223A (zh) * 2020-12-08 2021-03-12 Oppo广东移动通信有限公司 图像处理方法、装置以及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130129214A1 (en) * 2010-08-04 2013-05-23 Nec Corporation Image processing method, image processing apparatus, and image processing program
CN109857889A (zh) * 2018-12-19 2019-06-07 苏州科达科技股份有限公司 一种图像检索方法、装置、设备及可读存储介质
CN111031239A (zh) * 2019-12-05 2020-04-17 Oppo广东移动通信有限公司 图像处理方法及其装置、电子设备和计算机可读存储介质
CN111738957A (zh) * 2020-06-28 2020-10-02 携程计算机技术(上海)有限公司 图像智能美化方法、系统、电子设备及存储介质
CN111930983A (zh) * 2020-08-18 2020-11-13 创新奇智(成都)科技有限公司 一种图像检索方法、装置、电子设备及存储介质
CN112487223A (zh) * 2020-12-08 2021-03-12 Oppo广东移动通信有限公司 图像处理方法、装置以及电子设备

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108022207A (zh) * 2017-11-30 2018-05-11 广东欧珀移动通信有限公司 图像处理方法、装置、存储介质和电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130129214A1 (en) * 2010-08-04 2013-05-23 Nec Corporation Image processing method, image processing apparatus, and image processing program
CN109857889A (zh) * 2018-12-19 2019-06-07 苏州科达科技股份有限公司 一种图像检索方法、装置、设备及可读存储介质
CN111031239A (zh) * 2019-12-05 2020-04-17 Oppo广东移动通信有限公司 图像处理方法及其装置、电子设备和计算机可读存储介质
CN111738957A (zh) * 2020-06-28 2020-10-02 携程计算机技术(上海)有限公司 图像智能美化方法、系统、电子设备及存储介质
CN111930983A (zh) * 2020-08-18 2020-11-13 创新奇智(成都)科技有限公司 一种图像检索方法、装置、电子设备及存储介质
CN112487223A (zh) * 2020-12-08 2021-03-12 Oppo广东移动通信有限公司 图像处理方法、装置以及电子设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117671554A (zh) * 2023-10-20 2024-03-08 上海盈蝶智能科技有限公司 一种安防监控方法及系统

Also Published As

Publication number Publication date
CN112487223A (zh) 2021-03-12

Similar Documents

Publication Publication Date Title
CN111368893B (zh) 图像识别方法、装置、电子设备及存储介质
WO2022121701A1 (fr) Procédé et appareil de traitement d'images, dispositif électronique et support de stockage
CN107480176B (zh) 一种图片的管理方法、装置及终端设备
CN106446950B (zh) 一种图像处理方法及装置
KR101620933B1 (ko) 제스쳐 인식 메커니즘을 제공하는 방법 및 장치
WO2022012123A1 (fr) Procédé et appareil de traitement de données, dispositif électronique et support de stockage
CN110909209B (zh) 直播视频的搜索方法及装置、设备、服务器和存储介质
US10528845B2 (en) Method, device, and storage medium for generating GIF file
CN109062715B (zh) 内存时钟频率的确定方法、装置及终端
CN109598250B (zh) 特征提取方法、装置、电子设备和计算机可读介质
CN111124173B (zh) 触摸屏的工作状态切换方法、装置、移动终端及存储介质
WO2021179856A1 (fr) Procédé et appareil de reconnaissance de contenu, dispositif électronique, et support d'informations
US20190114989A1 (en) Systems and methods for image optimization
CN110853068A (zh) 图片处理方法、装置、电子设备及可读存储介质
CN111182332B (zh) 视频处理方法、装置、服务器及存储介质
CN110211017A (zh) 图像处理方法、装置及电子设备
US20170171462A1 (en) Image Collection Method, Information Push Method and Electronic Device, and Mobile Phone
CN110188782B (zh) 图像相似性确定方法、装置、电子设备及可读存储介质
CN117459662B (zh) 一种视频播放方法、识别方法、装置、设备及存储介质
CN115841575A (zh) 关键点检测方法、装置、电子设备、存储介质和程序产品
WO2022111070A1 (fr) Procédé et appareil de traitement d'images, dispositif électronique et support de stockage
CN111353063A (zh) 图片显示方法、装置及存储介质
US20170132755A1 (en) Method, device and system for processing image
CN114862720A (zh) 画布还原方法、装置、电子设备和计算机可读介质
CN109218597A (zh) 一种智能终端拍摄图像的方法以及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21902408

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21902408

Country of ref document: EP

Kind code of ref document: A1