Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, 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 are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
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 was accomplished, 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 corresponding photographic images of the preview image of camera terminal (like 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 advances the Preview state, and the applying unit of taking pictures begins and go to begin to indicate according to the frame of Camera indication; Receive Pixel Information from Camera, finish a frame end until delegation; And be presented at this two field picture on the screen at 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 gets into the Snapshot state.The applying unit of taking pictures begins and go to begin indication according to the frame of Camera indication, receives Pixel Information from Camera, finish until delegation, and a frame end, and the file system that is stored in the terminal to this two field picture is perhaps in certain region of memory.
Below in conjunction with accompanying drawing the present invention is elaborated.
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 of treating reference object, after the terminal gets into the Preview state, will demonstrate the preview image that Camera collects on the display unit at this terminal.This step can adopt existing techniques in realizing, repeats no more at this.
S102: receive the signal of effective coverage that be used to select said preview image of user according to said 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 the 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 be presented at the last frame image freeze on the screen, at this moment, can show that on screen a round dot (perhaps cross) represent nib; The user operates this nib through the above-mentioned input equipment at terminal, on screen, selects the user's interest closed area as the effective coverage.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 said signal, obtain the image of the selected reference object in the effective coverage of said preview image, and preserve the image of said selected reference object.
When the user has confirmed the effective coverage according to step S102; And after pressing the key of taking pictures; The 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; The 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 the terminal when the application of handling based on camera function, reduce the size of image file, the resource of having saved the 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 of treating reference object.
S202: receive the signal of effective coverage that be used to select said preview image of user according to said 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 said effective coverage is carried out nontransparent processing.
After the user was selecting the end region defined function, the terminal can get into the Preview stage once more, continued to obtain the image information of a frame one frame from Camera, and on LCD, showed.Selected the effect behind the effective coverage in order to make the user can be clear that it, 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 the non-selective region on the screen (image beyond the effective coverage) with fill color (for example, white, grey; 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, can also the selection wire overstriking of effective coverage 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; The 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:, confirm to contain the minimum envelop rectangle of said effective coverage according to the said 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 the terminal to have enough powerful disposal ability, this has improved the cost at terminal to a certain extent.Therefore; Present embodiment just confirms that according to this effective coverage one can contain the minimum envelop rectangle of this effective coverage after the user has selected the effective coverage, it is to be noted; Confirming 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: the scope according to the minimum envelop rectangle is confirmed is taken, and obtains the image in the minimum envelop rectangle of said preview image, and preserves the image in the said minimum envelop rectangle.
After the user presses the key of taking pictures; The 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, and preserve the image in this minimum envelop rectangle.Like this, because the terminal only need obtain the image in the such regular figure of minimum envelop rectangle, reduced requirement, thereby reduced the manufacturing cost at 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 accomplish 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 needing processing that the image in this minimum envelop rectangle is correlated with, is 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 is filled with fill color.The regional shape in effective coverage that just can a recording user appointment in the image file of the standard of like this, in the end preserving (like JEPG etc.).
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 at terminal through the minimum envelop rectangle, thus can reduce the cost of manufacture at terminal.
Embodiment three
Present embodiment is to further specify what embodiment two carried out through a concrete instance 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 through the translation software at 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 through 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 (promptly scheming the 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 confirmed the minimum envelop rectangle according to the effective coverage; After the user presses the key of taking pictures; The image unit at 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 is last; Image outside the effective coverage in this minimum envelop rectangle is carried out nontransparent processing and preserved the image in this minimum envelop rectangle, thereby obtained image as shown in Figure 5.
So just can the input as translation software of the image of this minimum envelop rectangle 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 of treating reference object, after the terminal gets into the Preview state, will demonstrate the preview image that Camera collects on the display unit at this terminal.This step can adopt existing techniques in realizing, repeats no more at this.
S602: receive the signal of effective coverage that be used to select said preview image of user according to said 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 the 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 be presented at the last frame image freeze on the screen, at this moment, can show that on screen a round dot (perhaps cross) represent nib; The user operates this nib through the above-mentioned input equipment at terminal, on screen, selects the user's interest closed area as the effective coverage.Certainly, the user also can repeat said process, and one or more closed area of drawing is as the effective coverage.
S603: said preview image is taken obtaining said preview image, and preserved the image of the selected reference object in the effective coverage in the said preview image according to said 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 at present embodiment terminal still obtains whole preview image according to normal mode when taking, and the applying unit of taking pictures in the 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 preview image outside the effective coverage is carried out nontransparent processed steps.
After the user is selecting the end region defined function; The terminal can get into the Preview stage once more; At this moment the preview image outside the effective coverage is being 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 said effective coverage of selecting, and confirms to contain the minimum envelop rectangle of said effective coverage; Said preview image is taken to obtain said preview image; According to said signal the image in the said minimum envelop rectangle, outside the said effective coverage is carried out nontransparent processing, and preserve the image in the said 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 image in the 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 through definite requirement that has reduced the disposal ability at terminal of minimum envelop rectangle, thereby reduced the cost of manufacture at terminal.
The last image of preserving of the embodiment of the invention also is merely the image in the user-selected effective coverage, thereby makes the terminal reduce the size of image file, the resource of having saved the terminal during based on the application of camera function in processing.
Embodiment five
Be illustrated in figure 7 as the structural representation at 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 of treating reference object, after the terminal gets into the Preview state, will demonstrate the preview image that Camera collects on the display unit at 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 said preview image of user according to said 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 accomplish; 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 the 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 be presented at the last frame image freeze on the screen, at this moment, can show that on screen a round dot (perhaps cross) represent nib; The user operates this nib through the above-mentioned input equipment at terminal, on screen, selects the user's interest closed area as the effective coverage.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 through the input equipment input.
Image acquisition unit 730 is used for taking according to said signal, obtains the image of the selected reference object in the effective coverage of said 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 accomplished by the processor at terminal 700, also can be accomplished 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 at terminal through the minimum envelop rectangle, thus can reduce the cost of manufacture at terminal.
Embodiment six
Be illustrated in figure 8 as the structural representation at 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 to confirm unit 870; Wherein, Second coloring units 850, display unit 810, select signal receiving unit 820, image acquisition unit 830, first coloring units 860 to link to each other successively, and envelope confirm that unit 870 links to each other with display unit 810, selection signal receiving unit 820 and image acquisition unit 830 respectively with 840 of memory cell.
Similar among the effect of display unit 810 and selection signal receiving unit 820 and the embodiment five, repeat no more at this.
Envelope confirms that unit 860 is used for the effective coverage of selecting according to the user who selects signal receiving unit 820 to receive, and confirms 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 the terminal to have enough powerful disposal ability, this has improved the cost at terminal to a certain extent.Therefore; The terminal 800 of present embodiment can confirm that one can contain the minimum envelop rectangle of this effective coverage according to this effective coverage; What it is pointed out that this envelope rectangle confirms it 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 said 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 in terminal obtain the image in the such regular figure of minimum envelop rectangle, reduced requirement, thereby reduced the manufacturing cost at 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 accomplish 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 the image in the effective coverage.
Memory cell 840 is used for preserving the image of said 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 said 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 get into the Preview stage once more; The image information of a frame one frame is obtained in continuation from Camera; And show that on LCD and the nontransparent processing through second coloring units 850 has made the user in the process of preview once more, just can see significantly oneself to have carried out the display effect after the selection of effective coverage.
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 at terminal through the minimum envelop rectangle, thus can reduce the cost of manufacture at terminal.
Embodiment seven
Be illustrated in figure 9 as the structural representation at 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 of treating reference object, after the terminal gets into the Preview state, will demonstrate the preview image that Camera collects on the display unit at this terminal.This step can adopt existing techniques in realizing, repeats no more at this.
Select signal receiving unit 920 to be used to receive the signal of effective coverage that be used to select said preview image of user according to said 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 accomplish; 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 the 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 be presented at the last frame image freeze on the screen, at this moment, can show that on screen a round dot (perhaps cross) represent nib; The user operates this nib through the above-mentioned input equipment at terminal, on screen, selects the user's interest closed area as the effective coverage.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 through 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 when taking, just to take according to user's selection signals, and promptly image acquisition unit is only taken the image in the effective coverage among the embodiment five; And the image acquisition unit 930 at 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 said 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 are confirmed unit 970 (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 confirms that unit 970 links to each other with display unit 910, selection signal receiving unit 920, image acquisition unit 930 respectively.
Envelope confirms that unit 970 is used for the effective coverage of selecting according to the user who selects signal receiving unit 920 to receive, and confirms 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 the 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 said 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 get into the Preview stage once more; The image information of a frame one frame is obtained in continuation from Camera; And show that on LCD and the nontransparent processing through second coloring units 950 has made the user in the process of preview once more, just can see significantly oneself to have carried out the display effect after the selection of effective coverage.
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 at terminal through the minimum envelop rectangle, thus can reduce the cost of manufacture at 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 accomplish through 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; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely specific embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.