CN104994276B - A kind of method and apparatus of shooting - Google Patents
A kind of method and apparatus of shooting Download PDFInfo
- Publication number
- CN104994276B CN104994276B CN201510362377.6A CN201510362377A CN104994276B CN 104994276 B CN104994276 B CN 104994276B CN 201510362377 A CN201510362377 A CN 201510362377A CN 104994276 B CN104994276 B CN 104994276B
- Authority
- CN
- China
- Prior art keywords
- person
- handwriting
- closed area
- processor
- finder
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Telephone Function (AREA)
- Processing Or Creating Images (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of method taken pictures, in mobile device, mobile device configured with processor, can plug writing pencil and the touch screen that can be inputted by writing pencil, touch screen be electrically connected with processor;This method is used in processor, including:It finds out after writing pencil is pulled out, control mobile device enters image synthesis model;The first image is obtained in the first figure layer in being shown in touch screen;One of closed area that writing pencil is drawn on the person's handwriting on touch screen, and selects person's handwriting generation is obtained in the second figure layer in being shown in touch screen as view-finder;The second image is obtained in the range of view-finder, and the first image, person's handwriting and the second image are then synthesized into third image.The method taken pictures of the present invention allow user when taking pictures can composograph in real time, avoid user and voluntarily carry out composograph again upon taking a picture, to save the operating time of user.The invention discloses a kind of devices taken pictures.
Description
Technical field
The present invention relates to mobile device technology field more particularly to a kind of method and apparatus of shooting.
Background technology
Currently, the software and hardware function of mobile device is stronger and stronger, basic telephony feature not only may be implemented,
But it is used as a multi-functional terminal.Such as camera function, the camera function of mobile device with hardware gradually
Raising is very practical, and can largely substitute general camera.Also, existing mobile device
Middle most of setting front camera and rear camera, use for selection by the user.
But with the demand of user individual, under certain shooting scenes, before user needs while shooting mobile device
The image of side and rear, such as in front of shooting while scenery, add the head portrait of user and generate a photo.Such feelings
Under condition, according to the prior art, the image of scenery in front of mobile device is only first shot, then shoots the head portrait image of user,
Again by image synthesizing software is handled generate user needs photo, this undoubtedly increases the cumbersome journey of use of user
Degree.
So there is an urgent need for it is a kind of can be with the mobile device of sonoCT, to meet the individual demand of user.
Invention content
In view of this, the present invention proposes a kind of method and apparatus of shooting, to solve problems of the prior art.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention provides a kind of method taken pictures, in mobile device, the mobile device to be configured with processing
Device, can plug writing pencil and the touch screen that can be inputted by writing pencil, the touch screen be electrically connected with the processor;
When the method is for processor operation camera program, including:
The processor is found out after writing pencil is pulled out, and control mobile device enters image synthesis model;
The processor obtains the first image in the first figure layer in being shown in touch screen;
The processor obtains the writing pencil in the second figure layer in being shown in touch screen and is drawn on the touch screen
On person's handwriting, and one of select closed area that the person's handwriting generates as view-finder;Wherein, second figure layer is located at described
Above first figure layer;
Then the processor obtains the second image in the range of the view-finder, then by described first image, institute
It states person's handwriting and second image synthesizes third image.
Optionally, the processor selects one of closed area of the person's handwriting generation as view-finder, specifically includes:
The processor according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and by the envelope
Closed region is shown in touch screen;Wherein, the processor prestores multiple closed areas;
The processor judges whether to receive the select command of the selection closed area of user, if so, will choosing
The closed area selected is as view-finder;
If nothing, the processor draws the closed area generated according to the person's handwriting and automatically selects view-finder.
Optionally, the processor draws the closed area generated according to the person's handwriting and automatically selects the view-finder, has
Body includes:
After the processor judges that the person's handwriting is drawn, the closed area that the person's handwriting generates is identified;
If the person's handwriting forms more than one closed area, the processor calculates the area of each closed area
Si, and obtain the area S of maximum closed areamax;Wherein, i=1~N, N are more than 1;
The processor calculates the focus point gi of each closed area, and obtains the focus point g of maximum closed areamax;
The processor calculates the focus point g of each focus point gi and maximum closed areamaxAir line distance Ti;
The processor calculates the weighted average α i of each closed area;Wherein, α i=Si/Smax* p-Ti*q, p and q
For weighting coefficient, and it is all higher than 0;
The processor chooses the maximum value α in weighted average α imax, judge αmaxWhether the weighting threshold of setting is more than
Value;If so, selection αmaxCorresponding closed area is view-finder;If it is not, then selecting maximum closed area SmaxCorresponding
Closed area is view-finder.
Optionally, if the processor identifies that the person's handwriting does not form closed area, user is prompted to fail, and under waiting
Primary person's handwriting input.
Optionally, when the writing pencil draws person's handwriting:
The contact coordinate data of the writing pencil are reached the processor by the touch screen;
The processor records the contact coordinate data, and is shown person's handwriting in real time according to the contact coordinate data
In the touch screen;
If the processor does not obtain the contact coordinate data of the writing pencil within the first threshold time of setting, sentence
The disconnected person's handwriting drafting finishes.
The embodiment of the present invention provides a kind of device taken pictures, in mobile device, the mobile device to be configured with processing
Device, can plug writing pencil and the touch screen that can be inputted by writing pencil, the touch screen be electrically connected with the processor;
When the device is for processor operation camera program, including:
Writing pencil finds out module, finds out after writing pencil is pulled out, information mobile device enters image synthesis model;
First image collection module obtains the first image in the first figure layer in being shown in touch screen;
Person's handwriting acquisition module, in the second figure layer in being shown in touch screen obtaining the writing pencil is drawn on the touch
Person's handwriting on screen, and one of closed area for selecting the person's handwriting generation is as view-finder;Wherein, second figure layer is located at institute
It states above the first figure layer;
Second image collection module obtains the second image in the range of the view-finder;
Described first image, the person's handwriting and second image are synthesized third image by image synthesis unit.
Optionally, the person's handwriting acquisition module selects one of closed area of the person's handwriting generation as view-finder, specifically
Including:
The person's handwriting acquisition module according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and will
The closed area is shown in touch screen;Wherein, the person's handwriting acquisition module prestores multiple closed areas;
The person's handwriting acquisition module judges whether to receive the select command of the selection closed area of user, if so,
Then using the closed area selected as view-finder;
If nothing, the person's handwriting acquisition module draws the closed area generated according to the person's handwriting and automatically selects view-finder.
Optionally, the person's handwriting acquisition module draws the closed area generated according to the person's handwriting and automatically selects view-finder,
It specifically includes:
After the person's handwriting acquisition module judges that the person's handwriting is drawn, the closed area that the person's handwriting generates is identified;
If the person's handwriting forms more than one closed area, the person's handwriting acquisition module calculates each closed area
Area Si, and obtain the area S of maximum closed areamax;Wherein, i=1~N, N are more than 1;
The person's handwriting acquisition module calculates the focus point gi of each closed area, and obtains the center of gravity of maximum closed area
Point gmax;
The person's handwriting acquisition module calculates the focus point g of each focus point gi and maximum closed areamaxAir line distance
Ti;
The person's handwriting acquisition module calculates the weighted average α i of each closed area;Wherein, α i=Si/Smax*p-Ti*
Q, p and q are weighting coefficient, and are all higher than 0;
The person's handwriting acquisition module chooses the maximum value α in weighted average α imax, judge αmaxWhether the adding of setting is more than
Weigh threshold value;If so, selection αmaxCorresponding closed area is view-finder;If it is not, then selecting maximum closed area SmaxInstitute is right
The closed area answered is view-finder.
Optionally, if the person's handwriting acquisition module identifies that the person's handwriting does not form closed area, user is prompted to fail, and
Wait for person's handwriting input next time.
Optionally, when the writing pencil draws person's handwriting:
The contact coordinate data of the writing pencil are reached the person's handwriting acquisition module by the touch screen;
The person's handwriting acquisition module records the contact coordinate data, and according to the contact coordinate data that person's handwriting is real-time
Ground is shown in the touch screen;
If the person's handwriting acquisition module does not obtain the person's handwriting that the writing pencil is drawn within the first threshold time of setting,
Judge that the person's handwriting drafting finishes.
The method of the present invention taken pictures, obtains the first image in the first figure layer of touch screen, is drawn in the second figure layer
Person's handwriting, and the second image is obtained in the view-finder that person's handwriting generates, third image is then synthesized, to allow user taking pictures
When can composograph in real time, avoid user and voluntarily carry out composograph again upon taking a picture, to save the behaviour of user
Make the time.
Description of the drawings
Fig. 1 is the structure diagram of the mobile device of the embodiment of the present invention;
Fig. 2 is the method flow diagram of the embodiment of the present invention taken pictures;
Fig. 3 is the method flow diagram that view-finder is selected when taking pictures of the embodiment of the present invention;
Fig. 4 be the embodiment of the present invention be when taking pictures view-finder outer profile colouring method flow diagram;
Fig. 5 a~5c are three kinds of exemplary plots that view-finder is selected when taking pictures in the embodiment of the present invention;
Fig. 6 a~6c are three kinds of exemplary plots of composograph when taking pictures in the embodiment of the present invention;
Fig. 7 is the structure diagram for the device of the embodiment of the present invention taken pictures.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, below by way of specific embodiment and join
See attached drawing, the present invention is described in detail.
Image cannot be synthesized in real time in order to solve the mobile device mentioned in background technology, and then lead to user
Using cumbersome problem, the embodiment of the invention discloses a kind of methods taken pictures.This method is used in mobile device, the movement
Device configuration have processor, can plug writing pencil and the touch screen that can be inputted by writing pencil.
The mobile device can be but be not limited to smart mobile phone, tablet computer etc., and structure diagram is as shown in Figure 1, mobile
Device configuration have can the writing pencil of plug, the touch screen that can be inputted by writing pencil, front camera, rear camera and deposit
Reservoir;Wherein, touch screen, front camera, rear camera, memory are electrically connected with processor.
Writing pencil is placed in the slot of mobile device, and is in energized state with processor when in slot, when
It when writing pencil extracts slot, is powered off between processor and writing pencil, processor just learns that writing pencil is extracted.
When mobile device runs camera program, referring to Fig. 2, this method is used in the processor, including:
101, it finds out after writing pencil is pulled out, control mobile device enters image synthesis model, subsequently into step 102.
It is pulled out for how processor finds out writing pencil, introduction has been carried out in foregoing teachings, just repeats no more herein.
In a specific embodiment, after the writing pencil of mobile device is pulled out, the touch screen of mobile device is hit by a bullet
Go out dialog box, user can be clicked into image synthesis model.
Under this image synthesis model, touch screen can be divided into two figure layers, to allow the figure shown on the touchscreen
As that can be presented in different figure layers, user chooses image in different figure layers, is finally synthesizing image, so as to real-time
Ground generates composograph.This can be described in detail in following step.
102, the first image is obtained in the first figure layer in being shown in touch screen, subsequently into step 103.
First image can be that rear camera is shot.When running camera program, after the processor control is described
Set camera opening;It is front camera shooting that can also make the first image by setting, under such situation, is taken pictures journey in operation
When sequence, the processor control front camera is opened.
In addition, the photo that the first image may be user to be selected in photograph album.When selecting photo, processor receives user
The instruction triggered on the touchscreen, and the photo is transferred in memory, then shown in touch screen again.
103, the pen that the writing pencil is drawn on the touch screen is obtained in the second figure layer in being shown in touch screen
Mark, subsequently into step 104.
Wherein, the second figure layer is located at the top of the first figure layer.In display, the image of the second figure layer is to be suspended in the first figure
Image on layer.
Specifically, when processor obtains the person's handwriting that writing pencil is drawn:
The contact coordinate data of the writing pencil are reached the processor by touch screen;
The processor records the contact coordinate data, and is shown person's handwriting in real time according to the contact coordinate data
In the touch screen;Wherein, it is single pen that the single of writing pencil, which contacts touch screen to the person's handwriting drawn between touch screen is left,
Mark.
104, one of closed area that selection person's handwriting generates is as view-finder.
In this step 104, following steps are specifically included:
1041, according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and by the closed area
It is shown in touch screen.
It needs to illustrate in this step, multiple closed areas is prestored in processor.Multiple closed area is not
When running camera program, it is stored in the memory of mobile device.After entering camera program, it is read out by the processor calling;
When concrete application, the multiple closed areas to prestore in processor, including:The pre-defined enclosed area of mobile device
The closed area that domain and user draw.
When judging with the close closed area of person's handwriting, such as user depicts a horizontal line, processor automatic decision, and
Judge there is square, pentagon, rectangle, hexagon, triangle etc. with the close closed area of horizontal line, and with list
Form be shown in touch screen, for user click select.
When judging the closed area close with person's handwriting, the person's handwriting that processor can be drawn according to user in real time judges to connect
Close closed area is simultaneously shown in touch screen.Such as user is after depicting a horizontal line, and continue with a certain of the horizontal line
Endpoint depicts an oblique line, then processor judges that close closed area has:Triangle, parallelogram etc., and update aobvious
It is shown in touch screen.
1042, the select command for judging whether to receive user, if so, entering step 1044;If it is not, then showing to handle
The closed area that user wants is not present in device, then processor executes step 1043, to realize the person's handwriting drawn according to user, from
The dynamic closed area for judging to generate.
1043, judge whether person's handwriting drafting finishes, if so, entering step 1045;If it is not, then return to step 103.
Specifically, if processor does not obtain the contact coordinate number of the writing pencil within the first threshold time of setting
According to, then judge person's handwriting drafting finish.Wherein, which can be with sets itself, such as 15 seconds, 20 seconds etc..
1044, using the closed area of selection as view-finder, subsequently into step 105.
1045, whether the closed area that identification person's handwriting is formed is at least one;If so, entering step 1046;If it is not, into
Step 1047.
1046, one chosen in the closed area is used as view-finder, subsequently into step 105.
More specifically, when person's handwriting forms more than one closed area, the processor is chosen in the closed area
One specifically included referring to Fig. 3 as view-finder:
A1, the area Si for calculating each closed area, and obtain the area S of maximum closed areamax, subsequently into step
a2;Wherein, it is N number of, i=1~N to form closed area, and N is more than 1.
A2, the focus point gi for calculating each closed area, and obtain the focus point g of maximum closed areamax, then into
Enter step a3.
A3, the focus point g for calculating each focus point gi and maximum closed areamaxAir line distance Ti, subsequently into step
a4。
A4, the weighted average α i for calculating each closed area, subsequently into step a5.Wherein, α i=Si/Smax*p-
Ti*q, p and q are weighting coefficient, and are all higher than 0.
The weighting coefficient is empirical value, needs the numerical value come out by investigating and testing assessment, can be according to reality
Border situation and sets itself, the present embodiment just will not enumerate.
Maximum value α in a5, selection weighted average α imax, judge αmaxWhether the Weighted Threshold of setting is more than;If so,
Enter step a6;If it is not, entering step a7.
A6, selection αmaxCorresponding closed area is view-finder;
A7, selection maximum closed area SmaxCorresponding closed area is view-finder.
When selecting view-finder, if there is the more than one closed area for meeting condition, user is prompted to select wherein one
A closed area is as view-finder.
Furthermore, it is desirable to explanation, after view-finder is chosen, the image of person's handwriting formation can be integrally by user the
It is moved to suitable position in two figure layers, and the first image in the first figure layer will not be cut.
Optionally, after processor selects view-finder, processor can also give the person's handwriting colouring for forming view-finder, ginseng automatically
See Fig. 4, including step b1~b3:
B1, processor calculate the average tone s of the first figure layer outside view-finder, subsequently into step b2;
B2, processor obtain the tone t opposite with the tone s that is averaged from palette, subsequently into step b3;
B3, processor give the person's handwriting for forming view-finder to paint with tone t.
1047, prompt user failure, and person's handwriting input next time is waited for, it is then back to step 103.
If processor does not receive person's handwriting within the lasting second threshold time, controls mobile device and exit image synthesis
Pattern.This second threshold time can be with sets itself, such as 5 minutes, 10 minutes etc..
105, the second image is obtained in the range of the view-finder, subsequently into step 106.
Second image can be that front camera is shot.After processor chooses view-finder, the preposition camera shooting is notified
Head is opened;Or rear camera shooting.
Herein it should be noted that the first image and the second image can be respectively rear camera and front camera bat
It takes the photograph, but cannot be that same camera is shot simultaneously.When realization, processor can select to open wherein when entering camera program
One camera (being usually rear camera), then it is subsequently selected finish view-finder after, another camera is opened, to protect
It is respectively that different cameras is shot to demonstrate,prove the first image and the second image.
Further optionally, which may be the picture that user selects in mobile device photograph album, concrete operations
When, after view-finder selects, show that the dialog box of pop-up, processor obtain the order that clicks of user, open in touch screen
Photograph album simultaneously selects picture by user.
The example of one specific selection closed area is shown in Fig. 5 a~5c, Fig. 6 a~6c.
In Fig. 5 a, there are two closed areas for formation, and two closed areas are inclusion relation.
Under such situation, the weighted average α of closed area 402 is calculated2More than the weighted average of closed area 401
Value α1, and α2More than the Weighted Threshold of setting.Then select closed area 402 for view-finder, as shown in Figure 5 a.Also, it notifies preposition
Camera is opened, and the second image, such as the head portrait of user oneself are obtained in 402 range of closed area, as shown in Figure 6 a.
In Fig. 5 b, there are three closed areas for formation, and three closed areas are connection relation.
Under such situation, the weighted average α of closed area 403~405 is calculated3~α5, the weighted average that is calculated
α3~α5The Weighted Threshold respectively less than set, then it is view-finder to select the maximum closed area 403 of area, as shown in Figure 5 b.
Also, it notifies front camera to open, and obtains the second image in 403 range of closed area, such as user is certainly
Oneself head portrait, as shown in Figure 6 b.
Situation in Fig. 5 c is increasingly complex, and there are five closed areas for formation, and two of which closed area is inclusion relation,
And it is separation relation with three other closed areas.
Same above-mentioned steps obtain the weighted average α of closed area 4066Maximum, and more than the Weighted Threshold of setting, then
Selection closed area 406 is view-finder, and obtains the second image in 406 range of closed area, as fig. 6 c.
106, described first image, the person's handwriting and second image are synthesized into third image.
In this step, processor can be set after setting time, voluntarily synthesize third image;Processing can also be set
Device obtains the instruction of user, such as user presses " taking pictures " button, then synthesizes third image.
After synthesizing third image, which is stored in reservoir by processor.
By upper step as it can be seen that the present invention the method taken pictures, by obtaining the first image in the first figure layer of touch screen,
Person's handwriting is drawn in the second figure layer, and obtains the second image in the view-finder that person's handwriting generates, and then synthesizes third image, from
And user's composograph in real time when taking pictures can be allowed, it avoids user and voluntarily carries out composograph again upon taking a picture, from
And save the operating time of user.
Below with a specific example, the method taken pictures to above-mentioned realization is described in detail.
By taking the smart mobile phone of Samsung as an example, user thinks the landscape image in shooting front, and the head portrait image of affix oneself,
Synthesize a photo.
First, control smart mobile phone enters camera program, rear camera is opened, the figure that rear camera can be shot
As being shown on touch screen in real time.
Then, writing pencil is extracted, selection enters image synthesis model.This pattern needs user to be selected in the dialog box of pop-up
It selects, can also just be given tacit consent into image synthesis model after making extraction writing pencil by the way that default option is arranged.
User draws person's handwriting on the touchscreen using writing pencil, and processor is according to the person's handwriting, in real time by close closing
Region is shown in the upper right corner of touch screen in the form of a list, for selection by the user.
If user is non-selected, processor is after drawing person's handwriting, the closed area that identification person's handwriting is formed, and selects it
One of be used as view-finder.
After view-finder selects, processor to the person's handwriting colouring for forming view-finder, then automatically opens preposition take the photograph automatically
As head.Image captured by front camera is shown in view-finder in real time, needs the image shot for selection by the user.
During this, user can be as needed, and person's handwriting is moved integrally to destination region.
The image of front camera shooting in image, person's handwriting and view-finder that processor shoots rear camera closes
As an image and store.In actual use, the virtual push button of " taking pictures " can be clicked by user to be closed to trigger processor
At image.
If user still wants to continue to generate composograph, person's handwriting is repainted on the touchscreen;If user exits journey of taking pictures
Sequence, then exit image synthesis model, and flow terminates.
The above-mentioned description for the method taken pictures in the embodiment of the present invention, below will be to taking pictures in the embodiment of the present invention
Device illustrate.
The embodiment of the present invention also provides a kind of device taken pictures, referring to Fig. 7, in the processor of mobile device.
Wherein, mobile device configured with can plug writing pencil and can by writing pencil input touch screen, it is described touch
Screen is touched to be electrically connected with the processor;
The device includes:Writing pencil is found out module, the first image collection module, person's handwriting acquisition module, the second image and is obtained
Module, image synthesis unit.Wherein, appointing in the first image collection module, the second image collection module and image synthesis unit
One module is connect with rear camera, front camera and memory;Person's handwriting acquisition module is connect with touch screen.
When mobile device runs camera program:
Writing pencil finds out module, finds out after writing pencil is pulled out, information mobile device enters image synthesis model;
First image collection module obtains the first image in the first figure layer in being shown in touch screen;
Person's handwriting acquisition module, in the second figure layer in being shown in touch screen obtaining the writing pencil is drawn on the touch
Person's handwriting on screen, and one of closed area for selecting the person's handwriting generation is as view-finder;Wherein, second figure layer is located at institute
It states above the first figure layer.
Wherein, when writing pencil draws person's handwriting:
The contact coordinate data of the writing pencil are reached the person's handwriting acquisition module by the touch screen;
The person's handwriting acquisition module records the contact coordinate data, and according to the contact coordinate data that person's handwriting is real-time
Ground is shown in the touch screen;
If the person's handwriting acquisition module does not obtain the person's handwriting that the writing pencil is drawn within the first threshold time of setting,
Judge that the person's handwriting drafting finishes.
More specifically, the person's handwriting acquisition module selects one of closed area that the person's handwriting generates as view-finder,
It specifically includes:
The person's handwriting acquisition module according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and will
The closed area is shown in touch screen;Wherein, the person's handwriting acquisition module prestores multiple closed areas;
The person's handwriting acquisition module judges whether to receive the select command of the selection closed area of user, if so,
Then using the closed area selected as view-finder;If nothing, the person's handwriting acquisition module is drawn according to the person's handwriting and is generated
Closed area automatically select view-finder.
In a specific example, person's handwriting acquisition module is drawn the closed area generated according to the person's handwriting and is automatically selected
View-finder specifically includes:
After the person's handwriting acquisition module judges that the person's handwriting is drawn, the closed area that the person's handwriting generates is identified:
If the person's handwriting forms more than one closed area, the person's handwriting acquisition module calculates each closed area
Area Si, and obtain the area S of maximum closed areamax;Wherein, i=1~N, N are more than 1;
If the person's handwriting acquisition module identifies that the person's handwriting does not form closed area, user is prompted to fail, and under waiting
Primary person's handwriting input;
The person's handwriting acquisition module calculates the focus point gi of each closed area, and obtains the center of gravity of maximum closed area
Point gmax;
The person's handwriting acquisition module calculates the focus point g of each focus point gi and maximum closed areamaxAir line distance
Ti;
The person's handwriting acquisition module calculates the weighted average α i of each closed area;Wherein, α i=Si/Smax*p-Ti*
Q, p and q are weighting coefficient, and are all higher than 0;
The person's handwriting acquisition module chooses the maximum value α in weighted average α imax, judge αmaxWhether the adding of setting is more than
Weigh threshold value;If so, selection αmaxCorresponding closed area is view-finder;If it is not, then selecting maximum closed area SmaxInstitute is right
The closed area answered is view-finder.
Optionally, after person's handwriting acquisition module device selects view-finder, the person's handwriting colouring for forming view-finder can also be given automatically,
Including:Person's handwriting acquisition module calculates the average tone s of the first figure layer outside view-finder, is then obtained from palette average with this
Tone t opposite tone s finally gives the person's handwriting for forming view-finder to paint with tone t.
Second image collection module obtains the second image in the range of the view-finder.
Described first image, the person's handwriting and second image are synthesized third image by image synthesis unit.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.
Claims (6)
1. a kind of method taken pictures, which is characterized in that in mobile device, the mobile device to be configured with processor, can insert
The writing pencil dialled and the touch screen that can be inputted by writing pencil, the touch screen are electrically connected with the processor;
When the method is for processor operation camera program, including:
It finds out after writing pencil is pulled out, control mobile device enters image synthesis model;
The first image is obtained in the first figure layer in being shown in touch screen;
The person's handwriting that the writing pencil is drawn on the touch screen is obtained in the second figure layer in being shown in touch screen, and is selected
One of closed area that the person's handwriting generates is used as view-finder;Wherein, second figure layer is located above first figure layer;
Then the second image is obtained in the range of the view-finder, then by described first image, the person's handwriting and described
Two images synthesize third image;
The processor selects one of closed area of the person's handwriting generation as view-finder, specifically includes:
The processor according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and by the enclosed area
Domain is shown in touch screen;Wherein, the processor prestores multiple closed areas;
The processor judges whether to receive the select command of the selection closed area of user, if so, by selection
The closed area is as view-finder;
If nothing, the processor draws the closed area generated according to the person's handwriting and automatically selects view-finder;
The processor draws the closed area generated according to the person's handwriting and automatically selects the view-finder, specifically includes:
After the processor judges that the person's handwriting is drawn, the closed area that the person's handwriting generates is identified;
If the person's handwriting forms more than one closed area, the processor calculates the area Si of each closed area, and
Obtain the area S of maximum closed areamax;Wherein, i=1~N, N are more than 1;
The processor calculates the focus point gi of each closed area, and obtains the focus point g of maximum closed areamax;
The processor calculates the focus point g of each focus point gi and maximum closed areamaxAir line distance Ti;
The processor calculates the weighted average α i of each closed area;Wherein, α i=Si/Smax* p-Ti*q, p and q are to add
Weight coefficient, and it is all higher than 0;
The processor chooses the maximum value α in weighted average α imax, judge αmaxWhether the Weighted Threshold of setting is more than;If
It is then to select αmaxCorresponding closed area is view-finder;If it is not, then selecting maximum closed area SmaxCorresponding enclosed area
Domain is view-finder.
2. if according to the method described in claim 1, it is characterized in that, the processor identifies that the person's handwriting does not form enclosed area
Domain then prompts user to fail, and waits for person's handwriting input next time.
3. according to the method described in claim 2, it is characterized in that, when the writing pencil draws person's handwriting:
The contact coordinate data of the writing pencil are reached the processor by the touch screen;
The processor records the contact coordinate data, and person's handwriting is shown in institute in real time according to the contact coordinate data
It states in touch screen;
If the processor does not obtain the contact coordinate data of the writing pencil within the first threshold time of setting, institute is judged
Person's handwriting drafting is stated to finish.
4. a kind of device taken pictures, which is characterized in that in mobile device, the mobile device to be configured with processor, can insert
The writing pencil dialled and the touch screen that can be inputted by writing pencil, the touch screen are electrically connected with the processor;
When the device is for processor operation camera program, including:
Writing pencil finds out module, finds out after writing pencil is pulled out, information mobile device enters image synthesis model;
First image collection module obtains the first image in the first figure layer in being shown in touch screen;
Person's handwriting acquisition module, in the second figure layer in being shown in touch screen obtaining the writing pencil is drawn on the touch screen
Person's handwriting, and one of select closed area that the person's handwriting generates as view-finder;Wherein, second figure layer is located at described the
Above one figure layer;
Second image collection module obtains the second image in the range of the view-finder;
Described first image, the person's handwriting and second image are synthesized third image by image synthesis unit;
The person's handwriting acquisition module selects one of closed area of the person's handwriting generation as view-finder, specifically includes:
The person's handwriting acquisition module according to the person's handwriting of drafting, judge with the close closed area of the person's handwriting, and will be described
Closed area is shown in touch screen;Wherein, the person's handwriting acquisition module prestores multiple closed areas;
The person's handwriting acquisition module judges whether to receive the select command of the selection closed area of user, if so, will
The closed area selected is as view-finder;
If nothing, the person's handwriting acquisition module draws the closed area generated according to the person's handwriting and automatically selects view-finder;
The person's handwriting acquisition module draws the closed area generated according to the person's handwriting and automatically selects view-finder, specifically includes:
After the person's handwriting acquisition module judges that the person's handwriting is drawn, the closed area that the person's handwriting generates is identified;
If the person's handwriting forms more than one closed area, the person's handwriting acquisition module calculates the area of each closed area
Si, and obtain the area S of maximum closed areamax;Wherein, i=1~N, N are more than 1;
The person's handwriting acquisition module calculates the focus point gi of each closed area, and obtains the focus point of maximum closed area
gmax;
The person's handwriting acquisition module calculates the focus point g of each focus point gi and maximum closed areamaxAir line distance Ti;
The person's handwriting acquisition module calculates the weighted average α i of each closed area;Wherein, α i=Si/Smax* p-Ti*q, p and
Q is weighting coefficient, and is all higher than 0;
The person's handwriting acquisition module chooses the maximum value α in weighted average α imax, judge αmaxWhether the weighting threshold of setting is more than
Value;If so, selection αmaxCorresponding closed area is view-finder;If it is not, then selecting maximum closed area SmaxCorresponding
Closed area is view-finder.
5. device according to claim 4, which is characterized in that if the person's handwriting acquisition module identifies that the person's handwriting is not formed
Closed area then prompts user to fail, and waits for person's handwriting input next time.
6. device according to claim 5, which is characterized in that when the writing pencil draws person's handwriting:
The contact coordinate data of the writing pencil are reached the person's handwriting acquisition module by the touch screen;
The person's handwriting acquisition module records the contact coordinate data, and is shown person's handwriting in real time according to the contact coordinate data
It is shown in the touch screen;
If the person's handwriting acquisition module does not obtain the person's handwriting that the writing pencil is drawn within the first threshold time of setting, judge
The person's handwriting drafting finishes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362377.6A CN104994276B (en) | 2015-06-26 | 2015-06-26 | A kind of method and apparatus of shooting |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510362377.6A CN104994276B (en) | 2015-06-26 | 2015-06-26 | A kind of method and apparatus of shooting |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104994276A CN104994276A (en) | 2015-10-21 |
CN104994276B true CN104994276B (en) | 2018-10-16 |
Family
ID=54306026
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510362377.6A Active CN104994276B (en) | 2015-06-26 | 2015-06-26 | A kind of method and apparatus of shooting |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104994276B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105353907A (en) * | 2015-10-30 | 2016-02-24 | 努比亚技术有限公司 | Photographing method and apparatus |
CN106933525B (en) * | 2017-03-09 | 2019-09-20 | 青岛海信移动通信技术股份有限公司 | A kind of method and apparatus showing image |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546900A (en) * | 2010-12-07 | 2012-07-04 | 比亚迪股份有限公司 | Mobile communication terminal and method for processing information by aid of same |
CN202488611U (en) * | 2012-03-31 | 2012-10-10 | 北京三星通信技术研究有限公司 | Signal processing circuit of mobile equipment and mobile equipment |
CN102843514A (en) * | 2012-08-13 | 2012-12-26 | 东莞宇龙通信科技有限公司 | Photo shooting and processing method and mobile terminal |
CN102857617A (en) * | 2011-06-28 | 2013-01-02 | 希姆通信息技术(上海)有限公司 | Mobile terminal equipment with handwriting function and functions of camera |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150066883A (en) * | 2013-12-09 | 2015-06-17 | 삼성전자주식회사 | Image processing method and device |
-
2015
- 2015-06-26 CN CN201510362377.6A patent/CN104994276B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102546900A (en) * | 2010-12-07 | 2012-07-04 | 比亚迪股份有限公司 | Mobile communication terminal and method for processing information by aid of same |
CN102857617A (en) * | 2011-06-28 | 2013-01-02 | 希姆通信息技术(上海)有限公司 | Mobile terminal equipment with handwriting function and functions of camera |
CN202488611U (en) * | 2012-03-31 | 2012-10-10 | 北京三星通信技术研究有限公司 | Signal processing circuit of mobile equipment and mobile equipment |
CN102843514A (en) * | 2012-08-13 | 2012-12-26 | 东莞宇龙通信科技有限公司 | Photo shooting and processing method and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104994276A (en) | 2015-10-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106227439B (en) | Device and method for capturing digitally enhanced image He interacting | |
WO2021135601A1 (en) | Auxiliary photographing method and apparatus, terminal device, and storage medium | |
CN105847674B (en) | A kind of preview image processing method and mobile terminal based on mobile terminal | |
TWI255141B (en) | Method and system for real-time interactive video | |
CN109040474B (en) | Photo display method, device, terminal and storage medium | |
WO2022028184A1 (en) | Photography control method and apparatus, electronic device, and storage medium | |
CN112351185A (en) | Photographing method and mobile terminal | |
CN107924113A (en) | User interface for camera effect | |
US20140232904A1 (en) | Combining effective images in electronic device having a plurality of cameras | |
CN110457103A (en) | Head portrait creates user interface | |
CN108712603B (en) | Image processing method and mobile terminal | |
US8947365B2 (en) | Storage medium storing image processing program for implementing image processing according to input coordinate, and information processing device | |
CN104935812B (en) | A kind of method and device for controlling self-timer mode to open | |
CN107124548A (en) | A kind of photographic method and terminal | |
US10846514B2 (en) | Processing images from an electronic mirror | |
CN109218626A (en) | A kind of photographic method and terminal | |
CN104834382B (en) | Application program for mobile terminal response system and method | |
CN107835359A (en) | Triggering method of taking pictures, mobile terminal and the storage device of a kind of mobile terminal | |
CN108616712A (en) | A kind of interface operation method, device, equipment and storage medium based on camera | |
CN111159449B (en) | Image display method and electronic equipment | |
CN107045682A (en) | Mobile terminal and fingerprint method of payment | |
CN105528080A (en) | Method and device for controlling mobile terminal | |
CN104994276B (en) | A kind of method and apparatus of shooting | |
CN109104578A (en) | A kind of image processing method and mobile terminal | |
CN110046020A (en) | Head portrait creates user interface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |