CN106878604A - The method and electronic equipment of a kind of image generation based on electronic equipment - Google Patents

The method and electronic equipment of a kind of image generation based on electronic equipment Download PDF

Info

Publication number
CN106878604A
CN106878604A CN201510917295.3A CN201510917295A CN106878604A CN 106878604 A CN106878604 A CN 106878604A CN 201510917295 A CN201510917295 A CN 201510917295A CN 106878604 A CN106878604 A CN 106878604A
Authority
CN
China
Prior art keywords
image
destination object
capture device
electronic equipment
image capture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510917295.3A
Other languages
Chinese (zh)
Other versions
CN106878604B (en
Inventor
万明明
何松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510917295.3A priority Critical patent/CN106878604B/en
Publication of CN106878604A publication Critical patent/CN106878604A/en
Application granted granted Critical
Publication of CN106878604B publication Critical patent/CN106878604B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The method and electronic equipment of a kind of image generation based on electronic equipment are the embodiment of the invention provides, the electronic equipment at least includes the first image capture device and the second image capture device positioned at same camera plane;Methods described includes:Start described first image collecting device and second image capture device;Range measurement principle is taken the photograph based on double, described first image collecting device is respectively adopted and second image capture device is focused for same destination object, obtain corresponding first image and the second image;Described first image and second image are synthesized the target image of the destination object.The present invention can reach very fast focusing, greatly accelerate the speed of focusing, reach more preferable imaging effect.

Description

The method and electronic equipment of a kind of image generation based on electronic equipment
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of image life based on electronic equipment Into method and a kind of electronic equipment of generation image.
Background technology
At present, camera function become basic function essential to the electronic equipment for consumption such as mobile phone it One, when the electronic equipment equipped with digital camera module is intended to shoot an object, electronic equipment can start One focusing flow, in existing focusing flow, the camera lens of digital camera module can be moved forward and backward, and the number Word camera model can photograph the object to obtain multiple on some positions when the camera lens is movable Image, and calculate each self-corresponding image clarity values (focus value) of the plurality of image, Ran Houli A pinpointed focus is found with the plurality of image clarity values, in this way, the image device can be optimal according to this Focussing camera lens, to obtain the picture rich in detail of the object.As can be seen that being obtained in above-mentioned focusing mode The computational methods for obtaining focal length are relatively complicated, and focusing accuracy is not high.
Also, in some scenarios, such as low light environment, low contrast environment etc., existing focus process Often fail, it is impossible to take clearly image.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least part of to provide one kind A kind of method of image generation based on electronic equipment that solves the above problems and corresponding a kind of generation The electronic equipment of image.
According to one aspect of the present invention, there is provided a kind of method of the image generation based on electronic equipment, The electronic equipment at least includes the first image capture device and the second figure positioned at same camera plane As collecting device;
Methods described includes:
Start described first image collecting device and second image capture device;
Range measurement principle is taken the photograph based on double, described first image collecting device and second image is respectively adopted Collecting device is focused for same destination object, obtains corresponding first image and the second image;
Described first image and second image are synthesized the target image of the destination object.
Alternatively, it is described to take the photograph range measurement principle based on double, be respectively adopted described first image collecting device and Second image capture device is focused for same destination object, obtain corresponding first image with And the step of the second image includes:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
Alternatively, the electronic equipment also includes closed loop focusing motor, described for same destination object, The destination object is focused according to first distance using described first image collecting device, is obtained The first image is obtained, and, using second image capture device according to the second distance to the mesh Mark object focused, obtain the second image the step of include:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
Alternatively, described first image is to focus on the image of color;Second image is to focus on wheel Wide, details and the image of brightness.
Alternatively, it is described by described first image and second image synthesizes the destination object The step of target image, includes:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
Alternatively, described first image is coloured image;Second image is black white image.
Alternatively, described first image collecting device includes colour RGBW sensors, second figure As collecting device includes black and white night vision sensor;Wherein, the colored RGBW sensors include colour filter Filter, the black and white night vision sensor does not include colour filter filter.
Alternatively, methods described also includes:
Export the target image.
Alternatively, in startup described first image collecting device and second image capture device The step of before, also include:
The current photographed scene of identification;
If identify current photographed scene for night vision scene, perform the startup described first image and adopt The step of collection equipment and second image capture device.
Alternatively, the step of identification current photographed scene includes:
Obtain the light intensity parameter of current photographed scene;
If the light intensity parameter is less than or equal to predetermined threshold value, identify that current photographed scene is Night vision scene;
If the light intensity parameter is more than predetermined threshold value, identify that current photographed scene is not night vision Scene.
According to another aspect of the present invention, there is provided a kind of electronic equipment for generating image, the electronics sets The first image capture device and the second image capture device included positioned at same camera plane few to the utmost;
The electronic equipment also includes:
Starting module, is suitable to start described first image collecting device and second IMAQ sets It is standby;
Image capture module, is suitable to take the photograph range measurement principle based on double, described first image collection is respectively adopted and sets Standby and described second image capture device is focused for same destination object, obtains corresponding first Image and the second image;
Synthesis module, is suitable to for described first image and second image to synthesize the destination object Target image.
Alternatively, described image acquisition module is further adapted for:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
Alternatively, the electronic equipment also includes closed loop focusing motor, and described image acquisition module is further adapted for:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
Alternatively, described first image is to focus on the image of color;Second image is to focus on wheel Wide, details and the image of brightness.
Alternatively, the synthesis module is further adapted for:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
Alternatively, described first image is coloured image;Second image is black white image.
Alternatively, described first image collecting device includes colour RGBW sensors, second figure As collecting device includes black and white night vision sensor;Wherein, the colored RGBW sensors include colour filter Filter, the black and white night vision sensor does not include colour filter filter.
Alternatively, the electronic equipment also includes:
Output module, is suitable to export the target image.
Alternatively, the electronic equipment also includes:
Scene Recognition module, is suitable to the current photographed scene of identification, if identifying, current photographed scene is During night vision scene, then the starting module is called.
Alternatively, the scene Recognition module is further adapted for:
Obtain the light intensity parameter of current photographed scene;
If the light intensity parameter is less than or equal to predetermined threshold value, identify that current photographed scene is Night vision scene;
If the light intensity parameter is more than predetermined threshold value, identify that current photographed scene is not night vision Scene.
The method and electronic equipment of a kind of image generation based on electronic equipment of the invention, can adopt Range measurement principle is taken the photograph with double, the first image capture device and the second image capture device is completed to destination object Focusing, reaches very fast focusing, greatly accelerates the speed of focusing, reaches more preferable imaging effect.
Described above is only the general introduction of technical solution of the present invention, in order to better understand skill of the invention Art means, and can be practiced according to the content of specification, and it is of the invention above and other in order to allow Objects, features and advantages can become apparent, below especially exemplified by specific embodiment of the invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit are for this Field those of ordinary skill will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, And it is not considered as limitation of the present invention.And in whole accompanying drawing, be denoted by the same reference numerals Identical part.In the accompanying drawings:
Fig. 1 shows a kind of side of image generation based on electronic equipment according to an embodiment of the invention The step of method embodiment one flow chart;
Fig. 2 shows a kind of side of image generation based on electronic equipment according to an embodiment of the invention The step of method embodiment two flow chart;And
Fig. 3 shows a kind of electronic equipment embodiment for generating image according to an embodiment of the invention Structured flowchart.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Reference picture 1, shows a kind of image life based on electronic equipment according to an embodiment of the invention Into embodiment of the method one the step of flow chart, can apply to be integrated with the first-class image capture device of shooting Electronic equipment in, including smart mobile phone, flat board, palm PC (Personal Digital Assistant, PDA), camera, etc..Further, the electronic equipment can also include display screen, wherein, Image capture device in electronic equipment is taken pictures for realization, camera function, and display screen is right for realizing The preview function of shooting picture, i.e. shown in real time by the picture to the current income of camera, with For user's preview, so as to reach the effect of view finder.
Be applied to the embodiment of the present invention, in the electronic equipment at least can include the first image capture device with And second image capture device, wherein, the first image capture device and the second image capture device phase Adjacent and positioned at same camera plane, the position relationship of the two needs to meet:Two image capture devices are to quilt The distance of the destination object taken the photograph is essentially identical, and two cameras are basic relative to the shooting angle of object Identical, described essentially identical, i.e., the difference of described distance or the shooting angle is small to can ignore not Meter, based on above-mentioned position relationship, two cameras for same subject take come photo basic Cause.
The embodiment of the present invention specifically may include steps of:
Step 101, starts described first image collecting device and second image capture device;
In implementing, the process of the operating system of electronic equipment can be monitored, work as prison Hear " camera " (or other the similar titles, that is, realize the application program of camera function) in operating system When application program is invoked into front stage operation, can start electronic equipment the first image capture device and Second image capture device.
Step 102, range measurement principle is taken the photograph based on double, and described first image collecting device and institute is respectively adopted The second image capture device is stated to be focused for same destination object, obtain corresponding first image and Second image;
After the first image capture device and the second image capture device start, can determine whether Whether shutter instruction is detected, and when shutter instruction is detected, two image capture devices of triggering are simultaneously Shooting work is carried out, for same destination object, synchronously, using the first image capture device to the mesh Mark object is shot, and absorbs the first image of the destination object, and, set using the second IMAQ It is standby that the destination object is shot, absorb the second image of the destination object.
In implementing, the shutter instruction send mode include but is not limited to it is following several:Pass through Press the physical button of electronic equipment to send shutter instruction, accordingly, it is desirable to pass through detection and the physics Whether UNICOM determines assigning for shutter instruction to the circuit that button is connected;Or, set by pressing electronics Shutter instruction is sent for the virtual key on touch-screen, accordingly, it is desirable to pass through to detect the virtual key Whether the circuit of place screen area turns on to determine assigning for shutter instruction;Or, by voice mode To send shutter instruction, accordingly, it is desirable to the microphone apparatus for passing through terminal receive speech data, and divide The speech data is analysed to determine assigning for shutter instruction.
In a kind of preferred embodiment of the embodiment of the present invention, can be based on principle of triangulation (i.e. binocular Range measurement principle), rapid focus of two image capture devices to target device are realized, so as to obtain first Image and the second image.Based on this, step 102 can further include following sub-step:
Sub-step S11, according to described first image collecting device, second image capture device and The triangle relation formed between the destination object, calculates described first image collecting device and destination object Between the first distance, and, the second distance between second image capture device and destination object;
Sub-step S12, for same destination object, using described first image collecting device according to described First distance is focused to the destination object, obtains the first image, and, using second figure As collecting device is focused according to the second distance to the destination object, the second image is obtained.
In implementing, the first image capture device can support phase focusing and contrast focusing with primary Two kinds of focusing modes.Further, be applied to the embodiment of the present invention, can also according to principle of triangulation, Realize more quickly focusing.
Specifically, it is possible to use the triangle relation formed between dual camera and the destination object of focusing, root According to principle of triangulation, by calculating the angle of destination object and two camera lenses, be aided between twin-lens away from From, it is possible to the accurate distance for calculating destination object, that is, calculate the IMAQ of destination object distance first First distance of equipment, and, the second distance of the image capture device of destination object distance second.
The embodiment of the present invention can also configure closed loop focusing (Close-Loop Focus) motor, closed loop motor As the new technology in electronic equipment camera lens can improve to a certain extent electronic equipment camera lens to pyrogene Degree and speed, bring experience of preferably taking pictures.
In a kind of preferred embodiment of the embodiment of the present invention, the sub-step S12 can further include Following sub-step:
Sub-step S121, using described first image collecting device the closed loop focusing motor assistance Under, the destination object is focused according to first distance, obtain the first image;
Sub-step S122, using second image capture device the closed loop focusing motor assistance Under, the destination object is focused according to the second distance, obtain the second image.
In implementing, the principle of imaging of focusing is as follows:Closed loop focusing motor promotes eyeglass to move forward and backward, Occur with making image clearly on the image sensor, this completes basic focusing, by optical system Image is focused on image-forming component, photosignal in each pixel is transformed into by number by A/D converter Code signal, then it is processed into digital figure through DSP (digital signal processing, Digital Signal Processing) Picture.
The embodiment of the present invention, using principle of triangulation, is aided with and closes on the premise of being not required to sacrifice pixel Ring focusing motor, realizes focusing speed higher, it might even be possible to realize very fast focusing in 0 second.
The embodiment of the present invention is applied to, the first image can be the image for focusing on color;And the second image It can be the image for focusing on profile, details and brightness.
Step 103, described first image and second image are synthesized the mesh of the destination object Logo image.
After the first image and the second image is obtained, the first image and the second image can be synthesized It is the target image of destination object, the advantage of two kinds of images is combined, represents the mesh of more preferable imaging Logo image.
In a kind of preferred embodiment of the embodiment of the present invention, step 103 can further include following son Step:
Sub-step S21, extracts the picture on destination object profile, details and brightness in second image Vegetarian refreshments;
Sub-step S22, the pixel of the extraction is added in described first image.
Specifically, because the first image is the image of focusing on color, the detailed information such as its profile, brightness May therefore be short of;And the second image is the image for focusing on profile, details and brightness.Therefore, The pixel on destination object profile, details and brightness in the second image can be extracted, and this is extracted Pixel be synthesized in the first image, to make up the deficiency of the first image, reach the image of more preferable imaging.
Certainly, the first image and the mode of the second image synthesis are not limited to aforesaid way, art technology Personnel are possible using other modes synthesis, for example, by the first image and the identical picture of the second image Element superposition, or the brightness value of the first image each pixel corresponding with the second image is contrasted respectively, and Work subtracts each other treatment, the noise in the first image is eliminated with this, and ensure the color of the first image normal pixel Coloured silk, brightness, contrast are unaffected.
In embodiments of the present invention, range measurement principle is taken the photograph using double, completes the first image capture device and second Focusing of the image capture device to destination object, reaches very fast focusing, greatly accelerates the speed of focusing, Reach more preferable imaging effect.
Reference picture 2, shows a kind of image life based on electronic equipment according to an embodiment of the invention Into embodiment of the method two the step of flow chart, wherein, the electronic equipment can at least include being located at same First image capture device of one camera plane and the second image capture device image capture device, and And, the position of described first image collecting device and the second image capture device is adjacent.
The embodiment of the present invention is applied to, described first image collecting device is used to gather the first image, described Second image capture device is used to gather the second image.Further, first image can be to focus on The image of color;Second image can be the image for focusing on profile, details and brightness.
Further, first image can be coloured image;Second image can be black white image. Certainly, described first image is not limited to the coloured image, or black white image;Described second Image is also not necessarily limited to the black white image, or coloured image, if its can play the first image can Think the image for focusing on color;Second image can be the image for focusing on profile, details and brightness Effect.The image of the embodiment of the present invention first is coloured image, and the second image is for as a example by black white image It is illustrated.
Specifically, in embodiments of the present invention, first image capture device includes colour RGBW Sensor, is responsible for color, can be used for gathering coloured image;Second image capture device includes black and white Night vision sensor, is responsible for the details depth of field such as profile, details and brightness, can be used for gathering black white image.
RGBW and RGB maximum difference, in that the filter array before sensor is different. So-called RGBW technologies are exactly to increase on original RGB red (R), green (G), blue (B) trichromatic technique W white pixels, as the design of four colour pattern pixels.W i.e. white portion, are no optical filters , therefore, the input quantity of light is exactly 3-4 times of other regions, significantly improves pixel in low illumination Under light-inletting quantity, reduce noise.It is demonstrated experimentally that the first image capture device uses RGBW sensors, High-contrast ambient brightness is enabled to lift 40%, low luminous environment noise reduction by 78%.In addition, RGBW The W area of sensor can provide an independent gray scale induction region, and it can also be realized during low illumination Accurate crawl to gray scale, that is, more accurately low smooth white balance can be realized.
Black and white night vision sensor, i.e. MONO sensors, are a full impregnated optical sensor, all light All be passed directly to sensor and be captured, it takes nesting structural embedded control, advantage be possess under low light environment compared with Degree of purity high, equipment can still be tackled calmly in the middle of the environment of insufficient light for this.
In implementing, colored RGBW sensors include colour filter filter, and black and white night vision sensor Do not include colour filter filter.
Specifically, a photo-sensitive cell is integrated with inside each image capture device, is covered with above Thickly dotted pixel, but each pixel is only capable of experiencing the power of light and can not experience color, so Color filter film (i.e. colour filter filter) is added to allow the light of designated color to be radiated at picture by the top of pixel On element, the purpose of identification color just can be reached, but entered because colour filter filter blocks most of light, So needing to improve the sensitivity of sensor, that is, ISO under subdued light conditions, but can so bring difficulty With the noise for avoiding.On the other hand, if the color filter film of image capture device removed, then although It can not experience the color of light, also reform into black white image collecting device, but each pixel can To obtain electric signal, simultaneously because light can be received by sensor completely, light-inletting quantity is more so that imaging More clear, details is abundanter, and experiment shows, without entering for the black and white night vision sensor for carrying color filter film Light quantity is 4 times of the light-inletting quantity of the color sensor for commonly carrying color filter film.
Therefore, in embodiments of the present invention, at least two image capture devices are employed, using coloured light point From technology, an image capture device (i.e. the first image capture device) includes colour filter filter, is responsible for color Color perception;Another image capture device does not include colour filter filter (i.e. the second image capture device), bears The collection of light is blamed, so as to obtain good imaging effect under low luminous environment, experiment shows, when two When the pixel of image capture device is 13,000,000 pixel, the image of two image capture device collections is closed Photo imaging resolution after can reach 21,000,000 pixels.
The embodiment of the present invention specifically may include steps of:
Step 201, recognizes current photographed scene;
In implementing, the process of the operating system of electronic equipment can be monitored, work as prison Hear " camera " (or other the similar titles, that is, realize the application program of camera function) in operating system When application program is invoked into front stage operation, whether current photographed scene can be recognized to be night vision Scape.
In a kind of preferred embodiment of the embodiment of the present invention, can recognize in the following way current Whether photographed scene is night vision scene:Obtain the light intensity parameter of current photographed scene;If the light Line strength parameter is less than or equal to predetermined threshold value, then identify that current photographed scene is night vision scene;If The light intensity parameter is more than predetermined threshold value, then identify that current photographed scene is not night vision scene.
Specifically, light intensity is exactly after light projects subject, what subject was showed Brightness is referred to as the intensity of light.In implementing, can be obtained by the photo-sensitive cell in electronic equipment Light intensity parameter, and the light intensity parameter of the acquisition is compared with predetermined threshold value, if the light Line strength parameter is less than or equal to predetermined threshold value, then can identify that current photographed scene is night vision Scape, otherwise, if the light intensity parameter is more than predetermined threshold value, can identify current photographed scene Not for night vision scene, i.e. present filming scene are scene on daytime.
Certainly, the embodiment of the present invention is not limited to the mode of above-mentioned identification night vision scene, people in the art Whether member uses other modes to recognize current photographed scene for night vision scene is possible.
Step 202, when it is night vision scene to identify current photographed scene, starts described first image Collecting device and second image capture device;
When it is night vision scene to identify present filming scene, can simultaneously open first IMAQ and set Standby and the second image capture device.
Step 203, range measurement principle is taken the photograph based on double, and described first image collecting device and institute is respectively adopted The second image capture device is stated to be focused for same destination object, obtain corresponding first image and Second image;
After the first image capture device and the second image capture device start, can determine whether Whether shutter instruction is detected, and when shutter instruction is detected, two image capture devices of triggering are simultaneously Shooting work is carried out, for same destination object, synchronously, using the first image capture device to the mesh Mark object is shot, and absorbs the coloured image of the destination object, and, set using the second IMAQ It is standby that the destination object is shot, absorb the black white image of the destination object.
In a kind of preferred embodiment of the embodiment of the present invention, the step 203 can include following sub-step Suddenly:
Sub-step S31, according to described first image collecting device, second image capture device and The triangle relation formed between the destination object, calculates described first image collecting device and destination object Between the first distance, and, the second distance between second image capture device and destination object;
Sub-step S32, for same destination object, using described first image collecting device according to described First distance is focused to the destination object, obtains the first image, and, using second figure As collecting device is focused according to the second distance to the destination object, the second image is obtained.
Specifically, it is possible to use the triangle relation formed between dual camera and the destination object of focusing, root According to principle of triangulation, by calculating the angle of destination object and two camera lenses, be aided between twin-lens away from From, it is possible to the accurate distance for calculating destination object, that is, calculate the IMAQ of destination object distance first First distance of equipment, and, the second distance of the image capture device of destination object distance second.
In a kind of preferred embodiment of the embodiment of the present invention, the electronic equipment can also include closed loop pair Burnt motor, sub-step S32 can further include following sub-step:
Sub-step S321, using described first image collecting device the closed loop focusing motor assistance Under, the destination object is focused according to first distance, obtain the first image;
Sub-step S322, using second image capture device the closed loop focusing motor assistance Under, the destination object is focused according to the second distance, obtain the second image.
The embodiment of the present invention can also configure closed loop focusing (Close-Loop Focus) motor, closed loop motor As the new technology in electronic equipment camera lens can improve to a certain extent electronic equipment camera lens to pyrogene Degree and speed, bring experience of preferably taking pictures.
Under the assistance of closed loop focusing motor, the first image capture device is according to the first distance to the target Object is focused, and obtains coloured image, and, the second image capture device is according to second distance to institute State destination object to be focused, obtain black white image.
In implementing, after obtaining coloured image and black white image, can also using coloured image as Preview screen carries out preview.Specifically, due to thering are two IMAQs to set simultaneously in embodiments of the present invention It is standby to be shot, coloured image and black white image are respectively obtained, therefore, in order to lift electronic equipment phase The image quality of machine preview screen, embodies the details of photographed scene, in this implementation more richly in preview screen In example, the preview screen that terminal display screen is shown is the coloured image that the first image capture device shoots, And the black white image that the second image capture device shoots is not used in display, later stage treatment is only used for.
The preview screen, the i.e. picture of camera real time imagery, user can be complete by the preview screen Take pictures in pairs or the focus that image is chosen, finds a view etc. operates.In the present embodiment, the first IMAQ The picture that equipment shoots generates optical imagery by its camera lens, then projects on sensor, then optical picture As being converted into electric signal, electric signal is changed into data signal by analog-to-digital conversion again, and data signal is passed through DSP working processes, then be sent in electronics processors and processed, final output to electronic equipment Display screen on, as user it can be seen that live preview picture.
Step 204, described first image and second image are synthesized the mesh of the destination object Logo image;
In implementing, complex functionality switch can be increased newly in the setting interface of electronic equipment, can be with In advance complex functionality switch is set to give tacit consent to and opened, or be set to acquiescence and closed.In camera applications journey After sequence starts, if the complex functionality for detecting camera programm is opened, by black white image and cromogram As being synthesized.
In another embodiment, synthesis can also be triggered by synthetic instruction to process.Synthetic instruction can To be assigned by pressing the physical button specified in electronic equipment or virtual key.
In a kind of preferred embodiment of the embodiment of the present invention, step 204 can include following sub-step:
Sub-step S41, extracts the picture on destination object profile, details and brightness in second image Vegetarian refreshments;
Sub-step S42, the pixel of the extraction is added in described first image.
Step 205, exports the target image.
Specifically, the output, can specifically refer to the storage medium exported target image to electronic equipment In, and during subsequent operation, user can recall the target image by the display screen of electronic equipment Checked, or display or storage in the target image to other equipment are copied out from storage medium.
In embodiments of the present invention, in night vision scene, two image capture devices pair can simultaneously be used Destination object is shot, and respectively obtains coloured image and black white image, so by black white image with it is color Color image synthesizes target image, after being done further to the photo for shooting completion by software approach again Phase is processed, simple operation, reduces overhead, improves the imaging effect of image.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, But those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement System, because according to the embodiment of the present invention, some steps can sequentially or simultaneously be carried out using other.Its Secondary, those skilled in the art should also know, embodiment described in this description belongs to be preferable to carry out Example, necessary to the involved action not necessarily embodiment of the present invention.
Reference picture 3, shows that a kind of electronics for generating image according to an embodiment of the invention sets The structured flowchart of standby embodiment, wherein, the electronic equipment at least includes the positioned at same camera plane One image capture device and the second image capture device.
The electronic equipment can also specifically include such as lower module:
Starting module 301, is suitable to start described first image collecting device and second IMAQ Equipment;
Image capture module 302, is suitable to take the photograph range measurement principle based on double, described first image is respectively adopted and adopts Collection equipment and second image capture device are focused for same destination object, are obtained corresponding First image and the second image;
Synthesis module 303, is suitable to for described first image and second image to synthesize the target The target image of object.
In a kind of preferred embodiment of the embodiment of the present invention, described image acquisition module 302 is further adapted for:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
In a kind of preferred embodiment of the embodiment of the present invention, the electronic equipment also includes closed loop focusing horse Reach, described image acquisition module 302 is further adapted for:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
In a kind of preferred embodiment of the embodiment of the present invention, described first image is to focus on the figure of color Picture;Second image is the image for focusing on profile, details and brightness.
In a kind of preferred embodiment of the embodiment of the present invention, the synthesis module 303 is further adapted for:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
In a kind of preferred embodiment of the embodiment of the present invention, described first image is coloured image;It is described Second image is black white image.
In a kind of preferred embodiment of the embodiment of the present invention, described first image collecting device includes colour RGBW sensors, second image capture device includes black and white night vision sensor;Wherein, the coloured silk Color RGBW sensors include colour filter filter, and the black and white night vision sensor does not include colour filter filter.
In a kind of preferred embodiment of the embodiment of the present invention, the electronic equipment also includes:
Output module, is suitable to export the target image.
In a kind of preferred embodiment of the embodiment of the present invention, the electronic equipment also includes:
Scene Recognition module, is suitable to the current photographed scene of identification, if identifying, current photographed scene is During night vision scene, then the starting module is called.
In a kind of preferred embodiment of the embodiment of the present invention, the scene Recognition module is further adapted for:
Obtain the light intensity parameter of current photographed scene;
If the light intensity parameter is less than or equal to predetermined threshold value, identify that current photographed scene is Night vision scene;
If the light intensity parameter is more than predetermined threshold value, identify that current photographed scene is not night vision Scene.
For electronic equipment embodiment, because it is substantially similar to embodiment of the method, so description Fairly simple, the relevent part can refer to the partial explaination of embodiments of method.
Algorithm and display be not solid with any certain computer, virtual system or miscellaneous equipment provided herein There is correlation.Various general-purpose systems can also be used together with based on teaching in this.As described above, It is obvious to construct the structure required by this kind of system.Additionally, the present invention is not also for any specific Programming language.It is understood that, it is possible to use various programming languages realize the content of invention described herein, And the description done to language-specific above is to disclose preferred forms of the invention.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that this Inventive embodiment can be put into practice in the case of without these details.In some instances, not Known method, structure and technology are shown specifically, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect Or it is multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention is sometimes It is grouped together into single embodiment, figure or descriptions thereof.However, should not be by the disclosure Method be construed to reflect following intention:I.e. the present invention for required protection requirement ratio is in each claim The middle more features of feature be expressly recited.More precisely, as the following claims reflect As, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows Thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right It is required that in itself all as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out certainly to the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from the embodiment.Can be with Module or unit or component in embodiment is combined into a module or unit or component, and in addition may be used To be divided into multiple submodule or subelement or sub-component.Except such feature and/or process or Outside at least some in unit exclude each other, can be using any combinations to this specification (including companion With claim, summary and accompanying drawing) disclosed in all features and so disclosed any method or All processes or unit of person's equipment are combined.Unless expressly stated otherwise, this specification (including companion With claim, summary and accompanying drawing) disclosed in each feature can it is identical by offers, equally or phase Replace like the alternative features of purpose.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include it Some included features are rather than further feature, but the group of the feature of different embodiments in its embodiment Conjunction means to be within the scope of the present invention and formed different embodiments.For example, in following power In sharp claim, the one of any of embodiment required for protection mode can make in any combination With.
All parts embodiment of the invention can be realized with hardware, or be processed with one or more The software module run on device is realized, or is realized with combinations thereof.Those skilled in the art should Understand, basis can be realized using microprocessor or digital signal processor (DSP) in practice One of some or all parts in the image forming apparatus based on electronic equipment of the embodiment of the present invention A little or repertoire.The present invention is also implemented as the part for performing method as described herein Or the equipment or program of device (for example, computer program and computer program product) of whole.This Sample realizes that program of the invention can be stored on a computer-readable medium, or can have one or The form of person's multiple signal.Such signal can be downloaded from internet website and obtained, or in carrier There is provided on signal, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described rather than limiting the invention, And those skilled in the art can design replacement without departing from the scope of the appended claims Embodiment.In the claims, any reference symbol being located between bracket should not be configured to right It is required that limitation.Word "comprising" does not exclude the presence of element or step not listed in the claims.Position Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention can To be realized by means of the hardware for including some different elements and by means of properly programmed computer. If in the unit claim for listing equipment for drying, several in these devices can be by same Individual hardware branch is embodied.The use of word first, second, and third does not indicate that any order. These words can be construed to title.
The invention discloses A1, a kind of method of the image generation based on electronic equipment, the electronics sets The first image capture device and the second image capture device included positioned at same camera plane few to the utmost;
Methods described includes:
Start described first image collecting device and second image capture device;
Range measurement principle is taken the photograph based on double, described first image collecting device and second image is respectively adopted Collecting device is focused for same destination object, obtains corresponding first image and the second image;
Described first image and second image are synthesized the target image of the destination object.
A2, the method as described in A1, it is described to take the photograph range measurement principle based on double, first figure is respectively adopted As collecting device and second image capture device are focused for same destination object, it is right to obtain The step of the first image answered and the second image, includes:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
A3, the method as described in A2, the electronic equipment also include closed loop focusing motor, described to be directed to Same destination object, using described first image collecting device according to first distance to the target pair As being focused, the first image is obtained, and, using second image capture device according to described the Two distances are focused to the destination object, obtain the second image the step of include:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
A4, the method as described in A1 or A2 or A3, described first image are to focus on the figure of color Picture;Second image is the image for focusing on profile, details and brightness.
A5, the method as described in A4, it is described by described first image and second image is synthesized The step of target image of the destination object, includes:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
A6, the method as described in A4 or A5, described first image is coloured image;Second figure As being black white image.
A7, the method as described in A6, described first image collecting device are sensed including colour RGBW Device, second image capture device includes black and white night vision sensor;Wherein, the colored RGBW Sensor includes colour filter filter, and the black and white night vision sensor does not include colour filter filter.
A8, the method as described in A1, also include:
Export the target image.
A9, the method as described in A1, in the startup described first image collecting device and described the Before the step of two image capture devices, also include:
The current photographed scene of identification;
If identify current photographed scene for night vision scene, perform the startup described first image and adopt The step of collection equipment and second image capture device.
The step of A10, the method as described in A9, the identification current photographed scene, includes:
Obtain the light intensity parameter of current photographed scene;
If the light intensity parameter is less than or equal to predetermined threshold value, identify that current photographed scene is Night vision scene;
If the light intensity parameter is more than predetermined threshold value, identify that current photographed scene is not night vision Scene.
The invention also discloses B11, a kind of electronic equipment of generation image, the electronic equipment is at least wrapped Include the first image capture device and the second image capture device positioned at same camera plane;
The electronic equipment also includes:
Starting module, is suitable to start described first image collecting device and second IMAQ sets It is standby;
Image capture module, is suitable to take the photograph range measurement principle based on double, described first image collection is respectively adopted and sets Standby and described second image capture device is focused for same destination object, obtains corresponding first Image and the second image;
Synthesis module, is suitable to for described first image and second image to synthesize the destination object Target image.
B12, the electronic equipment as described in B11, described image acquisition module are further adapted for:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
B13, the electronic equipment as described in B12, the electronic equipment also include closed loop focusing motor, institute Image capture module is stated to be further adapted for:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
B14, the electronic equipment as described in B11 or B12 or B13, described first image are to focus on color Color image;Second image is the image for focusing on profile, details and brightness.
B15, the electronic equipment as described in B14, the synthesis module are further adapted for:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
B16, the electronic equipment as described in B14 or B15, described first image is coloured image;It is described Second image is black white image.
B17, the electronic equipment as described in B16, described first image collecting device include colour RGBW Sensor, second image capture device includes black and white night vision sensor;Wherein, the colored RGBW Sensor includes colour filter filter, and the black and white night vision sensor does not include colour filter filter.
B18, the electronic equipment as described in B11, also include:
Output module, is suitable to export the target image.
B19, the electronic equipment as described in B11, also include:
Scene Recognition module, is suitable to the current photographed scene of identification, if identifying, current photographed scene is During night vision scene, then the starting module is called.
B20, the electronic equipment as described in B19, the scene Recognition module are further adapted for:
Obtain the light intensity parameter of current photographed scene;
If the light intensity parameter is less than or equal to predetermined threshold value, identify that current photographed scene is Night vision scene;
If the light intensity parameter is more than predetermined threshold value, identify that current photographed scene is not night vision Scene.

Claims (10)

1. a kind of method that image based on electronic equipment is generated, the electronic equipment at least includes being located at First image capture device and the second image capture device of same camera plane;
Methods described includes:
Start described first image collecting device and second image capture device;
Range measurement principle is taken the photograph based on double, described first image collecting device and second image is respectively adopted Collecting device is focused for same destination object, obtains corresponding first image and the second image;
Described first image and second image are synthesized the target image of the destination object.
2. the method for claim 1, it is characterised in that described to take the photograph range measurement principle based on double, Described first image collecting device is respectively adopted and second image capture device is directed to same target Object is focused, and is included the step of obtain corresponding first image and the second image:
According to described first image collecting device, second image capture device and the destination object Between the triangle relation that is formed, calculate between described first image collecting device and destination object first away from From, and, the second distance between second image capture device and destination object;
For same destination object, using described first image collecting device according to first distance to institute State destination object to be focused, obtain the first image, and, pressed using second image capture device The destination object is focused according to the second distance, obtains the second image.
3. method as claimed in claim 2, it is characterised in that the electronic equipment also includes closed loop Focusing motor, it is described for same destination object, using described first image collecting device according to described One distance is focused to the destination object, obtains the first image, and, using second image Collecting device is focused according to the second distance to the destination object, obtain the second image the step of Including:
Using described first image collecting device under the assistance of the closed loop focusing motor, according to described One distance is focused to the destination object, obtains the first image;
Using second image capture device under the assistance of the closed loop focusing motor, according to described Two distances are focused to the destination object, obtain the second image.
4. the method as described in claim 1 or 2 or 3, it is characterised in that described first image is Focus on the image of color;Second image is the image for focusing on profile, details and brightness.
5. method as claimed in claim 4, it is characterised in that it is described by described first image and The step of second image synthesizes the target image of the destination object includes:
Extract the pixel on destination object profile, details and brightness in second image;
The pixel of the extraction is added in described first image.
6. the method as described in claim 4 or 5, it is characterised in that described first image is colour Image;Second image is black white image.
7. method as claimed in claim 6, it is characterised in that described first image collecting device bag Colored RGBW sensors are included, second image capture device includes black and white night vision sensor;Wherein, The colored RGBW sensors include colour filter filter, and the black and white night vision sensor is not filtered including colour filter Mirror.
8. the method for claim 1, it is characterised in that also include:
Export the target image.
9. the method for claim 1, it is characterised in that in the startup described first image Before the step of collecting device and second image capture device, also include:
The current photographed scene of identification;
If identify current photographed scene for night vision scene, perform the startup described first image and adopt The step of collection equipment and second image capture device.
10. a kind of electronic equipment for generating image, the electronic equipment at least includes being located at and same shoots flat First image capture device and the second image capture device in face;
The electronic equipment also includes:
Starting module, is suitable to start described first image collecting device and second IMAQ sets It is standby;
Image capture module, is suitable to take the photograph range measurement principle based on double, described first image collection is respectively adopted and sets Standby and described second image capture device is focused for same destination object, obtains corresponding first Image and the second image;
Synthesis module, is suitable to for described first image and second image to synthesize the destination object Target image.
CN201510917295.3A 2015-12-10 2015-12-10 Image generation method based on electronic equipment and electronic equipment Active CN106878604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510917295.3A CN106878604B (en) 2015-12-10 2015-12-10 Image generation method based on electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510917295.3A CN106878604B (en) 2015-12-10 2015-12-10 Image generation method based on electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN106878604A true CN106878604A (en) 2017-06-20
CN106878604B CN106878604B (en) 2021-06-18

Family

ID=59177011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510917295.3A Active CN106878604B (en) 2015-12-10 2015-12-10 Image generation method based on electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN106878604B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107920209A (en) * 2017-12-27 2018-04-17 国网通用航空有限公司 A kind of high speed camera autofocus system, method and processor, computer equipment
CN109688333A (en) * 2019-03-07 2019-04-26 上海创功通讯技术有限公司 Color image acquisition methods, device, equipment and storage medium
CN109756668A (en) * 2017-11-07 2019-05-14 安讯士有限公司 Optical zoom and digital zoom are combined under different images contact conditions

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080036901A1 (en) * 2002-08-08 2008-02-14 Junichi Shinohara Imaging apparatus
CN102062596A (en) * 2010-11-12 2011-05-18 中兴通讯股份有限公司 Method and device for measuring distance by utilizing double cameras
CN103287372A (en) * 2013-06-19 2013-09-11 贺亮才 Automobile anti-collision safe protecting method based on image processing
CN103546730A (en) * 2012-07-11 2014-01-29 北京博雅华录视听技术研究院有限公司 Method for enhancing light sensitivities of images on basis of multiple cameras
CN103780840A (en) * 2014-01-21 2014-05-07 上海果壳电子有限公司 High-quality imaging double camera shooting and imaging device and method thereof
CN103986874A (en) * 2014-05-29 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Image acquiring device, method and terminal
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module
CN104363378A (en) * 2014-11-28 2015-02-18 广东欧珀移动通信有限公司 Camera focusing method, camera focusing device and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080036901A1 (en) * 2002-08-08 2008-02-14 Junichi Shinohara Imaging apparatus
CN102062596A (en) * 2010-11-12 2011-05-18 中兴通讯股份有限公司 Method and device for measuring distance by utilizing double cameras
CN103546730A (en) * 2012-07-11 2014-01-29 北京博雅华录视听技术研究院有限公司 Method for enhancing light sensitivities of images on basis of multiple cameras
CN103287372A (en) * 2013-06-19 2013-09-11 贺亮才 Automobile anti-collision safe protecting method based on image processing
CN103780840A (en) * 2014-01-21 2014-05-07 上海果壳电子有限公司 High-quality imaging double camera shooting and imaging device and method thereof
CN103986874A (en) * 2014-05-29 2014-08-13 宇龙计算机通信科技(深圳)有限公司 Image acquiring device, method and terminal
CN104052932A (en) * 2014-07-03 2014-09-17 深圳市世尊科技有限公司 Rapidly-focusing mobile phone camera shooting module
CN104363378A (en) * 2014-11-28 2015-02-18 广东欧珀移动通信有限公司 Camera focusing method, camera focusing device and terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756668A (en) * 2017-11-07 2019-05-14 安讯士有限公司 Optical zoom and digital zoom are combined under different images contact conditions
CN107920209A (en) * 2017-12-27 2018-04-17 国网通用航空有限公司 A kind of high speed camera autofocus system, method and processor, computer equipment
CN109688333A (en) * 2019-03-07 2019-04-26 上海创功通讯技术有限公司 Color image acquisition methods, device, equipment and storage medium
CN109688333B (en) * 2019-03-07 2021-01-26 上海创功通讯技术有限公司 Color image acquisition method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN106878604B (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN106878605A (en) The method and electronic equipment of a kind of image generation based on electronic equipment
KR102279436B1 (en) Image processing methods, devices and devices
US10455217B2 (en) Electronic apparatus and method of generating depth map
CN110149482A (en) Focusing method, device, electronic equipment and computer readable storage medium
US9300858B2 (en) Control device and storage medium for controlling capture of images
US20110037832A1 (en) Defocusing Feature Matching System to Measure Camera Pose with Interchangeable Lens Cameras
CN109194882A (en) Image processing method, device, electronic equipment and storage medium
WO2016029756A1 (en) Shooting method and shooting device
JP2015072324A (en) Image processor, imaging device and image processing method
CN102036005A (en) Imaging device for processing captured image
CN108012078A (en) Brightness of image processing method, device, storage medium and electronic equipment
CN113518210A (en) Method and device for automatic white balance of image
CN106878607A (en) The method and electronic equipment of a kind of image generation based on electronic equipment
CN108322651A (en) Image pickup method and device, electronic equipment, computer readable storage medium
JP2004320285A (en) Digital camera
CN107920205B (en) Image processing method, device, storage medium and electronic equipment
CN108093170B (en) User photographing method, device and equipment
CN106878604A (en) The method and electronic equipment of a kind of image generation based on electronic equipment
CN107948511A (en) Brightness of image processing method, device, storage medium and electronic equipment
JP2007067934A (en) Imaging apparatus and its control method
CN113673474A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111866369B (en) Image processing method and device
CN106878606A (en) A kind of image generating method and electronic equipment based on electronic equipment
JP2015186210A (en) Imaging apparatus, control method of imaging apparatus, and program
JP5044472B2 (en) Image processing apparatus, imaging apparatus, image processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240116

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right