Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be real in a variety of forms
It applies, and is not understood as limited to embodiment set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will be comprehensively and complete
It is whole, and the design of example embodiment is comprehensively communicated to those skilled in the art.Identical appended drawing reference indicates in figure
Same or similar part, thus repetition thereof will be omitted.
Described feature, structure or characteristic can be incorporated in one or more embodiments in any suitable manner
In.In the following description, many details are provided to provide and fully understand to embodiment of the present disclosure.However,
It will be appreciated by persons skilled in the art that can be omitted with technical solution of the disclosure it is one or more in specific detail,
Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy all aspects of this disclosure.
Attached drawing is only the schematic illustrations of the disclosure, and identical appended drawing reference indicates same or similar part in figure, because
And repetition thereof will be omitted.Some block diagrams shown in the drawings not necessarily must with it is physically or logically independent
Entity is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated electricity
These functional entitys are realized in road, or these function are realized in heterogeneous networks and/or processor device and/or microcontroller device
It can entity.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and step, nor
It must be executed by described sequence.For example, the step of having can also decompose, and the step of having can merge or part merges,
Therefore the sequence actually executed is possible to change according to the actual situation.
In this specification, term "one", " one ", "the", " described " and "at least one" indicating there are one or
Multiple element/component parts/etc.;Term "comprising", " comprising " and " having " are to indicate the open meaning being included
And refer to the element in addition to listing/component part/also may be present other than waiting other element/component part/etc.;Term " the
One ", " second " and " third " etc. only use as label, are not the quantity limitations to its object.
Disclosure example embodiment is described in detail with reference to the accompanying drawing.
Fig. 1 shows the exemplary system of the image processing method or image processing apparatus that can be applied to the embodiment of the present disclosure
The schematic diagram of system framework.
As shown in Figure 1, system architecture 100 may include image acquiring device 101, terminal device 102 and 103, network 104
With server 105.Network 104 between image acquiring device 101, terminal device 102 and 103 and server 105 to provide
The medium of communication link.Network 104 may include various connection types, such as wired, wireless communication link or fiber optic cables
Etc..
Wherein the equipment that image acquiring device 101 can be any available image, image acquiring device can be for example
Video camera, the mobile phone with camera, computer etc., the disclosure is without limitation.
User can be used terminal device 102,103 and be interacted by network 104 with server 105, be disappeared with receiving or sending
Breath etc..Wherein, terminal device 102,103 can be the various electronic equipments with display screen and supported web page browsing, including
But be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, for example, to user using 102,103 institute of terminal device into
The device of row operation provides the back-stage management server supported.Back-stage management server can to the data such as the request received into
The processing such as row analysis, and processing result is fed back into terminal device.
Server 105 can for example obtain the image to be processed including target object;Server 105 can be for example described wait locate
Manage the first external contact zone of contour line and the target object that the target object is determined in image;Server 105 can
Such as the second external contact zone of the target object is determined according to the contour line and first external contact zone;Server
105 can for example correct the target object according to first external contact zone and second external contact zone, with
The target object image of acquisition standard.
It should be understood that the number of image acquiring device, terminal device, network and server in Fig. 1 is only schematic
, server 105 can be the server of an entity, can also form for multiple servers, according to actual needs, can have
There are any number of terminal device, network and server.
Fig. 2 is a kind of flow chart of image processing method shown according to an exemplary embodiment.Embodiment of the present disclosure institute
The method of offer can be by arbitrarily having the processing of the electronic equipment of calculation processing ability, such as the service in above-mentioned Fig. 1 embodiment
Device 105 and/or terminal device 102,103 are illustrated so that server 105 is executing subject as an example in the following embodiments
Illustrate, but it's not limited to that for the disclosure.
Referring to Fig. 2, the image processing method that the embodiment of the present disclosure provides be may comprise steps of.
Step S201 obtains the image to be processed including target object.
In some embodiments, can be acquired by the image acquiring device 101 in above-mentioned Fig. 1 embodiment includes target pair
The image to be processed of elephant.The image to be processed including target object of acquisition can be uploaded to service by image acquiring device 101
Device 105.
In some embodiments, the target object may include the certificates such as identity card, officer's identity card, student's identity card, can also be with
Can arbitrarily carry out taking pictures including contract, invoice etc. the object of identification.
In some embodiments, the image to be processed may be tilt, and also having in the image to be processed can
It can include some background informations, so that target can not accurately be obtained by directly carrying out the processing such as image recognition to the image to be processed
The text information and/or image information for including in object.
In the disclosure, embodiment will be illustrated so that target object is identity card as an example, but the disclosure is not
It is defined in this, the target object can be converted according to the difference of application scenarios.
Step S202 determines the contour line and the target object of the target object in the image to be processed
The first external contact zone.
In some embodiments, it is assumed that target object is identity card.If can be obtained from inclined angle shot identity card
Obtain image to be processed as shown in Figure 3.
It in some embodiments, can be based on Document Layout Analysis algorithm in the image to be processed including target object
The contour line of the middle determination target object and the first external contact zone of the target object.
In some embodiments, the Document Layout Analysis algorithm can be for example dhSegment algorithm.Wherein,
DhSegment algorithm is a kind of general deep learning method for document segmentation.
In some embodiments, determine that the algorithm principle of the contour line of the target object can using dhSegment algorithm
To be expressed as follows: carrying out two classification to each location of pixels in the image to be processed of input, that is, belong to targeted object region
Location of pixels is labeled as 1, is otherwise 0;Then using openCV, (open source computer vision library, is opened
Put source code computer vision class libraries) findContours (profile lookup) function of tool extracts the position labeled as 1 (in mesh
Mark in subject area) outer profile of pixel, corresponding contour line is obtained, then contour line determines outside the first of target object again
Connect polygon.
For the image to be processed including identity card as shown in Figure 3, openCV tool can use
The extraction of findContours function is labeled as the outer profile of 1 position (in targeted object region) pixel, obtains corresponding
Contour line 301 recycles the minAreaRect function of openCV tool to obtain first external contact zone 302 in identity card region.
In some embodiments, first external contact zone in identity card region can be rectangle, but the disclosure is not to
The shape of one external contact zone is defined.
Step S203 determines the second external of the target object according to the contour line and first external contact zone
Polygon.
In some embodiments, for the image to be processed including target object of tilt, since perspective becomes
The presence changed, above-mentioned first external contact zone generally will not be the true external contact zones of target object.
It, can be according to the contour line in identity card region for the image to be processed including identity card as shown in Figure 3
301 and first external contact zone 302 determine the second external contact zone 303.
In some embodiments, the determined according to the contour line 301 in identity card region and the first external contact zone 302
Two external contact zones 303 can be a quadrangle, but the disclosure is not defined the shape of the second external contact zone.
Step S204 carries out the target object according to first external contact zone and second external contact zone
Correction, to obtain the target object image of standard.
It in some embodiments, can be according to the first external contact zone and the second external contact zone of target object to described
Target object is corrected.For example, for the image to be processed including identity card, it can be external polygon based on first
Shape 302 and the second external contact zone 303 are corrected the identity card using perspective transformation function, to obtain the body of standard
Part card image.Wherein, perspective variation function can be warpPerspective (perspective transform) function in openCV tool.
Image processing method provided by the above embodiment, on the one hand can be external according to the contour line of target object and first
Polygon has accurately determined the second external contact zone, which is exactly that the reality of target object is external polygon
Shape;On the other hand, the image of target object can be corrected according to the first external contact zone and the second external contact zone, it can
To obtain the image of the target object of standard, be conducive to the processing accuracy for improving the subsequent image to target object.
Fig. 4 is the flow chart of another image processing method shown according to an exemplary embodiment.
In some embodiments, it is determined in embodiment illustrated in fig. 3 according to the contour line and first external contact zone
Second external contact zone of the target object may include step as shown in Figure 4.
Step S2031 is that each side of first external contact zone determines a distance respectively on the contour line
Nearest point, to be pinpointed as first.
As shown in figure 3, the contour line 301 in identity card region and first external polygon can be obtained by step shown in Fig. 2
Shape 302.
In some embodiments, be on the contour line first external contact zone each side respectively determine one
Apart from nearest point, to be pinpointed as first.
In some embodiments, for the image to be processed including identity card, it is assumed that the first external contact zone
302 be a rectangle, can be that each side of first external contact zone determines a distance recently respectively on contour line
Point, using as first fixed point.In embodiment, the first fixed point is not limited to only include a point, but the set of some points,
Such as the first external contact zone 302 of rectangle includes four edges, then four first fixed points can be determined on contour line.
In some embodiments, can multiple vertex to the first external contact zone in a certain order (for example, according to
Clockwise sequence, but it's not limited to that for the disclosure, such as can also be according to sequence counter-clockwise) be numbered, for example, it is assumed that
First external contact zone includes n side, and n is the positive integer more than or equal to 3, then can be encoded to PR [i] (i=0,1,2,
3 ..., n).Wherein the straight-line code between PR [i] and PR [(i+1) %n] is LR [i].As shown in figure 3, can be to identity card
Coding as shown in the figure is done on four vertex and four sides of first external contact zone in region, straight between vertex PR [3] and PR [0]
Line can be encoded to LR [3].
In some embodiments, the Euclidean distance DC of each point PC to straight line LR [i] on contour line, point PC can be calculated
Binary group AC=(PC, DC) is formed with corresponding distance DC.Using the distance DC in binary group AC as keyword, to binary group AC into
Row ascending sort, AC [0] [0] is exactly the point that distance LR [i] is nearest in contour line, that is, side LR [i] corresponding after sequence
One fixed point.
In some embodiments, an aforesaid operations can be carried out with true for each side of the first external contact zone
Fixed each side corresponding first pinpoints.
It, can be with as shown in figure 3, can be illustrated by taking LR [3] side of first external contact zone in identity card region as an example
Distance according to the point on contour line apart from straight line LR [3] determines first fixed point PL0 304 corresponding with side LR [3].
Step S2032 determines the second fixed point corresponding with each first fixed point respectively on the contour line.
In some embodiments, according to each side of the first external contact zone it is corresponding first fixed point can determine with it is each
Corresponding second fixed point in side.
In some embodiments, first external contact zone include the first side, first side include the first vertex and
Second vertex, so determining that the second fixed point may include step as shown in Figure 5 according to each first fixed point.
Step S20321 obtains the first fixed point corresponding with first side to first vertex and second vertex
Between first distance and second distance.
In some embodiments, first distance and second distance refer to Euclidean distance.
In some embodiments, an image coordinate system can be constructed in image to be processed, then determined above-mentioned first
Point, the first vertex and the second vertex are mapped in image coordinate system, and further calculate the first distance between them and second
Distance.For example, in figure shown in Fig. 3, can using image lower-left to be processed angular vertex as origin, using horizontal direction as abscissa,
Image coordinate system is constructed by ordinate of vertical direction.
Step S20322, if the first distance be greater than the second distance, from the contour line determine with it is described
The distance between first fixed point is greater than distance threshold and is less than the point of the first distance with the distance between first vertex
The point set of formation.
In some embodiments, if the first distance is greater than second distance, the determining and institute in the contour line
The distance between first fixed point is stated greater than distance threshold and is less than the first distance with the distance between first vertex
The point set that point is formed;If first distance is less than second distance, between determining in contour line and described first fixed point
The point set that distance is greater than distance threshold and the point that is less than the second distance with the distance between second vertex is formed.
As shown in figure 3, with PR [3] for the second vertex, calculating the first fixed point PL0 and the with vertex PR [0] for the first vertex
The first distance of one vertex PR [0] and second distance with the second vertex PR [3].Through determination, first distance is greater than second distance,
So to be determined from contour line with it is described first fixed point the distance between be greater than distance threshold and with the first vertex PR [0]
The distance between be less than the first distance point formed point set.
In some embodiments, the distance threshold can be the width R_W and height R_H of the first external contact zone R compared with
/ 5th of small person, i.e. distance threshold=min (R_W, R_H)/5.
Step S20323, from the point set it is determining with the smallest point in the distance between described first side as described the
Two fixed points.
Embodiment illustrated in fig. 5 has determined the second fixed point according to the first fixed point based on the thought approached, to facilitate subsequent second
The determination of external contact zone.
Step S2033, according to each first fixed point, the second corresponding fixed point determines each target line.
In some embodiments, it can have according to the first external contact zone that the image to be processed of target object obtains more
A side, according to fig. 2, Fig. 5 step can for the first external contact zone multiple sides determine respectively it is corresponding first fixed point and second
Fixed point.Corresponding to multiple sides by the first external contact zone first fixed point and second fixed point be respectively connected be obtained with it is multiple
The corresponding target line in side.
As shown in figure 3, LR [3] side of the first external contact zone of ID Card Image has corresponded to the first fixed point PL0 and second
PL1 305 is pinpointed, the first fixed point PL0 304 is connected with the second fixed point PL1 305 and is assured that the corresponding mesh of side LR [3]
Mark straight line LC [3] 306.
Step S2034 determines each representative points according to each target line, and determines institute according to each representative points
State the second external contact zone of target object.
In some embodiments, the first external contact zone of target object includes the first side;Wherein, according to each target
Straight line determines each representative points, including step as shown in Figure 6.
Step S20341, according to described first while it is corresponding first fixed point and second fixed point determination described first while it is corresponding
Target line.
In some embodiments, the first of the first external contact zone of above-mentioned target object while and when being not specific to some, and
It is any one side for referring to the first external contact zone.
In some embodiments, image can gradually determine the first external contact zone of target object first according to Fig.5,
Corresponding second fixed point in side, can be with by the first of the first side of the first external contact zone of target object the fixed point and the second fixed point connection
Determine the corresponding target line in the first side.
Step S20342, extends the corresponding target line in first side and first external contact zone intersects at first
Point and second point, wherein described first point intersects with first side.
In some embodiments, above-mentioned first point refer in particular to the first of above-mentioned first external contact zone while with this first while intersect
Point.
Step S20343 determines that the second point is exactly representative points corresponding with first side.
In some embodiments, determine the first of the first external contact zone while target line with this first while it is disjoint
Point is representative points.As shown in Figure 3, it is assumed that LR [3] is the first side of the first external contact zone, the first fixed point PL0 on the first side
With second fixed point PL1 determine target line and the first external contact zone intersect at two points, wherein not with first side LR [3] phase
The intersection point of friendship is exactly second point.Above-mentioned second point is exactly the corresponding representative points PQ [3] in the first side of the first external contact zone.
Embodiment illustrated in fig. 6 has easily determined target top corresponding to the first side of target object according to target line
Point.Target top corresponding to each side of the first external contact zone of target object can also be quickly determined according to the above method
Point.
In some embodiments, method has determined mesh corresponding to each side of the first external contact zone according to Fig.6,
After marking vertex, the representative points on each side are sequentially connected in order (for example, clock-wise order) and are assured that the mesh
Mark the second external contact zone of object.
With continued reference to Fig. 3, the corresponding target in the multiple sides of the first external contact zone of identity card has been determined according to the above method
Above-mentioned representative points are sequentially connected and are assured that outside the second of target object by vertex PQ [0], PQ [1], PQ [2], PQ [3]
Polygon 307 is connect, wherein four sides of two external contact zone are respectively LC [0], LC [1], LC [2], LC [3].
On the one hand the technical solution that embodiment illustrated in fig. 4 provides has determined the according to the first fixed point based on the thought approached
Two fixed points, second fixed point are conducive to the determination on the side of the second external contact zone;Another facilitate is determined according to the first fixed point and second
Point determined target line and it is further representative points have been determined, be finally determined that second is external polygon based on representative points
Shape, above-mentioned all steps are all based on the thought approached, and realize to the accurate fixed of the external contact zone of target object outer profile
Position.
Fig. 7 is the flow chart of another image processing method shown according to an exemplary embodiment.With reference to Fig. 7, this reality
The image processing method for applying example offer may include steps of.
Step S701 obtains identity card image to be processed.
With reference to Fig. 3, the image to be processed of identity card as shown in figure 3 available in some embodiments.
Step S702 determines in identity card image to be processed the contour line and identity card of the identity card
First external contact zone.
With continued reference to Fig. 3, in some embodiments, dhSegment Document Layout Analysis algorithm can be used in identity card
The contour line 301 and the first external contact zone 302 of the identity card are determined in image to be processed.
Step S703, to the side of first external contact zone according to being numbered clockwise.
In some embodiments, it can be numbered according to four sides of the clock-wise order to the rectangle.As shown in figure 3,
Above-mentioned the first external contact zone of identity card is a rectangle, is LR [i] (i according to four sides number clockwise to above-mentioned rectangle
=0,1,2,3).
Step S704 enables n be equal to the number that 1, N is equal to the side of the first external contact zone.
In some embodiments, the first external contact zone of identity card is a rectangle, so corresponding N is equal to 4.
Step S705 is that n-th of side of first external contact zone determines a distance recently on the contour line
Point, using as on n-th of side first fixed point.
Step S706 obtains the with n-th of the first vertex when corresponding first pinpoints to n-th and the second vertex
One distance and second is away from distance.
In some embodiments, first distance and second distance refer to Euclidean distance.
In some embodiments, an image coordinate system can be constructed in image to be processed, then determined above-mentioned first
Point, the first vertex and the second fixed point are mapped in image coordinate system, and further calculate the first distance between them and second
Distance.For example, in figure shown in Fig. 3, can using image lower-left to be processed angular vertex as origin, using horizontal direction as abscissa,
Image coordinate system is constructed by ordinate of vertical direction.
Step S707 is determined and the first fixed point if first distance is greater than the second distance from the contour line
The distance between be greater than distance threshold and point set that the point that is less than the first distance with the distance between the first vertex is formed.
As shown in figure 3, with PR [3] for the second vertex, calculating the first fixed point PL0 and the with vertex PR [0] for the first vertex
The first distance of one vertex PR [0] and second distance with the second vertex PR [3].Through determination, first distance is greater than second distance,
So to be determined from contour line with it is described first fixed point the distance between be greater than distance threshold and with the first vertex PR [0]
The distance between be less than the first distance point formed point set.
In some embodiments, if the first distance is greater than second distance, the determining and institute in the contour line
The distance between first fixed point is stated greater than distance threshold and is less than the first distance with the distance between first vertex
The point set that point is formed;If first distance is less than second distance, between determining in contour line and described first fixed point
The point set that distance is greater than distance threshold and the point that is less than the second distance with the distance between second vertex is formed.
In some embodiments, the distance threshold can be the width R_W and height R_H of the first external contact zone R compared with
/ 5th of small person, i.e. distance threshold=min (R_W, R_H)/5.
Step S708, from point set determine with first while the distance between it is the smallest point as n-th while second determine
Point.
Step S709, take n-th of side first pinpoint with second fixed point formation straight line and (n-1)th (if n=1,
N-1 is equal to N) intersection point on a side, using as representative points.
Step S7010, judges whether n is equal to N.If it is determined that n is equal to N, S712 is thened follow the steps;If it is determined that n etc.
N thens follow the steps S711.
Step S7011 enables n=n+1, and circulation executes step S705~S710, until judging that n is equal to N.
The corresponding representative points in each side are linked in sequence, to form the second external contact zone by step S7012.
In some embodiments, method has determined mesh corresponding to each side of the first external contact zone according to Fig.6,
After marking vertex, the representative points on each side are sequentially connected in order (for example, clock-wise order) and are assured that the mesh
Mark the second external contact zone of object.
With continued reference to Fig. 3, the corresponding target in the multiple sides of the first external contact zone of identity card has been determined according to the above method
Above-mentioned representative points are sequentially connected and are assured that outside the second of target object by vertex PQ [0], PQ [1], PQ [2], PQ [3]
Polygon 307 is connect, wherein four sides of two external contact zone are respectively LC [0], LC [1], LC [2], LC [3].
Step S7013 is based on first external contact zone, second external contact zone, uses perspective transformation function
The certificate is corrected, to obtain the certificate image of standard.
Embodiment described in Fig. 7, on the one hand, by obtaining contour line, the first external contact zone in image to be processed, be based on
Approximate algorithm can determine the second external contact zone of target object, with the real estate of target object.On the other hand, Ke Yigen
The real estate of target object is corrected according to the first external contact zone and the second external contact zone, to obtain the target of standard
The accurate positionin and correction to the target object in image to be processed may be implemented by the above method in object images.
Fig. 8 is a kind of block diagram of image processing apparatus shown according to an exemplary embodiment.Referring to Fig. 8, the device 800
It include: that image collection module 801, preprocessing module 802, the second external contact zone generation module 803 and target object image obtain
Modulus block 804.
Wherein, image collection module 801 is configurable to obtain the image to be processed including target object.Preprocessing module
802 are configurable to determine the of the contour line of the target object and the target object in the image to be processed
One external contact zone.Second external contact zone generation module 803 is configurable to according to the contour line and described first external
Polygon determines the second external contact zone of the target object.Target object image collection module 804 is configurable to basis
First external contact zone and second external contact zone correct the target object, to obtain the target of standard
Object images.
In some embodiments, as shown in figure 9, the second external contact zone generation module 803 includes: that the first fixed point determines list
Member 8031, second pinpoints determination unit 8032, target line determination unit 8033 and the second external contact zone determination unit 8034.
Wherein, the first fixed point determination unit 8031 is configurable on the contour line be first external contact zone
Each side determine one respectively apart from nearest point, using as the first fixed point.
It is corresponding with each first fixed point that second fixed point determination unit 8032 is configurable on the contour line determination respectively
Second fixed point.
Target line determination unit 8033 is configurable to be determined according to the second corresponding fixed point of each first fixed point each
Target line.
Second external contact zone determination unit 8034 is configurable to determine each representative points according to each target line,
And the second external contact zone of the target object is determined according to each representative points.
In some embodiments, first external contact zone include the first side, first side include the first vertex and
Second vertex, as shown in Figure 10, the second fixed point determination unit 8032 may include: that distance determines that subelement 80321, point set are true
Stator unit 80322 and determining second fixed point subelement 80323.
Wherein, distance determines that subelement 80321 is configurable to obtain the first fixed point corresponding with first side to institute
State the first distance and second distance between the first vertex and second vertex.
If point set determines that subelement 80322 is configurable to the first distance greater than the second distance, from institute
It states in contour line and determining to be greater than distance threshold the distance between with first fixed point and the distance between with first vertex
The point set formed less than the point of the first distance.
Determine that the determination from the point set of the second fixed point subelement 80323 is the smallest with the distance between first side
Point is as second fixed point.
In some embodiments, first external contact zone includes the first side, as shown in figure 11, the second external contact zone
Determination unit 8034 may include: that 80341, first points of determining target line subelement determines subelement 80342 and representative points
Determine subelement 80343.
Wherein it is determined that target line subelement 80341 is configurable to according to the first fixed point corresponding with first side
Target line corresponding with the second fixed point determination first side.
First point determines that subelement 80342 is configurable to extend the corresponding target line in first side and described first
External contact zone intersects at and second point at first point, wherein described first point intersects with first side.
Representative points determine that subelement 80343 is configurable to determine that the second point is exactly corresponding with first side
Representative points.
In some embodiments, first external contact zone is rectangle, and second external contact zone is quadrangle.
In some embodiments, target object image collection module 804 is also configured as external more based on described first
Side shape, second external contact zone correct the target object using perspective transformation function, to obtain the mesh of standard
Mark object images.
In some embodiments, preprocessing module 802 is also configured as: based on Document Layout Analysis algorithm it is described to
Handle the first external contact zone of contour line and the target object that the target object is determined in image.
Each functional module and above-mentioned image processing method due to the image processing apparatus 800 of the example embodiment of the disclosure
The step of example embodiment of method, is corresponding, therefore details are not described herein.
Below with reference to Figure 12, it illustrates the computer systems for the terminal device for being suitable for being used to realize the embodiment of the present application
1200 structural schematic diagram.Terminal device shown in Figure 12 is only an example, should not function to the embodiment of the present application and
Use scope brings any restrictions.
As shown in figure 12, computer system 1200 include central processing unit (CPU) 1201, can according to be stored in only
It reads the program in memory (ROM) 1202 or is loaded into random access storage device (RAM) 1203 from storage section 1208
Program and execute various movements appropriate and processing.In RAM 1203, also it is stored with system 1200 and operates required various journeys
Sequence and data.CPU 1201, ROM 1202 and RAM 1203 are connected with each other by bus 1204.Input/output (I/O) interface
1205 are also connected to bus 1204.
I/O interface 1205 is connected to lower component: the importation 1206 including keyboard, mouse etc.;Including such as cathode
The output par, c 1207 of ray tube (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section including hard disk etc.
1208;And the communications portion 1209 of the network interface card including LAN card, modem etc..Communications portion 1209 passes through
Communication process is executed by the network of such as internet.Driver 1210 is also connected to I/O interface 1205 as needed.It is detachable to be situated between
Matter 1211, such as disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 1210, so as to
In being mounted into storage section 1208 as needed from the computer program read thereon.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 1209, and/or from detachable media
1211 are mounted.When the computer program is executed by central processing unit (CPU) 1201, executes in the system of the application and limit
Above-mentioned function.
It should be noted that computer-readable medium shown in the application can be computer-readable signal media or meter
Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not
Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter
The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires
Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage
Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device,
Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey
The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this
In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited
In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can
Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for
By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include transmission unit, acquiring unit, determination unit and first processing units.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes
Obtaining the equipment can realize that function includes: to obtain the image to be processed including target object;Institute is determined in the image to be processed
State the contour line of target object and the first external contact zone of the target object;According to the contour line and described first
External contact zone determines the second external contact zone of the target object;According to outside first external contact zone and described second
It connects polygon to correct the target object, to obtain the target object image of standard.
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, the disclosure is implemented
The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a calculating equipment (can be a
People's computer, server, mobile terminal or smart machine etc.) it executes according to the method for the embodiment of the present disclosure, such as Fig. 2
Step shown in one or more.
In addition, above-mentioned attached drawing is only the schematic theory of the processing according to included by the method for disclosure exemplary embodiment
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art will readily occur to its of the disclosure after considering specification and practicing disclosure disclosed herein
His embodiment.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and the common knowledge in the art do not applied including the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
It should be understood that the disclosure is not limited to the detailed construction that there have shown, attached drawing mode or implementation method,
On the contrary, the disclosure is intended to cover various modifications and equivalence setting comprising in the spirit and scope of the appended claims.