WO2019233271A1 - Image processing method, computer readable storage medium and electronic device - Google Patents

Image processing method, computer readable storage medium and electronic device Download PDF

Info

Publication number
WO2019233271A1
WO2019233271A1 PCT/CN2019/087678 CN2019087678W WO2019233271A1 WO 2019233271 A1 WO2019233271 A1 WO 2019233271A1 CN 2019087678 W CN2019087678 W CN 2019087678W WO 2019233271 A1 WO2019233271 A1 WO 2019233271A1
Authority
WO
WIPO (PCT)
Prior art keywords
confidence
classification
image
processed
label
Prior art date
Application number
PCT/CN2019/087678
Other languages
French (fr)
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 WO2019233271A1 publication Critical patent/WO2019233271A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image processing method, a computer-readable storage medium, and an electronic device.
  • Smart devices can capture images through the camera, or they can acquire images through transmission with other smart devices.
  • images taken in different scenes have different color characteristics, and different target objects have different performance characteristics.
  • an image processing method a computer-readable storage medium, and an electronic device are provided.
  • An image processing method includes:
  • Identify the image to be processed and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
  • the classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  • An image processing device includes:
  • An image acquisition module configured to acquire an image to be processed
  • An image recognition module configured to identify the image to be processed, to obtain an image classification label of the image to be processed, and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label. degree;
  • a data acquisition module configured to acquire weather data and a shooting time when shooting the image to be processed
  • the confidence adjustment module is configured to adjust the classification confidence according to the weather data and shooting time to obtain a target classification confidence corresponding to the image classification label.
  • a computer-readable storage medium on which a computer program is stored is characterized in that, when the computer program is executed by a processor, the following operations are performed:
  • Identify the image to be processed and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
  • the classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  • An electronic device includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor causes the processor to perform the following operations:
  • Identify the image to be processed and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
  • the classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  • the above image processing method, computer-readable storage medium, and electronic device can identify the image to be processed to obtain the image classification label level classification confidence, and then obtain the weather data and shooting time when the image to be processed is captured, and adjust according to the weather data and shooting time Classification confidence.
  • the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, which improves the image. Processing accuracy.
  • FIG. 1 is an application environment diagram of an image processing method in an embodiment.
  • FIG. 2 is a flowchart of an image processing method according to an embodiment.
  • FIG. 3 is a flowchart of an image processing method in another embodiment.
  • FIG. 4 is a schematic diagram of training a neural network model in one embodiment.
  • FIG. 5 is a flowchart of an image processing method according to another embodiment.
  • FIG. 6 is a flowchart of an image processing method according to another embodiment.
  • FIG. 7 is a flowchart of an image processing method according to another embodiment.
  • FIG. 8 is a schematic structural diagram of an image processing apparatus according to an embodiment.
  • FIG. 9 is a schematic diagram of an image processing circuit in one embodiment.
  • first the terms “first”, “second”, and the like used in this application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.
  • the first client may be referred to as the second client, and similarly, the second client may be referred to as the first client. Both the first client and the second client are clients, but they are not the same client.
  • FIG. 1 is an application environment diagram of an image processing method in an embodiment.
  • the application environment includes a terminal 102 and a server 104.
  • the image to be processed may be transmitted between the terminal 102 and the server 104, and the image to be processed may be classified and processed.
  • the terminal 102 can capture several images to be processed, obtain weather data and shooting time when shooting the images to be processed, and then send the images to be processed, weather data, and shooting time to the server 104.
  • a classification algorithm for classifying images is stored in the server 104, and the received images to be processed can be identified to obtain image classification labels and corresponding classification confidences of the images to be processed.
  • the server 104 can adjust the classification confidence level according to the weather data and the shooting time to obtain the target classification confidence level corresponding to the image classification label. Finally, the recognition result of the image to be processed is adjusted according to the target classification confidence, and the adjusted recognition result is sent to the terminal 102.
  • the terminal 102 may process the image to be processed according to the obtained recognition result.
  • the terminal 102 is an electronic device located at the outermost periphery of a computer network and is mainly used for inputting user information and outputting processing results.
  • the terminal 102 may be a personal computer, a mobile terminal, a personal digital assistant, or a wearable electronic device.
  • the server 104 is a device for responding to a service request while providing a computing service, and may be, for example, one or more computers. In other embodiments provided in this application, the foregoing application environment may further include only the terminal 102 or the server 104, which is not limited herein.
  • FIG. 2 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 2, the image processing method includes operations 202 to 208. among them:
  • cameras may be installed on the electronic device internally or externally, and the positions and number of the cameras are not limited. For example, you can install one camera on the front of the phone and two cameras on the back of the phone.
  • the process of capturing an image is generally divided into two phases: a preview phase and a shooting phase.
  • the camera will capture images at a certain interval.
  • the captured images will not be stored, but will be displayed for users to view.
  • the user adjusts the shooting angle, light and other parameters according to the displayed image.
  • the shooting phase is entered, and the electronic device stores the next frame image after receiving the shooting instruction as the final captured image.
  • the electronic device can store the captured image and send it to the server or other electronic devices. It can be understood that the image to be processed obtained in this embodiment is not limited to being taken by the electronic device itself, but may also be sent by other electronic devices or downloaded through the network. After obtaining the images, the electronic device can process the images immediately or store the images in a folder in a unified manner. After the images stored in the folder reach a certain number, the stored images are processed in a unified manner. The electronic device may store the acquired images in an album, and when the number of images stored in the album is greater than a certain number, processing of the images in the album is triggered.
  • the image to be processed is identified, and an image classification label and a corresponding classification confidence level of the image to be processed are obtained.
  • the classification confidence level is used to indicate the credibility of the image classification label.
  • the image classification label can be used to indicate the specific classification of the shooting scene of the image to be processed.
  • the shooting scene of an image can be divided into one of landscape, beach, blue sky, green grass, snow, backlight, sunrise / sunset, fireworks, spotlight, and so on.
  • the electronic device can obtain an image classification label by identifying the shooting scene of the image to be processed.
  • the electronic device can recognize the image to be processed by using a classification algorithm model, and obtain an image classification label of the image to be processed.
  • a classification algorithm model Before the classification algorithm model is used for recognition, it is usually necessary to train the classification algorithm model through a training image set to obtain an algorithm model that can accurately identify it. In general, the more training images contained in the training image set, the more accurate the classification algorithm model finally obtained.
  • the classification algorithm model After the classification algorithm model is trained, the image to be processed is input into the trained classification algorithm model, and the classification result is output through the classification algorithm model.
  • the classification algorithm model can identify the image classification label corresponding to the image to be processed and the corresponding classification confidence level.
  • the classification confidence level is used to indicate the credibility of the image classification label, and the greater the classification confidence level is. , The more accurate the recognition result is.
  • multiple application scenarios can be defined for the image in advance, and multiple classification labels can be defined according to the multiple application scenarios.
  • the classification algorithm model can calculate the probability that the image corresponds to each classification label. The greater the probability of a classification label, the greater the likelihood that an image is an application scenario corresponding to the classification label. The classification label with the highest probability can be used as the image classification label of the image, and the probability corresponding to the image classification label is the classification confidence.
  • the above classification algorithm model may be, but is not limited to, a K nearest neighbor classification model, a nearest neighbor classification model, a naive Bayes classification model, a neural network model, and the like.
  • Operation 206 Obtain weather data and a shooting time when shooting the image to be processed.
  • an electronic device When an electronic device captures an image, it can obtain the weather data and the shooting time when the image is captured, and store the weather data and the shooting time at the same time.
  • the electronic device transmits the image to be processed, the weather data and the shooting time can be transmitted simultaneously with the image to be processed.
  • the electronic device when it detects a shooting instruction, it will control the camera to capture an image. After capturing the image, it calls a dedicated weather interface to obtain weather data, and at the same time obtains the current time as the shooting time when shooting the image.
  • the acquired weather data can be divided into sunny, cloudy, cloudy, and rainy days.
  • the obtained shooting time can be "11:53 on May 26, 2018".
  • Operation 208 Adjust the classification confidence level according to the weather data and the shooting time to obtain the target classification confidence level corresponding to the image classification label.
  • the captured images have different characteristics, and the recognition results of the electronic devices also have different credibility.
  • the image collected on a sunny day is relatively light, the captured image can well restore the original characteristics of the object, and the recognition result of the image by the electronic device is more accurate.
  • the images collected during rainy weather are relatively dark, and the captured images deviate from the original characteristics of the object.
  • images taken at noon more accurately reflect the original characteristics of objects than images taken in the evening.
  • the recognition result can be adjusted by weather data and shooting time.
  • the adjusted recognition result can more accurately reflect the real shooting of the image Scenes. For example, if the image is taken on a sunny day, the classification confidence obtained through recognition can be appropriately increased, and if the image is shot in a rainy weather, the classification confidence obtained through recognition can be appropriately reduced.
  • the image processing method provided in the foregoing embodiment may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time.
  • the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, improving the image Processing accuracy.
  • FIG. 3 is a flowchart of an image processing method in another embodiment. As shown in FIG. 3, the image processing method includes operations 302 to 312. among them:
  • An automatic triggering condition may be preset, and when the automatic triggering condition is satisfied, operation 302 is performed. For example, when the number of updated images in the electronic device reaches a preset number, it starts to acquire the stored images and starts processing the images. Or each time when a specified time is reached, the image to be processed is started to be acquired, and the image to be processed is processed.
  • the larger the number of images to be processed the larger the memory consumed during image processing and the longer the time consumed.
  • the processing capacity of the terminal is generally relatively limited, so when the terminal needs to process a large number of images in batches, it can send the images and corresponding weather data to the server together with the shooting time.
  • the server recognizes the image and returns the recognition result to the terminal.
  • the terminal processes the image according to the received recognition result.
  • the image to be processed is taken as an input of a neural network model, and a reference confidence level corresponding to at least one preset classification label is calculated through the neural network model.
  • the image to be processed may be identified by a neural network model.
  • the neural network model Before recognition, the neural network model needs to be trained.
  • the electronic device can obtain a training image set used to train a neural network model, and the training images in the training image set all have labels for labeling scene categories.
  • the training image in the training image set is used as the input of the neural network model, and the recognition result of the training image is obtained.
  • the recognition result is compared with the pre-labeled label, and the parameters of the neural network model are adjusted according to the comparison result. To make the recognition result of the neural network model more accurate.
  • the shooting scenes of the image are predefined, and each shooting scene corresponds to a preset classification label.
  • the neural network model any one of the predefined shooting scenes can be identified.
  • the image to be processed that needs to be identified is used as the input of the neural network model.
  • the neural network model is used to calculate the reference confidence level corresponding to each of the predefined classification labels, and the final classification of the image is determined according to the reference confidence level. result.
  • FIG. 4 is a schematic diagram of training a neural network model in one embodiment.
  • a training image with a category label is used as an input to the neural network model, thereby completing the training of the neural network model.
  • a loss function can be obtained.
  • the image can be recognized by the trained neural network model, and the confidence of each category can be calculated by the loss function, and the final classification result is determined according to the obtained confidence.
  • the neural network model may be stored in an electronic device in advance.
  • the neural network model is used to perform recognition processing on the image to be processed.
  • the neural network model generally occupies the storage space of the electronic device, and when processing a large number of images, the storage capacity requirements of the electronic device are also relatively high.
  • the to-be-processed image on the terminal it can be processed through the neural network model stored locally on the terminal, or the to-be-processed image can be sent to the server for processing through the neural network model stored on the server.
  • the server can send the trained neural network model to the terminal after the neural network model is trained, and the terminal does not need to train the neural network model.
  • the neural network model stored in the terminal can be a compressed model, so that the compressed model will occupy less resources, but the corresponding recognition accuracy will be lower.
  • the terminal can decide whether to perform the recognition processing locally on the terminal or the recognition processing on the server according to the number of images to be processed. After the terminal obtains the image to be processed, it counts the number of images of the image to be processed. If the number of images exceeds the preset upload number, the terminal uploads the image to be processed to the server, and performs recognition processing on the server. After processing by the server, the recognition result is sent to the terminal.
  • Operation 306 Determine the image classification label corresponding to the image to be processed from the preset classification labels according to the reference confidence level, and use the reference confidence level corresponding to the image classification label as the classification confidence level.
  • the preset classification labels are predefined, and the reference confidence corresponding to each preset classification label is calculated by a neural network model.
  • the preset classification label with the highest reference confidence can be used as the image classification label corresponding to the image to be processed, and the maximum reference confidence can be used as the classification confidence corresponding to the image classification label.
  • the predefined preset classification labels include landscape, night, and snow
  • the image is used as the input of the neural network model
  • the reference confidences corresponding to the three preset classification labels are 0.85, 0.1, and 0.05, respectively.
  • the preset classification label “Landscape” with the highest confidence is used as the image recognition result. That is, the image classification label of the image is "landscape", and the corresponding classification confidence is 0.85.
  • Operation 308 Determine whether the classification confidence level exceeds a preset confidence level range.
  • the classification confidence of the finally obtained image classification label exceeds a certain range, the classification result is considered to be unreliable, and the electronic device may directly discard the unreliable classification result.
  • the classification confidence can be adjusted according to weather data and shooting time to make the obtained classification confidence more accurate.
  • the classification confidence can be divided into a trusted value range and an untrusted value range.
  • the classification confidence is within the trusted value range, the classification result is considered reliable; when the classification confidence is within the untrusted value range The results are considered unreliable.
  • the classification confidence is within the preset confidence range, it is considered that the classification confidence adjusted according to the added value of the confidence is the same as the above-mentioned value range of the classification confidence before the adjustment, so that adjusting the classification confidence does not affect the reliability Judging the result, it is not necessary to adjust the classification confidence.
  • the classification confidence is [0,0.4]
  • the classification result is considered to be unreliable
  • the classification confidence is (0.4,1]
  • the classification result is considered to be reliable.
  • the minimum value of the confidence increase is 0.4
  • the maximum value is 1.6. It can be understood that when the value of the classification confidence is [0,0.25], it is immediately multiplied by the maximum value of the confidence increase of 1.6, and the value of the adjusted classification confidence is still within the range of unreliable values. Without affecting the judgment of the reliability of the classification result. Therefore, when the classification confidence is within the preset confidence range [0, 0.25], no adjustment is needed.
  • Operation 312 Determine the confidence value increase according to the weather data and the shooting time, and adjust the classification confidence value according to the confidence value increase to obtain the target classification confidence value corresponding to the image classification label.
  • the operation of adjusting the confidence level of the classification may include:
  • Operation 502 Determine a first confidence value increase according to weather data, and determine a second confidence value increase according to a shooting time.
  • the increments for adjusting the classification confidence can be obtained according to the weather data and the shooting time, respectively.
  • the first confidence value increase may be determined according to the weather data
  • the second confidence value increase may be determined according to the shooting time.
  • the first confidence value increase and the second confidence value increase may be related to each other or independent of each other, which is not limited herein.
  • Confidence increment refers to the increment that adjusts the confidence of the classification. It can be negative or positive.
  • the correspondence relationship between the weather data and the first confidence value increase may be defined in advance, and the first confidence value increase may be obtained according to the weather data.
  • the correspondence between the shooting time and the added value of the second confidence is defined in advance, and the second added value of the confidence can be obtained according to the shooting time.
  • the definition of weather data includes "00", “01”, “10”, and “11”, which respectively represent the weather “sunny”, “cloudy”, “cloudy”, and “rainy”, and the corresponding first confidence value increases respectively. It is 1.2, 1.1, 0.9, 0.8.
  • Operation 504 Multiply the result of multiplying the first confidence value by the second confidence value by the classification confidence to obtain the target classification confidence corresponding to the image classification label.
  • the classification confidence is adjusted according to the obtained first confidence value increase and the second confidence value increase, or a total confidence value increase may be generated according to the first confidence value increase and the second confidence value increase, and then adjusted according to the total confidence value increase Classification confidence.
  • adjusting the classification confidence it can be adjusted by means of superposition or by means of product, which is not limited here.
  • the first confidence value increase and the second confidence value increase may be multiplied, and then the result of multiplying the first confidence value increase with the second confidence value increase and the classification confidence may be multiplied to obtain image classification.
  • the algorithms for adjusting the classification confidence may be different, that is, the manners of obtaining the added value of the confidence may be different. Then specific:
  • Operation 602 Obtain a first correspondence relationship according to the image classification label, and determine a first confidence increase value corresponding to the weather data according to the first correspondence relationship.
  • the algorithm for adjusting the confidence level of the classification may also be different.
  • the correspondence between the weather data and the first confidence value increase under different recognition results can be defined in advance, and the first correspondence relationship can be obtained according to the identified image classification labels.
  • the first correspondence relationship is the correspondence between the weather data and the first confidence value increase. Therefore, the first confidence value increase corresponding to the weather data can be obtained according to the first correspondence relationship.
  • Operation 604 Obtain a second correspondence relationship according to the image classification label, and determine a second confidence increase value corresponding to the shooting time according to the second correspondence relationship.
  • the correspondence between the shooting time and the added value of the second confidence value under different recognition results is predefined, and the second correspondence can be obtained according to the identified image classification labels.
  • the second correspondence is the correspondence between the shooting time and the value of the second confidence value.
  • a first confidence value increase corresponding to the shooting time can be obtained according to the second correspondence relationship.
  • the classification confidence degree may indicate the credibility of the image recognition result.
  • the obtained classification confidence has a certain value range, and the adjusted classification confidence cannot exceed the value range. specific:
  • Operation 702 Calculate a reference classification confidence level according to the confidence value increment and the classification confidence level.
  • Operation 704 if the confidence value is negative, determine whether the reference classification confidence is less than a preset lower confidence value; if so, use the lower confidence value as the target classification confidence corresponding to the image classification label; if not, refer to The classification confidence is used as the target classification confidence corresponding to the image classification label.
  • the classification confidence is adjusted according to the added value of the confidence, and a reference classification confidence is calculated. If the confidence increase is negative, the obtained reference classification confidence is compared with the lower confidence limit. If the obtained reference classification confidence is less than the lower confidence limit, the lower confidence limit is used as the target classification confidence; if the obtained reference classification confidence is greater than the lower confidence limit, the reference classification confidence is used as the target classification Confidence.
  • the confidence increase value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit; if so, use the upper confidence limit as the target classification confidence corresponding to the image classification label.
  • the reference classification confidence is used as the target classification confidence corresponding to the image classification label.
  • the classification confidence adjusted according to the confidence increase will become larger, that is, the adjusted classification confidence cannot be greater than the upper confidence limit.
  • the classification confidence is adjusted according to the added value of the confidence, and a reference classification confidence is calculated. If the confidence increase is a positive number, the obtained reference classification confidence is compared with the upper confidence limit. If the obtained reference classification confidence is greater than the upper confidence limit, the upper confidence limit is used as the target classification confidence; if the obtained reference classification confidence is less than the upper confidence limit, the reference classification confidence is used as the target classification Confidence.
  • the image classification label obtained by identifying the image may be one of landscape, beach, blue sky, green grass, snow, backlight, sunrise / sunset, fireworks, and spotlight.
  • the confidence value obtained based on the weather data is: if the weather is sunny, the confidence value is increased to 1.2; if the weather is cloudy, the confidence value is increased to 1.1; if the weather is cloudy It is cloudy and the confidence increase is 0.9; if the weather is rainy, the confidence increase is 0.8.
  • the confidence value obtained based on the shooting time is: if the shooting time is from 07:00 to 10:00, the confidence is If the shooting time is from 10:00 to 14:00, the confidence value will increase to 1.2; if the shooting time is from 14:00 to 17:00, the confidence value will increase to 1.1; if the shooting time is 19:00 ⁇ 21: 00, the confidence increase value is 0.9; if the shooting time is from 21:00 to 02:00, the confidence increase value is 0.8; if the shooting time is from 20:00 to 05:00, the confidence increase value is 0.9; The built-in reliability increase value is 1 for other time periods.
  • the confidence value obtained based on the shooting time is: if the shooting time is from 07:00 to 10:00, the confidence value is increased to 0.9; if shooting If the time is from 10:00 to 14:00, the confidence value will increase to 0.8; if the shooting time is from 14:00 to 17:00, the confidence value will increase to 0.9; if the shooting time is from 19:00 to 21:00, the confidence will be increased. If the shooting time is from 21:00 to 23:00, the confidence value will increase to 1.2; If the shooting time is from 23:00 to 05:00, the confidence value will increase to 1.1; the built-in reliability value will be added to other time periods Is 1.
  • the confidence value obtained according to the shooting time is: if the shooting time is from 05:00 to 07:00, the confidence value is increased to 1.2; if the shooting time is at 17:00 ⁇ 20: 00, the confidence increase value is 1.2; the built-in reliability increase value is 0.8 in other time periods.
  • the range of the obtained target classification confidence value is [0,1].
  • the image to be processed can be labeled according to the image classification label, so that the user can search the image according to the generated classification label.
  • the images to be processed may be classified and displayed, which is convenient for users to view the images to be processed.
  • the search box can also be displayed on the display interface. The user can enter a search keyword through the search box, and the electronic device can search for a pending image containing the search keyword in the classification label for display.
  • the electronic device may also classify the image to be processed according to the image classification label, and perform the classification processing on the image to be processed.
  • An image processing algorithm is acquired according to the image classification label, and the image to be processed is processed according to the acquired image processing algorithm. For example, when it is recognized as a landscape, the image saturation may be recognized, and when it is recognized as a night landscape, the brightness of the image may be appropriately increased.
  • the image processing method provided in the foregoing embodiment may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time.
  • the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, which improves the image. Processing accuracy.
  • FIG. 2, FIG. 3, FIG. 5, FIG. 6, and FIG. 7 are sequentially displayed as indicated by the arrows, these operations are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order in which these operations can be performed, and these operations can be performed in other orders. Moreover, at least a part of the operations in FIG. 2, FIG. 3, FIG. 5, FIG. 6, and FIG. 7 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily performed at the same time, but may be performed at the same time. At different times, the execution order of these sub-operations or phases is not necessarily sequential, but can be performed in turn or alternately with at least a part of the sub-operations or phases of other operations or other operations.
  • FIG. 8 is a schematic structural diagram of an image processing apparatus according to an embodiment.
  • the image processing apparatus 800 includes an image acquisition module 802, an image recognition module 804, a data acquisition module 806, and a confidence adjustment module 808. among them:
  • the image acquisition module 802 is configured to acquire an image to be processed.
  • An image recognition module 804 is configured to identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate that the image classification label can be identified as an image classification label. Trust degree.
  • a data acquisition module 806 is configured to acquire weather data and a shooting time when the image to be processed is captured.
  • the confidence adjustment module 808 is configured to adjust the classification confidence according to the weather data and the shooting time to obtain a target classification confidence corresponding to the image classification label.
  • the image processing apparatus may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time.
  • the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, improving the image Processing accuracy.
  • the image recognition module 804 is further configured to use the to-be-processed image as an input of a neural network model, and calculate a reference confidence level corresponding to at least one preset classification label through the neural network model; according to the reference confidence level, The image classification label corresponding to the image to be processed is determined from the preset classification labels, and the reference confidence level corresponding to the image classification label is used as the classification confidence level.
  • the data acquisition module 806 is further configured to determine whether the classification confidence exceeds a preset confidence range; if so, obtain weather data and a shooting time when the image to be processed is captured.
  • the confidence adjustment module 808 is further configured to determine a confidence value increase based on weather data and shooting time, and adjust the classification confidence value according to the confidence value increase to obtain a target classification confidence corresponding to the image classification label. degree.
  • the confidence adjustment module 808 is further configured to determine a first confidence value increase according to the weather data, and determine a second confidence value increase according to the shooting time; and to combine the first confidence value increase with the The result of the multiplication of the second confidence value is multiplied with the classification confidence value to obtain the target classification confidence value corresponding to the image classification label.
  • the confidence adjustment module 808 is further configured to obtain a first correspondence relationship according to the image classification tag, and determine a first confidence increase value corresponding to the weather data according to the first correspondence relationship; according to the image The classification label acquires a second correspondence relationship, and determines a second confidence increase value corresponding to the shooting time according to the second correspondence relationship.
  • the confidence adjustment module 808 is further configured to calculate a reference classification confidence based on the confidence increase and classification confidence; if the confidence increase is negative, determine whether the reference classification confidence is less than A preset confidence level lower limit; if it is, the confidence level lower limit is used as the target classification confidence level corresponding to the image classification label; otherwise, the reference classification confidence level is used as the target corresponding to the image classification label level Classification confidence; if the added confidence value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit; if so, use the upper confidence limit as the image classification label corresponding The target classification confidence of, if otherwise, the reference classification confidence is used as the target classification confidence corresponding to the image classification label.
  • each module in the above image processing apparatus is for illustration only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the above image processing apparatus.
  • An embodiment of the present application further provides a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the image processing provided by the foregoing embodiments method.
  • An embodiment of the present application further provides an electronic device.
  • the above electronic device includes an image processing circuit.
  • the image processing circuit may be implemented by hardware and / or software components, and may include various processing units that define an ISP (Image Signal Processing) pipeline.
  • FIG. 9 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 9, for ease of description, only aspects of the image processing technology related to the embodiments of the present application are shown.
  • the image processing circuit includes an ISP processor 940 and a control logic 950.
  • the image data captured by the imaging device 910 is first processed by the ISP processor 940, which analyzes the image data to capture image statistical information that can be used to determine and / or one or more control parameters of the imaging device 910.
  • the imaging device 910 may include a camera having one or more lenses 912 and an image sensor 914.
  • the image sensor 914 may include a color filter array (such as a Bayer filter). The image sensor 914 may obtain the light intensity and wavelength information captured by each imaging pixel of the image sensor 914, and provide a set of Image data.
  • the sensor 920 may provide parameters (such as image stabilization parameters) of the acquired image processing to the ISP processor 940 based on the interface type of the sensor 920.
  • the sensor 920 interface may use a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the foregoing interfaces.
  • SMIA Standard Mobile Imaging Architecture
  • the image sensor 914 may also send the original image data to the sensor 920, and the sensor 920 may provide the original image data to the ISP processor 940 based on the interface type of the sensor 920, or the sensor 920 stores the original image data in the image memory 930.
  • the ISP processor 940 processes the original image data pixel by pixel in a variety of formats.
  • each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 940 may perform one or more image processing operations on the original image data and collect statistical information about the image data.
  • the image processing operations may be performed with the same or different bit depth accuracy.
  • the ISP processor 940 may also receive image data from the image memory 930.
  • the sensor 920 interface sends the original image data to the image memory 930, and the original image data in the image memory 930 is then provided to the ISP processor 940 for processing.
  • the image memory 930 may be a part of a memory device, a storage device, or a separate dedicated memory in an electronic device, and may include a DMA (Direct Memory Access) feature.
  • DMA Direct Memory Access
  • the ISP processor 940 may perform one or more image processing operations, such as time-domain filtering.
  • the processed image data may be sent to the image memory 930 for further processing before being displayed.
  • the ISP processor 940 receives processing data from the image memory 930 and performs image data processing on the processing data in the original domain and in the RGB and YCbCr color spaces.
  • the image data processed by the ISP processor 940 may be output to the display 970 for viewing by the user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit).
  • the output of the ISP processor 940 can also be sent to the image memory 930, and the display 970 can read image data from the image memory 930.
  • the image memory 930 may be configured to implement one or more frame buffers.
  • the output of the ISP processor 940 may be sent to an encoder / decoder 960 to encode / decode image data.
  • the encoded image data can be saved and decompressed before being displayed on the display 970 device.
  • the encoder / decoder 960 may be implemented by a CPU or a GPU or a coprocessor.
  • the statistical data determined by the ISP processor 940 may be sent to the control logic 950 unit.
  • the statistical data may include image information of the image sensor 914 such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, and lens 912 shading correction.
  • the control logic 950 may include a processor and / or a microcontroller that executes one or more routines (such as firmware). The one or more routines may determine the control parameters of the imaging device 910 and the ISP processing according to the received statistical data. Parameters of the controller 940.
  • control parameters of the imaging device 910 may include sensor 920 control parameters (such as gain, integration time for exposure control, image stabilization parameters, etc.), camera flash control parameters, lens 912 control parameters (such as focus distance for focusing or zooming), or these A combination of parameters.
  • ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 912 shading correction parameters.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which is used as external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR, SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR dual data rate SDRAM
  • SDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Abstract

An image processing method, comprising: acquiring an image to be processed; identifying the image to be processed to obtain an image category label for the image to be processed and a corresponding category confidence level, the category confidence level being used to express the credibility which is identified for the image category label; acquiring weather data and a capture time from when the image to be processed was captured; and according to the weather data and capture time, adjust the category confidence level to obtain a target category confidence level corresponding to the image category label.

Description

图像处理方法、计算机可读存储介质和电子设备Image processing method, computer-readable storage medium, and electronic device
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年06月08日提交中国专利局、申请号为201810588360.6、发明名称为“图像处理方法、装置、计算机可读存储介质和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 08, 2018, with application number 201810588360.6, and the invention name is "image processing method, device, computer-readable storage medium, and electronic device". Incorporated by reference in this application.
技术领域Technical field
本申请涉及计算机技术领域,特别是涉及一种图像处理方法、计算机可读存储介质和电子设备。The present application relates to the field of computer technology, and in particular, to an image processing method, a computer-readable storage medium, and an electronic device.
背景技术Background technique
智能设备可以通过摄像头拍摄图像,也可以通过与其他智能设备的传输来获取图像。图像拍摄的场景可以有很多,例如海滩、雪景、夜景等。拍摄图像中还可能存在很多目标物体,例如汽车、人、动物等。通常情况下,不同场景下拍摄的图像有不同的颜色特征,不同的目标物体的表现特征也不同。Smart devices can capture images through the camera, or they can acquire images through transmission with other smart devices. There can be many scenes for image shooting, such as beach, snow, night, etc. There may also be many target objects in the captured image, such as cars, people, animals, and so on. Generally, images taken in different scenes have different color characteristics, and different target objects have different performance characteristics.
发明内容Summary of the Invention
根据本申请的各种实施例,提供一种图像处理方法、计算机可读存储介质和电子设备。According to various embodiments of the present application, an image processing method, a computer-readable storage medium, and an electronic device are provided.
一种图像处理方法,所述方法包括:An image processing method, the method includes:
获取待处理图像;Obtaining images to be processed;
对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
一种图像处理装置,所述装置包括:An image processing device includes:
图像获取模块,用于获取待处理图像;An image acquisition module, configured to acquire an image to be processed;
图像识别模块,用于对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;An image recognition module, configured to identify the image to be processed, to obtain an image classification label of the image to be processed, and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label. degree;
数据获取模块,用于获取拍摄所述待处理图像时的天气数据和拍摄时间;A data acquisition module, configured to acquire weather data and a shooting time when shooting the image to be processed;
置信度调整模块,用于根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The confidence adjustment module is configured to adjust the classification confidence according to the weather data and shooting time to obtain a target classification confidence corresponding to the image classification label.
一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如下操作:A computer-readable storage medium on which a computer program is stored is characterized in that, when the computer program is executed by a processor, the following operations are performed:
获取待处理图像;Obtaining images to be processed;
对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the instructions are executed by the processor, the processor causes the processor to perform the following operations:
获取待处理图像;Obtaining images to be processed;
对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
上述图像处理方法、计算机可读存储介质和电子设备,可对待处理图像进行识别得到图像分类标签级分类置信度,然后获取拍摄待处理图像时的天气数据和拍摄时间,根据天气数据和拍摄时间调整分类置信度。这样对图像进行识别的时候,可根据实际拍摄图像时的天气数据和拍摄时间来调整图像的识别结果,使得识别得到的结果更加符合当前环境的特性,得到的识别结果也更加准确,提高了图像处理的准确性。The above image processing method, computer-readable storage medium, and electronic device can identify the image to be processed to obtain the image classification label level classification confidence, and then obtain the weather data and shooting time when the image to be processed is captured, and adjust according to the weather data and shooting time Classification confidence. In this way, when the image is recognized, the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, which improves the image. Processing accuracy.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions in the embodiments of the present application or the prior art more clearly, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are merely These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without paying creative work.
图1为一个实施例中图像处理方法的应用环境图。FIG. 1 is an application environment diagram of an image processing method in an embodiment.
图2为一个实施例中图像处理方法的流程图。FIG. 2 is a flowchart of an image processing method according to an embodiment.
图3为另一个实施例中图像处理方法的流程图。FIG. 3 is a flowchart of an image processing method in another embodiment.
图4为一个实施例中训练神经网络模型的示意图。FIG. 4 is a schematic diagram of training a neural network model in one embodiment.
图5为又一个实施例中图像处理方法的流程图。FIG. 5 is a flowchart of an image processing method according to another embodiment.
图6为又一个实施例中图像处理方法的流程图。FIG. 6 is a flowchart of an image processing method according to another embodiment.
图7为又一个实施例中图像处理方法的流程图。FIG. 7 is a flowchart of an image processing method according to another embodiment.
图8为一个实施例中图像处理装置的结构示意图。FIG. 8 is a schematic structural diagram of an image processing apparatus according to an embodiment.
图9为一个实施例中图像处理电路的示意图。FIG. 9 is a schematic diagram of an image processing circuit in one embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution, and advantages of the present application clearer, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It can be understood that the terms “first”, “second”, and the like used in this application can be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element. For example, without departing from the scope of the present application, the first client may be referred to as the second client, and similarly, the second client may be referred to as the first client. Both the first client and the second client are clients, but they are not the same client.
图1为一个实施例中图像处理方法的应用环境图。如图1所示,该应用环境中包括终端102和服务器104。终端102和服务器104之间可以传输待处理图像,并对待处理图像进行分类处理。在一个实施例中,终端102可以拍摄得到若干张待处理图像,并获取拍摄待处理图像时的天气数据和拍摄时间,然后将待处理图像、天气数据和拍摄时间发送给服务器104。服务器104中存储了对图像进行分类的分类算法,则可以对接收到的待处理图像进行识别,得到待处理图像的图像分类标签及对应的分类置信度。服务器104可以根据天气数据和拍摄时间调整分类置信度,得到图像分类标签对应的目标分类置信度。最后会根据目标分类置信度调整待处理图像的识别结果,并将调整后的识别结果发送给终端102。终端102可以根据得到的识别结果对待处理图像进行处理。其中,终端102是处于计算机网络最外围,主要用于输入用户信息以及输出处理结果的电子设备,例如可以是个人电脑、 移动终端、个人数字助理、可穿戴电子设备等。服务器104是用于响应服务请求,同时提供计算服务的设备,例如可以是一台或者多台计算机。在本申请提供的其他实施例中,上述应用环境中还可以只包括终端102或服务器104,在此不做限定。FIG. 1 is an application environment diagram of an image processing method in an embodiment. As shown in FIG. 1, the application environment includes a terminal 102 and a server 104. The image to be processed may be transmitted between the terminal 102 and the server 104, and the image to be processed may be classified and processed. In one embodiment, the terminal 102 can capture several images to be processed, obtain weather data and shooting time when shooting the images to be processed, and then send the images to be processed, weather data, and shooting time to the server 104. A classification algorithm for classifying images is stored in the server 104, and the received images to be processed can be identified to obtain image classification labels and corresponding classification confidences of the images to be processed. The server 104 can adjust the classification confidence level according to the weather data and the shooting time to obtain the target classification confidence level corresponding to the image classification label. Finally, the recognition result of the image to be processed is adjusted according to the target classification confidence, and the adjusted recognition result is sent to the terminal 102. The terminal 102 may process the image to be processed according to the obtained recognition result. The terminal 102 is an electronic device located at the outermost periphery of a computer network and is mainly used for inputting user information and outputting processing results. For example, the terminal 102 may be a personal computer, a mobile terminal, a personal digital assistant, or a wearable electronic device. The server 104 is a device for responding to a service request while providing a computing service, and may be, for example, one or more computers. In other embodiments provided in this application, the foregoing application environment may further include only the terminal 102 or the server 104, which is not limited herein.
图2为一个实施例中图像处理方法的流程图。如图2所示,该图像处理方法包括操作202至操作208。其中:FIG. 2 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 2, the image processing method includes operations 202 to 208. among them:
操作202,获取待处理图像。In operation 202, an image to be processed is obtained.
在一个实施例中,电子设备上可内置或外接式地安装摄像头,安装摄像头的位置和数量不限。例如,可以在手机正面安装一个摄像头,在手机背面安装两个摄像头。在拍摄图像的过程一般分为两个阶段:预览阶段和拍摄阶段。在预览阶段时,摄像头会每间隔一定时长采集一次图像,采集的图像不会进行存储,但会进行显示供用户查看,用户根据显示的图像来调整拍摄的角度、光线等参数。当检测到用户输入的拍摄指令时,进入拍摄阶段,电子设备会将接收到拍摄指令后的下一帧图像进行存储,作为最终得到的拍摄图像。In one embodiment, cameras may be installed on the electronic device internally or externally, and the positions and number of the cameras are not limited. For example, you can install one camera on the front of the phone and two cameras on the back of the phone. The process of capturing an image is generally divided into two phases: a preview phase and a shooting phase. During the preview phase, the camera will capture images at a certain interval. The captured images will not be stored, but will be displayed for users to view. The user adjusts the shooting angle, light and other parameters according to the displayed image. When a shooting instruction input by the user is detected, the shooting phase is entered, and the electronic device stores the next frame image after receiving the shooting instruction as the final captured image.
电子设备可将拍摄的图像进行存储,并发送至服务器或其他电子设备中。可以理解的是,本实施例中获取的待处理图像并不仅限于是电子设备自身拍摄的,也可以是其他电子设备发送的,或者通过网络下载的。电子设备在获取到图像之后,可以立即对图像进行处理,也可以将图像统一存放在一个文件夹中,在该文件夹中存储的图像到达一定数量之后,再将存储的图像统一进行处理。电子设备可以将获取的图像存储到相册中,当相册中存储的图像大于一定数量时,就触发对相册中的图像进行处理。The electronic device can store the captured image and send it to the server or other electronic devices. It can be understood that the image to be processed obtained in this embodiment is not limited to being taken by the electronic device itself, but may also be sent by other electronic devices or downloaded through the network. After obtaining the images, the electronic device can process the images immediately or store the images in a folder in a unified manner. After the images stored in the folder reach a certain number, the stored images are processed in a unified manner. The electronic device may store the acquired images in an album, and when the number of images stored in the album is greater than a certain number, processing of the images in the album is triggered.
操作204,对待处理图像进行识别,得到待处理图像的图像分类标签及对应的分类置信度,分类置信度用于表示识别为该图像分类标签的可信程度。In operation 204, the image to be processed is identified, and an image classification label and a corresponding classification confidence level of the image to be processed are obtained. The classification confidence level is used to indicate the credibility of the image classification label.
图像分类标签可用于表示待处理图像的拍摄场景的具体分类。例如,图像的拍摄场景可分为风景、海滩、蓝天、绿草、雪景、逆光、日出/日落、烟火、聚光灯等中的一种。电子设备可以通过识别待处理图像的拍摄场景,从而得到图像分类标签。The image classification label can be used to indicate the specific classification of the shooting scene of the image to be processed. For example, the shooting scene of an image can be divided into one of landscape, beach, blue sky, green grass, snow, backlight, sunrise / sunset, fireworks, spotlight, and so on. The electronic device can obtain an image classification label by identifying the shooting scene of the image to be processed.
具体的,电子设备可以通过分类算法模型对待处理图像进行识别,并得到待处理图像的图像分类标签。在通过分类算法模型进行识别之前,通常需要通过一个训练图像集合将分类算法模型进行训练,得到能够准确进行识别的算法模型。一般情况下,训练图像集合中包含的训练图像越多,最后得到的分类算法模型越精确。分类算法模型训练好之后,将待处理图像输入到训练好的分类算法模型中,通过该分类算法模型输出分类结果。Specifically, the electronic device can recognize the image to be processed by using a classification algorithm model, and obtain an image classification label of the image to be processed. Before the classification algorithm model is used for recognition, it is usually necessary to train the classification algorithm model through a training image set to obtain an algorithm model that can accurately identify it. In general, the more training images contained in the training image set, the more accurate the classification algorithm model finally obtained. After the classification algorithm model is trained, the image to be processed is input into the trained classification algorithm model, and the classification result is output through the classification algorithm model.
在一个实施例中,通过分类算法模型可识别到待处理图像对应的图像分类标签和对应的分类置信度,分类置信度用于表示识别为上述图像分类标签的可信程度,分类置信度越大,表示识别得到识别结果越准确。一般的,可预先对图像定义多个应用场景,并根据这多个应用场景定义多个分类标签,通过分类算法模型可以计算图像对应每个分类标签的概率。分类标签的概率越大,说明图像为该分类标签所对应的应用场景的可能性越大。可将概率最大的分类标签作为图像的图像分类标签,该图像分类标签对应的概率即为分类置信度。上述分类算法模型可以但不限于是K最近邻分类模型、最近邻分类模型、朴素贝叶斯分类模型、神经网络模型等。In one embodiment, the classification algorithm model can identify the image classification label corresponding to the image to be processed and the corresponding classification confidence level. The classification confidence level is used to indicate the credibility of the image classification label, and the greater the classification confidence level is. , The more accurate the recognition result is. Generally, multiple application scenarios can be defined for the image in advance, and multiple classification labels can be defined according to the multiple application scenarios. The classification algorithm model can calculate the probability that the image corresponds to each classification label. The greater the probability of a classification label, the greater the likelihood that an image is an application scenario corresponding to the classification label. The classification label with the highest probability can be used as the image classification label of the image, and the probability corresponding to the image classification label is the classification confidence. The above classification algorithm model may be, but is not limited to, a K nearest neighbor classification model, a nearest neighbor classification model, a naive Bayes classification model, a neural network model, and the like.
操作206,获取拍摄待处理图像时的天气数据和拍摄时间。Operation 206: Obtain weather data and a shooting time when shooting the image to be processed.
电子设备在拍摄图像时,可以通过获取拍摄图像时的天气数据和拍摄时间,并将天气数据和拍摄时间同时进行存储。电子设备在传输待处理图像时,可将天气数据和拍摄时间与待处理图像同时进行传输。When an electronic device captures an image, it can obtain the weather data and the shooting time when the image is captured, and store the weather data and the shooting time at the same time. When the electronic device transmits the image to be processed, the weather data and the shooting time can be transmitted simultaneously with the image to be processed.
在一个实施例中,当电子设备检测到拍摄指令时,会控制摄像头采集图像,采集到图像之后,调用专用的天气接口来获取天气数据,同时获取当前时间作为拍摄图像时的拍摄时间。例如,获取的天气数据可分为晴天、多云、阴天和雨天等。获取的拍摄时间可以为“2018年5月26日11:53”。In one embodiment, when the electronic device detects a shooting instruction, it will control the camera to capture an image. After capturing the image, it calls a dedicated weather interface to obtain weather data, and at the same time obtains the current time as the shooting time when shooting the image. For example, the acquired weather data can be divided into sunny, cloudy, cloudy, and rainy days. The obtained shooting time can be "11:53 on May 26, 2018".
操作208,根据天气数据和拍摄时间调整分类置信度,得到图像分类标签对应的目标 分类置信度。Operation 208: Adjust the classification confidence level according to the weather data and the shooting time to obtain the target classification confidence level corresponding to the image classification label.
可理解的是,在不同天气和时间拍摄图像时,拍摄的图像有不同的特点,电子设备的识别结果也有不同的可信度。例如,晴天时采集的图像光线比较充足,拍摄的图像能够很好的还原物体本来的特征,电子设备对图像的识别结果也更加准确。阴雨天气时采集的图像光线比较暗,拍摄的图像就比较偏离物体原来的特征。同样的,在正午时候拍摄的图像比傍晚时候拍摄的图像更能准确地反应物体原来的特征。It is understandable that when images are taken in different weather and time, the captured images have different characteristics, and the recognition results of the electronic devices also have different credibility. For example, the image collected on a sunny day is relatively light, the captured image can well restore the original characteristics of the object, and the recognition result of the image by the electronic device is more accurate. The images collected during rainy weather are relatively dark, and the captured images deviate from the original characteristics of the object. Similarly, images taken at noon more accurately reflect the original characteristics of objects than images taken in the evening.
在本申请提供的实施例中,如果对图像识别得到的图像分类标签对应的分类置信度过低,通常认为这样的识别结果是不可信的,就会直接将得到的识别结果进行丢弃。由于识别结果收到天气和拍摄时间的影响,因此为了防止识别结果被误操作,可以通过天气数据和拍摄时间对识别结果进行一定的调整,调整之后的识别结果能够更准确地反映图像的真实拍摄场景。例如,若图像是在晴天拍摄的,则可以将识别得到的分类置信度适当地增大,若图像是在阴雨天气拍摄的,在可以将识别得到的分类置信度适当地减小。In the embodiment provided by this application, if the classification confidence corresponding to the image classification label obtained by image recognition is too low, such a recognition result is generally considered to be unreliable, and the obtained recognition result will be directly discarded. Because the recognition result is affected by the weather and shooting time, in order to prevent the recognition result from being mishandled, the recognition result can be adjusted by weather data and shooting time. The adjusted recognition result can more accurately reflect the real shooting of the image Scenes. For example, if the image is taken on a sunny day, the classification confidence obtained through recognition can be appropriately increased, and if the image is shot in a rainy weather, the classification confidence obtained through recognition can be appropriately reduced.
上述实施例提供的图像处理方法,可对待处理图像进行识别得到图像分类标签级分类置信度,然后获取拍摄待处理图像时的天气数据和拍摄时间,根据天气数据和拍摄时间调整分类置信度。这样对图像进行识别的时候,可根据实际拍摄图像时的天气数据和拍摄时间来调整图像的识别结果,使得识别得到的结果更加符合当前环境的特性,得到的识别结果也更加准确,提高了图像处理的准确性。The image processing method provided in the foregoing embodiment may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time. In this way, when the image is recognized, the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, improving the image Processing accuracy.
图3为另一个实施例中图像处理方法的流程图。如图3所示,该图像处理方法包括操作302至操作312。其中:FIG. 3 is a flowchart of an image processing method in another embodiment. As shown in FIG. 3, the image processing method includes operations 302 to 312. among them:
操作302,获取待处理图像。In operation 302, an image to be processed is obtained.
电子设备在对图像进行处理的时候,可以是自动触发的,也可以是用户手动触发的。可以预设一个自动触发的条件,当满足自动触发条件时,执行操作302。例如,当电子设备中更新的图像的数量达到预设数量时,开始获取存储的图像,并开始对图像进行处理。或者每次在到达指定时刻时,开始获取待处理图像,并对待处理图像进行处理。When an electronic device processes an image, it can be triggered automatically or manually by a user. An automatic triggering condition may be preset, and when the automatic triggering condition is satisfied, operation 302 is performed. For example, when the number of updated images in the electronic device reaches a preset number, it starts to acquire the stored images and starts processing the images. Or each time when a specified time is reached, the image to be processed is started to be acquired, and the image to be processed is processed.
一般待处理图像的数量越多,对图像处理时消耗的内存就越大,耗时也比较长。终端的处理能力一般都比较有限,因此终端需要对大量图像进行批量处理时,可以将图像及对应的天气数据和拍摄时间一起发送到服务器。通过服务器对图像进行识别,再将得到的识别结果返回给终端。终端会根据接收到的识别结果对图像进行处理。Generally, the larger the number of images to be processed, the larger the memory consumed during image processing and the longer the time consumed. The processing capacity of the terminal is generally relatively limited, so when the terminal needs to process a large number of images in batches, it can send the images and corresponding weather data to the server together with the shooting time. The server recognizes the image and returns the recognition result to the terminal. The terminal processes the image according to the received recognition result.
操作304,将待处理图像作为神经网络模型的输入,通过神经网络模型计算至少一个预设分类标签对应的参考置信度。In operation 304, the image to be processed is taken as an input of a neural network model, and a reference confidence level corresponding to at least one preset classification label is calculated through the neural network model.
在一个实施例中,可以通过神经网络模型对待处理图像进行识别。在识别之前,需要对该神经网络模型进行训练。电子设备可获取用于训练神经网络模型的训练图像集合,训练图像集合中的训练图像都存在用于标记场景类别的标签。在训练过程中将训练图像集合中的训练图像作为神经网络模型的输入,并得到对训练图像的识别结果,将该识别结果与预先标记的标签进行对比,根据对比结果去调整神经网络模型的参数,使神经网络模型的识别结果更加准确。In one embodiment, the image to be processed may be identified by a neural network model. Before recognition, the neural network model needs to be trained. The electronic device can obtain a training image set used to train a neural network model, and the training images in the training image set all have labels for labeling scene categories. During the training process, the training image in the training image set is used as the input of the neural network model, and the recognition result of the training image is obtained. The recognition result is compared with the pre-labeled label, and the parameters of the neural network model are adjusted according to the comparison result. To make the recognition result of the neural network model more accurate.
在训练模型之前,会预先定义图像的拍摄场景,每一个拍摄场景对应一个预设分类标签,根据该神经网络模型可以识别预先定义的拍摄场景中的任意一种。神经网络模型训练好之后,将需要进行识别的待处理图像作为神经网络模型的输入,通过神经网络模型计算预先定义的各个预设分类标签对应的参考置信度,根据参考置信度确定图像最终的分类结果。Before training the model, the shooting scenes of the image are predefined, and each shooting scene corresponds to a preset classification label. According to the neural network model, any one of the predefined shooting scenes can be identified. After the neural network model is trained, the image to be processed that needs to be identified is used as the input of the neural network model. The neural network model is used to calculate the reference confidence level corresponding to each of the predefined classification labels, and the final classification of the image is determined according to the reference confidence level. result.
图4为一个实施例中训练神经网络模型的示意图。如图4所示,在训练神经网络模型时,将带有类别标签的训练图像作为神经网络模型的输入,从而完成对神经网络模型的训练。神经网络模型训练好之后,可以得到一个损失函数。在识别过程中,可通过训练好的 神经网络模型识别图像,并通过损失函数计算各个类别的置信度,根据得到的置信度确定最后的分类结果。FIG. 4 is a schematic diagram of training a neural network model in one embodiment. As shown in FIG. 4, when training a neural network model, a training image with a category label is used as an input to the neural network model, thereby completing the training of the neural network model. After the neural network model is trained, a loss function can be obtained. In the recognition process, the image can be recognized by the trained neural network model, and the confidence of each category can be calculated by the loss function, and the final classification result is determined according to the obtained confidence.
具体地,上述神经网络模型可以预先存储在电子设备中,在获取到待处理图像时,通过上述神经网络模型对待处理图像进行识别处理。可以理解的是,神经网络模型一般会占用电子设备的存储空间,而且在对大量图像进行处理的时候,对电子设备的存储能力要求也比较高。在对终端上的待处理图像进行处理时,可通过终端本地存储的神经网络模型进行处理,也可以将待处理图像发送到服务器,通过服务器上存储的神经网络模型进行处理。Specifically, the neural network model may be stored in an electronic device in advance. When an image to be processed is obtained, the neural network model is used to perform recognition processing on the image to be processed. It can be understood that the neural network model generally occupies the storage space of the electronic device, and when processing a large number of images, the storage capacity requirements of the electronic device are also relatively high. When processing the to-be-processed image on the terminal, it can be processed through the neural network model stored locally on the terminal, or the to-be-processed image can be sent to the server for processing through the neural network model stored on the server.
由于终端的处理能力一般比较有限,所以服务器可以将神经网络模型训练好之后,将训练好的神经网络模型发送给终端,终端就无需再对上述神经网络模型进行训练。同时终端存储的神经网络模型可以是经过压缩之后的模型,这样压缩之后的模型占用的资源就会比较小,但是相应的识别准确率就比较低。终端可以根据需要处理的待处理图像的数量决定在终端本地进行识别处理,还是在服务器上进行识别处理。终端在获取到待处理图像之后,统计待处理图像的图像数量,若图像数量超过预设上传数量,则将待处理图像上传至服务器,并在服务器上进行待处理图像的识别处理。服务器处理后,将识别结果发送给终端。Because the processing capability of the terminal is generally limited, the server can send the trained neural network model to the terminal after the neural network model is trained, and the terminal does not need to train the neural network model. At the same time, the neural network model stored in the terminal can be a compressed model, so that the compressed model will occupy less resources, but the corresponding recognition accuracy will be lower. The terminal can decide whether to perform the recognition processing locally on the terminal or the recognition processing on the server according to the number of images to be processed. After the terminal obtains the image to be processed, it counts the number of images of the image to be processed. If the number of images exceeds the preset upload number, the terminal uploads the image to be processed to the server, and performs recognition processing on the server. After processing by the server, the recognition result is sent to the terminal.
操作306,根据参考置信度从预设分类标签中确定待处理图像对应的图像分类标签,并将图像分类标签对应的参考置信度作为分类置信度。Operation 306: Determine the image classification label corresponding to the image to be processed from the preset classification labels according to the reference confidence level, and use the reference confidence level corresponding to the image classification label as the classification confidence level.
预设分类标签是预先定义的,通过神经网络模型计算各个预设分类标签对应的参考置信度。预设分类标签的参考置信度越大,说明图像对应该预设分类标签的可能性越大,根据参考置信度可确定最终识别的图像分类标签。The preset classification labels are predefined, and the reference confidence corresponding to each preset classification label is calculated by a neural network model. The larger the reference confidence level of the preset classification label, the greater the possibility that the image should correspond to the preset classification label. According to the reference confidence level, the final recognized image classification label can be determined.
具体可将参考置信度最大的预设分类标签作为待处理图像对应的图像分类标签,并将最大参考置信度作为图像分类标签对应的分类置信度。例如,预先定义的预设分类标签包括风景、夜景、雪景,将图像作为神经网络模型的输入,计算得到三个预设分类标签对应的参考置信度分别为0.85、0.1、0.05,则可将参考置信度最大的预设分类标签“风景”作为图像的识别结果。即该图像的图像分类标签为“风景”,对应的分类置信度为0.85。Specifically, the preset classification label with the highest reference confidence can be used as the image classification label corresponding to the image to be processed, and the maximum reference confidence can be used as the classification confidence corresponding to the image classification label. For example, if the predefined preset classification labels include landscape, night, and snow, and the image is used as the input of the neural network model, the reference confidences corresponding to the three preset classification labels are 0.85, 0.1, and 0.05, respectively. The preset classification label “Landscape” with the highest confidence is used as the image recognition result. That is, the image classification label of the image is "landscape", and the corresponding classification confidence is 0.85.
操作308,判断分类置信度是否超出预设置信度范围。Operation 308: Determine whether the classification confidence level exceeds a preset confidence level range.
操作310,若是,则获取拍摄待处理图像时的天气数据和拍摄时间。In operation 310, if yes, the weather data and the shooting time when the image to be processed is captured are acquired.
在识别得到的结果中,如果最终得到的图像分类标签的分类置信度超出一定的范围,则认为这个分类结果是不可靠的,电子设备可以直接将该不可靠的分类结果丢弃。但是为了防止因为得到的分类置信度不准确而将识别结果进行丢弃,则可以根据天气数据和拍摄时间将分类置信度进行调整,使得到的分类置信度更加准确。In the recognition result, if the classification confidence of the finally obtained image classification label exceeds a certain range, the classification result is considered to be unreliable, and the electronic device may directly discard the unreliable classification result. However, in order to prevent the recognition result from being discarded because the obtained classification confidence is inaccurate, the classification confidence can be adjusted according to weather data and shooting time to make the obtained classification confidence more accurate.
具体的,可将分类置信度分为可信取值范围和不可信取值范围,当分类置信度在可信取值范围内时,认为分类结果可靠;当分类置信度在不可信取值范围内时,认为分类结果不可靠。分类置信度在预设置信度范围内时,则认为根据置信度增值调整后的分类置信度与调整之前的分类置信度所属的上述取值范围相同,这样调整分类置信度不会影响可靠性的判断结果,就可以不对分类置信度进行调整。Specifically, the classification confidence can be divided into a trusted value range and an untrusted value range. When the classification confidence is within the trusted value range, the classification result is considered reliable; when the classification confidence is within the untrusted value range The results are considered unreliable. When the classification confidence is within the preset confidence range, it is considered that the classification confidence adjusted according to the added value of the confidence is the same as the above-mentioned value range of the classification confidence before the adjustment, so that adjusting the classification confidence does not affect the reliability Judging the result, it is not necessary to adjust the classification confidence.
例如,分类置信度在[0,0.4)时,认为分类结果不可靠;分类置信度在(0.4,1]时,认为分类结果可靠。置信度增值最小取值为0.4,最大取值为1.6。可以理解的是,当分类置信度的取值为[0,0.25]时,即时与置信度增值的最大取值1.6相乘,调整后的分类置信度的取值还是在不可信取值范围内,而并不会影响分类结果可靠性的判断。所以分类置信度在上述预设置信度范围[0,0.25]内时,并不需要进行调整。For example, when the classification confidence is [0,0.4], the classification result is considered to be unreliable; when the classification confidence is (0.4,1], the classification result is considered to be reliable. The minimum value of the confidence increase is 0.4, and the maximum value is 1.6. It can be understood that when the value of the classification confidence is [0,0.25], it is immediately multiplied by the maximum value of the confidence increase of 1.6, and the value of the adjusted classification confidence is still within the range of unreliable values. Without affecting the judgment of the reliability of the classification result. Therefore, when the classification confidence is within the preset confidence range [0, 0.25], no adjustment is needed.
操作312,根据天气数据和拍摄时间确定置信度增值,并根据置信度增值调整分类置信度,得到图像分类标签对应的目标分类置信度。Operation 312: Determine the confidence value increase according to the weather data and the shooting time, and adjust the classification confidence value according to the confidence value increase to obtain the target classification confidence value corresponding to the image classification label.
可根据天气数据和拍摄时间确定对分类置信度进行调整的置信度增值,然后根据得到 的置信度增值来调整分类置信度。具体的,调整分类置信度的操作可以包括:You can determine the confidence increase of the classification confidence based on the weather data and shooting time, and then adjust the classification confidence based on the obtained confidence increase. Specifically, the operation of adjusting the confidence level of the classification may include:
操作502,根据天气数据确定第一置信度增值,并根据拍摄时间确定第二置信度增值。Operation 502: Determine a first confidence value increase according to weather data, and determine a second confidence value increase according to a shooting time.
在获取到天气数据和拍摄时间之后,可以分别根据天气数据和拍摄时间得到对分类置信度进行调节的增量。具体的,可根据天气数据确定第一置信度增值,根据拍摄时间确定第二置信度增值。第一置信度增值和第二置信度增值可以是相互关联的,也可以是相互独立的,在此不做限定。置信度增值是指调节分类置信度的增量,可以负增量,也可以是正增量。After obtaining the weather data and the shooting time, the increments for adjusting the classification confidence can be obtained according to the weather data and the shooting time, respectively. Specifically, the first confidence value increase may be determined according to the weather data, and the second confidence value increase may be determined according to the shooting time. The first confidence value increase and the second confidence value increase may be related to each other or independent of each other, which is not limited herein. Confidence increment refers to the increment that adjusts the confidence of the classification. It can be negative or positive.
可以预先定义天气数据与第一置信度增值的对应关系,根据天气数据可以获取第一置信度增值。预先定义拍摄时间与第二置信度增值的对应关系,根据拍摄时间可获取第二置信度增值。例如,定义天气数据包括“00”、“01”、“10”和“11”,分别代表天气“晴天”、“多云”、“阴天”和“雨天”,对应的第一置信度增值分别为1.2、1.1、0.9、0.8。The correspondence relationship between the weather data and the first confidence value increase may be defined in advance, and the first confidence value increase may be obtained according to the weather data. The correspondence between the shooting time and the added value of the second confidence is defined in advance, and the second added value of the confidence can be obtained according to the shooting time. For example, the definition of weather data includes "00", "01", "10", and "11", which respectively represent the weather "sunny", "cloudy", "cloudy", and "rainy", and the corresponding first confidence value increases respectively. It is 1.2, 1.1, 0.9, 0.8.
操作504,将第一置信度增值与第二置信度增值相乘的结果与分类置信度相乘,得到图像分类标签对应的目标分类置信度。Operation 504: Multiply the result of multiplying the first confidence value by the second confidence value by the classification confidence to obtain the target classification confidence corresponding to the image classification label.
根据获取的第一置信度增值和第二置信度增值分别调整分类置信度,也可以根据第一置信度增值和第二置信度增值生成一个总置信度增值,再根据该总置信度增值来调节分类置信度。调整分类置信度时,可以通过叠加的方式进行调整,也可以通过乘积方式进行调整,在此不做限定。The classification confidence is adjusted according to the obtained first confidence value increase and the second confidence value increase, or a total confidence value increase may be generated according to the first confidence value increase and the second confidence value increase, and then adjusted according to the total confidence value increase Classification confidence. When adjusting the classification confidence, it can be adjusted by means of superposition or by means of product, which is not limited here.
在本实施例中,可将将第一置信度增值与第二置信度增值相乘,然后将第一置信度增值与第二置信度增值相乘的结果与分类置信度相乘,得到图像分类标签对应的目标分类置信度。例如,第一置信度增值为1.2,第二置信度增值为0.9,分类置信度为0.8,则通过乘积方式进行调整得到目标分类置信度为1.2*0.9*0.8=0.864。In this embodiment, the first confidence value increase and the second confidence value increase may be multiplied, and then the result of multiplying the first confidence value increase with the second confidence value increase and the classification confidence may be multiplied to obtain image classification. The target classification confidence corresponding to the label. For example, if the first confidence increase is 1.2, the second confidence increase is 0.9, and the classification confidence is 0.8, the target classification confidence is 1.2 * 0.9 * 0.8 = 0.864 by adjusting the product method.
在一个实施例中,在识别到不同图像分类标签时,调节分类置信度的算法可以不同,即获取置信度增值的方式可以不同。则具体的:In one embodiment, when different image classification labels are identified, the algorithms for adjusting the classification confidence may be different, that is, the manners of obtaining the added value of the confidence may be different. Then specific:
操作602,根据图像分类标签获取第一对应关系,根据第一对应关系确定天气数据对应的第一置信度增值。Operation 602: Obtain a first correspondence relationship according to the image classification label, and determine a first confidence increase value corresponding to the weather data according to the first correspondence relationship.
电子设备得到的识别结果不同时,调整分类置信度的算法也可以不同。可预先定义不同识别结果下天气数据和第一置信度增值的对应关系,根据识别得到的图像分类标签可获取第一对应关系,第一对应关系为天气数据和第一置信度增值的对应关系,因此根据第一对应关系可获取天气数据对应的第一置信度增值。When the recognition result obtained by the electronic device is different, the algorithm for adjusting the confidence level of the classification may also be different. The correspondence between the weather data and the first confidence value increase under different recognition results can be defined in advance, and the first correspondence relationship can be obtained according to the identified image classification labels. The first correspondence relationship is the correspondence between the weather data and the first confidence value increase. Therefore, the first confidence value increase corresponding to the weather data can be obtained according to the first correspondence relationship.
操作604,根据图像分类标签获取第二对应关系,根据第二对应关系确定拍摄时间对应的第二置信度增值。Operation 604: Obtain a second correspondence relationship according to the image classification label, and determine a second confidence increase value corresponding to the shooting time according to the second correspondence relationship.
预先定义不同识别结果下拍摄时间和第二置信度增值的对应关系,根据识别得到的图像分类标签可获取第二对应关系,第二对应关系为拍摄时间和第二置信度增值的对应关系,因此根据第二对应关系可获取拍摄时间对应的第一置信度增值。The correspondence between the shooting time and the added value of the second confidence value under different recognition results is predefined, and the second correspondence can be obtained according to the identified image classification labels. The second correspondence is the correspondence between the shooting time and the value of the second confidence value. A first confidence value increase corresponding to the shooting time can be obtained according to the second correspondence relationship.
在本申请提供的实施例中,分类置信度可表示图像识别结果的可信程度。一般地,得到的分类置信度具有一定的取值范围,调整后的分类置信度不能超过该取值范围。具体的:In the embodiment provided by the present application, the classification confidence degree may indicate the credibility of the image recognition result. Generally, the obtained classification confidence has a certain value range, and the adjusted classification confidence cannot exceed the value range. specific:
操作702,根据置信度增值和分类置信度计算得到参考分类置信度。Operation 702: Calculate a reference classification confidence level according to the confidence value increment and the classification confidence level.
操作704,若置信度增值为负数,则判断参考分类置信度是否小于预设的置信度下限值,若是则将置信度下限值作为图像分类标签对应的目标分类置信度,若否则将参考分类置信度作为图像分类标签对应的目标分类置信度。Operation 704: if the confidence value is negative, determine whether the reference classification confidence is less than a preset lower confidence value; if so, use the lower confidence value as the target classification confidence corresponding to the image classification label; if not, refer to The classification confidence is used as the target classification confidence corresponding to the image classification label.
定义分类置信度的取值范围,最大不能超过置信度上限值,最小不能超过置信度下限值。若获取的置信度增值为负数,那么根据置信度增值调整后的分类置信度就会减小,也就是调整后的分类置信度就不能小于置信度下限值。具体的,首先根据置信度增值调整分类置信度,计算得到一个参考分类置信度。若置信度增值为负数,则将得到的参考分类置信度与置信度下限值进行比较。若得到的参考分类置信度小于置信度下限值,则将置信度 下限值作为目标分类置信度;若得到的参考分类置信度大于置信度下限值,则将参考分类置信度作为目标分类置信度。Define the value range of the classification confidence, the maximum cannot exceed the upper confidence limit, and the minimum cannot exceed the lower confidence limit. If the obtained confidence increase is negative, the classification confidence adjusted according to the confidence increase will decrease, that is, the adjusted classification confidence cannot be less than the lower confidence limit. Specifically, first, the classification confidence is adjusted according to the added value of the confidence, and a reference classification confidence is calculated. If the confidence increase is negative, the obtained reference classification confidence is compared with the lower confidence limit. If the obtained reference classification confidence is less than the lower confidence limit, the lower confidence limit is used as the target classification confidence; if the obtained reference classification confidence is greater than the lower confidence limit, the reference classification confidence is used as the target classification Confidence.
操作706,若置信度增值为正数,则判断参考分类置信度是否大于预设的置信度上限值,若是则将置信度上限值作为图像分类标签对应的目标分类置信度,若否则将参考分类置信度作为图像分类标签对应的目标分类置信度。In operation 706, if the confidence increase value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit; if so, use the upper confidence limit as the target classification confidence corresponding to the image classification label. The reference classification confidence is used as the target classification confidence corresponding to the image classification label.
若获取的置信度增值为正数,那么根据置信度增值调整后的分类置信度就会变大,也就是调整后的分类置信度就不能大于置信度上限值。具体的,首先根据置信度增值调整分类置信度,计算得到一个参考分类置信度。若置信度增值为正数,则将得到的参考分类置信度与置信度上限值进行比较。若得到的参考分类置信度大于置信度上限值,则将置信度上限值作为目标分类置信度;若得到的参考分类置信度小于置信度上限值,则将参考分类置信度作为目标分类置信度。If the obtained confidence increase is a positive number, the classification confidence adjusted according to the confidence increase will become larger, that is, the adjusted classification confidence cannot be greater than the upper confidence limit. Specifically, first, the classification confidence is adjusted according to the added value of the confidence, and a reference classification confidence is calculated. If the confidence increase is a positive number, the obtained reference classification confidence is compared with the upper confidence limit. If the obtained reference classification confidence is greater than the upper confidence limit, the upper confidence limit is used as the target classification confidence; if the obtained reference classification confidence is less than the upper confidence limit, the reference classification confidence is used as the target classification Confidence.
举例说明,对图像进行识别得到的图像分类标签可以为风景、海滩、蓝天、绿草、雪景、逆光、日出/日落、烟火、聚光灯中的一种。如果识别图像为上述图像分类标签中的一种,则根据天气数据获取的置信度增值为:如果天气为晴天,则置信度增值为1.2;如果天气为多云,则置信度增值为1.1;如果天气为阴天,置信度增值为0.9;如果天气为雨天,置信度增值为0.8。For example, the image classification label obtained by identifying the image may be one of landscape, beach, blue sky, green grass, snow, backlight, sunrise / sunset, fireworks, and spotlight. If the identified image is one of the above image classification labels, the confidence value obtained based on the weather data is: if the weather is sunny, the confidence value is increased to 1.2; if the weather is cloudy, the confidence value is increased to 1.1; if the weather is cloudy It is cloudy and the confidence increase is 0.9; if the weather is rainy, the confidence increase is 0.8.
如果识别图像的图像分类标签为风景、海滩、蓝天、绿草、雪景、逆光中的一种,则根据拍摄时间获取的置信度增值为:若拍摄时间在07:00~10:00,则置信度增值为1.1;若拍摄时间在10:00~14:00,则置信度增值为1.2;若拍摄时间在14:00~17:00,则置信度增值为1.1;若拍摄时间在19:00~21:00,则置信度增值为0.9;若拍摄时间在21:00~02:00,则置信度增值为0.8;若拍摄时间在02:00~05:00,则置信度增值为0.9;其他时间段内置信度增值为1。If the image classification label of the identified image is one of landscape, beach, blue sky, green grass, snow, and backlight, the confidence value obtained based on the shooting time is: if the shooting time is from 07:00 to 10:00, the confidence is If the shooting time is from 10:00 to 14:00, the confidence value will increase to 1.2; if the shooting time is from 14:00 to 17:00, the confidence value will increase to 1.1; if the shooting time is 19:00 ~ 21: 00, the confidence increase value is 0.9; if the shooting time is from 21:00 to 02:00, the confidence increase value is 0.8; if the shooting time is from 20:00 to 05:00, the confidence increase value is 0.9; The built-in reliability increase value is 1 for other time periods.
如果识别图像的图像分类标签为夜景、烟火、聚光灯中的一种,则根据拍摄时间获取的置信度增值为:若拍摄时间在07:00~10:00,则置信度增值为0.9;若拍摄时间在10:00~14:00,则置信度增值为0.8;若拍摄时间在14:00~17:00,则置信度增值为0.9;若拍摄时间在19:00~21:00,则置信度增值为1.1;若拍摄时间在21:00~23:00,则置信度增值为1.2;若拍摄时间在23:00~05:00,则置信度增值为1.1;其他时间段内置信度增值为1。If the image classification label of the identified image is one of night scene, fireworks, and spotlight, the confidence value obtained based on the shooting time is: if the shooting time is from 07:00 to 10:00, the confidence value is increased to 0.9; if shooting If the time is from 10:00 to 14:00, the confidence value will increase to 0.8; if the shooting time is from 14:00 to 17:00, the confidence value will increase to 0.9; if the shooting time is from 19:00 to 21:00, the confidence will be increased. If the shooting time is from 21:00 to 23:00, the confidence value will increase to 1.2; If the shooting time is from 23:00 to 05:00, the confidence value will increase to 1.1; the built-in reliability value will be added to other time periods Is 1.
如果识别图像的图像分类标签为日出/日落,则根据拍摄时间获取的置信度增值为:若拍摄时间在05:00~07:00,则置信度增值为1.2;若拍摄时间在17:00~20:00,则置信度增值为1.2;其他时间段内置信度增值为0.8。根据上述对应关系获取置信度增值,并将置信度增值乘以分类置信度,得到目标分类置信度,得到的目标分类置信度的取值范围为[0,1]。If the image classification label of the identified image is sunrise / sunset, the confidence value obtained according to the shooting time is: if the shooting time is from 05:00 to 07:00, the confidence value is increased to 1.2; if the shooting time is at 17:00 ~ 20: 00, the confidence increase value is 1.2; the built-in reliability increase value is 0.8 in other time periods. Obtain the confidence value increase according to the corresponding relationship, and multiply the confidence value increase by the classification confidence value to obtain the target classification confidence value. The range of the obtained target classification confidence value is [0,1].
生成的图像分类标签之后,可以根据图像分类标签对待处理图像进行标记,这样用户可以根据生成的分类标签对图像进行查找。例如,可将待处理图像进行分类展示,方便用户对待处理图像进行查看。还可以在展示界面展示搜索框,用户可通过搜索框输入查找关键字,电子设备可以搜索分类标签中包含查找关键字的待处理图像进行展示。After the generated image classification label, the image to be processed can be labeled according to the image classification label, so that the user can search the image according to the generated classification label. For example, the images to be processed may be classified and displayed, which is convenient for users to view the images to be processed. The search box can also be displayed on the display interface. The user can enter a search keyword through the search box, and the electronic device can search for a pending image containing the search keyword in the classification label for display.
电子设备还可以根据图像分类标签对待处理图像进行分类,并对待处理图像进行分类处理。根据图像分类标签获取图像处理算法,并根据获取的图像处理算法对待处理图像进行处理。例如,识别为风景的时候,可以将图像饱和度,识别为夜景时,可适当提高图像的亮度。The electronic device may also classify the image to be processed according to the image classification label, and perform the classification processing on the image to be processed. An image processing algorithm is acquired according to the image classification label, and the image to be processed is processed according to the acquired image processing algorithm. For example, when it is recognized as a landscape, the image saturation may be recognized, and when it is recognized as a night landscape, the brightness of the image may be appropriately increased.
上述实施例提供的图像处理方法,可对待处理图像进行识别得到图像分类标签级分类置信度,然后获取拍摄待处理图像时的天气数据和拍摄时间,根据天气数据和拍摄时间调整分类置信度。这样对图像进行识别的时候,可根据实际拍摄图像时的天气数据和拍摄时间来调整图像的识别结果,使得识别得到的结果更加符合当前环境的特性,得到的识别结 果也更加准确,提高了图像处理的准确性。The image processing method provided in the foregoing embodiment may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time. In this way, when the image is recognized, the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, which improves the image. Processing accuracy.
应该理解的是,虽然图2、图3、图5、图6、图7的流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,图2、图3、图5、图6、图7中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the operations in the flowcharts of FIG. 2, FIG. 3, FIG. 5, FIG. 6, and FIG. 7 are sequentially displayed as indicated by the arrows, these operations are not necessarily performed sequentially in the order indicated by the arrows. Unless explicitly stated in this article, there is no strict order in which these operations can be performed, and these operations can be performed in other orders. Moreover, at least a part of the operations in FIG. 2, FIG. 3, FIG. 5, FIG. 6, and FIG. 7 may include multiple sub-operations or multiple stages. These sub-operations or stages are not necessarily performed at the same time, but may be performed at the same time. At different times, the execution order of these sub-operations or phases is not necessarily sequential, but can be performed in turn or alternately with at least a part of the sub-operations or phases of other operations or other operations.
图8为一个实施例中图像处理装置的结构示意图。如图8所示,该图像处理装置800包括图像获取模块802、图像识别模块804、数据获取模块806和置信度调整模块808。其中:FIG. 8 is a schematic structural diagram of an image processing apparatus according to an embodiment. As shown in FIG. 8, the image processing apparatus 800 includes an image acquisition module 802, an image recognition module 804, a data acquisition module 806, and a confidence adjustment module 808. among them:
图像获取模块802,用于获取待处理图像。The image acquisition module 802 is configured to acquire an image to be processed.
图像识别模块804,用于对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度。An image recognition module 804 is configured to identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate that the image classification label can be identified as an image classification label. Trust degree.
数据获取模块806,用于获取拍摄所述待处理图像时的天气数据和拍摄时间。A data acquisition module 806 is configured to acquire weather data and a shooting time when the image to be processed is captured.
置信度调整模块808,用于根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The confidence adjustment module 808 is configured to adjust the classification confidence according to the weather data and the shooting time to obtain a target classification confidence corresponding to the image classification label.
上述实施例提供的图像处理装置,可对待处理图像进行识别得到图像分类标签级分类置信度,然后获取拍摄待处理图像时的天气数据和拍摄时间,根据天气数据和拍摄时间调整分类置信度。这样对图像进行识别的时候,可根据实际拍摄图像时的天气数据和拍摄时间来调整图像的识别结果,使得识别得到的结果更加符合当前环境的特性,得到的识别结果也更加准确,提高了图像处理的准确性。The image processing apparatus provided in the foregoing embodiment may recognize an image to be processed to obtain an image classification tag level classification confidence, and then obtain weather data and a shooting time when the image to be processed is captured, and adjust the classification confidence according to the weather data and the shooting time. In this way, when the image is recognized, the recognition result of the image can be adjusted according to the weather data and shooting time when the image was actually taken, so that the recognition result is more in line with the characteristics of the current environment, and the obtained recognition result is more accurate, improving the image Processing accuracy.
在一个实施例中,图像识别模块804还用于将所述待处理图像作为神经网络模型的输入,通过所述神经网络模型计算至少一个预设分类标签对应的参考置信度;根据所述参考置信度从所述预设分类标签中确定所述待处理图像对应的图像分类标签,并将所述图像分类标签对应的参考置信度作为分类置信度。In one embodiment, the image recognition module 804 is further configured to use the to-be-processed image as an input of a neural network model, and calculate a reference confidence level corresponding to at least one preset classification label through the neural network model; according to the reference confidence level, The image classification label corresponding to the image to be processed is determined from the preset classification labels, and the reference confidence level corresponding to the image classification label is used as the classification confidence level.
在一个实施例中,数据获取模块806还用于判断所述分类置信度是否超出预设置信度范围;若是,则获取拍摄所述待处理图像时的天气数据和拍摄时间。In one embodiment, the data acquisition module 806 is further configured to determine whether the classification confidence exceeds a preset confidence range; if so, obtain weather data and a shooting time when the image to be processed is captured.
在一个实施例中,置信度调整模块808还用于根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。In one embodiment, the confidence adjustment module 808 is further configured to determine a confidence value increase based on weather data and shooting time, and adjust the classification confidence value according to the confidence value increase to obtain a target classification confidence corresponding to the image classification label. degree.
在一个实施例中,置信度调整模块808还用于根据所述天气数据确定第一置信度增值,并根据所述拍摄时间确定第二置信度增值;将所述第一置信度增值与所述第二置信度增值相乘的结果与所述分类置信度相乘,得到所述图像分类标签对应的目标分类置信度。In one embodiment, the confidence adjustment module 808 is further configured to determine a first confidence value increase according to the weather data, and determine a second confidence value increase according to the shooting time; and to combine the first confidence value increase with the The result of the multiplication of the second confidence value is multiplied with the classification confidence value to obtain the target classification confidence value corresponding to the image classification label.
在一个实施例中,置信度调整模块808还用于根据所述图像分类标签获取第一对应关系,根据所述第一对应关系确定所述天气数据对应的第一置信度增值;根据所述图像分类标签获取第二对应关系,根据所述第二对应关系确定所述拍摄时间对应的第二置信度增值。In one embodiment, the confidence adjustment module 808 is further configured to obtain a first correspondence relationship according to the image classification tag, and determine a first confidence increase value corresponding to the weather data according to the first correspondence relationship; according to the image The classification label acquires a second correspondence relationship, and determines a second confidence increase value corresponding to the shooting time according to the second correspondence relationship.
在一个实施例中,置信度调整模块808还用于根据所述置信度增值和分类置信度计算得到参考分类置信度;若所述置信度增值为负数,则判断所述参考分类置信度是否小于预设的置信度下限值,若是则将所述置信度下限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度;若所述置信度增值为正数,则判断所述参考分类置信度是否大于预设的置信度上限值,若是则 将所述置信度上限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度。In one embodiment, the confidence adjustment module 808 is further configured to calculate a reference classification confidence based on the confidence increase and classification confidence; if the confidence increase is negative, determine whether the reference classification confidence is less than A preset confidence level lower limit; if it is, the confidence level lower limit is used as the target classification confidence level corresponding to the image classification label; otherwise, the reference classification confidence level is used as the target corresponding to the image classification label level Classification confidence; if the added confidence value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit; if so, use the upper confidence limit as the image classification label corresponding The target classification confidence of, if otherwise, the reference classification confidence is used as the target classification confidence corresponding to the image classification label.
上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置按照需要划分为不同的模块,以完成上述图像处理装置的全部或部分功能。The division of each module in the above image processing apparatus is for illustration only. In other embodiments, the image processing apparatus may be divided into different modules as needed to complete all or part of the functions of the above image processing apparatus.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行上述实施例提供的图像处理方法。An embodiment of the present application further provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, causing the processors to perform the image processing provided by the foregoing embodiments method.
一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的图像处理方法。A computer program product containing instructions, which when run on a computer, causes the computer to execute the image processing method provided by the above embodiments.
本申请实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图9为一个实施例中图像处理电路的示意图。如图9所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。An embodiment of the present application further provides an electronic device. The above electronic device includes an image processing circuit. The image processing circuit may be implemented by hardware and / or software components, and may include various processing units that define an ISP (Image Signal Processing) pipeline. FIG. 9 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 9, for ease of description, only aspects of the image processing technology related to the embodiments of the present application are shown.
如图9所示,图像处理电路包括ISP处理器940和控制逻辑器950。成像设备910捕捉的图像数据首先由ISP处理器940处理,ISP处理器940对图像数据进行分析以捕捉可用于确定和/或成像设备910的一个或多个控制参数的图像统计信息。成像设备910可包括具有一个或多个透镜912和图像传感器914的照相机。图像传感器914可包括色彩滤镜阵列(如Bayer滤镜),图像传感器914可获取用图像传感器914的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器940处理的一组原始图像数据。传感器920(如陀螺仪)可基于传感器920接口类型把采集的图像处理的参数(如防抖参数)提供给ISP处理器940。传感器920接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 9, the image processing circuit includes an ISP processor 940 and a control logic 950. The image data captured by the imaging device 910 is first processed by the ISP processor 940, which analyzes the image data to capture image statistical information that can be used to determine and / or one or more control parameters of the imaging device 910. The imaging device 910 may include a camera having one or more lenses 912 and an image sensor 914. The image sensor 914 may include a color filter array (such as a Bayer filter). The image sensor 914 may obtain the light intensity and wavelength information captured by each imaging pixel of the image sensor 914, and provide a set of Image data. The sensor 920 (such as a gyroscope) may provide parameters (such as image stabilization parameters) of the acquired image processing to the ISP processor 940 based on the interface type of the sensor 920. The sensor 920 interface may use a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the foregoing interfaces.
此外,图像传感器914也可将原始图像数据发送给传感器920,传感器920可基于传感器920接口类型把原始图像数据提供给ISP处理器940,或者传感器920将原始图像数据存储到图像存储器930中。In addition, the image sensor 914 may also send the original image data to the sensor 920, and the sensor 920 may provide the original image data to the ISP processor 940 based on the interface type of the sensor 920, or the sensor 920 stores the original image data in the image memory 930.
ISP处理器940按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器940可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 940 processes the original image data pixel by pixel in a variety of formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 940 may perform one or more image processing operations on the original image data and collect statistical information about the image data. The image processing operations may be performed with the same or different bit depth accuracy.
ISP处理器940还可从图像存储器930接收图像数据。例如,传感器920接口将原始图像数据发送给图像存储器930,图像存储器930中的原始图像数据再提供给ISP处理器940以供处理。图像存储器930可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。The ISP processor 940 may also receive image data from the image memory 930. For example, the sensor 920 interface sends the original image data to the image memory 930, and the original image data in the image memory 930 is then provided to the ISP processor 940 for processing. The image memory 930 may be a part of a memory device, a storage device, or a separate dedicated memory in an electronic device, and may include a DMA (Direct Memory Access) feature.
当接收到来自图像传感器914接口或来自传感器920接口或来自图像存储器930的原始图像数据时,ISP处理器940可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器930,以便在被显示之前进行另外的处理。ISP处理器940从图像存储器930接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。ISP处理器940处理后的图像数据可输出给显示器970,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,ISP处理器940的输出还可发送给图像存储器930,且显示器970可从图像存储器930读取图像数据。在一个实施例中,图像存储器930可被配置为实现一个或多个帧缓冲器。此外,ISP处理器940的输出可发送给编码器/解码器960,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器970设备上之前解压缩。编码器/解码器960 可由CPU或GPU或协处理器实现。When receiving raw image data from the image sensor 914 interface or from the sensor 920 interface or from the image memory 930, the ISP processor 940 may perform one or more image processing operations, such as time-domain filtering. The processed image data may be sent to the image memory 930 for further processing before being displayed. The ISP processor 940 receives processing data from the image memory 930 and performs image data processing on the processing data in the original domain and in the RGB and YCbCr color spaces. The image data processed by the ISP processor 940 may be output to the display 970 for viewing by the user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit). In addition, the output of the ISP processor 940 can also be sent to the image memory 930, and the display 970 can read image data from the image memory 930. In one embodiment, the image memory 930 may be configured to implement one or more frame buffers. In addition, the output of the ISP processor 940 may be sent to an encoder / decoder 960 to encode / decode image data. The encoded image data can be saved and decompressed before being displayed on the display 970 device. The encoder / decoder 960 may be implemented by a CPU or a GPU or a coprocessor.
ISP处理器940确定的统计数据可发送给控制逻辑器950单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜912阴影校正等图像传感器914统计信息。控制逻辑器950可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备910的控制参数及ISP处理器940的控制参数。例如,成像设备910的控制参数可包括传感器920控制参数(例如增益、曝光控制的积分时间、防抖参数等)、照相机闪光控制参数、透镜912控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜912阴影校正参数。The statistical data determined by the ISP processor 940 may be sent to the control logic 950 unit. For example, the statistical data may include image information of the image sensor 914 such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, and lens 912 shading correction. The control logic 950 may include a processor and / or a microcontroller that executes one or more routines (such as firmware). The one or more routines may determine the control parameters of the imaging device 910 and the ISP processing according to the received statistical data. Parameters of the controller 940. For example, the control parameters of the imaging device 910 may include sensor 920 control parameters (such as gain, integration time for exposure control, image stabilization parameters, etc.), camera flash control parameters, lens 912 control parameters (such as focus distance for focusing or zooming), or these A combination of parameters. ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 912 shading correction parameters.
以下为运用图9中图像处理技术实现上述实施例提供的图像处理方法。The following is an image processing method provided by the above embodiment using the image processing technology in FIG. 9.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other media used in this application may include non-volatile and / or volatile memory. Suitable non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which is used as external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR, SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their descriptions are more specific and detailed, but they should not be construed as limiting the patent scope of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims (20)

  1. 一种图像处理方法,所述方法包括:An image processing method, the method includes:
    获取待处理图像;Obtaining images to be processed;
    对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
    获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
    根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,包括:The method according to claim 1, wherein the step of identifying the image to be processed to obtain an image classification label and a corresponding classification confidence of the image to be processed comprises:
    将所述待处理图像作为神经网络模型的输入,通过所述神经网络模型计算至少一个预设分类标签对应的参考置信度;Using the to-be-processed image as an input to a neural network model, and calculating a reference confidence level corresponding to at least one preset classification label through the neural network model;
    根据所述参考置信度从所述预设分类标签中确定所述待处理图像对应的图像分类标签,并将所述图像分类标签对应的参考置信度作为分类置信度。An image classification label corresponding to the image to be processed is determined from the preset classification labels according to the reference confidence level, and a reference confidence level corresponding to the image classification label is used as a classification confidence level.
  3. 根据权利要求1所述的方法,其特征在于,所述获取拍摄所述待处理图像时的天气数据和拍摄时间,包括:The method according to claim 1, wherein the acquiring the weather data and the shooting time when the image to be processed is captured comprises:
    判断所述分类置信度是否超出预设置信度范围;Judging whether the classification confidence degree exceeds a preset confidence range;
    若是,则获取拍摄所述待处理图像时的天气数据和拍摄时间。If yes, weather data and shooting time when the image to be processed is captured are obtained.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,所述根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度,包括:The method according to any one of claims 1 to 3, wherein the adjusting the classification confidence level according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label includes: :
    根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The confidence value increase is determined according to the weather data and the shooting time, and the classification confidence value is adjusted according to the confidence value increase to obtain the target classification confidence value corresponding to the image classification label.
  5. 根据权利要求4所述的方法,其特征在于,所述根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度,包括:The method according to claim 4, characterized in that said determining the confidence value increase according to the weather data and the shooting time, and adjusting the classification confidence value according to the confidence value increase to obtain the target classification corresponding to the image classification label Confidence, including:
    根据所述天气数据确定第一置信度增值,并根据所述拍摄时间确定第二置信度增值;Determining a first confidence value increase according to the weather data, and determining a second confidence value increase according to the shooting time;
    将所述第一置信度增值与所述第二置信度增值相乘的结果与所述分类置信度相乘,得到所述图像分类标签对应的目标分类置信度。Multiplying the result of multiplying the first confidence value increase with the second confidence value increase with the classification confidence to obtain the target classification confidence corresponding to the image classification label.
  6. 根据权利要求5所述的方法,其特征在于,所述根据所述天气数据确定第一置信度增值,包括:The method according to claim 5, wherein the determining a first confidence value increase based on the weather data comprises:
    根据所述图像分类标签获取第一对应关系,根据所述第一对应关系确定所述天气数据对应的第一置信度增值;Obtaining a first correspondence relationship according to the image classification label, and determining a first confidence increase value corresponding to the weather data according to the first correspondence relationship;
    所述根据所述拍摄时间确定第二置信度增值,包括:The determining a second confidence value increase according to the shooting time includes:
    根据所述图像分类标签获取第二对应关系,根据所述第二对应关系确定所述拍摄时间对应的第二置信度增值。A second correspondence relationship is obtained according to the image classification label, and a second confidence increase value corresponding to the shooting time is determined according to the second correspondence relationship.
  7. 根据权利要求4所述的方法,其特征在于,所述根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度,包括:The method according to claim 4, wherein the adjusting the classification confidence according to the added value of the confidence to obtain the target classification confidence corresponding to the image classification label comprises:
    根据所述置信度增值和分类置信度计算得到参考分类置信度;Calculating the reference classification confidence level according to the added confidence level and the classification confidence level;
    若所述置信度增值为负数,则判断所述参考分类置信度是否小于预设的置信度下限值,若是则将所述置信度下限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度;If the added confidence value is negative, determine whether the reference classification confidence is less than a preset lower confidence value, and if so, use the lower confidence value as the target classification confidence corresponding to the image classification label. If otherwise, the reference classification confidence is used as the target classification confidence corresponding to the image classification label;
    若所述置信度增值为正数,则判断所述参考分类置信度是否大于预设的置信度上限值,若是则将所述置信度上限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度。If the added confidence value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit value; if so, use the upper confidence limit value as a target classification confidence corresponding to the image classification label Degree, if otherwise, the reference classification confidence level is used as the target classification confidence level corresponding to the image classification label.
  8. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执 行时实现如下操作:A computer-readable storage medium stores a computer program thereon. When the computer program is executed by a processor, the following operations are implemented:
    获取待处理图像;Obtaining images to be processed;
    对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
    获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
    根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  9. 根据权利要求8所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度时,还执行如下操作:The computer-readable storage medium according to claim 8, wherein the computer program is executed by a processor to identify the image to be processed to obtain an image classification label and a corresponding classification of the image to be processed. During confidence, the following operations are also performed:
    将所述待处理图像作为神经网络模型的输入,通过所述神经网络模型计算至少一个预设分类标签对应的参考置信度;Using the to-be-processed image as an input to a neural network model, and calculating a reference confidence level corresponding to at least one preset classification label through the neural network model;
    根据所述参考置信度从所述预设分类标签中确定所述待处理图像对应的图像分类标签,并将所述图像分类标签对应的参考置信度作为分类置信度。An image classification label corresponding to the image to be processed is determined from the preset classification labels according to the reference confidence level, and a reference confidence level corresponding to the image classification label is used as a classification confidence level.
  10. 根据权利要求8所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述获取拍摄所述待处理图像时的天气数据和拍摄时间时,还执行如下操作:The computer-readable storage medium according to claim 8, wherein when the computer program is executed by the processor to obtain weather data and shooting time when the image to be processed is captured, the following operations are further performed:
    判断所述分类置信度是否超出预设置信度范围;Judging whether the classification confidence degree exceeds a preset confidence range;
    若是,则获取拍摄所述待处理图像时的天气数据和拍摄时间。If yes, weather data and shooting time when the image to be processed is captured are obtained.
  11. 根据权利要求8至10中任一项所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The computer-readable storage medium according to any one of claims 8 to 10, wherein the computer program is executed by a processor and the classification confidence is adjusted according to the weather data and shooting time to obtain the When describing the target classification confidence corresponding to the image classification label, the following operations are also performed:
    根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The confidence value increase is determined according to the weather data and the shooting time, and the classification confidence value is adjusted according to the confidence value increase to obtain the target classification confidence value corresponding to the image classification label.
  12. 根据权利要求11所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The computer-readable storage medium of claim 11, wherein the computer program is executed by a processor to determine a confidence value increase based on weather data and shooting time, and adjust the classification confidence value according to the confidence value increase. When obtaining the target classification confidence corresponding to the image classification label, the following operations are also performed:
    根据所述天气数据确定第一置信度增值,并根据所述拍摄时间确定第二置信度增值;Determining a first confidence value increase according to the weather data, and determining a second confidence value increase according to the shooting time;
    将所述第一置信度增值与所述第二置信度增值相乘的结果与所述分类置信度相乘,得到所述图像分类标签对应的目标分类置信度。Multiplying the result of multiplying the first confidence value increase with the second confidence value increase with the classification confidence to obtain the target classification confidence corresponding to the image classification label.
  13. 根据权利要求12所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述根据所述天气数据确定第一置信度增值时,还执行如下操作:The computer-readable storage medium according to claim 12, wherein, when the computer program is executed by the processor and the first confidence value increase is determined according to the weather data, the following operations are further performed:
    根据所述图像分类标签获取第一对应关系,根据所述第一对应关系确定所述天气数据对应的第一置信度增值;Obtaining a first correspondence relationship according to the image classification label, and determining a first confidence increase value corresponding to the weather data according to the first correspondence relationship;
    所述根据所述拍摄时间确定第二置信度增值,包括:The determining a second confidence value increase according to the shooting time includes:
    根据所述图像分类标签获取第二对应关系,根据所述第二对应关系确定所述拍摄时间对应的第二置信度增值。A second correspondence relationship is obtained according to the image classification label, and a second confidence increase value corresponding to the shooting time is determined according to the second correspondence relationship.
  14. 根据权利要求11所述的计算机可读存储介质,其特征在于,所述计算机程序被处理器执行所述根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The computer-readable storage medium according to claim 11, wherein the computer program is executed by a processor to adjust the classification confidence according to the added value of the confidence to obtain a target classification corresponding to the image classification label. During confidence, the following operations are also performed:
    根据所述置信度增值和分类置信度计算得到参考分类置信度;Calculating the reference classification confidence level according to the added confidence level and the classification confidence level;
    若所述置信度增值为负数,则判断所述参考分类置信度是否小于预设的置信度下限值,若是则将所述置信度下限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度;If the added confidence value is negative, determine whether the reference classification confidence is less than a preset lower confidence value, and if so, use the lower confidence value as the target classification confidence corresponding to the image classification label. If otherwise, the reference classification confidence is used as the target classification confidence corresponding to the image classification label;
    若所述置信度增值为正数,则判断所述参考分类置信度是否大于预设的置信度上限值,若是则将所述置信度上限值作为所述图像分类标签对应的目标分类置信度,若否则将 所述参考分类置信度作为所述图像分类标签对应的目标分类置信度。If the added confidence value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit value; if so, use the upper confidence limit value as a target classification confidence corresponding to the image classification label Degree, if otherwise, the reference classification confidence level is used as the target classification confidence level corresponding to the image classification label.
  15. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如下操作:An electronic device includes a memory and a processor. The memory stores computer-readable instructions. When the instructions are executed by the processor, the processor causes the processor to perform the following operations:
    获取待处理图像;Obtaining images to be processed;
    对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度,所述分类置信度用于表示识别为所述图像分类标签的可信程度;Identify the image to be processed, and obtain an image classification label of the image to be processed and a corresponding classification confidence level, where the classification confidence level is used to indicate the credibility of the image classification label;
    获取拍摄所述待处理图像时的天气数据和拍摄时间;Obtaining weather data and shooting time when shooting the image to be processed;
    根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The classification confidence level is adjusted according to the weather data and shooting time to obtain a target classification confidence level corresponding to the image classification label.
  16. 根据权利要求15所述的电子设备,其特征在于,所述处理器执行所述对所述待处理图像进行识别,得到所述待处理图像的图像分类标签及对应的分类置信度时,还执行如下操作:The electronic device according to claim 15, wherein when the processor executes the recognition of the image to be processed to obtain an image classification label and a corresponding classification confidence of the image to be processed, the processor further executes As follows:
    将所述待处理图像作为神经网络模型的输入,通过所述神经网络模型计算至少一个预设分类标签对应的参考置信度;Using the to-be-processed image as an input to a neural network model, and calculating a reference confidence level corresponding to at least one preset classification label through the neural network model;
    根据所述参考置信度从所述预设分类标签中确定所述待处理图像对应的图像分类标签,并将所述图像分类标签对应的参考置信度作为分类置信度。An image classification label corresponding to the image to be processed is determined from the preset classification labels according to the reference confidence level, and a reference confidence level corresponding to the image classification label is used as a classification confidence level.
  17. 根据权利要求15所述的电子设备,其特征在于,所述处理器执行所述获取拍摄所述待处理图像时的天气数据和拍摄时间时,还执行如下操作:The electronic device according to claim 15, wherein when the processor executes the acquiring the weather data and the shooting time when shooting the image to be processed, the processor further performs the following operations:
    判断所述分类置信度是否超出预设置信度范围;Judging whether the classification confidence degree exceeds a preset confidence range;
    若是,则获取拍摄所述待处理图像时的天气数据和拍摄时间。If yes, weather data and shooting time when the image to be processed is captured are obtained.
  18. 根据权利要求15至17中任一项所述的电子设备,其特征在于,所述处理器执行所述根据所述天气数据和拍摄时间调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The electronic device according to any one of claims 15 to 17, wherein the processor executes the adjustment of the classification confidence according to the weather data and a shooting time to obtain a corresponding value of the image classification label. When the target classification is confidence, the following operations are also performed:
    根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度。The confidence value increase is determined according to the weather data and the shooting time, and the classification confidence value is adjusted according to the confidence value increase to obtain the target classification confidence value corresponding to the image classification label.
  19. 根据权利要求18所述的电子设备,其特征在于,所述处理器执行所述根据天气数据和拍摄时间确定置信度增值,并根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The electronic device according to claim 18, wherein the processor executes the determination of a confidence increase value according to weather data and shooting time, and adjusts the classification confidence value according to the confidence value increase to obtain the image When the target classification confidence corresponding to the classification label, the following operations are also performed:
    根据所述天气数据确定第一置信度增值,并根据所述拍摄时间确定第二置信度增值;Determining a first confidence value increase according to the weather data, and determining a second confidence value increase according to the shooting time;
    将所述第一置信度增值与所述第二置信度增值相乘的结果与所述分类置信度相乘,得到所述图像分类标签对应的目标分类置信度。Multiplying the result of multiplying the first confidence value increase with the second confidence value increase with the classification confidence to obtain the target classification confidence corresponding to the image classification label.
  20. 根据权利要求18所述的电子设备,其特征在于,所述处理器执行所述根据所述置信度增值调整所述分类置信度,得到所述图像分类标签对应的目标分类置信度时,还执行如下操作:The electronic device according to claim 18, wherein when the processor executes the adjustment of the classification confidence according to the added value of the confidence to obtain the target classification confidence corresponding to the image classification label, the processor further executes As follows:
    根据所述置信度增值和分类置信度计算得到参考分类置信度;Calculating the reference classification confidence level according to the added confidence level and the classification confidence level;
    若所述置信度增值为负数,则判断所述参考分类置信度是否小于预设的置信度下限值,若是则将所述置信度下限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度;If the added confidence value is negative, determine whether the reference classification confidence is less than a preset lower confidence value, and if so, use the lower confidence value as the target classification confidence corresponding to the image classification label. If otherwise, the reference classification confidence is used as the target classification confidence corresponding to the image classification label;
    若所述置信度增值为正数,则判断所述参考分类置信度是否大于预设的置信度上限值,若是则将所述置信度上限值作为所述图像分类标签对应的目标分类置信度,若否则将所述参考分类置信度作为所述图像分类标签对应的目标分类置信度。If the added confidence value is a positive number, determine whether the reference classification confidence is greater than a preset upper confidence limit value; if so, use the upper confidence limit value as a target classification confidence corresponding to the image classification label Degree, if otherwise, the reference classification confidence level is used as the target classification confidence level corresponding to the image classification label.
PCT/CN2019/087678 2018-06-08 2019-05-21 Image processing method, computer readable storage medium and electronic device WO2019233271A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810588360.6A CN108805198B (en) 2018-06-08 2018-06-08 Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN201810588360.6 2018-06-08

Publications (1)

Publication Number Publication Date
WO2019233271A1 true WO2019233271A1 (en) 2019-12-12

Family

ID=64088004

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087678 WO2019233271A1 (en) 2018-06-08 2019-05-21 Image processing method, computer readable storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN108805198B (en)
WO (1) WO2019233271A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353549A (en) * 2020-03-10 2020-06-30 创新奇智(重庆)科技有限公司 Image tag verification method and device, electronic device and storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108805198B (en) * 2018-06-08 2021-08-31 Oppo广东移动通信有限公司 Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN110186471A (en) * 2019-05-06 2019-08-30 平安科技(深圳)有限公司 Air navigation aid, device, computer equipment and storage medium based on history video
CN110532944A (en) * 2019-08-28 2019-12-03 河北冀云气象技术服务有限责任公司 A kind of intelligent image identification weather phenomenon system and method
CN111986191B (en) * 2020-08-31 2022-05-27 江苏工程职业技术学院 Building construction acceptance method and system
CN112488012A (en) * 2020-12-03 2021-03-12 浙江大华技术股份有限公司 Pedestrian attribute identification method, electronic device and storage medium
CN112672209A (en) * 2020-12-14 2021-04-16 北京达佳互联信息技术有限公司 Video editing method and video editing device
CN113658137A (en) * 2021-08-17 2021-11-16 浙江工商大学 Aircraft surface defect detection method and system based on capsule network
CN116824362A (en) * 2022-04-06 2023-09-29 布瑞克(苏州)农业互联网股份有限公司 Agricultural product monitoring method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069415A (en) * 2010-07-02 2013-04-24 埃森哲环球服务有限公司 A computer-implemented method, a computer program product and a computer system for image processing
CN104346620A (en) * 2013-07-25 2015-02-11 佳能株式会社 Inputted image pixel classification method and device, and image processing system
CN105809146A (en) * 2016-03-28 2016-07-27 北京奇艺世纪科技有限公司 Image scene recognition method and device
CN107690660A (en) * 2016-12-21 2018-02-13 深圳前海达闼云端智能科技有限公司 Image-recognizing method and device
CN108805198A (en) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4482796B2 (en) * 2004-03-26 2010-06-16 ソニー株式会社 Information processing apparatus and method, recording medium, and program
CN102609681B (en) * 2012-01-12 2014-04-30 北京大学 Face recognition method based on dictionary learning models
CN104182722B (en) * 2013-05-24 2018-05-18 佳能株式会社 Method for text detection and device and text message extracting method and system
CN104281833B (en) * 2013-07-08 2018-12-18 深圳市腾讯计算机系统有限公司 Pornographic image recognizing method and device
CN104079908B (en) * 2014-07-11 2015-12-02 上海富瀚微电子股份有限公司 Infrared with visible image signal processing method and implement device thereof
CN105405298B (en) * 2015-12-24 2018-01-16 浙江宇视科技有限公司 A kind of recognition methods of car plate mark and device
CN106599827A (en) * 2016-12-09 2017-04-26 浙江工商大学 Small target rapid detection method based on deep convolution neural network
CN107066968A (en) * 2017-04-12 2017-08-18 湖南源信光电科技股份有限公司 The vehicle-mounted pedestrian detection method of convergence strategy based on target recognition and tracking
CN107729848B (en) * 2017-10-20 2019-10-25 北京大学 Method for checking object and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103069415A (en) * 2010-07-02 2013-04-24 埃森哲环球服务有限公司 A computer-implemented method, a computer program product and a computer system for image processing
CN104346620A (en) * 2013-07-25 2015-02-11 佳能株式会社 Inputted image pixel classification method and device, and image processing system
CN105809146A (en) * 2016-03-28 2016-07-27 北京奇艺世纪科技有限公司 Image scene recognition method and device
CN107690660A (en) * 2016-12-21 2018-02-13 深圳前海达闼云端智能科技有限公司 Image-recognizing method and device
CN108805198A (en) * 2018-06-08 2018-11-13 Oppo广东移动通信有限公司 Image processing method, device, computer readable storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111353549A (en) * 2020-03-10 2020-06-30 创新奇智(重庆)科技有限公司 Image tag verification method and device, electronic device and storage medium
CN111353549B (en) * 2020-03-10 2023-01-31 创新奇智(重庆)科技有限公司 Image label verification method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108805198A (en) 2018-11-13
CN108805198B (en) 2021-08-31

Similar Documents

Publication Publication Date Title
WO2019233271A1 (en) Image processing method, computer readable storage medium and electronic device
WO2020001197A1 (en) Image processing method, electronic device and computer readable storage medium
CN108764208B (en) Image processing method and device, storage medium and electronic equipment
WO2019233263A1 (en) Method for video processing, electronic device and computer-readable storage medium
WO2019233393A1 (en) Image processing method and apparatus, storage medium, and electronic device
WO2020259179A1 (en) Focusing method, electronic device, and computer readable storage medium
US11138478B2 (en) Method and apparatus for training, classification model, mobile terminal, and readable storage medium
US11178324B2 (en) Focusing method and device, electronic device and computer-readable storage medium
US10896323B2 (en) Method and device for image processing, computer readable storage medium, and electronic device
WO2019233266A1 (en) Image processing method, computer readable storage medium and electronic device
WO2019233341A1 (en) Image processing method and apparatus, computer readable storage medium, and computer device
US11233933B2 (en) Method and device for processing image, and mobile terminal
WO2019233262A1 (en) Video processing method, electronic device, and computer readable storage medium
WO2019233392A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2019237887A1 (en) Image processing method, electronic device, and computer readable storage medium
CN108897786B (en) Recommendation method and device of application program, storage medium and mobile terminal
CN108961302B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
WO2019233260A1 (en) Method and apparatus for pushing advertisement information, storage medium and electronic device
US11076087B2 (en) Method for processing image based on scene recognition of image and electronic device therefor
WO2020001196A1 (en) Image processing method, electronic device, and computer readable storage medium
CN109712177B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
WO2017096862A1 (en) Method and device for taking picture in backlit scene
WO2019223513A1 (en) Image recognition method, electronic device and storage medium
CN108848306B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109327626B (en) Image acquisition method and device, electronic equipment and computer readable storage medium

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: 19814172

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: 19814172

Country of ref document: EP

Kind code of ref document: A1