CN112822425A - Method and equipment for generating high dynamic range image - Google Patents

Method and equipment for generating high dynamic range image Download PDF

Info

Publication number
CN112822425A
CN112822425A CN202011623261.0A CN202011623261A CN112822425A CN 112822425 A CN112822425 A CN 112822425A CN 202011623261 A CN202011623261 A CN 202011623261A CN 112822425 A CN112822425 A CN 112822425A
Authority
CN
China
Prior art keywords
category
image information
vector
target
picture
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202011623261.0A
Other languages
Chinese (zh)
Other versions
CN112822425B (en
Inventor
陈文涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zongzhang Technology Group Co ltd
Original Assignee
Shanghai Zhangmen Science and Technology Co Ltd
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 Shanghai Zhangmen Science and Technology Co Ltd filed Critical Shanghai Zhangmen Science and Technology Co Ltd
Priority to CN202011623261.0A priority Critical patent/CN112822425B/en
Publication of CN112822425A publication Critical patent/CN112822425A/en
Application granted granted Critical
Publication of CN112822425B publication Critical patent/CN112822425B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/50Control of the SSIS exposure
    • H04N25/57Control of the dynamic range
    • H04N25/58Control of the dynamic range involving two or more exposures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/741Circuitry for compensating brightness variation in the scene by increasing the dynamic range of the image compared to the dynamic range of the electronic image sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Analysis (AREA)

Abstract

本申请的目的是提供一种用于生成高动态范围图像的方法与设备,该方法包括:获取待处理的图像信息;根据至少一个第一对象类别生成图像信息的第一目标向量;将第一目标向量输入目标向量回归模型,以输出图像信息的第二目标向量,其中,目标向量回归模型为图像信息所属的目标风格类型所对应的向量回归模型;根据每个第一对象类别在图像信息中所对应的第一对象区域的目标曝光度生成图像信息的高动态范围图像。本申请基于所述图像信息的图像特点(例如,风格类型、所述图像信息中出现的第一对象、第一对象类别)合成图像信息的高动态范围图像,使得合成的高动态范围图像符合对应的目标风格类型的像素特点,效果更加真实。

Figure 202011623261

The purpose of this application is to provide a method and device for generating a high dynamic range image, the method comprising: acquiring image information to be processed; generating a first target vector of image information according to at least one first object category; The target vector is input into the target vector regression model to output the second target vector of the image information, wherein the target vector regression model is the vector regression model corresponding to the target style type to which the image information belongs; according to each first object category in the image information The target exposure of the corresponding first object area generates a high dynamic range image of the image information. The present application synthesizes a high dynamic range image of image information based on image characteristics of the image information (eg, style type, first object appearing in the image information, first object category), so that the synthesized high dynamic range image conforms to the corresponding The pixel characteristics of the target style type, the effect is more realistic.

Figure 202011623261

Description

Method and equipment for generating high dynamic range image
Technical Field
The present application relates to the field of image processing, and more particularly, to a technique for generating a high dynamic range image.
Background
High Dynamic Range Imaging (High Dynamic Range Imaging) is a technique used to achieve a larger Dynamic Range of exposure (i.e., a larger difference in brightness) than conventional digital image techniques. The method can prevent the bright scenery from being overexposed and prevent the dark scenery from being underexposed. For example, people can be shot in a backlight environment, and both the people and the environment can be shot clearly. So that the whole picture is not too dark or too bright.
Disclosure of Invention
It is an object of the present application to provide a method and apparatus for generating a high dynamic range image.
According to an aspect of the present application, there is provided a method for generating a high dynamic range image, the method comprising:
acquiring image information to be processed, wherein the image information comprises one or more first objects, and the one or more first objects belong to at least one first object category;
generating a first target vector of the image information according to the at least one first object class;
inputting the first target vector into a target vector regression model to output a second target vector of the image information, wherein the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector comprises a target exposure of a first object region corresponding to each first object category in the at least one first object category in the image information;
generating a high dynamic range image of the image information according to the target exposure of the first object region corresponding to each first object category in the image information.
According to an aspect of the present application, there is provided an apparatus for generating a high dynamic range image, the apparatus comprising:
a one-to-one module, configured to acquire image information to be processed, where the image information includes one or more first objects, and the one or more first objects belong to at least one first object category;
a second module for generating a first target vector of the image information according to the at least one first object class;
a third module, configured to input the first target vector into a target vector regression model to output a second target vector of the image information, where the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector includes a target exposure level of a first object region corresponding to each first object category in the at least one first object category in the image information;
and the four modules are used for generating a high dynamic range image of the image information according to the target exposure of the first object region corresponding to each first object category in the image information.
According to an aspect of the present application, there is provided an apparatus for generating a high dynamic range image, wherein the apparatus comprises:
a processor; and
a memory arranged to store computer executable instructions that, when executed, cause the processor to perform the operations of any of the methods described above.
According to one aspect of the application, there is provided a computer-readable medium storing instructions that, when executed, cause a system to perform the operations of any of the methods described above.
According to an aspect of the application, a computer program product is provided, comprising a computer program which, when executed by a processor, carries out the steps of any of the methods as described above.
Compared with the prior art, the method and the device have the advantages that the first target vector of the image information is generated according to at least one first object category to which one or more first objects appearing in the image information belong, the second target vector of the image information is obtained by inputting the first target vector into a target vector regression model, and the target vector regression model is a vector regression model corresponding to the target style type to which the image information belongs. And obtaining the target exposure of the first object region corresponding to each first object category in the image information based on the output second target vector, wherein the target exposure is obtained by the first object region on the premise of the target style type of the image information. Thereby synthesizing a high dynamic range image of the image information based on the target exposure of each first object region. The target exposure of each first object area is obtained based on the image characteristics (such as style type, first object appearing in the image information and first object category) of the image information, and the high dynamic range image of the image information is synthesized based on the target exposure corresponding to each first object area, so that the synthesized high dynamic range image is in accordance with the pixel characteristics of the corresponding target style type, and the effect is more real.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 illustrates a flow diagram of a method for generating a high dynamic range image according to one embodiment of the present application;
FIG. 2 illustrates a block diagram of an apparatus for generating a high dynamic range image according to one embodiment of the present application;
FIG. 3 illustrates an exemplary system that can be used to implement the various embodiments described in this application.
The same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present application is described in further detail below with reference to the attached figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (e.g., Central Processing Units (CPUs)), input/output interfaces, network interfaces, and memory.
The Memory may include forms of volatile Memory, Random Access Memory (RAM), and/or non-volatile Memory in a computer-readable medium, such as Read Only Memory (ROM) or Flash Memory. Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, Phase-Change Memory (PCM), Programmable Random Access Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other Memory technology, Compact Disc Read-Only Memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device.
The device referred to in the present application includes, but is not limited to, a terminal, a network device, or a device formed by integrating a terminal and a network device through a network. The terminal includes, but is not limited to, any mobile electronic product, such as a smart phone, a tablet computer, etc., capable of performing human-computer interaction with a user (e.g., human-computer interaction through a touch panel), and the mobile electronic product may employ any operating system, such as an Android operating system, an iOS operating system, etc. The network Device includes an electronic Device capable of automatically performing numerical calculation and information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded Device, and the like. The network device includes but is not limited to a computer, a network host, a single network server, a plurality of network server sets or a cloud of a plurality of servers; here, the Cloud is composed of a large number of computers or web servers based on Cloud Computing (Cloud Computing), which is a kind of distributed Computing, one virtual supercomputer consisting of a collection of loosely coupled computers. Including, but not limited to, the internet, a wide area network, a metropolitan area network, a local area network, a VPN network, a wireless Ad Hoc network (Ad Hoc network), etc. Preferably, the device may also be a program running on the terminal, the network device, or a device formed by integrating the terminal and the network device, the touch terminal, or the network device and the touch terminal through a network.
Of course, those skilled in the art will appreciate that the foregoing is by way of example only, and that other existing or future devices, which may be suitable for use in the present application, are also encompassed within the scope of the present application and are hereby incorporated by reference.
In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
Here, an execution subject of the method for generating a high dynamic range image described in the present application includes, but is not limited to, a network device, a user device including a camera. Preferably, the method of the present application is explained below from the perspective of the user equipment. For convenience of explanation, the following will be collectively referred to as "an apparatus" or "an apparatus for generating a high dynamic range image".
In some embodiments, the user device includes, but is not limited to, a computing device such as a cell phone, computer, tablet, and the like. For example, when the execution subject is the user equipment, the user equipment acquires the image information to be processed through an image pickup device, and generates a high dynamic range image of the image information based on the method described in the present application. For another example, when the execution subject is the network device, the user device acquires image information and sends information such as the image information to the network device, and the network device generates a high dynamic range image of the image information based on the method described in the present application.
FIG. 1 shows a flowchart of a method for generating a high dynamic range image, the method comprising step S11, step S12, step S13, and step S14, according to an aspect of the present application. In step S11, the apparatus acquires image information to be processed, wherein the image information includes one or more first objects belonging to at least one first object category; in step S12, the device generates a first target vector of the image information according to the at least one first object class; in step S13, the apparatus inputs the first target vector into a target vector regression model to output a second target vector of the image information, wherein the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector includes a target exposure level of a first object region corresponding to each first object category in the at least one first object category in the image information; in step S14, the apparatus generates a high dynamic range image of the image information according to the target exposure level of the first object region corresponding in the image information for each first object category.
Specifically, in step S11, the apparatus acquires image information to be processed, wherein the image information includes one or more first objects belonging to at least one first object category. In some embodiments, the image information includes, but is not limited to, image information captured by a viewfinder of the user device. For example, when a user device (e.g., a mobile phone) views through a viewfinder, the image information can be acquired, so that the device can analyze and process the image information. In some embodiments, the first object includes, but is not limited to, an item (e.g., a cup, a book, a computer, a sky, etc.) appearing in the image information. In some embodiments, first objects appearing in the image information are classified to determine at least one first object class to which the one or more first objects correspond. For example, a first object appears in the image information a: the image information A comprises a kitten, a book, a computer and a sky, wherein the kitten belongs to animals, the book and the computer belong to office supplies, the sky belongs to other categories, and one or more first objects in the image information A belong to three first object categories of animals, office supplies and the like.
In step S12, the device generates a first target vector of the image information according to the at least one first object class. In some embodiments, the first target vector is generated based on the at least one first object class. In some embodiments, the first target vector comprises a plurality of first components, e.g., the first target vector is [0,1,0,1,0,0,1], wherein data such as "0", "1" in the first target vector is taken as the first component of the first target vector. For example, the image information a includes a first object: the cat, the desk, the computer, and the sky may be categorized, and the first object in the image information a may be obtained to belong to at least one first object category (e.g., animal, office supply, and other categories). The apparatus generates a corresponding first target vector (e.g., [0,1,0,1,0,0,1]) based on three first object categories of "animal, office supplies, other classes" to vectorize the image information a.
In step S13, the apparatus inputs the first target vector into a target vector regression model to output a second target vector of the image information, where the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector includes a target exposure level of a first object region corresponding to each of the at least one first object category in the image information. In some embodiments, the device includes a plurality of genre types and a vector regression model corresponding to each genre type (e.g., each genre type is mapped to its corresponding vector regression model). For example, according to the target style type to which the image information belongs, the device inputs a first target vector of the image information into a target vector regression model corresponding to the target style type to output a second target vector of the image information. In some embodiments, the style types include, but are not limited to, life style, landscape style, sports style, face close-up style, pet close-up style, and the like. In some embodiments, the target style type to which the image information belongs may be determined according to at least one first object category in the image information, for example, an object category included in each of a plurality of preset style types in a device, and the target style type to which the image information belongs may be determined according to the at least one first object category in the image information (for example, when more than half of the at least one first object category is included in the object categories included in a certain style type, the image information is determined to belong to the certain style type). In other embodiments, the target style type to which the image information belongs is obtained based on a style classification model, and for a detailed description of this embodiment, reference is made to the following embodiments, which are not repeated herein. In some embodiments, the target vector regression model is for outputting a corresponding second target vector based on the input first target vector. In some embodiments, the second target vector comprises a plurality of second components, e.g., the second target vector is [0,100,0, 80,0,0,90], and data such as "80", "100", "90", "0" in the second vector is taken as the second component of the second target vector. In some embodiments, the second target vector output by the vector regression model includes a target exposure level of a first object region corresponding to each of the at least one first object class in the image information. For example, the at least one first object category to which the first object in the image information a belongs includes: animals, office supplies, and the like, the second target vector obtained is [0,100,0, 80,0,0,90], and the second component "100" in the second target vector is used as the target exposure of the first target region corresponding to the first object type "animal", the second component "80" is used as the target exposure of the first target region corresponding to the first object type "office supplies", and the second component "90" is used as the target exposure of the first target region corresponding to the first object type "other types". In some embodiments, the device determines, based on the arrangement order of the second components in the second target vector, a first object class corresponding to each second component, so as to determine a target exposure of a first object region corresponding to each first object class in the image information. In some embodiments, the first object region corresponding to the first object category in the image information includes a sum of regions where one or more first objects belonging to the first object category are located, for example, in the image information a, the first object category office supplies include desks and computers, and the first object region corresponding to the first object category "office supplies" in the image information a includes a sum of regions corresponding to desks and computers. In some embodiments, the device divides the image information into one or more regions based on the YOLO algorithm, and detects a first object corresponding to each region, so as to classify the first object, and determine a first object region corresponding to each first object category (for example, a region in which a first object belonging to the same first object category is located is classified as the first object region corresponding to the first object category). In some embodiments, the image information may also be segmented into one or more regions based on an image segmentation technique, and then the first object corresponding to each region is identified (e.g., identified based on an image identification technique) to classify the first object and determine the first object region corresponding to each first object category. Of course, those skilled in the art will appreciate that the above specific operations for identifying and segmenting the image information are merely examples, and other specific operations now or later that may occur are also within the scope of the present application and are incorporated by reference herein. In some embodiments, the exposure level of the object region is calculated based on pixel information within the object region. For example, after graying the target region, the average value of all pixel information in the target region is calculated to obtain the exposure level of the target region. In some embodiments, the exposure effect is the best when the exposure level of the first object region is the exposure level of the corresponding object.
In step S14, the apparatus generates a high dynamic range image of the image information according to the target exposure level of the first object region corresponding in the image information for each first object category. For example, after the target exposure of each first object region is obtained, the high dynamic range image of the image information is synthesized based on the target exposure, and the style type and the self image characteristics of the image information are fully considered, so that the finally obtained high dynamic range image is more real and has better effect.
In some embodiments, the intent of the photographing user is determined by determining a target style type to which the image information belongs before generating a first target vector of the image information according to at least one first object category in the image information. For example, the shooting user wants to shoot a photo of a landscape style type, a parent-child style type or a sports clothing style type, and then obtains a target vector regression model corresponding to the target style type according to the target style type to which the image information belongs, so that the effect of the finally synthesized high dynamic range image is matched with the target style type to which the image information belongs, and the reality and the image effect of the high dynamic range image are increased. In some embodiments, the method further comprises step S15 (not shown). Inputting feature information of the image information into a style classification model to determine a target style type to which the image information belongs according to an output result in step S15; and acquiring a target vector regression model corresponding to the target style type. In some embodiments, the target style type to which the image information belongs is obtained by inputting feature information of the image information into the style classification model. The embodiment specifically describes a process of obtaining a target style type to which the image information belongs based on a style type model. For example, the style classification model is a model trained based on VGGNet, resNet, and the like. And outputting the target style type to which the image information belongs by inputting the image information into the style classification model. In some embodiments, a vector regression model is trained separately for each style type, for example, the device includes multiple mapping relationships, each mapping relationship is used to associate a style type with a target vector regression model corresponding to the style type, so as to obtain a target vector regression model corresponding to the target style type based on a target style type query to which the image information belongs.
In some embodiments, the method further includes step S16 (not shown), and in step S16, the style classification model is constructed based on the plurality of pictures and the style type label of each picture. For example, the style classification model is trained based on a plurality of pictures and style type labels of each picture, so that when image information is input into the style classification model, a target style type to which the image information belongs can be determined according to an output result.
In some embodiments, the step S11 includes: the equipment acquires image information to be processed; determining one or more first objects appearing in the image information; determining at least one first object class to which the one or more first objects belong according to the first object class to which each of the one or more first objects belongs. In some embodiments, the user device obtains the image information in response to a framing operation by a user. In some embodiments, the device identifies a first object appearing in the image information based on an image recognition technique. In some embodiments, the apparatus may also detect the first object appearing in the image information based on a YOLO algorithm. In some embodiments, the device determines a first object class to which each first object belongs to determine the at least one first object class. For example, the image information a includes a first object: the image information comprises a kitten, an office desk, a computer and a sky, wherein a first object, the kitten belongs to an animal, the first object office desk belongs to office supplies, a first object computer belongs to office supplies, and the first object sky belongs to other categories, so that the first object in the image information is determined to belong to three first object categories of 'animal, office supplies and other categories'. In some embodiments, a mapping relationship between each of the plurality of object categories and its corresponding object is established in the device, so as to determine, based on the determined object, an object category to which the object belongs. In some embodiments, the first object that failed to be identified is classified into other categories.
In some embodiments, the step S12 includes: the device determines an assignment of each first component in a first initial vector according to the at least one first object class and a class set to generate a first target vector of the image information, wherein the first initial vector corresponds to the class set. In some embodiments, the first target vector comprises a plurality of first components, and the device generates the first target vector of the image information by assigning values to the first initial vector. In some embodiments, the device determines an assignment of a corresponding first component of the first initial vector based on the determined first object class and the set of classes in the image information to generate a first target vector of the image information. For example, the reassigned first initial vector is used as a first target vector of the image information. In some embodiments, the first initial vector corresponds to the set of categories such that the first initial vector is assigned a value based on the set of categories.
In some embodiments, the set of classes includes a plurality of sequentially arranged second object classes, the first initial vector includes a plurality of first components, a number of the plurality of second object classes is equal to a number of the plurality of first components, each of the plurality of second object classes has its corresponding first component in the first initial vector based on an order of arrangement of the plurality of second object classes, and an initial assignment of each first component is zero; the step S12 includes: and if a second object class which is the same as the first object class exists in the class set, re-assigning a first component of the second object class corresponding to the first initial vector according to target assignment to generate a first target vector of the image information. Herein, the terms "first", "second", "third", etc. mentioned in the present application are only used for distinguishing information in different objects (e.g., image information, pictures, category sets) and do not represent any order. In some embodiments, the category set includes a plurality of second object categories arranged in order, for example, category set B includes, in order: people, animals, food, office supplies, school supplies, vehicles, other categories (other objects may be noted and classified as other categories for objects that fail identification or determination of failure). Of course, those skilled in the art will appreciate that the above described class sets are merely exemplary, and that other existing or future possible class sets, as may be suitable for use in the present application, are within the scope of the present application and are hereby incorporated by reference. The class set B corresponds to a first initial vector B, for example, the first initial vector B is [0,0,0,0, 0], wherein the number of second object classes in the class set B is equal to the number of first components in the first initial vector B, and is seven. Based on the order of the seven second object categories, each second object category has its corresponding first component in the first initial vector, e.g., a person corresponds to the first component in the first initial vector B, an animal corresponds to the second first component in the first initial vector B, a food corresponds to the third first component in the first initial vector B, and so on. In some embodiments, the target assignment includes, but is not limited to, a fixed value such as 1. For example, if there is a second object class identical to the first object class in the class set, the corresponding first component of the second object class in the first initial vector is reassigned to 1. For example, category set B includes a second object category in order: the image information comprises characters, animals, food, office supplies, school supplies, vehicles and other categories, wherein a first initial vector B is [0,0,0,0,0,0,0, 0], the first object category appearing in the image information comprises animals, office supplies and other categories, the animals, the office supplies and the other categories exist in the category set and are the same as the first object category, the first component corresponding to the animals, the office supplies and the other categories in the first initial vector B is reassigned to be 1, and a first target vector [0,1,0,1,0,0,1] of the image information is generated.
In some embodiments, the device sequentially detects whether a first object class identical to a second object class exists in the one or more first object classes according to an arrangement order of a plurality of second object classes in the class set, and if so, re-assigns a corresponding first component of the second object class in the first initial vector according to a target assignment value to generate a first target vector of the image information. For example, the device sequentially detects whether a first object class identical to the second object class exists in the first object class according to the order of the second object class, and if so, re-assigns the first component corresponding to the second object class. For example, category set B includes a second object category in order: the image information comprises characters, animals, food, office supplies, school supplies, vehicles and other categories, the first initial vector B is [0,0,0,0, 0], and the first object categories appearing in the image information comprise animals, office supplies and other categories. The device firstly detects whether a person exists in the first object category or not based on the arrangement sequence of the plurality of second object categories, if the result is non-existent, the device does not need to re-assign the first component corresponding to the person, the first component corresponding to the person still is an initial assignment (for example, 0), then detects whether an animal exists in the first object category or not, if the result is existent, the device re-assigns the first component corresponding to the animal, for example, the first component corresponding to the animal is assigned as the target assignment (for example, 1), then detects whether food exists in the first object category or not, if the result is non-existent, the first component corresponding to the food still is an initial assignment (for example, 0), and so on, and after the second object categories are detected in sequence, the first target vector of the image information can be generated.
In some embodiments, the second target vector includes a number of second components equal to a number of the second object classes, and each of the second object classes has its corresponding second component in the second target vector based on an arrangement order of the second object classes, and the method further includes step S17, in step S17, for each of at least one first object class in the image information, assigning a value of the corresponding second component of the second object class in the second target vector as a target exposure of the corresponding first object region of the first object class in the image information. In some embodiments, the second target vector and the class set are also in a corresponding relationship, so as to determine the first object class corresponding to each second component according to the arrangement order of the second components in the second target vector, thereby determining the target exposure of the first object region corresponding to each first object class. For example, the second target vector includes a number of second components equal to a number of second object classes in the class set, and the second object classes all have their corresponding second components in the second target component based on an order of arrangement of the second object classes. For example, category set B includes a second object category in order: the second target vector output based on the vector regression model is [0,100,0, 80,0,0,90], based on the arrangement sequence of the plurality of second object categories, the second component corresponding to the person is 0, which indicates that the first object category of the image information does not have the person, the second component corresponding to the animal is 100, which indicates that the first object category of the first object category "animal" corresponds to the first object region in the image information, the second component corresponding to the food is 0, which indicates that the first object category of the image information does not have the food, and so on, so as to determine the target exposure of the first object region corresponding to each first object category in the image information.
In some embodiments, the method further comprises step S18 (not shown), in step S18, obtaining a plurality of pictures of a plurality of genre types; and for each style type, constructing a vector regression model of the style type according to the first vector and the second vector of the plurality of pictures belonging to the style type to obtain the vector regression model corresponding to each style type in the plurality of style types. In some embodiments, a vector regression model corresponding to each style type is trained separately for each style type to fit the final synthesized high dynamic range image to the pixel style of the target style type corresponding to the image information. In some embodiments, for each style type of vector regression model, the vector regression model is trained based on a first vector and a second vector for a number of pictures belonging to that style type. In some embodiments, each vector regression model is trained using an NFM network. And training through a first vector and a second vector belonging to a large number of pictures to obtain the vector regression model. Thus, by inputting a first target vector to the vector regression model, a corresponding second target vector may be output. In some embodiments, for the vector regression model corresponding to each style type, the plurality of pictures of the style type used for training the vector regression model are pictures with better exposure effect, so that the effect is better when synthesizing the high dynamic range image according to the target exposure included in the output second target vector.
In some embodiments, the method further includes step S19 (not shown) and step S10, in step S19, the device generates, for each of the plurality of pictures belonging to the genre type, a first vector of the picture according to at least one third object class to which one or more third objects appearing in the picture belong; in step S10, the apparatus generates a second vector for the picture according to the exposure level of the third object region corresponding to each of the at least one third object class in the picture. In some embodiments, for multiple pictures of each genre, a third object (e.g., sky, table, kitten, etc.) appearing in each picture is determined, for example, by image recognition techniques, or a YOLO algorithm to detect the third object in each picture. Generate a first vector for each picture based on the set of categories, e.g., picture C includes a third object: the cat, the desk, the computer and the sky can be classified to obtain at least one third object category (for example, animals, office supplies and other categories) to which the third object in the picture C belongs. A first vector (e.g., [0,1,0,1,0,0,1]) corresponding to the picture C is generated based on three third object categories of "animal, office supply, other class" to vectorize the picture C. Further, a second vector of the picture is generated according to the exposure level of the third object region corresponding to each third object category in the picture. For example, a picture is divided into one or more regions based on a YOLO algorithm, a third object corresponding to each region is detected, the third objects are classified, and a first object region corresponding to each third object category is determined (for example, a region where the third objects belonging to the same third object category are located is a third object region corresponding to the third object category). In some embodiments, the picture may also be segmented into one or more regions based on an image segmentation technique (e.g., an image segmentation algorithm such as resNet, VGGNet, Fast, R-CNN, etc.), and then a third object corresponding to each region is identified (e.g., based on an image identification technique), so as to classify the third object and determine a third object region corresponding to each third object class. Of course, those skilled in the art will appreciate that the above-described specific operations for identifying and segmenting the images are merely examples, and that other specific operations now or later that may occur, such as those applicable to the present application, are also within the scope of the present application and are incorporated herein by reference. The exposure level of each third object region is then calculated, and a second vector of the picture is generated based on the exposure level of each third object region. Thereby obtaining a first vector and a second vector for each picture.
In some embodiments, the step S17 includes: for each picture in the plurality of pictures belonging to the style type, determining an assignment of each first component in a first initial vector according to at least one third object category to which one or more third objects appearing in the picture belong and a category set to generate a first vector of the picture, wherein the first initial vector corresponds to the category set. In some embodiments, based on the same category set as in the actual application (e.g., the category set in determining the first target vector described above), the assignment of each first component in the first initial vector corresponding to the category set is determined to generate the first vector for each of the plurality of pictures belonging to the style type. For example, the reassigned first initial vector is used as the first vector of the picture. In some embodiments, the first initial vector corresponds to the set of categories such that the first initial vector is assigned a value based on the set of categories.
In some embodiments, the set of classes includes a plurality of second object classes arranged in sequence, the first initial vector includes a plurality of first components, the number of the plurality of second object classes is equal to the number of the plurality of first components, such that each second object class has its corresponding first component in the first initial vector, and the initial assignment of each first component is zero; the step S19 includes: and if a second object class which is the same as the third object class exists in the class set, re-assigning a first component of the second object class corresponding to the first initial vector according to target assignment to generate a first vector of the picture. In some embodiments, the category set includes a plurality of second object categories arranged in order, for example, category set B includes, in order: people, animals, food, office supplies, school supplies, vehicles, other classes of second object classes. Of course, those skilled in the art will appreciate that the above described class sets are merely exemplary, and that other existing or future possible class sets, as may be suitable for use in the present application, are within the scope of the present application and are hereby incorporated by reference. The class set B corresponds to a first initial vector B, for example, the first initial vector B is [0,0,0,0, 0], wherein the number of second object classes in the class set B is equal to the number of first components in the first initial vector B, and is 7. Based on the ranking order of the 7 second object categories, each second object category has its corresponding first component in the first initial vector B, e.g., a person corresponds to the first component in the first initial vector B, an animal corresponds to the second first component in the first initial vector B, a food corresponds to the third first component in the first initial vector B, and so on. In some embodiments, the target assignment includes, but is not limited to, a fixed value such as 1. For example, if a second object class identical to the third object class in the picture exists in the class set, the first component corresponding to the second object class in the first initial vector is reassigned to be a fixed value 1. For example, category set B includes a second object category in order: people, animals, food, office supplies, school supplies, vehicles and other categories, wherein the first initial vector B is [0,0,0,0,0,0,0, 0], a third object appearing in a picture comprises an orange, a banana, an office table and others (for example, no identified object can be marked with other labels), the food, the office supplies and other categories (for example, no identified category classified into other categories) exist in the category set and are the same as the category of the third object corresponding to the third object, the first component corresponding to the food, the office supplies and other categories in the first initial vector B is reassigned to be 1, and then the first vector of the picture is generated to be [0,0,1,1,0,0,1 ]. In some embodiments, the specific process of generating the first vector of the picture comprises: and the equipment sequentially detects whether a first object class identical to the second object class exists in one or more third object classes in the picture according to the arrangement sequence of the plurality of second object classes in the class set, and if so, re-assigns the first component of the second object class corresponding to the first initial vector according to the target assigned value to generate a first target vector of the image information.
In some embodiments, the step S10 includes steps S101 (not shown), S102, and S103. In step S101, the device determines a third object region corresponding to each of at least three third object categories in the picture; in step S102, the apparatus calculates an exposure level of each third object region to obtain an exposure level of a corresponding third object region in the picture of each third object category in the at least one third object category; in step S103, the device determines, according to the exposure level of the third object region corresponding to each of the at least one third object class in the picture and the class set, the assignment of each second component in a second initial vector to generate a second vector of the picture, where the second initial vector corresponds to the class set. In some embodiments, for each picture, it is necessary to determine the third object region of each third object category in the picture, then calculate the exposure level of each third object region, and then generate the second vector of the picture according to the exposure level of each third object region. In some embodiments, when generating the second vector, it is also necessary to determine, based on the class set, a corresponding second component of the exposure level of each third object region in the second initial vector, so as to assign a value to the second component according to the exposure level of the third object region to generate the second vector of the picture.
In some embodiments, the step S101 includes: the equipment determines one or more third objects appearing in the picture and a third object sub-region corresponding to each third object; and taking a third object sub-region corresponding to a third object belonging to the same third object class as a third object region corresponding to the third object class. In some embodiments, for each picture, a third object appearing in the picture and a third object sub-region corresponding to each third object (e.g., a region where the third object is located) are detected based on the YOLO algorithm. In some embodiments, one or more third objects in the picture and a third object sub-region corresponding to each third object (e.g., a region in which the third object is located) may also be determined based on image segmentation techniques (e.g., image segmentation algorithms such as resNet, VGGNet, Fast, R-CNN, etc.) and image recognition techniques. In some embodiments, the third object sub-region corresponding to the third object belonging to the same third object class is taken as the third object region corresponding to the third object class, for example, if the kitten and the puppy belong to the animal class, the region where the kitten and the puppy are located is determined as the third object region corresponding to the third object class of the animal, in other words, the third object region corresponding to the "animal" third object class includes the sum of the third object sub-regions where the kitten and the puppy are located.
In some embodiments, the step S102 includes: the equipment calculates the exposure of each third object region according to the pixel information of the third object region to obtain the exposure of the third object region corresponding to each third object category in the at least one third object category in the picture. In some embodiments, after dividing the third object regions, the apparatus calculates the exposure level of each third object region based on all the pixel information in the third object region. For example, after the third target region is grayed, an average value of all pixel information in the third target region is calculated, and the average value is used as the exposure level of the third target region.
In some embodiments, the class set includes a plurality of second object classes arranged in sequence, the second initial vector includes a plurality of second components, the initial assignment of each second component is zero, the number of the plurality of second object classes is equal to the number of the plurality of second components, so that each second object class has its corresponding second component in the second initial vector, the step S103 includes: and if a second object class which is the same as the third object class exists in the class set, reassigning a second component of the second object class corresponding to the second initial vector according to the exposure of a third object area corresponding to the third object class to generate a second vector of the picture. In some embodiments, the class set further corresponds to a second initial vector, the initial assignment of each second component in the second initial vector is zero, each second object class has its corresponding second component in the second initial vector based on the arrangement order of each second object class in the class set, and the assignment of each second component in the second initial vector is determined according to a third object class and the arrangement order of the second object classes. For example, category set B includes, in order: a person, an animal, a food product, an office product, a study product, a vehicle, a second object category of other categories (e.g., objects that fail to be identified or determined to fail in the image information or picture can be marked as other and classified as other categories). The class set B corresponds to a second initial vector B, for example, the second initial vector B is [0,0,0,0,0,0,0, 0], wherein the number of second object classes in the class set B is equal to the number of second components in the second initial vector B, and is 7. Based on the ranking order of the 7 second object categories, each second object category has its corresponding second component in the second initial vector, e.g., a person corresponds to the first second component in the second initial vector B, an animal corresponds to the second component in the second initial vector B, a food corresponds to the third second component in the second initial vector B, and so on. And if a second object class which is the same as the third object class exists in the class set, re-assigning a corresponding second component of the second object class in the second initial vector. The reassigned specific value is the exposure of the third object region corresponding to the third object class. For example, category set B includes a second object category in order: the second initial vector B is [0,0,0,0, 0] and the third object categories appearing in the picture comprise animals, office supplies and other categories, wherein the exposure level of the third object area corresponding to the animals is 80, the exposure level of the third object area corresponding to the office supplies is 100, the exposure level of the third object area corresponding to the other categories is 90, and the second vector B is reassigned according to the exposure level corresponding to each third object category to generate a second vector (e.g., [0,80,0,100,0,0,90]) of the picture.
In some embodiments, the obtaining of the set of categories comprises: determining a second object included in each of the plurality of pictures to obtain a plurality of second objects; classifying the plurality of second objects according to a second object class to which each second object belongs to obtain a plurality of second object classes, wherein each second object class comprises one or more second objects; sorting the plurality of second object categories in a descending order according to the number of second objects included in each second object category to generate the category set, wherein the category set includes a plurality of second object categories arranged in sequence. In some embodiments, the set of categories is generated by counting categories of the second object that appear in the plurality of pictures. For example, a second object appearing in a large number of pictures is identified to obtain a plurality of second objects, and the plurality of second objects are classified to obtain a plurality of second object categories. And counting the number of second objects included in each second object category, and sequencing the plurality of second object categories based on the number of second objects included in each second object category to obtain a plurality of second object categories which are arranged in sequence. In some embodiments, the plurality of sequentially arranged second object categories is recorded in the category set.
In some embodiments, the method further comprises, before step S14, step S141 (not shown), in step S141, exposure sampling is performed on the image information based on different exposure parameters to obtain at least two spare image information; for each piece of standby image information, calculating the exposure of a first object area corresponding to each first object type in the standby image information to obtain at least two exposures corresponding to each first object area; the step S14 includes: for each first object region, determining an exposure level with the minimum difference with the target exposure level from one or more exposure levels corresponding to the first object region according to the target exposure level corresponding to the first object region; and generating a high dynamic range image of the image information according to the pixel information of the first object area in the standby image information corresponding to the exposure level. In some embodiments, the device acquires a plurality of alternate image information based on different exposure parameters for high dynamic range image generation based on the alternate image information prior to generating a high dynamic range image of the image information. For example, the image information a includes a first object: the image information A comprises a kitten, a book, a computer and a sky, wherein the kitten belongs to animals, the book and the computer belong to office supplies, the sky belongs to other categories, and one or more first objects in the image information A belong to three first object categories of animals, office supplies and the like. The first object region corresponding to the first object category of animal comprises a region where a kitten is located, the first object region corresponding to the first object category of office supplies comprises the sum of regions where a book and a computer are located, and the first object region corresponding to the first object category of other categories comprises a region where a sky is located. The apparatus acquires a plurality of pieces of standby image information on the image information A based on different exposure parameters (for example, exposure parameters such as aperture, shutter speed, ISO sensitivity), and calculates the exposure level of a first object region corresponding to each first object category in each piece of standby image information. For example, the spare image information 1, the spare image information 2, and the spare image information 3 are obtained. The exposure level of each first object region is calculated based on the pixel information in the first object region (for example, an average value of all pixel values in the first object region is calculated, and the calculated average value is taken as the exposure level of the first object region). Then for said image information a, there is 3 exposures for each first object class in the image information a. For each first object class, an exposure level with the smallest difference between the target exposure levels corresponding to the first object class is determined from the 3 exposure levels (for example, the difference between the exposure level corresponding to the first object class calculated by the backup image information 1 and the target exposure level corresponding to the first object class is smallest), and then the high dynamic range image of the image information a is generated according to the pixel information of the first object class in the first object area in the backup image information 1 in the backup image information (for example, the backup image information 1) corresponding to the exposure level. In some embodiments, the device synthesizes a high dynamic range image of the image information a by extracting first object regions in the spare image information. For example, if the difference between the exposure level corresponding to the first object category "animal" in the spare image information 1 and the target exposure level corresponding to the first object category is the smallest, the first object region of the first object category "animal" is extracted from the spare image information 1. If the difference between the exposure level corresponding to the first object category "office supplies" in the standby image information 2 and the target exposure level corresponding to the first object category is the minimum, the first object region of the first object category "office supplies" is extracted from the standby image information 2. If the difference between the exposure level corresponding to the first object category "other categories" in the backup image information 3 and the target exposure level corresponding to the first object category is the smallest, the first object region of the first object category "other categories" is extracted from the backup image information 3. The high dynamic range image of the image information a is synthesized by extracting each first object region. For another example, if the difference between the exposure level corresponding to the first object type "animal" in the backup image information 1 and the target exposure level corresponding to the first object type is the smallest, the first object area in the image information a is processed according to the pixel information of the first object area corresponding to the first object type "animal" in the backup image information 1. If the difference between the exposure level corresponding to the first object type "office supplies" in the standby image information 2 and the target exposure level corresponding to the first object type is the smallest, the first object area in the image information a is processed according to the pixel information of the first object area corresponding to the first object type "office supplies" in the standby image information 2. If the difference between the exposure level corresponding to the first object type "other type" in the backup image information 3 and the target exposure level corresponding to the first object type is the smallest, the first object area in the image information a is processed according to the pixel information of the first object area corresponding to the first object type "other type" in the backup image information 3.
FIG. 2 illustrates a block diagram of an apparatus for generating a high dynamic range image, the apparatus including a one-module, a two-module, a three-module, and a four-module, according to one aspect of the present application. A one-to-one module, configured to acquire image information to be processed, where the image information includes one or more first objects, and the one or more first objects belong to at least one first object category; a second module for generating a first target vector of the image information according to the at least one first object class; a third module, configured to input the first target vector into a target vector regression model to output a second target vector of the image information, where the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector includes a target exposure level of a first object region corresponding to each first object category in the at least one first object category in the image information; and the four modules are used for generating a high dynamic range image of the image information according to the target exposure of the first object region corresponding to each first object category in the image information.
Specifically, the one-to-one module is configured to acquire image information to be processed, where the image information includes one or more first objects, and the one or more first objects belong to at least one first object category. In some embodiments, the image information includes, but is not limited to, image information captured by a viewfinder of the user device. For example, when a user device (e.g., a mobile phone) views through a viewfinder, the image information can be acquired, so that the device can analyze and process the image information. In some embodiments, the first object includes, but is not limited to, an item (e.g., a cup, a book, a computer, a sky, etc.) appearing in the image information. In some embodiments, first objects appearing in the image information are classified to determine at least one first object class to which the one or more first objects correspond. For example, a first object appears in the image information a: the image information A comprises a kitten, a book, a computer and a sky, wherein the kitten belongs to animals, the book and the computer belong to office supplies, the sky belongs to other categories, and one or more first objects in the image information A belong to three first object categories of animals, office supplies and the like.
A second module for generating a first target vector of the image information according to the at least one first object class. In some embodiments, the first target vector is generated based on the at least one first object class. In some embodiments, the first target vector comprises a plurality of first components, e.g., the first target vector is [0,1,0,1,0,0,1], wherein data such as "0", "1" in the first target vector is taken as the first component of the first target vector. For example, the image information a includes a first object: the cat, the desk, the computer, and the sky may be categorized, and the first object in the image information a may be obtained to belong to at least one first object category (e.g., animal, office supply, and other categories). The apparatus generates a corresponding first target vector (e.g., [0,1,0,1,0,0,1]) based on three first object categories of "animal, office supplies, other classes" to vectorize the image information a.
And a third module, configured to input the first target vector into a target vector regression model to output a second target vector of the image information, where the target vector regression model is a vector regression model corresponding to a target style type to which the image information belongs, and the second target vector includes a target exposure level of a first object region corresponding to each first object category in the at least one first object category in the image information. In some embodiments, the device includes a plurality of genre types and a vector regression model corresponding to each genre type (e.g., each genre type is mapped to its corresponding vector regression model). For example, according to the target style type to which the image information belongs, the device inputs a first target vector of the image information into a target vector regression model corresponding to the target style type to output a second target vector of the image information. In some embodiments, the style types include, but are not limited to, life style, landscape style, sports style, face close-up style, pet close-up style, and the like. In some embodiments, the target style type to which the image information belongs may be determined according to at least one first object category in the image information, for example, an object category included in each of a plurality of preset style types in a device, and the target style type to which the image information belongs may be determined according to the at least one first object category in the image information (for example, when more than half of the at least one first object category is included in the object categories included in a certain style type, the image information is determined to belong to the certain style type). In other embodiments, the target style type to which the image information belongs is obtained based on a style classification model, and for a detailed description of this embodiment, reference is made to the following embodiments, which are not repeated herein. In some embodiments, the target vector regression model is for outputting a corresponding second target vector based on the input first target vector. In some embodiments, the second target vector comprises a plurality of second components, e.g., the second target vector is [0,100,0, 80,0,0,90], and data such as "80", "100", "90", "0" in the second vector is taken as the second component of the second target vector. In some embodiments, the second target vector output by the vector regression model includes a target exposure level of a first object region corresponding to each of the at least one first object class in the image information. For example, the at least one first object category to which the first object in the image information a belongs includes: animals, office supplies, and the like, the second target vector obtained is [0,100,0, 80,0,0,90], and the second component "100" in the second target vector is used as the target exposure of the first target region corresponding to the first object type "animal", the second component "80" is used as the target exposure of the first target region corresponding to the first object type "office supplies", and the second component "90" is used as the target exposure of the first target region corresponding to the first object type "other types". In some embodiments, the device determines, based on the arrangement order of the second components in the second target vector, a first object class corresponding to each second component, so as to determine a target exposure of a first object region corresponding to each first object class in the image information. In some embodiments, the first object region corresponding to the first object category in the image information includes a sum of regions where one or more first objects belonging to the first object category are located, for example, in the image information a, the first object category office supplies include desks and computers, and the first object region corresponding to the first object category "office supplies" in the image information a includes a sum of regions corresponding to desks and computers. In some embodiments, the device divides the image information into one or more regions based on the YOLO algorithm, and detects a first object corresponding to each region, so as to classify the first object, and determine a first object region corresponding to each first object category (for example, a region in which a first object belonging to the same first object category is located is classified as the first object region corresponding to the first object category). In some embodiments, the image information may also be segmented into one or more regions based on an image segmentation technique, and then the first object corresponding to each region is identified (e.g., identified based on an image identification technique) to classify the first object and determine the first object region corresponding to each first object category. Of course, those skilled in the art will appreciate that the above specific operations for identifying and segmenting the image information are merely examples, and other specific operations now or later that may occur are also within the scope of the present application and are incorporated by reference herein. In some embodiments, the exposure level of the object region is calculated based on pixel information within the object region. For example, after graying the target region, the average value of all pixel information in the target region is calculated to obtain the exposure level of the target region. In some embodiments, the exposure effect is the best when the exposure level of the first object region is the exposure level of the corresponding object.
And the four modules are used for generating a high dynamic range image of the image information according to the target exposure of the first object region corresponding to each first object category in the image information. For example, after the target exposure of each first object region is obtained, the high dynamic range image of the image information is synthesized based on the target exposure, and the style type and the self image characteristics of the image information are fully considered, so that the finally obtained high dynamic range image is more real and has better effect.
In some embodiments, the intent of the photographing user is determined by determining a target style type to which the image information belongs before generating a first target vector of the image information according to at least one first object category in the image information. For example, the shooting user wants to shoot a photo of a landscape style type, a parent-child style type or a sports clothing style type, and then obtains a target vector regression model corresponding to the target style type according to the target style type to which the image information belongs, so that the effect of the finally synthesized high dynamic range image is matched with the target style type to which the image information belongs, and the reality and the image effect of the high dynamic range image are increased. In some embodiments, the apparatus further comprises a five module (not shown). The system comprises a fifth module, a style classification module and a display module, wherein the fifth module is used for inputting the characteristic information of the image information into a style classification model so as to determine the target style type of the image information according to the output result; and acquiring a target vector regression model corresponding to the target style type.
Here, the specific implementation manner corresponding to the fifth module is the same as or similar to the specific implementation manner of the step S15, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the apparatus further comprises a six-module (not shown) for constructing the style classification model based on the plurality of pictures and the style type label of each picture.
Here, the specific implementation manner corresponding to the six modules is the same as or similar to the specific implementation manner of the step S16, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the one-to-one module is configured to obtain image information to be processed; determining one or more first objects appearing in the image information; determining at least one first object class to which the one or more first objects belong according to the first object class to which each of the one or more first objects belongs.
Here, the specific implementation manner corresponding to the one-to-one module is the same as or similar to the specific implementation manner of step S11, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the second module is configured to determine an assignment of each first component in a first initial vector according to the at least one first object class and a class set to generate a first target vector of the image information, wherein the first initial vector corresponds to the class set.
Here, the specific implementation corresponding to the two modules is the same as or similar to the specific implementation of the step S12, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the set of classes includes a plurality of sequentially arranged second object classes, the first initial vector includes a plurality of first components, a number of the plurality of second object classes is equal to a number of the plurality of first components, each of the plurality of second object classes has its corresponding first component in the first initial vector based on an order of arrangement of the plurality of second object classes, and an initial assignment of each first component is zero; the first and second modules are configured to: and if a second object class which is the same as the first object class exists in the class set, re-assigning a first component of the second object class corresponding to the first initial vector according to target assignment to generate a first target vector of the image information.
Here, the specific implementation corresponding to the two modules is the same as or similar to the specific implementation of the step S12, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the second target vector includes a number of second components equal to a number of the second object categories, and each of the second object categories has its corresponding second component in the second target vector based on an arrangement order of the second object categories, and the apparatus further includes a seventh module configured to, for each of at least one first object category in the image information, assign a value of the corresponding second component of the second object category that is the same as the first object category in the second target vector as the target exposure of the corresponding first object region of the first object category in the image information.
Here, the specific implementation manner corresponding to the one-seven module is the same as or similar to the specific implementation manner of the step S17, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the device further comprises an eight module (not shown) for obtaining a plurality of pictures of a plurality of genre types; and for each style type, constructing a vector regression model of the style type according to the first vector and the second vector of the plurality of pictures belonging to the style type to obtain the vector regression model corresponding to each style type in the plurality of style types.
Here, the specific implementation manner corresponding to the eight modules is the same as or similar to the specific implementation manner of the step S18, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the apparatus further comprises a nine module (not shown) for generating, for each of the plurality of pictures belonging to the genre type, a first vector of the picture according to at least one third object category to which one or more third objects appearing in the picture belong, and a zero module; and the zero module is used for generating a second vector of the picture according to the exposure level of the third object area corresponding to each third object category in the at least one third object category in the picture.
Here, the specific implementation manners of the nine and zero modules are the same as or similar to the specific implementation manners of the step S19 and the step S10, and thus are not repeated herein and are included herein by reference.
In some embodiments, the one-seven module is to: for each picture in the plurality of pictures belonging to the style type, determining an assignment of each first component in a first initial vector according to at least one third object category to which one or more third objects appearing in the picture belong and a category set to generate a first vector of the picture, wherein the first initial vector corresponds to the category set.
Here, the specific implementation manner corresponding to the one-seven module is the same as or similar to the specific implementation manner of the step S17, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the set of classes includes a plurality of second object classes arranged in sequence, the first initial vector includes a plurality of first components, the number of the plurality of second object classes is equal to the number of the plurality of first components, such that each second object class has its corresponding first component in the first initial vector, and the initial assignment of each first component is zero; the nine modules are used for: and if a second object class which is the same as the third object class exists in the class set, re-assigning a first component of the second object class corresponding to the first initial vector according to target assignment to generate a first vector of the picture.
Here, the specific implementation manner corresponding to the nine modules is the same as or similar to the specific implementation manner of the step S19, and thus is not repeated herein and is included by reference.
In some embodiments, the one-zero module includes a one-zero-one module (not shown), a one-zero-two module, and a one-zero-three module. A zero-one module, configured to determine a third object region corresponding to each of at least three third object categories in the picture; a zeroth and second module, configured to calculate an exposure level of each third object region, so as to obtain an exposure level of a third object region corresponding to each third object category in the picture; and a zeroth-third module, configured to determine, according to the exposure level of the third object region corresponding to each of the at least one third object class in the picture and a class set, an assignment of each second component in a second initial vector to generate a second vector of the picture, where the second initial vector corresponds to the class set.
Here, the specific implementation manners of the one-zero-one module, the one-zero-two module, and the one-zero-three module are the same as or similar to the specific implementation manners of the steps S101, S102, and S103, and therefore, the detailed descriptions thereof are omitted, and the description thereof is incorporated herein by reference.
In some embodiments, the one-zero-one module is to: determining one or more third objects appearing in the picture and a third object sub-region corresponding to each third object; and taking a third object sub-region corresponding to a third object belonging to the same third object class as a third object region corresponding to the third object class.
Here, the specific implementation manner corresponding to the one-zero-one module is the same as or similar to the specific implementation manner of the step S101, and thus is not described again and is included herein by reference.
In some embodiments, the second module is configured to calculate an exposure level of each third object region according to the pixel information of the third object region, so as to obtain an exposure level of the third object region corresponding to each third object category in the at least one third object category in the picture.
Here, the specific implementation corresponding to the two modules is the same as or similar to the specific implementation of the step S12, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the class set includes a plurality of second object classes arranged in sequence, the second initial vector includes a plurality of second components, an initial assignment of each second component is zero, the number of the plurality of second object classes is equal to the number of the plurality of second components, such that each second object class has its corresponding second component in the second initial vector, and the third module is configured to: and if a second object class which is the same as the third object class exists in the class set, reassigning a second component of the second object class corresponding to the second initial vector according to the exposure of a third object area corresponding to the third object class to generate a second vector of the picture.
Here, the specific implementation manner corresponding to the three modules is the same as or similar to the specific implementation manner of the step S13, and therefore, the detailed description is not repeated here and is included herein by way of reference.
In some embodiments, the obtaining of the set of categories comprises: determining a second object included in each of the plurality of pictures to obtain a plurality of second objects; classifying the plurality of second objects according to a second object class to which each second object belongs to obtain a plurality of second object classes, wherein each second object class comprises one or more second objects; sorting the plurality of second object categories in a descending order according to the number of second objects included in each second object category to generate the category set, wherein the category set includes a plurality of second object categories arranged in sequence. In some embodiments, the set of categories is generated by counting categories of the second object that appear in the plurality of pictures. For example, a second object appearing in a large number of pictures is identified to obtain a plurality of second objects, and the plurality of second objects are classified to obtain a plurality of second object categories. And counting the number of second objects included in each second object category, and sequencing the plurality of second object categories based on the number of second objects included in each second object category to obtain a plurality of second object categories which are arranged in sequence. In some embodiments, the plurality of sequentially arranged second object categories is recorded in the category set.
In some embodiments, the apparatus further comprises a quad module (not shown) for exposure sampling the image information based on different exposure parameters to obtain at least two spare image information; for each piece of standby image information, calculating the exposure of a first object area corresponding to each first object type in the standby image information to obtain at least two exposures corresponding to each first object area; the four modules are used for: for each first object region, determining an exposure level with the minimum difference with the target exposure level from one or more exposure levels corresponding to the first object region according to the target exposure level corresponding to the first object region; and generating a high dynamic range image of the image information according to the pixel information of the first object area in the standby image information corresponding to the exposure level.
Here, the specific implementation of the one-four-module and the one-four-module is the same as or similar to the specific implementation of the step S141 and the step S14, and therefore, the description is omitted here for brevity, and the description is incorporated herein by reference.
In addition to the methods and apparatus described in the embodiments above, the present application also provides a computer readable storage medium storing computer code that, when executed, performs the method as described in any of the preceding claims.
The present application also provides a computer program product, which when executed by a computer device, performs the method of any of the preceding claims.
The present application further provides a computer device, comprising:
one or more processors;
a memory for storing one or more computer programs;
the one or more computer programs, when executed by the one or more processors, cause the one or more processors to implement the method of any preceding claim.
FIG. 3 illustrates an exemplary system that can be used to implement the various embodiments described herein;
in some embodiments, as shown in FIG. 3, the system 300 can be implemented as any of the devices in the various embodiments described. In some embodiments, system 300 may include one or more computer-readable media (e.g., system memory or NVM/storage 320) having instructions and one or more processors (e.g., processor(s) 305) coupled with the one or more computer-readable media and configured to execute the instructions to implement modules to perform the actions described herein.
For one embodiment, system control module 310 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 305 and/or any suitable device or component in communication with system control module 310.
The system control module 310 may include a memory controller module 330 to provide an interface to the system memory 315. Memory controller module 330 may be a hardware module, a software module, and/or a firmware module.
System memory 315 may be used, for example, to load and store data and/or instructions for system 300. For one embodiment, system memory 315 may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 315 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 310 may include one or more input/output (I/O) controllers to provide an interface to NVM/storage 320 and communication interface(s) 325.
For example, NVM/storage 320 may be used to store data and/or instructions. NVM/storage 320 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more Hard Disk Drives (HDDs), one or more Compact Disc (CD) drives, and/or one or more Digital Versatile Disc (DVD) drives).
NVM/storage 320 may include storage resources that are physically part of the device on which system 300 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 320 may be accessible over a network via communication interface(s) 325.
Communication interface(s) 325 may provide an interface for system 300 to communicate over one or more networks and/or with any other suitable device. System 300 may wirelessly communicate with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols.
For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) (e.g., memory controller module 330) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be packaged together with logic for one or more controller(s) of the system control module 310 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310. For one embodiment, at least one of the processor(s) 305 may be integrated on the same die with logic for one or more controller(s) of the system control module 310 to form a system on a chip (SoC).
In various embodiments, system 300 may be, but is not limited to being: a server, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 300 may have more or fewer components and/or different architectures. For example, in some embodiments, system 300 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
It should be noted that the present application may be implemented in software and/or a combination of software and hardware, for example, implemented using Application Specific Integrated Circuits (ASICs), general purpose computers or any other similar hardware devices. In one embodiment, the software programs of the present application may be executed by a processor to implement the steps or functions described above. Likewise, the software programs (including associated data structures) of the present application may be stored in a computer readable recording medium, such as RAM memory, magnetic or optical drive or diskette and the like. Additionally, some of the steps or functions of the present application may be implemented in hardware, for example, as circuitry that cooperates with the processor to perform various steps or functions.
In addition, some of the present application may be implemented as a computer program product, such as computer program instructions, which when executed by a computer, may invoke or provide methods and/or techniques in accordance with the present application through the operation of the computer. Those skilled in the art will appreciate that the form in which the computer program instructions reside on a computer-readable medium includes, but is not limited to, source files, executable files, installation package files, and the like, and that the manner in which the computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Computer-readable media herein can be any available computer-readable storage media or communication media that can be accessed by a computer.
Communication media includes media by which communication signals, including, for example, computer readable instructions, data structures, program modules, or other data, are transmitted from one system to another. Communication media may include conductive transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (non-conductive transmission) media capable of propagating energy waves such as acoustic, electromagnetic, RF, microwave, and infrared. Computer readable instructions, data structures, program modules, or other data may be embodied in a modulated data signal, for example, in a wireless medium such as a carrier wave or similar mechanism such as is embodied as part of spread spectrum techniques. The term "modulated data signal" means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. The modulation may be analog, digital or hybrid modulation techniques.
By way of example, and not limitation, computer-readable storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. For example, computer-readable storage media include, but are not limited to, volatile memory such as random access memory (RAM, DRAM, SRAM); and non-volatile memory such as flash memory, various read-only memories (ROM, PROM, EPROM, EEPROM), magnetic and ferromagnetic/ferroelectric memories (MRAM, FeRAM); and magnetic and optical storage devices (hard disk, tape, CD, DVD); or other now known media or later developed that can store computer-readable information/data for use by a computer system.
An embodiment according to the present application comprises an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein the computer program instructions, when executed by the processor, trigger the apparatus to perform a method and/or a solution according to the aforementioned embodiments of the present application.
It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (20)

1.一种用于生成高动态范围图像的方法,其中,该方法包括:1. A method for generating a high dynamic range image, wherein the method comprises: 获取待处理的图像信息,其中,所述图像信息包括一个或多个第一对象,所述一个或多个第一对象属于至少一个第一对象类别;acquiring image information to be processed, wherein the image information includes one or more first objects, and the one or more first objects belong to at least one first object category; 根据所述至少一个第一对象类别生成所述图像信息的第一目标向量;generating a first target vector of the image information according to the at least one first object category; 将所述第一目标向量输入目标向量回归模型,以输出所述图像信息的第二目标向量,其中,所述目标向量回归模型为所述图像信息所属的目标风格类型所对应的向量回归模型,所述第二目标向量中包括所述至少一个第一对象类别中每个第一对象类别在所述图像信息中所对应的第一对象区域的目标曝光度;Inputting the first target vector into a target vector regression model to output the second target vector of the image information, wherein the target vector regression model is a vector regression model corresponding to the target style type to which the image information belongs, The second target vector includes the target exposure of the first object region corresponding to each of the at least one first object category in the image information; 根据每个第一对象类别在所述图像信息中所对应的第一对象区域的目标曝光度生成所述图像信息的高动态范围图像。The high dynamic range image of the image information is generated according to the target exposure of the first object area corresponding to each first object category in the image information. 2.根据权利要求1所述的方法,其中,所述方法还包括:2. The method of claim 1, wherein the method further comprises: 将所述图像信息输入风格分类模型,以根据输出结果确定所述图像信息所属的目标风格类型;Inputting the image information into a style classification model to determine the target style type to which the image information belongs according to the output result; 获取所述目标风格类型所对应的目标向量回归模型。Obtain the target vector regression model corresponding to the target style type. 3.根据权利要求2所述的方法,其中,所述方法还包括:3. The method of claim 2, wherein the method further comprises: 基于多张图片以及每张图片的风格类型标签构建所述风格分类模型。The style classification model is constructed based on a plurality of pictures and the style type labels of each picture. 4.根据权利要求1所述的方法,其中,所述获取待处理的图像信息,其中,所述图像信息包括一个或多个第一对象,所述一个或多个第一对象属于至少一个第一对象类别,包括:4. The method of claim 1, wherein the acquiring image information to be processed, wherein the image information includes one or more first objects, the one or more first objects belong to at least one first object an object class, including: 获取待处理的图像信息;Get the image information to be processed; 确定出现在所述图像信息中的一个或多个第一对象;determining one or more first objects present in the image information; 根据所述一个或多个第一对象中每个第一对象所属的第一对象类别确定所述一个或多个第一对象属于的至少一个第一对象类别。At least one first object category to which the one or more first objects belong is determined according to a first object category to which each of the one or more first objects belongs. 5.根据权利要求1所述的方法,其中,所述根据所述至少一个第一对象类别生成所述图像信息的第一目标向量,包括:5. The method of claim 1, wherein the generating the first target vector of the image information according to the at least one first object category comprises: 根据所述至少一个第一对象类别以及类别集合确定第一初始向量中各第一分量的赋值,以生成所述图像信息的第一目标向量,其中,所述第一初始向量对应于所述类别集合。The assignment of each first component in the first initial vector is determined according to the at least one first object category and the category set, so as to generate the first target vector of the image information, wherein the first initial vector corresponds to the category gather. 6.根据权利要求5所述的方法,其中,所述类别集合包括多个按序排列的第二对象类别,所述第一初始向量包括多个第一分量,所述多个第二对象类别的数量与所述多个第一分量的数量相等,基于所述多个第二对象类别的排列顺序,所述多个第二对象类别中每个第二对象类别在所述第一初始向量中都有其对应的第一分量,每个第一分量的初始赋值为零;6. The method of claim 5, wherein the set of categories includes a plurality of second object categories in order, the first initial vector includes a plurality of first components, the plurality of second object categories The number is equal to the number of the plurality of first components, and based on the arrangement order of the plurality of second object categories, each second object category in the plurality of second object categories is in the first initial vector has its corresponding first component, and the initial value of each first component is zero; 所述根据所述至少一个第一对象类别以及类别集合确定第一初始向量中各第一分量的赋值,以生成所述图像信息的第一目标向量,其中,所述第一初始向量对应于所述类别集合,包括:The assignment of each first component in the first initial vector is determined according to the at least one first object category and the category set, so as to generate the first target vector of the image information, wherein the first initial vector corresponds to the A collection of described categories, including: 若所述类别集合中存在与所述第一对象类别相同的第二对象类别,根据目标赋值将该第二对象类别在所述第一初始向量中对应的第一分量重新赋值,以生成所述图像信息的第一目标向量。If there is a second object category that is the same as the first object category in the category set, reassign the corresponding first component of the second object category in the first initial vector according to the target assignment, so as to generate the The first target vector of image information. 7.根据权利要求5或6所述的方法,其中,所述第二目标向量包括多个第二分量,所述多个第二分量的数量与所述多个第二对象类别的数量相等,基于所述第二对象类别的排列顺序,所述多个第二对象类别中每个第二对象类别在所述第二目标向量中都有其对应的第二分量,所述方法还包括:7. The method of claim 5 or 6, wherein the second object vector comprises a plurality of second components, the number of the second components being equal to the number of the second object classes, Based on the arrangement order of the second object categories, each second object category of the plurality of second object categories has its corresponding second component in the second target vector, and the method further includes: 对于所述图像信息中的至少一个第一对象类别中的每一个第一对象类别,将与该第一对象类别相同的第二对象类别在所述第二目标向量中对应的第二分量的赋值作为该第一对象类别在所述图像信息中所对应的第一对象区域的目标曝光度。For each first object category in the at least one first object category in the image information, assign the second component corresponding to the second object category that is the same as the first object category in the second target vector As the target exposure of the first object area corresponding to the first object category in the image information. 8.根据权利要求1或2所述的方法,其中,所述方法还包括:8. The method of claim 1 or 2, wherein the method further comprises: 获取多个风格类型的多张图片;Get multiple images of multiple style types; 对于每一个风格类型,根据属于该风格类型的多张图片的第一向量以及第二向量构建该风格类型的向量回归模型,以得到所述多个风格类型中每个风格类型所对应的向量回归模型。For each style type, construct a vector regression model of the style type according to the first vector and the second vector of the multiple pictures belonging to the style type, so as to obtain the vector regression model corresponding to each style type in the multiple style types Model. 9.根据权利要求8所述的方法,其中,所述方法还包括:9. The method of claim 8, wherein the method further comprises: 对于属于该风格类型的多张图片中的每一张图片,根据出现在该图片中的一个或多个第三对象所属的至少一个第三对象类别生成该图片的第一向量;For each picture in the plurality of pictures belonging to the style type, generating a first vector of the picture according to at least one third object category to which one or more third objects appearing in the picture belong; 根据所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度生成该图片的第二向量。The second vector of the picture is generated according to the exposure degree of the third object region in the picture corresponding to each third object category in the at least one third object category. 10.根据权利要求9所述的方法,其中,所述对于属于该风格类型的多张图片中的每一张图片,根据出现在该图片中的一个或多个第三对象所属的至少一个第三对象类别生成该图片的第一向量,包括:10. The method according to claim 9, wherein, for each picture in the plurality of pictures belonging to the style type, according to at least one first object to which one or more third objects appearing in the picture belong. The three-object category generates the first vector for this image, including: 对于所述属于该风格类型的多张图片中的每一张图片,根据出现在该图片中的一个或多个第三对象所属的至少一个第三对象类别以及类别集合确定第一初始向量中各第一分量的赋值,以生成该图片的第一向量,其中,所述第一初始向量对应于所述类别集合。For each picture in the plurality of pictures belonging to the style type, determine each image in the first initial vector according to at least one third object category to which one or more third objects appearing in the picture belong and the category set assignment of the first component to generate a first vector of the picture, wherein the first initial vector corresponds to the set of categories. 11.根据权利要求10所述的方法,其中,所述类别集合包括多个按序排列的第二对象类别,所述第一初始向量包括多个第一分量,所述多个第二对象类别的数量与所述多个第一分量的数量相等,以使每个第二对象类别在所述第一初始向量中都有其对应的第一分量,每个第一分量的初始赋值为零;11. The method of claim 10, wherein the set of categories includes a plurality of second object categories in order, the first initial vector includes a plurality of first components, the plurality of second object categories The number is equal to the number of the plurality of first components, so that each second object category has its corresponding first component in the first initial vector, and the initial value of each first component is zero; 所述对于所述属于该风格类型的多张图片中的每一张图片,根据出现在该图片中的一个或多个第三对象所属的至少一个第三对象类别以及类别集合确定第一初始向量中各第一分量的赋值,以生成该图片的第一向量,其中,所述第一初始向量对应于所述类别集合,包括:For each picture in the plurality of pictures belonging to the style type, determine the first initial vector according to at least one third object category to which one or more third objects appearing in the picture belong and the category set The assignment of each first component in to generate the first vector of the picture, wherein the first initial vector corresponds to the category set, including: 若所述类别集合中存在与所述第三对象类别相同的第二对象类别,根据目标赋值将该第二对象类别在所述第一初始向量中对应的第一分量重新赋值,以生成该图片的第一向量。If there is a second object category that is the same as the third object category in the category set, reassign the corresponding first component of the second object category in the first initial vector according to the target assignment, so as to generate the picture the first vector of . 12.根据权利要求9所述的方法,其中,所述根据所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度生成该图片的第二向量,包括:12 . The method according to claim 9 , wherein the generating the first image of the image according to the exposure of the third object area corresponding to each third object category in the at least one third object category in the picture. 13 . Two vectors, including: 确定该图片中的至少三个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域;determining the third object area in the picture corresponding to each of the at least three third object categories in the picture; 计算每个第三对象区域的曝光度,以得到所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度;calculating the exposure of each third object area to obtain the exposure of the third object area corresponding to each third object category in the picture in the at least one third object category; 根据所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度以及类别集合确定第二初始向量中各第二分量的赋值,以生成该图片的第二向量,其中,所述第二初始向量对应于所述类别集合。Determine the assignment of each second component in the second initial vector according to the exposure of the third object region in the picture corresponding to each third object category in the at least one third object category and the category set, so as to generate the picture The second vector of , wherein the second initial vector corresponds to the set of categories. 13.根据权利要求12所述的方法,其中,所述确定该图片中的至少三个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域,包括:13. The method according to claim 12, wherein the determining the third object region in the picture corresponding to each of the at least three third object categories in the picture comprises: 确定出现在该图片中的一个或多个第三对象以及每个第三对象所对应的第三对象子区域;determining one or more third objects appearing in the picture and a third object sub-region corresponding to each third object; 将属于同一第三对象类别的第三对象所对应的第三对象子区域作为该第三对象类别所对应的第三对象区域。The third object sub-region corresponding to the third object belonging to the same third object category is used as the third object region corresponding to the third object category. 14.根据权利要求12所述的方法,其中,所述计算每个第三对象区域的曝光度,以得到所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度,包括:14. The method according to claim 12, wherein the calculating the exposure of each third object area is to obtain the corresponding value of each third object category in the picture in the at least one third object category Exposure of the third object area, including: 根据每个第三对象区域的像素信息计算该第三对象区域的曝光度,以得到所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度。Calculate the exposure of each third object region according to the pixel information of the third object region, so as to obtain the exposure of the third object region corresponding to each third object category in the picture in the at least one third object category Spend. 15.根据权利要求12所述的方法,其中,所述类别集合包括多个按序排列的第二对象类别,所述第二初始向量包括多个第二分量,每个第二分量的初始赋值为零,所述多个第二对象类别的数量与所述多个第二分量的数量相等,以使每个第二对象类别在所述第二初始向量中都有其对应的第二分量,所述根据所述至少一个第三对象类别中每个第三对象类别在该图片中所对应的第三对象区域的曝光度以及类别集合确定第二初始向量中各第二分量的赋值,以生成该图片的第二向量,其中,所述第二初始向量对应于所述类别集合,包括:15. The method of claim 12, wherein the set of categories includes a plurality of second object categories arranged in order, the second initial vector includes a plurality of second components, the initial assignment of each second component zero, the number of the plurality of second object classes is equal to the number of the plurality of second components, so that each second object class has its corresponding second component in the second initial vector, determining the assignment of each second component in the second initial vector according to the exposure of the third object region in the picture corresponding to each third object category in the at least one third object category and the category set, so as to generate The second vector of the picture, wherein the second initial vector corresponds to the category set, including: 若所述类别集合中存在与所述第三对象类别相同的第二对象类别,根据该第三对象类别所对应的第三对象区域的曝光度将该第二对象类别在所述第二初始向量中对应的第二分量重新赋值,以生成该图片的第二向量。If there is a second object category that is the same as the third object category in the category set, the second object category is included in the second initial vector according to the exposure of the third object region corresponding to the third object category The corresponding second components in are reassigned to generate a second vector for the picture. 16.根据权利要求5至15中任一项所述的方法,其中,所述类别集合的获取过程包括:16. The method according to any one of claims 5 to 15, wherein the obtaining process of the set of categories comprises: 确定多张图片中每张图片包括的第二对象,以得到多个第二对象;determining a second object included in each of the plurality of pictures to obtain a plurality of second objects; 根据每个第二对象所属的第二对象类别对所述多个第二对象进行归类,以得到多个第二对象类别,其中,每个第二对象类别包括一个或多个第二对象;classifying the plurality of second objects according to a second object category to which each second object belongs to obtain a plurality of second object categories, wherein each second object category includes one or more second objects; 根据每个第二对象类别包括的第二对象的数量对所述多个第二对象类别进行降序排序,以生成所述类别集合,其中,所述类别集合包括多个按序排列的第二对象类别。The plurality of second object categories are sorted in descending order according to the number of second objects included in each second object category to generate the category set, wherein the category set includes a plurality of second objects arranged in order category. 17.根据权利要求1所述的方法,其中,所述方法在根据每个第一对象类别在所述图像信息中所对应的第一对象区域的目标曝光度生成所述图像信息的高动态范围图像,之前还包括:17. The method of claim 1, wherein the method generates a high dynamic range of the image information according to the target exposure of the first object area corresponding to each first object category in the image information Image, previously also included: 基于不同的曝光参数对所述图像信息进行曝光采样,以得到至少两个备用图像信息;对于每个所述备用图像信息,计算该备用图像信息中各第一对象类别在该备用图像信息中所对应的第一对象区域的曝光度,以得到每个第一对象区域所对应的至少两个曝光度;Exposure sampling is performed on the image information based on different exposure parameters, so as to obtain at least two backup image information; for each of the backup image information, the proportion of each first object category in the backup image information in the backup image information is calculated. the exposure of the corresponding first object area, to obtain at least two exposure degrees corresponding to each first object area; 所述根据每个第一对象类别在所述图像信息中所对应的第一对象区域的目标曝光度生成所述图像信息的高动态范围图像,包括:The generating a high dynamic range image of the image information according to the target exposure of the first object area corresponding to each first object category in the image information includes: 对于每一个所述第一对象区域,根据该第一对象区域对应的目标曝光度从该第一对象区域所对应的一个或多个曝光度中确定与所述目标曝光度的差值最小的一个曝光度;根据该曝光度所对应的备用图像信息中该第一对象区域的像素信息生成所述图像信息的高动态范围图像。For each of the first object areas, according to the target exposure degree corresponding to the first object area, one or more exposure degrees corresponding to the first object area is determined to have the smallest difference from the target exposure degree Exposure; generating a high dynamic range image of the image information according to the pixel information of the first object area in the spare image information corresponding to the exposure. 18.一种用于生成高动态范围图像的设备,其中,该设备包括:18. An apparatus for generating a high dynamic range image, wherein the apparatus comprises: 处理器;以及processor; and 被安排成存储计算机可执行指令的存储器,所述可执行指令在被执行时使所述处理器执行如权利要求1至17中任一项所述方法的操作。a memory arranged to store computer-executable instructions which, when executed, cause the processor to perform the operations of the method of any of claims 1 to 17. 19.一种存储指令的计算机可读介质,所述指令在被执行时使得系统进行执行如权利要求1至17中任一项所述方法的操作。19. A computer readable medium storing instructions that, when executed, cause a system to perform operations of the method of any of claims 1 to 17. 20.一种计算机程序产品,包括计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1至17中任一项所述方法的步骤。20. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 17.
CN202011623261.0A 2020-12-30 2020-12-30 Method and equipment for generating high dynamic range image Active CN112822425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011623261.0A CN112822425B (en) 2020-12-30 2020-12-30 Method and equipment for generating high dynamic range image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011623261.0A CN112822425B (en) 2020-12-30 2020-12-30 Method and equipment for generating high dynamic range image

Publications (2)

Publication Number Publication Date
CN112822425A true CN112822425A (en) 2021-05-18
CN112822425B CN112822425B (en) 2023-01-06

Family

ID=75854647

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011623261.0A Active CN112822425B (en) 2020-12-30 2020-12-30 Method and equipment for generating high dynamic range image

Country Status (1)

Country Link
CN (1) CN112822425B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005534A (en) * 2002-03-29 2004-01-08 Fuji Photo Film Co Ltd Image preserving method, retrieving method and system of registered image, image processing method of registered image and program for executing these methods
US20130315477A1 (en) * 2012-05-25 2013-11-28 Xerox Corporation Image selection based on photographic style
US20150170389A1 (en) * 2013-12-13 2015-06-18 Konica Minolta Laboratory U.S.A., Inc. Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification
US20170206431A1 (en) * 2016-01-20 2017-07-20 Microsoft Technology Licensing, Llc Object detection and classification in images
US20190005356A1 (en) * 2017-06-30 2019-01-03 Canon Kabushiki Kaisha Image recognition apparatus, learning apparatus, image recognition method, learning method, and storage medium
CN109584257A (en) * 2018-11-28 2019-04-05 中国科学院深圳先进技术研究院 A kind of image processing method and relevant device
CN110100252A (en) * 2016-12-23 2019-08-06 奇跃公司 Techniques for determining settings of a content capture device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004005534A (en) * 2002-03-29 2004-01-08 Fuji Photo Film Co Ltd Image preserving method, retrieving method and system of registered image, image processing method of registered image and program for executing these methods
US20130315477A1 (en) * 2012-05-25 2013-11-28 Xerox Corporation Image selection based on photographic style
US20150170389A1 (en) * 2013-12-13 2015-06-18 Konica Minolta Laboratory U.S.A., Inc. Automatic selection of optimum algorithms for high dynamic range image processing based on scene classification
US20170206431A1 (en) * 2016-01-20 2017-07-20 Microsoft Technology Licensing, Llc Object detection and classification in images
CN110100252A (en) * 2016-12-23 2019-08-06 奇跃公司 Techniques for determining settings of a content capture device
US20190005356A1 (en) * 2017-06-30 2019-01-03 Canon Kabushiki Kaisha Image recognition apparatus, learning apparatus, image recognition method, learning method, and storage medium
CN109584257A (en) * 2018-11-28 2019-04-05 中国科学院深圳先进技术研究院 A kind of image processing method and relevant device

Also Published As

Publication number Publication date
CN112822425B (en) 2023-01-06

Similar Documents

Publication Publication Date Title
CN112329762B (en) Image processing method, model training method, device, computer equipment and medium
US9020243B2 (en) Image adjustment
US11348254B2 (en) Visual search method, computer device, and storage medium
CN108961157B (en) Image processing method, image processing device and terminal device
US11429813B1 (en) Automated model selection for network-based image recognition service
CN109711508B (en) Image processing method and device
CN110969200B (en) Image target detection model training method and device based on consistency negative sample
US20240029263A1 (en) System and method for identifying auxiliary areas of interest in an image
US11468296B2 (en) Relative position encoding based networks for action recognition
TWI546743B (en) Object selection in an image
CN108257081B (en) Method and device for generating pictures
WO2022141094A1 (en) Model generation method and apparatus, image processing method and apparatus, and readable storage medium
US12118099B2 (en) Automated security profiles for an information handling system
CN116543261B (en) Model training method for image recognition, image recognition method device and medium
WO2022141092A1 (en) Model generation method and apparatus, image processing method and apparatus, and readable storage medium
CN113657245B (en) Method, device, medium and program product for human face living body detection
CN113518217A (en) Object recognition method, device, server and medium
CN112822425B (en) Method and equipment for generating high dynamic range image
CN112839181B (en) A method and apparatus for generating high dynamic range images
CN112822426B (en) Method and equipment for generating high dynamic range image
CN112771566A (en) Image processing apparatus, image processing method, and program
CN114549944A (en) Object part detection method, device, electronic device and storage medium
CN114550025B (en) Evaluation methods, devices, and media for generative models
CN115641463B (en) Classification of test methods, apparatus, equipment, media and procedures products
CN116310974B (en) Time sequence action detection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: Room 80536, Shanghai

Patentee after: Shanghai Zongzhang Technology Group Co.,Ltd.

Country or region after: China

Address before: Room 80536, Shanghai

Patentee before: SHANGHAI ZHANGMEN SCIENCE AND TECHNOLOGY Co.,Ltd.

Country or region before: China

CP03 Change of name, title or address