Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention provides a kind of terminal image capture method, this method can make the user when preview (Preview), select interesting areas according to preview image, after shooting is finished, the applying unit of taking pictures in the terminal can only be preserved the image in the zone of user's selection, rather than the photographic images of the preview image correspondence of camera terminal (as Camera).
Before describing the embodiment of the invention, at first introduce the related procedure of shooting down.
(1) preview phase (Preview)
The starting terminal applying unit of taking pictures, enter the Preview state, the frame that the applying unit of taking pictures is indicated according to Camera begins and goes to begin indication, receive Pixel Information from Camera, finish a frame end until delegation, and this two field picture is presented on the screen of terminal, begin the processing of next frame again, go round and begin again, select to withdraw from or take pictures until the user.
(2) (Snapshot) takes pictures the stage
The user presses the key of taking pictures, and takes pictures, and the applying unit of taking pictures enters the Snapshot state.The frame that the applying unit of taking pictures is indicated according to Camera begins and goes to begin indication, receives Pixel Information from Camera, finish until delegation, and a frame end, and this two field picture is stored in the file system or certain region of memory of terminal.
The present invention is described in detail below in conjunction with accompanying drawing.
Embodiment one
Present embodiment is the explanation of the embodiment of the invention being done from the angle of camera shooting terminal, is illustrated in figure 1 as the schematic flow sheet of a kind of terminal image capture method that the embodiment of the invention one provides, and this method comprises the steps:
S101: show the preview image for the treatment of reference object, after terminal enters the Preview state, will present the preview image that Camera collects on the display unit of this terminal.This step can adopt existing techniques in realizing, does not repeat them here.
S102: receive the signal of effective coverage that be used to select described preview image of user according to described preview image input.
Specifically, the embodiment of the invention during stage, has also increased the zone definitions function at Preview, and this zone definitions function can be used to select the user's interest image-region,, selects the effective coverage of image that is.
As one embodiment of the present of invention, selecting the signal of the effective coverage of preview image is the input equipment that comes from terminal, and this input equipment can comprise keyboard, touch-screen and roller etc.When the user has selected the zone definitions function, the applying unit of taking pictures stops to receive image information from Camera, and the last frame image freeze is presented on the screen, at this moment, on screen, can represent nib by a round dot of demonstration (perhaps cross), the user operates this nib by the above-mentioned input equipment of terminal, selects the user's interest closed area as the effective coverage on screen.Certainly, the user also can repeat said process, and one or more closed area of drawing is as the effective coverage.
S103: take according to described signal, obtain the image of the selected reference object in the effective coverage of described preview image, and preserve the image of described selected reference object.
When the user has determined the effective coverage according to step S102, and after pressing the key of taking pictures, terminal promptly can be taken the selected digital image in the effective coverage of preview image according to the selection signal of above-mentioned effective coverage, thereby obtain the image of the selected reference object in the effective coverage of preview image, and preserve the image of this selected reference object.
As one embodiment of the present of invention, when the border, effective coverage that the user selectes is uneven,, can carry out smoothing processing to this border in order to reduce the computational burden of processing unit in the terminal (such as CPU), make this effective coverage become comparatively regular.
As an alternative embodiment of the invention, when the effective coverage that the user selectes is not a closed area, terminal also can be automatically links to each other the head and end of selection wire, linking to each other here can be two one to link to each other point-blank, can certainly be that point-to-point transmission through processing unit control is a radian ground and links to each other.
The image of the reference object in the effective coverage that the embodiment of the invention can obtain to select, and preserve this image, thus make terminal when the application of handling based on camera function, reduce the size of image file, saved the resource of terminal.
Embodiment two
Be illustrated in figure 2 as the schematic flow sheet of a kind of terminal image capture method that the embodiment of the invention two provides, this method comprises the steps:
S201: show the preview image for the treatment of reference object.
S202: receive the signal of effective coverage that be used to select described preview image of user according to described preview image input.
Similar among above-mentioned steps S201 and step S202 and the embodiment one, just no longer given unnecessary details.
S203: the preview image outside the described effective coverage is carried out nontransparent processing.
After the user was selecting the end region defined function, terminal can enter the Preview stage once more, continued to obtain the image information of a frame one frame from Camera, and showed on LCD.In order to make the user can be clear that it has selected the effect behind the effective coverage, the embodiment of the invention can be carried out nontransparent processing to the preview image outside the effective coverage in this Preview stage.The nontransparent processing here is meant uses fill color (for example, white, grey to the non-selective region on the screen (image beyond the effective coverage), black etc.) show, make and covered the similar opaque illiteracy plate of non-selective region the image of non-selective region, and only shown the image of selecting the zone.
Like this, the user just can see significantly in the process of preview once more and oneself carried out the display effect after the zone is selected.
As one embodiment of the present of invention, the preview image the effective coverage is carried out nontransparent processing give prominence to outside the preview display effect except using, the selection wire overstriking of effective coverage can also be realized give prominence to this preview display effect.
As one embodiment of the present of invention, if among the step S202 user input be used to select the signal of effective coverage of preview image to be non-closed area signal the time, terminal also can be automatically links to each other the head and end of selection wire, linking to each other here can be two one to link to each other point-blank, can certainly be that point-to-point transmission through processing unit control is a radian ground and links to each other.
S204:, determine to contain the minimum envelop rectangle of described effective coverage according to the described effective coverage of selecting.
Because user-selected effective coverage is a kind of irregular scope as a rule, and to directly obtain the image of the selected reference object in the effective coverage, need terminal to have enough powerful disposal ability, this has improved the cost of terminal to a certain extent.Therefore, present embodiment is after the user has selected the effective coverage, just determine that according to this effective coverage one can contain the minimum envelop rectangle of this effective coverage, it is to be noted, determining of this envelope rectangle is in the Preview stage, and this minimum envelop rectangle both can be visible for the user, also can be sightless.
S205: take according to the scope that the minimum envelop rectangle is determined, obtain the image in the minimum envelop rectangle of described preview image, and preserve the image in the described minimum envelop rectangle.
After the user presses the key of taking pictures, terminal promptly can be taken the image in the minimum envelop rectangle of preview image according to definite scope of last minimum envelop rectangle, thereby obtain the image in the minimum envelop rectangle of preview image, and preserve the image in this minimum envelop rectangle.Like this, because terminal only need be obtained the image in the such regular figure of minimum envelop rectangle, reduced requirement, thereby reduced the manufacturing cost of terminal terminal processing capacity.Certainly, the embodiment of the invention is not got rid of yet and is used the rectangle of other size to finish the present invention, only needs this rectangle can contain above-mentioned effective coverage and gets final product.
As one embodiment of the present of invention, for the user, only show the image in the effective coverage of its selection for the image that makes last preservation, before the image of terminal in preserving this minimum envelop rectangle, also need processing that the image in this minimum envelop rectangle is correlated with, be to adopt the image in the minimum envelop rectangle, outside the effective coverage is carried out nontransparent processing in the present embodiment, promptly the image outside the effective coverage in the minimum envelop rectangle filled with fill color.The shape in zone, effective coverage that just can a recording user appointment in the image file of the standard of Bao Cuning (as JEPG etc.) like this, in the end.
In the image of the embodiment of the invention in obtaining the selected effective coverage of user, the also definite requirement that has reduced the disposal ability of terminal by the minimum envelop rectangle, thus can reduce the cost of manufacture of terminal.
Embodiment three
Present embodiment is to come further specifying that embodiment two carries out by a concrete example of taking pictures.
Fig. 3 is the picture that the user sees, wherein, has several word users not to be familiar with, if user terminal has translation software, then the user can translate by the translation software of terminal.
According to the embodiment of the invention, the user at first starts the applying unit of taking pictures, and in the Preview stage, the user freezes earlier the image that preview obtains, select the effective coverage by the keyboard or the touch-screen of operating terminal then, such as the effective coverage of selecting shown in Fig. 4 A 40.The user is again during preview, the user can drag the position of effective coverage, convergent-divergent or stretching is carried out in the effective coverage, afterwards, the applying unit of taking pictures carries out nontransparent processing (i.e. figure bend part) to the image outside the effective coverage, and the image on the screen that the user sees is shown in Fig. 4 B.Then, the applying unit of taking pictures is determined the minimum envelop rectangle according to the effective coverage, after the user presses the key of taking pictures, the image unit of terminal promptly can be taken the image in the minimum envelop rectangle of preview image according to definite scope of last minimum envelop rectangle, thereby the image in the minimum envelop rectangle of acquisition preview image, at last, image outside the effective coverage in this minimum envelop rectangle is carried out nontransparent processing and preserved image in this minimum envelop rectangle, thereby obtained image as shown in Figure 5.
So just the input as translation software of the image of this minimum envelop rectangle can be translated several words that the user selects.Because it is visible that the image in this minimum envelop rectangle has only the effective coverage, therefore make the word that translation software can accurate localization need be translated, for the user provides accurate service.
Embodiment four
Be illustrated in figure 6 as the schematic flow sheet of a kind of terminal image capture method that the embodiment of the invention four provides, this method comprises the steps:
S601: show the preview image for the treatment of reference object, after terminal enters the Preview state, will present the preview image that Camera collects on the display unit of this terminal.This step can adopt existing techniques in realizing, does not repeat them here.
S602: receive the signal of effective coverage that be used to select described preview image of user according to described preview image input.
Specifically, the embodiment of the invention during stage, has also increased the zone definitions function at Preview, and this zone definitions function can be used to select the user's interest image-region,, selects the effective coverage of image that is.
As one embodiment of the present of invention, selecting the signal of the effective coverage of preview image is the input equipment that comes from terminal, and this input equipment can comprise keyboard, touch-screen and roller etc.When the user has selected the zone definitions function, the applying unit of taking pictures stops to receive image information from Camera, and the last frame image freeze is presented on the screen, at this moment, on screen, can represent nib by a round dot of demonstration (perhaps cross), the user operates this nib by the above-mentioned input equipment of terminal, selects the user's interest closed area as the effective coverage on screen.Certainly, the user also can repeat said process, and one or more closed area of drawing is as the effective coverage.
S603: described preview image is taken obtaining described preview image, and preserved the image of the selected reference object in the effective coverage in the described preview image according to described signal.Be that the user directly obtains earlier the view picture preview image, and then carry out image according to the selection of effective coverage and preserve.
Different is with embodiment one, embodiment once in take according to user's selection signals control image unit when being to take, promptly image unit is only taken the image in the effective coverage among the embodiment one; And the image unit of present embodiment terminal still obtains whole preview image according to normal mode when taking, and the applying unit of taking pictures in terminal is preserved image according to user's selection signals when preserving again.
As one embodiment of the present of invention, behind step S602, can also comprise the step of the preview image outside the effective coverage being carried out nontransparent processing.
After the user is selecting the end region defined function, terminal can enter the Preview stage once more, at this moment the preview image outside the effective coverage is carried out nontransparent processing, can be so that the user just can see the display effect of oneself carrying out after the zone is selected significantly in the process of preview once more.
As one embodiment of the present of invention, step S603 can also specifically comprise the steps: according to the described effective coverage of selecting, and determines to contain the minimum envelop rectangle of described effective coverage; Described preview image is taken to obtain described preview image; According to described signal the image in the described minimum envelop rectangle, outside the described effective coverage is carried out nontransparent processing, and preserve the image in the described minimum envelop rectangle.
Here, image unit in the terminal is that the view picture preview image is taken when taking, and last preservation is the interior image of minimum envelop rectangle, but owing to before preservation, the image in the minimum envelop rectangle, outside the effective coverage has been carried out nontransparent processing, thus for the user image in the last visible still effective coverage.This execution mode is by definite requirement that has reduced the disposal ability of terminal of minimum envelop rectangle, thereby reduced the cost of manufacture of terminal.
The last image of preserving of the embodiment of the invention also only be the image in the user-selected effective coverage, thereby makes terminal reduce the size of image file during based on the application of camera function in processing, has saved the resource of terminal.
Embodiment five
Be illustrated in figure 7 as the structural representation of a kind of terminal that the embodiment of the invention five provides, this terminal 700 comprises: display unit 710, selection signal receiving unit 720, image acquisition unit 730 and memory cell 740, wherein, select signal receiving unit 720 to link to each other with display unit 710 and image acquisition unit 730 respectively, and image acquisition unit 730 link to each other respectively with display unit 710 and memory cell 740.
Display unit 710 is used to show the preview image for the treatment of reference object, after terminal enters the Preview state, will present the preview image that Camera collects on the display unit of this terminal.This step belongs to prior art, therefore just no longer it has been given unnecessary details at this.
Select signal receiving unit 720 to be used to receive the signal of effective coverage that be used to select described preview image of user according to described preview image input.
Specifically, be that the terminal 700 of the embodiment of the invention during stage, has also increased the zone definitions function at Preview, this zone definitions function is mainly by selecting signal receiving unit 720 to finish, it can be used to select the user's interest image-region,, selects the effective coverage of image that is.
As one embodiment of the present of invention, selecting the signal of the effective coverage of preview image is the input equipment that comes from terminal, and this input equipment can comprise keyboard, touch-screen and roller etc.When the user has selected the zone definitions function, the applying unit of taking pictures stops to receive image information from Camera, and the last frame image freeze is presented on the screen, at this moment, on screen, can represent nib by a round dot of demonstration (perhaps cross), the user operates this nib by the above-mentioned input equipment of terminal, selects the user's interest closed area as the effective coverage on screen.Certainly, the user also can repeat said process, and one or more closed area of drawing is as the effective coverage.Select signal receiving unit 720 just can collect the above-mentioned selection signal of user by the input equipment input.
Image acquisition unit 730 is used for taking according to described signal, obtains the image of the selected reference object in the effective coverage of described preview image.
When selecting signal receiving unit 720 to receive the signal of the effective coverage of user's selection, and after the user presses the key of taking pictures, image acquisition unit 730 promptly can be taken the selected digital image in the effective coverage of preview image according to the selection signal of above-mentioned effective coverage, thus the image of the selected reference object in the effective coverage of acquisition preview image.
As one embodiment of the present of invention, terminal 700 can also comprise a smoothing processing unit, be used for when the border, effective coverage that the user selectes is uneven, in order to reduce the computational burden of processing unit in the terminal (such as CPU), can carry out smoothing processing to this border, make this effective coverage become comparatively regular.
As an alternative embodiment of the invention, when the effective coverage that the user selectes is not a closed area, terminal 700 also can be automatically links to each other the head and end of selection wire, linking to each other here can be two one to link to each other point-blank, can certainly be that point-to-point transmission through processing unit control is a radian ground and links to each other.This operation can be finished by the processor of terminal 700, also can be finished by an independent unit.
In the image of the embodiment of the invention in obtaining the selected effective coverage of user, the also definite requirement that has reduced the disposal ability of terminal by the minimum envelop rectangle, thus can reduce the cost of manufacture of terminal.
Embodiment six
Be illustrated in figure 8 as the structural representation of a kind of terminal that the embodiment of the invention six provides, this terminal 800 comprises: display unit 810, select signal receiving unit 820, image acquisition unit 830, memory cell 840, first coloring units 850, second coloring units 860 and envelope determining unit 870, wherein, second coloring units 850, display unit 810, select signal receiving unit 820, image acquisition unit 830, first coloring units 860 links to each other successively with 840 of memory cell, and envelope determining unit 870 respectively with display unit 810, select signal receiving unit 820 and image acquisition unit 830 to link to each other.
Similar among the effect of display unit 810 and selection signal receiving unit 820 and the embodiment five, do not repeat them here.
Envelope determining unit 860 is used for the effective coverage according to user's selection of selecting signal receiving unit 820 to receive, determines to contain the minimum envelop rectangle of this effective coverage.
Because user-selected effective coverage is a kind of irregular scope as a rule, and to directly obtain the image of the selected reference object in the effective coverage, need terminal to have enough powerful disposal ability, this has improved the cost of terminal to a certain extent.Therefore, the terminal 800 of present embodiment can determine that one can contain the minimum envelop rectangle of this effective coverage according to this effective coverage, it is to be noted, determining of this envelope rectangle is in the Preview stage, and this minimum envelop rectangle is for the user, both can be visible, also can be sightless.
Image acquisition unit 830 specifically is used for according to selecting signal to take, and obtains the image in the minimum envelop rectangle of described preview image;
After the user pressed the key of taking pictures, image acquisition unit 830 promptly can be taken the image in the minimum envelop rectangle of preview image according to definite scope of last minimum envelop rectangle, thus the image in the minimum envelop rectangle of acquisition preview image.Like this, because 800 needs of terminal obtain the image in the such regular figure of minimum envelop rectangle, reduced requirement, thereby reduced the manufacturing cost of terminal 800 terminal 800 disposal abilities.Certainly, the embodiment of the invention is not got rid of yet and is used the rectangle of other size to finish the present invention, only needs this rectangle can contain above-mentioned effective coverage and gets final product.
First coloring units 860 is used for the image in the minimum envelop rectangle, outside the effective coverage is carried out nontransparent processing.The nontransparent processing here the image in the minimum envelop rectangle, outside the effective coverage with fill color (for example is meant, white, grey, black etc.) show, make can cover in the minimum envelop rectangle, outside the effective coverage image, and only show image in the effective coverage.
Memory cell 840 is used for preserving the image of described minimum envelop rectangle, but because the nontransparent processing operation of first coloring units 860, the image in the minimum envelop rectangle that memory cell 840 is preserved still only shows the image in the effective coverage for the user.
Second coloring units 850 be used for select signal receiving unit 820 receive users according to the preview image input be used to select the signal of effective coverage of described preview image after, the image outside the effective coverage is carried out nontransparent processing.After selecting signal receiving unit 820 to obtain the signal that the user selects the preview image effective coverage, terminal 800 can enter the Preview stage once more, the image information of a frame one frame is obtained in continuation from Camera, and on LCD, show, and the nontransparent processing by second coloring units 850 has made the user just can see significantly oneself to have carried out the display effect after the selection of effective coverage in the process of preview once more.
In the image of the embodiment of the invention in obtaining the selected effective coverage of user, the also definite requirement that has reduced the disposal ability of terminal by the minimum envelop rectangle, thus can reduce the cost of manufacture of terminal.
Embodiment seven
Be illustrated in figure 9 as the structural representation of a kind of terminal that the embodiment of the invention seven provides, this terminal 900 comprises: display unit 910, selection signal receiving unit 920, image acquisition unit 930 and memory cell 940, wherein, select signal receiving unit 920 to link to each other with display unit 910 and image acquisition unit 930 respectively, and image acquisition unit 930 link to each other respectively with display unit 910 and memory cell 940.
Display unit 910 is used to show the preview image for the treatment of reference object, after terminal enters the Preview state, will present the preview image that Camera collects on the display unit of this terminal.This step can adopt existing techniques in realizing, does not repeat them here.
Select signal receiving unit 920 to be used to receive the signal of effective coverage that be used to select described preview image of user according to described preview image input.
Specifically, be that the terminal 900 of the embodiment of the invention during stage, has also increased the zone definitions function at Preview, this zone definitions function is mainly by selecting signal receiving unit 920 to finish, it can be used to select the user's interest image-region,, selects the effective coverage of image that is.
As one embodiment of the present of invention, selecting the signal of the effective coverage of preview image is the input equipment that comes from terminal, and this input equipment can comprise keyboard, touch-screen and roller etc.When the user has selected the zone definitions function, the applying unit of taking pictures stops to receive image information from Camera, and the last frame image freeze is presented on the screen, at this moment, on screen, can represent nib by a round dot of demonstration (perhaps cross), the user operates this nib by the above-mentioned input equipment of terminal, selects the user's interest closed area as the effective coverage on screen.Certainly, the user also can repeat said process, and one or more closed area of drawing is as the effective coverage.Select signal receiving unit 920 just can collect the above-mentioned selection signal of user by the input equipment input.
Image acquisition unit 930 is used for preview image is taken to obtain this preview image, different is with embodiment five, image acquisition unit among the embodiment five is just to take according to user's selection signals when taking, and promptly image acquisition unit is only taken the image in the effective coverage among the embodiment five; And the image acquisition unit 930 of present embodiment terminal 900 still obtains whole preview image according to normal mode when taking.
The image of the selected reference object in the preview image effective coverage that memory cell 940 is used for being obtained according to described signal preservation image acquisition unit 930.
As one embodiment of the present of invention, terminal 900 can also comprise: first coloring units 960, second coloring units 950 and envelope determining unit 970 (as shown in figure 10), wherein first coloring units 960 links to each other with image acquisition unit 930 and memory cell 940 respectively, second coloring units 950 links to each other with display unit 810, and envelope determining unit 970 links to each other with display unit 910, selection signal receiving unit 920, image acquisition unit 930 respectively.
Envelope determining unit 970 is used for the effective coverage according to user's selection of selecting signal receiving unit 920 to receive, determines to contain the minimum envelop rectangle of this effective coverage.
First coloring units 960 is used for the image in the minimum envelop rectangle, outside the effective coverage is carried out nontransparent processing.The nontransparent processing here the image in the minimum envelop rectangle, outside the effective coverage with fill color (for example is meant, white, grey, black etc.) show, make can cover in the minimum envelop rectangle, outside the effective coverage image, and only show image in the effective coverage.
Like this, memory cell 940 just specifically is used for preserving the image of minimum envelop rectangle.
Second coloring units 950 be used for select signal receiving unit 920 receive users according to the preview image input be used to select the signal of effective coverage of described preview image after, the image outside the effective coverage is carried out nontransparent processing.After selecting signal receiving unit 920 to obtain the signal that the user selects the preview image effective coverage, terminal 900 can enter the Preview stage once more, the image information of a frame one frame is obtained in continuation from Camera, and on LCD, show, and the nontransparent processing by second coloring units 950 has made the user just can see significantly oneself to have carried out the display effect after the selection of effective coverage in the process of preview once more.
In the image of the embodiment of the invention in obtaining the selected effective coverage of user, the also definite requirement that has reduced the disposal ability of terminal by the minimum envelop rectangle, thus can reduce the cost of manufacture of terminal.One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method can instruct relevant hardware to finish by program, this program can be stored in the computer read/write memory medium, such as ROM/RAM, magnetic disc, CD etc.
Above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above only is specific embodiments of the invention; and be not intended to limit the scope of the invention; within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.