Summary of the invention
Purpose of the present invention is being utilized to adjust the camera and the method for imaging of object images size in display frame by a kind of, no matter photographer's technology quality, but all automations, make captured thing or people's the appropriate position of object diagram image position in display frame easily, with prevent object images too greatly, the too little or problem of skew.
The present invention relates to a kind of camera, is in order to take a scenery to form corresponding image.This camera is to comprise a storage device, an image capturing device, a comparison module and a correcting module.
This storage device is in order to storing an object profile, to should the object outline file being to present an object contour images.
This image capturing device be in order to should scenery to capture one first image, this first image comprises a background image and an object image.
This comparison module is in order to relatively this object images and this object outline image, and obtains the corresponding degree of deviation.
This correcting module is according to this degree of deviation, revises the relative position of this object images in shown image frame, captures shown revised this image frame, to produce one second image.Wherein in this second image, the degree of deviation of this object images and this object outline image is to be lower than a comparison value.
Therefore, by camera and the method for imaging of utilization of the present invention with adjustment object images size in display frame, the degree of deviation of utilizing comparison module and correcting module to compare and revise object images and object outline image.So, no matter photographer's technology quality, but all automations, make captured thing or people's the appropriate position of object diagram image position in display frame easily, with prevent object images too greatly, the too little or problem of skew.
Can be further understood by the following detailed description and accompanying drawings about the advantages and spirit of the present invention.
Description of drawings
Fig. 1 is the schematic diagram of camera hardware structure of the present invention;
Fig. 2 is the schematic diagram by Fig. 1 hardware and software institute composition function module;
Fig. 3 is the schematic diagram of display frame of the present invention;
Fig. 4 is the first embodiment schematic diagram of correcting module running of the present invention;
Fig. 5 is the second embodiment schematic diagram of correcting module running of the present invention;
Fig. 6 is the 3rd an embodiment schematic diagram of correcting module running of the present invention;
Fig. 7 is another embodiment schematic diagram of comparison other image of the present invention and object outline image;
Fig. 8 is the schematic diagram that profile of the present invention is selected and compiled; And
Fig. 9 is the flow chart of method for imaging of the present invention.
The reference numeral explanation
20: processor; 2002:DSP; 2004:MCU; 30: camera; 32: storage device;
3202:SDRAM; 3204:SRAM; 3206:flash; 34: image capturing device;
36: comparison module; 38: correcting module; 40: display; 42: the object outline image;
44: the first images; 4402: object images; 50: the indicator light group; The 5002:LED lamp;
60: the photo distance control module; 3402: dolly camera; 70: the montage module;
72: subimage; 80: luminous point; 90: profile is selected module; 3208: the object outline file;
92: input unit; 9202: keyboard; 9204: the touch drawing board; 94: profile is compiled module.
Embodiment
See also Fig. 1, Fig. 1 is the schematic diagram of camera 30 hardware structures of the present invention.Camera 30 comprises various processor 20 (as DSP 2002, MCU 2004), various storage device 32 (as SDRAM 3202, SRAM 3204, flash 3206), input unit 92 (as keyboard 9202, touch drawing board 9204), display 40 and image capturing device 34 etc. on hardware.
Further see also Fig. 2, Fig. 2 is the schematic diagram by Fig. 1 hardware and software institute composition function module.Fig. 2 be the present invention in order to take the camera 30 of a scenery to form corresponding image, be to comprise a storage device 32, an image capturing device 34, a comparison module 36 and a correcting module 38.
At first, utilize image capturing device 34 to take an object in advance earlier to produce the object outline image, via as processors such as Fig. 1 DSP2002, MCU2004 20 running, with the object outline file 3208 of storage corresponding objects contour images in storage device 32 (as flash3206).
32 of storage devices are in order to store above-mentioned object outline file 3208, and corresponding objects profile 3208 is to present an object contour images.Wherein, storage device 32 is to be a flash memory (flash) 3206.Institute's objects stored profile 3208 is except taking the acquisition with image capturing device 34, also can be otherwise to make in advance and be stored in the storage device 32, objects stored contour images in advance when for example utilizing control formula drawing board 9204 to draw or dispatch from the factory.
Image capturing device 34 be in order to should scenery to capture one first image, wherein image capturing device 34 is to can be a cmos image capture device or a ccd image capture device.First image comprises a background image and an object image.First image of this acquisition can be temporarily stored among the SDRAM3202 among Fig. 1.
Comparison module 36 is acquisition object outline files 3208 in flash3206, and captures first image in SDRAM3202.Continue, comparison module 36 is object images and object outline images in comparison first image, and obtains the corresponding degree of deviation.
Correcting module 38 is according to this degree of deviation, revises the relative position of object images in shown image frame.After correction, the image frame that is captured by image capturing device 34 is one second image again.In this second image, make the degree of deviation of object images and object outline image be lower than a comparison value.So this second image is the present invention through after adjusting, object images is arranged in the image frame of institute's desire shooting of the appropriate position of shown image frame.
Further specify, described comparison module 36 and correcting module 38 are to write one section program by assembler language, pre-storage is in storage device 32 (palpus nonvolatile memory, flash3206, or other ROM as described above etc.), cooperate the MCU2004 calculation process, with the performance aforementioned functional.
Further see also Fig. 3, Fig. 3 is the schematic diagram of display frame of the present invention.Camera 30 as the aforementioned, and camera 30 more comprises a display 40, in order to present display frame.Object outline image 42, first image 44 and last adjusted second image finished of described object outline file 3208 correspondences to present is all can be presented in the display frame of display 40.The display frame of Fig. 3 then presents object outline image 42 and object images 4402, and cover stacks togather and demonstrate the described degree of deviation.
At how revising the degree of deviation, after being illustrated in several embodiment, see also Fig. 4, Fig. 4 is the first embodiment schematic diagram of correcting module 38 runnings of the present invention.Camera 30 as the aforementioned, and wherein correcting module 38 is to comprise an indicator light group 50.Indicator light group 50 is in order to show a moving direction information, the object in this scenery to be moved, so that this degree of deviation is lower than this comparison value according to this moving direction information.
For example, described indicator light group 50 comprises five LED lamps 5002 as shown in Figure 4, respectively five moving direction information such as expression " preceding ", " back ", " left side ", " right side ", " just in time ".In figure, according to the degree of deviation, during in order to LED lamp 5002 flicker of the moving direction information of expression " preceding " and " left side ", object before camera 30 camera lenses just can be followed forward and left moves according to indication, when LED lamp 5002 flickers of the moving direction information of " just in time ", just can take, to capture described second image.At this moment, in the captured image frame, object images 4402 will be positioned at appropriate position.
See also Fig. 5, Fig. 5 is the second embodiment schematic diagram of correcting module 38 runnings of the present invention.Camera 30 as the aforementioned, and wherein correcting module 38 is to comprise a photo distance control module 60, and meaning is the dolly camera 3402 of present camera 30 and can controls flexible module automatically.The degree of deviation that is compared according to comparison module 36, control the photo distance of 3402 pairs of these objects of dolly camera of image capturing devices 34 by photo distance control module 60, promptly the look in the distance adjustment (ZOOM IN and ZOOM OUT) of camera function, after adjustment makes this degree of deviation be lower than this comparison value, utilize image capturing device 34 to capture the image frame of scenery to become second image again by dolly camera 3402.
See also Fig. 6, Fig. 6 is the 3rd an embodiment schematic diagram of correcting module 38 runnings of the present invention.Camera 30 as the aforementioned, and wherein correcting module 38 is to comprise a montage module 70.Montage module 70 is at object images 4402, and clip one subimage 72 in first image 44 makes that the degree of deviation of object images 4402 and object outline image 42 is lower than this comparison value in the subimage 72.This subimage 72 promptly can be used as described second image.
In addition, the method of comparison other image 4402 and object outline image 42 at how, numerous embodiments can be arranged, the object of earlier figures 3 and object outline image 42 are to be all human body contour outline, the degree of deviation of described comparison module 36 comparison other images 4402 and object outline image 42 is degrees of deviation of institute's overlapping area between the human body contour outline of the human body contour outline of comparison other image 4402 and object outline image 42.
In addition, see also Fig. 7, Fig. 7 is another embodiment schematic diagram of comparison other image 4402 of the present invention and object outline image 42.Camera 30 as the aforementioned, and wherein object in this scenery and object outline image 42 also can adopt corresponding luminous point 80a, 80b, all can as two, three luminous point 80a, 80b.The degree of deviation of described comparison module 36 comparison other images 4402 and object outline image 42 is the degrees of deviation between the luminous point 80b distance of the luminous point 80a distance of comparison other image 4402 and object outline image 42.
In addition, described object outline file 3208 is to store up a plurality ofly in storage device 32 in advance, and chooses and compiles for follow-up.See also Fig. 8, Fig. 8 is the schematic diagram that profile of the present invention is selected and compiled.Camera 30 as the aforementioned, and camera 30 more comprises a profile and selects module 90.Wherein be to edit a plurality of object outline files 3208 in advance in storage device 32.Profile selects module 90 can comprise interface with user's interaction, for example display 40 and as the input unit 92 of keyboard 9202.The user selects module 90 with the object profile 3208 in selected these a plurality of object outline files 3208 by profile, compares for follow-up comparison module 36.
Camera 30 also comprises a profile and compiles module 94, and it is in order to compile the object outline file 3208 in the storage device 32, to adjust pairing object outline image 42, to compare for follow-up comparison module 36 that profile is compiled module 94.Profile is compiled module 94 and is comprised input unit 92 in order to input instruction, and as the touch drawing board 9204 among Fig. 1, or with the directionkeys of keyboard 9202, or other predeterminedly the instruction that function key is imported correction such as amplifies, dwindles.The application program that profile is compiled module 94 cooperates the instruction of being imported by input unit 92, can correspondence compile object outline image 42 in the display frame of display 40, to become a new object outline file 3208.
Further specify, see also Fig. 9, Fig. 9 is the flow chart of method for imaging of the present invention.The present invention also is the method for imaging that aforementioned camera 30 is implemented.Also be to take a scenery in order to a camera 30, this scenery has a background and an object.This method comprises the following step:
Step S02: set an object contour images 42, and be stored in the storage device 32 with corresponding object outline file 3208.Institute's objects stored profile 3208 is except taking the acquisition with image capturing device 34, also can be otherwise to make in advance and be stored in the storage device 32, objects stored contour images 42 in advance when for example utilizing control formula drawing board 9204 to draw or dispatch from the factory.
Step S04: to this scene shot one first image 44.First image 44 has a background image and an object image 4402.
Step S06: comparison other contour images 42 and this object images 4402, obtain a degree of deviation.
Step S08: according to this degree of deviation, revise the relative position of this object images 4402 in shown image frame, capture one second image.Wherein, in this second image, this object images 4402 is to be lower than a comparison value with the degree of deviation of this object outline image 42.
Further specify, this to as if move according to moving direction information indication so that this degree of deviation is lower than this comparison value, or according to the photo distance control of camera 30 so that this degree of deviation is lower than this comparison value.
Therefore, by camera 30 and the method for imaging of utilization of the present invention with adjustment object images 4402 size in display frame, the degree of deviation of utilizing comparison module 36 and correcting module 38 to compare and revise object images 4402 and object outline image 42.So, no matter photographer's technology quality, but all automations, make 4402 appropriate positions in display frame of object images of captured thing or people easily, with prevent object images 4402 too greatly, the too little or problem of skew.
By the above detailed description of preferred embodiments, be to wish to know more to describe feature of the present invention and spirit, and be not to come category of the present invention is limited with above-mentioned disclosed preferred embodiment.On the contrary, its objective is that hope can contain in the category of claim of being arranged in of various changes and tool equality institute of the present invention desire application.