WO2021159279A1 - Exposure control method and apparatus, and readable storage medium and computer device - Google Patents

Exposure control method and apparatus, and readable storage medium and computer device Download PDF

Info

Publication number
WO2021159279A1
WO2021159279A1 PCT/CN2020/074759 CN2020074759W WO2021159279A1 WO 2021159279 A1 WO2021159279 A1 WO 2021159279A1 CN 2020074759 W CN2020074759 W CN 2020074759W WO 2021159279 A1 WO2021159279 A1 WO 2021159279A1
Authority
WO
WIPO (PCT)
Prior art keywords
target object
area
image
exposure control
sub
Prior art date
Application number
PCT/CN2020/074759
Other languages
French (fr)
Chinese (zh)
Inventor
杨超
刘念邱
Original Assignee
深圳元戎启行科技有限公司
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 深圳元戎启行科技有限公司 filed Critical 深圳元戎启行科技有限公司
Priority to CN202080003169.6A priority Critical patent/CN113545031A/en
Priority to PCT/CN2020/074759 priority patent/WO2021159279A1/en
Publication of WO2021159279A1 publication Critical patent/WO2021159279A1/en

Links

Images

Classifications

    • 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

Definitions

  • This application relates to image processing technology, in particular to exposure control methods, devices, readable storage media, and computer equipment.
  • the camera device can be used to obtain images, thereby facilitating the recording and preservation of the images.
  • camera devices have been widely used in electronic equipment such as drones, vehicle recorders, and mobile phones.
  • the image is usually divided into the area of interest and the area of non-interest in advance, so that the exposure adjustment is performed according to the brightness change of the area of interest.
  • the inventor found that the exposure effect of the camera device in the related technology is poor.
  • the embodiments of the present application provide an exposure control method, device, readable storage medium, and computer equipment, which can improve the exposure effect of a camera device.
  • An exposure control method including:
  • the exposure adjustment is performed according to the brightness statistical value.
  • An exposure control device including:
  • An image division module configured to detect a target object in a captured image, and divide the image into a first area and a second area according to the position of the target object in the image;
  • a brightness calculation module configured to calculate the brightness statistical value of the image according to the first area and the second area
  • the exposure adjustment module is configured to perform exposure adjustment according to the brightness statistical value.
  • a computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the steps of the exposure control method as described in the above-mentioned embodiments are realized.
  • a computer device includes a memory and a processor, and the memory stores computer-readable instructions.
  • the processor executes the exposure control method described in the above-mentioned embodiment .
  • the above exposure control method, device, readable storage medium and computer equipment detect the target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image; according to the first area And the second area calculates the brightness statistics of the image, and adjusts the exposure according to the brightness statistics.
  • the exposure control method, device, readable storage medium and computer equipment of the present application perform real-time detection of the position of the target object in the image, and recalculate the brightness statistical value according to the real-time position of the target object, and adjust the exposure according to the brightness statistical value , Make the brightness matching degree of the exposure adjustment scheme and the target object in the image higher, and the exposure effect is better.
  • FIG. 1 is a schematic flowchart of an exposure control method provided in an embodiment of this application
  • FIG. 2 is a schematic flowchart of an exposure control method provided in an embodiment of the application.
  • step S002 of the exposure control method provided in an embodiment of the application
  • FIG. 4 is a schematic flowchart of an exposure control method provided in an embodiment of the application.
  • FIG. 5 is a schematic flowchart of an exposure control method provided in an embodiment of the application.
  • step S100 of the exposure control method provided in an embodiment of the application
  • FIG. 7 is a schematic flowchart of step S200 of the exposure control method provided in an embodiment of the application.
  • FIG. 8 is a schematic flowchart of an exposure control method provided in an embodiment of the application.
  • step S008 of the exposure control method provided in an embodiment of the application.
  • FIG. 10 is a schematic diagram of the frame structure of an exposure control device provided in an embodiment of the application.
  • FIG. 11 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application.
  • FIG. 12 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application.
  • FIG. 13 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application.
  • FIG. 14 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application.
  • the exposure control method provided by the present application is applied to an imaging device.
  • the camera device uses the exposure control method of the present application to adjust the exposure according to the image acquired in real time, thereby improving the exposure effect.
  • the exposure control method provided by the present application may be as shown in FIG. 1, and includes the following steps:
  • S100 Detect a target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image.
  • the captured image refers to the image captured in real time during the working process of the camera device.
  • the exposure control method provided by the present application is to adjust the exposure of the camera device based on the image taken by the camera device at the current moment, so as to improve the exposure effect of the camera device when the image is taken at the next moment.
  • the target object refers to the target object in the captured image.
  • the target object is a traffic light; in other embodiments, the target object is a moving animal or human body.
  • the position of the target object in the captured image is constantly moving. Based on this, the exposure control method of the present application needs to detect the position of the target object in the image in real time after the image is taken.
  • the image is further divided into a first area and a second area according to the position of the target object.
  • the first area of the image is an area that contains the target object
  • the second area of the image is an area that does not contain the target object. It should be understood that the first and second here are only used to divide different regions in the image, and no other explanation is provided. In some other embodiments, it is also possible that the first area of the image is an area that does not contain the target object, and the second area is an area that contains the target object, which is not limited.
  • S200 Calculate the brightness statistical value of the image according to the first area and the second area.
  • the brightness statistical value refers to the statistical result obtained by performing brightness statistics on the captured image.
  • the brightness statistical value of the image is calculated according to the division result of the first area and the second area.
  • the division of the first area and the second area changes; after the division of the first area and the second area changes, the The area and the second area calculate the brightness statistics of the image.
  • the brightness statistical value of the image calculated by the exposure control method is based on the real-time position of the target object in the image.
  • S300 Perform exposure adjustment according to the brightness statistical value.
  • the exposure adjustment can be performed according to the calculated brightness statistical value.
  • the exposure control method of the present application detects the position of the target object in the image in real time during the process of capturing the image by the camera device, and divides the image into a first area and a second area. After the method divides the image, the brightness statistical value is calculated according to the division result of the first area and the second area, and the exposure adjustment is performed according to the brightness statistical value.
  • the exposure control method can make the brightness matching degree of the exposure adjustment scheme and the target object in the image higher, thereby improving the exposure effect of the camera device.
  • the exposure control method of the present application before step S100, further includes:
  • S002 Acquire location information of the target object.
  • the target object is a fixed-position object such as a traffic light; the camera device using the exposure control method of the present application is mounted on a vehicle-mounted recorder or a drone.
  • the exposure control method of the present application first obtains the position information of the target object before performing step S100.
  • the position information of the target object refers to the position information of the target object relative to the imaging device that executes the exposure control method of the present application.
  • obtaining the location information of the target object is achieved by the following method: at least one of the infrared detection device, the ultraviolet detection device, and the laser detection device emits infrared, ultraviolet or laser to detect the target object to obtain the location information of the target object , And passed to the camera device. At this time, the camera device can obtain the location information of the target object.
  • the location information of the target object is obtained by the following method: GPS (Global Positioning System, Global Positioning System) is used to locate the location of the camera device on a map; the map is marked with the target object at the same time. Location. At this time, the camera device can obtain the position information of the target object relative to the camera device according to the location of the target object on the map and the location of the camera device.
  • GPS Global Positioning System, Global Positioning System
  • S004 Calculate the position information of the target object in the image according to the position information.
  • the position information of the target object in the image is calculated according to the position information of the target object.
  • the exposure control method of the present application calculates the orientation information of the target object in the image captured by the camera device based on the position information of the target object and the camera angle of the camera device.
  • the lens direction of the camera device is the same as the movement direction, and the central axis of the lens is parallel to the movement direction.
  • the position information of the target object is: the target object is located at the upper left of the imaging device
  • the orientation information of the target object in the image is: the target object is located at the upper left of the captured image.
  • step S100 may include: S110, detecting the target object in the captured image, and S120, dividing the image into a first area and a second area according to the position of the target object in the image. area.
  • S110 is specifically: detecting the target object in the captured image according to the orientation information of the target object in the image. That is, in step S004, after calculating the position information of the target object in the image according to the position information, the target object in the image is detected according to the position information.
  • step S004 if the position information of the target object in the image has been calculated in step S004, the target object is located at the upper left of the captured image. Then in step S110, priority and focus is on detecting the target object at the upper left of the image.
  • the above exposure control method before detecting the target object in the image, also calculates the position information of the target object in the image according to the position information of the target object, so as to provide auxiliary assistance to the detection in step S110 and improve the detection speed of the target object in the image And accuracy.
  • step S002 is implemented by GPS (Global Positioning System, Global Positioning System) positioning.
  • GPS Global Positioning System, Global Positioning System
  • step S002 may include:
  • S0022 Acquire map information, where the map information has a location mark of the target object.
  • the map information refers to a map with a geographical indication where the camera is located, and at the same time, the map information also has a location mark of the target object. At this time, after the location of the camera device is marked on the map information, the position information of the target object corresponding to the location mark relative to the camera device can be obtained.
  • the map information may be a two-dimensional map or a three-dimensional map, without limitation.
  • the current location refers to the current location of the camera device that executes the exposure control method of the present application.
  • This step is to locate the location of the camera on the aforementioned map information.
  • This step can be implemented by positioning the camera device through GPS (Global Positioning System, Global Positioning System).
  • the position information of the target object can be obtained according to the position information of the camera device on the map information and the position mark of the target object.
  • the position information of the target object refers to the position information of the target object relative to the imaging device that executes the exposure control method of the present application.
  • step S100 may include: S110, detecting a target object in the captured image, and S120, dividing the image into The first area and the second area.
  • step S110 includes:
  • S112 Acquire detection features of the target object.
  • the exposure control method of the present application can detect the target object according to the detection characteristics of the target object.
  • the detection characteristics of the target object may include color or/and shape. After the image is captured, the target object can be detected according to the color and shape of each object in the captured image.
  • step S110 it may further include:
  • S005 Pre-store the label and detection feature of the target object.
  • the label and detection feature of the target object are stored in the imaging device that executes the exposure control method of the present application in advance.
  • the target object may include one or more of traffic lights, pedestrians, and non-motorized vehicles.
  • the tags of the target objects are: traffic lights, pedestrians and non-motorized vehicles.
  • the detection characteristics of the traffic light such as shape and color, are stored.
  • the detection features of pedestrians such as height, driving speed, and contour are stored.
  • the detection features of the non-motorized vehicle such as contour and driving speed, are stored.
  • step S112 specifically includes:
  • the camera device executes the exposure control method of the present application, it can first obtain the label of the target object to be detected, and then extract the detection feature of the target object based on the label of the target object, so as to detect the target object.
  • the exposure control method of the present application may obtain one or more tags when obtaining the tags of the target object. That is, in the exposure control method of the present application, only one target object can be detected at the same time, or multiple target objects can be detected at the same time.
  • the exposure control method of the present application, before step S100, may further include:
  • S006 Divide the image into several sub-areas, and the several sub-areas are distributed in an array.
  • the exposure control method of the present application further divides the image into several sub-areas to facilitate the division of the first area and the second area.
  • several refers to four or more integers.
  • Several sub-areas are arranged horizontally and vertically at the same time, thus presenting an array distribution.
  • the exposure control method of the present application divides the image into 16 sub-regions, and the 16 sub-regions are distributed in four rows and four columns. In other embodiments, the exposure control method of the present application divides the image into 25 sub-areas, and the 25 sub-areas are distributed in five rows and five columns.
  • the several sub-regions have the same shape and the same size, so as to facilitate the calculation of the subsequent brightness statistics.
  • each of the several sub-regions is rectangular.
  • each sub-region After the display image is divided into several sub-regions, each sub-region generally has several light-emitting pixels.
  • the light-emitting pixels in all sub-regions constitute an image when they are working and emitting light.
  • the exposure control method of the present application in step S100, may include: S110, detecting a target object in the captured image, and S120, dividing the image into a first area and a second area according to the position of the target object in the image. area.
  • step S110 is executed after step S006, and step S120 is executed after step S110.
  • step S120 includes:
  • S122 Determine whether each sub-region is at least partially used to display the target object.
  • step S006 the image has been divided into several sub-areas distributed in an array. Therefore, when dividing the first area and the second area, each sub-area in the image is divided. The division is based on whether the sub-region is at least partially used to display the target object.
  • At least part of the sub-region is used to display the target object, which means that at least one light-emitting pixel in the sub-region is used to display the target object.
  • the sub-region is divided into the first region.
  • the first area is an area containing the target object in the image.
  • the sub-region is divided into the second region.
  • the second area is an area that does not contain the target object in the image.
  • the captured image is divided into several sub-regions, and then each sub-region is judged whether at least part of it is used to display the target object, so as to distinguish the different sub-regions, and divide the first region and the second region. .
  • This division method can make the calculation amount of the exposure control method of the present application relatively small.
  • the pixel unit used to display the target object is divided into the first region by judging whether each pixel unit is used to display the target object; it will not be used to display the target object.
  • the pixel unit of the object is divided into the second area. This division method can make the division of the first area and the second area more precise.
  • step S200 includes:
  • S210 Obtain a first brightness value of each sub-areas in the first area, and obtain a second brightness value of each sub-area in the second area.
  • the brightness value in each sub-area is obtained by taking the sub-area as a unit.
  • the brightness value of each sub-region in the first region as the first brightness value
  • the brightness value of each sub-region in the second region as the second brightness value.
  • S220 Acquire a first weight corresponding to the first area and a second weight corresponding to the second area.
  • the first weight and the second weight are obtained.
  • the first weight is used to match the first brightness value during the calculation of the brightness statistical value;
  • the second weight is used to match the second brightness value during the calculation of the brightness statistical value. Therefore, the first weight corresponds to the first area, and the second weight corresponds to the second area.
  • the first area is an area containing the target object
  • the second area is an area not containing the target object. Therefore, in order to make the calculation result of the brightness statistical value more affected by the first region, the first weight corresponding to the first region should be greater than the second weight of the second region. If the first weight can be adjusted within the first threshold and the second weight can be adjusted within the second threshold, the lowest value of the first threshold should be greater than the highest value of the second threshold.
  • the first threshold of the first weight may be 1.7 to 1.9; the second threshold of the second weight may be 0.1 to 0.3.
  • S230 Calculate a brightness statistical value according to each first brightness value and first weight, and each second brightness value and second weight.
  • the brightness statistical value is calculated.
  • the brightness statistics value is:
  • Luminance statistical value ⁇ first luminance value ⁇ first weight+ ⁇ second luminance value ⁇ second weight.
  • the brightness statistical value is equal to the cumulative sum of the product of each first brightness value and the first weight, plus the cumulative sum of the product of each second brightness value and the second weight.
  • the calculation of the brightness statistical value in step S200 needs to be based on the first weight and the second weight to obtain the product of the first brightness value and the first weight, and the product of the second brightness value and the second weight.
  • the values of the first weight and the second weight are fixed values, the first weight and the second weight are preset, so that the first weight and the second weight can be obtained when step S220 is executed.
  • the exposure control method of the present application before step S200, further includes:
  • step S008 may include:
  • S0082 Acquire a first number of sub-areas in the first area.
  • the image has been divided into several sub-regions, and each sub-region has been divided.
  • the first area is composed of several sub-areas; the second area is also composed of several sub-areas.
  • the number of sub-regions in the first region is acquired. To facilitate distinction, the number of sub-regions in the first region is named the first number.
  • S0084 Acquire a second number of sub-regions in the image.
  • the total number of sub-regions in the image is named the second number.
  • S0086 Set the first weight and the second weight according to the percentage of the first quantity to the second quantity.
  • the first weight and the second weight are set.
  • the first number accounts for a larger percentage of the second number, it means that the first area in the image occupies a larger area.
  • the percentage of the first quantity to the second quantity is small, it means that the area occupied by the first area in the image is small.
  • the first threshold is 1.7 to 1.9
  • the second threshold is 0.1 to 0.3.
  • the percentage of the first quantity to the second quantity is 80%
  • the first weight is set to 1.7
  • the second weight is set to 0.3
  • the percentage of the first quantity to the second quantity is 40%
  • the first weight is set to 1.9
  • the second weight is set to 0.1.
  • step S300 is specifically: judging the magnitude relationship between the brightness statistical value and the adjustment threshold, and performing exposure adjustment according to the magnitude relationship.
  • the adjustment threshold is also a range of values. In order to be distinguished from the above-mentioned first and second thresholds, we name this threshold as the adjustment threshold.
  • this threshold we name this threshold as the adjustment threshold.
  • the exposure adjustment includes adjusting at least one of an exposure gain, an exposure time, and an aperture of the exposure.
  • the brightness statistical value is greater than the maximum value of the adjustment threshold, it indicates that the brightness of the image is too high. At this time, you can reduce the exposure gain, shorten the exposure time and reduce the aperture. If the brightness statistical value is less than the minimum value of the adjustment threshold, it indicates that the brightness of the image is too low. At this time, you can increase the exposure gain, prolong the exposure time, and increase the aperture. If the brightness statistical value is between the minimum and maximum values of the adjustment threshold, it means that the brightness of the image is normal. At this time, no exposure adjustment is made.
  • the exposure control method of the present application detects the position of the target object in the image in real time, recalculates the brightness statistical value according to the real-time position of the target object, and adjusts the exposure according to the brightness statistical value, so that the exposure adjustment scheme is consistent with the target in the image.
  • the brightness matching degree of the object is higher, and the exposure effect is better.
  • the exposure control device 10 includes an image division module 100, a brightness calculation module 200 and an exposure adjustment module 300.
  • the image dividing module 100 is configured to detect a target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image.
  • the brightness calculation module 200 is configured to calculate the brightness statistical value of the image according to the first area and the second area.
  • the exposure adjustment module 300 is configured to perform exposure adjustment according to the brightness statistical value.
  • the exposure control device 10 of the present application further includes a positioning module 002 and an orientation calculation module 004.
  • the positioning module 002 is positioned to obtain the position information of the target object.
  • the position calculation module 004 is configured to calculate the position information of the target object in the image according to the position information.
  • the image division module 100 is configured to: detect the target object in the captured image according to the position information of the target object in the image; and according to the target object in the image The position in divides the image into a first area and a second area.
  • the positioning module 002 is configured to: obtain map information, the map information has the location mark of the target object; detect the location information of the current location on the map information; Mark the position relative to the positioning information to obtain the position information of the target object.
  • the image division module 100 is configured to obtain the detection feature of the target object; and detect the target object from the captured image according to the detection feature.
  • the exposure control device 10 of the present application further includes a storage module 005 connected to the image dividing module 100.
  • the storage module is configured to pre-store the tags and detection features of the target object.
  • the image division module 100 is configured to obtain the label of the target object, and extract the detection feature of the target object based on the label.
  • the exposure control device 10 of the present application further includes a sub-region dividing module 006.
  • the sub-region dividing module 006 is configured to divide the image into several sub-regions, and the several sub-regions are distributed in an array.
  • the image division module 100 is configured to: determine whether each sub-region is at least partially used to display the target object; if at least part of the sub-region is used to display the target object, The sub-area is divided into the first area; if the sub-area is not used to display the target object, the sub-area is divided into the second area.
  • the brightness calculation module 200 is configured to: obtain the first brightness value of each sub-area in the first area, and obtain the first brightness value of each sub-area in the second area. Two brightness values; obtaining the first weight corresponding to the first region and the second weight corresponding to the second region; calculating the brightness statistical value according to each first brightness value and first weight, and each second brightness value and second weight.
  • the exposure control device 10 of the present application further includes a weight setting module 008.
  • the weight setting module 008 is configured to set a first weight corresponding to the first area and a second weight corresponding to the second area according to the first area and the second area.
  • the weight setting module 008 is configured to: obtain a first number of sub-areas in the first area; obtain a second number of sub-areas in the image; The percentage of the quantity to the second quantity, set the first weight and the second weight.
  • the exposure adjustment module 300 of the above-mentioned exposure control device 10 is configured to determine the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjust the exposure according to the magnitude relationship.
  • the exposure adjustment includes adjusting at least one of exposure gain, exposure time, and aperture.
  • the sub-region dividing module 006 is configured to divide the image into a plurality of sub-regions with the same shape and the same size.
  • the weight setting module 008 is configured to: the first weight is greater than the second weight.
  • the division of the modules in the above exposure control device is only for example. In other embodiments, the exposure control device of the present application can be divided into different modules as needed to complete all or part of the functions of the above exposure control device.
  • Each module in the above-mentioned exposure control device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • this application also provides a computer device.
  • the computer equipment includes a processor, a memory, and a display screen connected through a system bus.
  • the processor is used to provide calculation and control capabilities to support the operation of the entire computer equipment.
  • the memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored in the memory, and the computer program can be executed by a processor to implement the exposure control method suitable for computer equipment provided in the embodiments of the present application.
  • the memory may include non-volatile storage media such as magnetic disks, optical disks, read-only memory (Read-Only Memory, ROM), or random-access-memory (Random-Access-Memory, RAM).
  • the memory includes a non-volatile storage medium and internal memory.
  • the non-volatile storage medium stores an operating system, a database, and a computer program.
  • the database stores data related to implementing an exposure control method provided by the above embodiments, for example, information such as the name of each process or application can be stored.
  • the computer program can be executed by a processor to implement an exposure control method provided by each embodiment of the present application.
  • the internal memory provides a cached operating environment for the operating system, database and computer program in the non-volatile storage medium.
  • the display screen can be a touch screen, such as a capacitive screen or an electronic screen, which is used to display the interface information of the application corresponding to the foreground process. It can also be used to detect touch operations on the display screen and generate corresponding instructions, such as performing front-end and back-end operations. Application switching instructions, etc.
  • Detect the target object in the captured image and divide the image into a first area and a second area according to the position of the target object in the image;
  • the processor further implements the following steps when executing the computer program: acquiring position information of the target object;
  • the orientation information of the target object in the image is calculated.
  • the processor further implements the following steps when executing the computer program: detecting the target object in the captured image according to the position information of the target object in the image.
  • the processor further implements the following steps when executing the computer program: acquiring map information, where the map information has a location mark of the target object;
  • the position information of the target object is obtained.
  • the processor further implements the following steps when executing the computer program: acquiring the detection feature of the target object;
  • the target object is detected from the captured image.
  • the processor further implements the following steps when executing the computer program: pre-store the label and detection feature of the target object; at this time, obtaining the detection feature of the target object includes: obtaining the label of the target object, and extracting the label according to the label. The detection characteristics of the target object.
  • the processor further implements the following steps when executing the computer program: dividing the image into several sub-areas, and the several sub-areas are distributed in an array.
  • the processor further implements the following steps when executing the computer program: judging whether each sub-region is at least partially used to display the target object;
  • the sub-region is divided into the first region.
  • the processor further implements the following steps when executing the computer program: if the sub-region is not used to display the target object, dividing the sub-region into the second region.
  • the processor further implements the following steps when executing the computer program: acquiring the first brightness value of each sub-region in the first region, and acquiring the second brightness value of each sub-region in the second region;
  • the brightness statistical value is calculated according to each first brightness value and the first weight, and each second brightness value and the second weight.
  • the processor further implements the following steps when executing the computer program: according to the first area and the second area, a first weight corresponding to the first area and a second weight corresponding to the second area are set.
  • the processor further implements the following steps when executing the computer program: acquiring the first number of sub-regions in the first region;
  • the first weight and the second weight are set.
  • the first weight is greater than the second weight when the processor executes the computer program.
  • the several sub-regions when the processor executes the computer program, the several sub-regions have the same shape and the same size.
  • the processor further implements the following steps when executing the computer program: judging the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjusting the exposure according to the magnitude relationship.
  • the processor further implements the following steps when executing the computer program: adjusting at least one of the exposure gain, the exposure time, and the aperture of the exposure.
  • the application also provides a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions when the computer-executable instructions are executed by one or more processors, cause the processors to execute the following steps of the exposure control method:
  • Detect the target object in the captured image and divide the image into a first area and a second area according to the position of the target object in the image;
  • the following steps are further implemented: obtaining position information of the target object;
  • the orientation information of the target object in the image is calculated.
  • the following steps are further implemented: detecting the target object in the captured image according to the position information of the target object in the image.
  • the following steps are further implemented: acquiring map information, the map information having the location mark of the target object;
  • the position information of the target object is obtained.
  • the following steps are further implemented: acquiring the detection feature of the target object;
  • the target object is detected from the captured image.
  • the processor further implements the following steps when executing the computer program: pre-store the label and detection feature of the target object; at this time, obtaining the detection feature of the target object includes: obtaining the label of the target object, and extracting the label according to the label. The detection characteristics of the target object.
  • the following steps are further implemented: the image is divided into several sub-areas, and the several sub-areas are distributed in an array.
  • the following steps are further implemented: judging whether each sub-region is at least partially used to display the target object;
  • the sub-region is divided into the first region.
  • the following steps are further implemented: if the sub-region is not used to display the target object, the sub-region is divided into the second region.
  • the following steps are further implemented: obtaining the first brightness value of each sub-area in the first area, and obtaining the second brightness value of each sub-area in the second area;
  • the brightness statistical value is calculated according to each first brightness value and the first weight, and each second brightness value and the second weight.
  • the following steps are further implemented: according to the first area and the second area, a first weight corresponding to the first area and a second weight corresponding to the second area are set.
  • the following steps are further implemented: obtaining the first number of sub-regions in the first region;
  • the first weight and the second weight are set.
  • the first weight is greater than the second weight when the computer program is executed by the processor.
  • the several sub-regions when the computer program is executed by the processor, the several sub-regions have the same shape and the same size.
  • the following steps are further implemented: determining the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjusting the exposure according to the magnitude relationship.
  • the following steps are further implemented: adjusting at least one of the exposure gain, the exposure time, and the aperture of the exposure.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

An exposure control method and apparatus, and a readable storage medium and a computer device. The exposure control method comprises: detecting the position of a target object in an image in real time, and re-calculating a brightness statistical value according to the real-time position of the target object; and performing exposure adjustment according to the brightness statistical value, such that the brightness matching degree of an exposure adjustment scheme and the target object in the image is higher, and the exposure effect is better.

Description

曝光控制方法、装置、可读存储介质及计算机设备Exposure control method, device, readable storage medium and computer equipment 技术领域Technical field
本申请涉及图像处理技术,特别是涉及曝光控制方法、装置、可读存储介质及计算机设备。This application relates to image processing technology, in particular to exposure control methods, devices, readable storage media, and computer equipment.
背景技术Background technique
摄像装置可以用于获取图像,从而便于图像的记录和保存。目前摄像装置已广泛应用于无人机、车载记录仪和手机等电子设备。The camera device can be used to obtain images, thereby facilitating the recording and preservation of the images. At present, camera devices have been widely used in electronic equipment such as drones, vehicle recorders, and mobile phones.
相关技术中,摄像装置在自动曝光时,通常预先将图像划分为关注区域和非关注区域,从而根据关注区域的亮度变化进行曝光调整。In the related art, during the automatic exposure of the camera device, the image is usually divided into the area of interest and the area of non-interest in advance, so that the exposure adjustment is performed according to the brightness change of the area of interest.
发明人在实现相关技术的过程中发现:相关技术中摄像装置的曝光效果较差。In the process of implementing the related technology, the inventor found that the exposure effect of the camera device in the related technology is poor.
发明内容Summary of the invention
本申请实施例提供一种曝光控制方法、装置、可读存储介质及计算机设备,可以提升摄像装置的曝光效果。The embodiments of the present application provide an exposure control method, device, readable storage medium, and computer equipment, which can improve the exposure effect of a camera device.
一种曝光控制方法,包括:An exposure control method, including:
检测所摄取图像中的目标物体,并根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域;Detecting a target object in the captured image, and dividing the image into a first area and a second area according to the position of the target object in the image;
根据所述第一区域和所述第二区域,计算所述图像的亮度统计值;Calculating the brightness statistical value of the image according to the first area and the second area;
根据所述亮度统计值进行曝光调整。The exposure adjustment is performed according to the brightness statistical value.
一种曝光控制装置,包括:An exposure control device, including:
图像划分模块,被配置为检测所摄取图像中的目标物体,并根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域;An image division module configured to detect a target object in a captured image, and divide the image into a first area and a second area according to the position of the target object in the image;
亮度计算模块,被配置为根据所述第一区域和所述第二区域,计算所述 图像的亮度统计值;A brightness calculation module configured to calculate the brightness statistical value of the image according to the first area and the second area;
曝光调整模块,被配置为根据所述亮度统计值进行曝光调整。The exposure adjustment module is configured to perform exposure adjustment according to the brightness statistical value.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中所述的曝光控制方法的步骤。A computer-readable storage medium has a computer program stored thereon, and when the computer program is executed by a processor, the steps of the exposure control method as described in the above-mentioned embodiments are realized.
一种计算机设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如上述实施例中所述的曝光控制方法。A computer device includes a memory and a processor, and the memory stores computer-readable instructions. When the instructions are executed by the processor, the processor executes the exposure control method described in the above-mentioned embodiment .
上述曝光控制方法、装置、可读存储介质及计算机设备,通过检测所摄取图像中的目标物体,并根据目标物体在图像中的位置将图像划分为第一区域和第二区域;根据第一区域和第二区域计算图像的亮度统计值,并根据亮度统计值进行曝光调整。本申请的曝光控制方法、装置、可读存储介质及计算机设备,对图像中目标物体的位置进行实时检测,并根据目标物体的实时位置重新进行亮度统计值的计算,根据亮度统计值进行曝光调整,使曝光调整方案与图像中目标物体的亮度匹配度更高,曝光效果更好。The above exposure control method, device, readable storage medium and computer equipment detect the target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image; according to the first area And the second area calculates the brightness statistics of the image, and adjusts the exposure according to the brightness statistics. The exposure control method, device, readable storage medium and computer equipment of the present application perform real-time detection of the position of the target object in the image, and recalculate the brightness statistical value according to the real-time position of the target object, and adjust the exposure according to the brightness statistical value , Make the brightness matching degree of the exposure adjustment scheme and the target object in the image higher, and the exposure effect is better.
附图说明Description of the drawings
图1为本申请一实施例中提供的曝光控制方法的流程示意图;FIG. 1 is a schematic flowchart of an exposure control method provided in an embodiment of this application;
图2为本申请一实施例中提供的曝光控制方法的流程示意图;2 is a schematic flowchart of an exposure control method provided in an embodiment of the application;
图3为本申请一实施例中提供的曝光控制方法的步骤S002的流程示意图;3 is a schematic flowchart of step S002 of the exposure control method provided in an embodiment of the application;
图4为本申请一实施例中提供的曝光控制方法的流程示意图;4 is a schematic flowchart of an exposure control method provided in an embodiment of the application;
图5为本申请一实施例中提供的曝光控制方法的流程示意图;5 is a schematic flowchart of an exposure control method provided in an embodiment of the application;
图6为本申请一实施例中提供的曝光控制方法的步骤S100的流程示意图;6 is a schematic flowchart of step S100 of the exposure control method provided in an embodiment of the application;
图7为本申请一实施例中提供的曝光控制方法的步骤S200的流程示意图;FIG. 7 is a schematic flowchart of step S200 of the exposure control method provided in an embodiment of the application;
图8为本申请一实施例中提供的曝光控制方法的流程示意图;FIG. 8 is a schematic flowchart of an exposure control method provided in an embodiment of the application;
图9为本申请一实施例中提供的曝光控制方法的步骤S008的流程示意图;9 is a schematic flowchart of step S008 of the exposure control method provided in an embodiment of the application;
图10为本申请一实施例中提供的曝光控制装置的框架结构示意图;10 is a schematic diagram of the frame structure of an exposure control device provided in an embodiment of the application;
图11为本申请一实施例中提供的曝光控制装置的框架结构示意图;11 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application;
图12为本申请一实施例中提供的曝光控制装置的框架结构示意图;12 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application;
图13为本申请一实施例中提供的曝光控制装置的框架结构示意图;13 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application;
图14为申请一实施例中提供的曝光控制装置的框架结构示意图;。14 is a schematic diagram of the frame structure of the exposure control device provided in an embodiment of the application;
具体实施方式Detailed ways
为了便于理解本发明,下面将参照相关附图对本发明进行更全面的描述。附图中给出了本发明的较佳实施例。但是,本发明可以以许多不同的形式来实现,并不限于本文所描述的实施例。相反地,提供这些实施例的目的是使对本发明的公开内容的理解更加透彻全面。In order to facilitate the understanding of the present invention, the present invention will be described more fully below with reference to the relevant drawings. The preferred embodiments of the present invention are shown in the drawings. However, the present invention can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present invention more thorough and comprehensive.
在一些实施例中,本申请提供的曝光控制方法应用于摄像装置。摄像装置在摄取图像的过程中,使用本申请的曝光控制方法,能够根据实时获取的图像进行曝光调整,从而提升曝光效果。In some embodiments, the exposure control method provided by the present application is applied to an imaging device. In the process of capturing an image, the camera device uses the exposure control method of the present application to adjust the exposure according to the image acquired in real time, thereby improving the exposure effect.
请参见图1,在一些实施例中,本申请提供的曝光控制方法可以如图1所示,包括如下步骤:Please refer to FIG. 1. In some embodiments, the exposure control method provided by the present application may be as shown in FIG. 1, and includes the following steps:
S100,检测所摄取图像中的目标物体,并根据目标物体在图像中的位置将图像划分为第一区域和第二区域。S100: Detect a target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image.
所摄取图像是指在摄像装置的工作过程中实时摄取的图像。本申请提供的曝光控制方法,是基于摄像装置当前时刻所摄取的图像,对摄像装置进行曝光调整,从而提升摄像装置在下一刻摄取图像时的曝光效果。目标物体是指所摄取图像中的目标物,例如,在一些实施例中,目标物体是红绿灯;在另一些实施例中,目标物体是移动的动物或人体。The captured image refers to the image captured in real time during the working process of the camera device. The exposure control method provided by the present application is to adjust the exposure of the camera device based on the image taken by the camera device at the current moment, so as to improve the exposure effect of the camera device when the image is taken at the next moment. The target object refers to the target object in the captured image. For example, in some embodiments, the target object is a traffic light; in other embodiments, the target object is a moving animal or human body.
在本申请的一些实施例中,目标物体在所摄取图像中的位置是不断移动的。基于此,本申请的曝光控制方法,在摄取图像后,需要实时检测图像中 的目标物体的位置。In some embodiments of the present application, the position of the target object in the captured image is constantly moving. Based on this, the exposure control method of the present application needs to detect the position of the target object in the image in real time after the image is taken.
本申请的曝光控制方法,在实时检测图像中的目标物体的位置后,还根据目标物体的位置将图像划分为第一区域和第二区域。在一些实施例中,图像的第一区域是包含有目标物体的区域,图像的第二区域是不包含目标物体的区域。需要理解的是,这里的第一和第二仅用于对图像中不同区域的划分,不作其它解释。在其它一些实施例中,也可以图像的第一区域是不包含目标物体的区域,第二区域是包含目标物体的区域,不做限制。In the exposure control method of the present application, after detecting the position of the target object in the image in real time, the image is further divided into a first area and a second area according to the position of the target object. In some embodiments, the first area of the image is an area that contains the target object, and the second area of the image is an area that does not contain the target object. It should be understood that the first and second here are only used to divide different regions in the image, and no other explanation is provided. In some other embodiments, it is also possible that the first area of the image is an area that does not contain the target object, and the second area is an area that contains the target object, which is not limited.
S200,根据第一区域和第二区域,计算图像的亮度统计值。S200: Calculate the brightness statistical value of the image according to the first area and the second area.
亮度统计值是指对所摄取的图像进行亮度统计得到的统计结果。本申请的曝光控制方法,在根据目标物体在图像中的位置将图像划分为第一区域和第二区域后,根据第一区域和第二区域的划分结果,计算图像的亮度统计值。The brightness statistical value refers to the statistical result obtained by performing brightness statistics on the captured image. In the exposure control method of the present application, after the image is divided into the first area and the second area according to the position of the target object in the image, the brightness statistical value of the image is calculated according to the division result of the first area and the second area.
本申请的曝光控制方法,当目标物体在图像中的位置发生变化时,第一区域和第二区域的划分即发生变化;第一区域和第二区域的划分发生变化后,会重新根据第一区域和第二区域计算图像的亮度统计值。该曝光控制方法计算出的图像的亮度统计值是基于目标物体在图像中的实时位置的。In the exposure control method of the present application, when the position of the target object in the image changes, the division of the first area and the second area changes; after the division of the first area and the second area changes, the The area and the second area calculate the brightness statistics of the image. The brightness statistical value of the image calculated by the exposure control method is based on the real-time position of the target object in the image.
S300,根据亮度统计值进行曝光调整。S300: Perform exposure adjustment according to the brightness statistical value.
根据第一区域和第二区域计算图像的亮度统计值后,即可根据计算出的亮度统计值进行曝光调整。After calculating the brightness statistical value of the image according to the first area and the second area, the exposure adjustment can be performed according to the calculated brightness statistical value.
本申请的曝光控制方法,在摄像装置摄取图像的过程中,实时检测图像中目标物体的位置,并将图像划分为第一区域和第二区域。该方法对图像进行划分后,根据第一区域和第二区域的划分结果进行亮度统计值的计算,并根据亮度统计值进行曝光调整。该曝光控制方法,能够使曝光调整方案与图像中目标物体的亮度匹配度更高,从而提升摄像装置的曝光效果。The exposure control method of the present application detects the position of the target object in the image in real time during the process of capturing the image by the camera device, and divides the image into a first area and a second area. After the method divides the image, the brightness statistical value is calculated according to the division result of the first area and the second area, and the exposure adjustment is performed according to the brightness statistical value. The exposure control method can make the brightness matching degree of the exposure adjustment scheme and the target object in the image higher, thereby improving the exposure effect of the camera device.
请参见图2,在一些实施例中,为提升图像中目标物体的检测速率和准确率,本申请的曝光控制方法,其步骤S100之前,还包括:Referring to FIG. 2, in some embodiments, in order to improve the detection rate and accuracy of the target object in the image, the exposure control method of the present application, before step S100, further includes:
S002,获取目标物体的位置信息。S002: Acquire location information of the target object.
在一些实施例中,目标物体是红绿灯等位置固定的物体;使用本申请的 曝光控制方法的摄像装置搭载于车载记录仪或无人机。In some embodiments, the target object is a fixed-position object such as a traffic light; the camera device using the exposure control method of the present application is mounted on a vehicle-mounted recorder or a drone.
本申请的曝光控制方法在执行步骤S100之前,先获取目标物体的位置信息。目标物体的位置信息指目标物体相对于执行本申请的曝光控制方法的摄像装置的位置信息。The exposure control method of the present application first obtains the position information of the target object before performing step S100. The position information of the target object refers to the position information of the target object relative to the imaging device that executes the exposure control method of the present application.
在一些实施例中,获取目标物体的位置信息通过如下方法实现:红外探测装置、紫外探测装置和激光探测装置等的至少一个发射红外线、紫外线或激光对目标物体进行探测,得到目标物体的位置信息,并传递至摄像装置。此时,摄像装置即可获取目标物体的位置信息。In some embodiments, obtaining the location information of the target object is achieved by the following method: at least one of the infrared detection device, the ultraviolet detection device, and the laser detection device emits infrared, ultraviolet or laser to detect the target object to obtain the location information of the target object , And passed to the camera device. At this time, the camera device can obtain the location information of the target object.
在其它一些实施例中,获取目标物体的位置信息通过如下方法实现:通过GPS(Global Positioning System,全球定位***)对摄像装置所在的位置在地图上进行定位;该地图上同时标记有目标物体的位置。此时,摄像装置即可根据地图上目标物体的位置和摄像装置所在的位置,得到目标物体相对于摄像装置的位置信息。In some other embodiments, the location information of the target object is obtained by the following method: GPS (Global Positioning System, Global Positioning System) is used to locate the location of the camera device on a map; the map is marked with the target object at the same time. Location. At this time, the camera device can obtain the position information of the target object relative to the camera device according to the location of the target object on the map and the location of the camera device.
S004,根据位置信息,计算目标物体在图像中的方位信息。S004: Calculate the position information of the target object in the image according to the position information.
获取目标物体相对于摄像装置的位置信息后,根据目标物体的位置信息,计算目标物体在图像中的方位信息。换句话说,本申请的曝光控制方法,根据目标物体的位置信息,以及摄像装置的摄像角度,计算目标物体在摄像装置在所摄取图像中的方位信息。After obtaining the position information of the target object relative to the camera device, the position information of the target object in the image is calculated according to the position information of the target object. In other words, the exposure control method of the present application calculates the orientation information of the target object in the image captured by the camera device based on the position information of the target object and the camera angle of the camera device.
例如,在一些实施例中,摄像装置的镜头方向与运动方向相同,且镜头的中轴线平行于运动方向。此时,若目标物体的位置信息为:目标物***于摄像装置的左上方,则目标物体在图像中的方位信息为:目标物***于所摄取图像的左上方。For example, in some embodiments, the lens direction of the camera device is the same as the movement direction, and the central axis of the lens is parallel to the movement direction. At this time, if the position information of the target object is: the target object is located at the upper left of the imaging device, the orientation information of the target object in the image is: the target object is located at the upper left of the captured image.
基于上述实施例,本申请的曝光控制方法,其步骤S100可以包括:S110,检测所摄取图像中的目标物体,以及S120,根据目标物体在图像中的位置将图像划分为第一区域和第二区域。Based on the above-mentioned embodiment, the exposure control method of the present application, step S100 may include: S110, detecting the target object in the captured image, and S120, dividing the image into a first area and a second area according to the position of the target object in the image. area.
在一些实施例中,S110具体是:根据目标物体在图像中的方位信息,检测所摄取图像中的目标物体。即在步骤S004中,根据位置信息计算目标物体 在图像中的方位信息后,根据该方位信息检测图像中的目标物体。In some embodiments, S110 is specifically: detecting the target object in the captured image according to the orientation information of the target object in the image. That is, in step S004, after calculating the position information of the target object in the image according to the position information, the target object in the image is detected according to the position information.
例如,在一些实施例中,若在步骤S004中已计算出目标物体在图像中的方位信息为:目标物***于所摄取图像的左上方。则在步骤S110中,优先并重点在图像的左上方检测目标物体。For example, in some embodiments, if the position information of the target object in the image has been calculated in step S004, the target object is located at the upper left of the captured image. Then in step S110, priority and focus is on detecting the target object at the upper left of the image.
上述曝光控制方法,在检测图像中的目标物体之前,还根据目标物体的位置信息计算目标物体在图像中的方位信息,从而对步骤S110中的检测提供辅助帮助,提升图像中目标物体的检测速度和准确率。The above exposure control method, before detecting the target object in the image, also calculates the position information of the target object in the image according to the position information of the target object, so as to provide auxiliary assistance to the detection in step S110 and improve the detection speed of the target object in the image And accuracy.
在一些实施例中,上述曝光控制方法,其步骤S002通过GPS(Global Positioning System,全球定位***)定位实现。请参见图3,步骤S002可以包括:In some embodiments, in the above exposure control method, step S002 is implemented by GPS (Global Positioning System, Global Positioning System) positioning. Referring to Fig. 3, step S002 may include:
S0022,获取地图信息,地图信息具有目标物体的位置标记。S0022: Acquire map information, where the map information has a location mark of the target object.
地图信息是指具有摄像装置所在地的地理标志的地图,同时,该地图信息还具有目标物体的位置标记。此时,在地图信息上标记处摄像装置的位置后,即可得到对应位置标记的目标物体相对摄像装置的位置信息。The map information refers to a map with a geographical indication where the camera is located, and at the same time, the map information also has a location mark of the target object. At this time, after the location of the camera device is marked on the map information, the position information of the target object corresponding to the location mark relative to the camera device can be obtained.
在本实施例中,地图信息可以是二维地图,也可以是三维地图,不做限制。In this embodiment, the map information may be a two-dimensional map or a three-dimensional map, without limitation.
S0024,检测当前位置在地图信息上的定位信息。S0024: Detect location information of the current location on the map information.
当前位置是指执行本申请的曝光控制方法的摄像装置当前所在位置。该步骤即在前述地图信息上定位摄像装置的位置。该步骤可以通过GPS(Global Positioning System,全球定位***)对摄像装置进行定位实现。The current location refers to the current location of the camera device that executes the exposure control method of the present application. This step is to locate the location of the camera on the aforementioned map information. This step can be implemented by positioning the camera device through GPS (Global Positioning System, Global Positioning System).
S0026,根据位置标记相对定位信息的位置,得到目标物体的位置信息。S0026: Obtain the position information of the target object according to the position of the position marker relative to the positioning information.
在地图信息上对摄像装置进行定位后,即可根据摄像装置在地图信息上的定位信息,以及目标物体的位置标记,得到目标物体的位置信息。目标物体的位置信息是指目标物体相对于执行本申请的曝光控制方法的摄像装置的位置信息。After the camera device is positioned on the map information, the position information of the target object can be obtained according to the position information of the camera device on the map information and the position mark of the target object. The position information of the target object refers to the position information of the target object relative to the imaging device that executes the exposure control method of the present application.
请参见图4,在一些实施例中,本申请的曝光控制方法,其步骤S100可以包括:S110,检测所摄取图像中的目标物体,以及S120,根据目标物体在 图像中的位置将图像划分为第一区域和第二区域。Referring to FIG. 4, in some embodiments, in the exposure control method of the present application, step S100 may include: S110, detecting a target object in the captured image, and S120, dividing the image into The first area and the second area.
其中,步骤S110包括:Wherein, step S110 includes:
S112,获取目标物体的检测特征。S112: Acquire detection features of the target object.
S114,根据检测特征,从所摄取图像中检测目标物体。S114: Detect a target object from the captured image according to the detection feature.
即本申请的曝光控制方法,可以根据目标物体的检测特征进行目标物体的检测。例如,当目标物体是红绿灯时,目标物体的检测特征可以包括颜色或/和形状。当摄取图像后,即可根据所摄取图像中各物体的颜色和形状,进行目标物体的检测。That is, the exposure control method of the present application can detect the target object according to the detection characteristics of the target object. For example, when the target object is a traffic light, the detection characteristics of the target object may include color or/and shape. After the image is captured, the target object can be detected according to the color and shape of each object in the captured image.
进一步的,请参见图5,步骤S110之前,还可以包括:Further, referring to FIG. 5, before step S110, it may further include:
S005,预存储目标物体的标签及检测特征。S005: Pre-store the label and detection feature of the target object.
即提前在执行本申请的曝光控制方法的摄像装置内存储目标物体的标签和检测特征。例如,目标物体可以包括红绿灯、行人和非机动车的一个或多个。则目标物体的标签分别是:红绿灯、行人和非机动车。其中,对应标签为“红绿灯”的目标物体,存储有红绿灯的检测特征,如形状和颜色。对应标签为“行人”的目标物体,存储有行人的检测特征,如高度和行驶速度、轮廓。对应标签为“非机动车”的目标物体,存储有非机动车的检测特征,如轮廓和行驶速度等。That is, the label and detection feature of the target object are stored in the imaging device that executes the exposure control method of the present application in advance. For example, the target object may include one or more of traffic lights, pedestrians, and non-motorized vehicles. Then the tags of the target objects are: traffic lights, pedestrians and non-motorized vehicles. Among them, corresponding to the target object whose label is "traffic light", the detection characteristics of the traffic light, such as shape and color, are stored. Corresponding to the target object labeled as "pedestrian", the detection features of pedestrians, such as height, driving speed, and contour are stored. Corresponding to the target object labeled "non-motorized vehicle", the detection features of the non-motorized vehicle, such as contour and driving speed, are stored.
此时,在一些实施例中,步骤S112具体包括:At this time, in some embodiments, step S112 specifically includes:
获取待检测物体的标签,并根据标签,提取目标物体的检测特征。Obtain the label of the object to be detected, and extract the detection feature of the target object according to the label.
即摄像装置在执行本申请的曝光控制方法时,可以先获取待检测的目标物体的标签,再根据目标物体的标签,提取目标物体的检测特征,从而进行目标物体的检测。That is, when the camera device executes the exposure control method of the present application, it can first obtain the label of the target object to be detected, and then extract the detection feature of the target object based on the label of the target object, so as to detect the target object.
需要理解的是,本申请的曝光控制方法在获取目标物体的标签时,可以获取一个或多个标签。即本申请的曝光控制方法,可以同时只检测一个目标物体,也可以同时检测多个目标物体。It should be understood that the exposure control method of the present application may obtain one or more tags when obtaining the tags of the target object. That is, in the exposure control method of the present application, only one target object can be detected at the same time, or multiple target objects can be detected at the same time.
请参见图5,在一些实施例中,本申请的曝光控制方法,其步骤S100之前,还可以包括:Referring to FIG. 5, in some embodiments, the exposure control method of the present application, before step S100, may further include:
S006,将图像划分为若干个子区域,若干个子区域呈阵列分布。S006: Divide the image into several sub-areas, and the several sub-areas are distributed in an array.
摄像装置在摄取图像后,本申请的曝光控制方法,还将图像划分为若干个子区域,以便于第一区域和第二区域的划分。这里的若干个指四个或四个以上的整数。若干个子区域同时横向排布和纵向排布,从而呈现阵列分布。After the camera device captures the image, the exposure control method of the present application further divides the image into several sub-areas to facilitate the division of the first area and the second area. Here several refers to four or more integers. Several sub-areas are arranged horizontally and vertically at the same time, thus presenting an array distribution.
例如,在一些实施例中,本申请的曝光控制方法将图像划分为16个子区域,16个子区域呈四行四列分布。在另一些实施例中,本申请的曝光控制方法将图像划分为25个子区域,25个子区域呈五行五列分布。For example, in some embodiments, the exposure control method of the present application divides the image into 16 sub-regions, and the 16 sub-regions are distributed in four rows and four columns. In other embodiments, the exposure control method of the present application divides the image into 25 sub-areas, and the 25 sub-areas are distributed in five rows and five columns.
在一些实施例中,若干个子区域形状相同且大小相等,从而便于后续亮度统计值的计算。在一些实施例中,若干个子区域中的每一个均呈矩形。In some embodiments, the several sub-regions have the same shape and the same size, so as to facilitate the calculation of the subsequent brightness statistics. In some embodiments, each of the several sub-regions is rectangular.
将显示图像划分为若干个子区域后,每个子区域内一般具有若干个发光像素。所有子区域内的发光像素工作发光时构成图像。After the display image is divided into several sub-regions, each sub-region generally has several light-emitting pixels. The light-emitting pixels in all sub-regions constitute an image when they are working and emitting light.
基于上述实施例,本申请的曝光控制方法,其步骤S100可以包括:S110,检测所摄取图像中的目标物体,以及S120,根据目标物体在图像中的位置将图像划分为第一区域和第二区域。Based on the above-mentioned embodiment, the exposure control method of the present application, in step S100, may include: S110, detecting a target object in the captured image, and S120, dividing the image into a first area and a second area according to the position of the target object in the image. area.
请参见图6,步骤S006之后执行步骤S110,步骤S110之后执行步骤S120。Referring to FIG. 6, step S110 is executed after step S006, and step S120 is executed after step S110.
在一些实施例中,步骤S120包括:In some embodiments, step S120 includes:
S122,判断每一子区域是否至少部分用于显示目标物体。S122: Determine whether each sub-region is at least partially used to display the target object.
在步骤S006中,已将图像划分为若干个呈阵列分布的子区域。因此,在划分第一区域和第二区域时,是对图像中的每个子区域进行划分。划分依据为子区域是否至少部分用于显示目标物体。In step S006, the image has been divided into several sub-areas distributed in an array. Therefore, when dividing the first area and the second area, each sub-area in the image is divided. The division is based on whether the sub-region is at least partially used to display the target object.
子区域的至少部分用于显示目标物体,是指该子区域内,至少一个发光像素用于显示目标物体。At least part of the sub-region is used to display the target object, which means that at least one light-emitting pixel in the sub-region is used to display the target object.
S124,若子区域的至少部分用于显示目标物体,则将子区域划分至第一区域。S124: If at least part of the subregion is used to display the target object, divide the subregion into the first region.
若子区域内至少一个发光像素用于显示目标物体,则将该子区域划分至第一区域。在本实施例中,第一区域是图像中包含有目标物体的区域。If at least one light-emitting pixel in the sub-region is used to display the target object, the sub-region is divided into the first region. In this embodiment, the first area is an area containing the target object in the image.
S126,若子区域未用于显示目标物体,则将子区域划分至第二区域。S126: If the sub-region is not used to display the target object, divide the sub-region into the second region.
若子区域内没有任何发光像素用于显示目标物体,则将该子区域划分至第二区域。在本实施例中,第二区域是图像中不包含目标物体的区域。If there is no light-emitting pixel in the sub-region for displaying the target object, the sub-region is divided into the second region. In this embodiment, the second area is an area that does not contain the target object in the image.
上述实施例,通过将所摄取图像划分为若干个子区域,再对每一子区域进行是否至少部分用于显示目标物体的判断,从而将不同子区域进行区分,划分出第一区域和第二区域。该划分方法可以使本申请的曝光控制方法的计算量相对较少。In the above embodiment, the captured image is divided into several sub-regions, and then each sub-region is judged whether at least part of it is used to display the target object, so as to distinguish the different sub-regions, and divide the first region and the second region. . This division method can make the calculation amount of the exposure control method of the present application relatively small.
在其它实施例中,若不将图像划分为若干个子区域,则通过判断每一像素单元是否用于显示目标物体,将用于显示目标物体的像素单元划分至第一区域;将不用于显示目标物体的像素单元划分至第二区域。该划分方法可以使第一区域和第二区域的划分更精确。In other embodiments, if the image is not divided into several sub-regions, the pixel unit used to display the target object is divided into the first region by judging whether each pixel unit is used to display the target object; it will not be used to display the target object. The pixel unit of the object is divided into the second area. This division method can make the division of the first area and the second area more precise.
请参见图7,在一些实施例中,本申请的曝光控制方法,其步骤S200包括:Referring to FIG. 7, in some embodiments, in the exposure control method of the present application, step S200 includes:
S210,获取第一区域内各子区域的第一亮度值,并获取第二区域内各子区域的第二亮度值。S210: Obtain a first brightness value of each sub-areas in the first area, and obtain a second brightness value of each sub-area in the second area.
即以子区域为单位,获取每一子区域内的亮度值。为便于区分,我们将第一区域内各子区域的亮度值命名为第一亮度值;将第二区域内各子区域的亮度值命名为第二亮度值。That is, the brightness value in each sub-area is obtained by taking the sub-area as a unit. To facilitate the distinction, we named the brightness value of each sub-region in the first region as the first brightness value; and named the brightness value of each sub-region in the second region as the second brightness value.
S220,获取第一区域对应的第一权重,以及第二区域对应的第二权重。S220: Acquire a first weight corresponding to the first area and a second weight corresponding to the second area.
即获取第一权重和第二权重。第一权重在亮度统计值的计算过程中用于与第一亮度值相匹配;第二权重在亮度统计值的计算过程中用于与第二亮度值相匹配。因此,第一权重对应第一区域,第二权重对应第二区域。That is, the first weight and the second weight are obtained. The first weight is used to match the first brightness value during the calculation of the brightness statistical value; the second weight is used to match the second brightness value during the calculation of the brightness statistical value. Therefore, the first weight corresponds to the first area, and the second weight corresponds to the second area.
在一些实施例中,第一区域为包含目标物体的区域,第二区域为不包含目标物体的区域。因此,为使亮度统计值的计算结果受第一区域的影响更大,对应第一区域的第一权重应大于第二区域的第二权重。若第一权重可以在第一阈值内调节,第二权重可以在第二阈值内调节,则第一阈值的最低值应大于第二阈值的最高值。例如,第一权重的第一阈值可以是1.7至1.9;第二权重的第二阈值可以是0.1到0.3。In some embodiments, the first area is an area containing the target object, and the second area is an area not containing the target object. Therefore, in order to make the calculation result of the brightness statistical value more affected by the first region, the first weight corresponding to the first region should be greater than the second weight of the second region. If the first weight can be adjusted within the first threshold and the second weight can be adjusted within the second threshold, the lowest value of the first threshold should be greater than the highest value of the second threshold. For example, the first threshold of the first weight may be 1.7 to 1.9; the second threshold of the second weight may be 0.1 to 0.3.
S230,根据各第一亮度值和第一权重,以及各第二亮度值和第二权重计算亮度统计值。S230: Calculate a brightness statistical value according to each first brightness value and first weight, and each second brightness value and second weight.
得到第一区域内各子区域的第一亮度值和第一权重,以及第二区域内各子区域的第二亮度值和第二权重后,计算亮度统计值。在一些实施例中,亮度统计值为:After obtaining the first brightness value and the first weight of each sub-region in the first region, and the second brightness value and the second weight of each sub-region in the second region, the brightness statistical value is calculated. In some embodiments, the brightness statistics value is:
亮度统计值=∑第一亮度值×第一权重+∑第二亮度值×第二权重。Luminance statistical value=Σ first luminance value×first weight+Σ second luminance value×second weight.
换句话说,亮度统计值等于各第一亮度值与第一权重的乘积的累加和,加上,各第二亮度值与第二权重的乘积的累加和。In other words, the brightness statistical value is equal to the cumulative sum of the product of each first brightness value and the first weight, plus the cumulative sum of the product of each second brightness value and the second weight.
在上述实施例中,步骤S200中的亮度统计值的计算,需要基于第一权重和第二权重,得到第一亮度值与第一权重的乘积,及第二亮度值与第二权重的乘积。在一些实施例中,若第一权重和第二权重的值是固定值,则通过预先设定第一权重和第二权重,以使步骤S220执行时,能够获取第一权重和第二权重。In the foregoing embodiment, the calculation of the brightness statistical value in step S200 needs to be based on the first weight and the second weight to obtain the product of the first brightness value and the first weight, and the product of the second brightness value and the second weight. In some embodiments, if the values of the first weight and the second weight are fixed values, the first weight and the second weight are preset, so that the first weight and the second weight can be obtained when step S220 is executed.
在另一些实施例中,若第一权重在第一阈值内调节,第二权重在第二阈值内调节,则在步骤S200之前,还需要根据第一区域和第二区域设置第一权重和第二权重。请参见图8,在一些实施例中,本申请的曝光控制方法,步骤S200之前,还包括:In other embodiments, if the first weight is adjusted within the first threshold and the second weight is adjusted within the second threshold, before step S200, it is also necessary to set the first weight and the second weight according to the first area and the second area. Two weights. Referring to FIG. 8, in some embodiments, the exposure control method of the present application, before step S200, further includes:
S008,根据第一区域和第二区域,设置第一区域对应的第一权重和第二权重。S008: Set the first weight and the second weight corresponding to the first area according to the first area and the second area.
在一些实施例中,根据第一区域和第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重,是指根据第一区域相对所摄取图像的面积占比设置第一权重和第二权重。请参见图9所示,步骤S008可以包括:In some embodiments, according to the first area and the second area, setting the first weight corresponding to the first area and the second weight corresponding to the second area refers to setting the first weight according to the proportion of the first area relative to the area of the captured image. One weight and second weight. As shown in FIG. 9, step S008 may include:
S0082,获取第一区域中子区域的第一数量。S0082: Acquire a first number of sub-areas in the first area.
在上述实施例中,已经将图像划分为若干个子区域,并对每个子区域进行划分。划分后,第一区域由若干个子区域构成;第二区域也由若干个子区域构成。在本实施例中,获取第一区域中子区域的数量。为便于区别,将第一区域中子区域的数量命名为第一数量。In the above embodiment, the image has been divided into several sub-regions, and each sub-region has been divided. After division, the first area is composed of several sub-areas; the second area is also composed of several sub-areas. In this embodiment, the number of sub-regions in the first region is acquired. To facilitate distinction, the number of sub-regions in the first region is named the first number.
S0084,获取图像中子区域的第二数量。S0084: Acquire a second number of sub-regions in the image.
获取图像中子区域的总数量。为便于区别,将图像中子区域的总数量命名为第二数量。Get the total number of sub-regions in the image. To facilitate the distinction, the total number of sub-regions in the image is named the second number.
S0086,根据第一数量占第二数量的百分比,设置第一权重和第二权重。S0086: Set the first weight and the second weight according to the percentage of the first quantity to the second quantity.
根据第一数量占第二数量的百分比,设置第一权重和第二权重。在设置第一权重和第二权重时,若第一数量占第二数量的百分比较大,则表示图像中第一区域所占面积较大。此时可以设置第二权重在第二阈值中偏大,第一权重在第一阈值中偏小,从而提升图像的亮度统计值在第一区域的亮度和第二区域的亮度之间的平衡性。若第一数量占第二数量的百分比较小,则表示图像中第一区域所占面积较小。此时可以设置第二权重在第二阈值中偏小,第一权重在第一阈值中偏大,从而提升第一区域对亮度统计值的影响能力,使曝光调整受第一区域的亮度影响更大。According to the percentage of the first quantity to the second quantity, the first weight and the second weight are set. When setting the first weight and the second weight, if the first number accounts for a larger percentage of the second number, it means that the first area in the image occupies a larger area. At this time, you can set the second weight to be larger in the second threshold, and the first weight to be smaller in the first threshold, so as to improve the balance of the brightness statistics of the image between the brightness of the first area and the brightness of the second area. . If the percentage of the first quantity to the second quantity is small, it means that the area occupied by the first area in the image is small. At this time, you can set the second weight to be smaller in the second threshold, and the first weight to be larger in the first threshold, so as to improve the ability of the first area to influence the brightness statistics and make the exposure adjustment more affected by the brightness of the first area. Big.
例如,在一些实施例中,第一阈值为1.7至1.9,第二阈值为0.1至0.3。此时,若第一数量占第二数量的百分比为80%,则设置第一权重为1.7;第二权重为0.3。若第一数量占第二数量的百分比为40%,则设置第一权重为1.9;第二权重为0.1。For example, in some embodiments, the first threshold is 1.7 to 1.9, and the second threshold is 0.1 to 0.3. At this time, if the percentage of the first quantity to the second quantity is 80%, the first weight is set to 1.7; the second weight is set to 0.3. If the percentage of the first quantity to the second quantity is 40%, the first weight is set to 1.9; the second weight is set to 0.1.
上述数值仅是对本申请的第一权重和第二权重的一些举例,在具体实施时,本领域技术人员对上述数值做出的适应性改变都应理解为在本申请的保护范围之内。The above-mentioned values are only some examples of the first weight and the second weight of the present application. In specific implementation, any adaptive changes made by those skilled in the art to the above-mentioned values should be understood as being within the protection scope of the present application.
在一个实施例中,本申请的曝光控制方法,其步骤S300具体是:判断亮度统计值与调整阈值的大小关系,根据大小关系进行曝光调整。In one embodiment, in the exposure control method of the present application, step S300 is specifically: judging the magnitude relationship between the brightness statistical value and the adjustment threshold, and performing exposure adjustment according to the magnitude relationship.
调整阈值也是一个数值范围,为便于与上述第一阈值和第二阈值进行区别,我们将该阈值命名为调整阈值。当亮度统计值在调整阈值的范围内时,则不需要对摄像装置进行曝光调整;反之,若亮度统计值超出调整阈值的范围,则需要对摄像装置进行曝光调整。The adjustment threshold is also a range of values. In order to be distinguished from the above-mentioned first and second thresholds, we name this threshold as the adjustment threshold. When the brightness statistical value is within the range of the adjustment threshold, the camera device does not need to be adjusted for exposure; on the contrary, if the brightness statistical value exceeds the range of the adjustment threshold, the camera device needs to be adjusted for exposure.
在一些实施例中,曝光调整包括调整曝光的曝光增益、曝光时间和光圈的至少一个。In some embodiments, the exposure adjustment includes adjusting at least one of an exposure gain, an exposure time, and an aperture of the exposure.
例如,若亮度统计值大于调整阈值的最大值,则表示图像的亮度过大。此时,可以减小曝光增益、缩短曝光时间和调小光圈。若亮度统计值小于调整阈值的最小值,则表示图像的亮度过低,此时,可以增大曝光增益、延长曝光时间和增大光圈。若亮度统计值在调整阈值的最小值和最大值之间,则表示图像的亮度正常。此时,不做曝光调整。For example, if the brightness statistical value is greater than the maximum value of the adjustment threshold, it indicates that the brightness of the image is too high. At this time, you can reduce the exposure gain, shorten the exposure time and reduce the aperture. If the brightness statistical value is less than the minimum value of the adjustment threshold, it indicates that the brightness of the image is too low. At this time, you can increase the exposure gain, prolong the exposure time, and increase the aperture. If the brightness statistical value is between the minimum and maximum values of the adjustment threshold, it means that the brightness of the image is normal. At this time, no exposure adjustment is made.
本申请的曝光控制方法,通过对图像中目标物体的位置进行实时检测,并根据目标物体的实时位置重新进行亮度统计值的计算,根据亮度统计值进行曝光调整,使曝光调整方案与图像中目标物体的亮度匹配度更高,曝光效果更好。The exposure control method of the present application detects the position of the target object in the image in real time, recalculates the brightness statistical value according to the real-time position of the target object, and adjusts the exposure according to the brightness statistical value, so that the exposure adjustment scheme is consistent with the target in the image. The brightness matching degree of the object is higher, and the exposure effect is better.
请参见图10,在一些实施例中,本申请还提供一种曝光控制装置10。该曝光控制装置10包括图像划分模块100、亮度计算模块200和曝光调整模块300。Please refer to FIG. 10. In some embodiments, the present application also provides an exposure control device 10. The exposure control device 10 includes an image division module 100, a brightness calculation module 200 and an exposure adjustment module 300.
其中,图像划分模块100被配置为检测所摄取图像中的目标物体,并根据目标物体在图像中的位置将图像划分为第一区域和第二区域。Wherein, the image dividing module 100 is configured to detect a target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image.
亮度计算模块200被配置为根据第一区域和第二区域,计算图像的亮度统计值。The brightness calculation module 200 is configured to calculate the brightness statistical value of the image according to the first area and the second area.
曝光调整模块300被配置为根据亮度统计值进行曝光调整。The exposure adjustment module 300 is configured to perform exposure adjustment according to the brightness statistical value.
请参见图11所示,在一些实施例中,本申请的曝光控制装置10还包括定位模块002和方位计算模块004。As shown in FIG. 11, in some embodiments, the exposure control device 10 of the present application further includes a positioning module 002 and an orientation calculation module 004.
其中,定位模块002被位置为获取目标物体的位置信息。Wherein, the positioning module 002 is positioned to obtain the position information of the target object.
方位计算模块004被配置为根据位置信息计算目标物体在图像中的方位信息。The position calculation module 004 is configured to calculate the position information of the target object in the image according to the position information.
在一些实施例中,基于图11所示的曝光控制装置10,图像划分模块100被配置为:根据目标物体在图像中的方位信息,检测所摄取图像中的目标物体;并根据目标物体在图像中的位置将图像划分为第一区域和第二区域。In some embodiments, based on the exposure control device 10 shown in FIG. 11, the image division module 100 is configured to: detect the target object in the captured image according to the position information of the target object in the image; and according to the target object in the image The position in divides the image into a first area and a second area.
在一些实施例中,基于图11所示的曝光控制装置10,定位模块002被配置为:获取地图信息,地图信息具有目标物体的位置标记;检测当前位置 在地图信息上的定位信息;根据位置标记相对定位信息的位置,得到目标物体的位置信息。In some embodiments, based on the exposure control device 10 shown in FIG. 11, the positioning module 002 is configured to: obtain map information, the map information has the location mark of the target object; detect the location information of the current location on the map information; Mark the position relative to the positioning information to obtain the position information of the target object.
在一些实施例中,基于图10或图11所示的曝光控制装置10,图像划分模块100被配置为获取目标物体的检测特征;根据所述检测特征,从所摄取图像中检测目标物体。In some embodiments, based on the exposure control device 10 shown in FIG. 10 or FIG. 11, the image division module 100 is configured to obtain the detection feature of the target object; and detect the target object from the captured image according to the detection feature.
进一步的,请参见图12所示,本申请的曝光控制装置10,还包括与图像划分模块100连接的存储模块005。该存储模块被被配置为预存储目标物体的标签及检测特征。Further, referring to FIG. 12, the exposure control device 10 of the present application further includes a storage module 005 connected to the image dividing module 100. The storage module is configured to pre-store the tags and detection features of the target object.
基于图12所示的曝光控制装置10,图像划分模块100被配置为获取目标物体的标签,并根据标签,提取目标物体的检测特征。Based on the exposure control device 10 shown in FIG. 12, the image division module 100 is configured to obtain the label of the target object, and extract the detection feature of the target object based on the label.
请参见图13所示,在一些实施例中,本申请的曝光控制装置10还包括子区域划分模块006。As shown in FIG. 13, in some embodiments, the exposure control device 10 of the present application further includes a sub-region dividing module 006.
其中,子区域划分模块006被配置为将图像划分为若干个子区域,且若干个子区域呈阵列分布。Wherein, the sub-region dividing module 006 is configured to divide the image into several sub-regions, and the several sub-regions are distributed in an array.
在一些实施例中,基于图10所示的曝光控制装置10,图像划分模块100被配置为:判断每一子区域是否至少部分用于显示目标物体;若子区域的至少部分用于显示目标物体,则将子区域划分至第一区域;若子区域未用于显示目标物体,则将子区域划分至第二区域。In some embodiments, based on the exposure control device 10 shown in FIG. 10, the image division module 100 is configured to: determine whether each sub-region is at least partially used to display the target object; if at least part of the sub-region is used to display the target object, The sub-area is divided into the first area; if the sub-area is not used to display the target object, the sub-area is divided into the second area.
在一些实施例中,基于图13所示的曝光控制装置10,亮度计算模块200被配置为:获取第一区域内各子区域的第一亮度值,并获取第二区域内各子区域的第二亮度值;获取第一区域对应的第一权重,以及第二区域对应的第二权重;根据各第一亮度值和第一权重,以及各第二亮度值和第二权重计算亮度统计值。In some embodiments, based on the exposure control device 10 shown in FIG. 13, the brightness calculation module 200 is configured to: obtain the first brightness value of each sub-area in the first area, and obtain the first brightness value of each sub-area in the second area. Two brightness values; obtaining the first weight corresponding to the first region and the second weight corresponding to the second region; calculating the brightness statistical value according to each first brightness value and first weight, and each second brightness value and second weight.
请参见图14所示,在一些实施例中,本申请的曝光控制装置10还包括权重设置模块008。As shown in FIG. 14, in some embodiments, the exposure control device 10 of the present application further includes a weight setting module 008.
其中,权重设置模块008被配置为:根据第一区域和第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重。Wherein, the weight setting module 008 is configured to set a first weight corresponding to the first area and a second weight corresponding to the second area according to the first area and the second area.
在一些实施例中,基于图14所示的曝光控制装置10,权重设置模块008被配置为:获取第一区域中子区域的第一数量;获取图像中子区域的第二数量;根据第一数量占第二数量的百分比,设置第一权重和第二权重。In some embodiments, based on the exposure control device 10 shown in FIG. 14, the weight setting module 008 is configured to: obtain a first number of sub-areas in the first area; obtain a second number of sub-areas in the image; The percentage of the quantity to the second quantity, set the first weight and the second weight.
在一些实施例中,上述曝光控制装置10,其曝光调整模块300被配置为:判断亮度统计值与调整阈值的大小关系,根据大小关系进行曝光调整。其中,曝光调整包括调整曝光的曝光增益、曝光时间和光圈的至少一个。In some embodiments, the exposure adjustment module 300 of the above-mentioned exposure control device 10 is configured to determine the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjust the exposure according to the magnitude relationship. Wherein, the exposure adjustment includes adjusting at least one of exposure gain, exposure time, and aperture.
在一些实施例中,上述曝光控制装置10,子区域划分模块006被配置为:将图像划分为若干个形状相同且大小相等的子区域。权重设置模块008被配置为:第一权重大于第二权重。In some embodiments, in the above-mentioned exposure control device 10, the sub-region dividing module 006 is configured to divide the image into a plurality of sub-regions with the same shape and the same size. The weight setting module 008 is configured to: the first weight is greater than the second weight.
上述曝光控制装置10,其实现原理和技术效果与上述曝光控制方法相同,在此不再赘述。The implementation principle and technical effect of the above-mentioned exposure control device 10 are the same as those of the above-mentioned exposure control method, and will not be repeated here.
上述曝光控制装置中的各个模块的划分仅用于举例,在其它实施例中,可将本申请的曝光控制装置按照需要划分为不同的模块,以完成上述曝光控制装置的全部或部分功能。The division of the modules in the above exposure control device is only for example. In other embodiments, the exposure control device of the present application can be divided into different modules as needed to complete all or part of the functions of the above exposure control device.
上述曝光控制装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Each module in the above-mentioned exposure control device can be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
在一些实施例中,本申请还提供一种计算机设备。该计算机设备包括通过***总线连接的处理器、存储器和显示屏。其中,该处理器用于提供计算和控制能力,支撑整个计算机设备的运行。存储器用于存储数据、程序、和/或指令代码等,存储器上存储至少一个计算机程序,该计算机程序可被处理器执行,以实现本申请实施例中提供的适用于计算机设备的曝光控制方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random-Access-Memory,RAM)等。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器。非易失性存储介质存储有操作***、数据库和计算机程序。该数据库中存储有用于 实现以上各实施例所提供的一种曝光控制方法相关的数据,比如可存储有每个进程或应用的名称等信息。该计算机程序可被处理器所执行,以用于实现本申请各实施例所提供的一种曝光控制方法。内存储器为非易失性存储介质中的操作***、数据库和计算机程序提供高速缓存的运行环境。显示屏可以是触摸屏,比如为电容屏或电子屏,用于显示前台进程对应的应用的界面信息,还可以被用于检测作用于该显示屏的触摸操作,生成相应的指令,比如进行前后台应用的切换指令等。In some embodiments, this application also provides a computer device. The computer equipment includes a processor, a memory, and a display screen connected through a system bus. Among them, the processor is used to provide calculation and control capabilities to support the operation of the entire computer equipment. The memory is used to store data, programs, and/or instruction codes, etc., and at least one computer program is stored in the memory, and the computer program can be executed by a processor to implement the exposure control method suitable for computer equipment provided in the embodiments of the present application. The memory may include non-volatile storage media such as magnetic disks, optical disks, read-only memory (Read-Only Memory, ROM), or random-access-memory (Random-Access-Memory, RAM). For example, in one embodiment, the memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, a database, and a computer program. The database stores data related to implementing an exposure control method provided by the above embodiments, for example, information such as the name of each process or application can be stored. The computer program can be executed by a processor to implement an exposure control method provided by each embodiment of the present application. The internal memory provides a cached operating environment for the operating system, database and computer program in the non-volatile storage medium. The display screen can be a touch screen, such as a capacitive screen or an electronic screen, which is used to display the interface information of the application corresponding to the foreground process. It can also be used to detect touch operations on the display screen and generate corresponding instructions, such as performing front-end and back-end operations. Application switching instructions, etc.
在本申请的实施例中,该计算机设备所包括的处理器执行存储在存储器上的计算机程序时实现以下步骤:In the embodiment of the present application, when the processor included in the computer device executes the computer program stored in the memory, the following steps are implemented:
检测所摄取图像中的目标物体,并根据目标物体在图像中的位置将图像划分为第一区域和第二区域;Detect the target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image;
根据第一区域和第二区域,计算图像的亮度统计值;Calculate the brightness statistical value of the image according to the first area and the second area;
根据亮度统计值进行曝光调整。Adjust the exposure according to the brightness statistics.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:获取目标物体的位置信息;In some embodiments, the processor further implements the following steps when executing the computer program: acquiring position information of the target object;
根据位置信息,计算目标物体在图像中的方位信息。According to the position information, the orientation information of the target object in the image is calculated.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:根据目标物体在图像中的方位信息,检测所摄取图像中的目标物体。In some embodiments, the processor further implements the following steps when executing the computer program: detecting the target object in the captured image according to the position information of the target object in the image.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:获取地图信息,地图信息具有目标物体的位置标记;In some embodiments, the processor further implements the following steps when executing the computer program: acquiring map information, where the map information has a location mark of the target object;
检测当前位置在地图信息上的定位信息;Detect the location information of the current location on the map information;
根据位置标记相对定位信息的位置,得到目标物体的位置信息。According to the position of the position marker relative to the positioning information, the position information of the target object is obtained.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:获取目标物体的检测特征;In some embodiments, the processor further implements the following steps when executing the computer program: acquiring the detection feature of the target object;
根据检测特征,从所摄取图像中检测目标物体。According to the detection feature, the target object is detected from the captured image.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:预存储目标物体的标签及检测特征;此时,获取目标物体的检测特征,包括:获取目 标物体的标签,并根据标签,提取目标物体的检测特征。In some embodiments, the processor further implements the following steps when executing the computer program: pre-store the label and detection feature of the target object; at this time, obtaining the detection feature of the target object includes: obtaining the label of the target object, and extracting the label according to the label. The detection characteristics of the target object.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:将图像划分为若干个子区域,若干个子区域呈阵列分布。In some embodiments, the processor further implements the following steps when executing the computer program: dividing the image into several sub-areas, and the several sub-areas are distributed in an array.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:判断每一子区域是否至少部分用于显示目标物体;In some embodiments, the processor further implements the following steps when executing the computer program: judging whether each sub-region is at least partially used to display the target object;
若子区域的至少部分用于显示目标物体,则将子区域划分至第一区域。If at least part of the sub-region is used to display the target object, the sub-region is divided into the first region.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:若子区域未用于显示目标物体,则将子区域划分至第二区域。In some embodiments, the processor further implements the following steps when executing the computer program: if the sub-region is not used to display the target object, dividing the sub-region into the second region.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:获取第一区域内各子区域的第一亮度值,并获取第二区域内各子区域的第二亮度值;In some embodiments, the processor further implements the following steps when executing the computer program: acquiring the first brightness value of each sub-region in the first region, and acquiring the second brightness value of each sub-region in the second region;
获取第一区域对应的第一权重,以及第二区域对应的第二权重;Acquiring the first weight corresponding to the first area and the second weight corresponding to the second area;
根据各第一亮度值和第一权重,以及各第二亮度值和第二权重计算亮度统计值。The brightness statistical value is calculated according to each first brightness value and the first weight, and each second brightness value and the second weight.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:根据第一区域和第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重。In some embodiments, the processor further implements the following steps when executing the computer program: according to the first area and the second area, a first weight corresponding to the first area and a second weight corresponding to the second area are set.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:获取第一区域中子区域的第一数量;In some embodiments, the processor further implements the following steps when executing the computer program: acquiring the first number of sub-regions in the first region;
获取图像中子区域的第二数量;Acquiring the second number of sub-regions in the image;
根据第一数量占第二数量的百分比,设置第一权重和第二权重。According to the percentage of the first quantity to the second quantity, the first weight and the second weight are set.
在一些实施例中,处理器执行计算机程序时第一权重大于第二权重。In some embodiments, the first weight is greater than the second weight when the processor executes the computer program.
在一些实施例中,处理器执行计算机程序时若干个子区域形状相同且大小相等。In some embodiments, when the processor executes the computer program, the several sub-regions have the same shape and the same size.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:判断亮度统计值与调整阈值的大小关系,根据大小关系进行曝光调整。In some embodiments, the processor further implements the following steps when executing the computer program: judging the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjusting the exposure according to the magnitude relationship.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:调整曝光的曝光增益、曝光时间和光圈的至少一个。In some embodiments, the processor further implements the following steps when executing the computer program: adjusting at least one of the exposure gain, the exposure time, and the aperture of the exposure.
本申请还提供了一种计算机可读存储介质。一个或多个包含计算机可执 行指令的非易失性计算机可读存储介质,当计算机可执行指令被一个或多个处理器执行时,使得处理器执行以下曝光控制方法的步骤:The application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to execute the following steps of the exposure control method:
检测所摄取图像中的目标物体,并根据目标物体在图像中的位置将图像划分为第一区域和第二区域;Detect the target object in the captured image, and divide the image into a first area and a second area according to the position of the target object in the image;
根据第一区域和第二区域,计算图像的亮度统计值;Calculate the brightness statistical value of the image according to the first area and the second area;
根据亮度统计值进行曝光调整。Adjust the exposure according to the brightness statistics.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:获取目标物体的位置信息;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: obtaining position information of the target object;
根据位置信息,计算目标物体在图像中的方位信息。According to the position information, the orientation information of the target object in the image is calculated.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:根据目标物体在图像中的方位信息,检测所摄取图像中的目标物体。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: detecting the target object in the captured image according to the position information of the target object in the image.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:获取地图信息,地图信息具有目标物体的位置标记;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: acquiring map information, the map information having the location mark of the target object;
检测当前位置在地图信息上的定位信息;Detect the location information of the current location on the map information;
根据位置标记相对定位信息的位置,得到目标物体的位置信息。According to the position of the position marker relative to the positioning information, the position information of the target object is obtained.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:获取目标物体的检测特征;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: acquiring the detection feature of the target object;
根据检测特征,从所摄取图像中检测目标物体。According to the detection feature, the target object is detected from the captured image.
在一些实施例中,处理器执行计算机程序时还实现以下步骤:预存储目标物体的标签及检测特征;此时,获取目标物体的检测特征,包括:获取目标物体的标签,并根据标签,提取目标物体的检测特征。In some embodiments, the processor further implements the following steps when executing the computer program: pre-store the label and detection feature of the target object; at this time, obtaining the detection feature of the target object includes: obtaining the label of the target object, and extracting the label according to the label. The detection characteristics of the target object.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:将图像划分为若干个子区域,若干个子区域呈阵列分布。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: the image is divided into several sub-areas, and the several sub-areas are distributed in an array.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:判断每一子区域是否至少部分用于显示目标物体;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: judging whether each sub-region is at least partially used to display the target object;
若子区域的至少部分用于显示目标物体,则将子区域划分至第一区域。If at least part of the sub-region is used to display the target object, the sub-region is divided into the first region.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:若子区 域未用于显示目标物体,则将子区域划分至第二区域。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: if the sub-region is not used to display the target object, the sub-region is divided into the second region.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:获取第一区域内各子区域的第一亮度值,并获取第二区域内各子区域的第二亮度值;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: obtaining the first brightness value of each sub-area in the first area, and obtaining the second brightness value of each sub-area in the second area;
获取第一区域对应的第一权重,以及第二区域对应的第二权重;Acquiring the first weight corresponding to the first area and the second weight corresponding to the second area;
根据各第一亮度值和第一权重,以及各第二亮度值和第二权重计算亮度统计值。The brightness statistical value is calculated according to each first brightness value and the first weight, and each second brightness value and the second weight.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:根据第一区域和第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: according to the first area and the second area, a first weight corresponding to the first area and a second weight corresponding to the second area are set.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:获取第一区域中子区域的第一数量;In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: obtaining the first number of sub-regions in the first region;
获取图像中子区域的第二数量;Acquiring the second number of sub-regions in the image;
根据第一数量占第二数量的百分比,设置第一权重和第二权重。According to the percentage of the first quantity to the second quantity, the first weight and the second weight are set.
在一些实施例中,计算机程序被处理器执行时第一权重大于第二权重。In some embodiments, the first weight is greater than the second weight when the computer program is executed by the processor.
在一些实施例中,计算机程序被处理器执行时若干个子区域形状相同且大小相等。In some embodiments, when the computer program is executed by the processor, the several sub-regions have the same shape and the same size.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:判断亮度统计值与调整阈值的大小关系,根据大小关系进行曝光调整。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: determining the magnitude relationship between the brightness statistical value and the adjustment threshold, and adjusting the exposure according to the magnitude relationship.
在一些实施例中,计算机程序被处理器执行时还实现以下步骤:调整曝光的曝光增益、曝光时间和光圈的至少一个。In some embodiments, when the computer program is executed by the processor, the following steps are further implemented: adjusting at least one of the exposure gain, the exposure time, and the aperture of the exposure.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路 (Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other media used in this application may include non-volatile and/or volatile memory. Suitable non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
上述实施例提供的计算机可读存储介质,其实现原理和技术效果与上述方法实施例类似,在此不再赘述。The implementation principles and technical effects of the computer-readable storage medium provided by the foregoing embodiment are similar to those of the foregoing method embodiment, and will not be repeated here.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the various technical features in the above-mentioned embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, All should be considered as the scope of this specification.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation modes of the present invention, and their description is relatively specific and detailed, but they should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, and these all fall within the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention should be subject to the appended claims.

Claims (22)

  1. 一种曝光控制方法,其特征在于,包括:An exposure control method is characterized in that it comprises:
    检测所摄取图像中的目标物体,并根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域;Detecting a target object in the captured image, and dividing the image into a first area and a second area according to the position of the target object in the image;
    根据所述第一区域和所述第二区域,计算所述图像的亮度统计值;Calculating the brightness statistical value of the image according to the first area and the second area;
    根据所述亮度统计值进行曝光调整。The exposure adjustment is performed according to the brightness statistical value.
  2. 根据权利要求1所述的曝光控制方法,其特征在于,所述检测所摄取图像中的目标物体之前,还包括:The exposure control method according to claim 1, wherein before the detecting the target object in the captured image, the method further comprises:
    获取所述目标物体的位置信息;Acquiring position information of the target object;
    根据所述位置信息,计算所述目标物体在所述图像中的方位信息。According to the position information, the position information of the target object in the image is calculated.
  3. 根据权利要求2所述的曝光控制方法,其特征在于,所述检测所摄取图像中的目标物体,包括:The exposure control method according to claim 2, wherein the detecting the target object in the captured image comprises:
    根据所述目标物体在所述图像中的方位信息,检测所摄取图像中的目标物体。According to the orientation information of the target object in the image, the target object in the captured image is detected.
  4. 根据权利要求2或3所述的曝光控制方法,其特征在于,所述获取所述目标物体的位置信息,包括:The exposure control method according to claim 2 or 3, wherein the acquiring position information of the target object comprises:
    获取地图信息,所述地图信息具有所述目标物体的位置标记;Acquiring map information, the map information having a location mark of the target object;
    检测当前位置在所述地图信息上的定位信息;Detecting the location information of the current location on the map information;
    根据所述位置标记相对所述定位信息的位置,得到所述目标物体的位置信息。According to the position of the position marker relative to the positioning information, the position information of the target object is obtained.
  5. 根据权利要求1所述的曝光控制方法,其特征在于,所述检测所摄取图像中的目标物体,包括:The exposure control method according to claim 1, wherein the detecting the target object in the captured image comprises:
    获取所述目标物体的检测特征;Acquiring the detection feature of the target object;
    根据所述检测特征,从所摄取图像中检测所述目标物体。According to the detection feature, the target object is detected from the captured image.
  6. 根据权利要求5所述的曝光控制方法,其特征在于,所述检测所摄取图像中的目标物体之前,还包括:The exposure control method according to claim 5, wherein before the detecting the target object in the captured image, the method further comprises:
    预存储所述目标物体的标签及检测特征;Pre-store the label and detection feature of the target object;
    所述获取所述目标物体的检测特征,包括:The acquiring the detection feature of the target object includes:
    获取目标物体的标签,并根据所述标签,提取所述目标物体的检测特征。The label of the target object is acquired, and the detection feature of the target object is extracted according to the label.
  7. 根据权利要求1所述的曝光控制方法,其特征在于,所述根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域之前,还包括:The exposure control method according to claim 1, wherein before dividing the image into a first area and a second area according to the position of the target object in the image, the method further comprises:
    将所述图像划分为若干个子区域,所述若干个子区域呈阵列分布。The image is divided into several sub-areas, and the several sub-areas are distributed in an array.
  8. 根据权利要求7所述的曝光控制方法,其特征在于,所述根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域,包括:The exposure control method according to claim 7, wherein the dividing the image into a first area and a second area according to the position of the target object in the image comprises:
    判断每一所述子区域是否至少部分用于显示所述目标物体;Determining whether each of the sub-regions is at least partially used to display the target object;
    若所述子区域的至少部分用于显示所述目标物体,则将所述子区域划分至第一区域。If at least part of the sub-region is used to display the target object, the sub-region is divided into the first region.
  9. 根据权利要求8所述的曝光控制方法,其特征在于,所述根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域,还包括:The exposure control method according to claim 8, wherein the dividing the image into a first area and a second area according to the position of the target object in the image further comprises:
    若所述子区域未用于显示所述目标物体,则将所述子区域划分至第二区域。If the sub-region is not used to display the target object, the sub-region is divided into a second region.
  10. 根据权利要求9所述的曝光控制方法,其特征在于,所述根据所述第一区域和所述第二区域,计算所述图像的亮度统计值,包括:The exposure control method according to claim 9, wherein the calculating the brightness statistical value of the image according to the first area and the second area comprises:
    获取所述第一区域内各子区域的第一亮度值,并获取所述第二区域内各子区域的第二亮度值;Acquiring a first brightness value of each sub-region in the first region, and acquiring a second brightness value of each sub-region in the second region;
    获取所述第一区域对应的第一权重,以及所述第二区域对应的第二权重;Acquiring a first weight corresponding to the first area and a second weight corresponding to the second area;
    根据各所述第一亮度值和所述第一权重,以及各所述第二亮度值和所述第二权重计算所述亮度统计值。The brightness statistical value is calculated according to each of the first brightness value and the first weight, and each of the second brightness value and the second weight.
  11. 根据权利要求9所述的曝光控制方法,其特征在于,所述根据所述第一区域和所述第二区域,计算所述图像的亮度统计值之前,还包括:The exposure control method according to claim 9, wherein before calculating the brightness statistical value of the image according to the first area and the second area, the method further comprises:
    根据所述第一区域和所述第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重。According to the first area and the second area, a first weight corresponding to the first area and a second weight corresponding to the second area are set.
  12. 根据权利要求11所述的曝光控制方法,其特征在于,所述根据所述第一区域和所述第二区域,设置第一区域对应的第一权重和第二区域对应的第二权重包括:The exposure control method according to claim 11, wherein the setting a first weight corresponding to the first area and a second weight corresponding to the second area according to the first area and the second area comprises:
    获取所述第一区域中所述子区域的第一数量;Acquiring the first number of the sub-regions in the first region;
    获取所述图像中所述子区域的第二数量;Acquiring the second number of the sub-regions in the image;
    根据所述第一数量占所述第二数量的百分比,设置所述第一权重和所述第二权重。The first weight and the second weight are set according to the percentage of the first number to the second number.
  13. 根据权利要求10至12任意一项所述的曝光控制方法,其特征在于,所述第一权重大于所述第二权重。The exposure control method according to any one of claims 10 to 12, wherein the first weight is greater than the second weight.
  14. 根据权利要求7所述的曝光控制方法,其特征在于,所述若干个子区域形状相同且大小相等。8. The exposure control method according to claim 7, wherein the plurality of sub-regions have the same shape and the same size.
  15. 根据权利要求1所述的曝光控制方法,其特征在于,所述根据所述亮度统计值进行曝光调整,包括:The exposure control method according to claim 1, wherein the performing exposure adjustment according to the brightness statistical value comprises:
    判断所述亮度统计值与调整阈值的大小关系,根据所述大小关系进行曝光调整。The magnitude relationship between the brightness statistical value and the adjustment threshold is determined, and the exposure adjustment is performed according to the magnitude relationship.
  16. 根据权利要求1或15所述的曝光控制方法,其特征在于,所述曝光调整包括:The exposure control method according to claim 1 or 15, wherein the exposure adjustment comprises:
    调整曝光的曝光增益、曝光时间和光圈的至少一个。Adjust at least one of the exposure gain, exposure time, and aperture of the exposure.
  17. 一种曝光控制装置,其特征在于,包括:An exposure control device, characterized in that it comprises:
    图像划分模块,被配置为检测所摄取图像中的目标物体,并根据所述目标物体在所述图像中的位置将所述图像划分为第一区域和第二区域;An image division module configured to detect a target object in a captured image, and divide the image into a first area and a second area according to the position of the target object in the image;
    亮度计算模块,被配置为根据所述第一区域和所述第二区域,计算所述图像的亮度统计值;A brightness calculation module configured to calculate the brightness statistical value of the image according to the first area and the second area;
    曝光调整模块,被配置为根据所述亮度统计值进行曝光调整。The exposure adjustment module is configured to perform exposure adjustment according to the brightness statistical value.
  18. 根据权利要求17所述的曝光控制装置,其特征在于,还包括:17. The exposure control device according to claim 17, further comprising:
    定位模块,被配置为获取所述目标物体的位置信息;A positioning module configured to obtain position information of the target object;
    方位计算模块,被配置为根据所述位置信息,计算所述目标物体在所述图像中的方位信息。The position calculation module is configured to calculate the position information of the target object in the image according to the position information.
  19. 根据权利要求17所述的曝光控制装置,其特征在于,还包括:17. The exposure control device according to claim 17, further comprising:
    子区域划分模块,被配置为将所述图像划分为若干个子区域,所述若干个子区域呈阵列分布。The sub-region dividing module is configured to divide the image into several sub-regions, and the several sub-regions are distributed in an array.
  20. 根据权利要求19所述的曝光控制装置,其特征在于,所述图像划分模块被配置为:The exposure control device according to claim 19, wherein the image dividing module is configured to:
    判断每一所述子区域是否至少部分用于显示所述目标物体;Determining whether each of the sub-regions is at least partially used to display the target object;
    若所述子区域的至少部分用于显示所述目标物体,则将所述子区域划分至第一区域;If at least part of the sub-region is used to display the target object, dividing the sub-region into a first region;
    若所述子区域未用于显示所述目标物体,则将所述子区域划分至第二区域。If the sub-region is not used to display the target object, the sub-region is divided into a second region.
  21. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至16中任 一项所述的曝光控制方法的步骤。A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the exposure control method according to any one of claims 1 to 16 when the computer program is executed by a processor.
  22. 一种计算机设备,包括存储器及处理器,其特征在于,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行如权利要求1至16中任一项所述的曝光控制方法。A computer device, comprising a memory and a processor, wherein the memory stores computer-readable instructions, and when the instructions are executed by the processor, the processor executes as claimed in claims 1 to 16. Any one of the exposure control methods.
PCT/CN2020/074759 2020-02-11 2020-02-11 Exposure control method and apparatus, and readable storage medium and computer device WO2021159279A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202080003169.6A CN113545031A (en) 2020-02-11 2020-02-11 Exposure control method, exposure control device, readable storage medium and computer equipment
PCT/CN2020/074759 WO2021159279A1 (en) 2020-02-11 2020-02-11 Exposure control method and apparatus, and readable storage medium and computer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/074759 WO2021159279A1 (en) 2020-02-11 2020-02-11 Exposure control method and apparatus, and readable storage medium and computer device

Publications (1)

Publication Number Publication Date
WO2021159279A1 true WO2021159279A1 (en) 2021-08-19

Family

ID=77291924

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/074759 WO2021159279A1 (en) 2020-02-11 2020-02-11 Exposure control method and apparatus, and readable storage medium and computer device

Country Status (2)

Country Link
CN (1) CN113545031A (en)
WO (1) WO2021159279A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114007019A (en) * 2021-12-31 2022-02-01 杭州魔点科技有限公司 Method and system for predicting exposure based on image brightness in backlight scene
CN117496486A (en) * 2023-12-27 2024-02-02 安徽蔚来智驾科技有限公司 Traffic light shape recognition method, readable storage medium and intelligent device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0568203A (en) * 1991-09-06 1993-03-19 Sanyo Electric Co Ltd Video camera
KR0185909B1 (en) * 1994-07-11 1999-05-01 김광호 Exposure control apparatus for video camera
CN101175157A (en) * 2006-11-02 2008-05-07 松下电器产业株式会社 Digital camera
CN102665047A (en) * 2012-05-08 2012-09-12 北京汉邦高科数字技术股份有限公司 Exposure control method for imaging of complementary metal-oxide-semiconductor (CMOS) image sensor
CN104917975A (en) * 2015-06-01 2015-09-16 北京空间机电研究所 Adaptive automatic exposure method based on object characteristics
CN105184776A (en) * 2015-08-17 2015-12-23 中国测绘科学研究院 Target tracking method
CN106791475A (en) * 2017-01-23 2017-05-31 上海兴芯微电子科技有限公司 Exposure adjustment method and the vehicle mounted imaging apparatus being applicable

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0568203A (en) * 1991-09-06 1993-03-19 Sanyo Electric Co Ltd Video camera
KR0185909B1 (en) * 1994-07-11 1999-05-01 김광호 Exposure control apparatus for video camera
CN101175157A (en) * 2006-11-02 2008-05-07 松下电器产业株式会社 Digital camera
CN102665047A (en) * 2012-05-08 2012-09-12 北京汉邦高科数字技术股份有限公司 Exposure control method for imaging of complementary metal-oxide-semiconductor (CMOS) image sensor
CN104917975A (en) * 2015-06-01 2015-09-16 北京空间机电研究所 Adaptive automatic exposure method based on object characteristics
CN105184776A (en) * 2015-08-17 2015-12-23 中国测绘科学研究院 Target tracking method
CN106791475A (en) * 2017-01-23 2017-05-31 上海兴芯微电子科技有限公司 Exposure adjustment method and the vehicle mounted imaging apparatus being applicable

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114007019A (en) * 2021-12-31 2022-02-01 杭州魔点科技有限公司 Method and system for predicting exposure based on image brightness in backlight scene
CN117496486A (en) * 2023-12-27 2024-02-02 安徽蔚来智驾科技有限公司 Traffic light shape recognition method, readable storage medium and intelligent device
CN117496486B (en) * 2023-12-27 2024-03-26 安徽蔚来智驾科技有限公司 Traffic light shape recognition method, readable storage medium and intelligent device

Also Published As

Publication number Publication date
CN113545031A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
US11093801B2 (en) Object detection device and object detection method
WO2020259474A1 (en) Focus tracking method and apparatus, terminal device, and computer-readable storage medium
WO2021159279A1 (en) Exposure control method and apparatus, and readable storage medium and computer device
WO2018201809A1 (en) Double cameras-based image processing device and method
EP3771198B1 (en) Target tracking method and device, movable platform and storage medium
CN109922275B (en) Self-adaptive adjustment method and device of exposure parameters and shooting equipment
US20220222830A1 (en) Subject detecting method and device, electronic device, and non-transitory computer-readable storage medium
WO2020258978A1 (en) Object detection method and device
US11836903B2 (en) Subject recognition method, electronic device, and computer readable storage medium
CN109741241B (en) Fisheye image processing method, device, equipment and storage medium
CN110620881A (en) License plate exposure compensation method and device, computer equipment and storage medium
CN111860352A (en) Multi-lens vehicle track full-tracking system and method
CN112668462B (en) Vehicle damage detection model training, vehicle damage detection method, device, equipment and medium
WO2020034776A1 (en) Image processing method and apparatus, terminal device, and computer readable storage medium
US20190320166A1 (en) Calibration system and method
EP3850827A1 (en) Adaptive illumination for a time-of-flight camera on a vehicle
WO2019084712A1 (en) Image processing method and apparatus, and terminal
CN110866486A (en) Subject detection method and apparatus, electronic device, and computer-readable storage medium
CN111246100A (en) Anti-shake parameter calibration method and device and electronic equipment
CN107343154B (en) Method, device and system for determining exposure parameters of camera device
US11417125B2 (en) Recognition of license plate numbers from Bayer-domain image data
CN111191482A (en) Brake lamp identification method and device and electronic equipment
US9633283B1 (en) Adaptive device and adaptive method for classifying objects with parallel architecture
CN111612827A (en) Target position determining method and device based on multiple cameras and computer equipment
US20210231459A1 (en) Apparatus and method for collecting data for map generation

Legal Events

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

Ref document number: 20918929

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16-01-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20918929

Country of ref document: EP

Kind code of ref document: A1