CN113179375A - Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product - Google Patents

Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product Download PDF

Info

Publication number
CN113179375A
CN113179375A CN202110643733.7A CN202110643733A CN113179375A CN 113179375 A CN113179375 A CN 113179375A CN 202110643733 A CN202110643733 A CN 202110643733A CN 113179375 A CN113179375 A CN 113179375A
Authority
CN
China
Prior art keywords
exposure
image
original image
instruction
shot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110643733.7A
Other languages
Chinese (zh)
Inventor
杜伟
马原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Pengsi Technology Co ltd
Original Assignee
Beijing Pengsi Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Pengsi Technology Co ltd filed Critical Beijing Pengsi Technology Co ltd
Priority to CN202110643733.7A priority Critical patent/CN113179375A/en
Publication of CN113179375A publication Critical patent/CN113179375A/en
Pending legal-status Critical Current

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
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals

Landscapes

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

Abstract

The embodiment of the disclosure discloses an exposure processing method, an exposure processing device, an electronic device, a storage medium and a program product, wherein the exposure processing method comprises the following steps: acquiring a shot original image; sending the shot original image to a processor; and receiving an exposure instruction sent by a processor, and carrying out exposure processing on the shot original image according to the exposure instruction, wherein the exposure instruction is to carry out exposure processing on the shot original image according to a preset image exposure mode or carry out exposure processing on the shot original image according to a corrected image exposure mode. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.

Description

Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to an exposure processing method and apparatus, an electronic device, a storage medium, and a program product.
Background
With the development of image processing and internet technology, more and more users use usb cameras, mipi cameras and other image acquisition devices to acquire and process images, such as in a face recognition scene or other target object recognition scenes. In the prior art, in consideration of large image processing data volume, most of image acquisition equipment does not have an image exposure function in order to save cost and reduce the image processing data volume, so that a target object in an acquired image is not clear, the difficulty of the feature extraction and identification work of the target object is increased, and the accuracy of the feature extraction and identification of the target object is reduced.
Disclosure of Invention
The disclosed embodiment provides an exposure processing method, an exposure processing device, an electronic device, a storage medium and a program product.
In a first aspect, an exposure processing method is provided in an embodiment of the present disclosure.
Specifically, the exposure processing method includes:
acquiring a shot original image;
sending the shot original image to a processor;
and receiving an exposure instruction sent by a processor, and carrying out exposure processing on the shot original image according to the exposure instruction, wherein the exposure instruction is to carry out exposure processing on the shot original image according to a preset image exposure mode or carry out exposure processing on the shot original image according to a corrected image exposure mode.
With reference to the first aspect, in a first implementation manner of the first aspect, the present disclosure further includes:
and acquiring a preset image exposure mode, and calculating the average brightness value of the shot original image according to the preset image exposure mode.
With reference to the first aspect and the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the calculating an average brightness value of the original captured image according to the preset image exposure mode includes:
when the preset image exposure mode is global exposure, calculating a global average brightness value of the shot original image;
and when the preset image exposure mode is local exposure, calculating the local average brightness value of the shot original image.
With reference to the first aspect, the first implementation manner of the first aspect, and the second implementation manner of the first aspect, in a third implementation manner of the first aspect, before sending the captured original image to the processor, the embodiment of the present disclosure further includes:
and compressing the shot original image.
With reference to the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the performing exposure processing on the captured original image according to the exposure instruction includes:
when the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode, performing exposure processing on the shot original image based on the average brightness value of the shot original image according to the preset image exposure mode;
when the exposure instruction is used for carrying out exposure processing on the shot original image according to a corrected image exposure mode, calculating the average brightness value of the corrected exposure reference area according to the coordinates of the corrected exposure reference area carried by the exposure instruction, and carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
In a second aspect, an exposure processing method is provided in an embodiment of the present disclosure.
Specifically, the exposure processing method includes:
receiving a shooting original image sent by image acquisition equipment;
carrying out target detection on the shot original image;
and generating an exposure instruction according to a target detection result, and sending the exposure instruction to the image acquisition equipment so as to carry out exposure processing according to the exposure instruction, wherein the exposure instruction is to carry out exposure processing on the shot original image according to a preset image exposure mode or carry out exposure processing on the shot original image according to a corrected image exposure mode.
With reference to the second aspect, in a first implementation manner of the second aspect, after receiving the original captured image sent by the image capturing device, the method further includes:
and decompressing and/or format converting the shot original image.
With reference to the second aspect and the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the generating an exposure instruction according to a target detection result includes:
when the target detection result is that the target is not detected, generating an exposure instruction for carrying out exposure processing on the shot original image according to a preset image exposure mode;
and when the target detection result is that the target is detected, generating an exposure instruction which carries a corrected exposure reference area coordinate and carries the exposure processing of the shot original image according to a corrected image exposure mode, wherein the corrected exposure reference area coordinate is the target area coordinate.
In a third aspect, an exposure processing apparatus is provided in the disclosed embodiments.
Specifically, the exposure processing apparatus includes:
an acquisition module configured to acquire a captured original image;
a first sending module configured to send the captured original image to a processor;
and the exposure module is configured to receive an exposure instruction sent by the processor, and perform exposure processing on the shot original image according to the exposure instruction, wherein the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode or perform exposure processing on the shot original image according to a corrected image exposure mode.
With reference to the third aspect, in a first implementation manner of the third aspect, the present disclosure further includes:
the calculation module is configured to acquire a preset image exposure mode and calculate the average brightness value of the shooting original image according to the preset image exposure mode.
With reference to the third aspect and the first implementation manner of the third aspect, in a second implementation manner of the third aspect, an embodiment of the present disclosure is configured to:
when the preset image exposure mode is global exposure, calculating a global average brightness value of the shot original image;
and when the preset image exposure mode is local exposure, calculating the local average brightness value of the shot original image.
With reference to the third aspect, the first implementation manner of the third aspect, and the second implementation manner of the third aspect, in a third implementation manner of the third aspect, before the first sending module, the embodiment of the present disclosure further includes:
a compression module configured to compress the photographed original image.
With reference to the third aspect, the first implementation manner of the third aspect, the second implementation manner of the third aspect, and the third implementation manner of the third aspect, in a fourth implementation manner of the third aspect, the exposure module is configured to, in accordance with the exposure instruction, perform exposure processing on the captured original image:
when the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode, performing exposure processing on the shot original image based on the average brightness value of the shot original image according to the preset image exposure mode;
when the exposure instruction is used for carrying out exposure processing on the shot original image according to a corrected image exposure mode, calculating the average brightness value of the corrected exposure reference area according to the coordinates of the corrected exposure reference area carried by the exposure instruction, and carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
In a fourth aspect, an exposure processing apparatus is provided in an embodiment of the present disclosure.
Specifically, the exposure processing apparatus includes:
the receiving module is configured to receive a shooting original image sent by the image acquisition equipment;
a detection module configured to perform target detection on the captured original image;
and the second sending module is configured to generate an exposure instruction according to a target detection result, and send the exposure instruction to the image acquisition device so that the image acquisition device performs exposure processing according to the exposure instruction, wherein the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode or perform exposure processing on the shot original image according to a corrected image exposure mode.
With reference to the fourth aspect, in a first implementation manner of the fourth aspect, after the receiving module, the method further includes:
a decompression module configured to decompress and/or format-convert the photographed original image.
With reference to the fourth aspect and the first implementation manner of the fourth aspect, in a second implementation manner of the fourth aspect, the part of the second sending module that generates the exposure instruction according to the target detection result is configured to:
when the target detection result is that the target is not detected, generating an exposure instruction for carrying out exposure processing on the shot original image according to a preset image exposure mode;
and when the target detection result is that the target is detected, generating an exposure instruction which carries a corrected exposure reference area coordinate and carries the exposure processing of the shot original image according to a corrected image exposure mode, wherein the corrected exposure reference area coordinate is the target area coordinate.
In a fifth aspect, the present disclosure provides an electronic device, including a memory and at least one processor, wherein the memory is configured to store one or more computer instructions, and wherein the one or more computer instructions are executed by the at least one processor to implement the method steps of the exposure processing method.
In a sixth aspect, the disclosed embodiments provide a computer-readable storage medium for storing computer instructions for an exposure processing apparatus, which when executed by a processor implement the steps of the exposure processing method described above.
In a seventh aspect, the present disclosure provides a computer program product, which includes a computer program/instruction, wherein the computer program/instruction, when executed by a processor, implements the steps of the exposure processing method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
the above technical solution executes different exposure processing modes based on the analysis result of the shot original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
Other features, objects, and advantages of the present disclosure will become more apparent from the following detailed description of non-limiting embodiments when taken in conjunction with the accompanying drawings. In the drawings:
fig. 1 illustrates a flow chart of an exposure processing method according to an embodiment of the present disclosure;
FIG. 2 shows a flow chart of an exposure processing method according to another embodiment of the present disclosure;
fig. 3 shows a block diagram of the structure of an exposure processing apparatus according to an embodiment of the present disclosure;
fig. 4 is a block diagram showing the structure of an exposure processing apparatus according to another embodiment of the present disclosure;
FIG. 5 shows a block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic configuration diagram of a computer system suitable for implementing an exposure processing method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. Also, for the sake of clarity, parts not relevant to the description of the exemplary embodiments are omitted in the drawings.
In the present disclosure, it is to be understood that terms such as "including" or "having," etc., are intended to indicate the presence of the disclosed features, numbers, steps, behaviors, components, parts, or combinations thereof, and are not intended to preclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or combinations thereof may be present or added.
It should be further noted that the embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
The technical scheme provided by the embodiment of the disclosure executes different exposure processing modes based on the analysis result of the shot original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
Fig. 1 illustrates a flowchart of an exposure processing method according to an embodiment of the present disclosure, which includes the following steps S101 to S103, as illustrated in fig. 1:
in step S101, a captured original image is acquired;
in step S102, sending the captured original image to a processor;
in step S103, an exposure instruction sent by the processor is received, and exposure processing is performed on the original captured image according to the exposure instruction, where the exposure instruction is to perform exposure processing on the original captured image according to a preset image exposure mode, or perform exposure processing on the original captured image according to a modified image exposure mode.
As mentioned above, with the development of image processing and internet technology, more and more users use usb cameras, mipi cameras, and other image capturing devices to capture and process images, such as in a face recognition scene or other target object recognition scenes. In the prior art, in consideration of large image processing data volume, most of image acquisition equipment does not have an image exposure function in order to save cost and reduce the image processing data volume, so that a target object in an acquired image is not clear, the difficulty of the feature extraction and identification work of the target object is increased, and the accuracy of the feature extraction and identification of the target object is reduced.
In view of the above-described drawbacks, in this embodiment, an exposure processing method is proposed that performs different exposure processing modes based on the analysis result of the captured original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
In an embodiment of the present disclosure, the exposure processing method may be applied to an image capturing apparatus such as a usb camera, a usb camera module, a mipi camera module, or the like, which performs exposure processing.
In an embodiment of the present disclosure, the capturing of the original image refers to original image data obtained by converting a captured light source signal into a digital signal by a CMOS or CCD image sensor of an image capturing device, and the original image data records not only original image information captured by the image capturing device, but also some metadata generated when the image capturing device captures an image, such as ISO setting data, shutter speed, aperture value, white balance value, and the like.
In an embodiment of the present disclosure, the exposure instruction refers to an instruction for instructing an image capturing apparatus as to which exposure method is to be used and which region is to be used as an exposure reference region for exposure processing.
In the above embodiment, after the image capturing device acquires the captured original image, it sends the captured original image to the processor, so that the processor analyzes the captured original image to determine an exposure instruction for the captured original image, for example, an exposure instruction for exposing the captured original image according to a preset image exposure method or an exposure instruction for exposing the captured original image according to a modified image exposure method, and after the image capturing device receives the exposure instruction sent by the processor, the image capturing device may expose the captured original image according to the exposure instruction.
In an embodiment of the present disclosure, the method may further include the steps of:
and acquiring a preset image exposure mode, and calculating the average brightness value of the shot original image according to the preset image exposure mode.
The preset image exposure mode may be a preset or default image exposure mode, for example, the preset image exposure mode may be a global exposure mode, a local exposure mode, and the like, where the global exposure mode refers to an exposure mode in which a global area is used as an exposure reference area and an exposure is performed with a global area average brightness value as an exposure reference value, the local exposure mode refers to an exposure mode in which an exposure is performed with a local area as an exposure reference area and an exposure reference value with a local area average brightness value, and the local area may be, for example, a preset central area, which is usually preset by an image capture device.
In this embodiment, a preset image exposure mode is first obtained, and then an average brightness value of the original captured image required for subsequent exposure processing is calculated according to the preset image exposure mode, that is, as described above, if the preset image exposure mode is global exposure, the global average brightness value of the original captured image is calculated, and if the preset image exposure mode is local exposure, the local average brightness value of the original captured image is calculated. That is, in an embodiment of the present disclosure, the step of calculating the average brightness value of the captured original image according to the preset image exposure mode may include the steps of:
when the preset image exposure mode is global exposure, calculating a global average brightness value of the shot original image;
and when the preset image exposure mode is local exposure, calculating the local average brightness value of the shot original image.
In an embodiment of the disclosure, before sending the captured original image to the processor, the method may further include the following steps:
and compressing the shot original image.
In order to save data transmission resources and improve data transmission efficiency, in this embodiment, before sending the captured original image to the processor, the captured original image is first compressed, for example, the captured original image may be JPEG compressed, and the obtained JPEG compressed image is sent to the processor.
In an embodiment of the present disclosure, the step S103 of performing exposure processing on the captured original image according to the exposure instruction may include the following steps:
when the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode, performing exposure processing on the shot original image based on the average brightness value of the shot original image according to the preset image exposure mode;
when the exposure instruction is used for carrying out exposure processing on the shot original image according to a corrected image exposure mode, calculating the average brightness value of the corrected exposure reference area according to the coordinates of the corrected exposure reference area carried by the exposure instruction, and carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
It was mentioned above that the purpose of the image acquisition device to send the captured raw image to the processor is to enable the processor to analyze the captured raw image to determine exposure instructions for the captured raw image, and therefore, in this embodiment, if the received exposure instruction is to perform exposure processing on the captured original image according to the preset image exposure mode, based on the previously calculated average brightness value of the captured original image, exposing the original shot image, if the received exposure instruction is to expose the original shot image according to a modified image exposure mode, calculating the average brightness value of the modified exposure reference area according to the modified exposure reference area coordinate carried by the exposure instruction, and then carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
The corrected image exposure mode refers to an exposure mode different from the preset image exposure mode, and the corrected exposure reference area refers to a new exposure reference area which is different from a global area and a preset local area corresponding to the preset image exposure mode and is obtained according to the characteristics of the shot original image.
Fig. 2 illustrates a flowchart of an exposure processing method according to another embodiment of the present disclosure, which includes the following steps S201 to S203, as illustrated in fig. 2:
in step S201, a captured original image sent by an image capture device is received;
in step S202, performing target detection on the captured original image;
in step S203, an exposure instruction is generated according to a target detection result, and the exposure instruction is sent to the image capturing device, so that the image capturing device performs exposure processing according to the exposure instruction, where the exposure instruction is to perform exposure processing on the original captured image according to a preset image exposure mode, or perform exposure processing on the original captured image according to a modified image exposure mode.
As mentioned above, with the development of image processing and internet technology, more and more users use usb cameras, mipi cameras, and other image capturing devices to capture and process images, such as in a face recognition scene or other target object recognition scenes. In the prior art, in consideration of large image processing data volume, most of image acquisition equipment does not have an image exposure function in order to save cost and reduce the image processing data volume, so that a target object in an acquired image is not clear, the difficulty of the feature extraction and identification work of the target object is increased, and the accuracy of the feature extraction and identification of the target object is reduced.
In view of the above-described drawbacks, in this embodiment, an exposure processing method is proposed that performs different exposure processing modes based on the analysis result of the captured original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
In an embodiment of the present disclosure, the exposure processing method may be applied to a processor, a computer, an electronic device, or the like that performs exposure processing.
In an embodiment of the present disclosure, the target refers to a target object of interest for the exposure process, such as a human face, a certain object, and the like.
In an embodiment of the present disclosure, the target detection may be implemented based on an existing target detection method, and the target detection may also be performed at preset time intervals to reduce the amount of data calculation. The present disclosure does not overly describe the target detection methods that may be employed.
As mentioned above, the target object in the image captured by the image capturing device such as usb camera, mipi camera, etc. does not have an image exposure function, and if the original captured image is exposed according to the processing method of the prior art, for example, the preset image exposure method is adopted, and no attention target object such as a human face exists in the original captured image is considered, the target object may be under-exposed or over-exposed, which still is not favorable for improving the accuracy of feature extraction and identification of the target object. Therefore, in this embodiment, after receiving a captured original image sent by an image capturing device, first performing target detection on the captured original image, determining whether a target object exists in the captured original image, then generating a targeted exposure instruction according to a target detection result, for example, an exposure instruction for performing exposure processing on the captured original image according to a preset image exposure mode, or an exposure instruction for performing exposure processing on the captured original image according to a modified image exposure mode, and sending the exposure instruction to the image capturing device, so that the image capturing device performs targeted exposure processing on the captured original image according to the exposure instruction.
In an embodiment of the present disclosure, after the step S201 of receiving the original captured image sent by the image capturing device, the method may further include the following steps:
and decompressing and/or format converting the shot original image.
In order to save data transmission resources and improve data transmission efficiency, the image capturing device first compresses the captured original image, for example, JPEG-compresses the captured original image, and then sends the obtained JPEG-compressed image to the processor. If the processor receives the compressed shooting original image sent by the image acquisition equipment, the shooting original image needs to be decompressed, and/or for the convenience of subsequent target detection or other processing, the decompressed shooting original image can be subjected to format conversion, for example, the compressed shooting original image can be decompressed into RGB format data and then converted into YUV format data, and the like.
In an embodiment of the present disclosure, the step of generating an exposure instruction according to the target detection result in step S203 may include the following steps:
when the target detection result is that the target is not detected, generating an exposure instruction for carrying out exposure processing on the shot original image according to a preset image exposure mode;
and when the target detection result is that the target is detected, generating an exposure instruction which carries a corrected exposure reference area coordinate and carries the exposure processing of the shot original image according to a corrected image exposure mode, wherein the corrected exposure reference area coordinate is the target area coordinate.
In order to avoid the situation that the target object is under-exposed or over-exposed and the accuracy of the feature extraction and identification of the target object is further affected, it is required to determine whether the target object exists in the shot original image, and then generate a targeted exposure instruction according to a target detection result. That is, in this embodiment, if the target detection result is that no target is detected, that is, no target object exists in the original captured image, the original captured image may be exposed according to the preset image exposure mode without changing the image exposure mode; if the target detection result is that a target is detected, namely a target object exists in the shot original image, the image exposure mode needs to be changed, the exposure reference area is determined again, namely the target area is set as a corrected exposure reference area, the corrected exposure reference area coordinate is carried in an exposure instruction and sent to image acquisition equipment, and the image acquisition equipment is enabled to perform corrected exposure processing on the shot original image based on the corrected average brightness value of the corrected exposure reference area. Thus, the targeted exposure processing of the shot original image can be realized.
Technical terms and technical features related to the technical terms and technical features shown in fig. 2 and related embodiments are the same as or similar to those of the technical terms and technical features shown in fig. 1 and related embodiments, and for the explanation and description of the technical terms and technical features related to the technical terms and technical features shown in fig. 2 and related embodiments, reference may be made to the above explanation of the explanation of fig. 1 and related embodiments, and no further description is provided here.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods.
Fig. 3 shows a block diagram of an exposure processing apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 3, the exposure processing apparatus includes:
an acquisition module 301 configured to acquire a captured original image;
a first sending module 302 configured to send the captured original image to a processor;
the exposure module 303 is configured to receive an exposure instruction sent by the processor, and perform exposure processing on the original captured image according to the exposure instruction, where the exposure instruction is to perform exposure processing on the original captured image according to a preset image exposure mode, or perform exposure processing on the original captured image according to a modified image exposure mode.
As mentioned above, with the development of image processing and internet technology, more and more users use usb cameras, mipi cameras, and other image capturing devices to capture and process images, such as in a face recognition scene or other target object recognition scenes. In the prior art, in consideration of large image processing data volume, most of image acquisition equipment does not have an image exposure function in order to save cost and reduce the image processing data volume, so that a target object in an acquired image is not clear, the difficulty of the feature extraction and identification work of the target object is increased, and the accuracy of the feature extraction and identification of the target object is reduced.
In view of the above-described drawbacks, in this embodiment, an exposure processing apparatus is proposed that performs different exposure processing modes based on the analysis result of a captured original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
In an embodiment of the present disclosure, the exposure processing apparatus may be implemented as an image capturing device such as a usb camera, a usb camera component, a mipi camera component, or the like that performs exposure processing.
In an embodiment of the present disclosure, the capturing of the original image refers to original image data obtained by converting a captured light source signal into a digital signal by a CMOS or CCD image sensor of an image capturing device, and the original image data records not only original image information captured by the image capturing device, but also some metadata generated when the image capturing device captures an image, such as ISO setting data, shutter speed, aperture value, white balance value, and the like.
In an embodiment of the present disclosure, the exposure instruction refers to an instruction for instructing an image capturing apparatus as to which exposure method is to be used and which region is to be used as an exposure reference region for exposure processing.
In the above embodiment, after the image capturing device acquires the captured original image, it sends the captured original image to the processor, so that the processor analyzes the captured original image to determine an exposure instruction for the captured original image, for example, an exposure instruction for exposing the captured original image according to a preset image exposure method or an exposure instruction for exposing the captured original image according to a modified image exposure method, and after the image capturing device receives the exposure instruction sent by the processor, the image capturing device may expose the captured original image according to the exposure instruction.
In an embodiment of the present disclosure, the apparatus may further include:
the calculation module is configured to acquire a preset image exposure mode and calculate the average brightness value of the shooting original image according to the preset image exposure mode.
The preset image exposure mode may be a preset or default image exposure mode, for example, the preset image exposure mode may be a global exposure mode, a local exposure mode, and the like, where the global exposure mode refers to an exposure mode in which a global area is used as an exposure reference area and an exposure is performed with a global area average brightness value as an exposure reference value, the local exposure mode refers to an exposure mode in which an exposure is performed with a local area as an exposure reference area and an exposure reference value with a local area average brightness value, and the local area may be, for example, a preset central area, which is usually preset by an image capture device.
In this embodiment, a preset image exposure mode is first obtained, and then an average brightness value of the original captured image required for subsequent exposure processing is calculated according to the preset image exposure mode, that is, as described above, if the preset image exposure mode is global exposure, the global average brightness value of the original captured image is calculated, and if the preset image exposure mode is local exposure, the local average brightness value of the original captured image is calculated. That is, in an embodiment of the present disclosure, the calculation module may be configured to:
when the preset image exposure mode is global exposure, calculating a global average brightness value of the shot original image;
and when the preset image exposure mode is local exposure, calculating the local average brightness value of the shot original image.
In an embodiment of the present disclosure, before the first sending module, the method may further include:
a compression module configured to compress the photographed original image.
In order to save data transmission resources and improve data transmission efficiency, in this embodiment, before sending the captured original image to the processor, the captured original image is first compressed, for example, the captured original image may be JPEG compressed, and the obtained JPEG compressed image is sent to the processor.
In an embodiment of the present disclosure, the exposure module 203, configured to perform exposure processing on the captured original image according to the exposure instruction, may be configured to:
when the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode, performing exposure processing on the shot original image based on the average brightness value of the shot original image according to the preset image exposure mode;
when the exposure instruction is used for carrying out exposure processing on the shot original image according to a corrected image exposure mode, calculating the average brightness value of the corrected exposure reference area according to the coordinates of the corrected exposure reference area carried by the exposure instruction, and carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
It was mentioned above that the purpose of the image acquisition device to send the captured raw image to the processor is to enable the processor to analyze the captured raw image to determine exposure instructions for the captured raw image, and therefore, in this embodiment, if the received exposure instruction is to perform exposure processing on the captured original image according to the preset image exposure mode, based on the previously calculated average brightness value of the captured original image, exposing the original shot image, if the received exposure instruction is to expose the original shot image according to a modified image exposure mode, calculating the average brightness value of the modified exposure reference area according to the modified exposure reference area coordinate carried by the exposure instruction, and then carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
The corrected image exposure mode refers to an exposure mode different from the preset image exposure mode, and the corrected exposure reference area refers to a new exposure reference area which is different from a global area and a preset local area corresponding to the preset image exposure mode and is obtained according to the characteristics of the shot original image.
Fig. 4 shows a block diagram of an exposure processing apparatus according to an embodiment of the present disclosure, which may be implemented as part or all of an electronic device by software, hardware, or a combination of both. As shown in fig. 4, the exposure processing apparatus includes:
a receiving module 401 configured to receive a captured original image sent by an image capturing device;
a detection module 402 configured to perform object detection on the captured original image;
a second sending module 403, configured to generate an exposure instruction according to a target detection result, and send the exposure instruction to the image capturing device, so that the image capturing device performs exposure processing according to the exposure instruction, where the exposure instruction is to perform exposure processing on the original captured image according to a preset image exposure manner, or perform exposure processing on the original captured image according to a modified image exposure manner.
As mentioned above, with the development of image processing and internet technology, more and more users use usb cameras, mipi cameras, and other image capturing devices to capture and process images, such as in a face recognition scene or other target object recognition scenes. In the prior art, in consideration of large image processing data volume, most of image acquisition equipment does not have an image exposure function in order to save cost and reduce the image processing data volume, so that a target object in an acquired image is not clear, the difficulty of the feature extraction and identification work of the target object is increased, and the accuracy of the feature extraction and identification of the target object is reduced.
In view of the above-described drawbacks, in this embodiment, an exposure processing apparatus is proposed that performs different exposure processing modes based on the analysis result of a captured original image. According to the technical scheme, the definition of the target object in the acquired image can be improved under the condition that the calculation pressure of the image acquisition equipment is not increased, the difficulty of the feature extraction and identification work of the target object is further reduced, and the accuracy of the feature extraction and identification of the target object is improved.
In an embodiment of the present disclosure, the exposure processing apparatus may be implemented as a processor, a computer, an electronic device, or the like that performs exposure processing.
In an embodiment of the present disclosure, the target refers to a target object of interest for the exposure process, such as a human face, a certain object, and the like.
In an embodiment of the present disclosure, the target detection may be implemented based on an existing target detection method, and the target detection may also be performed at preset time intervals to reduce the amount of data calculation. The present disclosure does not overly describe the target detection methods that may be employed.
As mentioned above, the target object in the image captured by the image capturing device such as usb camera, mipi camera, etc. does not have an image exposure function, and if the original captured image is exposed according to the processing method of the prior art, for example, the preset image exposure method is adopted, and no attention target object such as a human face exists in the original captured image is considered, the target object may be under-exposed or over-exposed, which still is not favorable for improving the accuracy of feature extraction and identification of the target object. Therefore, in this embodiment, after receiving a captured original image sent by an image capturing device, first performing target detection on the captured original image, determining whether a target object exists in the captured original image, then generating a targeted exposure instruction according to a target detection result, for example, an exposure instruction for performing exposure processing on the captured original image according to a preset image exposure mode, or an exposure instruction for performing exposure processing on the captured original image according to a modified image exposure mode, and sending the exposure instruction to the image capturing device, so that the image capturing device performs targeted exposure processing on the captured original image according to the exposure instruction.
In an embodiment of the present disclosure, after the receiving module, the method may further include:
a decompression module configured to decompress and/or format-convert the photographed original image.
In order to save data transmission resources and improve data transmission efficiency, the image capturing device first compresses the captured original image, for example, JPEG-compresses the captured original image, and then sends the obtained JPEG-compressed image to the processor. If the processor receives the compressed shooting original image sent by the image acquisition equipment, the shooting original image needs to be decompressed, and/or for the convenience of subsequent target detection or other processing, the decompressed shooting original image can be subjected to format conversion, for example, the compressed shooting original image can be decompressed into RGB format data and then converted into YUV format data, and the like.
In an embodiment of the present disclosure, the portion of the second sending module 403 that generates the exposure instruction according to the target detection result may be configured to:
when the target detection result is that the target is not detected, generating an exposure instruction for carrying out exposure processing on the shot original image according to a preset image exposure mode;
and when the target detection result is that the target is detected, generating an exposure instruction which carries a corrected exposure reference area coordinate and carries the exposure processing of the shot original image according to a corrected image exposure mode, wherein the corrected exposure reference area coordinate is the target area coordinate.
In order to avoid the situation that the target object is under-exposed or over-exposed and the accuracy of the feature extraction and identification of the target object is further affected, it is required to determine whether the target object exists in the shot original image, and then generate a targeted exposure instruction according to a target detection result. That is, in this embodiment, if the target detection result is that no target is detected, that is, no target object exists in the original captured image, the original captured image may be exposed according to the preset image exposure mode without changing the image exposure mode; if the target detection result is that a target is detected, namely a target object exists in the shot original image, the image exposure mode needs to be changed, the exposure reference area is determined again, namely the target area is set as a corrected exposure reference area, the corrected exposure reference area coordinate is carried in an exposure instruction and sent to image acquisition equipment, and the image acquisition equipment is enabled to perform corrected exposure processing on the shot original image based on the corrected average brightness value of the corrected exposure reference area. Thus, the targeted exposure processing of the shot original image can be realized.
Technical terms and technical features related to the technical terms and technical features shown in fig. 4 and related embodiments are the same as or similar to those of the technical terms and technical features shown in fig. 3 and related embodiments, and for the explanation and description of the technical terms and technical features related to the technical terms and technical features shown in fig. 4 and related embodiments, the above explanation of the explanation of fig. 3 and related embodiments can be referred to, and detailed description is omitted here.
The present disclosure also discloses an electronic device, fig. 5 shows a block diagram of an electronic device according to an embodiment of the present disclosure, and as shown in fig. 5, the electronic device 500 includes a memory 501 and a processor 502; wherein the content of the first and second substances,
the memory 501 is used to store one or more computer instructions, which are executed by the processor 502 to implement the above-described method steps.
Fig. 6 is a schematic configuration diagram of a computer system suitable for implementing an exposure processing method according to an embodiment of the present disclosure.
As shown in fig. 6, the computer system 600 includes a processing unit 601 which can execute various processes in the above-described embodiments according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the system 600 are also stored. The processing unit 601, the ROM602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary. The processing unit 601 may be implemented as a CPU, a GPU, a TPU, an FPGA, an NPU, or other processing units.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams may represent a module, a program segment, or a portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present disclosure may be implemented by software or hardware. The units or modules described may also be provided in a processor, and the names of the units or modules do not in some cases constitute a limitation of the units or modules themselves.
As another aspect, the present disclosure also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus in the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present disclosure.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is possible without departing from the inventive concept. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (10)

1. An exposure processing method comprising:
acquiring a shot original image;
sending the shot original image to a processor;
and receiving an exposure instruction sent by a processor, and carrying out exposure processing on the shot original image according to the exposure instruction, wherein the exposure instruction is to carry out exposure processing on the shot original image according to a preset image exposure mode or carry out exposure processing on the shot original image according to a corrected image exposure mode.
2. The method of claim 1, further comprising:
and acquiring a preset image exposure mode, and calculating the average brightness value of the shot original image according to the preset image exposure mode.
3. The method according to claim 2, wherein the calculating the average brightness value of the original captured image according to the preset image exposure mode comprises:
when the preset image exposure mode is global exposure, calculating a global average brightness value of the shot original image;
and when the preset image exposure mode is local exposure, calculating the local average brightness value of the shot original image.
4. The method according to any one of claims 1 to 3, wherein the exposing the captured original image according to the exposure instruction comprises:
when the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode, performing exposure processing on the shot original image based on the average brightness value of the shot original image according to the preset image exposure mode;
when the exposure instruction is used for carrying out exposure processing on the shot original image according to a corrected image exposure mode, calculating the average brightness value of the corrected exposure reference area according to the coordinates of the corrected exposure reference area carried by the exposure instruction, and carrying out exposure processing on the shot original image based on the average brightness value of the corrected exposure reference area.
5. An exposure processing method comprising:
receiving a shooting original image sent by image acquisition equipment;
carrying out target detection on the shot original image;
and generating an exposure instruction according to a target detection result, and sending the exposure instruction to the image acquisition equipment so as to carry out exposure processing according to the exposure instruction, wherein the exposure instruction is to carry out exposure processing on the shot original image according to a preset image exposure mode or carry out exposure processing on the shot original image according to a corrected image exposure mode.
6. The method of claim 5, the generating exposure instructions from target detection results comprising:
when the target detection result is that the target is not detected, generating an exposure instruction for carrying out exposure processing on the shot original image according to a preset image exposure mode;
and when the target detection result is that the target is detected, generating an exposure instruction which carries a corrected exposure reference area coordinate and carries the exposure processing of the shot original image according to a corrected image exposure mode, wherein the corrected exposure reference area coordinate is the target area coordinate.
7. An exposure processing apparatus includes:
an acquisition module configured to acquire a captured original image;
a first sending module configured to send the captured original image to a processor;
and the exposure module is configured to receive an exposure instruction sent by the processor, and perform exposure processing on the shot original image according to the exposure instruction, wherein the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode or perform exposure processing on the shot original image according to a corrected image exposure mode.
8. An exposure processing apparatus includes:
the receiving module is configured to receive a shooting original image sent by the image acquisition equipment;
a detection module configured to perform target detection on the captured original image;
and the second sending module is configured to generate an exposure instruction according to a target detection result, and send the exposure instruction to the image acquisition device so that the image acquisition device performs exposure processing according to the exposure instruction, wherein the exposure instruction is to perform exposure processing on the shot original image according to a preset image exposure mode or perform exposure processing on the shot original image according to a corrected image exposure mode.
9. An electronic device comprising a memory and at least one processor; wherein the memory is to store one or more computer instructions, wherein the one or more computer instructions are to be executed by the at least one processor to implement the steps of the method of any one of claims 1-6.
10. A computer readable storage medium having computer instructions stored thereon or a computer program product comprising computer instructions; wherein the computer instructions, when executed by a processor, implement the steps of the method of any one of claims 1-6.
CN202110643733.7A 2021-06-09 2021-06-09 Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product Pending CN113179375A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110643733.7A CN113179375A (en) 2021-06-09 2021-06-09 Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110643733.7A CN113179375A (en) 2021-06-09 2021-06-09 Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product

Publications (1)

Publication Number Publication Date
CN113179375A true CN113179375A (en) 2021-07-27

Family

ID=76927708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110643733.7A Pending CN113179375A (en) 2021-06-09 2021-06-09 Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product

Country Status (1)

Country Link
CN (1) CN113179375A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115984126A (en) * 2022-12-05 2023-04-18 北京拙河科技有限公司 Optical image correction method and device based on input instruction

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516613A (en) * 2015-12-07 2016-04-20 凌云光技术集团有限责任公司 Intelligent exposure method and system based on face recognition
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device
CN108881710A (en) * 2017-12-28 2018-11-23 北京旷视科技有限公司 Image processing method, device and system and storage medium
CN110710194A (en) * 2019-08-30 2020-01-17 中新智擎科技有限公司 Exposure method and device, camera module and electronic equipment
WO2020235462A1 (en) * 2019-05-23 2020-11-26 日立オートモティブシステムズ株式会社 Object recognition device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516613A (en) * 2015-12-07 2016-04-20 凌云光技术集团有限责任公司 Intelligent exposure method and system based on face recognition
CN106682620A (en) * 2016-12-28 2017-05-17 北京旷视科技有限公司 Human face image acquisition method and device
CN108881710A (en) * 2017-12-28 2018-11-23 北京旷视科技有限公司 Image processing method, device and system and storage medium
WO2020235462A1 (en) * 2019-05-23 2020-11-26 日立オートモティブシステムズ株式会社 Object recognition device
CN110710194A (en) * 2019-08-30 2020-01-17 中新智擎科技有限公司 Exposure method and device, camera module and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115984126A (en) * 2022-12-05 2023-04-18 北京拙河科技有限公司 Optical image correction method and device based on input instruction

Similar Documents

Publication Publication Date Title
US8897602B2 (en) Imaging system with multiframe scaler
CN110248098B (en) Image processing method, image processing device, storage medium and electronic equipment
EP3471395B1 (en) Method and electronic device for processing raw image acquired through camera by using external electronic device
CN111598776A (en) Image processing method, image processing apparatus, storage medium, and electronic device
JP4818393B2 (en) Image processing method and image processing apparatus
US20070024710A1 (en) Monitoring system, monitoring apparatus, monitoring method and program therefor
CN108335272B (en) Method and device for shooting picture
CN112383772B (en) Camera performance automatic test method and device, electronic equipment and storage medium
CN107147851B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN113179375A (en) Exposure processing method, exposure processing apparatus, electronic device, storage medium, and program product
JPWO2018037665A1 (en) INFORMATION PROCESSING APPARATUS, INFORMATION PROCESSING SYSTEM, CONTROL METHOD, AND PROGRAM
JP4561649B2 (en) Image compression apparatus, image compression program and image compression method, HDR image generation apparatus, HDR image generation program and HDR image generation method, image processing system, image processing program and image processing method
CN112261417B (en) Video pushing method and system, equipment and readable storage medium
CN110033421B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112565603A (en) Image processing method and device and electronic equipment
CN108769521B (en) Photographing method, mobile terminal and computer readable storage medium
CN108924624B (en) Information processing method and device
CN111080683A (en) Image processing method, image processing device, storage medium and electronic equipment
CN116129316A (en) Image processing method, device, computer equipment and storage medium
CN111243046B (en) Image quality detection method, device, electronic equipment and storage medium
CN116128707A (en) Image processing method and device, electronic equipment and computer readable storage medium
CN114298889A (en) Image processing circuit and image processing method
CN112331310A (en) Medical image data display method and device, storage medium and intelligent equipment
CN111586309A (en) Image acquisition method and device for underwater automatic light supplement
CN110661785A (en) Video processing method, device and system, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20210727