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

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

Info

Publication number
WO2019233392A1
WO2019233392A1 PCT/CN2019/089905 CN2019089905W WO2019233392A1 WO 2019233392 A1 WO2019233392 A1 WO 2019233392A1 CN 2019089905 W CN2019089905 W CN 2019089905W WO 2019233392 A1 WO2019233392 A1 WO 2019233392A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
label
detected
target
tag
Prior art date
Application number
PCT/CN2019/089905
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 WO2019233392A1 publication Critical patent/WO2019233392A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/10Terrestrial scenes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques

Definitions

  • the present application relates to the field of computer technology, and in particular, to an image processing method and apparatus, an electronic device, and a computer-readable storage medium.
  • the smart electronic device may classify the images according to the time when the images were taken, classify the images according to the location where the images were taken, classify the images based on the people in the images, and so on. By classifying images, it is convenient for users to view images more conveniently and quickly.
  • Embodiments of the present application provide an image processing method, apparatus, electronic device, and computer-readable storage medium, which can improve the efficiency of image processing on an image.
  • An image processing method includes:
  • An image processing device includes:
  • a first acquisition module configured to acquire an image to be detected
  • a recognition module configured to perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected
  • a detection module configured to perform target detection on the image to be detected, and obtain a target subject label of the image to be detected
  • a determining module configured to determine an image label of the image to be detected according to the target scene label and / or the target subject label
  • a processing module configured to perform image processing on the image to be detected according to the image label.
  • An electronic device includes a memory and a processor.
  • the memory stores a computer program.
  • the processor causes the processor to perform the operations of the method as described above.
  • a computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the operations of the method described above.
  • the image processing method, device, electronic device, and computer-readable storage medium in the embodiments of the present application can determine the image tag corresponding to the image by performing scene recognition and target detection on the image, and perform image processing on the image to be detected according to the image tag. Batch processing is performed on the images to be detected corresponding to the same image tag, and different image processing is performed on the images to be detected corresponding to different image tags, which not only improves the efficiency of image processing of electronic devices, but also automatically processes the images of electronic devices. The effect is more diversified.
  • FIG. 1 is a flowchart of an image processing method according to an embodiment.
  • FIG. 2 is a flowchart of an image processing method in another embodiment.
  • FIG. 3 is a flowchart of an image processing method in another embodiment.
  • FIG. 4 is a structural block diagram of an image processing apparatus in an embodiment.
  • FIG. 5 is a structural block diagram of an image processing apparatus in another embodiment.
  • FIG. 6 is a structural block diagram of an image processing apparatus in another embodiment.
  • FIG. 7 is a schematic diagram of an internal structure of an electronic device in an embodiment.
  • FIG. 8 is a schematic diagram of an image processing circuit in one embodiment.
  • FIG. 1 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 1, an image processing method includes:
  • the electronic device may acquire an image to be detected.
  • the image to be detected may be an image captured by the electronic device, an image stored in the electronic device, or an image downloaded by the electronic device.
  • the electronic device may perform scene recognition, target detection, and the like on the image to be detected, and determine a shooting scene corresponding to the image to be detected and a target subject captured in the image to be detected. Further, after acquiring the shooting scene corresponding to the image to be detected and the target subject captured in the image to be detected, classification processing may be performed on the image to be detected according to the shooting scene, and image processing may be performed on the target subject in the image to be detected. .
  • Operation 104 Perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected.
  • the electronic device may perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected.
  • the electronic device may use image classification technology to perform scene recognition on the image to be detected.
  • Image classification refers to a method of dividing an image or an image area into one of several categories according to the characteristics reflected by the image information.
  • the electronic device performing scene recognition according to the image classification technology includes: the electronic device may pre-store image feature information corresponding to multiple scene tags, and after acquiring the to-be-detected image, the electronic device may use the image feature of the to-be-detected image The information is respectively matched with the stored image feature information, and a scene label corresponding to the successfully matched graphic feature information is obtained as the target scene label of the image to be detected.
  • the scene tags pre-stored in the electronic device may include: landscape, beach, blue sky, green grass, snow, night, dark, backlight, sunset, fireworks, spotlight, indoor, macro, text, portrait, baby, cat, Dogs, food, etc.
  • the above scene tags may be divided into a background tag and a foreground tag, and the above background tags may include: landscape, beach, blue sky, green grass, snow scene, night scene, dark, backlight, sunset, fireworks, spotlight, indoor;
  • the above foreground tag Can include: Macro, Text, Portrait, Baby, Cat, Dog, Food, etc.
  • the electronic device when the electronic device matches the image feature information of the image to be detected with the stored image feature information, if there is only one scene tag that is successfully matched, the electronic device uses the successfully matched scene tag as the Target scene tags; if there are multiple matching scene tags, the electronic device can obtain the confidence of each scene tag, and select a scene tag as the target scene tag according to the confidence of each scene tag.
  • Operation 106 Perform target detection on the image to be detected, and obtain a target subject label of the image to be detected.
  • the electronic device may also perform target detection on the image to be detected, and identify and locate a target subject in the image to be detected.
  • the above object detection refers to a method of identifying the type of an object in an image and calibrating the position of the object in the image according to the characteristics reflected in the image information.
  • the image feature information of the image to be detected can be matched with the feature information corresponding to the stored subject tag, and the successfully matched subject tag is obtained as the target subject tag.
  • the main body tags stored in the electronic device may include: portrait, baby, cat, dog, food, text, blue sky, green grass, beach, fireworks, and the like.
  • the electronic device when the electronic device performs target detection on the image to be detected, if there is only one subject tag in the image to be detected, the above body tag is used as the target subject label; if the electronic device performs target detection on the image to be detected, if If there are multiple subject tags in the image to be detected, the electronic device may select one of the multiple subject tags as the target subject tag. Among them, the electronic device may select a target body tag having the largest area of the corresponding body region from the plurality of body tags; the electronic device may also select a corresponding body region having the highest definition of the body region from the plurality of body tags as the target body tag, etc. .
  • the electronic device may also obtain position information of the target subject area corresponding to the target subject tag, and mark the target subject area in the image to be detected. For example, the electronic device may mark a target subject region in the image to be detected with a rectangular frame.
  • Operation 108 Determine an image label of the image to be detected according to the target scene label and / or the target subject label.
  • the electronic device may select one of the target scene tag and the target subject tag as the image tag, and the electronic device may also use the target scene tag and the target subject tag as the image tag.
  • the electronic device may use the target subject label as the image label.
  • the target scene label may be used as the image label.
  • Operation 110 Perform image processing on the image to be detected according to the image label.
  • the electronic device may perform image processing on the image to be detected according to the image tag.
  • the electronic device may perform group processing, global image processing, and local image processing on the image to be detected according to the image tag.
  • grouping processing refers to grouping images to be detected according to image tags, for example, grouping images corresponding to the same image tag into a group.
  • the aforementioned global image processing refers to performing color processing, saturation processing, brightness processing, contrast processing, and other processing on the entire image.
  • the image local processing refers to performing color processing, saturation processing, brightness processing, contrast processing, and other processing on a part of an image.
  • the electronic device may obtain an image processing strategy corresponding to an image tag when performing image global processing or image local processing on an image to be detected, and perform image processing on the image to be detected according to the image processing strategy.
  • the electronic device when the image label is the same as the target scene label, the electronic device can perform the global image processing on the image to be detected; when the image label is the same as the target body label, the electronic device can find the target body area corresponding to the target body label, and The target subject region in the image to be detected is subjected to local image processing.
  • the image tag is "landscape”
  • the electronic device may increase the saturation of the image to be detected; when the image tag is "portrait”, the electronic device may perform a beauty treatment on the portrait area in the image to be detected.
  • an electronic device when an electronic device performs image processing on an image, it can often only process a single image or a part of a single image according to fixed parameters.
  • the effect on image processing is relatively simple, and the efficiency of image processing is low.
  • the image tags corresponding to the images can be determined by performing scene recognition and target detection on the images, and performing image processing on the images to be detected according to the image tags, can not only implement batch processing of the images to be detected corresponding to the same image tag, It is also possible to implement different image processing on the images to be detected corresponding to different image tags, which not only improves the efficiency of image processing of electronic equipment, but also has more diversified effects of automatic image processing by electronic equipment.
  • the electronic device may use the classification model to perform scene recognition on the image to be detected, and use the detection model to perform target detection on the image to be detected.
  • the above classification model and detection model are both deep learning models.
  • an independent classification model and detection model may be set in the electronic device, and the above classification model and detection model are run in parallel.
  • the electronic device inputs the to-be-detected image into the above classification model and detection model, respectively, the above-mentioned classification model can perform scene recognition on the to-be-detected image and output a target scene label of the to-be-detected image; the above-mentioned detection model can perform object detection on the to-be-detected image, and The target subject label of the image to be detected is output.
  • the electronic device may also reuse the above-mentioned classification model and detection model with the basic network, extract features from the to-be-detected image by multiplexing the basic network, and then send the extracted features to the classification model and the detection model, respectively.
  • the classification model can perform scene recognition based on the extracted features; the above detection model can perform target detection based on the extracted features.
  • performing scene recognition on the image to be detected and obtaining a target scene label of the image to be detected includes: performing scene recognition on the image to be detected, obtaining multiple scene labels corresponding to the image to be detected and the confidence of each scene label; according to the confidence The degree determines the target scene label.
  • the electronic device may output multiple scene labels corresponding to the image to be detected when performing scene recognition on the image to be detected; the above multiple scene labels represent corresponding to the image to be detected detected by the electronic device.
  • the electronic device may output the confidence level of each scene label.
  • the above-mentioned confidence level is a value used to indicate the credibility of the output parameter. When the above-mentioned confidence level is higher, it indicates that the confidence level of the scene label is higher.
  • the electronic device outputs multiple scene labels corresponding to the image to be detected may be: “blue sky” confidence 90%, “beach” confidence 85%, and “grassland” confidence 80%, then in the above three scene labels, " The blue sky label has the highest credibility, which means that the shooting scene corresponding to the image to be detected is the closest to "blue sky”.
  • the electronic device may determine the target scene label according to the above confidence level.
  • the electronic device may use the scene label with the highest confidence as the target scene label.
  • the target scene label has high accuracy, which is beneficial to further processing the image according to the obtained target scene label.
  • determining the image label of the image to be detected according to the target scene label and / or the target subject label includes:
  • the image to be detected may not include a target scene tag or a target subject tag.
  • the electronic device may use the target scene label as the image label, and at this time, the image label of the image to be detected is a single label. If the target scene tag is not included in the image to be detected and only includes the target subject tag, the electronic device may use the target subject tag as the image tag, and at this time, the image tag of the image to be detected is a single tag. If the target scene label is not included in the image to be detected, and only the target subject label is included, the electronic device may obtain multiple subject labels obtained by performing target detection on the image to be detected, obtain the subject area corresponding to each subject label, and the electronic device may compare each subject.
  • the area of the area determines the image label based on the area of the body area.
  • the electronic device can sort the body tags according to the area of the body area, and then select the body tags corresponding to the serial number as the image tags according to the number of output image tags. For example, if the number of image tags output by the electronic device is two, the electronic device may select a body tag with the largest body area area and the second largest body area area as the image label.
  • the electronic device may select a target subject label or a target scene label as the image label of the image to be detected, which is helpful for quickly and accurately determining the image label.
  • determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the obtained target scene tag is different from the target subject tag, obtaining a target subject region corresponding to the target subject tag and the target subject tag Detect the area ratio of the image; determine the image label based on the area ratio.
  • a tag is selected as the image tag from the target subject tag and the target scene tag.
  • the target scene label is the same as the target subject label
  • the target subject label is directly obtained as the image label. For example, when the target subject label and the target scene label are both "blue sky", the electronic device outputs an image label as "blue sky”.
  • the electronic device may obtain a target subject area corresponding to the target subject label, and determine an image tag of the image to be detected according to an area ratio of the area of the target subject area to an area of the image to be detected.
  • determining the image label of the image to be detected according to the area ratio includes: if the area ratio is lower than the first threshold, using the target scene label as the image label; if the area ratio is not lower than the first threshold, obtaining the target scene label's The first confidence level and the second confidence level of the target subject label; determine the image label according to the first confidence level and the second confidence level.
  • the electronic device may select a target scene tag as the image tag.
  • the electronic device performs a target detection on the subject area and the detection accuracy is low. Therefore, when the subject area in the image to be detected is small, the electronic device can select a target scene label obtained by image classification. As image tag.
  • the electronic device may obtain the first confidence level of the target scene label and the second confidence level of the target subject label, and according to the first confidence level, The image tag is determined by the degree of confidence and the second degree of confidence.
  • the electronic device may select a tag with a high degree of confidence among the first and second degrees of confidence as the image tag.
  • the target scene label output of the electronic device to be detected by the electronic device has a “beach” confidence of 90%
  • the target subject label has a “cat” confidence of 95%
  • the electronic device detects that the target subject area corresponding to the target subject label and the image to be detected If the area ratio is greater than 1/3, the electronic device selects the target subject tag "cat" with high confidence as the image tag of the electronic device.
  • the first threshold may be a value set by a user or a value set by an electronic device, for example, 1/2 or 1/3.
  • the image label when the target subject label obtained by the electronic device is different from the target scene label, the image label may be determined according to the area of the target subject area, and the image label output by the image to be detected is more accurate.
  • the method further includes:
  • Operation 112 Obtain a target subject region corresponding to the target subject tag.
  • Operation 114 Acquire an image processing strategy corresponding to the target subject label.
  • Operation 116 Perform corresponding image processing on the target subject area according to the image processing strategy.
  • the electronic device may perform partial image processing on the image to be detected.
  • the electronic device may identify a target subject region corresponding to the target subject label in the image to be detected.
  • the electronic device may also obtain an image processing strategy corresponding to the target subject tag, and perform image processing on the target subject area in the image to be detected according to the image processing strategy. For example, when the target subject area is "Portrait”, the electronic device may perform beauty treatment on the "Portrait”; when the target subject area is "Gourmet", the electronic device may perform saturation enhancement processing on the "Gourmet”; when the target subject is When the area is "text”, the electronic device can sharpen and calibrate the "text”.
  • the image processing strategy corresponding to the above body tag may be pre-stored in the electronic device or stored in the server.
  • the electronic device can directly obtain a pre-stored image processing strategy corresponding to the target subject tag or search the server for an image processing strategy corresponding to the target subject tag.
  • the electronic device can perform image processing on the target subject area in the image to be detected, which can not only realize local processing of the image, but also process the target subject area according to the image processing strategy, and the image processing method is more intelligent. .
  • the method further includes:
  • Operation 120 Determine a display order of each image according to the number of views.
  • the electronic device can group the images according to the image tags, and group the images corresponding to the same image tag into a group.
  • the electronic device can display the images corresponding to each group on the electronic device interface, so that users can directly view the images according to the image tags.
  • the electronic device may also count the browsing times of each image under the same image tag. The above browsing times may be the cumulative browsing times or the browsing times counted over a period of time.
  • the electronic device may determine the display order of the foregoing images according to the number of views of each image.
  • the electronic device may sequentially display the images in order of the number of browsing times from high to low; the electronic device may also sequentially display the images in order of the number of browsing times from low to high.
  • the display order of each image by the electronic device can be determined, and the method of displaying images is more intelligent.
  • an image processing method includes:
  • performing scene recognition on the image to be detected and obtaining a target scene label of the image to be detected includes: performing scene recognition on the image to be detected, obtaining multiple scene labels corresponding to the image to be detected and the confidence of each scene label; according to the confidence The degree determines the target scene label.
  • determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the target scene tag cannot be obtained, using the target subject tag as the image tag; if the target subject tag cannot be obtained, changing The target scene label is used as the image label.
  • determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the obtained target scene tag is different from the target subject tag, obtaining a target subject region corresponding to the target subject tag and the target subject tag Detect the area ratio of the image; determine the image label based on the area ratio.
  • determining the image label of the image to be detected according to the area ratio includes: if the area ratio is lower than the first threshold, using the target scene label as the image label; if the area ratio is not lower than the first threshold, obtaining the target scene label's The first confidence level and the second confidence level of the target subject label; determine the image label according to the first confidence level and the second confidence level.
  • the method further includes: acquiring a target subject region corresponding to the target subject tag; acquiring an image processing strategy corresponding to the target subject tag; and performing corresponding image processing on the target subject region according to the image processing strategy.
  • the above method further includes: obtaining the number of views of each image under the same image tag; and determining the display order of each image according to the number of views.
  • FIG. 4 is a structural block diagram of an image processing apparatus in an embodiment. As shown in FIG. 4, an image processing apparatus includes:
  • the first acquiring module 402 is configured to acquire an image to be detected.
  • the recognition module 404 is configured to perform scene recognition on an image to be detected, and obtain a target scene label of the image to be detected.
  • the detection module 406 is configured to perform target detection on the image to be detected, and obtain a target subject label of the image to be detected.
  • a determining module 408 is configured to determine an image label of an image to be detected according to a target scene label and / or a target subject label.
  • the processing module 410 is configured to perform image processing on an image to be detected according to an image tag.
  • the recognition module 404 performs scene recognition on the image to be detected, and obtains target scene tags of the image to be detected includes: scene recognition on the image to be detected, obtaining multiple scene tags corresponding to the image to be detected, and confidence of each scene tag. ; Determine the target scene label based on the confidence.
  • the determining module 408 determines the image tag of the image to be detected according to the target scene tag and / or the target subject tag, including: if the target scene tag cannot be obtained, using the target subject tag as the image tag; if the target subject cannot be obtained Label, using the target scene label as the image label.
  • the determining module 408 determines the image tag of the image to be detected according to the target scene tag and / or the target subject tag, including: if the obtained target scene tag is different from the target subject tag, obtaining a target subject corresponding to the target subject tag The area ratio of the area to the image to be detected; the image label is determined according to the area ratio.
  • the determining module 408 determines the image label of the image to be detected according to the area ratio. If the area ratio is lower than the first threshold, the target scene label is used as the image label. If the area ratio is not lower than the first threshold, the target is obtained. The first confidence level of the scene label and the second confidence level of the target subject label; the image label is determined according to the first confidence level and the second confidence level.
  • FIG. 5 is a structural block diagram of an image processing apparatus in another embodiment.
  • an image processing apparatus includes: a first acquisition module 502, an identification module 504, a detection module 506, a determination module 508, a processing module 510, and a second acquisition module 512.
  • the first acquisition module 502, the identification module 504, the detection module 506, the determination module 508, and the processing module 510 have the same functions as the corresponding modules in FIG. 4.
  • the second acquisition module 512 is configured to acquire a target subject region corresponding to the target subject tag; and acquire an image processing strategy corresponding to the target subject tag.
  • the processing module 510 is further configured to perform corresponding image processing on the target subject area according to the image processing strategy.
  • FIG. 6 is a structural block diagram of an image processing apparatus in another embodiment.
  • an image processing device includes: a first acquisition module 602, an identification module 604, a detection module 606, a determination module 608, a processing module 610, a statistics module 612, and a display module 614.
  • the first acquisition module 602, the identification module 604, the detection module 606, the determination module 608, and the processing module 610 have the same functions as the corresponding modules in FIG. 4.
  • the statistics module 612 is configured to obtain the browsing times of each image under the same image label.
  • a display module 614 is configured to determine a display order of each image according to the number of views.
  • 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.
  • Each module in the image processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • each module in the image processing apparatus provided in the embodiments of the present application may be in the form of a computer program.
  • the computer program can be run on a terminal or server.
  • the program module constituted by the computer program can be stored in the memory of the terminal or server.
  • the computer program is executed by a processor, the operations of the image processing method described in the embodiments of the present application are implemented.
  • FIG. 7 is a schematic diagram of an internal structure of an electronic device in an embodiment.
  • the electronic device includes a processor, a memory, and a network interface connected through a system bus.
  • the processor is used to provide computing and control capabilities to support the operation of the entire electronic device.
  • the memory is used to store data, programs, and the like. At least one computer program is stored on the memory, and the computer program can be executed by a processor to implement the image processing method applicable to the electronic device provided in the embodiments of the present application.
  • the memory may include a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system and a computer program.
  • the computer program can be executed by a processor to implement an image processing method provided by each of the following embodiments.
  • the internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium.
  • the network interface may be an Ethernet card or a wireless network card, and is used to communicate with external electronic devices.
  • the electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device.
  • 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 execute the image processing methods described in the embodiments of the present application operating.
  • the embodiment of the present application further provides a computer program product containing instructions, which when executed on a computer, causes the computer to perform operations of the image processing method described in the embodiment of the present application.
  • 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. 8 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 8, 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 a first ISP processor 830, a second ISP processor 840, and a control logic 850.
  • the first camera 810 includes one or more first lenses 812 and a first image sensor 814.
  • the first image sensor 814 may include a color filter array (such as a Bayer filter).
  • the first image sensor 814 may obtain light intensity and wavelength information captured by each imaging pixel of the first image sensor 814, and provide information that may be captured by the first ISP.
  • the second camera 820 includes one or more second lenses 822 and a second image sensor 824.
  • the second image sensor 824 may include a color filter array (such as a Bayer filter).
  • the second image sensor 824 may obtain light intensity and wavelength information captured by each imaging pixel of the second image sensor 824, and provide information that may be captured by the second ISP.
  • the first image collected by the first camera 810 is transmitted to the first ISP processor 830 for processing.
  • the first image statistical data (such as the brightness of the image and the contrast value of the image) can be processed. , Image color, etc.) to the control logic 850.
  • the control logic 850 can determine the control parameters of the first camera 810 according to the statistical data, so that the first camera 810 can perform operations such as autofocus and automatic exposure according to the control parameters.
  • the first image may be stored in the image memory 860 after being processed by the first ISP processor 830, and the first ISP processor 830 may also read the image stored in the image memory 860 for processing.
  • the first image may be directly sent to the display 870 for display after being processed by the ISP processor 830, and the display 870 may also read the image in the image memory 860 for display.
  • the first ISP processor 830 processes the 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 first ISP processor 830 may perform one or more image processing operations on the 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 image memory 860 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 first ISP processor 830 may perform one or more image processing operations, such as time-domain filtering.
  • the processed image data may be sent to the image memory 860 for further processing before being displayed.
  • the first ISP processor 830 receives the processing data from the image memory 860, and performs the image data processing in the RGB and YCbCr color spaces on the processing data.
  • the image data processed by the first ISP processor 830 may be output to the display 870 for viewing by a user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit).
  • the output of the first ISP processor 830 may also be sent to the image memory 860, and the display 870 may read image data from the image memory 860.
  • the image memory 860 may be configured to implement one or more frame buffers.
  • the statistical data determined by the first ISP processor 830 may be sent to the control logic 850.
  • the statistical data may include statistical information of the first image sensor 814 such as automatic exposure, automatic white balance, automatic focus, flicker detection, black level compensation, and first lens 812 shading correction.
  • the control logic 850 may include a processor and / or a microcontroller that executes one or more routines (such as firmware), and the one or more routines may determine the control parameters and the first parameters of the first camera 810 according to the received statistical data.
  • a control parameter of an ISP processor 830 may be sent to the control logic 850.
  • control parameters of the first camera 810 may include gain, integration time of exposure control, image stabilization parameters, flash control parameters, control parameters of the first lens 812 (for example, focal length for focusing or zooming), or a combination of these parameters.
  • the ISP control parameters may include a gain level and a color correction matrix for automatic white balance and color adjustment (eg, during RGB processing), and a first lens 812 shading correction parameter.
  • the second image collected by the second camera 820 is transmitted to the second ISP processor 840 for processing.
  • statistical data of the second image such as image brightness, image (The contrast value of the image, the color of the image, etc.) are sent to the control logic 850.
  • the control logic 850 can determine the control parameters of the second camera 820 according to the statistical data, so that the second camera 820 can perform operations such as autofocus and automatic exposure according to the control parameters .
  • the second image may be stored in the image memory 860 after being processed by the second ISP processor 840, and the second ISP processor 840 may also read the image stored in the image memory 860 for processing.
  • the second image may be directly sent to the display 870 for display after being processed by the ISP processor 840, and the display 870 may also read the image in the image memory 860 for display.
  • the second camera 820 and the second ISP processor 840 may also implement processing operations as described by the first camera 810 and the first ISP processor 830.
  • the electronic device can implement the image processing method described in the embodiment of the present application according to the image processing technology.
  • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Multimedia (AREA)
  • Image Analysis (AREA)

Abstract

An image processing method, comprising: acquiring an image to be tested; performing scene recognition on the image to be tested, so as to acquire a target scene label of the image to be tested; performing target detection on the image to be tested, so as to acquire a target body label of the image to be tested; determining an image label of the image to be tested according to the target scene label and/or the target body label; and performing image processing on the image to be tested according to the image label.

Description

图像处理方法、装置、电子设备和计算机可读存储介质Image processing method, device, electronic device and computer-readable storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年6月8日提交中国专利局、申请号为201810589446.0、发明名称为“图像处理方法和装置、电子设备和计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on June 8, 2018 with the Chinese Patent Office, application number 201810589446.0, and invention name "Image Processing Method and Apparatus, Electronic Device, and Computer-readable Storage Medium", its entire content 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 and apparatus, an electronic device, and a computer-readable storage medium.
背景技术Background technique
随着智能电子设备和图像处理技术的迅速发展,智能电子设备对图像处理的技术越来越全面。可选地,智能电子设备可根据图像拍摄的时间对图像进行分类、根据图像拍摄的地点对图像进行分类、根据图像中人物对图像进行分类等。通过对图像进行分类,有利于用户更方便、快捷的查看图像。With the rapid development of intelligent electronic equipment and image processing technology, the technology of intelligent electronic equipment for image processing is becoming more and more comprehensive. Optionally, the smart electronic device may classify the images according to the time when the images were taken, classify the images according to the location where the images were taken, classify the images based on the people in the images, and so on. By classifying images, it is convenient for users to view images more conveniently and quickly.
发明内容Summary of the Invention
本申请实施例提供一种图像处理方法、装置、电子设备和计算机可读存储介质,可以提高对图像进行图像处理的效率。Embodiments of the present application provide an image processing method, apparatus, electronic device, and computer-readable storage medium, which can improve the efficiency of image processing on an image.
一种图像处理方法,包括:An image processing method includes:
获取待检测图像;Obtaining images to be detected;
对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签;Performing scene recognition on the image to be detected, and obtaining a target scene label of the image to be detected;
对所述待检测图像进行目标检测,获取所述待检测图像的目标主体标签;Performing target detection on the image to be detected, and obtaining a target subject label of the image to be detected;
根据所述目标场景标签和/或目标主体标签确定所述待检测图像的图像标签;Determining an image label of the image to be detected according to the target scene label and / or the target subject label;
根据所述图像标签对所述待检测图像进行图像处理。Performing image processing on the image to be detected according to the image label.
一种图像处理装置,包括:An image processing device includes:
第一获取模块,用于获取待检测图像;A first acquisition module, configured to acquire an image to be detected;
识别模块,用于对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签;A recognition module, configured to perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected;
检测模块,用于对所述待检测图像进行目标检测,获取所述待检测图像的目标主体标签;A detection module, configured to perform target detection on the image to be detected, and obtain a target subject label of the image to be detected;
确定模块,用于根据所述目标场景标签和/或目标主体标签确定所述待检测图像的图像标签;A determining module, configured to determine an image label of the image to be detected according to the target scene label and / or the target subject label;
处理模块,用于根据所述图像标签对所述待检测图像进行图像处理。A processing module, configured to perform image processing on the image to be detected according to the image label.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如上所述的方法的操作。An electronic device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor causes the processor to perform the operations of the method as described above.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的操作。A computer-readable storage medium has stored thereon a computer program that, when executed by a processor, implements the operations of the method described above.
本申请实施例中的图像处理方法、装置、电子设备和计算机可读存储介质,通过对图像进行场景识别和目标检测可确定图像对应的图像标签,根据图像标签对待检测图像进行图像处理,不仅可以实现对同一图像标签对应的待检测图像进行批量处理,还可实现对不同的图像标签对应的待检测图像进行不同的图像处理,不仅提高了电子设备图像处理的效率,且电子设备自动对图像处理的效果更加多元化。The image processing method, device, electronic device, and computer-readable storage medium in the embodiments of the present application can determine the image tag corresponding to the image by performing scene recognition and target detection on the image, and perform image processing on the image to be detected according to the image tag. Batch processing is performed on the images to be detected corresponding to the same image tag, and different image processing is performed on the images to be detected corresponding to different image tags, which not only improves the efficiency of image processing of electronic devices, but also automatically processes the images of electronic devices. The effect is more diversified.
附图说明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 a flowchart of an image processing method according to an embodiment.
图2为另一个实施例中图像处理方法的流程图。FIG. 2 is a flowchart of an image processing method in another embodiment.
图3为另一个实施例中图像处理方法的流程图。FIG. 3 is a flowchart of an image processing method in another embodiment.
图4为一个实施例中图像处理装置的结构框图。FIG. 4 is a structural block diagram of an image processing apparatus in an embodiment.
图5为另一个实施例中图像处理装置的结构框图。FIG. 5 is a structural block diagram of an image processing apparatus in another embodiment.
图6为另一个实施例中图像处理装置的结构框图。FIG. 6 is a structural block diagram of an image processing apparatus in another embodiment.
图7为一个实施例中电子设备的内部结构示意图。FIG. 7 is a schematic diagram of an internal structure of an electronic device in an embodiment.
图8为一个实施例中图像处理电路的示意图。FIG. 8 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.
图1为一个实施例中图像处理方法的流程图。如图1所示,一种图像处理方法,包括:FIG. 1 is a flowchart of an image processing method according to an embodiment. As shown in FIG. 1, an image processing method includes:
操作102,获取待检测图像。In operation 102, an image to be detected is obtained.
电子设备可获取待检测图像,上述待检测图像可为电子设备拍摄获取的图像,可为电子设备中存储的图像,也可为电子设备下载的图像。电子设备在获取到上述待检测图像后,可对上述待检测图像进行场景识别、目标检测等,确定上述待检测图像对应的拍摄场景以及上述待检测图像中拍摄的目标主体。进一步地,在获取到上述待检测图像对应的拍摄场景以及上述待检测图像中拍摄的目标主体后,可根据上述拍摄场景对待检测图像进行分类处理、对上述待检测图像中目标主体进行图像处理等。The electronic device may acquire an image to be detected. The image to be detected may be an image captured by the electronic device, an image stored in the electronic device, or an image downloaded by the electronic device. After acquiring the image to be detected, the electronic device may perform scene recognition, target detection, and the like on the image to be detected, and determine a shooting scene corresponding to the image to be detected and a target subject captured in the image to be detected. Further, after acquiring the shooting scene corresponding to the image to be detected and the target subject captured in the image to be detected, classification processing may be performed on the image to be detected according to the shooting scene, and image processing may be performed on the target subject in the image to be detected. .
操作104,对待检测图像进行场景识别,获取待检测图像的目标场景标签。Operation 104: Perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected.
电子设备可对上述待检测图像进行场景识别,获取上述待检测图像的目标场景标签。电子设备可采用图像分类技术对上述待检测图像进行场景识别。图像分类是指根据图像信息反映的特征,将图像或图像区域划分为若干类别中某一类的方法。电子设备在根据图像分类技术对待检测图像进行场景识别包括:电子设备中可预存有多个场景标签对应的图像特征信息,在获取到待检测图像后,电子设备可将上述待检测图像的图像特征信息与已存储的图像特征信息分别进行匹配,获取匹配成功的图形特征信息对应的场景标签作为上述待检测图像的目标场景标签。可选地,电子设备中预存的场景标签可包括:风景、海滩、蓝天、绿草、雪景、夜景、黑暗、逆光、日落、烟火、聚光灯、室内、微距、文本、人像、婴儿、猫、狗、美食等。进一步地,可将上述场景标签分为背景标签和前景标签,上述背景标签可包括:风景、海滩、蓝天、绿草、雪景、夜景、黑暗、逆光、日落、烟火、聚光 灯、室内;上述前景标签可包括:微距、文本、人像、婴儿、猫、狗、美食等。The electronic device may perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected. The electronic device may use image classification technology to perform scene recognition on the image to be detected. Image classification refers to a method of dividing an image or an image area into one of several categories according to the characteristics reflected by the image information. The electronic device performing scene recognition according to the image classification technology includes: the electronic device may pre-store image feature information corresponding to multiple scene tags, and after acquiring the to-be-detected image, the electronic device may use the image feature of the to-be-detected image The information is respectively matched with the stored image feature information, and a scene label corresponding to the successfully matched graphic feature information is obtained as the target scene label of the image to be detected. Optionally, the scene tags pre-stored in the electronic device may include: landscape, beach, blue sky, green grass, snow, night, dark, backlight, sunset, fireworks, spotlight, indoor, macro, text, portrait, baby, cat, Dogs, food, etc. Further, the above scene tags may be divided into a background tag and a foreground tag, and the above background tags may include: landscape, beach, blue sky, green grass, snow scene, night scene, dark, backlight, sunset, fireworks, spotlight, indoor; the above foreground tag Can include: Macro, Text, Portrait, Baby, Cat, Dog, Food, etc.
其中,电子设备在将上述待检测图像的图像特征信息与已存储的图像特征信息分别进行匹配时,若仅有一个匹配成功的场景标签,则将上述匹配成功的场景标签作为上述待检测图像的目标场景标签;若有多个匹配成功的场景标签,则电子设备可分别获取各个场景标签的置信度,根据各个场景标签的置信度选取一个场景标签作为目标场景标签。Wherein, when the electronic device matches the image feature information of the image to be detected with the stored image feature information, if there is only one scene tag that is successfully matched, the electronic device uses the successfully matched scene tag as the Target scene tags; if there are multiple matching scene tags, the electronic device can obtain the confidence of each scene tag, and select a scene tag as the target scene tag according to the confidence of each scene tag.
操作106,对待检测图像进行目标检测,获取待检测图像的目标主体标签。Operation 106: Perform target detection on the image to be detected, and obtain a target subject label of the image to be detected.
电子设备还可对上述待检测图像进行目标检测,识别并定位上述待检测图像中目标主体。上述目标检测是指根据图像信息反映的特征辨识图像中物体的类别并标定图像中物体的位置的方法。电子设备在对上述待检测图像进行目标检测时,可将待检测图像的图像特征信息与已存储的主体标签对应的特征信息进行匹配,获取匹配成功的主体标签作为目标主体标签。上述电子设备中已存储的主体标签可包括:人像、婴儿、猫、狗、美食、文本、蓝天、绿草、沙滩、烟火等。The electronic device may also perform target detection on the image to be detected, and identify and locate a target subject in the image to be detected. The above object detection refers to a method of identifying the type of an object in an image and calibrating the position of the object in the image according to the characteristics reflected in the image information. When the electronic device performs target detection on the image to be detected, the image feature information of the image to be detected can be matched with the feature information corresponding to the stored subject tag, and the successfully matched subject tag is obtained as the target subject tag. The main body tags stored in the electronic device may include: portrait, baby, cat, dog, food, text, blue sky, green grass, beach, fireworks, and the like.
可选地,电子设备在对待检测图像进行目标检测时,若上述待检测图像中仅存在一个主体标签,则将上述主体标签作为目标主体标签;若电子设备在对待检测图像进行目标检测时,若上述待检测图像中存在多个主体标签,则电子设备可从多个主体标签中选取一个作为目标主体标签。其中,电子设备可从多个主体标签中选取对应的主体区域面积最大的一个作为目标主体标签;电子设备也可从多个主体标签中选取对应的主体区域清晰度最高的一个作为目标主体标签等。Optionally, when the electronic device performs target detection on the image to be detected, if there is only one subject tag in the image to be detected, the above body tag is used as the target subject label; if the electronic device performs target detection on the image to be detected, if If there are multiple subject tags in the image to be detected, the electronic device may select one of the multiple subject tags as the target subject tag. Among them, the electronic device may select a target body tag having the largest area of the corresponding body region from the plurality of body tags; the electronic device may also select a corresponding body region having the highest definition of the body region from the plurality of body tags as the target body tag, etc. .
电子设备在获取目标主体标签后,还可获取上述目标主体标签对应的目标主体区域的位置信息,并将上述目标主体区域在待检测图像中标示出。例如,电子设备可将待检测图像中目标主体区域用矩形框标示出。After acquiring the target subject label, the electronic device may also obtain position information of the target subject area corresponding to the target subject tag, and mark the target subject area in the image to be detected. For example, the electronic device may mark a target subject region in the image to be detected with a rectangular frame.
操作108,根据目标场景标签和/或目标主体标签确定待检测图像的图像标签。Operation 108: Determine an image label of the image to be detected according to the target scene label and / or the target subject label.
当电子设备获取到目标场景标签和目标主体标签时,电子设备可从目标场景标签和目标主体标签中选取一个作为图像标签,电子设备也可将上述目标场景标签和目标主体标签都作为图像标签。当电子设备仅获取到目标场景标签时,电子设备可将目标主体标签作为图像标签。当电子设备仅获取到目标主体标签时,可将目标场景标签作为图像标签。When the electronic device obtains the target scene tag and the target subject tag, the electronic device may select one of the target scene tag and the target subject tag as the image tag, and the electronic device may also use the target scene tag and the target subject tag as the image tag. When the electronic device obtains only the target scene label, the electronic device may use the target subject label as the image label. When the electronic device obtains only the target subject label, the target scene label may be used as the image label.
操作110,根据图像标签对待检测图像进行图像处理。Operation 110: Perform image processing on the image to be detected according to the image label.
电子设备在获取到上述待检测图像的图像标签后,可根据上述图像标签对上述待检测图像进行图像处理。可选地,电子设备可根据上述图像标签对上述待检测图像进行分组处理、图像全局处理、图像局部处理等。上述分组处理是指根据图像标签将待检测图像进行分组,例如将同一图像标签对应的图像分为一组。上述图像全局处理是指对图像整体进行色彩处理、饱和度处理、亮度处理、对比度处理以及其他处理等。上述图像局部处理是指对图像中局部进行色彩处理、饱和度处理、亮度处理、对比度处理以及其他处理等。After acquiring the image tag of the image to be detected, the electronic device may perform image processing on the image to be detected according to the image tag. Optionally, the electronic device may perform group processing, global image processing, and local image processing on the image to be detected according to the image tag. The above-mentioned grouping processing refers to grouping images to be detected according to image tags, for example, grouping images corresponding to the same image tag into a group. The aforementioned global image processing refers to performing color processing, saturation processing, brightness processing, contrast processing, and other processing on the entire image. The image local processing refers to performing color processing, saturation processing, brightness processing, contrast processing, and other processing on a part of an image.
其中,电子设备在对待检测图像进行图像全局处理或图像局部处理时,可获取图像标签对应的图像处理策略,根据上述图像处理策略对待检测图像进行图像处理。其中,当图像标签与目标场景标签相同时,电子设备可对上述待检测图像进行图像全局处理;当图像标签与目标主体标签相同时,电子设备可查找上述目标主体标签对应的目标主体区域,对上述待检测图像中目标主体区域进行图像局部处理。例如,当图像标签为“风景”时,电子设备可提高上述待检测图像的饱和度;当图像标签为“人像”时,电子设备可对上述待检测图像中人像区域进行美颜处理。The electronic device may obtain an image processing strategy corresponding to an image tag when performing image global processing or image local processing on an image to be detected, and perform image processing on the image to be detected according to the image processing strategy. Wherein, when the image label is the same as the target scene label, the electronic device can perform the global image processing on the image to be detected; when the image label is the same as the target body label, the electronic device can find the target body area corresponding to the target body label, and The target subject region in the image to be detected is subjected to local image processing. For example, when the image tag is "landscape", the electronic device may increase the saturation of the image to be detected; when the image tag is "portrait", the electronic device may perform a beauty treatment on the portrait area in the image to be detected.
通常情况下,电子设备在对图像进行图像处理时,往往只能根据固定的参数针对单张图像或单张图像的局部进行处理。对图像处理的效果较为单一,且图像处理的效率较低。Generally, when an electronic device performs image processing on an image, it can often only process a single image or a part of a single image according to fixed parameters. The effect on image processing is relatively simple, and the efficiency of image processing is low.
本申请实施例中方法,通过对图像进行场景识别和目标检测可确定图像对应的图像标签,根据图像标签对待检测图像进行图像处理,不仅可以实现对同一图像标签对应的待检测图像进行批量处理,还可实现对不同的图像标签对应的待检测图像进行不同的图像处理,不仅提高了电子设备图像处理的效率,且电子设备自动对图像处理的效果更加多元化。In the method of the embodiment of the present application, the image tags corresponding to the images can be determined by performing scene recognition and target detection on the images, and performing image processing on the images to be detected according to the image tags, can not only implement batch processing of the images to be detected corresponding to the same image tag, It is also possible to implement different image processing on the images to be detected corresponding to different image tags, which not only improves the efficiency of image processing of electronic equipment, but also has more diversified effects of automatic image processing by electronic equipment.
本申请实施例中,电子设备可采用分类模型对待检测图像进行场景识别,采用检测模型对待检测图像进行目标检测,上述分类模型和检测模型均为深度学习模型。可选地,电子设备中可设置独立的分类模型和检测模型,上述分类模型和检测模型并行运行。电子设备将待检测图像分别输入上述分类模型和检测模型,则上述分类模型可对待检测图像进行场景识别,并输出上述待检测图像的目标场景标签;上述检测模型可对待检测图像进行目标检测,并输出上述待检测图像的目标主体标签。电子设备也可将上述分类模型和检测模型进行复用基础网络,通过复用基础网络部分对待检测图像待检测图像进行特征提取,再将提取到的特征分别发送给分类模型和检测模型,则上述分类模型可根据提取到的特征进 行场景识别;上述检测模型可根据提取到的特征进行目标检测。In the embodiment of the present application, the electronic device may use the classification model to perform scene recognition on the image to be detected, and use the detection model to perform target detection on the image to be detected. The above classification model and detection model are both deep learning models. Optionally, an independent classification model and detection model may be set in the electronic device, and the above classification model and detection model are run in parallel. The electronic device inputs the to-be-detected image into the above classification model and detection model, respectively, the above-mentioned classification model can perform scene recognition on the to-be-detected image and output a target scene label of the to-be-detected image; the above-mentioned detection model can perform object detection on the to-be-detected image, and The target subject label of the image to be detected is output. The electronic device may also reuse the above-mentioned classification model and detection model with the basic network, extract features from the to-be-detected image by multiplexing the basic network, and then send the extracted features to the classification model and the detection model, respectively. The classification model can perform scene recognition based on the extracted features; the above detection model can perform target detection based on the extracted features.
在一个实施例中,对待检测图像进行场景识别,获取待检测图像的目标场景标签包括:对待检测图像进行场景识别,获取待检测图像对应的多个场景标签以及各个场景标签的置信度;根据置信度确定目标场景标签。In one embodiment, performing scene recognition on the image to be detected and obtaining a target scene label of the image to be detected includes: performing scene recognition on the image to be detected, obtaining multiple scene labels corresponding to the image to be detected and the confidence of each scene label; according to the confidence The degree determines the target scene label.
由于图片内容的丰富性和复杂性,电子设备在对待检测图像进行场景识别时,可能会输出待检测图像对应的多个场景标签;上述多个场景标签表示电子设备检测出的待检测图像对应的拍摄场景。其中,电子设备在输出待检测图像对应的多个场景标签时,可输出各个场景标签的置信度,上述置信度是用于表示输出参数的可信程度的值。当上述置信度越高时,表示场景标签的可信程度越高。例如,电子设备输出待检测图像对应的多个场景标签可为:“蓝天”置信度90%,“沙滩”置信度85%,“草地”置信度80%,则上述3个场景标签中,“蓝天”标签的可信程度最高,即表示待检测图像对应的拍摄场景最接近为“蓝天”。Due to the richness and complexity of the picture content, the electronic device may output multiple scene labels corresponding to the image to be detected when performing scene recognition on the image to be detected; the above multiple scene labels represent corresponding to the image to be detected detected by the electronic device. Shoot the scene. When the electronic device outputs a plurality of scene labels corresponding to the image to be detected, the electronic device may output the confidence level of each scene label. The above-mentioned confidence level is a value used to indicate the credibility of the output parameter. When the above-mentioned confidence level is higher, it indicates that the confidence level of the scene label is higher. For example, the electronic device outputs multiple scene labels corresponding to the image to be detected may be: "blue sky" confidence 90%, "beach" confidence 85%, and "grassland" confidence 80%, then in the above three scene labels, " The blue sky label has the highest credibility, which means that the shooting scene corresponding to the image to be detected is the closest to "blue sky".
电子设备在获取到待检测图像对应的多个场景标签以及各个场景标签的置信度后,可根据上述置信度确定目标场景标签。可选地,电子设备可将置信度最高的场景标签作为目标场景标签。After the electronic device obtains multiple scene labels corresponding to the image to be detected and the confidence level of each scene label, the electronic device may determine the target scene label according to the above confidence level. Optionally, the electronic device may use the scene label with the highest confidence as the target scene label.
本申请实施例中方法,在对待检测图像进行场景识别时,可获取待检测图像对应的多个场景标签以及各个场景标签的置信度,再根据各个场景标签的置信度确定目标场景标签,检测获取的目标场景标签准确度较高,有利于根据获取的目标场景标签对图像进行进一步处理。In the method of the embodiment of the present application, when scene recognition is performed on an image to be detected, multiple scene tags corresponding to the image to be detected and the confidence levels of each scene tag may be obtained, and then a target scene tag is determined according to the confidence level of each scene tag, and detection is acquired The target scene label has high accuracy, which is beneficial to further processing the image according to the obtained target scene label.
在一个实施例中,根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:In one embodiment, determining the image label of the image to be detected according to the target scene label and / or the target subject label includes:
(1)若无法获取到目标场景标签,将目标主体标签作为图像标签。(1) If the target scene label cannot be obtained, use the target subject label as the image label.
(2)若无法获取到目标主体标签,将目标场景标签作为图像标签。(2) If the target subject label cannot be obtained, use the target scene label as the image label.
由于图像种类的多样性,在对上述待检测图像进行场景识别和目标检测时,上述待检测图像中可能不包括目标场景标签或不包括目标主体标签。Due to the variety of image types, when performing scene recognition and target detection on the image to be detected, the image to be detected may not include a target scene tag or a target subject tag.
若上述待检测图像中不包括目标主体标签而只包括目标场景标签,则电子设备可将上述目标场景标签作为图像标签,则此时上述待检测图像的图像标签为单标签。若上述待检 测图像中不包括目标场景标签只包括目标主体标签,则电子设备可将上述目标主体标签作为图像标签,则此时上述待检测图像的图像标签为单标签。若上述待检测图像中不包括目标场景标签只包括目标主体标签时,电子设备可获取对待检测图像进行目标检测获取的多个主体标签,获取各个主体标签对应的主体区域,电子设备可比较各个主体区域的面积,根据主体区域的面积来确定图像标签。电子设备可根据主体区域的面积对上述主体标签进行排序,再根据输出图像标签的个数选取对应序号的主体标签作为图像标签。例如,电子设备输出图像标签个数为2个,则电子设备可选取主体区域面积最大和主体区域面积第二大的主体标签作为图像标签。If the target subject label is not included in the image to be detected but only the target scene label, the electronic device may use the target scene label as the image label, and at this time, the image label of the image to be detected is a single label. If the target scene tag is not included in the image to be detected and only includes the target subject tag, the electronic device may use the target subject tag as the image tag, and at this time, the image tag of the image to be detected is a single tag. If the target scene label is not included in the image to be detected, and only the target subject label is included, the electronic device may obtain multiple subject labels obtained by performing target detection on the image to be detected, obtain the subject area corresponding to each subject label, and the electronic device may compare each subject. The area of the area determines the image label based on the area of the body area. The electronic device can sort the body tags according to the area of the body area, and then select the body tags corresponding to the serial number as the image tags according to the number of output image tags. For example, if the number of image tags output by the electronic device is two, the electronic device may select a body tag with the largest body area area and the second largest body area area as the image label.
本申请实施例中方法,电子设备可选取目标主体标签或目标场景标签作为上述待检测图像的图像标签,有利于快速、准确的确定图像标签。In the method in the embodiment of the present application, the electronic device may select a target subject label or a target scene label as the image label of the image to be detected, which is helpful for quickly and accurately determining the image label.
在一个实施例中,根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:若获取到的目标场景标签与目标主体标签不相同,获取目标主体标签对应的目标主体区域与待检测图像的面积比;根据面积比确定图像标签。In one embodiment, determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the obtained target scene tag is different from the target subject tag, obtaining a target subject region corresponding to the target subject tag and the target subject tag Detect the area ratio of the image; determine the image label based on the area ratio.
当电子设备对上述待检测图像进行场景识别获取到目标场景标签,对上述待检测图像进行目标检测获取到目标主体标签后,从上述目标主体标签和目标场景标签中选取一个标签作为图像标签。其中,当目标场景标签与目标主体标签相同时,则直接获取上述目标主体标签作为图像标签。例如,当目标主体标签与目标场景标签均为“蓝天”时,电子设备输出图像标签为“蓝天”。当目标主体标签与目标场景标签不相同时,电子设备可获取上述目标主体标签对应的目标主体区域,根据目标主体区域的面积与待检测图像的面积比确定待检测图像的图像标签。After the electronic device performs scene recognition on the to-be-detected image to obtain a target scene tag, and performs target detection on the to-be-detected image to obtain a target subject tag, a tag is selected as the image tag from the target subject tag and the target scene tag. When the target scene label is the same as the target subject label, the target subject label is directly obtained as the image label. For example, when the target subject label and the target scene label are both "blue sky", the electronic device outputs an image label as "blue sky". When the target subject label is different from the target scene label, the electronic device may obtain a target subject area corresponding to the target subject label, and determine an image tag of the image to be detected according to an area ratio of the area of the target subject area to an area of the image to be detected.
在一个实施例中,根据面积比确定待检测图像的图像标签包括:若面积比低于第一阈值,将目标场景标签作为图像标签;若面积比不低于第一阈值,获取目标场景标签的第一置信度和目标主体标签的第二置信度;根据第一置信度和第二置信度确定图像标签。In one embodiment, determining the image label of the image to be detected according to the area ratio includes: if the area ratio is lower than the first threshold, using the target scene label as the image label; if the area ratio is not lower than the first threshold, obtaining the target scene label's The first confidence level and the second confidence level of the target subject label; determine the image label according to the first confidence level and the second confidence level.
当上述目标主体区域与待检测图像的面积比低于第一阈值时,可判定上述目标主体区域在待检测图像中面积较小,电子设备可选取目标场景标签作为上述图像标签。在待检测图像中主体区域较小时,电子设备对上述主体区域进行目标检测检测出的结果准确度较低,因此在待检测图像中主体区域较小时,电子设备可选取图像分类获取的目标场景标签 作为图像标签。当上述目标主体区域与待检测图像的面积比不低于第一阈值时,电子设备可分别获取上述目标场景标签的第一置信度和上述目标主体标签的第二置信度,根据上述第一置信度和第二置信度确定图像标签,其中,电子设备可选取上述第一置信度和第二置信度中置信度高的标签作为图像标签。例如,电子设备对待检测图像输出的目标场景标签为“沙滩”置信度90%,目标主体标签为“猫”置信度95%,电子设备检测到目标主体标签对应的目标主体区域与待检测图像的面积比大于1/3,则电子设备选取置信度高的目标主体标签“猫”作为电子设备的图像标签。上述第一阈值可为用户设定值或电子设备设定的值,例如1/2或1/3。When the area ratio of the target subject area to the image to be detected is lower than the first threshold, it may be determined that the area of the target subject area in the image to be detected is small, and the electronic device may select a target scene tag as the image tag. When the subject area in the image to be detected is small, the electronic device performs a target detection on the subject area and the detection accuracy is low. Therefore, when the subject area in the image to be detected is small, the electronic device can select a target scene label obtained by image classification. As image tag. When the area ratio of the target subject area to the image to be detected is not lower than the first threshold, the electronic device may obtain the first confidence level of the target scene label and the second confidence level of the target subject label, and according to the first confidence level, The image tag is determined by the degree of confidence and the second degree of confidence. The electronic device may select a tag with a high degree of confidence among the first and second degrees of confidence as the image tag. For example, the target scene label output of the electronic device to be detected by the electronic device has a “beach” confidence of 90%, the target subject label has a “cat” confidence of 95%, and the electronic device detects that the target subject area corresponding to the target subject label and the image to be detected If the area ratio is greater than 1/3, the electronic device selects the target subject tag "cat" with high confidence as the image tag of the electronic device. The first threshold may be a value set by a user or a value set by an electronic device, for example, 1/2 or 1/3.
本申请实施例中方法,当电子设备获取的目标主体标签与目标场景标签不相同时,可根据目标主体区域的面积确定图像标签,对待检测图像输出的图像标签更加准确。In the method in the embodiment of the present application, when the target subject label obtained by the electronic device is different from the target scene label, the image label may be determined according to the area of the target subject area, and the image label output by the image to be detected is more accurate.
在一个实施例中,上述方法还包括:In an embodiment, the method further includes:
操作112,获取目标主体标签对应的目标主体区域。Operation 112: Obtain a target subject region corresponding to the target subject tag.
操作114,获取目标主体标签对应的图像处理策略。Operation 114: Acquire an image processing strategy corresponding to the target subject label.
操作116,根据图像处理策略对目标主体区域进行对应的图像处理。Operation 116: Perform corresponding image processing on the target subject area according to the image processing strategy.
电子设备可对上述待检测图像进行局部图像处理。可选地,当电子设备获取到待检测图像的目标主体标签后,可识别上述待检测图像中目标主体标签对应的目标主体区域。电子设备还可获取上述目标主体标签对应的图像处理策略,根据上述图像处理策略对上述待检测图像中目标主体区域进行图像处理。例如,当目标主体区域为“人像”时,电子设备可对“人像”进行美颜处理;当目标主体区域为“美食”时,电子设备可对“美食”进行提高饱和度处理;当目标主体区域为“文本”时,电子设备可对“文本”进行锐化、校准处理。上述主体标签对应的图像处理策略可预存于电子设备中,也可存储于服务器中。电子设备可直接获取预存的与目标主体标签对应的图像处理策略或从服务器查找上述目标主体标签对应的图像处理策略。The electronic device may perform partial image processing on the image to be detected. Optionally, after the electronic device obtains the target subject label of the image to be detected, the electronic device may identify a target subject region corresponding to the target subject label in the image to be detected. The electronic device may also obtain an image processing strategy corresponding to the target subject tag, and perform image processing on the target subject area in the image to be detected according to the image processing strategy. For example, when the target subject area is "Portrait", the electronic device may perform beauty treatment on the "Portrait"; when the target subject area is "Gourmet", the electronic device may perform saturation enhancement processing on the "Gourmet"; when the target subject is When the area is "text", the electronic device can sharpen and calibrate the "text". The image processing strategy corresponding to the above body tag may be pre-stored in the electronic device or stored in the server. The electronic device can directly obtain a pre-stored image processing strategy corresponding to the target subject tag or search the server for an image processing strategy corresponding to the target subject tag.
本申请实施例中方法,电子设备可对待检测图像中目标主体区域进行图像处理,不仅可实现对图像的局部处理,还可实现根据图像处理策略对目标主体区域进行处理,图像处理方式更加智能化。In the method of the embodiment of the present application, the electronic device can perform image processing on the target subject area in the image to be detected, which can not only realize local processing of the image, but also process the target subject area according to the image processing strategy, and the image processing method is more intelligent. .
在一个实施例中,上述方法还包括:In an embodiment, the method further includes:
操作118,获取同一图像标签下各张图像的浏览次数。In operation 118, the number of browsing times of each image under the same image label is obtained.
操作120,根据浏览次数确定各张图像的展示顺序。Operation 120: Determine a display order of each image according to the number of views.
电子设备可根据图像标签对图像进行分组,将同一图像标签对应的图像分为一组。电子设备可在电子设备界面展示各个分组对应的图像,方便用户根据图像标签直接查看图像。其中,电子设备还可统计同一图像标签下各张图像的浏览次数,上述浏览次数可为累计浏览次数也可为在一段时间内统计的浏览次数。电子设备可根据各张图像的浏览次数确定上述各张图像的展示顺序。可选地,电子设备可按照浏览次数由高到低的顺序依次展示各张图像;电子设备也可按照浏览次数由低到高的顺序依次展示各张图像。The electronic device can group the images according to the image tags, and group the images corresponding to the same image tag into a group. The electronic device can display the images corresponding to each group on the electronic device interface, so that users can directly view the images according to the image tags. The electronic device may also count the browsing times of each image under the same image tag. The above browsing times may be the cumulative browsing times or the browsing times counted over a period of time. The electronic device may determine the display order of the foregoing images according to the number of views of each image. Optionally, the electronic device may sequentially display the images in order of the number of browsing times from high to low; the electronic device may also sequentially display the images in order of the number of browsing times from low to high.
本申请实施例中方法,通过统计同一标签下各张图像的浏览次数,可确定电子设备对各张图像的展示顺序,展示图像的方法更加智能化。In the method of the embodiment of the present application, by counting the number of views of each image under the same label, the display order of each image by the electronic device can be determined, and the method of displaying images is more intelligent.
在一个实施例中,一种图像处理方法,包括:In one embodiment, an image processing method includes:
(1)获取待检测图像。(1) Acquire an image to be detected.
(2)对待检测图像进行场景识别,获取待检测图像的目标场景标签。(2) Perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected.
(3)对待检测图像进行目标检测,获取待检测图像的目标主体标签。(3) Perform target detection on the image to be detected, and obtain a target subject label of the image to be detected.
(4)根据目标场景标签和/或目标主体标签确定待检测图像的图像标签。(4) Determine the image label of the image to be detected according to the target scene label and / or the target subject label.
(5)根据图像标签对待检测图像进行图像处理。(5) Perform image processing on the image to be detected according to the image label.
在一个实施例中,对待检测图像进行场景识别,获取待检测图像的目标场景标签包括:对待检测图像进行场景识别,获取待检测图像对应的多个场景标签以及各个场景标签的置信度;根据置信度确定目标场景标签。In one embodiment, performing scene recognition on the image to be detected and obtaining a target scene label of the image to be detected includes: performing scene recognition on the image to be detected, obtaining multiple scene labels corresponding to the image to be detected and the confidence of each scene label; according to the confidence The degree determines the target scene label.
在一个实施例中,根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:若无法获取到目标场景标签,将目标主体标签作为图像标签;若无法获取到目标主体标签,将目标场景标签作为图像标签。In one embodiment, determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the target scene tag cannot be obtained, using the target subject tag as the image tag; if the target subject tag cannot be obtained, changing The target scene label is used as the image label.
在一个实施例中,根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:若获取到的目标场景标签与目标主体标签不相同,获取目标主体标签对应的目标主体区域与待检测图像的面积比;根据面积比确定图像标签。In one embodiment, determining the image tag of the image to be detected according to the target scene tag and / or the target subject tag includes: if the obtained target scene tag is different from the target subject tag, obtaining a target subject region corresponding to the target subject tag and the target subject tag Detect the area ratio of the image; determine the image label based on the area ratio.
在一个实施例中,根据面积比确定待检测图像的图像标签包括:若面积比低于第一阈值,将目标场景标签作为图像标签;若面积比不低于第一阈值,获取目标场景标签的第一 置信度和目标主体标签的第二置信度;根据第一置信度和第二置信度确定图像标签。In one embodiment, determining the image label of the image to be detected according to the area ratio includes: if the area ratio is lower than the first threshold, using the target scene label as the image label; if the area ratio is not lower than the first threshold, obtaining the target scene label's The first confidence level and the second confidence level of the target subject label; determine the image label according to the first confidence level and the second confidence level.
在一个实施例中,上述方法还包括:获取目标主体标签对应的目标主体区域;获取目标主体标签对应的图像处理策略;根据图像处理策略对目标主体区域进行对应的图像处理。In one embodiment, the method further includes: acquiring a target subject region corresponding to the target subject tag; acquiring an image processing strategy corresponding to the target subject tag; and performing corresponding image processing on the target subject region according to the image processing strategy.
在一个实施例中,上述方法还包括:获取同一图像标签下各张图像的浏览次数;根据浏览次数确定各张图像的展示顺序。In one embodiment, the above method further includes: obtaining the number of views of each image under the same image tag; and determining the display order of each image according to the number of views.
应该理解的是,虽然上述流程图中的各个操作按照箭头的指示依次显示,但是这些操作并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些操作的执行并没有严格的顺序限制,这些操作可以以其它的顺序执行。而且,上述流程图中的至少一部分操作可以包括多个子操作或者多个阶段,这些子操作或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子操作或者阶段的执行顺序也不必然是依次进行,而是可以与其它操作或者其它操作的子操作或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the operations in the above flowchart are sequentially displayed in accordance with the directions of the arrows, these operations are not necessarily performed 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. In addition, at least a part of the operations in the above flowchart 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 different times. The execution order is not necessarily sequential, but may be performed in turn or alternately with at least a part of another operation or a sub-operation or stage of another operation.
图4为一个实施例中图像处理装置的结构框图。如图4所示,一种图像处理装置,包括:FIG. 4 is a structural block diagram of an image processing apparatus in an embodiment. As shown in FIG. 4, an image processing apparatus includes:
第一获取模块402,用于获取待检测图像。The first acquiring module 402 is configured to acquire an image to be detected.
识别模块404,用于对待检测图像进行场景识别,获取待检测图像的目标场景标签。The recognition module 404 is configured to perform scene recognition on an image to be detected, and obtain a target scene label of the image to be detected.
检测模块406,用于对待检测图像进行目标检测,获取待检测图像的目标主体标签。The detection module 406 is configured to perform target detection on the image to be detected, and obtain a target subject label of the image to be detected.
确定模块408,用于根据目标场景标签和/或目标主体标签确定待检测图像的图像标签。A determining module 408 is configured to determine an image label of an image to be detected according to a target scene label and / or a target subject label.
处理模块410,用于根据图像标签对待检测图像进行图像处理。The processing module 410 is configured to perform image processing on an image to be detected according to an image tag.
在一个实施例中,识别模块404对待检测图像进行场景识别,获取待检测图像的目标场景标签包括:对待检测图像进行场景识别,获取待检测图像对应的多个场景标签以及各个场景标签的置信度;根据置信度确定目标场景标签。In one embodiment, the recognition module 404 performs scene recognition on the image to be detected, and obtains target scene tags of the image to be detected includes: scene recognition on the image to be detected, obtaining multiple scene tags corresponding to the image to be detected, and confidence of each scene tag. ; Determine the target scene label based on the confidence.
在一个实施例中,确定模块408根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:若无法获取到目标场景标签,将目标主体标签作为图像标签;若无法获取到目标主体标签,将目标场景标签作为图像标签。In one embodiment, the determining module 408 determines the image tag of the image to be detected according to the target scene tag and / or the target subject tag, including: if the target scene tag cannot be obtained, using the target subject tag as the image tag; if the target subject cannot be obtained Label, using the target scene label as the image label.
在一个实施例中,确定模块408根据目标场景标签和/或目标主体标签确定待检测图像的图像标签包括:若获取到的目标场景标签与目标主体标签不相同,获取目标主体标签对应的目标主体区域与待检测图像的面积比;根据面积比确定图像标签。In one embodiment, the determining module 408 determines the image tag of the image to be detected according to the target scene tag and / or the target subject tag, including: if the obtained target scene tag is different from the target subject tag, obtaining a target subject corresponding to the target subject tag The area ratio of the area to the image to be detected; the image label is determined according to the area ratio.
在一个实施例中,确定模块408根据面积比确定待检测图像的图像标签包括:若面积比低于第一阈值,将目标场景标签作为图像标签;若面积比不低于第一阈值,获取目标场景标签的第一置信度和目标主体标签的第二置信度;根据第一置信度和第二置信度确定图像标签。In one embodiment, the determining module 408 determines the image label of the image to be detected according to the area ratio. If the area ratio is lower than the first threshold, the target scene label is used as the image label. If the area ratio is not lower than the first threshold, the target is obtained. The first confidence level of the scene label and the second confidence level of the target subject label; the image label is determined according to the first confidence level and the second confidence level.
图5为另一个实施例中图像处理装置的结构框图。如图5所示,一种图像处理装置,包括:第一获取模块502、识别模块504、检测模块506、确定模块508、处理模块510、第二获取模块512。其中,第一获取模块502、识别模块504、检测模块506、确定模块508、处理模块510与图4中对应的模块功能相同。FIG. 5 is a structural block diagram of an image processing apparatus in another embodiment. As shown in FIG. 5, an image processing apparatus includes: a first acquisition module 502, an identification module 504, a detection module 506, a determination module 508, a processing module 510, and a second acquisition module 512. The first acquisition module 502, the identification module 504, the detection module 506, the determination module 508, and the processing module 510 have the same functions as the corresponding modules in FIG. 4.
第二获取模块512,用于获取目标主体标签对应的目标主体区域;获取目标主体标签对应的图像处理策略。The second acquisition module 512 is configured to acquire a target subject region corresponding to the target subject tag; and acquire an image processing strategy corresponding to the target subject tag.
处理模块510,还用于根据图像处理策略对目标主体区域进行对应的图像处理。The processing module 510 is further configured to perform corresponding image processing on the target subject area according to the image processing strategy.
图6为另一个实施例中图像处理装置的结构框图。如图6所示,一种图像处理装置,包括:第一获取模块602、识别模块604、检测模块606、确定模块608、处理模块610、统计模块612、展示模块614。其中,第一获取模块602、识别模块604、检测模块606、确定模块608、处理模块610与图4中对应的模块功能相同。FIG. 6 is a structural block diagram of an image processing apparatus in another embodiment. As shown in FIG. 6, an image processing device includes: a first acquisition module 602, an identification module 604, a detection module 606, a determination module 608, a processing module 610, a statistics module 612, and a display module 614. The first acquisition module 602, the identification module 604, the detection module 606, the determination module 608, and the processing module 610 have the same functions as the corresponding modules in FIG. 4.
统计模块612,用于获取同一图像标签下各张图像的浏览次数。The statistics module 612 is configured to obtain the browsing times of each image under the same image label.
展示模块614,用于根据浏览次数确定各张图像的展示顺序。A display module 614 is configured to determine a display order of each image according to the number of views.
上述图像处理装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像处理装置按照需要划分为不同的模块,以完成上述图像处理装置的全部或部分功能。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.
关于图像处理装置的具体限定可以参见上文中对于图像处理方法的限定,在此不再赘述。上述图像处理装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitation of the image processing device, refer to the foregoing limitation on the image processing method, and details are not described herein again. Each module in the image processing apparatus may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
本申请实施例中提供的图像处理装置中的各个模块的实现可为计算机程序的形式。该 计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述图像处理方法的操作。The implementation of each module in the image processing apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program module constituted by the computer program can be stored in the memory of the terminal or server. When the computer program is executed by a processor, the operations of the image processing method described in the embodiments of the present application are implemented.
图7为一个实施例中电子设备的内部结构示意图。如图7所示,该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器用于存储数据、程序等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于电子设备的图像处理方法。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种图像处理方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。网络接口可以是以太网卡或无线网卡等,用于与外部的电子设备进行通信。该电子设备可以是手机、平板电脑或者个人数字助理或穿戴式设备等。FIG. 7 is a schematic diagram of an internal structure of an electronic device in an embodiment. As shown in FIG. 7, the electronic device includes a processor, a memory, and a network interface connected through a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory is used to store data, programs, and the like. At least one computer program is stored on the memory, and the computer program can be executed by a processor to implement the image processing method applicable to the electronic device provided in the embodiments of the present application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement an image processing method provided by each of the following embodiments. The internal memory provides a cached operating environment for operating system computer programs in a non-volatile storage medium. The network interface may be an Ethernet card or a wireless network card, and is used to communicate with external electronic devices. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行本申请实施例中所描述图像处理方法的操作。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 execute the image processing methods described in the embodiments of the present application operating.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行本申请实施例中所描述图像处理方法的操作。The embodiment of the present application further provides a computer program product containing instructions, which when executed on a computer, causes the computer to perform operations of the image processing method described in the embodiment of the present application.
本申请实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图8为一个实施例中图像处理电路的示意图。如图8所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。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. 8 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 8, for ease of description, only aspects of the image processing technology related to the embodiments of the present application are shown.
如图8所示,图像处理电路包括第一ISP处理器830、第二ISP处理器840和控制逻辑器850。第一摄像头810包括一个或多个第一透镜812和第一图像传感器814。第一图像传感器814可包括色彩滤镜阵列(如Bayer滤镜),第一图像传感器814可获取用第一图像传感器814的每个成像像素捕捉的光强度和波长信息,并提供可由第一ISP处理器830处理的一组图像数据。第二摄像头820包括一个或多个第二透镜822和第二图像传感器824。第二图像传感器824可包括色彩滤镜阵列(如Bayer滤镜),第二图像传感器824可获取用第二图像传感器 824的每个成像像素捕捉的光强度和波长信息,并提供可由第二ISP处理器840处理的一组图像数据。As shown in FIG. 8, the image processing circuit includes a first ISP processor 830, a second ISP processor 840, and a control logic 850. The first camera 810 includes one or more first lenses 812 and a first image sensor 814. The first image sensor 814 may include a color filter array (such as a Bayer filter). The first image sensor 814 may obtain light intensity and wavelength information captured by each imaging pixel of the first image sensor 814, and provide information that may be captured by the first ISP. A set of image data processed by the processor 830. The second camera 820 includes one or more second lenses 822 and a second image sensor 824. The second image sensor 824 may include a color filter array (such as a Bayer filter). The second image sensor 824 may obtain light intensity and wavelength information captured by each imaging pixel of the second image sensor 824, and provide information that may be captured by the second ISP. A set of image data processed by the processor 840.
第一摄像头810采集的第一图像传输给第一ISP处理器830进行处理,第一ISP处理器830处理第一图像后,可将第一图像的统计数据(如图像的亮度、图像的反差值、图像的颜色等)发送给控制逻辑器850,控制逻辑器850可根据统计数据确定第一摄像头810的控制参数,从而第一摄像头810可根据控制参数进行自动对焦、自动曝光等操作。第一图像经过第一ISP处理器830进行处理后可存储至图像存储器860中,第一ISP处理器830也可以读取图像存储器860中存储的图像以对进行处理。另外,第一图像经过ISP处理器830进行处理后可直接发送至显示器870进行显示,显示器870也可以读取图像存储器860中的图像以进行显示。The first image collected by the first camera 810 is transmitted to the first ISP processor 830 for processing. After the first ISP processor 830 processes the first image, the first image statistical data (such as the brightness of the image and the contrast value of the image) can be processed. , Image color, etc.) to the control logic 850. The control logic 850 can determine the control parameters of the first camera 810 according to the statistical data, so that the first camera 810 can perform operations such as autofocus and automatic exposure according to the control parameters. The first image may be stored in the image memory 860 after being processed by the first ISP processor 830, and the first ISP processor 830 may also read the image stored in the image memory 860 for processing. In addition, the first image may be directly sent to the display 870 for display after being processed by the ISP processor 830, and the display 870 may also read the image in the image memory 860 for display.
其中,第一ISP处理器830按多种格式逐个像素地处理图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,第一ISP处理器830可对图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The first ISP processor 830 processes the 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 first ISP processor 830 may perform one or more image processing operations on the 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.
图像存储器860可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。The image memory 860 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.
当接收到来自第一图像传感器814接口时,第一ISP处理器830可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器860,以便在被显示之前进行另外的处理。第一ISP处理器830从图像存储器860接收处理数据,并对处理数据进行RGB和YCbCr颜色空间中的图像数据处理。第一ISP处理器830处理后的图像数据可输出给显示器870,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,第一ISP处理器830的输出还可发送给图像存储器860,且显示器870可从图像存储器860读取图像数据。在一个实施例中,图像存储器860可被配置为实现一个或多个帧缓冲器。When receiving the interface from the first image sensor 814, the first ISP processor 830 may perform one or more image processing operations, such as time-domain filtering. The processed image data may be sent to the image memory 860 for further processing before being displayed. The first ISP processor 830 receives the processing data from the image memory 860, and performs the image data processing in the RGB and YCbCr color spaces on the processing data. The image data processed by the first ISP processor 830 may be output to the display 870 for viewing by a user and / or further processed by a graphics engine or a GPU (Graphics Processing Unit). In addition, the output of the first ISP processor 830 may also be sent to the image memory 860, and the display 870 may read image data from the image memory 860. In one embodiment, the image memory 860 may be configured to implement one or more frame buffers.
第一ISP处理器830确定的统计数据可发送给控制逻辑器850。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、第一透镜812阴影校正等第一图像传感器814统计信息。控制逻辑器850可包括执行一个或多个例程(如固件)的处理器 和/或微控制器,一个或多个例程可根据接收的统计数据,确定第一摄像头810的控制参数及第一ISP处理器830的控制参数。例如,第一摄像头810的控制参数可包括增益、曝光控制的积分时间、防抖参数、闪光控制参数、第一透镜812控制参数(例如聚焦或变焦用焦距)、或这些参数的组合等。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及第一透镜812阴影校正参数。The statistical data determined by the first ISP processor 830 may be sent to the control logic 850. For example, the statistical data may include statistical information of the first image sensor 814 such as automatic exposure, automatic white balance, automatic focus, flicker detection, black level compensation, and first lens 812 shading correction. The control logic 850 may include a processor and / or a microcontroller that executes one or more routines (such as firmware), and the one or more routines may determine the control parameters and the first parameters of the first camera 810 according to the received statistical data. A control parameter of an ISP processor 830. For example, the control parameters of the first camera 810 may include gain, integration time of exposure control, image stabilization parameters, flash control parameters, control parameters of the first lens 812 (for example, focal length for focusing or zooming), or a combination of these parameters. The ISP control parameters may include a gain level and a color correction matrix for automatic white balance and color adjustment (eg, during RGB processing), and a first lens 812 shading correction parameter.
同样地,第二摄像头820采集的第二图像传输给第二ISP处理器840进行处理,第二ISP处理器840处理第一图像后,可将第二图像的统计数据(如图像的亮度、图像的反差值、图像的颜色等)发送给控制逻辑器850,控制逻辑器850可根据统计数据确定第二摄像头820的控制参数,从而第二摄像头820可根据控制参数进行自动对焦、自动曝光等操作。第二图像经过第二ISP处理器840进行处理后可存储至图像存储器860中,第二ISP处理器840也可以读取图像存储器860中存储的图像以对进行处理。另外,第二图像经过ISP处理器840进行处理后可直接发送至显示器870进行显示,显示器870也可以读取图像存储器860中的图像以进行显示。第二摄像头820和第二ISP处理器840也可以实现如第一摄像头810和第一ISP处理器830所描述的处理操作。电子设备根据上述图像处理技术可实现本申请实施例中所描述图像处理方法。Similarly, the second image collected by the second camera 820 is transmitted to the second ISP processor 840 for processing. After the second ISP processor 840 processes the first image, statistical data of the second image (such as image brightness, image (The contrast value of the image, the color of the image, etc.) are sent to the control logic 850. The control logic 850 can determine the control parameters of the second camera 820 according to the statistical data, so that the second camera 820 can perform operations such as autofocus and automatic exposure according to the control parameters . The second image may be stored in the image memory 860 after being processed by the second ISP processor 840, and the second ISP processor 840 may also read the image stored in the image memory 860 for processing. In addition, the second image may be directly sent to the display 870 for display after being processed by the ISP processor 840, and the display 870 may also read the image in the image memory 860 for display. The second camera 820 and the second ISP processor 840 may also implement processing operations as described by the first camera 810 and the first ISP processor 830. The electronic device can implement the image processing method described in the embodiment of the present application according to the image processing technology.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(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. 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 embodiments only express several implementation manners of the present application, and their descriptions are more specific and detailed, but they cannot be understood 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 (16)

  1. 一种图像处理方法,其特征在于,包括:An image processing method, comprising:
    获取待检测图像;Obtaining images to be detected;
    对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签;Performing scene recognition on the image to be detected, and obtaining a target scene label of the image to be detected;
    对所述待检测图像进行目标检测,获取所述待检测图像的目标主体标签;Performing target detection on the image to be detected, and obtaining a target subject label of the image to be detected;
    根据所述目标场景标签和目标主体标签中至少一种确定所述待检测图像的图像标签;及Determining an image label of the image to be detected according to at least one of the target scene label and the target subject label; and
    根据所述图像标签对所述待检测图像进行图像处理。Performing image processing on the image to be detected according to the image label.
  2. 根据权利要求1所述的方法,其特征在于,所述对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签包括:The method according to claim 1, wherein the performing scene recognition on the image to be detected and obtaining a target scene label of the image to be detected comprises:
    对所述待检测图像进行场景识别,获取所述待检测图像对应的多个场景标签以及各个场景标签的置信度;及Performing scene recognition on the image to be detected, and obtaining a plurality of scene tags corresponding to the image to be detected and the confidence of each scene tag; and
    根据所述置信度确定所述目标场景标签。Determining the target scene label according to the confidence.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述目标场景标签和目标主体标签中至少一种确定所述待检测图像的图像标签包括:The method according to claim 1, wherein determining the image tag of the image to be detected according to at least one of the target scene tag and the target subject tag comprises:
    若无法获取到所述目标场景标签,将所述目标主体标签作为所述图像标签;及If the target scene tag cannot be obtained, use the target subject tag as the image tag; and
    若无法获取到所述目标主体标签,将所述目标场景标签作为所述图像标签。If the target subject label cannot be obtained, the target scene label is used as the image label.
  4. 根据权利要求1所述的方法,其特征在于,所述根据所述目标场景标签和目标主体标签中至少一种确定所述待检测图像的图像标签包括:The method according to claim 1, wherein determining the image tag of the image to be detected according to at least one of the target scene tag and the target subject tag comprises:
    若获取到的所述目标场景标签与所述目标主体标签不相同,获取所述目标主体标签对应的目标主体区域与所述待检测图像的面积比;及If the acquired target scene label is different from the target subject label, obtaining an area ratio of a target subject area corresponding to the target subject label to the image to be detected; and
    根据所述面积比确定所述图像标签。Determining the image label according to the area ratio.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述面积比确定所述待检测图像的图像标签包括:The method according to claim 4, wherein the determining an image label of the image to be detected according to the area ratio comprises:
    若所述面积比低于第一阈值,将所述目标场景标签作为所述图像标签;If the area ratio is lower than a first threshold, using the target scene label as the image label;
    若所述面积比不低于第一阈值,获取所述目标场景标签的第一置信度和所述目标主体标签的第二置信度;及If the area ratio is not lower than a first threshold, obtaining a first confidence level of the target scene label and a second confidence level of the target subject label; and
    根据所述第一置信度和所述第二置信度确定所述图像标签。Determining the image label according to the first confidence level and the second confidence level.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    获取所述目标主体标签对应的目标主体区域;Obtaining a target subject region corresponding to the target subject tag;
    获取所述目标主体标签对应的图像处理策略;及Acquiring an image processing strategy corresponding to the target subject tag; and
    根据所述图像处理策略对所述目标主体区域进行对应的图像处理。Corresponding image processing is performed on the target subject area according to the image processing strategy.
  7. 根据权利要求1至5中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    获取同一图像标签下各张图像的浏览次数;及Get the number of views of each image under the same image tag; and
    根据所述浏览次数确定各张图像的展示顺序。The display order of each image is determined according to the number of views.
  8. 一种图像处理装置,其特征在于,包括:An image processing device, comprising:
    第一获取模块,用于获取待检测图像;A first acquisition module, configured to acquire an image to be detected;
    识别模块,用于对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签;A recognition module, configured to perform scene recognition on the image to be detected, and obtain a target scene label of the image to be detected;
    检测模块,用于对所述待检测图像进行目标检测,获取所述待检测图像的目标主体标签;A detection module, configured to perform target detection on the image to be detected, and obtain a target subject label of the image to be detected;
    确定模块,用于根据所述目标场景标签和/或目标主体标签确定所述待检测图像的图像标签;及A determining module, configured to determine an image label of the image to be detected according to the target scene label and / or the target subject label; and
    处理模块,用于根据所述图像标签对所述待检测图像进行图像处理。A processing module, configured to perform image processing on the image to be detected according to the image label.
  9. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行以下操作:An electronic device includes a memory and a processor. The memory stores a computer program. When the computer program is executed by the processor, the processor causes the processor to perform the following operations:
    获取待检测图像;Obtaining images to be detected;
    对所述待检测图像进行场景识别,获取所述待检测图像的目标场景标签;Performing scene recognition on the image to be detected, and obtaining a target scene label of the image to be detected;
    对所述待检测图像进行目标检测,获取所述待检测图像的目标主体标签;Performing target detection on the image to be detected, and obtaining a target subject label of the image to be detected;
    根据所述目标场景标签和目标主体标签中至少一种确定所述待检测图像的图像标签;及Determining an image label of the image to be detected according to at least one of the target scene label and the target subject label; and
    根据所述图像标签对所述待检测图像进行图像处理。Performing image processing on the image to be detected according to the image label.
  10. 根据权利要求9所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 9, wherein the processor is further configured to execute:
    对所述待检测图像进行场景识别,获取所述待检测图像对应的多个场景标签以及各个 场景标签的置信度;及Performing scene recognition on the image to be detected, and obtaining a plurality of scene tags corresponding to the image to be detected and the confidence of each scene tag; and
    根据所述置信度确定所述目标场景标签。Determining the target scene label according to the confidence.
  11. 根据权利要求9所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 9, wherein the processor is further configured to execute:
    若无法获取到所述目标场景标签,将所述目标主体标签作为所述图像标签;及If the target scene tag cannot be obtained, use the target subject tag as the image tag; and
    若无法获取到所述目标主体标签,将所述目标场景标签作为所述图像标签。If the target subject label cannot be obtained, the target scene label is used as the image label.
  12. 根据权利要求9所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 9, wherein the processor is further configured to execute:
    若获取到的所述目标场景标签与所述目标主体标签不相同,获取所述目标主体标签对应的目标主体区域与所述待检测图像的面积比;及If the obtained target scene label is different from the target subject label, obtaining an area ratio of a target subject area corresponding to the target subject label to the image to be detected;
    根据所述面积比确定所述图像标签。Determining the image label according to the area ratio.
  13. 根据权利要求12所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to claim 12, wherein the processor is further configured to execute:
    若所述面积比低于第一阈值,将所述目标场景标签作为所述图像标签;If the area ratio is lower than a first threshold, using the target scene label as the image label;
    若所述面积比不低于第一阈值,获取所述目标场景标签的第一置信度和所述目标主体标签的第二置信度;及If the area ratio is not lower than a first threshold, obtaining a first confidence level of the target scene label and a second confidence level of the target subject label; and
    根据所述第一置信度和所述第二置信度确定所述图像标签。Determining the image label according to the first confidence level and the second confidence level.
  14. 根据权利要求9至13中任一项所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to any one of claims 9 to 13, wherein the processor is further configured to execute:
    获取所述目标主体标签对应的目标主体区域;Obtaining a target subject region corresponding to the target subject tag;
    获取所述目标主体标签对应的图像处理策略;及Acquiring an image processing strategy corresponding to the target subject tag; and
    根据所述图像处理策略对所述目标主体区域进行对应的图像处理。Corresponding image processing is performed on the target subject area according to the image processing strategy.
  15. 根据权利要求9至13中任一项所述的电子设备,其特征在于,所述处理器还用于执行:The electronic device according to any one of claims 9 to 13, wherein the processor is further configured to execute:
    获取同一图像标签下各张图像的浏览次数;及Get the number of views of each image under the same image tag; and
    根据所述浏览次数确定各张图像的展示顺序。The display order of each image is determined according to the number of views.
  16. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任一项所述的方法的操作。A computer-readable storage medium having stored thereon a computer program, characterized in that, when the computer program is executed by a processor, the operations of the method according to any one of claims 1 to 7 are realized.
PCT/CN2019/089905 2018-06-08 2019-06-04 Image processing method and apparatus, electronic device, and computer-readable storage medium WO2019233392A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810589446.0 2018-06-08
CN201810589446.0A CN108846351A (en) 2018-06-08 2018-06-08 Image processing method, device, electronic equipment and computer readable storage medium

Publications (1)

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

Family

ID=64210855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/089905 WO2019233392A1 (en) 2018-06-08 2019-06-04 Image processing method and apparatus, electronic device, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN108846351A (en)
WO (1) WO2019233392A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114445711A (en) * 2022-01-29 2022-05-06 北京百度网讯科技有限公司 Image detection method, image detection device, electronic equipment and storage medium

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846351A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium
CN109685741B (en) * 2018-12-28 2020-12-11 北京旷视科技有限公司 Image processing method and device and computer storage medium
CN109685746B (en) * 2019-01-04 2021-03-05 Oppo广东移动通信有限公司 Image brightness adjusting method and device, storage medium and terminal
CN109784252A (en) * 2019-01-04 2019-05-21 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN110163810B (en) * 2019-04-08 2023-04-25 腾讯科技(深圳)有限公司 Image processing method, device and terminal
CN110490225B (en) * 2019-07-09 2022-06-28 北京迈格威科技有限公司 Scene-based image classification method, device, system and storage medium
CN110348422B (en) * 2019-07-18 2021-11-09 北京地平线机器人技术研发有限公司 Image processing method, image processing device, computer-readable storage medium and electronic equipment
CN110765525B (en) * 2019-10-18 2023-11-10 Oppo广东移动通信有限公司 Method, device, electronic equipment and medium for generating scene picture
CN110996153B (en) * 2019-12-06 2021-09-24 深圳创维-Rgb电子有限公司 Scene recognition-based sound and picture quality enhancement method and system and display
CN111027622B (en) * 2019-12-09 2023-12-08 Oppo广东移动通信有限公司 Picture label generation method, device, computer equipment and storage medium
CN111625674A (en) * 2020-06-01 2020-09-04 联想(北京)有限公司 Picture processing method and device
CN113610934B (en) * 2021-08-10 2023-06-27 平安科技(深圳)有限公司 Image brightness adjustment method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169944A (en) * 2012-02-09 2014-11-26 诺基亚公司 Automated notification of images showing common content
CN107657051A (en) * 2017-10-16 2018-02-02 广东欧珀移动通信有限公司 A kind of generation method of picture tag, terminal device and storage medium
CN107835364A (en) * 2017-10-30 2018-03-23 维沃移动通信有限公司 One kind is taken pictures householder method and mobile terminal
CN108846351A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103617432B (en) * 2013-11-12 2017-10-03 华为技术有限公司 A kind of scene recognition method and device
CN103810504B (en) * 2014-01-14 2017-03-22 三星电子(中国)研发中心 Image processing method and device
CN106469162A (en) * 2015-08-18 2017-03-01 中兴通讯股份有限公司 A kind of picture sort method and corresponding picture storage display device
CN107886104A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 A kind of mask method of image
CN107481327B (en) * 2017-09-08 2019-03-15 腾讯科技(深圳)有限公司 About the processing method of augmented reality scene, device, terminal device and system
CN107704884B (en) * 2017-10-16 2022-01-07 Oppo广东移动通信有限公司 Image tag processing method, image tag processing device and electronic terminal
CN107993191B (en) * 2017-11-30 2023-03-21 腾讯科技(深圳)有限公司 Image processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104169944A (en) * 2012-02-09 2014-11-26 诺基亚公司 Automated notification of images showing common content
CN107657051A (en) * 2017-10-16 2018-02-02 广东欧珀移动通信有限公司 A kind of generation method of picture tag, terminal device and storage medium
CN107835364A (en) * 2017-10-30 2018-03-23 维沃移动通信有限公司 One kind is taken pictures householder method and mobile terminal
CN108846351A (en) * 2018-06-08 2018-11-20 Oppo广东移动通信有限公司 Image processing method, device, electronic equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114445711A (en) * 2022-01-29 2022-05-06 北京百度网讯科技有限公司 Image detection method, image detection device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN108846351A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
WO2019233392A1 (en) Image processing method and apparatus, electronic device, and computer-readable storage medium
WO2020001197A1 (en) Image processing method, electronic device and computer readable storage medium
WO2019233394A1 (en) Image processing method and apparatus, storage medium and electronic device
WO2019233393A1 (en) Image processing method and apparatus, storage medium, and electronic device
WO2020259179A1 (en) Focusing method, electronic device, and computer readable storage medium
WO2019233263A1 (en) Method for video processing, electronic device and computer-readable storage medium
CN108764370B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
US20200412940A1 (en) Method and device for image processing, method for training object detection model
CN108921161B (en) Model training method and device, electronic equipment and computer readable storage medium
US11233933B2 (en) Method and device for processing image, and mobile terminal
WO2019233266A1 (en) Image processing method, computer readable storage medium and electronic device
WO2019237887A1 (en) Image processing method, electronic device, and computer readable storage medium
CN108961302B (en) Image processing method, image processing device, mobile terminal and computer readable storage medium
CN108960232A (en) Model training method, device, electronic equipment and computer readable storage medium
WO2019233271A1 (en) Image processing method, computer readable storage medium and electronic device
CN110580428A (en) image processing method, image processing device, computer-readable storage medium and electronic equipment
WO2020001196A1 (en) Image processing method, electronic device, and computer readable storage medium
CN108848306B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109712177B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
WO2019233260A1 (en) Method and apparatus for pushing advertisement information, storage medium and electronic device
WO2019223513A1 (en) Image recognition method, electronic device and storage medium
CN107911625A (en) Light measuring method, device, readable storage medium storing program for executing and computer equipment
CN108804658A (en) Image processing method and device, storage medium, electronic equipment
WO2019029573A1 (en) Image blurring method, computer-readable storage medium and computer device
WO2020034776A1 (en) Image processing method and apparatus, terminal device, 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: 19815011

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

Country of ref document: EP

Kind code of ref document: A1