Imaging modules, electronic equipment, image processing method and storage medium

文档序号:1775519 发布日期:2019-12-03 浏览:13次 中文

阅读说明:本技术 成像模组、电子设备、图像处理方法和存储介质 (Imaging modules, electronic equipment, image processing method and storage medium ) 是由 张磊 孙景阳 杨乐 于 2018-05-23 设计创作,主要内容包括:本申请提出一种成像模组、电子设备、图像处理方法和存储介质,其中,成像模组设置于电子设备的显示屏下方,与显示屏的透光区域对应位置,成像模组包括:凹透镜、成像透镜组和图像传感器;凹透镜,设置于显示屏的透光区域对应位置,用于对透过透光区域的光线进行发散;成像透镜组,设置于凹透镜的出光面一侧,用于对凹透镜发散后的光线进行光学变换;图像传感器,设置于成像透镜组的出光面一侧,用于根据成像透镜组出射的光线采集成像图像。该成像模组能够实现在相同的成像区域中,显示更大的取景范围,有效提升用户的拍照体验。(The application proposes a kind of imaging modules, electronic equipment, image processing method and storage medium, wherein, imaging modules are set to below the display screen of electronic equipment, and the transmission region corresponding position with display screen, imaging modules include: concavees lens, imaging lens group and imaging sensor;Concavees lens are set to the transmission region corresponding position of display screen, for dissipating the light through transmission region;Imaging lens group is set to the light-emitting surface side of concavees lens, carries out optical transform for the light after dissipating concavees lens;Imaging sensor is set to the light-emitting surface side of imaging lens group, and the light for being emitted according to imaging lens group acquires image.The imaging modules can be realized in identical imaging region, shows bigger viewfinder range, effectively promotes the experience of taking pictures of user.)

1. a kind of imaging modules, which is characterized in that the imaging modules are set to below the display screen of electronic equipment, are shown with described The transmission region corresponding position of display screen, the imaging modules include: concavees lens, imaging lens group and imaging sensor;

The concavees lens are set to the transmission region corresponding position of the display screen, for the light through the transmission region Line is dissipated;

The imaging lens group is set to the light-emitting surface side of the concavees lens, for the light after concavees lens diverging Carry out optical transform;

Described image sensor is set to the light-emitting surface side of the imaging lens group, for being gone out according to the imaging lens group The light acquisition image penetrated.

2. imaging modules according to claim 1, which is characterized in that

The non-transparent region of the display screen is covered with cover board, and the transmission region of the display screen does not cover the cover board;

The side edge at the edge of the concavees lens and the cover board.

3. imaging modules according to claim 2, which is characterized in that

The thickness matching of the thickness of the concavees lens and the cover board;

The top edge of the concavees lens is concordant with the top edge of the cover board.

4. imaging modules according to claim 1, which is characterized in that

The concavees lens are plano-concave lens;

The incidence surface side of the concavees lens is concave surface, and the light-emitting surface side of the concavees lens is plane.

5. imaging modules according to claim 1-4, which is characterized in that

The optical axis of the concavees lens, it is coaxial with the optical axis of the imaging lens group.

6. a kind of electronic equipment, which is characterized in that the electronic equipment includes display screen and imaging modules;

The display screen, including transmission region and non-transparent region, wherein the transmission region is provided with concavees lens, is used for Light is dissipated;

The imaging modules are set to the light-emitting surface side of the concavees lens, for according to the light after concavees lens diverging It is imaged.

7. electronic equipment according to claim 6, which is characterized in that

The transmission region of the display screen does not cover cover board;

Cover board described in the non-transparent region overlay of the display screen;

The side edge at the edge of the concavees lens and the cover board.

8. electronic equipment according to claim 7, which is characterized in that

The thickness matching of the thickness of the concavees lens and the cover board;

The top edge of the concavees lens is concordant with the top edge of the cover board.

9. electronic equipment according to claim 6, which is characterized in that

The transmission region of the display screen and non-transparent region cover cover board;

The incidence surface side of the concavees lens is bonded with the lid surface, alternatively, the light-emitting surface side of the concavees lens and institute State lid surface fitting.

10. electronic equipment according to claim 6, which is characterized in that

The concavees lens are plano-concave lens;

The incidence surface side of the concavees lens is concave surface, and the light-emitting surface side of the concavees lens is plane.

11. electronic equipment according to claim 6, which is characterized in that

The optical axis of the concavees lens, it is coaxial with the optical axis of the imaging modules.

12. according to the described in any item electronic equipments of claim 6-11, which is characterized in that

The imaging modules and processor are electrically connected;

The processor is adjacent in the image at least two for obtaining image from the imaging modules Pixel carries out interpolation processing according to the gray value of the vegetarian refreshments of described at least two adjacent pictures, obtains the gray scale of interpolating pixel point Value;According to the gray value of the interpolating pixel point, processing is modified to the image.

13. a kind of image processing method, which is characterized in that the described method includes:

Obtain the image of imaging sensor acquisition;

Interpolation processing is carried out to the gray value of at least two adjacent pixels in the image, obtains interpolating pixel point Gray value;

According to the gray value of the interpolating pixel point, processing is modified to the image.

14. image processing method according to claim 13, which is characterized in that described in the image at least two The gray value of a adjacent pixel carries out interpolation processing, obtains the gray value of interpolating pixel point, comprising:

According to the gray value of described at least two adjacent pixels, the corresponding relationship between sum of the grayscale values brightness is inquired, is obtained Corresponding brightness value;

According to the brightness value that described at least two adjacent pixels inquire, the brightness value of interpolating pixel point is determined;

According to the brightness value of the interpolating pixel point, the corresponding relationship between the sum of the grayscale values brightness is inquired, obtains described insert It is worth the gray value of pixel.

15. image processing method according to claim 14, which is characterized in that described adjacent according to described at least two The brightness value that pixel inquires determines the brightness value of interpolating pixel point, comprising:

Average value is calculated to the brightness value that described at least two adjacent pixels inquire, is inserted using the average value as described It is worth the brightness value of pixel.

16. the described in any item image processing methods of 3-15 according to claim 1, which is characterized in that described according to the interpolation The gray value of pixel is modified processing to the image, comprising:

The interpolating pixel point is inserted between described at least two adjacent pixels, to obtain revised image.

17. a kind of electronic equipment characterized by comprising memory, processor and storage are on a memory and can be in processor The computer program of upper operation when the processor executes described program, realizes the figure as described in any in claim 13-16 As processing method.

18. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The image processing method as described in any in claim 13-16 is realized when execution.

Technical field

This application involves technical field of mobile terminals more particularly to a kind of imaging modules, electronic equipment, image processing methods And storage medium.

Background technique

Currently, at the electronic equipment that design is shielded comprehensively, by the way that the predeterminated position of display screen is hollowed out, or by display screen Predetermined position light transmission setting, then by front camera be arranged below display screen predeterminated position, thus front camera Image can be shot by hollowing out position or transmission region.

When practical application, it has been found that front camera is arranged in below the transmission region of display screen, preposition camera shooting The viewfinder range of head is smaller.

Summary of the invention

The application is intended to solve at least some of the technical problems in related technologies.

For this purpose, the application proposes a kind of imaging modules, to realize in identical imaging region, bigger model of finding a view is shown It encloses, can effectively promote the experience of taking pictures of user.

The application proposes a kind of electronic equipment.

The application proposes a kind of image processing method.

The application proposes another electronic equipment.

The application proposes a kind of computer readable storage medium.

The application one side embodiment proposes a kind of imaging modules, and the imaging modules are set to the display of electronic equipment Screen lower section, the transmission region corresponding position with the display screen, the imaging modules include: concavees lens, imaging lens group and figure As sensor;

The concavees lens are set to the transmission region corresponding position of the display screen, for through the transmission region Light dissipated;

The imaging lens group is set to the light-emitting surface side of the concavees lens, after to concavees lens diverging Light carries out optical transform;

Described image sensor is set to the light-emitting surface side of the imaging lens group, for according to the imaging len The light of group outgoing acquires image.

Concavees lens are arranged by the transmission region corresponding position in display screen, to saturating in the imaging modules of the embodiment of the present application The light for crossing transmission region is dissipated, then using the imaging lens group for the light-emitting surface side for being set to concavees lens, to recessed Light after mirror diverging carries out optical transform, later using the imaging sensor for the light-emitting surface side for being set to imaging lens group, Image is acquired according to the light of imaging lens group outgoing.In the application, the transmission region corresponding position in display screen is utilized Concavees lens are set, may be implemented in identical imaging region, shows bigger viewfinder range, can effectively promote the bat of user According to experience.

The another aspect embodiment of the application proposes a kind of electronic equipment, and the electronic equipment includes display screen, and imaging Mould group;

The display screen, including transmission region and non-transparent region, wherein the transmission region is provided with concavees lens, For dissipating light;

The imaging modules are set to the light-emitting surface side of the concavees lens, after according to concavees lens diverging Light is imaged.

Concavees lens are arranged by the transmission region of the display screen in electronic equipment in the electronic equipment of the embodiment of the present application, right Light is dissipated, and then using the imaging modules of the light-emitting surface side of concavees lens, the light after being dissipated according to concavees lens is carried out Imaging.Thus, it is possible to realize in identical imaging region, shows bigger viewfinder range, can effectively promote the bat of user According to experience.

The another aspect embodiment of the application proposes a kind of image processing method, which comprises

Obtain the image of imaging sensor acquisition;

Interpolation processing is carried out to the gray value of at least two adjacent pixels in the image, obtains interpolating pixel The gray value of point;

According to the gray value of the interpolating pixel point, processing is modified to the image.

The image processing method of the embodiment of the present application, by the image for obtaining imaging sensor acquisition;To image The gray value of at least two adjacent pixels carries out interpolation processing as in, obtains the gray value of interpolating pixel point;According to interpolation The gray value of pixel is modified processing to image.In the application, by least two adjacent pixels it Between, it is inserted into interpolating pixel point, may be implemented for compressed image to be modified, reduce the distortion of image, it can Imaging effect is promoted, effectively so as to be conducive to the development of screen electronic equipment comprehensively.

The another aspect embodiment of the application proposes another electronic equipment, comprising: memory, processor and is stored in On reservoir and the computer program that can run on a processor, when the processor executes described program, realize as before the application State the image processing method of embodiment proposition.

The another aspect embodiment of the application proposes a kind of computer readable storage medium, is stored thereon with computer journey Sequence, which is characterized in that the image processing method proposed such as the application previous embodiment is realized when the program is executed by processor.

The additional aspect of the application and advantage will be set forth in part in the description, and will partially become from the following description It obtains obviously, or recognized by the practice of the application.

Detailed description of the invention

The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:

Fig. 1 is light path schematic diagram when traditional front camera acquires image;

Fig. 2 is the structural schematic diagram of imaging modules provided by the embodiment of the present application one;

Light path schematic diagram when Fig. 3 is imaging modules acquisition image in the embodiment of the present application;

Fig. 4 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application two;

Fig. 5 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application three;

Fig. 6 is the flow diagram of image processing method provided by the embodiment of the present application four;

Fig. 7 is the correspondence diagram in the embodiment of the present application between the sum of the grayscale values brightness of pixel;

Fig. 8 is the determination schematic diagram of interpolating pixel point in the embodiment of the present application;

Fig. 9 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application five.

Specific embodiment

Embodiments herein is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and should not be understood as the limitation to the application.

Currently, at the electronic equipment that design is shielded comprehensively, by the way that the predeterminated position of display screen is hollowed out, or by display screen Predetermined position light transmission setting, then by front camera be arranged below display screen predeterminated position, thus front camera Image can be shot by hollowing out position or transmission region.

For example, with reference to the light path schematic diagram that Fig. 1, Fig. 1 are when traditional front camera acquires image.Wherein, 11 table Show the non-transparent region of display screen, front camera includes: imaging lens group 12 and imaging sensor 13.Imaging lens group 12 from Transmission region among the non-transparent region 11 of display screen, receives light, and by beam projecting to imaging sensor 13, to scheme As sensor 13 can acquire image.

Wherein, the imaging sensor 13 in Fig. 1 is complementary mos device (Complementary Metal Oxide Semiconductor, abbreviation CMOS), the light being emitted by CMOS according to imaging lens group 12, acquisition imaging Image.

As shown in Figure 1, front camera is arranged in below the transmission region of display screen, when there are 10 figures in picture of finding a view When picture point position, CMOS can only acquire 4 image points, and the picture that causes to find a view can not be shown completely, it is known that, front camera takes Scape range is smaller.

The application causes to take mainly for front camera is arranged in below the transmission region of display screen in the prior art Scape picture can not show that the lesser technical problem of the viewfinder range of i.e. front camera proposes a kind of imaging modules completely.

In the embodiment of the present application, concavees lens are arranged by the transmission region corresponding position in display screen, to through transparent area The light in domain is dissipated, then using the imaging lens group for the light-emitting surface side for being set to concavees lens, after concavees lens diverging Light carry out optical transform, later using the imaging sensor for the light-emitting surface side for being set to imaging lens group, according to imaging The light of lens group outgoing acquires image.In the application, it is arranged using the transmission region corresponding position in display screen recessed Mirror may be implemented in identical imaging region, shows bigger viewfinder range, can effectively promote the experience of taking pictures of user.

Below with reference to the accompanying drawings imaging modules, electronic equipment, image processing method and the storage for describing the embodiment of the present application are situated between Matter.

Fig. 2 is the structural schematic diagram of imaging modules provided by the embodiment of the present application one, and concavees lens 110, imaging are saturating in Fig. 2 Connection relationship between microscope group 120 and imaging sensor 130 indicates light transmission sequence, and light is from concavees lens 110 by being imaged Lens group 120 is incident on the imaging of imaging sensor 130.

As shown in Fig. 2, the imaging modules 100, are set to below the display screen of electronic equipment, the transmission region with display screen Corresponding position, imaging modules 100 include: concavees lens 110, imaging lens group 120 and imaging sensor 130.Wherein,

Concavees lens 110 are set to the transmission region corresponding position of display screen, for carrying out to the light through transmission region Diverging.

In the embodiment of the present application, in order to expand viewfinder range, it can be arranged in the transmission region corresponding position of display screen Concavees lens 110, so as to be dissipated by 110 pairs of the concavees lens light through transmission region.

As a kind of possible implementation, in the application, concavees lens 110 can be plano-concave lens, and concavees lens 110 enter Smooth surface side is concave surface, and the light-emitting surface side of concavees lens 120 is plane.

As a kind of possible implementation, the non-transparent region of display screen can be covered with cover board, and display screen is saturating Light region can not cover cover board.Further, in order to guarantee that optical path cleans, the edge of concavees lens 110 can be with the side of cover board Edge connects.

Optionally, in order to guarantee the aesthetics of electronic equipment appearance, the thickness of concavees lens 110 can be with the thickness of cover board Match, and the top edge of concavees lens 110 is concordant with the top edge of cover board.

As alternatively possible implementation, the transmission region 220 of display screen 200 and non-transparent region 210 can be equal Cover board is covered, the incidence surface side of concavees lens 110 is bonded with lid surface, alternatively, the light-emitting surface side of concavees lens 110 and cover board Surface fitting.

Imaging lens group 120 is set to the light-emitting surface side of concavees lens 110, for the light after dissipating concavees lens 110 Carry out optical transform.

Under normal circumstances, the requirement that individually a piece of lens may be unable to satisfy aberration correction therefore can be by being arranged to As lens group 120, meet imaging requirements, and reach the optical properties such as specified relative aperture, field angle.Specifically, this Shen Please be in embodiment, the light in the light-emitting surface side of concavees lens 110, after dissipating concavees lens 110 can be set in imaging lens group 120 Line carries out optical transform.Specifically optical conversion process is mainly used for the blur-free imaging at imaging sensor 130 here, including adjusts Coke, depth of field adjustment etc..

As a kind of possible implementation, in order to reduce image deformation, guarantee preferable imaging effect, the application is implemented In example, the optical axis of concavees lens 110 can be coaxial with the optical axis of imaging lens group 120.

Imaging sensor 130 is set to the light-emitting surface side of imaging lens group 120, for being gone out according to imaging lens group 120 The light acquisition image penetrated.

In the embodiment of the present application, image imaging can be acquired by imaging sensor 130.Wherein, imaging sensor 130 It can be charge coupled cell (Charge Coupled Device, abbreviation CCD), or be CMOS, with no restriction to this.

Specifically, imaging sensor 130 can be set in the light-emitting surface side of imaging lens group 120, imaging sensor 130 According to the light that imaging lens group 120 is emitted, image is acquired.

As an example, optical path when image is acquired for imaging modules in the embodiment of the present application referring to Fig. 3, Fig. 3 Schematic diagram.Wherein, the non-transparent region of 210 expression display screens.It should be noted that Fig. 3 is only that plano-concave is saturating with concavees lens 110 Mirror and imaging sensor 130 are CMOS example.

The non-transparent region 210 of display screen is covered with cover board, in order to increase the luminous flux for being incident on imaging sensor 130, The transmission region of display screen does not cover cover board, and the edge of concavees lens 110 can be with the side edge of cover board.For the ease of analysis And statement, Fig. 3 only with the edge of concavees lens 110 not with the side edge example of cover board.

From the figure 3, it may be seen that after concavees lens 110 are set on an electronic device, 110 pairs of the concavees lens light through transmission region It is dissipated, 8 picture points can be shown on 4 CMOS, that is to say, that after concavees lens 110 are set on an electronic device, In identical imaging region, bigger viewfinder range can be shown.

Concavees lens are arranged by the transmission region corresponding position in display screen in the imaging modules 100 of the embodiment of the present application 110, the light through transmission region is dissipated, then the imaging using the light-emitting surface side for being set to concavees lens 110 is saturating Microscope group 120, the light after dissipating concavees lens 110 carry out optical transform, utilize the light out for being set to imaging lens group 120 later The imaging sensor 130 of face side acquires image according to the light that imaging lens group 120 is emitted.In the application, using Concavees lens 110 are arranged in the transmission region corresponding position of display screen, may be implemented in identical imaging region, show bigger take Scape range can effectively promote the experience of taking pictures of user.

In order to realize above-described embodiment, the application also proposes a kind of electronic equipment.

Fig. 4 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application two.

As shown in figure 4, the electronic equipment includes: display screen 200 and imaging modules 100.Wherein,

Display screen 200, including non-transparent region 210 and transmission region 220, wherein transmission region 220 is provided with recessed Mirror 110, for dissipating light.

It, can be in 220 corresponding position of transmission region of display screen 200 in order to expand viewfinder range in the embodiment of the present application Place's setting concavees lens 110, so as to be dissipated by 110 pairs of the concavees lens light through transmission region 220.

As a kind of possible implementation, in the application, concavees lens 110 can be plano-concave lens, and concavees lens 110 enter Smooth surface side is concave surface, and the light-emitting surface side of concavees lens 120 is plane.

As a kind of possible implementation, the non-transparent region 210 of display screen 200 can be covered with cover board, and show The transmission region 220 of screen 200 can not cover cover board.Further, in order to guarantee that optical path cleans, the edge of concavees lens 110 can With the side edge with cover board.

Optionally, in order to guarantee the aesthetics of electronic equipment appearance, the thickness of concavees lens 110 can be with the thickness of cover board Match, and the top edge of concavees lens 110 is concordant with the top edge of cover board.

As alternatively possible implementation, the transmission region 220 of display screen 200 and non-transparent region 210 can be equal Cover board is covered, the incidence surface side of concavees lens 110 is bonded with lid surface, alternatively, the light-emitting surface side of concavees lens 110 and cover board Surface fitting.

The embodiment of the present application is only covered with cover board with the non-transparent region 210 of display screen 200, and transmission region 220 does not cover It is stamped cover board, and the top edge of concavees lens 110 example concordant with the top edge of cover board.

Imaging modules 100 are set to the light-emitting surface side of concavees lens 110, for the light after being dissipated according to concavees lens 110 It is imaged.

It should be noted that being also adapted in the present embodiment in above-mentioned Fig. 2 embodiment to the explanation of imaging modules 100 Imaging modules 100, details are not described herein again.

As a kind of possible implementation, in order to reduce image deformation, to guarantee preferable imaging effect, the application In embodiment, the optical axis of concavees lens 110 can be coaxial with the optical axis of imaging modules 100.

The electronic equipment of the embodiment of the present application is arranged recessed by the transmission region 220 of the display screen 200 in electronic equipment Mirror 110, dissipates light, then using the imaging modules 100 of the light-emitting surface side of concavees lens 110, according to concavees lens 110 Light after diverging is imaged.Thus, it is possible to realize in identical imaging region, bigger viewfinder range is shown, it can Effectively promote the experience of taking pictures of user.

In the embodiment of the present application, after by setting concavees lens 110 to expand viewfinder range, in identical imaging region In, it will show bigger viewfinder range, compressed so as to cause image.For example, with reference to Fig. 1 and Fig. 3, when not set in electronics When standby upper setting concavees lens 110, as shown in Figure 1,4 picture points are shown on 4 CMOS, and ought be arranged on an electronic device After concavees lens 110,8 picture points are shown on 4 CMOS, that is to say, that when on an electronic device be arranged concavees lens 110 Afterwards, it in identical imaging region, can show bigger viewfinder range, be compressed, be may cause so as to cause image The distortion of image.Therefore, in the application, image is modified in order to realize, reduces the distortion of image, from And imaging effect is promoted, referring to Fig. 5, which can also include processor 300, wherein imaging modules 100 and processor 300 are electrically connected.

Processor 300, for obtaining image from imaging modules 100, in image at least two adjacent pictures Vegetarian refreshments carries out interpolation processing according to the gray value of the vegetarian refreshments of at least two adjacent pictures, obtains the gray value of interpolating pixel point;According to The gray value of interpolating pixel point is modified processing to image.Specific implementation procedure may refer to scheme in subsequent embodiment As the implementation procedure of processing method, it is not repeated herein.

The electronic equipment of the embodiment of the present application obtains image from imaging modules by the processor in electronic equipment, To in image at least two adjacent pixels, carried out at interpolation according to the gray value of the vegetarian refreshments of at least two adjacent pictures Reason, obtains the gray value of interpolating pixel point;According to the gray value of interpolating pixel point, processing is modified to image.This Shen Please in, by between at least two adjacent pixels, be inserted into interpolating pixel point, may be implemented compressed image It is modified, reduces the distortion of image, to promote imaging effect.

In order to realize above-described embodiment, the application also proposes a kind of image processing method.

Fig. 6 is the flow diagram of image processing method provided by the embodiment of the present application four.

As shown in fig. 6, the image processing method may comprise steps of:

Step 101, the image of imaging sensor acquisition is obtained.

In the embodiment of the present application, imaging sensor is photosensitive element, such as can be CCD, or be CMOS, is not made to this Limitation.

Specifically, the light that imaging sensor can be emitted according to imaging lens group acquires image.

Step 102, interpolation processing is carried out to the gray value of in image at least two adjacent pixels, obtains interpolation The gray value of pixel.

It,, will in identical imaging region after by setting concavees lens to expand viewfinder range in the embodiment of the present application It shows bigger viewfinder range, is compressed so as to cause image, may cause the distortion of image.Therefore, the application In, compressed image is modified in order to realize, reduces the distortion of image, so that imaging effect is promoted, it can Interpolation processing is carried out with the gray value in image at least two adjacent pixels, obtains the gray scale of interpolating pixel point Value.

As a kind of possible implementation, the gray value and interpolation of at least two adjacent pixels can be pre-established Mapping relations between the gray value of pixel, in determining image when the gray value of at least two adjacent pixels, Interpolating pixel point corresponding with the gray value of at least two adjacent pixels can be obtained by inquiring above-mentioned mapping relations Gray value, it is easy to operate and be easily achieved.

As alternatively possible implementation, there is non-linear relation, example between the gray value and brightness value of pixel If the corresponding relationship between sum of the grayscale values brightness value can be gamma as shown in Figure 7.It can be according to the gray scale of pixel Non-linear relation between value and brightness value, determines the gray value of interpolating pixel point.

Specifically, the corresponding relationship between the gray value of pixel and brightness value can be pre-established, is determining at least two After the gray value of a adjacent pixel, the corresponding relationship between gray value and brightness value can be inquired, determines at least two phases The corresponding brightness value of each pixel in adjacent pixel.Then, the brightness inquired according at least two adjacent pixels Value, determines the brightness value of interpolating pixel point, for example, can calculate the brightness value that at least two adjacent pixels inquire flat Mean value, using average value as the brightness value of interpolating pixel point, for example, referring to 8, when the ash for determining two adjacent pixels When angle value is A and B, according to gamma, it can determine that the corresponding brightness value of A is S1, the corresponding brightness value of B is S2, then interpolation The brightness value of pixel can be (S1+S2)/2。

Alternatively, any brightness value between the brightness value that at least two adjacent pixels can be inquired, as slotting It is worth the brightness value of pixel.For example, when the gray value for determining two adjacent pixels is A and B, according to pixel Corresponding relationship between gray value and brightness value can determine that the corresponding brightness value of A is S1, the corresponding brightness value of B is S2, then insert The brightness value of value pixel can beOr at least two adjacent pictures can be determined according to other any algorithms The brightness value between brightness value that vegetarian refreshments inquires, with no restriction to this.

After the brightness value for determining interpolating pixel point, it is bright can be inquired according to the brightness value of interpolating pixel point for sum of the grayscale values Corresponding relationship between degree obtains the gray value of interpolating pixel point.For example, with reference to Fig. 8, can be determined according to gamma slotting The gray value for being worth pixel is c.

Step 103, according to the gray value of interpolating pixel point, processing is modified to image.

In the embodiment of the present application, after the gray value for determining interpolating pixel point, can according to the gray value of interpolating pixel point, Processing is modified to image.Specifically, interpolating pixel point can be inserted between at least two adjacent pixels, with Obtain revised image.

Still with above-mentioned example, the corresponding gray value c of interpolating pixel point can be inserted between a and b.

The image processing method of the present embodiment, by the image for obtaining imaging sensor acquisition;To in image The gray value of at least two adjacent pixels carries out interpolation processing, obtains the gray value of interpolating pixel point;According to interpolating pixel The gray value of point, is modified processing to image.In the application, by inserting between at least two adjacent pixels Enter interpolating pixel point, may be implemented for compressed image to be modified, reduce the distortion of image, can effectively mention Imaging effect is risen, so as to be conducive to the development of screen electronic equipment comprehensively.

In order to realize above-described embodiment, the application also proposes another electronic equipment.

Fig. 9 is the structural schematic diagram of electronic equipment provided by the embodiment of the present application five.

As shown in figure 9, the electronic equipment includes: memory 401, processor 402 and is stored on memory 401 and can be The computer program run on processor 402 when processor 402 executes program, is realized as the application previous embodiment proposes Image processing method.

In order to realize above-described embodiment, the application also proposes a kind of computer readable storage medium, is stored thereon with calculating Machine program, which is characterized in that the image processing method proposed such as the application previous embodiment is realized when the program is executed by processor Method.

In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is contained at least one embodiment or example of the application.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.

In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present application, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.

Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the application includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be by the application Embodiment person of ordinary skill in the field understood.

Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.

It should be appreciated that each section of the application can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..

Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.

It, can also be in addition, can integrate in a processing module in each functional unit in each embodiment of the application It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.

Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as the limit to the application System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of application Type.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:潜望式摄像模组及其阵列摄像模组及其制造方法和电子设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类