CN104954658B - A kind of electronic equipment and data processing method - Google Patents
A kind of electronic equipment and data processing method Download PDFInfo
- Publication number
- CN104954658B CN104954658B CN201410114339.4A CN201410114339A CN104954658B CN 104954658 B CN104954658 B CN 104954658B CN 201410114339 A CN201410114339 A CN 201410114339A CN 104954658 B CN104954658 B CN 104954658B
- Authority
- CN
- China
- Prior art keywords
- image
- light
- electronic device
- information
- component
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000003384 imaging method Methods 0.000 claims abstract description 102
- 239000013589 supplement Substances 0.000 claims description 55
- 238000001914 filtration Methods 0.000 claims description 35
- 238000000034 method Methods 0.000 claims description 26
- 230000001960 triggered effect Effects 0.000 claims description 19
- 230000001502 supplementing effect Effects 0.000 claims description 17
- 238000005286 illumination Methods 0.000 claims description 8
- 238000007499 fusion processing Methods 0.000 claims description 7
- 238000010304 firing Methods 0.000 claims 1
- 230000003287 optical effect Effects 0.000 abstract description 9
- 230000015572 biosynthetic process Effects 0.000 abstract 2
- 238000010977 unit operation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 9
- 238000003705 background correction Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000004927 fusion Effects 0.000 description 2
- 230000002411 adverse Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
Landscapes
- Studio Devices (AREA)
Abstract
The invention discloses a kind of electronic equipment and data processing methods, wherein, the electronic equipment has shutter processing unit and light filling unit, the light filling unit when triggering the shutter processing unit operation for being turned on, the electronic equipment further include: light transparent member, filter part, photosensitive imaging component and image processing section;Wherein, the light transparent member, for through the light for being incident on the light transparent member from first direction;The filter part is transmitted, the first light transmitted in the first optical path and the second light transmitted in the second optical path project the photosensitive imaging component respectively respectively for will be divided into two-way by the light of the filter part in two optical paths;The photosensitive imaging component, the second image for obtaining the first image obtained according to first image formation by rays and being obtained according to second image formation by rays.
Description
Technical Field
The present invention relates to a camera technology, and in particular, to an electronic device and a data processing method.
Background
In the process of implementing the technical solution of the embodiment of the present application, the inventor of the present application finds at least the following technical problems in the prior art:
many electronic devices, especially popular portable user devices such as tablet computers, smart phones, Personal Digital Assistants (PDAs), etc., support the camera function of a camera, and especially card machines or mobile devices use a camera on hardware to take a picture. The quality of images obtained by shooting in a low-light environment (also called a dark-light environment) is very poor, mainly because a shutter cannot penetrate enough light in the dark-light environment due to the limitation of an existing pinhole (pin-hole) model, and for the problem, a flash lamp is usually turned on to perform light supplement processing so as to compensate the influence of poor image quality in the dark-light environment.
Although it is an advantage to adopt the flash lamp to turn on for fill-in light processing, adverse effects may also be brought because the flash lamp is turned on to cause too strong light, such as the problems of too bright foreground, too white color, too dark background, large noise, and causing unnatural shadow overexposure to cause loss of details, and the like, and the influence of poor image quality still cannot be avoided.
Disclosure of Invention
In view of this, embodiments of the present invention provide an electronic device and a data processing method, which can avoid the influence of the flash lamp for light supplement processing on the image quality, and improve the image quality of an image.
The technical scheme of the embodiment of the invention is realized as follows:
an electronic device according to an embodiment of the present invention includes a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when the shutter processing unit is triggered to operate, and the electronic device further includes: a light transmitting member, a light filtering member, a photosensitive imaging member and an image processing member; wherein,
the light-transmitting member is used for transmitting light rays entering the light-transmitting member from a first direction, wherein the first direction is a direction from the outer side of the light-transmitting member to the electronic equipment;
the light filtering component is positioned between the light transmitting component and the photosensitive imaging component and is used for dividing light rays passing through the light filtering component into two paths, the two paths are respectively transmitted, and a first light ray transmitted on a first light path and a second light ray transmitted on a second light path are respectively projected onto the photosensitive imaging component; the wavelengths of the first light and the second light are different;
the photosensitive imaging component is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light;
the image processing component is used for processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image.
Preferably, the image sensor of the photosensitive imaging member is one piece.
Preferably, the first light ray is projected to a first area on the image sensor, the second light ray is projected to a second area on the image sensor, and the first area and the second area are not overlapped.
Preferably, the first light is light according with the emission frequency of a flash lamp; the second light ray is a light ray with a different light emitting frequency from the flash lamp.
Preferably, the electronic device further includes:
and the reflecting component is used for reflecting the second light rays transmitted on the second light path through the reflecting component so that the second light rays are parallel to the first light rays after being reflected.
Preferably, the image sensor is a flat piece, and receives the first light and the second light projected in parallel.
Preferably, the image sensor is divided into two parts with a preset included angle, and receives the first light and the second light projected at the preset included angle.
A data processing method according to an embodiment of the present invention is applied to an electronic device, where the electronic device includes a shutter processing unit and a light supplement unit, the light supplement unit is configured to be turned on when the shutter processing unit is triggered to operate, and the light supplement unit can emit light with a specified wavelength when the light supplement unit is turned on, and the method includes:
acquiring a first image and a second image, wherein the first image and the second image are two images obtained by image acquisition of the same scene under different illumination environments, the first image is an image under the condition that the light supplementing unit is turned on, and the second image is an image under the condition that the light supplementing unit is turned off;
and processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image.
Preferably, the electronic device further has an image sensor, and before the acquiring the first image and the second image, the method further comprises:
obtaining a first operation for triggering the shutter processing unit;
triggering the shutter processing unit and starting the light supplementing unit;
the acquiring the first image and the second image specifically includes:
when the shutter processing unit is triggered, light rays entering the electronic equipment from the outside of the electronic equipment are divided into two paths through light splitting, the two paths are respectively transmitted, and a first light ray transmitted on a first light path and a second light ray transmitted on a second light path are respectively projected to the image sensor; the first light ray is a light ray which accords with the light-emitting frequency of the flash lamp; the second light ray is a light ray with a different light-emitting frequency from the flash lamp;
and acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light through the image sensor, so that the image sensor simultaneously acquires the first image and the second image when the shutter processing unit is triggered.
Preferably, the processing the first image and the second image to obtain a third image specifically includes:
extracting first information from the first image, wherein the first information is used for representing an image edge contour so as to obtain a target image template comprising the image edge contour, and the target image template is used as an object to be filled in processing;
extracting second information from the second image, wherein the second information is used for representing the color and the distribution of the image so as to obtain source image information comprising the color and the distribution of the image, and the source image information is used as a filling object during processing;
and filling the source image information into the target image template to realize fusion processing, and obtaining a third image.
Preferably, the extracting first information from the first image specifically includes:
carrying out gray level adjustment on the first image according to a first preset threshold range to obtain a first gray level image, wherein the first gray level image is used for determining the position of an image edge;
and extracting the position with large change difference of adjacent gray values from the first gray map to obtain the position of the image edge as the first information.
Preferably, the extracting the second information from the second image specifically includes:
adjusting the gray level of the second image according to a second preset threshold range to obtain a second gray level image, wherein the second gray level image is used for determining the color and distribution position of the image;
and combining the gray value in the second gray image with the color gradient to calculate to extract the position where the change of the adjacent gray values is uniform so as to obtain the color and the distribution position of the image in each area of the whole image, and using the position as the second information.
The electronic device of the embodiment of the present invention includes a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when the shutter processing unit is triggered to operate, and the electronic device further includes: a light transmitting member, a light filtering member, a photosensitive imaging member and an image processing member; the light-transmitting member is used for transmitting light rays entering the light-transmitting member from a first direction, and the first direction is a direction from the outer side of the light-transmitting member to the electronic equipment; the light filtering component is positioned between the light transmitting component and the photosensitive imaging component and is used for dividing light rays passing through the light filtering component into two paths, the two paths are respectively transmitted, and a first light ray transmitted on a first light path and a second light ray transmitted on a second light path are respectively projected onto the photosensitive imaging component; the wavelengths of the first light and the second light are different; the photosensitive imaging component is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light; the image processing component is used for processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image.
By adopting the embodiment of the invention, the light rays passing through the light filtering component can be divided into two paths by the light filtering component and are respectively transmitted on the two light paths, the first light rays transmitted on the first light path and the second light rays transmitted on the second light path are respectively projected on the photosensitive imaging component, and the wavelengths of the first light rays and the second light rays obtained by the light splitting path are different; a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light can be obtained through a photosensitive imaging component; and finally, the first image and the second image can be processed by an image processing component to obtain a third image, and the image quality of the finally obtained third image is better than that of the first image and the second image through the processing of a series of components of the electronic equipment.
Drawings
FIG. 1 is a schematic diagram of a component structure of an embodiment of an electronic device according to the invention;
FIG. 2 is a schematic diagram of a component structure of an embodiment of an electronic device according to the invention;
FIG. 3 is a schematic diagram of a component structure of an embodiment of an electronic device according to the invention;
FIG. 4 is a schematic diagram of a component structure of an embodiment of an electronic device according to the invention;
FIG. 5 is a schematic flow chart of an implementation of the method embodiment of the present invention;
FIG. 6 is a schematic flow chart of an implementation of the embodiment of the method of the present invention;
FIG. 7 is a schematic flow chart of an implementation of the method embodiment of the present invention;
FIG. 8 is a schematic diagram of an embodiment of the method of the present invention for processing two images to obtain a third image;
FIG. 9 is a schematic diagram of an embodiment of the method of the present invention for processing two images to obtain a third image;
fig. 10 is a schematic diagram of processing two images to obtain a third image according to an embodiment of the method of the present invention.
Detailed Description
The following describes the embodiments in further detail with reference to the accompanying drawings.
The first embodiment of the electronic device:
the electronic device according to the embodiment of the present invention includes a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when the shutter processing unit is triggered to operate, as shown in fig. 1, and the electronic device further includes: a light transmitting member 11, a filter member 12, a photosensitive imaging member 13, and an image processing member 14; wherein,
the light-transmitting member 11 is for transmitting light incident on the light-transmitting member itself from a first direction from the outside of the light-transmitting member toward the electronic device. The light filtering component 12 is located between the light transmitting component 11 and the photosensitive imaging component 13, and is configured to divide light passing through the light filtering component into two paths, and transmit the two paths of light respectively, where a first light transmitted on a first light path and a second light transmitted on a second light path are projected onto the photosensitive imaging component 13 respectively, and the wavelengths of the first light and the second light are different. The photosensitive imaging part 13 is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light. The image processing means 14 is arranged for processing said first image and said second image resulting in a third image such that the image quality of the third image is better than the image quality of both said first image and said second image.
By adopting the embodiment of the invention, the light rays passing through the light filtering component can be divided into two paths by the light filtering component and are respectively transmitted on the two light paths, the first light rays transmitted on the first light path and the second light rays transmitted on the second light path are respectively projected on the photosensitive imaging component, and the wavelengths of the first light rays and the second light rays obtained by the light splitting path are different; a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light can be obtained through a photosensitive imaging component; and finally, the first image and the second image can be processed by an image processing component to obtain a third image, and the image quality of the finally obtained third image is better than that of the first image and the second image through the processing of a series of components of the electronic equipment.
Second embodiment of the electronic device:
the electronic device according to the embodiment of the present invention has a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when triggering the shutter processing unit to operate, as shown in fig. 1 and 2, and the electronic device further includes: a light transmitting member 11, a filter member 12, a photosensitive imaging member 13, and an image processing member 14; wherein,
the light-transmitting member 11 is for transmitting light incident on the light-transmitting member itself from a first direction from the outside of the light-transmitting member toward the electronic device. The light filtering component 12 is located between the light transmitting component 11 and the photosensitive imaging component 13, and is configured to divide light passing through the light filtering component into two paths, and transmit the two paths of light respectively, where a first light transmitted on a first light path and a second light transmitted on a second light path are projected onto the photosensitive imaging component 13 respectively, and the wavelengths of the first light and the second light are different. The photosensitive imaging part 13 is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light. The image processing means 14 is arranged for processing said first image and said second image resulting in a third image such that the image quality of the third image is better than the image quality of both said first image and said second image.
By adopting the embodiment of the invention, the light rays passing through the light filtering component can be divided into two paths by the light filtering component and are respectively transmitted on the two light paths, the first light rays transmitted on the first light path and the second light rays transmitted on the second light path are respectively projected on the photosensitive imaging component, and the wavelengths of the first light rays and the second light rays obtained by the light splitting path are different; a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light can be obtained through a photosensitive imaging component; and finally, the first image and the second image can be processed by an image processing component to obtain a third image, and the image quality of the finally obtained third image is better than that of the first image and the second image through the processing of a series of components of the electronic equipment.
In the embodiment of the present invention, the photosensitive imaging component 13 further includes an image sensor 131, and the image sensor 131 of the photosensitive imaging component 13 is a whole block as shown in fig. 2, and receives the first light and the second light which are reflected and then projected in parallel. The imaging area of the image sensor 131 is composed of a first area 1311 and a second area 1312, and the first area 1311 and the second area 1312 are two adjacent areas as shown in fig. 2, which is only an optimal implementation manner, but the present invention is not limited to this implementation manner as long as the first area 1311 and the second area 1312 are two non-overlapping areas on the imaging area, which are different and at most have one edge overlapped, that is, the adjacent situation shown in fig. 2 at present. The first light ray projects to a first region 1311 on the imaging region of the image sensor 131, the second light ray projects to a second region 1312 on the imaging region of the image sensor 131, the first region 1311 is correspondingly imaged to obtain a first image, and the second region 1312 is correspondingly imaged to obtain a second image. Here, it should be noted that: in this embodiment, when the image sensor is a whole block, the image sensor corresponds to a complete image file, and the image file is a complete image file formed by the first image and the second image.
The electronic device further comprises a reflection component 15, and the reflection component 15 is configured to perform the reflection on the second light ray transmitted on the second light path through the reflection component, so that the second light ray is parallel to the first light ray after being reflected.
As shown in fig. 1 and fig. 2, for example, the transparent component 11 may be a transparent mirror, the filter component 12 may be a dichroic filter/interference filter, the image sensor 131 may be a CMOS sensor or a CCD sensor, a1 is a first optical path, and a2 is a second optical path; b1 is the first light ray, b2 is the second light ray. Wherein the first light is light in accordance with the emitting frequency of the flash lamp and has a specific wavelength, such as UV light; the second light ray is a light ray with a different light emitting frequency from the flash lamp. The reflecting member 15 may be a total reflection mirror.
Electronic equipment embodiment three:
the electronic device according to the embodiment of the present invention has a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when triggering the shutter processing unit to operate, as shown in fig. 1 and 3, and the electronic device further includes: a light transmitting member 11, a filter member 12, a photosensitive imaging member 13, and an image processing member 14; wherein,
the light-transmitting member 11 is for transmitting light incident on the light-transmitting member itself from a first direction from the outside of the light-transmitting member toward the electronic device. The light filtering component 12 is located between the light transmitting component 11 and the photosensitive imaging component 13, and is configured to divide light passing through the light filtering component into two paths, and transmit the two paths of light respectively, where a first light transmitted on a first light path and a second light transmitted on a second light path are projected onto the photosensitive imaging component 13 respectively, and the wavelengths of the first light and the second light are different. The photosensitive imaging part 13 is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light. The image processing means 14 is arranged for processing said first image and said second image resulting in a third image such that the image quality of the third image is better than the image quality of both said first image and said second image.
By adopting the embodiment of the invention, the light rays passing through the light filtering component can be divided into two paths by the light filtering component and are respectively transmitted on the two light paths, the first light rays transmitted on the first light path and the second light rays transmitted on the second light path are respectively projected on the photosensitive imaging component, and the wavelengths of the first light rays and the second light rays obtained by the light splitting path are different; a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light can be obtained through a photosensitive imaging component; and finally, the first image and the second image can be processed by an image processing component to obtain a third image, and the image quality of the finally obtained third image is better than that of the first image and the second image through the processing of a series of components of the electronic equipment.
In the embodiment of the present invention, the photosensitive imaging component 13 further includes an image sensor 131, and the image sensors 131 of the photosensitive imaging component 13 are two separate pieces as shown in fig. 3, and are placed side by side to receive the first light and the second light projected in parallel after being reflected. The imaging area of the image sensor 131 is composed of a first area 1311 and a second area 1312, and the first area 1311 and the second area 1312 are two adjacent areas as shown in fig. 3, which is only an optimal implementation manner, but the present invention is not limited to this implementation manner as long as the first area 1311 and the second area 1312 are two non-overlapping areas on the imaging area, which are different and at most have one edge overlapped, that is, the adjacent situation shown in fig. 3 at present. The first light ray projects to a first region 1311 on the imaging region of the image sensor 131, the second light ray projects to a second region 1312 on the imaging region of the image sensor 131, the first region 1311 is correspondingly imaged to obtain a first image, and the second region 1312 is correspondingly imaged to obtain a second image. Here, it should be noted that: in this embodiment, the image sensor is not a whole block, and when the image sensor is divided into two blocks, the image sensor corresponds to two image files, one image file is an image file composed of a first image, and the other image file is an image file composed of a second image.
The electronic device further comprises a reflection component 15, and the reflection component 15 is configured to perform the reflection on the second light ray transmitted on the second light path through the reflection component, so that the second light ray is parallel to the first light ray after being reflected.
As shown in fig. 1 and 3, for example, the light-transmitting component 11 may be a see-through mirror, the filtering component 12 may be a dichroic filter/interference filter, the image sensor 131 may be a CMOS sensor or a CCD sensor, a1 is a first optical path, and a2 is a second optical path; b1 is the first light ray, b2 is the second light ray. Wherein the first light is light in accordance with the emitting frequency of the flash lamp and has a specific wavelength, such as UV light; the second light ray is a light ray with a different light emitting frequency from the flash lamp. The reflecting member 15 may be a total reflection mirror.
The fourth embodiment of the electronic device:
the electronic device according to the embodiment of the present invention has a shutter processing unit and a light supplement unit, where the light supplement unit is configured to be turned on when triggering the shutter processing unit to operate, as shown in fig. 1 and 4, and the electronic device further includes: a light transmitting member 11, a filter member 12, a photosensitive imaging member 13, and an image processing member 14; wherein,
the light-transmitting member 11 is for transmitting light incident on the light-transmitting member itself from a first direction from the outside of the light-transmitting member toward the electronic device. The light filtering component 12 is located between the light transmitting component 11 and the photosensitive imaging component 13, and is configured to divide light passing through the light filtering component into two paths, and transmit the two paths of light respectively, where a first light transmitted on a first light path and a second light transmitted on a second light path are projected onto the photosensitive imaging component 13 respectively, and the wavelengths of the first light and the second light are different. The photosensitive imaging part 13 is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light. The image processing means 14 is arranged for processing said first image and said second image resulting in a third image such that the image quality of the third image is better than the image quality of both said first image and said second image.
By adopting the embodiment of the invention, the light rays passing through the light filtering component can be divided into two paths by the light filtering component and are respectively transmitted on the two light paths, the first light rays transmitted on the first light path and the second light rays transmitted on the second light path are respectively projected on the photosensitive imaging component, and the wavelengths of the first light rays and the second light rays obtained by the light splitting path are different; a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light can be obtained through a photosensitive imaging component; and finally, the first image and the second image can be processed by an image processing component to obtain a third image, and the image quality of the finally obtained third image is better than that of the first image and the second image through the processing of a series of components of the electronic equipment.
In the embodiment of the present invention, the image sensor 131 is disposed in the photosensitive imaging component 13, and the image sensor 131 of the photosensitive imaging component 13 is divided into two separate pieces as shown in fig. 4, and the two separate pieces are divided into two parts with a predetermined included angle, and receive the first light and the second light projected with the predetermined included angle. The imaging area of the image sensor 131 is composed of a first area 1311 and a second area 1312, and the first area 1311 and the second area 1312 are two adjacent areas as shown in fig. 4, which is only an optimal implementation manner, but the present invention is not limited to this implementation manner as long as the first area 1311 and the second area 1312 are two non-overlapping areas on the imaging area, which are different and at most have one edge overlapped, that is, the adjacent situation shown in fig. 4 is currently. The first light ray projects to a first region 1311 on the imaging region of the image sensor 131, the second light ray projects to a second region 1312 on the imaging region of the image sensor 131, the first region 1311 is correspondingly imaged to obtain a first image, and the second region 1312 is correspondingly imaged to obtain a second image. Here, it should be noted that: in this embodiment, the image sensor is not a whole block, and when the image sensor is divided into two blocks, the image sensor corresponds to two image files, one image file is an image file composed of a first image, and the other image file is an image file composed of a second image.
As shown in fig. 1 and 4, for example, the light-transmitting component 11 may be a see-through mirror, the filtering component 12 may be a dichroic filter/interference filter, the image sensor 131 may be a CMOS sensor or a CCD sensor, a1 is a first optical path, and a2 is a second optical path; b1 is the first light ray, b2 is the second light ray. Wherein the first light is light in accordance with the emitting frequency of the flash lamp and has a specific wavelength, such as UV light; the second light ray is a light ray with a different light emitting frequency from the flash lamp.
Here, it should be noted that: the following description of the method items is similar to the description of the electronic equipment items, and is not repeated as long as the beneficial effects of the electronic equipment items are described. For technical details not disclosed in the method embodiments of the present invention, refer to the description of the embodiments of the electronic device of the present invention.
The first embodiment of the method comprises the following steps:
the data processing method of the embodiment of the present invention is applied to an electronic device, the electronic device has a shutter processing unit and a light supplement unit, the light supplement unit is used for triggering the shutter processing unit to be opened when operating, and the light supplement unit can emit light with a specified wavelength when being opened, as shown in fig. 5, the method includes:
step 101, obtaining a first image and a second image, where the first image and the second image are two images of a same scene in different illumination environments, the first image is an image when the light supplement unit is turned on, and the second image is an image when the light supplement unit is turned off.
And 102, processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and that of the second image.
By adopting the embodiment of the invention, the light supplement unit is used for triggering the shutter processing unit to be started when in operation, the light supplement unit can emit light with a specified wavelength when being started, two images can be simultaneously acquired when the shutter processing unit is triggered through the step 101, the first image and the second image are two images under different illumination environments obtained by carrying out image acquisition on the same scene, the first image is an image under the condition that the light supplement unit is started, and the second image is an image under the condition that the light supplement unit is closed. The first image and the second image can be processed through step 102, for example, a third image can be obtained by superimposing and fusing the two images through fusion processing, so that the image quality of the third image is better than that of the first image and that of the second image, and a better imaging effect in a low-light environment is achieved.
The first image is obtained by imaging a first light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the first light ray is a light ray conforming to the light emitting frequency of the flash lamp and has a specific wavelength, such as a UV light ray, and when the light supplementing unit is the flash lamp, the first image is a photo with the flash lamp; the second image is obtained by imaging a second light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the second light ray is a light ray with a different light emitting frequency from the flash lamp, for example, natural light without a flash lamp, and when the light supplementing unit is a flash lamp, the second image is a photo without a flash lamp. It should be noted here that two images can also be obtained by taking two shots with a flash once with an existing camera to obtain a photograph with a flash; and taking a picture without flash for another time to obtain a picture without flash, and using the two images as the first image and the second image respectively to synthesize to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image.
The second method embodiment:
the data processing method of the embodiment of the present invention is applied to an electronic device, the electronic device includes a shutter processing unit and a light supplement unit, the light supplement unit is configured to be activated when the shutter processing unit is triggered to operate, the light supplement unit can emit light with a specified wavelength when the light supplement unit is activated, the electronic device further includes an image sensor, and as shown in fig. 6, the method includes:
step 201, obtaining a first operation, where the first operation is used to trigger the shutter processing unit.
Step 202, triggering the shutter processing unit and starting the light supplement unit.
Step 203, when the shutter processing unit is triggered, splitting light rays entering the electronic device from the outside of the electronic device into two paths through light splitting, respectively transmitting the two paths of light rays on two light paths, and respectively projecting a first light ray transmitted on a first light path and a second light ray transmitted on a second light path to the image sensor; the first light ray is a light ray which accords with the light-emitting frequency of the flash lamp; the second light ray is a light ray with a different light emitting frequency from the flash lamp.
And 204, acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light through the image sensor, so that the image sensor simultaneously acquires the first image and the second image when the shutter processing unit is triggered.
Here, the first image and the second image are two images of the same scene in different lighting environments, where the two images are obtained by image acquisition of the same scene, the first image is an image when the light supplement unit is turned on, and the second image is an image when the light supplement unit is turned off.
Step 205, processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than the image quality of both the first image and the second image.
By adopting the embodiment of the invention, the shutter processing unit can be triggered through the step 201, the light supplement unit can be started through triggering the shutter processing unit through the step 202, the light supplement unit is used for triggering the shutter processing unit to be started when in operation, the light supplement unit can emit light with a specified wavelength when being started, two images can be simultaneously acquired when the shutter processing unit is triggered through the step 203 and the step 204, the first image and the second image are two images under different illumination environments obtained by image acquisition on the same scene, the first image is an image under the condition that the light supplement unit is started, and the second image is an image under the condition that the light supplement unit is closed. The first image and the second image can be processed through step 205, for example, a third image can be obtained by superimposing and fusing the two images through fusion processing, so that the image quality of the third image is better than that of the first image and that of the second image, and a better imaging effect in a low-light environment is achieved.
It should be noted here that one possibility of the first image and the second image is to acquire the first image and the second image simultaneously as described in the embodiments of the present invention. Of course, the first image and the second image may be acquired in a time-sharing manner, and the shooting parameters other than the flash parameter are the same as long as the images are acquired in two different illumination environments of the same scene.
The first image is obtained by imaging a first light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the first light ray is a light ray conforming to the light emitting frequency of the flash lamp and has a specific wavelength, such as a UV light ray, and when the light supplementing unit is the flash lamp, the first image is a photo with the flash lamp; the second image is obtained by imaging a second light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the second light ray is a light ray with a different light emitting frequency from the flash lamp, for example, natural light without a flash lamp, and when the light supplementing unit is a flash lamp, the second image is a photo without a flash lamp.
The third method embodiment:
the data processing method of the embodiment of the present invention is applied to an electronic device, the electronic device includes a shutter processing unit and a light supplement unit, the light supplement unit is configured to be activated when the shutter processing unit is triggered to operate, the light supplement unit can emit light with a specified wavelength when the light supplement unit is activated, the electronic device further includes an image sensor, and as shown in fig. 7, the method includes:
step 301, obtaining a first operation, where the first operation is used to trigger the shutter processing unit.
Step 302, triggering the shutter processing unit and starting the light supplement unit.
Step 303, when the shutter processing unit is triggered, splitting light entering the electronic device from the outside of the electronic device into two paths by light splitting, respectively transmitting the two paths of light, and respectively projecting a first light transmitted on a first light path and a second light transmitted on a second light path to the image sensor; the first light ray is a light ray which accords with the light-emitting frequency of the flash lamp; the second light ray is a light ray with a different light emitting frequency from the flash lamp.
And 304, acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light through the image sensor, so that the image sensor simultaneously acquires the first image and the second image when the shutter processing unit is triggered.
Here, the first image and the second image are two images of the same scene in different lighting environments, where the two images are obtained by image acquisition of the same scene, the first image is an image when the light supplement unit is turned on, and the second image is an image when the light supplement unit is turned off.
Step 305, extracting first information from the first image, wherein the first information is used for representing the image edge contour so as to obtain a target image template comprising the image edge contour, and the target image template is used as an object to be filled in processing.
And step 306, extracting second information from the second image, wherein the second information is used for representing the color and the distribution of the image to obtain source image information comprising the color and the distribution of the image, and the source image information is used as a filling object during processing.
And 307, filling the source image information into the target image template to realize fusion processing, and obtaining a third image.
By adopting the embodiment of the invention, the shutter processing unit can be triggered through the step 301, the light supplement unit can be started through triggering the shutter processing unit through the step 302, the light supplement unit is used for triggering the shutter processing unit to be started when in operation, the light supplement unit can emit light with a specified wavelength when being started, two images can be simultaneously acquired when the shutter processing unit is triggered through the step 303 and the step 304, the first image and the second image are two images under different illumination environments obtained by carrying out image acquisition on the same scene, the first image is an image under the condition that the light supplement unit is started, and the second image is an image under the condition that the light supplement unit is closed. The first image and the second image can be processed through step 305 and step 307 to obtain a third image, for example, the two images are overlapped and fused through fusion processing to obtain the third image, so that the image quality of the third image is better than that of the first image and the second image, and a better imaging effect in a low-light environment is achieved.
The first image is obtained by imaging a first light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the first light ray is a light ray conforming to the light emitting frequency of the flash lamp and has a specific wavelength, such as a UV light ray, and when the light supplementing unit is the flash lamp, the first image is a photo with the flash lamp; the second image is obtained by imaging a second light ray obtained by performing light splitting processing through the light filtering component in the embodiment of the electronic device, the second light ray is a light ray with a different light emitting frequency from the flash lamp, for example, natural light without a flash lamp, and when the light supplementing unit is a flash lamp, the second image is a photo without a flash lamp.
Fig. 8 is a schematic diagram illustrating how the step 305 and 307 implement processing the first image and the second image to obtain a third image. As shown in fig. 8, first information is extracted from the first image, the first information is used for representing an image edge contour to obtain a target image template including the image edge contour, second information is extracted from the second image, the second information is used for representing an image color and distribution to obtain source image information including the image color and distribution, and the first information and the second information are subjected to information fusion and image reproduction to obtain a final third image.
In a preferred embodiment of the present invention, the obtained third image may be further subjected to shading correction, and a corrected image with better image quality is finally obtained, as shown in fig. 9, which is a schematic diagram of how to process the first image and the second image in this embodiment to obtain the third image. As shown in fig. 9, first information is extracted from the first image, where the first information is used to represent an image edge contour to obtain a target image template including the image edge contour, second information is extracted from the second image, where the second information is used to represent an image color and distribution to obtain source image information including the image color and distribution, the first information and the second information are subjected to information fusion and image reproduction to obtain a third image, the third image is used as a preliminarily reconstructed image, and after shading correction, a corrected image with better image quality is finally obtained, and the image is used as a final image.
In a preferred implementation manner of the embodiment of the present invention, how to extract the first information and the second information in step 305 and 307, so as to obtain the third image through the fusion processing, as shown in fig. 10, the shading correction is also included in fig. 10. Intensity in fig. 10 indicates "gradation adjustment", Color Gradient indicates "Color Gradient", Detail indicates "edge contour Detail protrusion", Large-scale indicates "proportion of enlarged image Color and distribution", and Shadow indicates "shading correction".
Wherein, as for the extracting of the first information from the first image, the method specifically includes:
carrying out gray level adjustment on the first image according to a first preset threshold range to obtain a first gray level image, wherein the first gray level image is used for determining the position of an image edge;
and extracting the position with large change difference of adjacent gray values from the first gray map to obtain the position of the image edge as the first information.
Wherein, as for the extracting of the second information from the second image, the method specifically includes:
adjusting the gray level of the second image according to a second preset threshold range to obtain a second gray level image, wherein the second gray level image is used for determining the color and distribution position of the image;
and combining the gray value in the second gray image with the color gradient to calculate to extract the position where the change of the adjacent gray values is uniform so as to obtain the color and the distribution position of the image in each area of the whole image, and using the position as the second information.
Under the condition that the light supplementing unit is a flash lamp, by shooting a picture with flash light and a picture without the flash light, different detail information (such as color, edge, gray scale and the like) of the pictures is fused, and a picture with optimal quality is reconstructed through proper shadow restoration.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.
Claims (12)
1. An electronic device, the electronic device having a shutter processing unit and a light supplement unit, the light supplement unit being configured to be turned on when triggering the shutter processing unit to operate, the electronic device further comprising: a light transmitting member, a light filtering member, a photosensitive imaging member and an image processing member; wherein,
the light-transmitting member is used for transmitting light rays entering the light-transmitting member from a first direction, wherein the first direction is a direction from the outer side of the light-transmitting member to the electronic equipment;
the light filtering component is positioned between the light transmitting component and the photosensitive imaging component and is used for dividing light rays passing through the light filtering component into two paths, the two paths are respectively transmitted, and a first light ray transmitted on a first light path and a second light ray transmitted on a second light path are respectively projected onto the photosensitive imaging component; the wavelengths of the first light and the second light are different;
the photosensitive imaging component is used for acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light;
the image processing component is used for processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image;
the first image and the second image are two images under different illumination environments obtained by carrying out image acquisition on the same scene, the first image is an image under the condition that the light supplementing unit is started, and the second image is an image under the condition that the light supplementing unit is closed;
when the light supplementing unit is started, light with a specific wavelength can be emitted; the first light is light with the specific wavelength.
2. The electronic device of claim 1, wherein the image sensor of the photosensitive imaging member is one piece.
3. The electronic device of claim 2, the first light ray projecting to a first area on the image sensor, the second light ray projecting to a second area on the image sensor, the first area and the second area not overlapping.
4. The electronic device of claim 1, the first light is a light that conforms to a flash firing frequency; the second light ray is a light ray with a different light emitting frequency from the flash lamp.
5. The electronic device of claim 1, further comprising:
and the reflecting component is used for reflecting the second light rays transmitted on the second light path through the reflecting component so that the second light rays are parallel to the first light rays after being reflected.
6. The electronic device of claim 2 or 5, wherein the image sensor is a flat piece receiving the first and second light rays projected in parallel.
7. The electronic device of claim 2, wherein the image sensor is divided into two parts with a predetermined angle, and receives the first light and the second light projected with the predetermined angle.
8. A data processing method is applied to an electronic device, the electronic device is provided with a shutter processing unit and a light supplementing unit, the light supplementing unit is used for triggering the shutter processing unit to be started when in operation, and the light supplementing unit can emit light with a specific wavelength when being started, and the method comprises the following steps:
acquiring a first image and a second image, wherein the first image and the second image are two images obtained by image acquisition of the same scene under different illumination environments, the first image is formed by splitting light rays incident to the electronic equipment from the outside of the electronic equipment into two paths through light splitting and projecting first light rays transmitted on a first light path onto an image sensor; the first light is light with the specific wavelength;
processing the first image and the second image to obtain a third image, so that the image quality of the third image is better than that of the first image and the second image;
the first image is an image when the light supplement unit is turned on, and the second image is an image when the light supplement unit is turned off.
9. The method of claim 8, the electronic device further having an image sensor, the method further comprising, prior to the acquiring the first and second images:
obtaining a first operation for triggering the shutter processing unit;
triggering the shutter processing unit and starting the light supplementing unit;
the acquiring the first image and the second image specifically includes:
when the shutter processing unit is triggered, light rays entering the electronic equipment from the outside of the electronic equipment are divided into two paths through light splitting, the two paths are respectively transmitted, and a first light ray transmitted on a first light path and a second light ray transmitted on a second light path are respectively projected to the image sensor; the first light ray is a light ray which accords with the light-emitting frequency of the flash lamp; the second light ray is a light ray with a different light-emitting frequency from the flash lamp;
and acquiring a first image obtained by imaging according to the first light and a second image obtained by imaging according to the second light through the image sensor, so that the image sensor simultaneously acquires the first image and the second image when the shutter processing unit is triggered.
10. The method according to claim 8, wherein the processing the first image and the second image to obtain a third image specifically comprises:
extracting first information from the first image, wherein the first information is used for representing an image edge contour so as to obtain a target image template comprising the image edge contour, and the target image template is used as an object to be filled in processing;
extracting second information from the second image, wherein the second information is used for representing the color and the distribution of the image so as to obtain source image information comprising the color and the distribution of the image, and the source image information is used as a filling object during processing;
and filling the source image information into the target image template to realize fusion processing, and obtaining a third image.
11. The method according to claim 10, wherein the extracting first information from the first image specifically includes:
carrying out gray level adjustment on the first image according to a first preset threshold range to obtain a first gray level image, wherein the first gray level image is used for determining the position of an image edge;
and extracting the position with large change difference of adjacent gray values from the first gray map to obtain the position of the image edge as the first information.
12. The method according to claim 10, wherein the extracting second information from the second image specifically includes:
adjusting the gray level of the second image according to a second preset threshold range to obtain a second gray level image, wherein the second gray level image is used for determining the color and distribution position of the image;
and combining the gray value in the second gray image with the color gradient to calculate to extract the position where the change of the adjacent gray values is uniform so as to obtain the color and the distribution position of the image in each area of the whole image, and using the position as the second information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410114339.4A CN104954658B (en) | 2014-03-25 | 2014-03-25 | A kind of electronic equipment and data processing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410114339.4A CN104954658B (en) | 2014-03-25 | 2014-03-25 | A kind of electronic equipment and data processing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104954658A CN104954658A (en) | 2015-09-30 |
CN104954658B true CN104954658B (en) | 2019-10-29 |
Family
ID=54168972
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410114339.4A Active CN104954658B (en) | 2014-03-25 | 2014-03-25 | A kind of electronic equipment and data processing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104954658B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110493492B (en) * | 2019-05-31 | 2021-02-26 | 杭州海康威视数字技术股份有限公司 | Image acquisition device and image acquisition method |
CN110493491B (en) * | 2019-05-31 | 2021-02-26 | 杭州海康威视数字技术股份有限公司 | Image acquisition device and camera shooting method |
CN110519489B (en) * | 2019-06-20 | 2021-04-06 | 杭州海康威视数字技术股份有限公司 | Image acquisition method and device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5240635A (en) * | 1992-02-06 | 1993-08-31 | The Dow Chemical Company | Composition of flexible polyurethane foams blown using reduced amounts of chlorofluorocarbon blowing agents and method for preparation |
CN1655044A (en) * | 2004-02-09 | 2005-08-17 | 奥林巴斯株式会社 | Camera |
CN1920896A (en) * | 2006-08-23 | 2007-02-28 | 王亚盛 | Real-time image monitoring and genuine-fake identification system for vehicle with automatic color regulating and light filling license plate |
CN101631202A (en) * | 2008-07-16 | 2010-01-20 | 肖长诗 | Method for acquiring images with super-wide dynamic range |
CN102857699A (en) * | 2011-06-29 | 2013-01-02 | 全友电脑股份有限公司 | Image capturing system and method |
CN102857681A (en) * | 2012-09-13 | 2013-01-02 | 侯大威 | Image acquisition method and image quality improving method by half-reflecting mirror |
-
2014
- 2014-03-25 CN CN201410114339.4A patent/CN104954658B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5240635A (en) * | 1992-02-06 | 1993-08-31 | The Dow Chemical Company | Composition of flexible polyurethane foams blown using reduced amounts of chlorofluorocarbon blowing agents and method for preparation |
CN1655044A (en) * | 2004-02-09 | 2005-08-17 | 奥林巴斯株式会社 | Camera |
CN1920896A (en) * | 2006-08-23 | 2007-02-28 | 王亚盛 | Real-time image monitoring and genuine-fake identification system for vehicle with automatic color regulating and light filling license plate |
CN101631202A (en) * | 2008-07-16 | 2010-01-20 | 肖长诗 | Method for acquiring images with super-wide dynamic range |
CN102857699A (en) * | 2011-06-29 | 2013-01-02 | 全友电脑股份有限公司 | Image capturing system and method |
CN102857681A (en) * | 2012-09-13 | 2013-01-02 | 侯大威 | Image acquisition method and image quality improving method by half-reflecting mirror |
Non-Patent Citations (1)
Title |
---|
《基于神经网络与图像处理的花生仁霉变识别方法》;陈红等;《农业工程学报》;20070430;第23卷(第4期);正文第2部分第2.2节-第3部分,附图3-5 * |
Also Published As
Publication number | Publication date |
---|---|
CN104954658A (en) | 2015-09-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5530440B2 (en) | In-camera based method for detecting defects with high accuracy | |
CN107408201B (en) | Digital camera unit with simultaneous structured and unstructured illumination | |
WO2009139154A1 (en) | Image pickup device and image pickup method | |
JP6305941B2 (en) | Writing system and method for object enhancement | |
CN104754203A (en) | Photographing method, device and terminal | |
CN106878605A (en) | The method and electronic equipment of a kind of image generation based on electronic equipment | |
JP2009267436A (en) | Imaging apparatus, imaging method, program, recording medium, and integrated circuit | |
US20180332239A1 (en) | Background replacement utilizing infrared light and visible light | |
JP6381404B2 (en) | Image processing apparatus and method, and imaging apparatus | |
JP6412386B2 (en) | Image processing apparatus, control method therefor, program, and recording medium | |
CN104954658B (en) | A kind of electronic equipment and data processing method | |
CN107872631A (en) | Image capturing method, device and mobile terminal based on dual camera | |
JP2014180285A (en) | Skin image generation system for analysis and skin image generation method for analysis | |
JP7059076B2 (en) | Image processing device, its control method, program, recording medium | |
JP2015034850A (en) | Photographing device and photographing method | |
CN108629329B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
CN109300186B (en) | Image processing method and device, storage medium and electronic equipment | |
CN109447927B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
JP5566680B2 (en) | Imaging apparatus and imaging method | |
JP2015154220A (en) | Illumination control device | |
CN115278098B (en) | Image shooting method, system and shooting device thereof | |
JP2016170768A (en) | Code reader, code reading method, and program | |
KR20160044405A (en) | Camera for illuminating a scene and control method thereof | |
KR20150104846A (en) | Method and apparatus for generating three dimensional image using a monoscopic camera | |
CN105335958B (en) | The processing method and equipment of flash lighting |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |