CN105227948B - The method and device of distorted region in a kind of lookup image - Google Patents

The method and device of distorted region in a kind of lookup image Download PDF

Info

Publication number
CN105227948B
CN105227948B CN201510598683.XA CN201510598683A CN105227948B CN 105227948 B CN105227948 B CN 105227948B CN 201510598683 A CN201510598683 A CN 201510598683A CN 105227948 B CN105227948 B CN 105227948B
Authority
CN
China
Prior art keywords
region
foreground target
target
image
foreground
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.)
Expired - Fee Related
Application number
CN201510598683.XA
Other languages
Chinese (zh)
Other versions
CN105227948A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510598683.XA priority Critical patent/CN105227948B/en
Publication of CN105227948A publication Critical patent/CN105227948A/en
Application granted granted Critical
Publication of CN105227948B publication Critical patent/CN105227948B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a kind of method for searching distorted region in image, including:The target image of camera collection is obtained, the foreground target region in the target image is obtained;Obtain the depth information of the corresponding foreground target in the foreground target region;According to default linear function using the depth information of the foreground target as independent variable, distortion radius corresponding with the foreground target region is calculated;The pixel for being more than the distortion radius in foreground target region with the distance of the central point of target image is searched, the regional determination that the pixel found is constituted is distorted region.The present invention also proposes a kind of device for searching distorted region in image accordingly.Using the present invention, the amount of calculation during the processing lens distortion phenomenon during taking pictures is reduced, treatment effeciency is improved, improves Consumer's Experience.

Description

The method and device of distorted region in a kind of lookup image
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device for searching distorted region in image.
Background technology
In the prior art, general optical lens can all have a certain degree of lens distortion in imaging, it is difficult to reach The effect being imaged to perfect lens, and the lens distortion is the intrinsic inherent characteristic of optical lens (convex lens convergence light, recessed Lens divergent rays) caused by, so, although this distortion is very unfavorable for the image quality of photo, but It can not be completely eliminated.
In general, user using portable equipment such as smart mobile phone etc. when being taken pictures, and its purpose is in order to again mostly The scene now taken pictures at that time, the imaging region especially for targets such as reproduction article, personage or buildings is target image Whether region is real, or with the presence or absence of distortion situation, and non-object image region can be ignored and existed to a certain degree Image fault.The problems such as distortion that occurs for image, distortion, there is what the distortion of image was corrected in the prior art Method, i.e., ask for the distortion factor of camera lens in advance, and the coordinate of imaging point is modified after imaging, so as to improve picture point The accuracy of coordinate, so that the distortion phenomenon occurred to a certain extent in correction chart picture.But the method for above-mentioned distortion correction Need to carry out a series of calculating after imaging, the amount of calculation in image processing process after imaging can be increased.
Therefore, there is computationally intensive ask in the processing mode of lens distortion in the prior art for occurring during taking pictures Topic.
The content of the invention
Based on this, to solve in conventional art mentioned above for the processing side of the lens distortion occurred during taking pictures The excessive technical problem of amount of calculation that formula is present, spy is there is provided a kind of method for searching distorted region in image.
A kind of method of distorted region in lookup image, including:
The target image of camera collection is obtained, the foreground target region in the target image is obtained;
Obtain the depth information of the corresponding foreground target in the foreground target region;
According to default linear function using the depth information of the foreground target as independent variable, calculate and the foreground target The corresponding distortion radius in region;
The pixel for being more than the distortion radius in foreground target region with the distance of the central point of target image is searched, will The regional determination that the pixel found is constituted is distorted region.
Optionally, the step of depth information of the corresponding foreground target in the acquisition foreground target region also includes: The depth information of the corresponding foreground target in the foreground target region is obtained by dual camera.
Optionally, the step of depth information of the corresponding foreground target in the acquisition foreground target region also includes: The reference image vegetarian refreshments of predetermined number in the foreground target region is chosen, depth letter corresponding with the reference image vegetarian refreshments is obtained Breath, and the average value of the depth information of all reference image vegetarian refreshments is calculated, with the flat of the depth information of all reference image vegetarian refreshments Average is the depth information of the corresponding foreground target in the foreground target region.
Optionally, it is described obtain in the target image foreground target region the step of also include:Obtain the target At least two foreground target regions in image;
It is described obtain the corresponding foreground target in the foreground target region depth information the step of also include:Obtain respectively The depth information of corresponding at least two foreground target at least two foreground targets region;
It is described according to default linear function using the depth information of the foreground target as independent variable, calculate with the prospect Target area it is corresponding distortion radius the step of also include:According to default linear function with the depth information of the foreground target For independent variable, distortion radius corresponding with least two foreground targets region is calculated respectively;
It is described to search the pixel for being more than the distortion radius in foreground target region with the distance of the central point of target image Point, the step of regional determination that the pixel found is constituted is distorted region also includes:Described in searching respectively at least It is more than the pixel of the distortion radius in two foreground target regions with the distance of the central point of target image, respectively will be described The regional determination that the pixel found is constituted is distorted region corresponding with least two foreground targets region.
Optionally, also wrapped after the step of regional determination that the pixel found is constituted is distorted region Include:The distorted region in the prominent displaying target image, the mode of the prominent displaying include it is highlighted, be outlined It is at least one.
In addition, to solve in conventional art mentioned above for the processing mode of the lens distortion occurred during taking pictures The excessive technical problem of the amount of calculation of presence, present invention also offers a kind of device for searching the distorted region in image.
A kind of device of distorted region in lookup image, including:Foreground target region acquisition module, for obtaining shooting The target image of head collection, obtains the foreground target region in the target image;
Depth Information Acquistion module, the depth information for obtaining the corresponding foreground target in the foreground target region;
Distort radius calculation module, for being become according to default linear function using the depth information of the foreground target as oneself Amount, calculates distortion radius corresponding with the foreground target region;
Distorted region determining module, is more than institute for searching the distance in foreground target region with the central point of target image The pixel of distortion radius is stated, the regional determination that the pixel found is constituted is distorted region.
Optionally, the Depth Information Acquistion module is additionally operable to:The foreground target region pair is obtained by dual camera The depth information for the foreground target answered.
Optionally, the Depth Information Acquistion module is additionally operable to:Choose the ginseng of predetermined number in the foreground target region Examine pixel, obtain depth information corresponding with the reference image vegetarian refreshments, and calculate the depth information of all reference image vegetarian refreshments Average value, using the average value of the depth information of all reference image vegetarian refreshments as the corresponding foreground target in the foreground target region Depth information.
Optionally, foreground target region acquisition module is additionally operable to:Obtain before at least two in the target image Scape target area;The Depth Information Acquistion module is additionally operable to:It is corresponding that at least two foreground targets region is obtained respectively The depth information of at least two foreground targets;
The distortion radius calculation module is additionally operable to:According to default linear function with the depth information of the foreground target For independent variable, distortion radius corresponding with least two foreground targets region is calculated respectively;
The distorted region determining module is additionally operable to:Search respectively at least two foreground targets region with target figure The distance of the central point of picture is more than the pixel of the distortion radius, and the region for respectively constituting the pixel found is sentenced It is set to distorted region corresponding with least two foreground targets region.
Optionally, described device also includes prominent display module, for described abnormal in the prominent displaying target image Become region, the mode of the prominent displaying include it is highlighted, at least one of be outlined.
Implement the embodiment of the present invention, will have the advantages that:
After the method and apparatus for employing distorted region in above-mentioned lookup image, during taking pictures, for mirror Lens distortion phenomenon caused by the optics inherent characteristic of head, calculates the position where the foreground target or shooting main body of user's care The distance apart from camera lens is put, so that it is determined that the region of distortion phenomenon occurs under the distance and position, if where foreground target Region and the area coincidence that distortion phenomenon occurs, then be distorted region by the area identification, that is to say, that user is of concern Foreground target or shooting main body occur in that distortion, it is necessary to be adjusted.Compared with conventional art, it is abnormal in above-mentioned lookup image Become the method and apparatus in region during lens distortion is handled, it is to avoid carry out a series of distortion correction after imaging Calculate, reduce the amount of calculation in imaging process, improve the treatment effeciency of imaging.
Meanwhile, user can also be informed in take pictures during the distortion phenomenon that is likely to occur, and further adjusted It is whole, so as to actively go on the shooting object for avoiding distortion phenomenon from appearing in user's care, improve Consumer's Experience.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Wherein:
Fig. 1 be one embodiment in a kind of lookup image in distorted region method flow schematic diagram;
Fig. 2 is the schematic diagram in the foreground target region of target image in one embodiment;
Fig. 3 is the schematic diagram in the foreground target region of target image in one embodiment;
Fig. 4 is the schematic diagram of the region division in target image in one embodiment;
Fig. 5 is the space schematic diagram in the region where tolerance unit corresponding with camera lens in one embodiment;
Fig. 6 is the space in the region in one embodiment where tolerance unit corresponding with camera lens in another embodiment Schematic diagram;
Fig. 7 is the schematic diagram of the region division in one embodiment in target image in one embodiment;
Fig. 8 is a kind of structural representation for the device for searching the distorted region in image in one embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
To solve in conventional art mentioned above for the processing mode presence of the lens distortion occurred during taking pictures The excessive technical problem of amount of calculation, spy can be dependent on meter there is provided a kind of method for searching distorted region in image, this method Calculation machine realizes program, and the computer program can be camera application program in smart mobile phone or to run on camera whole Image processing program in end.The computer program can run in the computer system based on von Neumann system.The calculating Machine system can be provided with smart mobile phone, tablet personal computer, palm PC or camera of camera applications or image procossing application etc. Terminal device.
Specifically, the method for distorted region is as shown in figure 1, this method comprises the following steps in the lookup image:
Step S102:The target image of camera collection is obtained, the foreground target region in the target image is obtained.
Target image is the image obtained by the camera that is arranged in terminal, and the target image can pass through The display screen being arranged in terminal is shown, so that user with the scene for crossing camera shooting to carrying out preview or determination, And can further it be operated according to the target image, for example, manual focus, i.e. user manually select needs progress pair Burnt target.It should be noted that the determination of the focus process mid-focal length in the acquisition process of above-mentioned target image, or need The selection for the shooting main body focused, can terminal voluntarily complete, i.e. auto-focusing or user is according to oneself The need for manually select so as to completing the focus process.
Target image includes background and foreground target, after target image is obtained, can be according to foreground target Partitioning algorithm extracts the corresponding foreground target region of foreground target in target image.It should be noted that in the present embodiment, The acquisition process in foreground target region, both can be terminal according to the target image got, automatically extract in the target image Foreground target where region;It can also be that the shooting main body selected according to user determines the foreground target that user is concerned about, from And determine to need the foreground target region of acquisition in the method.
The shape in foreground target region can be changeable, for example, it may be with the center of foreground target in target image In corresponding points be the center of circle, the circle that default length is radius or with the center of foreground target in the target image Arbitrary preset shape centered on corresponding points, can also be the corresponding pixel of foreground target extracted according to actual conditions The region of composition, the region is foreground target region.
As shown in Fig. 2 Fig. 2 illustrates the shooting image under the application scenarios of the shooting of a personage, the image is logical The target image of camera acquisition is crossed, wherein the region labeled as 1,2,3,4 is foreground target region in target image.
As shown in figure 3, Fig. 3 illustrates the shooting schematic diagram under a camera applications scene, the region C shown in the schematic diagram Region where the target image as obtained by camera, wherein the point labeled as A is shooting that user independently selects The reference point of main body, by the center of circle of the reference point, during default radius length R is target image for the border circular areas B of radius Foreground target region.
Step S104:Obtain the depth information of the corresponding foreground target in the foreground target region.
The depth information of foreground target is the distance between foreground target and camera lens information.In the present embodiment, prospect Target and the acquisition modes of the distance between camera lens can have a variety of.
For example, in one embodiment, the distance between foreground target and camera lens information are obtained by range sensor , specifically, range sensor is by launching the electromagnetic signal such as laser or infrared light to testee and detecting echo, so that really Determine the distance between testee and camera lens.
For another example in another embodiment, the distance between foreground target and camera lens information are obtained by dual camera Take.Specifically, being imaged respectively using two cameras, because a certain distance existed before two cameras, together One object imaging can have certain difference in the information such as pixel point coordinates, that is to say, that the difference of two cameras Imaging, has certain parallax and exists.The parallax of above-mentioned dual camera imaging, can be for estimating and calculate object distance camera lens Physical distance, i.e. depth information, and can further obtain the depth information of each pixel forms depth map Picture.
It should be noted that in the acquisition of the depth information of above-mentioned foreground target, the depth information of acquisition is to represent Whole foreground target region is by the depth information of all pixels point, in the present embodiment, with which point or which region Depth information is used for representing the depth information of foreground target corresponding with foreground target region, can carry out selection, e.g., can Think user realizes setting or systemic presupposition, or a kind of or system selected mode at random.
Specifically, the depth information at any point in foreground target region can be taken, represented with the depth information of the point The depth information in whole foreground target region.It can also be some specified point for taking and preparatory condition being met in foreground target region Corresponding depth information, to replace whole foreground target region depth information, for example take the corresponding value of depth information most The depth information of big pixel, for example, take the corresponding depth information of central point in foreground target region.In another embodiment In, the acquisition of the depth information in foreground target region can also be by obtaining each pixel pair in foreground target region The distance answered, and the average value for the distance that all-pair is answered is calculated, the depth information of foreground target is represented with the average value.
In another is embodiment, the acquisition of the depth information of foreground target can also be that mode is calculated as below:At random A number of pixel in foreground target region is chosen, using these pixels as reference image vegetarian refreshments, above-mentioned reference pixel is obtained The corresponding range information of point or depth information, then calculate the depth information of all reference image vegetarian refreshments or putting down for range information Average, using the average value as the depth information of the corresponding foreground target in foreground target region.
Step S106:According to default linear function using the depth information of the foreground target as independent variable, calculate and institute State the corresponding distortion radius in foreground target region.
There is situations such as distortion, distortion and is due to caused by the characteristic of camera lens in itself in camera lens, also, camera lens is from subject More remote, the region that pixel of the subject shared by image is constituted is smaller, and its size variation in appearance is smaller. Because distortion all occurs from image neighboring area, that is to say, that will not typically go out near the central point of imaging picture Now distort or distortion phenomenon.In the present embodiment, it would be possible to which the region for occurring distorting is referred to as the region where distortion range, no Occur that the region of distortion phenomenon is referred to as the region where tolerance scope.In general, it is nearer from camera lens, distort bigger, it is abnormal Become scope bigger, acceptable tolerance scope is also just smaller;Accordingly, it is more remote from camera lens, distort smaller, distortion range is got over Small, acceptable tolerance scope is also bigger.Therefore, if in the case of tolerance scope is fixed, it is possible to directly ask Obtain the distortion range in image.
As shown in figure 4, the scene shown in figure is distortion range and the region where tolerance scope in target image Divide schematic diagram.S2 represents the region where acceptable tolerance scope in figure, S1 represent in target image occur it is abnormal Region where the distortion range of change or distortion phenomenon.
In the present embodiment, the tolerance scope of a certain position object outside camera lens, is seeing camera lens as a bit When, that is, ignore the influence that the size of camera lens is brought, tolerance scope can be regarded as with the center of circle of camera lens progressively outside One cone of diverging, the cone, using the center of circle of camera lens as summit, is high (i.e. with the distance between the object and camera lens Height of the depth information of the foreground target obtained using in step S104 as cone), bottom surface radius be preset value.
As shown in figure 5, D shown in figure is the distance between the object and camera lens, i.e., acquired in step S104 Scope in depth information, figure shown in cone is tolerance scope, i.e., the scope distorted do not occur.According to camera lens not Together, the angle theta between the bus and height of cone also can be different, that is to say, that the setting of the angle, θ is the hardware by camera lens Determined by setting or hardware configuration, after camera shaping, the angle is assured that.
For the radius for the border circular areas for calculating the section where subject, can according to the geometry of cone by Equation below:
R=tan θ D.
The radius of border circular areas according to where above-mentioned formula can determine tolerance scope, may thereby determine that distortion area The scope in domain, the distortion range is that all regions outside the region where tolerance scope are removed in target image.
In another embodiment, it is considered to the influence that the size of camera lens is brought, the object of a certain position outside the camera lens Tolerance scope, can be regarded as using the plane where eyeglass as the plane where upper bottom, by the upper bottom center of circle of optical center point, And be that (depth information of the foreground target obtained using in step S104 is cone to height using the distance between the object and camera lens Height), bottom radius surface be preset value round platform.
As shown in fig. 6, θ is the angle between bus and height, r is the radius of camera lens, and the radius of R bottom surfaces is that is, described abnormal Become radius, D is the distance between the object and camera lens, the radius of bottom surface can be calculated according to equation below, that is, distort radius:
R=r+tan θ D.
Step S108:Search and be more than the distortion radius in foreground target region with the distance of the central point of target image Pixel, the regional determination that the pixel found is constituted is i.e. distorted region.
In step s 106, it is considered to during tolerance scope, tolerance scope is considered as one with target image Central point, using border circular areas of the radius as radius that distort, so, the central point of every bit in the range of tolerance to target image Distance, be bound to be less than or equal to above-mentioned distortion radius.Conversely, if certain point is more than distortion half to the distance of central point Footpath, then the point is not within the scope of above-mentioned tolerance.
Specifically, all pixels point included in traversal foreground target region, and according to the coordinate position of the pixel, meter Calculate the distance between pixel corresponding to its central point with target image.
If for example, target image (laterally has 1440 pixel columns, longitudinally there is 900 pixels for 1400*900 image OK), then the coordinate of the central point of target image is (x0,y0)=(700,450);Further, each pixel spatially institute The size accounted for is a × a (i.e. transverse width is a unit, longitudinally wide for a unit).Then coordinate is (x1,y1) pixel The distance between pixel corresponding with central point is:
Then the magnitude relationship between d and distortion radius R is judged.
If d>R, then it is (x to illustrate the coordinate1,y1) the picture that is not included in the region where tolerance scope of pixel In the set of vegetarian refreshments, i.e., in the set of the pixel included in the region where distortion range;If d>R, then illustrate the coordinate For (x1,y1) the set of pixel that is included in the region where tolerance scope of pixel in.
The all pixels point included in traversal foreground target region, in the distance of the pixel and the central point of target image During more than the distortion radius, the pixel is added in the pixel point set of distorted region, and by this gather in it is all Pixel constitute regional determination be distorted region, that is to say, that by the zone marker be distorted region.
If the pixel point set of above-mentioned distorted region is not empty set, illustrate in the foreground target region in the target image Occur in that distortion phenomenon, that is to say, that user's foreground target of concern or shooting main body occur in that abnormal in the target image Become or distortion phenomenon, then need related prompt message showing user, in the prompt message should comprising it is specific which Distortion phenomenon occurs in region, so as to be operated accordingly according to prompt message, so as to avoid shooting main body or foreground target Distort in the target image.
As shown in fig. 7, Fig. 7 illustrates the region division schematic diagram of a target image, the region that numbering is S1 is tolerant The region spent where scope, the region that numbering is S2 is the region where distortion phenomenon, and the region that numbering is S3 is foreground target Region, the region that numbering is S4 is S2 and S3 common factor, i.e. with target figure in the foreground target region found in step S108 As central point distance be more than it is described distortion radius pixel where region, i.e., described distorted region.
Further, in the present embodiment, in step S108:Search the central point with target image in foreground target region Distance be more than the pixel of the distortion radius, the regional determination that the pixel that finds is constituted is i.e. distorted region Afterwards, this method also includes step:The distorted region in the prominent displaying target image, the mode of the prominent displaying Including it is highlighted, at least one of be outlined.
Specifically, showing the image of preview on the display screen of terminal, the preview of target image is immediately carried out, in the figure As in, distorted region is protruded and is illustrated on the display screen of terminal.
For example, as shown in fig. 7, Fig. 7 displayings are the image shown on the display screen of terminal, in the feelings of S4 not for sky Under condition, the exhibition that carries out is outlined in the displayed page of the display screen of terminal to the region where the S4 of distorted region as depicted Show.
Optionally, showed on the display screen of terminal in the preview image of user, can also be by corresponding tolerance model The division displaying in the regions such as region, the foreground target region where region, distortion range where enclosing on a display screen, for Family is referred to.
It should be noted that in other embodiments, the quantity in the foreground target region included in target image can not Only one, i.e., in step s 102, after the step of obtaining the target image of camera collection, obtain in the target image At least one foreground target region.
For example, in the application scenarios shown in Fig. 2, the target image includes four prospects marked as 1,2,3,4 Target area.
Accordingly, in step S104:In the depth information for obtaining the corresponding foreground target in the foreground target region, obtain The depth information of at least one corresponding foreground target in foreground target region, that is to say, that acquisition is obtained in step s 102 The depth information of the foreground target corresponding to each foreground target region taken.In step S106:According to default linear letter Number is calculated by independent variable of the depth information of the foreground target in distortion radius corresponding with the foreground target region, is calculated Distortion radius number be also with corresponding to above-mentioned foreground target region.
That is, exist in foreground target region it is multiple in the case of, it is necessary to respectively be directed to each foreground target area Domain, obtains the depth information of its corresponding foreground target, then calculates the corresponding distortion radius of each depth information respectively again.
Accordingly, in step S108, the central point with target image in each foreground target region is also searched respectively Distance be more than it is described distortion radius pixel, judge its corresponding distorted region respectively for each foreground target region It whether there is, and during subsequently user is showed, on displaying interface, exhibition is carried out for multiple distorted regions Show.
To solve in conventional art mentioned above for the processing mode presence of the lens distortion occurred during taking pictures The excessive technical problem of amount of calculation, present invention also offers a kind of device for searching distorted region in image, the device includes Foreground target region acquisition module 102, Depth Information Acquistion module 104, distortion radius calculation module 106 and distorted region are true Cover half block 108, wherein:
Foreground target region acquisition module 102 is used for the target image for obtaining camera collection, obtains the target image In foreground target region;
Depth Information Acquistion module 104 is used for the depth information for obtaining the corresponding foreground target in the foreground target region;
The radius calculation that distorts module 106 is used for according to default linear function using the depth information of the foreground target as certainly Variable, calculates distortion radius corresponding with the foreground target region;
The distance that distorted region determining module 108 is used to search the central point in foreground target region with target image is more than The pixel of the distortion radius, the regional determination that the pixel found is constituted is distorted region.
Optionally, Depth Information Acquistion module 104 is additionally operable to obtain the foreground target region correspondence by dual camera Foreground target depth information.
Optionally, Depth Information Acquistion module 104 is additionally operable to:Choose the reference of predetermined number in the foreground target region Pixel, obtain corresponding with reference image vegetarian refreshments depth information, and calculate the depth information of all reference image vegetarian refreshments and put down Average, using the average value of the depth information of all reference image vegetarian refreshments as the corresponding foreground target in the foreground target region Depth information.
Optionally, foreground target region acquisition module 102 is additionally operable to:Obtain at least two prospects in the target image Target area;
Depth Information Acquistion module 104 is additionally operable to:It is corresponding at least that at least two foreground targets region is obtained respectively The depth information of two foreground targets;
Distortion radius calculation module 106 is additionally operable to:According to default linear function with the depth information of the foreground target For independent variable, distortion radius corresponding with least two foreground targets region is calculated respectively;
Distorted region determining module 108 is additionally operable to:Search respectively at least two foreground targets region with target figure The distance of the central point of picture is more than the pixel of the distortion radius, and the region for respectively constituting the pixel found is sentenced It is set to distorted region corresponding with least two foreground targets region.
Optionally, the device of distorted region also includes prominent display module 110 such as in Fig. 8 lookup images, for protruding Show the distorted region in the target image, the mode of the prominent displaying include it is highlighted, be outlined at least one Kind.
Implement the embodiment of the present invention, will have the advantages that:
After the method and apparatus for employing distorted region in above-mentioned lookup image, during taking pictures, for mirror Lens distortion phenomenon caused by the optics inherent characteristic of head, calculates the position where the foreground target or shooting main body of user's care The distance apart from camera lens is put, so that it is determined that the region of distortion phenomenon occurs under the distance and position, if where foreground target Region and the area coincidence that distortion phenomenon occurs, then be distorted region by the area identification, that is to say, that user is of concern Foreground target or shooting main body occur in that distortion, it is necessary to be adjusted.Compared with conventional art, it is abnormal in above-mentioned lookup image Become the method and apparatus in region during lens distortion is handled, it is to avoid carry out a series of distortion correction after imaging Calculate, reduce the amount of calculation in imaging process, improve the treatment effeciency of imaging.
Meanwhile, user can also be informed in take pictures during the distortion phenomenon that is likely to occur, and further adjusted It is whole, so as to actively go on the shooting object for avoiding distortion phenomenon from appearing in user's care, improve Consumer's Experience.
Above disclosure is only preferred embodiment of present invention, can not limit the right model of the present invention with this certainly Enclose, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

1. a kind of method for searching distorted region in image, it is characterised in that including:
The target image of camera collection is obtained, the foreground target region in the target image is obtained;
Obtain the depth information of the corresponding foreground target in the foreground target region;
According to default linear function using the depth information of the foreground target as independent variable, calculate and the foreground target region Corresponding distortion radius, wherein, R=r+tan θ D, wherein, R is distortion radius, and r is the radius of the camera lens of camera, and D is quilt The distance between object and camera lens of shooting, θ are the angle between the bus and height of cone, and cone is made with the center of circle of camera lens It is height with the distance between object and camera lens for summit;
The pixel for being more than the distortion radius in foreground target region with the distance of the central point of target image is searched, will be described The regional determination that the pixel found is constituted is distorted region.
2. the method according to claim 1 for searching distorted region in image, it is characterised in that the acquisition prospect The step of depth information of the corresponding foreground target in target area, also includes:
The depth information of the corresponding foreground target in the foreground target region is obtained by dual camera.
3. the method according to claim 1 for searching distorted region in image, it is characterised in that the acquisition prospect The step of depth information of the corresponding foreground target in target area, also includes:
The reference image vegetarian refreshments of predetermined number in the foreground target region is chosen, depth corresponding with the reference image vegetarian refreshments is obtained Information, and the average value of the depth information of all reference image vegetarian refreshments is calculated, with the depth information of all reference image vegetarian refreshments Average value is the depth information of the corresponding foreground target in the foreground target region.
4. the method according to claim 1 for searching distorted region in image, it is characterised in that the acquisition target The step of foreground target region in image, also includes:
Obtain at least two foreground target regions in the target image;
It is described obtain the corresponding foreground target in the foreground target region depth information the step of also include:Obtain respectively described The depth information of corresponding at least two foreground target at least two foreground target regions;
It is described according to default linear function using the depth information of the foreground target as independent variable, calculate with the foreground target Region it is corresponding distortion radius the step of also include:According to default linear function using the depth information of the foreground target as certainly Variable, calculates distortion radius corresponding with least two foreground targets region respectively;
It is described to search the pixel for being more than the distortion radius in foreground target region with the distance of the central point of target image, will The step of regional determination that the pixel found is constituted is distorted region also includes:
Search respectively and be more than the distortion half at least two foreground targets region with the distance of the central point of target image The pixel in footpath, be and at least two foreground targets region by the regional determination of the pixel composition found respectively Corresponding distorted region.
5. the method according to claim 1 for searching distorted region in image, it is characterised in that described to be found described Pixel constitute regional determination be distorted region the step of after also include:
The distorted region in the prominent displaying target image, the mode of the prominent displaying include it is highlighted, be outlined At least one.
6. a kind of device for searching distorted region in image, it is characterised in that including:
Foreground target region acquisition module, the target image for obtaining camera collection, before obtaining in the target image Scape target area;
Depth Information Acquistion module, the depth information for obtaining the corresponding foreground target in the foreground target region;
Distort radius calculation module, for according to default linear function using the depth information of the foreground target as independent variable, Calculate distortion radius corresponding with the foreground target region;Wherein, R=r+tan θ D, wherein, R is distortion radius, and r is to take the photograph The distance between as the radius of the camera lens of head, D is the object that is taken with camera lens, θ is the folder between the bus and height of cone Angle, cone, using the center of circle of camera lens as summit, is height with the distance between object and camera lens;
Distorted region determining module, for searching the distance in foreground target region with the central point of target image more than described abnormal Become the pixel of radius, the regional determination that the pixel found is constituted is distorted region.
7. the device according to claim 6 for searching distorted region in image, it is characterised in that the Depth Information Acquistion Module is additionally operable to:The depth information of the corresponding foreground target in the foreground target region is obtained by dual camera.
8. the device according to claim 6 for searching distorted region in image, it is characterised in that the Depth Information Acquistion Module is additionally operable to:
The reference image vegetarian refreshments of predetermined number in the foreground target region is chosen, depth corresponding with the reference image vegetarian refreshments is obtained Information, and the average value of the depth information of all reference image vegetarian refreshments is calculated, with the depth information of all reference image vegetarian refreshments Average value is the depth information of the corresponding foreground target in the foreground target region.
9. the device according to claim 6 for searching distorted region in image, it is characterised in that the foreground target region Acquisition module is additionally operable to:Obtain at least two foreground target regions in the target image;
The Depth Information Acquistion module is additionally operable to:At least two foreground targets region corresponding at least two is obtained respectively The depth information of foreground target;
The distortion radius calculation module is additionally operable to:According to default linear function using the depth information of the foreground target as certainly Variable, calculates distortion radius corresponding with least two foreground targets region respectively;
The distorted region determining module is additionally operable to:Search respectively at least two foreground targets region with target image The distance of central point is more than the pixel of the distortion radius, and the regional determination for respectively constituting the pixel found is Distorted region corresponding with least two foreground targets region.
10. the device according to claim 6 for searching distorted region in image, it is characterised in that described device also includes Prominent display module, for the distorted region in the prominent displaying target image, the mode of the prominent displaying includes It is highlighted, at least one of be outlined.
CN201510598683.XA 2015-09-18 2015-09-18 The method and device of distorted region in a kind of lookup image Expired - Fee Related CN105227948B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510598683.XA CN105227948B (en) 2015-09-18 2015-09-18 The method and device of distorted region in a kind of lookup image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510598683.XA CN105227948B (en) 2015-09-18 2015-09-18 The method and device of distorted region in a kind of lookup image

Publications (2)

Publication Number Publication Date
CN105227948A CN105227948A (en) 2016-01-06
CN105227948B true CN105227948B (en) 2017-10-27

Family

ID=54996591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510598683.XA Expired - Fee Related CN105227948B (en) 2015-09-18 2015-09-18 The method and device of distorted region in a kind of lookup image

Country Status (1)

Country Link
CN (1) CN105227948B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025638B (en) * 2017-03-28 2020-02-07 北京小米移动软件有限公司 Image processing method and device
CN110135382B (en) * 2019-05-22 2021-07-27 北京华捷艾米科技有限公司 Human body detection method and device
CN110971827B (en) * 2019-12-09 2022-02-18 Oppo广东移动通信有限公司 Portrait mode shooting method and device, terminal equipment and storage medium
CN113222862A (en) * 2021-06-04 2021-08-06 黑芝麻智能科技(上海)有限公司 Image distortion correction method, device, electronic equipment and storage medium
CN113808053A (en) * 2021-09-29 2021-12-17 华北电力大学(保定) Infrared imager and signal correction method thereof

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100465995C (en) * 2001-06-12 2009-03-04 奥普提克斯晶硅有限公司 System and method for correcting keystone distortion
JP4307934B2 (en) * 2003-08-13 2009-08-05 株式会社トプコン Imaging apparatus and method with image correction function, and imaging apparatus and method
CN101673043B (en) * 2008-09-10 2012-08-29 鸿富锦精密工业(深圳)有限公司 Wide-angle distortion testing system and method
CN101930111A (en) * 2009-06-20 2010-12-29 凤凰光学(广东)有限公司 Wide-angle lens
CN101661162B (en) * 2009-09-09 2012-06-27 谭洪舟 Distortion compensation method based on wide-angle lens
CN103124334B (en) * 2012-12-19 2015-10-21 四川九洲电器集团有限责任公司 A kind of method of lens distortion calibration
CN104657940B (en) * 2013-11-22 2019-03-15 中兴通讯股份有限公司 Distorted image correction restores the method and apparatus with analysis alarm
CN103824303A (en) * 2014-03-14 2014-05-28 格科微电子(上海)有限公司 Image perspective distortion adjusting method and device based on position and direction of photographed object
CN104200468B (en) * 2014-08-28 2017-01-18 中国矿业大学 Method for obtaining correction parameter of spherical perspective projection model

Also Published As

Publication number Publication date
CN105227948A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN109961406B (en) Image processing method and device and terminal equipment
CN105227948B (en) The method and device of distorted region in a kind of lookup image
CN105279372B (en) A kind of method and apparatus of determining depth of building
CN108600576B (en) Image processing apparatus, method and system, and computer-readable recording medium
US9325899B1 (en) Image capturing device and digital zooming method thereof
US8660309B2 (en) Image processing apparatus, image processing method, image processing program and recording medium
US9569854B2 (en) Image processing method and apparatus
US8315443B2 (en) Viewpoint detector based on skin color area and face area
EP3163535B1 (en) Wide-area image acquisition method and device
CN105453136B (en) The three-dimensional system for rolling correction, method and apparatus are carried out using automatic focus feedback
US10306165B2 (en) Image generating method and dual-lens device
CN103150715B (en) Image mosaic processing method and processing device
CN107635129B (en) Three-dimensional trinocular camera device and depth fusion method
WO2015180659A1 (en) Image processing method and image processing device
CN109360235A (en) A kind of interacting depth estimation method based on light field data
CN108510540A (en) Stereoscopic vision video camera and its height acquisition methods
WO2016155110A1 (en) Method and system for correcting image perspective distortion
CN114697623B (en) Projection plane selection and projection image correction method, device, projector and medium
KR101703013B1 (en) 3d scanner and 3d scanning method
CN105719239A (en) Image splicing method and image splicing device
US20180213156A1 (en) Method for displaying on a screen at least one representation of an object, related computer program, electronic display device and apparatus
CN111866523B (en) Panoramic video synthesis method and device, electronic equipment and computer storage medium
CN106067937A (en) Camera lens module array, image sensering device and digital zooming image interfusion method
CN105791793A (en) Image processing method and electronic device
CN110120012A (en) The video-splicing method that sync key frame based on binocular camera extracts

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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: 20171027