CN104506767A - Method for generating different focal lengths of same scene by using continuous movement of motor and terminal - Google Patents

Method for generating different focal lengths of same scene by using continuous movement of motor and terminal Download PDF

Info

Publication number
CN104506767A
CN104506767A CN201410710118.3A CN201410710118A CN104506767A CN 104506767 A CN104506767 A CN 104506767A CN 201410710118 A CN201410710118 A CN 201410710118A CN 104506767 A CN104506767 A CN 104506767A
Authority
CN
China
Prior art keywords
photo
focusing
motor
list
parameter list
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410710118.3A
Other languages
Chinese (zh)
Other versions
CN104506767B (en
Inventor
李文渊
陈达畅
熊吉普
刘恒殊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201410710118.3A priority Critical patent/CN104506767B/en
Publication of CN104506767A publication Critical patent/CN104506767A/en
Application granted granted Critical
Publication of CN104506767B publication Critical patent/CN104506767B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Automatic Focus Adjustment (AREA)

Abstract

The invention discloses a method for generating different focal lengths of the same scene by using continuous movement of a motor and a terminal. The method comprises the following steps: continuously moving a focusing motor according to data of a preset focusing parameter table or currently-obtained data in the focusing process of shooting, acquiring corresponding different photos of the same shooting object at different motor moving positions specified by the focusing parameter table or the currently-obtained data till the completion of focusing and shooting, and saving the photos; finding clearest images of every same specified areas from all the photos, and numbering and recording corresponding areas of the clearest images in the photos in order to generate a list recording corresponding number of the clear area of each photo; and integrating the photos and the list. Through adoption of the method and the terminal, shooting and focusing can be performed in sequence, and data support is provided for later continued applications of full-focus shooting and the like.

Description

Motor continuous moving is utilized to generate method and the terminal of same scenery different focal
Technical field
The present invention relates to photography, particularly relate to a kind of utilize motor continuous moving to generate same scenery different focal method and terminal.
Background technology
In photography, the kind of camera emerges in an endless stream, with the different demands of satisfied different cameraman.Different cameras, focusing mode is not identical yet.For traditional camera, its focusing mode first carries out focus algorithm judgement, finds most suitable focal length, then carry out actions such as taking pictures.
But the focus process of aforesaid way may make photographer miss the best finds a view opportunity, and which can only be taken pictures on a focal length, and " interested object " for multiple different focal is just helpless.
Summary of the invention
The technical problem that the present invention mainly solves be to provide a kind of utilize motor continuous moving to generate same scenery zones of different method and terminal, all " interested objects " being positioned at multiple different focal in the photo of Same Scene different focal and this scene can be obtained.
For solving the problems of the technologies described above, the technical scheme that the present invention adopts is: provide a kind of method utilizing motor continuous moving to generate same scenery different focal, comprise: in the focus process of shooting, according to data or the current data continuous moving focusing motor obtained of preset focusing parameter list, and in the different motor shift positions of focusing parameter list or the current data defined obtained, corresponding different photo is obtained to same reference object, focus until complete and take, preserve photo, focusing parameter list or the current packet obtained contain the motor mobile position data of corresponding different focal, find each same designated area image the most clearly in all photos, by the number record in the corresponding region in photo of image the most clearly, to generate the list recorded and number corresponding to each apparent region, integrate photo and list.
Wherein, in the focus process of shooting, according to data or the current data continuous moving focusing motor obtained of preset focusing parameter list, and in the different motor shift positions of focusing parameter list or the current data defined obtained, corresponding different photo is obtained to same reference object, focus until complete and take, preserve photo, the step that focusing parameter list or the current packet obtained contain the motor mobile position data of corresponding different focal comprises: the mobile step count information of focusing motor in focusing parameter list or the current data obtained is sent to focusing motor controller, focusing motor controller controls focusing motor continuous moving, focusing motor gives up the image that camera lens obtains when the focusing position that non-focusing parameter list or the current data obtained specify, the different motor shift positions arriving focusing parameter list or the current data regulation obtained obtain corresponding different original photo to same reference object, what original photo was converted to the first photo form turns form photo, and the luminance parameter produced when turning form is as photo parameter, by the first photo form turn that form photo is converted to the second photo form turn form photo, that preserves the second photo form turns form photo and luminance parameter.
Wherein, find each same designated area image the most clearly in all photos, by the number record in the corresponding region in photo of image the most clearly, comprise to generate the step recording the list of numbering corresponding to each apparent region: each photo is divided into multiple region with partitioning scheme of the same race, and sequentially numbers for multiple region; Each same designated area of all photos is analyzed according to luminance parameter, and for each same designated area, in all photos, to filter out in same designated area the region of most picture rich in detail, record the numbering in the region of most picture rich in detail to generate the list recorded and number corresponding to each apparent region.
Wherein, the data of focusing parameter list are that focusing motor moves step number, and the quantity of photo equals to focus the quantity of data of parameter list, and the movement of focusing motor is by the continuous shooting Systematical control of terminal.
Wherein, deposit into file system after photo and clear list packing, carry out follow-up work by appointment application.
For solving the problems of the technologies described above, another technical solution used in the present invention is: provide a kind of terminal utilizing motor continuous moving to generate same scenery different focal, this terminal comprises taking module, image processing module and preservation module, taking module is in the focus process of shooting, according to preset focusing parameter list data or the current data continuous moving focusing motor obtained, focusing parameter list or the current packet obtained contain the motor mobile position data of corresponding different focal, the different motor shift positions moving to focusing parameter list or the current data regulation obtained in focusing motor obtain corresponding different photo to same reference object, complete and focus and take pictures, photo is transferred to preserve module to preserve, image processing module finds each same designated area image the most clearly from all photos, records the numbering of most picture rich in detail corresponding region in photo, generates the list recording each apparent region reference numeral, preserve module and preserve photo and list.
Wherein, taking module comprises focusing motor control unit, continuously shooting control unit and photo form converting unit, focusing motor control unit receives the order of the mobile step count information comprising focusing motor in focusing parameter list or the current data obtained, control focusing motor continuous moving, focusing motor gives up the image that camera lens obtains when the focusing position that non-focusing parameter list or the current data obtained specify, the different motor shift positions arriving focusing parameter list or the current data regulation obtained obtain corresponding different original photo to same reference object; Photo form converting unit the format conversion of original photo be the first photo form turn form photo, the luminance parameter produced when turning form as photo parameter, continue by the first photo form turn form photo format transformation be the second photo form turn form photo; That preserves that module preserves the second photo form turns form photo and luminance parameter.
Wherein, image processing module comprises cutting unit and contrast unit.Cutting unit is divided into multiple region each photo with partitioning scheme of the same race, and sequentially numbers for multiple region; Contrast unit is according to the luminance parameter preserving module preservation, analyze each same designated area of all photos, and for each same designated area, in all photos, to filter out in same designated area the region of most picture rich in detail, record the numbering in the region of most picture rich in detail to generate the list recorded and number corresponding to each apparent region.
Wherein, the data of focusing parameter list are the mobile step number of focusing motor, and data bulk preset in the focusing such as the quantity of taking pictures parameter list, the movement of focusing motor is controlled by the control module of taking pictures continuously of terminal.
Wherein, photo, photo parameter and the most clear list packing are kept at the file system of terminal, carry out follow-up work by appointment application.
The invention has the beneficial effects as follows: the situation being different from prior art, the present invention takes pictures respectively in focus process in different focal situation, obtains the different photos under different focal, can prevent photographer from missing the best and find a view opportunity; Utilize focusing motor continuous moving, at different focal place, obtain corresponding photo to same reference object, not simple continuous shooting, can capture the interested things of some cameramans in same coverage in shooting process; After obtaining photo, to analyze in the identical appointed area of all photos part the most clearly, the instrument analyzed here is through the algorithm of programming and obtaining, and analytic process is rigorous, but not goes inference analysis with subjectivity; Most picture rich in detail reference numeral is generated list, and leads to packing with photo one and leave assigned address in, conveniently reuse and and subsequent treatment.
Accompanying drawing explanation
Fig. 1 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of method first execution mode of same scenery different focal;
Fig. 2 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of method second execution mode of same scenery different focal;
Fig. 3 is that the present invention utilizes motor continuous moving to generate the schematic diagram that in method second execution mode of same scenery different focal, photo is split in the same manner;
Fig. 4 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of method the 3rd execution mode of same scenery different focal;
Fig. 5 is that the present invention utilizes motor continuous moving to generate the structural representation of terminal first execution mode of same scenery different focal.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in detail.
Consult Fig. 1, Fig. 1 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of method first execution mode of same scenery different focal.The step of the method comprises:
S101: in the focus process of shooting, according to data or the current data continuous moving focusing motor obtained of preset focusing parameter list, and in the different motor shift positions of focusing parameter list or the current data defined obtained, corresponding different photo is obtained to same reference object until complete and focus and take, preserve photo, focusing parameter list and the current packet obtained contain the different motor mobile position datas of corresponding different focal.
The focus process of shooting alleged here, refer to a focus process of capture apparatus such as camera terminal, in this time focus process, instruction that first capture apparatus accepts " focusing ", such as common " focusing " instruction of partly pressing " focusing " button and triggering, then capture apparatus controls the focusing motor running of camera lens or fuselage according to " focusing " instruction, and the focal length that eyeglass in camera lens is formed changes, until capture apparatus obtains enough this processes of imaging clearly.In prior art this time in focus process, although the photo-sensitive cell of capture apparatus is obtaining photo always, but before not focusing successfully, these photos got all are given up, until focus successfully, just the photo reservation of the successful that time of focus, that is only have the photo under successfully obtained focal length of focusing just can be considered to universal significance " is taken pictures ", and the photo that before focusing successfully, photo-sensitive cell obtains all is given up, the photo that these are given up for user is invisible.
In embodiment of the present invention, the data of the preset focusing parameter list of camera terminal, manually will debug according to the performance of terminal focusing motor time preset.The step number of motor movement is set at random by user during debugging, by display screen observation effect, when obtaining satisfied effect, preserves the motor this time arranged and move step number.Repeatedly debug, preserve multiple motor and move step number and generate focusing parameter list.In the focus process of terminal taking, the focusing parameter list preset can be called.Also or camera terminal in daily shooting process, use at most when user takes pictures by terminal or obtain image the most clearly focal position data be kept in the system of terminal, for the present invention, this i.e. aforesaid " the current data obtained ".But when considering that user takes pictures, usually the focal length of each object in scene can not be obtained one by one, and parameter list of focusing is through specialty and measures and obtain, therefore suggestion uses focusing parameter list, will obtain the mobile location information of focusing motor in the present embodiment from focusing parameter list.
Focusing motor, according to the data mobile in focusing parameter list, when arriving the focal position of focusing parameter list setting, takes corresponding photo, and the photo namely under photo-sensitive cell reservation this focal position corresponding, does not give up.Until the different motor shift positions of all corresponding different focal of focusing motor traversal after take, comprising focus retains the photo of focus lock successfully, stop taking and moving, by all photos preservations photographed.
In a concrete application, user carries the motor sensor performance of camera according to photographer, such as the step number of focusing parameter list focusing motor movement is set to be 170,190,208,228,260,312,392,508,582 these 9 numerical value.Quantity of taking pictures will to move the quantity of step number identical with focusing motor in focusing parameter list.Current is shooting 9 photos, corresponds respectively to different preset motors and moves step number.After having taken, 9 photos obtained are preserved.
S102: find each same designated area image the most clearly in all photos, by the number record in the corresponding region in photo of image the most clearly, to generate the list recorded and number corresponding to each apparent region.
All photos of shooting gained are contrasted, often will open photo during contrast and specify multiple region all in an identical manner, give different numbering to all photo appointed areas.Be numbered 1 as given in S101 the photo preserved, 2 ... 9, often open photo appointed area be numbered A, B ... H, I ...Comprehensive two kinds of numberings, there is the numbering of " numeral-letter " form each appointed area of all photos, and each numbering is not identical.For guaranteeing to obtain image clearly, often opening region that photo specifies can not very little, and the things of the shooting of multiple focal lengths of the parameter list regulation that had better not make to focus in S101 falls in a region, and impact judges.Just compare between all photos of the same area, obtain image and corresponding region numbering thereof the most clearly, generate this numbering of list records.The number of pictures of such as preserving is 9, and during contrast same designated area, the region quantity of contrast can be arbitrary value, in the present embodiment, appointed area is divided into 9.Finally obtain 9 different images the most clearly and 9 numberings, be recorded in clear list.
S103: integrate photo and list.
After comparative analysis completes in S102, the list packing of photo after treatment and generation is preserved, facilitates subsequent treatment.In concrete operations, the analytic process in S102 may need just can carry out subsequent operation by after the format conversion of the photo preserved in S101, does not need to be changed by photo form during preservation again, only need preserve by the form of the converted photo of S102.
Be different from prior art, the present invention takes pictures respectively in focus process in different focal situation, obtains the different photos under different focal, can prevent photographer from missing the best and find a view opportunity; Utilize focusing motor continuous moving, at different focal place, obtain corresponding photo to same reference object, not simple continuous shooting, can capture the interested things of some cameramans in same coverage in shooting process; After obtaining photo, to analyze in the identical appointed area of all photos part the most clearly, the instrument analyzed here is through the algorithm of programming and obtaining, and analytic process is rigorous, but not goes inference analysis with subjectivity; Most picture rich in detail reference numeral is generated list, and leads to packing with photo one and leave assigned address in, conveniently reuse and and subsequent treatment.
Consult Fig. 2 and Fig. 3, Fig. 2 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of the second execution mode of the method for same scenery different focal, and Fig. 3 is that the present invention utilizes motor continuous moving to generate the schematic diagram that in method second execution mode of same scenery different focal, photo is split in the same manner.The concrete steps of this photographic method comprise:
S201: in the focus process of shooting, sends to focusing motor controller, to control focusing motor continuous moving at focusing motor controller the mobile step count information of focusing motor in focusing parameter list or the current data obtained.
In the process of shooting focusing, camera terminal obtains the information that focusing motor moves step number from the data that preset focusing parameter list or take before obtains, and during preset focusing parameter list, operation is identical with the operation in first embodiment of the invention.Focusing motor is moved step count information and send to focusing motor controller, usually send in the mode of SendCommand order.Focusing motor controller receives this SendCommand order, moves step count information, control focusing motor continuous moving by Icotl mode according to focusing motor in order.Ioctl is the hardware controlling method of a kind of standard of linux, can control focusing motor accurately and move.
S202: focusing motor gives up the image that camera lens obtains when the focusing position that non-focusing parameter list or the current data obtained specify.
Focusing motor controller, in focusing motor moving process, can send message to continuous shooting controller, and the photo taken when not arriving the focusing position that focusing parameter list or the current data obtained specify in focusing motor given up by continuous shooting controller.Because do not arrive focusing parameter list or the current data obtained specify focusing position time, the photo obtained is that the present invention institute is unwanted, and when certain frequency shooting pressed by continuous shooting controller, the quantity of this kind of photo can be very huge, committed memory, main is affect subsequent terminal to distinguish the photo that the focal length of focusing parameter list setting is corresponding.Focusing motor enters S203 after arriving the focal position of specifying.
S203: the different motor shift positions arriving focusing parameter list or the current data regulation obtained obtain corresponding different original photo to same reference object.
Focusing motor arrives the motor shift position of each regulation, and the camera lens of continuous shooting controller obtains the photo of relevant position, and photo-sensitive cell retains the photo under this focal position corresponding, does not give up.Then focusing motor moves to next preset focal position, if the preset focal position of focusing motor is not still covered, returns step S201, otherwise enters S204.
S204: what original photo was converted to the first photo form turns form photo, and the luminance parameter produced when turning form is as photo parameter.
What original photo converted the first photo form to turns form photo, and the first photo form can be yv12 form, and the photo of yv12 form is compared with original photo, and luminance signal remains unchanged, and carrier chrominance signal reduces by half.The data of luminance parameter can be extracted preservation by the photo simultaneously converting the first photo form to, and luminance parameter refers to the luminance signal data of image, is often designated as Y data, and these data are photo parameters is follow-up important evidence of carrying out when image comparison is analyzed.
S205: by the first photo form turn that form photo is converted to the second photo form turn form photo, that preserves the second photo form turns form photo and luminance parameter.
Second photo form can be Jpeg form, the photo of Jepg form has superiority in image procossing, and the range of application supervening the first form photo of luminance parameter during conversion is little, and need specific picture instrument just can open, be unfavorable for preservation and the preview of photo.
S206: each photo is divided into multiple region with partitioning scheme of the same race, and sequentially numbers for regional.
By the identical partitioning algorithm segmentation of all photos, be only by the picture segmentation of photo herein, the not image segmentation algorithm of digital image processing field.Partitioning scheme is made by oneself, but need ensure that the shape having split rear all photo the same areas is identical.Give all zone numbers after having split, the mode of numbering is identical with the numbering in execution mode in the present invention first.As shown in Figure 3, in the particular embodiment, S205 obtains 9 Jepg form photos after turning form, and these 9 Jepg form photos are partitioned into 12 zonules with identical partitioning scheme.Be numbered 1 to 9 Jepg form photos, 2 ... 9, give often open 12 zonules that photo is divided into by the serial number shown in Fig. 3 be A, B ... L.Therefore, each region of often opening photo has independently numbers, and if first photo, first zone number is 1-A, the 9th zone number of the 6th photo is 6-I.
S207: each same designated area analyzing all photos according to luminance parameter, and for each same designated area, in all photos, to filter out in same designated area the region of most picture rich in detail, record the numbering in the region of most picture rich in detail to generate the list recorded and number corresponding to each apparent region.
Analyzing will with reference to the luminance parameter of aforementioned preservation when contrasting.In the present invention, luminance parameter is Y data, is one of condition judging image definition.According to luminance parameter Y parameter, comparative analysis obtains appointed area image the most clearly, and number record corresponding for this region is kept in a newly-generated clear list.As in the L region, the 12nd region of 9 Jepg form photos, the L region through contrast discovery the 8th photo is the most clear, is just kept in the clear list of generation by the numbering 8-L in the L region of the 8th photo.12 numberings can be preserved in the final clear list of present embodiment.
S208: integrate photo and clear list.
What preserve is final turn in form photo and S207 through Jepg form after format conversion the clear list generated herein, the two file be saved as certain special format is positioned in the file system of terminal, is applied accordingly carry out follow-up work by camera terminal.
Said method, terminal inner mutual, by the transmission of instruction, finally obtaining the photo of different focal and record the list of most clear area numbering, is subsequent operation, as the application such as to take pictures of rear focusing and full focal length provides Data support.
Consult Fig. 4, Fig. 4 is that the present invention utilizes motor continuous moving to generate the schematic flow sheet of method the 3rd execution mode of same scenery different focal.The concrete operation step of the method comprises:
S301: preset focusing parameter list, the motor shift position of the corresponding different focal of table data, focusing motor controller is according to above-mentioned data continuous moving focusing motor.
In the present embodiment, the position of focusing motor movement obtains from preset focusing parameter list.The operation of preset focusing parameter list is identical with the operation in first embodiment of the inventive method, and focusing motor controller obtains the motor mobile position data continuous moving focusing motor of corresponding different focal according to focusing parameter list.
S302: continuous shooting controller judges focusing motor, and whether first time is mobile.
After focusing motor starts movement, the continuous shooting controller of capture apparatus judges whether focusing motor is that first time is mobile.If judged result focusing motor is that first time is mobile, then enter S303; If judged result focusing motor is not that first time is mobile, then whether the quantity that can continue to judge to take pictures is less than the quantity of focusing parameter list data.Whether the quantity that continues to judge to have taken pictures is less than the quantity of focusing parameter list data, when judged result is for being, enter step S303, when result is no, represent and taken same reference object at the corresponding different photo in the motor shift position of all regulations, now enter step S305.
S303: judge whether focusing motor moves to the focal position that specifies of focusing parameter list.
Focusing motor is in moving process, and continuous shooting controller can judge the focal position whether focusing motor moves to focusing parameter list data and specify.If judged result is no, the photo under continuous shooting controller can make photo-sensitive cell give up this focal position corresponding; If judged result is yes, enter step S304.
S304: the original photo retaining the preset focal position of focusing parameter list, and judge whether the number of pictures retained is greater than the quantity of focusing parameter list data.
In S303, judge that focusing motor has moved to arbitrary focal position of focusing parameter list regulation, photo-sensitive cell retains the photo under this focal position corresponding.Then continuous shooting controller continues to judge whether the number of pictures retained is greater than the quantity of focusing parameter list data.If judged result is no, expression focusing motor does not travel through the focal position that all focusing parameter lists specify, now returns step S301.If the determination result is YES, represent and taken same reference object in the corresponding different original photo in the motor shift position of all regulations, now enter step S305.
S305: original photo format transformation is the first photo form photo, generates luminance parameter when turning form.
S306: be the second photo form photo by the first photo form photo format transformation.
S307: each photo is divided into multiple region with partitioning scheme of the same race, and sequentially numbers for regional.
S308: each same designated area analyzing all photos according to the luminance parameter of photo parameter, and for each same designated area, in all photos, to filter out in same designated area the region of most picture rich in detail, record the numbering in the region of most picture rich in detail to generate the list recorded and number corresponding to each apparent region.
In the present embodiment, S204, S206 and S207 step that operation and the present invention of S305, S307 and S308 step utilize motor continuous moving to generate in the second execution mode of the method for same scenery different focal is similar even identical, the operation that operation and the photo form in the S205 in the second execution mode of photo form conversion in S306 step are changed is similar even identical, repeats no more here.
S309: preserve luminance parameter, the second photo form photo and clear list.
The clear list that the second photo form photo generate the luminance parameter generated by S305, S306 and S309 generate is saved in the file system of capture apparatus, is applied accordingly carry out follow-up work by equipment.
Be different from prior art, photographic method of the present invention adopts rigorous judgment mechanism, scientifically obtain the photo that same scenery different focal is corresponding, and be kept in the file system of capture apparatus, provide Data support for the later stage proceeds the application such as to take pictures of full focal length.
Consult Fig. 5, Fig. 5 is that the present invention utilizes motor continuous moving to generate the structural representation of terminal first embodiment of same scenery different focal.This photo terminal 4 comprises: taking module 41, image processing module 42 and preservation module 43.
Taking module 41 comprises focusing motor control unit 411, continuously shooting control unit 412 and photo form converting unit 413.In the focus process of shooting, photo terminal 4 obtains the information that focusing motor moves step number from the data that the preset focusing parameter list of camera terminal or take before obtains, and this information is sent to the focusing motor control unit 411 of taking module 41 in the mode of SendCommand order, focusing motor control unit 411 receives SendCommand order, move step count information according to focusing motor wherein, control focusing motor (not shown) in Icotl mode and move.When focusing motor does not arrive the focusing position that focusing parameter list or the current data obtained specifys, the message of the image that camera lens obtains is given up in the transmission of focusing motor control unit 411, after the focusing position that focusing motor arrival focusing parameter list or the current data obtained specify, shooting control unit 412 obtains corresponding photo continuously, namely the photo under photo-sensitive cell reservation this focal position corresponding, does not give up.If control module 412 is taken pictures in motor moving process because take pictures continuously always, a large amount of photos can be obtained, these photos are that the present invention institute is unwanted, and the existence of these photos can take a large amount of internal memory, and the terminal recognition photo wanted required for the present invention can be hindered, therefore this type of photo is rejected.After obtaining the photo of the Data Position that all focusing parameter lists or the current data obtained specify, what original photo format conversion was become the first photo form by photo form converting unit 413 turns form photo, can produce luminance parameter with format conversion, then photo form converting unit 413 can continue the first photo form to turn the photo that form photo form is converted to the second photo form.Preserve module 43 photo of the second photo form and aforesaid luminance parameter to be preserved.Wherein, the photo of the first photo form can the photo of yv12 form, because when original image converts the photo of yv12 form to, can supervene luminance parameter.Luminance parameter and Y data are the essential condition judging image definition.And the photo application scope of yv12 form is little, need specific application tool just can open, after all generation Y data, the photo of yv12 form is converted to the photo of the second photo form.The photo of the second photo form can be the photo of Jepg form, and the photo of Jepg form has superiority in image procossing, and is beneficial to preservation and the preview of photo.
Image processing module 42 comprises cutting unit 421 and contrast unit 422.Cutting unit 421 same partitioning algorithm is divided into some regions each photo picture.The shape in each region is made by oneself, but preferably regular figure, as square, circular etc.For convenience of subsequent contrast, the region quantity after segmentation should be more than or equal to the focal length quantity set in focusing parameter list, and making has a things being positioned at the focal position of focusing parameter list setting to fall into wherein at the most in each region.As in parameter list of focusing, preset parameter has 9, representative will obtain the photo of 9 Same Scene different focal.The partitioning scheme of the present embodiment can be divided into N*M individual square by often opening photo, and wherein N and M all gets any nonzero value.Splitting rear each zone number to often opening photo, being allly numbered independent numbering, be convenient to distinguish.After having split, contrast unit 422 is according to the Y data of aforementioned middle preservation, and region identical in the photo that all segmentations of comparative analysis are good, filters out one the most clearly, and record the numbering in this region.After complete all photos to be screened, the numbering in all regions filtered out is gathered generation clear list.Clear list meeting and aforesaid packing with the Jepg form photo of preservation are preserved, and leave the file system that terminal 4 is specified in, and by specifying application to carry out follow-up work, the application of specifying can be that ipa applies, apk applies or exe applies.
Contrast prior art, the photo of different focal in photo terminal of the present invention user can be made to view Same Scene that shooting obtains, user can these photos of comparison voluntarily, choose oneself desirable several; Photo terminal has been made comparative analysis and has been drawn and above-mentionedly often to open in photo region the most clearly, can provide the support of data acquisition for the application such as to take pictures of rear focusing, full focal length.
The foregoing is only embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. utilize motor continuous moving to generate a method for same scenery different focal, it is characterized in that, the step of described method comprises:
In the focus process of shooting, according to data or the current data continuous moving focusing motor obtained of preset focusing parameter list, and in the different motor shift positions of described focusing parameter list or the described current data defined obtained, corresponding different photo is obtained to same reference object until complete and focus and take, preserve described photo, described focusing parameter list and the described current packet obtained contain the motor mobile position data of corresponding different focal;
Find each same designated area image the most clearly in all described photos, by the number record in described image the most clearly corresponding region in described photo, to generate the list recorded and number corresponding to each Zhang Suoshu apparent region;
Integrate described photo and described list.
2. method according to claim 1, it is characterized in that, described in the focus process of shooting, according to data or the current data continuous moving focusing motor obtained of preset focusing parameter list, and in the different motor shift positions of described focusing parameter list or the described current data defined obtained, corresponding different photo is obtained to same reference object, focus until complete and take, preserve described photo, the step that described focusing parameter list and the described current packet obtained contain the motor mobile position data of corresponding different focal comprises: the mobile step count information of focusing motor in described focusing parameter list or the current data obtained is sent to focusing motor controller, described focusing motor controller controls described focusing motor continuous moving, described focusing motor gives up the image that camera lens obtains when the focusing position that non-focusing parameter list or the current data obtained specify, the different motor shift positions arriving described focusing parameter list or the current data regulation obtained obtain corresponding different original photo to same reference object, what original photo was converted to the first photo form turns form photo, and the lightness parameter produced when turning form is as photo parameter, by described first photo form turn that form photo is converted to the second photo form turn form photo, that preserves described second photo form turns form photo and described luminance parameter.
3. method according to claim 2, it is characterized in that, describedly find each same designated area image the most clearly in all described photos, by the number record in described image the most clearly corresponding region in described photo, comprise to generate the step recording the list of numbering corresponding to each Zhang Suoshu apparent region: photo described in each is divided into multiple region with partitioning scheme of the same race, and sequentially numbers for described regional; Each same designated area of all described photos is analyzed according to described luminance parameter, and for each described same designated area, in all described photos, to filter out in same designated area the region of most picture rich in detail, described in record, the numbering in the region of most picture rich in detail is to generate the list recorded and number corresponding to each Zhang Suoshu apparent region.
4. method according to claim 1, it is characterized in that, the data of described focusing parameter list are that focusing motor moves step number, and the quantity of described photo equals the quantity of the data of described focusing parameter list, and the movement of described focusing motor is by the continuous shooting Systematical control of terminal.
5. method according to claim 1, is characterized in that, deposits into file system, carry out follow-up work by appointment application after described photo and described clear list packing.
6. utilize motor continuous moving to generate a terminal for same scenery different focal, it is characterized in that, described terminal comprises: taking module, image processing module and preservation module,
Wherein, described taking module is in the focus process of shooting, according to preset focusing parameter list data or the current data continuous moving focusing motor obtained, described focusing parameter list or the described current packet obtained contain the motor mobile position data of corresponding different focal, the different motor shift positions moving to described focusing parameter list or the described current data regulation obtained in described focusing motor obtain corresponding different photo to same reference object, complete and focus and take pictures, transferred to by described photo described preservation module to preserve; Described image processing module finds each same designated area image the most clearly from all described photos, and the numbering of most picture rich in detail corresponding region in described photo described in record, generates the list recording each Zhang Suoshu apparent region reference numeral; Described preservation module preserves described photo and described list.
7. terminal according to claim 6, is characterized in that, described taking module comprises focusing motor control unit, continuously shooting control unit and photo form converting unit,
Wherein, described focusing motor control unit receives the order of the mobile step count information comprising focusing motor in focusing parameter list or the current data obtained, control described focusing motor continuous moving, described focusing motor gives up the image that camera lens obtains when the focusing position that non-focusing parameter list or the current data obtained specify, the different motor shift positions arriving described focusing parameter list or the current data regulation obtained obtain corresponding different original photo to same reference object; Described photo form converting unit the format conversion of described original photo be the first photo form turn form photo, the luminance parameter produced when turning form as photo parameter, continue by described first photo form turn form photo format transformation be the second photo form turn form photo; What described preservation module preserved described second photo form turns form photo and luminance parameter.
8. terminal according to claim 7, is characterized in that, described image processing module comprises cutting unit and contrast unit,
Wherein, described cutting unit is divided into multiple region photo described in each with partitioning scheme of the same race, and sequentially numbers for regional; The described luminance parameter that described contrast unit is preserved according to described preservation module, analyze each same designated area of all described photos, and for described each same designated area, in all described photos, to filter out in same designated area the region of most picture rich in detail, described in record, the numbering in the region of most picture rich in detail is to generate the list recorded and number corresponding to each Zhang Suoshu apparent region.
9. terminal according to claim 6, it is characterized in that, the data of described focusing parameter list are the mobile step number of focusing motor, described quantity of taking pictures equals data bulk preset in described focusing parameter list, and the movement of described focusing motor is controlled by the described control module of taking pictures continuously of terminal.
10. terminal according to claim 6, is characterized in that, described photo, photo parameter and the most clear list packing are kept at the file system of described terminal, carry out follow-up work by appointment application.
CN201410710118.3A 2014-11-27 2014-11-27 The method and terminal of same scenery different focal length are generated using motor continuous moving Active CN104506767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410710118.3A CN104506767B (en) 2014-11-27 2014-11-27 The method and terminal of same scenery different focal length are generated using motor continuous moving

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410710118.3A CN104506767B (en) 2014-11-27 2014-11-27 The method and terminal of same scenery different focal length are generated using motor continuous moving

Publications (2)

Publication Number Publication Date
CN104506767A true CN104506767A (en) 2015-04-08
CN104506767B CN104506767B (en) 2019-08-02

Family

ID=52948481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410710118.3A Active CN104506767B (en) 2014-11-27 2014-11-27 The method and terminal of same scenery different focal length are generated using motor continuous moving

Country Status (1)

Country Link
CN (1) CN104506767B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812656A (en) * 2016-02-29 2016-07-27 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN106713748A (en) * 2016-12-08 2017-05-24 北京小米移动软件有限公司 Method and apparatus for sending pictures
CN107197155A (en) * 2017-06-26 2017-09-22 Tcl移动通信科技(宁波)有限公司 It is a kind of take pictures after method, system, mobile terminal and the storage device focused
CN109274897A (en) * 2018-09-28 2019-01-25 努比亚技术有限公司 Photographic method, mobile terminal and computer readable storage medium
CN109714530A (en) * 2018-12-25 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aerial camera image focus adjustment method
CN109842760A (en) * 2019-01-23 2019-06-04 罗超 A kind of filming image and back method of simulation human eye view object
CN110855974A (en) * 2019-11-15 2020-02-28 湖南师范大学 Three-dimensional reconstruction imaging system and method based on fixed-focal-length lens
CN112261292A (en) * 2020-10-20 2021-01-22 Oppo广东移动通信有限公司 Image acquisition method, terminal, chip and storage medium
CN113938596A (en) * 2020-06-29 2022-01-14 北京字节跳动网络技术有限公司 Method and device for shooting image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402191A (en) * 2002-09-19 2003-03-12 上海交通大学 Multiple focussing image fusion method based on block dividing
CN102542545A (en) * 2010-12-24 2012-07-04 方正国际软件(北京)有限公司 Multi-focal length photo fusion method and system and photographing device
CN102625038A (en) * 2012-02-10 2012-08-01 明基电通有限公司 Image capturing device and image processing method
WO2014045913A1 (en) * 2012-09-18 2014-03-27 富士フイルム株式会社 Still image display device, system, and imaging device
CN103702032A (en) * 2013-12-31 2014-04-02 华为技术有限公司 Image processing method, device and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1402191A (en) * 2002-09-19 2003-03-12 上海交通大学 Multiple focussing image fusion method based on block dividing
CN102542545A (en) * 2010-12-24 2012-07-04 方正国际软件(北京)有限公司 Multi-focal length photo fusion method and system and photographing device
CN102625038A (en) * 2012-02-10 2012-08-01 明基电通有限公司 Image capturing device and image processing method
WO2014045913A1 (en) * 2012-09-18 2014-03-27 富士フイルム株式会社 Still image display device, system, and imaging device
CN103702032A (en) * 2013-12-31 2014-04-02 华为技术有限公司 Image processing method, device and terminal equipment

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105812656A (en) * 2016-02-29 2016-07-27 广东欧珀移动通信有限公司 Control method, control apparatus and electronic apparatus
CN105812656B (en) * 2016-02-29 2019-05-31 Oppo广东移动通信有限公司 Control method, control device and electronic device
CN106713748A (en) * 2016-12-08 2017-05-24 北京小米移动软件有限公司 Method and apparatus for sending pictures
CN107197155A (en) * 2017-06-26 2017-09-22 Tcl移动通信科技(宁波)有限公司 It is a kind of take pictures after method, system, mobile terminal and the storage device focused
CN107197155B (en) * 2017-06-26 2020-01-14 Tcl移动通信科技(宁波)有限公司 Method and system for focusing after photographing, mobile terminal and storage device
CN109274897A (en) * 2018-09-28 2019-01-25 努比亚技术有限公司 Photographic method, mobile terminal and computer readable storage medium
CN109714530A (en) * 2018-12-25 2019-05-03 中国科学院长春光学精密机械与物理研究所 A kind of aerial camera image focus adjustment method
CN109842760A (en) * 2019-01-23 2019-06-04 罗超 A kind of filming image and back method of simulation human eye view object
CN110855974A (en) * 2019-11-15 2020-02-28 湖南师范大学 Three-dimensional reconstruction imaging system and method based on fixed-focal-length lens
CN113938596A (en) * 2020-06-29 2022-01-14 北京字节跳动网络技术有限公司 Method and device for shooting image
CN112261292A (en) * 2020-10-20 2021-01-22 Oppo广东移动通信有限公司 Image acquisition method, terminal, chip and storage medium

Also Published As

Publication number Publication date
CN104506767B (en) 2019-08-02

Similar Documents

Publication Publication Date Title
CN104506767A (en) Method for generating different focal lengths of same scene by using continuous movement of motor and terminal
US9344642B2 (en) Method and apparatus for capturing a first image using a first configuration of a camera and capturing a second image using a second configuration of a camera
US11570376B2 (en) All-in-focus implementation
US20160323505A1 (en) Photographing processing method, device and computer storage medium
CN109194866B (en) Image acquisition method, device, system, terminal equipment and storage medium
CN105578061A (en) Anti-shaking method and device for photographing, and mobile terminal
US10999556B2 (en) System and method of video capture and search optimization
JP2014222825A (en) Video processing apparatus and video processing method
KR20210104979A (en) apparatus and method for multi-channel image back-up based on event, and network surveillance camera system including the same
US20110069195A1 (en) Image processing apparatus
JP5673624B2 (en) Object search apparatus, method, and program
WO2016082590A1 (en) Picture processing method and apparatus, and storage medium
CN111192286A (en) Image synthesis method, electronic device and storage medium
JP2023553706A (en) Shooting mode determination method, device, electronic device, and storage medium
CN107436880A (en) Intelligence searches bat real-time display method
US20130051633A1 (en) Image processing apparatus
JP6071714B2 (en) Image processing apparatus and control method thereof
CN105095849A (en) Object identification method and device
US8442975B2 (en) Image management apparatus
CN107431756B (en) Method and apparatus for automatic image frame processing possibility detection
JP2014053706A (en) Electronic camera
WO2016026455A1 (en) Method and device for automatically optimizing star trail photography result
US20130093920A1 (en) Electronic camera
US20130028510A1 (en) Image processing apparatus
JP2009081502A (en) Photographing device and image reproducing device

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