CN108924405A - Take pictures focusing amendment and image processing method, equipment based on distance - Google Patents

Take pictures focusing amendment and image processing method, equipment based on distance Download PDF

Info

Publication number
CN108924405A
CN108924405A CN201810596881.6A CN201810596881A CN108924405A CN 108924405 A CN108924405 A CN 108924405A CN 201810596881 A CN201810596881 A CN 201810596881A CN 108924405 A CN108924405 A CN 108924405A
Authority
CN
China
Prior art keywords
image
distance
images
camera
subject
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
CN201810596881.6A
Other languages
Chinese (zh)
Other versions
CN108924405B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN201810596881.6A priority Critical patent/CN108924405B/en
Publication of CN108924405A publication Critical patent/CN108924405A/en
Application granted granted Critical
Publication of CN108924405B publication Critical patent/CN108924405B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/95Computational photography systems, e.g. light-field imaging systems
    • H04N23/951Computational photography systems, e.g. light-field imaging systems by using two or more images to influence resolution, frame rate or aspect ratio

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Studio Devices (AREA)

Abstract

The embodiment of the present invention provides a kind of take pictures focusing amendment and image processing method, equipment based on distance, and this method includes:Obtain at least two respective photographing informations of the first image, at least two the first images are the image that the terminal at least two cameras is shot in synchronization, and the focal length of each first image is that revised focal length is focused according to the distance between each section object and camera when pre- shooting, photographing information includes the distance between each section object in the first image and corresponding camera;According to the distance between each section object and corresponding camera, barrier and subject are determined in each first image;According to the distance between subject in the distance between the subject of the barrier edge in wherein first image and corresponding camera and other first images and corresponding camera, splicing is carried out at least two the first images, the second image is obtained, barrier is not present in the second image.The present embodiment can overcome barrier to take pictures and image mosaic caused by difficulty.

Description

Take pictures focusing amendment and image processing method, equipment based on distance
Technical field
The present invention relates at technical field of image processing more particularly to a kind of take pictures focusing amendment and image based on distance Reason method, equipment.
Background technique
With popularizing for the capture apparatus such as camera, more and more users can be recorded by the equipment with shooting function The dribs and drabs of life.
In the prior art, for the consideration of safety etc., the obstacles such as fence, wire netting can be set between things and photographer Object is isolated by the things with photographer.When user shoots subject, due to the blocking of barrier, use Family can not directly shoot subject, it is necessary to be shot across barrier, this allows for shooting in the image come There is only subjects, and there are also fence, wire nettings etc., cause user that can not obtain beautiful image.And due to barrier In the presence of general camera may focus in the figure on barrier, especially wire netting, causing the later period to be difficult acquisition clear Picture.
Summary of the invention
The embodiment of the present invention provides a kind of take pictures focusing amendment and image processing method, equipment based on distance, to overcome Barrier to take pictures and image mosaic caused by difficulty.
In a first aspect, the embodiment of the present invention provides a kind of take pictures focusing amendment and image processing method based on distance, packet It includes:
At least two respective photographing informations of the first image are obtained, at least two width the first images are at least two The image that the terminal of camera is shot in synchronization, and the focal length of each the first image is according to each section object when pre- shooting The distance between body and camera are focused revised focal length, and the photographing information includes each section object in the first image The distance between corresponding camera;
According to the distance between each section object and corresponding camera, obstacle is determined in each the first image Object and subject;
According between the subject and corresponding camera of the barrier edge in a wherein width the first image Distance and other the first images in the distance between subject and corresponding camera, described at least two width One image carries out splicing, obtains the second image, barrier is not present in second image.
It is described according to the distance between each section object and corresponding camera in a kind of possible design, Barrier and subject are determined in each the first image, including:
According to the distance between each section object and corresponding camera, determines and be generally aligned in the same plane and and camera The distance between be less than the target object of the distance between surrounding objects and camera;
According to the target object in the first image determine barrier, and by barrier in the first image it Between image as subject.
In alternatively possible design, the quilt of the basis wherein barrier edge in a width the first image Each section object and corresponding camera in the distance between subject and corresponding camera and other the first images The distance between, splicing is carried out to two width the first images, obtains the second image, including:
Between the subject and corresponding camera for obtaining the barrier edge in a wherein width the first image Distance and other the first images in subject and the distance between corresponding camera difference;
Obtain the target part that distance difference is less than in other the first images corresponding to the distance of preset difference value;
According to the subject of the barrier edge in a wherein width the first image and other first images In target part carry out splicing, obtain the second image.
It is described that splicing is carried out at least two width the first images in alternatively possible design, obtain second After image, the method also includes:
It stores and controls the terminal and show second image.
In alternatively possible design, before two respective photographing informations of the first image of the acquisition, the method Further include:
According to the shooting instruction that user triggers, at least two cameras for controlling the terminal clap current scene It takes the photograph, obtains at least two first images;
Image procossing is carried out to every width the first image, each section object in the first image is obtained and is taken the photograph with corresponding As the distance between head;
According to the distance between each section object in the first image and corresponding camera, generates and store the bat Take the photograph information.
In alternatively possible design, the shooting instruction triggered according to user controls at least the two of the terminal A camera shoots current scene, before obtaining at least two first images, the method also includes:
According to the pre- shooting instruction that user triggers, at least two cameras for controlling the terminal carry out in advance current scene Shooting, obtains at least two width third images;
The third image described in every width carries out image procossing, obtains each section object in the third image and takes the photograph with corresponding As the distance between head;
According to the distance between each section object and corresponding camera, obstacle is determined in the third image Object;
Each camera for controlling the terminal focuses on subject between each barrier.
In alternatively possible design, at least two cameras of the control terminal clap current scene It takes the photograph, after obtaining at least two first images, the method also includes:
Storage is associated at least two width the first images.
Second aspect, the embodiment of the present invention provide a kind of take pictures focusing amendment and image processing equipment based on distance, packet It includes:
Module is obtained, for obtaining at least two respective photographing informations of the first image, at least two width the first images For the image that the terminal at least two cameras is shot in synchronization, and the focal length of each the first image is according to pre- The distance between each section object and camera are focused revised focal length when shooting, and the photographing information includes the first figure The distance between each section object and corresponding camera as in;
Determining module, for according to the distance between each section object and corresponding camera, each described first Barrier and subject are determined in image;
Splicing module, for according to the subject of the barrier edge in a wherein width the first image with it is corresponding The distance between camera and other the first images in the distance between subject and corresponding camera, to two Width the first image carries out splicing, obtains the second image, barrier is not present in second image.
In a kind of possible design, the determining module is specifically used for:
According to the distance between each section object and corresponding camera, determines and be generally aligned in the same plane and and camera The distance between be less than the target object of the distance between surrounding objects and camera;
According to the target object in the first image determine barrier, and by barrier in the first image it Between image as subject.
In alternatively possible design, the splicing module is specifically used for:
Between the subject and corresponding camera for obtaining the barrier edge in a wherein width the first image Distance and other the first images in subject and the distance between corresponding camera difference;
Obtain the target part that distance difference is less than in other the first images corresponding to the distance of preset difference value;
According to the subject of the barrier edge in a wherein width the first image and other first images In target part carry out splicing, obtain the second image.
In another possible design, the splicing module is also used to:
Splicing is carried out at least two width the first images described, after obtaining the second image, stores and controls The terminal shows second image.
In another possible design, further include:Shooting module;
The shooting module is used for:Before acquisition at least two respective photographing informations of the first image, according to The shooting instruction of family triggering, at least two cameras for controlling the terminal shoot current scene, obtain it is described at least Two the first images;
Image procossing is carried out to every width the first image, each section object in the first image is obtained and is taken the photograph with corresponding As the distance between head;
According to the distance between each section object in the first image and corresponding camera, generates and store the bat Take the photograph information.
In another possible design, the shooting module is also used to:According to the pre- shooting instruction that user triggers, control At least two cameras of the terminal shoot current scene in advance, obtain at least two width third images;
The third image described in every width carries out image procossing, obtains each section object in the third image and takes the photograph with corresponding As the distance between head;
According to the distance between each section object and corresponding camera, obstacle is determined in the third image Object;
Each camera for controlling the terminal focuses on subject between each barrier.
In another possible design, the shooting module is also used to:At least two of the control terminal take the photograph As head shoots current scene, after obtaining at least two first images, at least two width the first images into Row associated storage.
The third aspect, the embodiment of the present invention provide a kind of take pictures focusing amendment and image processing equipment based on distance, It is characterized in that, including:Memory, processor and computer program, the computer program store in the memory, institute State processor run the computer program execute described in the possible design of first aspect and first aspect as above based on away from From take pictures focusing amendment and image processing method.
Fourth aspect, the embodiment of the present invention provide a kind of storage medium, and the storage medium includes computer program, described Computer program is performed for executing described in the possible design of first aspect and first aspect as above based on distance Focusing of taking pictures is corrected and image processing method.
Take pictures focusing amendment and image processing method, equipment provided in this embodiment based on distance, this method is by obtaining At least two respective photographing informations of the first image are taken, at least two the first images are that the terminal at least two cameras exists The image of synchronization shooting, photographing information include the distance between each section object and corresponding camera in the first image, So that the present embodiment can not only shoot static object, shooting dynamic object can also be tracked, according to each section object with it is right The distance between camera answered determines barrier and subject in the first image;According in wherein first image The distance between subject and the corresponding camera of barrier edge and other first images in subject with The distance between corresponding camera carries out splicing at least two the first images, obtains the second image, pass through stitching portion Reason process does not have barrier, the image of available beauty in the second obtained image.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Bright some embodiments for those of ordinary skill in the art without any creative labor, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of terminal provided by the invention;
Fig. 2 is the flow chart one of the image processing method provided by the invention based on distance;
Fig. 3 is the flowchart 2 of the image processing method provided by the invention based on distance;
Fig. 4 A is the schematic diagram of first image provided by the invention;
Fig. 4 B is the schematic diagram of another the first image provided by the invention;
Fig. 5 is that taking pictures based on distance provided by the invention focuses modified method flow diagram;
Fig. 6 is that taking pictures based on distance provided in an embodiment of the present invention focuses the structural representation of amendment and image processing equipment Figure;
Fig. 7 is that taking pictures based on distance provided in an embodiment of the present invention focuses the hardware configuration of amendment and image processing equipment Figure.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
In order to solve the problem of that barrier obstruction can not obtain beautiful image, the present embodiment is applied to have at least two The equipment of a camera shooting capture module spells the two images by capturing the two images of Same Scene in synchronization Processing is connect, the image of not barrier is obtained.The method of the present embodiment can be applied not only to static scene, more can be applied to Shooting to dynamic scene.
Wherein, the equipment with two or more camera shooting capture modules can be long with dual camera, wide-angle The equipment of the technologies such as coke collocation dual camera, single camera double image element, or the equipment etc. with multiple cameras, this reality It applies example to be not particularly limited the quantity of camera possessed by the equipment, as long as being greater than or equal to two.The equipment It can be the equipment such as mobile phone, plate, video camera.For example, Fig. 1 is the structural schematic diagram of terminal provided by the invention.The present embodiment By the terminal 10 tool, there are two be illustrated for camera.As shown in Figure 1, the terminal 10 has dual camera, take the photograph respectively As head 11 and camera 12.The present embodiment is not particularly limited the arrangement of camera 11 and 12, and the two can be horizontal row Cloth, or vertical arrangement.In the present embodiment, by taking terminal shown in FIG. 1 as an example, distance is based on to provided in this embodiment Image processing method be described in detail.It will be understood by those skilled in the art that for multiple cameras, realization side Formula is similar, and details are not described herein again for the present embodiment.
Fig. 2 is the flow chart one of the image processing method provided by the invention based on distance.As shown in Fig. 2, this method packet It includes:
S201, at least two respective photographing informations of the first image are obtained, at least two width the first images are with extremely The image that the terminal of few two cameras is shot in synchronization, and the focal length of each the first image is according to each when shooting in advance The distance between fractional object and camera are focused revised focal length, and the photographing information includes each portion in the first image Divide the distance between object and corresponding camera.
At least two first images of the present embodiment, shoot for the terminal at least two cameras in synchronization Image.Be specifically as follows at least two the first images that terminal current shooting obtains, or in advance take and store to Few two the first images.
It will be appreciated by those skilled in the art that can first be shot in advance when shooting at least two the first images by terminal, Barrier and subject are obtained according to the distance between each section object and camera, then focusing is focused amendment, So that focal length is in alignment with subject, i.e. the focal length of each first image of the present embodiment is to focus revised focal length.
Further, terminal can also obtain photographing information, the shooting during shooting at least two the first images Information includes the distance between each section object and corresponding camera in each first image.Wherein it is possible in each camera shooting Distance measuring sensor is installed on head, which can measure camera and at a distance from each section object, be somebody's turn to do in current scene Distance measuring sensor can be infrared sensor or ultrasonic sensor etc., and the present embodiment is between acquisition camera and each section object The acquisition modes of distance be not particularly limited, as long as the implementation of the distance can be obtained, belong to the guarantor of the present embodiment Protect scope.
Wherein, the object in the present embodiment can be the part of scenery, animal etc., i.e., be divided into scenery, animal etc. more A part obtains the distance between each part and camera.The size for the granularity that the present embodiment divides each section is not done Especially limitation.
S202, according to the distance between each section object and corresponding camera, in each the first image really Determine barrier and subject.
Since barrier blocks in the front of subject, it is taken so the distance between barrier and camera are less than The distance between object and camera can determine barrier and subject thus according to the distance in the first image.
S203, according to the subject of the barrier edge in a wherein width the first image and corresponding camera The distance between and other the first images in the distance between subject and corresponding camera, at least two width institutes It states the first image and carries out splicing, obtain the second image, barrier is not present in second image.
Specifically, it can be replaced with the subject at least first image another by technologies such as fixed point locations Barrier in one the first image is spliced, to obtain the second image of not barrier.
It will be understood by those skilled in the art that the present embodiment is equally applicable in video recording, multiple first images need to only be spelled It is connected in the video of continuous time.
Take pictures focusing amendment and image processing method, equipment provided in this embodiment based on distance, this method is by obtaining At least two respective photographing informations of the first image are taken, at least two the first images are that the terminal at least two cameras exists The image of synchronization shooting, photographing information include the distance between each section object and corresponding camera in the first image, So that the present embodiment can not only shoot static object, shooting dynamic object can also be tracked, according to each section object with it is right The distance between camera answered determines barrier and subject in the first image;According in wherein first image The distance between subject and the corresponding camera of barrier edge and other first images in subject with The distance between corresponding camera carries out splicing at least two the first images, obtains the second image, pass through stitching portion Reason process does not have barrier, the image of available beauty in the second obtained image.
Fig. 3 is the flowchart 2 of the image processing method provided by the invention based on distance, as shown in figure 3, this method packet It includes:
S301, at least two respective photographing informations of the first image are obtained, at least two width the first images are with extremely The image that the terminal of few two cameras shoot in synchronization, the photographing information include in the first image each section object and The distance between corresponding camera;
S302, according to the distance between each section object and corresponding camera, determine be generally aligned in the same plane and with The distance between camera is less than the target object of the distance between surrounding objects and camera;
S303, barrier is determined in the first image according to the target object, and will hindered in the first image Hinder the image between object as subject;
S304, the subject for obtaining barrier edge wherein in a width the first image and corresponding camera The distance between and other the first images in subject and the distance between corresponding camera difference;
S305, the target portion that distance difference is less than in other the first images corresponding to the distance of preset difference value is obtained Point;
S306, according to the subject and other first images of the barrier edge in a wherein width the first image In target part carry out splicing, obtain the second image.
S301 in Fig. 3 is similar with the S201 in Fig. 2, and the present embodiment is not repeated herein.
In S302 and S303, can according to the distance between each section object and corresponding camera, determine be located at it is same One plane and the target object for being less than the distance between surrounding objects and camera with the distance between camera, the target object Barrier in as the first image, the image between the barrier is as subject.
Specifically, since barrier is located at the front of subject, thus when encounter it is continuous and be generally aligned in the same plane and When object closer with camera, that is, it can determine that the object is barrier, and the object between barrier is subject.
For example, Fig. 4 A is the schematic diagram of first image provided by the invention, Fig. 4 B is another width provided by the invention The schematic diagram of first image.As shown in Figure 4 A and 4 B shown in FIG., identification finds a continuous reticular structure and in a plane As barrier, the scenery among grid are located at grid rear.
In splicing, the present embodiment is described in detail by taking two the first images as an example.Pass through wherein one the Target part in the subject of barrier edge in one image and another first image carries out splicing, obtains the Two images.It, can will be in wherein first image it will be understood by those skilled in the art that for 3 the first images Target part in the subject of barrier edge and another two the first images carries out splicing, for more first For image, implementation is similar, and details are not described herein again for the present embodiment.
Wherein, target part refers to the quilt at a distance from camera with the barrier edge in wherein first image Difference of the subject at a distance from camera is less than the part of preset difference value, and is located in other first images.
In carrying out splicing, i.e., in S304 into S306, obtain the barrier edge in wherein first image Subject and corresponding camera in the distance between the subject at place and corresponding camera and another the first image The distance between difference.Please continue to refer to Fig. 4 A and Fig. 4 B, for example, in Figure 4 A, being obtained by taking the crest on peacock head as an example The distance between barrier edge crest A and camera are taken, in figure 4b, is obtained between subject each section and camera Distance, then obtain two distances difference, when the difference be less than preset difference value when, obtain two apart from corresponding target Object.
Specifically, when the difference is smaller, illustrate to be spliced, therefore for similar region for described in two width Corresponding two objects of first image carry out splicing, obtain the second image.For example, being target with the crest A in Fig. 4 A Object, the crest B in Fig. 4 B are object, two objects splicings, available second image.After obtaining the second image, Second image can be stored and be shown to user.
The present embodiment be generally aligned in the same plane by determining according to the distance between each section object and corresponding camera and The distance between camera is less than the target object of the distance between surrounding objects and camera;According to target object first Barrier is determined in image, and using the image in the first image between barrier as subject, can accurately determine barrier Hinder object and subject, by obtaining the subject of the barrier edge wherein in first image and corresponding camera shooting The difference of subject and the distance between corresponding camera in the distance between head and other first images;Obtain range difference Value is less than target part corresponding to the distance of preset difference value;According to the quilt of the barrier edge in wherein first image Target part in subject and other first images carries out splicing, obtains the second image, can fast and accurately realize Splicing.
On the basis of upper embodiment, distance is also based on to realize accurate focusing, uses specific embodiment below, Amendment is focused come the distance between each section object and camera when illustrating that the focal length of each first image shoots for basis is pre- The detailed implementation of focal length afterwards.
Fig. 5 is that taking pictures based on distance provided by the invention focuses modified method flow diagram.As shown in figure 5, this method Including:
S501, the pre- shooting instruction triggered according to user, control at least two cameras of the terminal to current scene It is shot in advance, obtains at least two width third images;
S502, the third image described in every width carry out image procossing, obtain in the third image each section object with it is right The distance between camera answered;
S503, according to the distance between each section object and corresponding camera, determined in the third image Barrier;
S504, each camera for controlling the terminal focus on the subject between each barrier.
S505, the shooting instruction triggered according to user, control at least two cameras of the terminal to current scene into Row shooting, obtains at least two width the first images;
S506, image procossing is carried out to every width the first image, obtain in the first image each section object with it is right The distance between camera answered;
S507, according to the distance between each section object in the first image and corresponding camera, generate and store The photographing information.
During specific implementation, after user triggers pre- shooting instruction by various operations, according to the pre- shooting instruction, At least two cameras of controlling terminal shoot current scene in advance, at least two width third images are obtained, to every width third Image carries out image procossing, for example, various image processing techniques combination distance measuring sensors, obtain each section object in third image With the distance between the camera for shooting each section object, the barrier in third image is determined according to this distance, specifically The method of determination can be found in Fig. 3 embodiment, and details are not described herein again for the present embodiment.
After determining subject, the subject that each camera focuses between each barrier is controlled, user is worked as After triggering shooting instruction, each camera of controlling terminal shoots current scene, is focused to subject at this time, final to obtain To at least two the first images, image procossing is carried out to every first image, obtain in the first image each section object with it is corresponding The distance between camera;According to the distance between each section object in the first image and corresponding camera, generates and deposit Photographing information is stored up, optionally, also at least two the first images are associated storage to this.
The present embodiment, so that terminal focuses on subject, avoids the presence due to shelter, camera by shooting in advance It focuses in barrier, the later period is difficult to the problem of repairing.
Fig. 6 is that taking pictures based on distance provided in an embodiment of the present invention focuses the structural representation of amendment and image processing equipment Figure.As shown in fig. 6, should include with image processing equipment 60 based on the focusing amendment of taking pictures of distance:It obtains module 601, determine mould Block 602, splicing module 603.It optionally, further include shooting module 604.
Module 601 is obtained, for obtaining at least two respective photographing informations of the first image, the first figure described at least two width As the image shot for the terminal at least two cameras in synchronization, and according to the focal length of each the first image The distance between each section object and camera are focused revised focal length when pre- shooting, and the photographing information includes first The distance between each section object and corresponding camera in image;
Determining module 602, for according to the distance between each section object and corresponding camera, each described the Barrier and subject are determined in one image;
Splicing module 603, for according to the subject of the barrier edge in a wherein width the first image with The distance between subject and corresponding camera in the distance between corresponding camera and other the first images, Splicing is carried out at least two width the first images, the second image is obtained, barrier is not present in second image.
Optionally, the determining module 602 is specifically used for:
According to the distance between each section object and corresponding camera, determines and be generally aligned in the same plane and and camera The distance between be less than the target object of the distance between surrounding objects and camera;
According to the target object in the first image determine barrier, and by barrier in the first image it Between image as subject.
Optionally, the splicing module 603 is specifically used for:
Between the subject and corresponding camera for obtaining the barrier edge in a wherein width the first image Distance and other the first images in subject and the distance between corresponding camera difference;
Obtain the target part that distance difference is less than in other the first images corresponding to the distance of preset difference value;
According to the subject of the barrier edge in a wherein width the first image and other first images In target part carry out splicing, obtain the second image.
Optionally, the splicing module 603 is also used to carry out splicing at least two width the first images described, After obtaining the second image, stores and control the terminal and show second image.
Optionally, shooting module 604 are used for before acquisition at least two respective photographing informations of the first image, According to the shooting instruction that user triggers, at least two cameras for controlling the terminal shoot current scene, obtain institute State at least two the first images;
Image procossing is carried out to every width the first image, each section object in the first image is obtained and is taken the photograph with corresponding As the distance between head;
According to the distance between each section object in the first image and corresponding camera, generates and store the bat Take the photograph information.
Optionally, the shooting module 604 is also used to:According to the pre- shooting instruction that user triggers, the terminal is controlled At least two cameras shoot current scene in advance, obtain at least two width third images;
The third image described in every width carries out image procossing, obtains each section object in the third image and takes the photograph with corresponding As the distance between head;
According to the distance between each section object and corresponding camera, obstacle is determined in the third image Object;
Each camera for controlling the terminal focuses on subject between each barrier.
Optionally, the shooting module 604 is also used to:At least two cameras of the control terminal are to working as front court Scape is shot, and after obtaining at least two first images, is associated storage at least two width the first images.
The equipment of the present embodiment can be used for executing the technical solution of above method embodiment, realization principle and technology Effect is similar, and details are not described herein again.
Fig. 7 is that taking pictures based on distance provided in an embodiment of the present invention focuses the hardware configuration of amendment and image processing equipment Figure.As shown in fig. 7, amendment and image processing equipment 70 should be focused based on taking pictures for distance, including:Memory 701, for storing Computer program;
Processor 702, for executing the computer program of memory storage, to realize above-mentioned above method embodiment.Tool Body may refer to the associated description in preceding method embodiment.
Optionally, memory 701 can also be integrated with processor 702 either independent.
When the memory 701 is independently of the device except processor 702, the equipment 70 can also include:
Bus 703, for connecting the memory 701 and processor 702.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium includes computer program, the computer Program is performed for executing take pictures focusing amendment and image processing method based on distance as described above.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at one In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including several computer programs are used so that one Computer equipment (can be personal computer, server or the network equipment etc.) or processor (English:Processor it) holds The part steps of each embodiment the method for the row present invention.And storage medium above-mentioned includes:USB flash disk, read-only is deposited mobile hard disk Reservoir (English:Read-Only Memory, referred to as:ROM), random access memory (English:Random Access Memory, referred to as:RAM), the various media that can store program code such as magnetic or disk.
It should be understood that above-mentioned processor can be central processing unit (English:Central Processing Unit, letter Claim:CPU), it can also be other general processors, digital signal processor (English:Digital Signal Processor, Referred to as:DSP), specific integrated circuit (English:Application Specific Integrated Circuit, referred to as: ASIC) etc..General processor can be microprocessor or the processor is also possible to any conventional processor etc..In conjunction with this The step of application disclosed method, can be embodied directly in hardware processor and execute completion, or in processor hardware and Software module combination executes completion.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that:Realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned includes:ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, those skilled in the art should understand that:Its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (10)

1. a kind of take pictures focusing amendment and image processing method based on distance, which is characterized in that including:
At least two respective photographing informations of the first image are obtained, at least two width the first images are at least two camera shootings The image that shoot in synchronization of terminal of head, and the focal length of each the first image be according to each section object when pre- shooting and The distance between camera is focused revised focal length, the photographing information include in the first image each section object with it is right The distance between camera answered;
According to the distance between each section object and corresponding camera, determined in each the first image barrier and Subject;
According between the subject and corresponding camera of the barrier edge in a wherein width the first image away from From and other the first images in the distance between subject and corresponding camera, the first figure described at least two width As carrying out splicing, the second image is obtained, barrier is not present in second image.
2. the method according to claim 1, wherein described according to each section object and corresponding camera The distance between, barrier and subject are determined in each the first image, including:
According to the distance between each section object and corresponding camera, determination is generally aligned in the same plane and between camera Distance be less than the target object of the distance between surrounding objects and camera;
Barrier is determined in the first image according to the target object, and will be in the first image between barrier Image is as subject.
3. the method according to claim 1, wherein the basis wherein obstacle in a width the first image In the distance between the subject of object edge and corresponding camera and other the first images each section object with The distance between corresponding camera carries out splicing to two width the first images, obtains the second image, including:
Obtain between the subject and corresponding camera of the barrier edge wherein in a width the first image away from From and other the first images in subject and the distance between corresponding camera difference;
Obtain the target part that distance difference is less than in other the first images corresponding to the distance of preset difference value;
According in the subject of the barrier edge in a wherein width the first image and other first images Target part carries out splicing, obtains the second image.
4. the method according to claim 1, wherein described carry out stitching portion at least two width the first images Reason, after obtaining the second image, the method also includes:
It stores and controls the terminal and show second image.
5. the method according to claim 1, wherein it is described obtain two respective photographing informations of the first image it Before, the method also includes:
According to the shooting instruction that user triggers, at least two cameras for controlling the terminal shoot current scene, obtain To at least two first images;
Image procossing is carried out to every width the first image, obtains each section object and corresponding camera in the first image The distance between;
According to the distance between each section object in the first image and corresponding camera, generates and store the shooting letter Breath.
6. according to the method described in claim 5, it is characterized in that, the shooting instruction triggered according to user, described in control At least two cameras of terminal shoot current scene, before obtaining at least two first images, the method Further include:
According to the pre- shooting instruction that user triggers, at least two cameras for controlling the terminal clap current scene in advance It takes the photograph, obtains at least two width third images;
The third image described in every width carries out image procossing, obtains each section object and corresponding camera in the third image The distance between;
According to the distance between each section object and corresponding camera, barrier is determined in the third image;
Each camera for controlling the terminal focuses on subject between each barrier.
7. according to the method described in claim 5, it is characterized in that, at least two cameras of the control terminal are to working as Preceding scene is shot, after obtaining at least two first images, the method also includes:
Storage is associated at least two width the first images.
8. a kind of take pictures focusing amendment and image processing equipment based on distance, which is characterized in that including:
Module is obtained, for obtaining at least two respective photographing informations of the first image, at least two width the first images are tool The image for thering is the terminal of at least two cameras to shoot in synchronization, and the focal length of each the first image is according to pre- shooting When the distance between each section object and camera be focused revised focal length, the photographing information includes in the first image The distance between each section object and corresponding camera;
Determining module, for according to the distance between each section object and corresponding camera, in each the first image Middle determining barrier and subject;
Splicing module, for being taken the photograph according to the subject of the barrier edge in a wherein width the first image with corresponding As the distance between subject and corresponding camera in the distance between head and other the first images, to two width institutes It states the first image and carries out splicing, obtain the second image, barrier is not present in second image.
9. a kind of take pictures focusing amendment and image processing equipment based on distance, which is characterized in that including:Memory, processor And computer program, in the memory, the processor runs the computer program for the computer program storage Execute described in any item take pictures focusing amendment and the image processing methods based on distance of claim 1 to 7 as above.
10. a kind of storage medium, which is characterized in that the storage medium includes computer program, and the computer program is held For executing described in any item take pictures focusing amendment and the image processing methods based on distance of claim 1 to 7 as above when row.
CN201810596881.6A 2018-06-11 2018-06-11 Photographing focus correction and image processing method and device based on distance Expired - Fee Related CN108924405B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810596881.6A CN108924405B (en) 2018-06-11 2018-06-11 Photographing focus correction and image processing method and device based on distance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810596881.6A CN108924405B (en) 2018-06-11 2018-06-11 Photographing focus correction and image processing method and device based on distance

Publications (2)

Publication Number Publication Date
CN108924405A true CN108924405A (en) 2018-11-30
CN108924405B CN108924405B (en) 2020-01-21

Family

ID=64409791

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810596881.6A Expired - Fee Related CN108924405B (en) 2018-06-11 2018-06-11 Photographing focus correction and image processing method and device based on distance

Country Status (1)

Country Link
CN (1) CN108924405B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361874A (en) * 2018-12-19 2019-02-19 维沃移动通信有限公司 A kind of photographic method and terminal

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003063402A (en) * 2001-08-27 2003-03-05 Hitachi Ltd Safety monitor device for platform in station
US20040174373A1 (en) * 2003-03-07 2004-09-09 Stevens Randall S. Preparing digital images for display utilizing view-dependent texturing
JP2005095028A (en) * 2003-09-24 2005-04-14 Bab-Hitachi Machinery Co Ltd Trapping fence
US20070188626A1 (en) * 2003-03-20 2007-08-16 Squilla John R Producing enhanced photographic products from images captured at known events
CN103260009A (en) * 2012-02-15 2013-08-21 株式会社日立制作所 Image monitoring apparatus, monitoring system, and monitoring system configuration method
GB2512621A (en) * 2013-04-04 2014-10-08 Sony Corp A method and apparatus
CN104580882A (en) * 2014-11-03 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN104965202A (en) * 2015-06-18 2015-10-07 奇瑞汽车股份有限公司 Barrier detection method and device
CN105516578A (en) * 2014-09-25 2016-04-20 联想(北京)有限公司 Image processing method and device and electronic equipment
CN105678787A (en) * 2016-02-03 2016-06-15 西南交通大学 Heavy-duty lorry driving barrier detection and tracking method based on binocular fisheye camera
CN107437268A (en) * 2017-07-31 2017-12-05 广东欧珀移动通信有限公司 Photographic method, device, mobile terminal and computer-readable storage medium
CN108093174A (en) * 2017-12-15 2018-05-29 北京臻迪科技股份有限公司 Patterning process, device and the photographing device of photographing device

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003063402A (en) * 2001-08-27 2003-03-05 Hitachi Ltd Safety monitor device for platform in station
US20040174373A1 (en) * 2003-03-07 2004-09-09 Stevens Randall S. Preparing digital images for display utilizing view-dependent texturing
US20070188626A1 (en) * 2003-03-20 2007-08-16 Squilla John R Producing enhanced photographic products from images captured at known events
JP2005095028A (en) * 2003-09-24 2005-04-14 Bab-Hitachi Machinery Co Ltd Trapping fence
CN103260009A (en) * 2012-02-15 2013-08-21 株式会社日立制作所 Image monitoring apparatus, monitoring system, and monitoring system configuration method
GB2512621A (en) * 2013-04-04 2014-10-08 Sony Corp A method and apparatus
CN105516578A (en) * 2014-09-25 2016-04-20 联想(北京)有限公司 Image processing method and device and electronic equipment
CN104580882A (en) * 2014-11-03 2015-04-29 宇龙计算机通信科技(深圳)有限公司 Photographing method and device
CN104965202A (en) * 2015-06-18 2015-10-07 奇瑞汽车股份有限公司 Barrier detection method and device
CN105678787A (en) * 2016-02-03 2016-06-15 西南交通大学 Heavy-duty lorry driving barrier detection and tracking method based on binocular fisheye camera
CN107437268A (en) * 2017-07-31 2017-12-05 广东欧珀移动通信有限公司 Photographic method, device, mobile terminal and computer-readable storage medium
CN108093174A (en) * 2017-12-15 2018-05-29 北京臻迪科技股份有限公司 Patterning process, device and the photographing device of photographing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109361874A (en) * 2018-12-19 2019-02-19 维沃移动通信有限公司 A kind of photographic method and terminal

Also Published As

Publication number Publication date
CN108924405B (en) 2020-01-21

Similar Documents

Publication Publication Date Title
CN103988227B (en) The method and apparatus locked for image capturing target
CN106713768B (en) People's scape image composition method, system and computer equipment
EP3062513B1 (en) Video apparatus and photography method thereof
JP6332996B2 (en) Moving image processing apparatus, imaging apparatus, and moving image processing method
US7466356B2 (en) Method and apparatus for setting a marker on an object and tracking the position of the object
WO2016008359A1 (en) Object movement track image synthesizing method, device and computer storage medium
CN108702456A (en) A kind of focusing method, equipment and readable storage medium storing program for executing
US10297285B2 (en) Video data processing method and electronic apparatus
CN103945116B (en) For handling the device and method of image in the mobile terminal with camera
CN112954212A (en) Video generation method, device and equipment
KR101665175B1 (en) Image acquisition apparatus,image acquisition method and recording medium
CN110602408A (en) Electronic device and photographing method executed by the same
CN105467741A (en) Panoramic shooting method and terminal
KR101645427B1 (en) Operation method of camera apparatus through user interface
CN107392850B (en) Image processing method and system
CN108924405A (en) Take pictures focusing amendment and image processing method, equipment based on distance
JP2020108119A (en) Notification device, imaging apparatus, notification method, imaging method, and program
JP6483661B2 (en) Imaging control apparatus, imaging control method, and program
WO2016019786A1 (en) Object motion trajectory photographing method and system, and computer storage medium
JP6700693B2 (en) Imaging device, control method thereof, program, and storage medium
US9124803B2 (en) Image pickup apparatus, method of controlling the same, reproduction apparatus, and method of controlling the same
CN111586283B (en) Zooming method and device
JP6157238B2 (en) Image processing apparatus, image processing method, and image processing program
JP2013085239A (en) Imaging apparatus
JP2013153321A (en) Imaging apparatus, imaging method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200121

Termination date: 20200611