CN106548502A - Image processing method and device - Google Patents

Image processing method and device Download PDF

Info

Publication number
CN106548502A
CN106548502A CN201611024976.8A CN201611024976A CN106548502A CN 106548502 A CN106548502 A CN 106548502A CN 201611024976 A CN201611024976 A CN 201611024976A CN 106548502 A CN106548502 A CN 106548502A
Authority
CN
China
Prior art keywords
label
frame
positional information
normal display
display conditions
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201611024976.8A
Other languages
Chinese (zh)
Other versions
CN106548502B (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201611024976.8A priority Critical patent/CN106548502B/en
Publication of CN106548502A publication Critical patent/CN106548502A/en
Application granted granted Critical
Publication of CN106548502B publication Critical patent/CN106548502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Analysis (AREA)

Abstract

A kind of image processing method provided in an embodiment of the present invention and device, belong to image real time transfer field, and methods described includes:The positional information of corresponding first label of the first frame in described image is obtained, the positional information of first label characterizes position of first label in described image;Based on the positional information of first label, judge whether first label meets normal display conditions;If it is determined that first label is unsatisfactory for the normal display conditions, default label movement rule is based on then, change the positional information of first label, so that first label meets normal display conditions, so as to solve to be modified to showing abnormal label in the picture so that the problem that label normally shows.

Description

Image processing method and device
Technical field
The present invention relates to image real time transfer field, in particular to a kind of image processing method and device.
Background technology
In image, face recognition technology is the face feature based on people, for the facial image or video flowing of input, first First judge which whether there is face, if there is face, secondly, further provide position, size and each master of each face Want the positional information of face organ.And according to these information, the identity characteristic contained in further extracting each face, and incite somebody to action Which is contrasted with known face, so as to recognize the identity of each face.
The algorithm of recognition of face frame and label mainly identifies personage's image surface and marks face by surface frame rectangle at present Frame, and personality label or attribute tags are sticked directly over surface frame rectangle, or write by the form of text box below frame Go out the facial characteristics and facial attribute for currently identifying.Corresponding label position is calculated based on traditional surface frame rectangular coordinates, But label position above frame and can only may deviate from face, cause label welt inaccurate or asking beyond image boundary Topic.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of image processing method and device, to solve in figure It is modified to showing abnormal label as in so that the problem that label normally shows.
In a first aspect, embodiments provide a kind of image processing method, described image include target site and For characterizing the frame of the target site scope, to there is label, the label is used to show to the frame frame The information that interior target site is described, methods described include obtaining the first frame corresponding first label in described image Positional information, the positional information of first label characterize position of first label in described image and are based on described first The positional information of label, judges whether first label meets normal display conditions;If it is determined that first label is discontented The foot normal display conditions, then based on default label movement rule, change the positional information of first label, so that institute State the first label and meet normal display conditions.
Second aspect, embodiments provides a kind of image processing apparatus, described image include target site and For characterizing the frame of the target site scope, to there is label, the label is used to show to the frame frame The information that interior target site is described, described device include:Label position acquiring unit, for obtaining in described image The positional information of corresponding first label of one frame, the positional information of first label characterize first label in the figure Position as in;Judging unit, for the positional information based on first label, judges whether first label just meets Normal display condition;Label position changes unit, for if it is determined that first label is unsatisfactory for the normal display conditions, then Based on default label movement rule, the positional information of first label is changed, so that first label meets normal aobvious Show condition.
A kind of image processing method and device are embodiments provided, by obtaining the first frame pair in described image The positional information of the first label answered, the positional information of first label characterize position of first label in described image Put, further according to the positional information based on first label, judge whether first label meets normal display conditions, if Judge that first label is unsatisfactory for the normal display conditions, then based on default label movement rule, modification described first The positional information of label, so that first label meets normal display conditions, it is abnormal to showing in the picture so as to solve Label be modified so that the problem that label normally shows.
Other features and advantages of the present invention will be illustrated in subsequent specification, also, are partly become from specification It is clear that or being understood by implementing the embodiment of the present invention.The purpose of the present invention and other advantages can be by saying for being write In bright book, claims and accompanying drawing, specifically noted structure is realizing and obtain.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, thus be not construed as it is right The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is a kind of structured flowchart of the electronic equipment that can be applicable in the embodiment of the present application;
The flow chart of the image processing method that Fig. 2 is provided for first embodiment of the invention;
The flow chart of the image processing method that Fig. 3 is provided for second embodiment of the invention;
Fig. 4 exceeds the first schematic diagram of image boundary for the label that second embodiment of the invention is provided;
Fig. 5 meets the first schematic diagram of normal display conditions for the label that second embodiment of the invention is provided;
Fig. 6 meets the second schematic diagram of normal display conditions for the label that second embodiment of the invention is provided;
Fig. 7 exceeds the second schematic diagram of image boundary for the label that second embodiment of the invention is provided;
The flow chart of the image processing method that Fig. 8 is provided for third embodiment of the invention
The label of the target site that Fig. 9 is provided for third embodiment of the invention blocks the first signal of other target sites Figure;
Figure 10 blocks the second schematic diagram of other target sites for the target site that third embodiment of the invention is provided;
The flow chart of the image processing method that Figure 11 is provided for fourth embodiment of the invention;
The label of the target site that Figure 12 is provided for fourth embodiment of the invention blocks showing for the label of other target sites It is intended to;
The structure chart of the image processing apparatus that Figure 13 is provided for fifth embodiment of the invention;
The structure chart of the image processing apparatus that Figure 14 is provided for sixth embodiment of the invention;
The structure chart of the image processing apparatus that Figure 15 is provided for seventh embodiment of the invention;
The structure chart of the image processing apparatus that Figure 16 is provided for eighth embodiment of the invention.
Specific embodiment
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground description, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.
It should be noted that:Similar label and letter represent similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined in individual accompanying drawing, then in subsequent accompanying drawing which further need not be defined and is explained.Meanwhile, the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that indicating or implying relative importance.
Fig. 1 is referred to, Fig. 1 shows a kind of structured flowchart of the electronic equipment 100 that can be applicable in the embodiment of the present application. The electronic equipment 100 can as user terminal, or computer or server, the user terminal can be mobile phone or Panel computer.As shown in figure 1, electronic equipment 100 can include memory 110, storage control 111, processor 112 and image Processing meanss.
Directly or indirectly electrically connect between memory 110, storage control 111,112 each element of processor, to realize The transmission or interaction of data.For example, one or more communication bus can be passed through between these elements or signal bus realizes electricity Connection.Described image processing method can be stored in the form of software or firmware (firmware) including at least one respectively Software function module in reservoir 110, software function module or computer program that for example described image processing meanss include.
Memory 110 can store various software programs and module, the image processing method that such as the embodiment of the present application is provided Method and the corresponding programmed instruction/module of device.Processor 112 by run storage software program in the memory 110 and Module, so as to perform various function application and data processing, that is, realizes the image processing method in the embodiment of the present application.Storage Device 110 can include but is not limited to random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM) is erasable Read-only storage (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Processor 112 can be a kind of IC chip, with signal handling capacity.Above-mentioned processor can be general Processor, including central processing unit (Central Processing Unit, abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;Can also be digital signal processor (DSP), special IC (ASIC), ready-made programmable Gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware components.Which can To realize or perform the disclosed each method in the embodiment of the present application, step and logic diagram.General processor can be micro- Processor or the processor can also be any conventional processors etc..
First embodiment
Refer to Fig. 2, embodiments provide a kind of image processing method, described image include target site and For characterizing the first frame of the target site scope, first frame to there is the first label, use by first label In the information that display is described to the target site in first frame, the present embodiment is directed to the abnormal display of label The handling process of condition, methods described include:
Step S200:Obtain the positional information of corresponding first label of the first frame in described image, first label Positional information characterize the position of first label in described image;
Step S210:Based on the positional information of first label, judge whether first label meets normal display Condition;
Based on step S210, the normal display conditions include at least one of following condition:
First label is not above the border of described image;And work as in described image also include the second frame and During corresponding second label of second frame, first label is not without Chong Die with second frame or with described second Corresponding second label of frame is overlapped.
Step S220:If it is determined that first label is unsatisfactory for the normal display conditions, then based on default label Movement rule, changes the positional information of first label, so that first label meets normal display conditions.
Based on step S220, if it is determined that first label is unsatisfactory for the normal display conditions, then based on default Label movement rule, changes the positional information of first label, first label is moved according to default mobile route, So that first label meets the normal display conditions.
A kind of image processing method is embodiments provided, by obtaining the first frame corresponding the in described image The positional information of one label, the positional information of first label characterize position of first label in described image, then According to the positional information based on first label, judge whether first label meets normal display conditions, if it is determined that First label is unsatisfactory for the normal display conditions, then based on default label movement rule, change first label Positional information so that first label meets normal display conditions, so as to solve in the picture to showing abnormal mark Label are modified so that the problem that label normally shows.
Second embodiment
Refer to Fig. 3, embodiments provide a kind of image processing method, described image include target site and For characterizing the first frame of the target site scope, first frame to there is the first label, use by first label In the information that display is described to the target site in first frame, the present embodiment is directed to label beyond image side The handling process on boundary, methods described include:
Step S300:Obtain the positional information of corresponding first label of the first frame in described image, first label Positional information characterize the position of first label in described image;
Step S310:Obtain the boundary coordinate of described image;
Step S320:The boundary coordinate of the first label and the boundary coordinate of described image are contrasted, if according to Comparing result judges that first label exceedes the border of described image, then judge that first label is unsatisfactory for normal show bar Part, if judging that first label is not above the border of described image according to comparing result, judges that first label is full Sufficient normal display conditions.
Step S330:If it is determined that the border that first label exceedes described image is unsatisfactory for the normal show bar Part, then based on default label movement rule, change the positional information of first label, so that first label just meets Normal display condition.
Based on step S330, if it is determined that first label is unsatisfactory for the normal display conditions, i.e., described first mark The border more than described image is signed, then based on default label movement rule, is changed the positional information of first label, is made institute State the first label to move according to default mobile route, so that first label meets the normal display conditions.
As a kind of embodiment, the present embodiment is illustrated using face as the target site below.Refer to Fig. 4, Fig. 4 exceed the first schematic diagram of image boundary for the label that second embodiment of the invention is provided, wherein, in the present embodiment In, frame and label can be square, upper left position of the face in described image, and first label is beyond described Coboundary on image, image 300, face 302, the first frame 304 of the face, point A marks are first frames Central point, point B mark be first label central point, arrow represent move clockwise or counterclockwise it is described first mark Sign.
Set up on image 300 with x as abscissa, y for ordinate coordinate system in, the boundary coordinate bag of described image Include border top left co-ordinate (a, b), border lower-left angular coordinate (a, d), border upper right angular coordinate (c, b) and the border lower right corner to sit Mark (c, d), then the borderline region of the picture is:A≤x≤c, and b≤y≤d;The border of the first label put centered on B Coordinate include the first top left co-ordinate (x1, y1), the first lower-left angular coordinate (x1, y2), the first upper right angular coordinate (x2, y1) and First bottom right angular coordinate (x2, y2), judges whether to meet a≤x1≤c, and d≤y1≤b and a≤x2≤c, d≤y2≤b, if full Foot, then the boundary coordinate of first label put centered on B is not above the border of the picture, otherwise then exceedes.It is first First, discovery, y2 can be contrasted>B, the first top left co-ordinate and the first upper right angular coordinate exceed the border of image, in such case Under, through contrasting the boundary coordinate and put centered on B first label of described image as a result, it is apparent that judging described The first label centered on B exceedes the border of described image, then judge that the first label put centered on B is unsatisfactory for normal aobvious Show condition, i.e., now normally cannot show.
Further, the positional information and default label movement rule based on first label put centered on B, repaiies Change the positional information of first label put centered on B, first label put centered on B is made according to default shifting Dynamic path movement, so that the first label put centered on B meets the normal display conditions.As a kind of embodiment, with Point centered on point A, with point A to point B as radius, with default C angles, in described in movement clockwise or counterclockwise with B being First label of heart point, wherein, default C angles can be 0 to 360 degree it is arbitrarily angled, preferably 90 degree.Preferably, may be used The positional information of the first label put centered on based on the B, calculates the first frame of the face centered on A The positional information in four orientation.Now, the first label put centered on the B is the top mark of the first frame of the face Sign, as such, it is possible to more rapidly find the label of the face for meeting normal display conditions.
Generally, meet normal for the label that second embodiment of the invention is provided incorporated by reference to reference to Fig. 4 and Fig. 5, Fig. 5 First schematic diagram of display condition, for example, according to moving direction counterclockwise, now C is 30 degree, then now put centered on B First label moves to the first label centered on B1.According to above-mentioned same contrast principle, the centered on B1 is found One label is still unsatisfactory for normal display conditions, then move again, until moving to the first label 306, meets normal show bar Part.
With reference to the of normal display conditions are met with reference to Fig. 4 and Fig. 6, Fig. 6 for the label that second embodiment of the invention is provided Two schematic diagrames, for example, according to moving direction clockwise, now C is 30 degree, then the first label movement now put centered on B To the first label centered on B2.According to above-mentioned same contrast principle, first label of the discovery centered on B2 is still not Meet normal display conditions, then move again, until moving to the first label 306, meet normal display conditions.
Fig. 7 is referred to, Fig. 7 exceeds the second schematic diagram of image boundary, institute for the label that second embodiment of the invention is provided Upper right Angle Position of the face in described image is stated, first label is built on image 300 beyond the right margin of described image It is vertical with x as abscissa, y in the coordinate system of ordinate, the boundary coordinate of described image include border top left co-ordinate (a, B), border lower-left angular coordinate (a, d), border upper right angular coordinate (c, b) and border bottom right angular coordinate (c, d), the then picture Borderline region be:A≤x≤c, and b≤y≤d;The boundary coordinate for initializing the first label includes a left side for the first label of initialization Upper angular coordinate (x3, y3), the lower-left angular coordinate (x3, y4) of the first label of initialization, the upper right angular coordinate of the first label of initialization The bottom right angular coordinate (x4, y4) of (x4, y3) and the first label of initialization, judges whether to meet a≤x3≤c, and d≤y3≤b And a≤x4≤c, d≤y4≤b, if meeting, the boundary coordinate for initializing the first label is not above the border of the picture, Otherwise then exceed.It is possible, firstly, to contrast discovery, x4>C, initializes first label of upper right angular coordinate and initialization of the first label Bottom right angular coordinate beyond the border of image, in this case, boundary coordinate and the initialization the through contrasting described image The boundary coordinate of one label is as a result, it is apparent that the first label of initialization then judges initialization first more than the border of described image Label is unsatisfactory for normal display conditions, i.e., now normally cannot show.Further, the position letter based on the first label of the initialization Breath and default label movement rule, change the positional information of the first label of the initialization, mark the initialization first Sign and move according to default mobile route, so that the first label of the initialization meets the normal display conditions.Preferably, may be used With the positional information based on the first label of the initialization, four orientation of the first frame of face described in Corresponding matching are calculated Positional information, by their the same control methods according to more than, it is found that can be quickly found and meet normal show bar First label of the initialization 306 of part.
Additionally, generally, for example, according to moving direction counterclockwise or moving direction clockwise and default mark Sign movement rule, it is found that if according to moving direction clockwise, can quickly find the mark for meeting normal display conditions Sign.It is directed in this case, can arranges, if according to any one shifting in moving direction counterclockwise or moving direction clockwise Dynamic direction, mobile angle have exceeded preset value, and preset value is preferably 90 degree, does not still find and meet normal display conditions In the case of label, at this point it is possible to select to move according to the direction contrary with original moving direction, so can be more rapidly Find the label for meeting normal display conditions.
As a kind of embodiment, when the label position for meeting the face is found, label can be shown to the people The information such as the information that face is described, such as sex, age or mood.
A kind of image processing method provided in an embodiment of the present invention, by obtaining the first frame corresponding the in described image The positional information of one label, the positional information of first label characterize position of first label in described image, then The boundary coordinate of described image is obtained, the boundary coordinate of the first label and the boundary coordinate of described image is contrasted, If judging that first label exceedes the border of described image according to comparing result, judge that first label is unsatisfactory for normally Display condition, is then based on default label movement rule, changes the positional information of first label, so that first mark Label meet normal display conditions, so as to solve label in the picture beyond the border of image when, to showing that abnormal label enters Row amendment so that the problem that label normally shows.
3rd embodiment
Fig. 8 is referred to, a kind of image processing method that third embodiment of the invention is provided, the present embodiment describe target The label at position blocks the handling process of other target sites, and methods described includes:
Step S400:Obtain the positional information of corresponding first label of the first frame in described image, first label Positional information characterize the position of first label in described image;
Step S410:Obtain the positional information of the second frame;
When also the second frame is included in described image, the positional information of second frame, second frame are obtained Positional information include the boundary coordinate of second frame;
Step S420:Boundary coordinate of the boundary coordinate of first label with second frame is contrasted, if Judge that first label is Chong Die with second frame according to comparing result, then judge that first label is unsatisfactory for normal aobvious Show condition, if judging that the first label, without Chong Die with second frame, judges that first label is full according to comparing result Sufficient normal display conditions.
Step S430:If it is determined that first label is unsatisfactory for the normal display conditions, then based on default label Movement rule, changes the positional information of first label, so that first label meets normal display conditions.
Based on step S430, if it is determined that first label is unsatisfactory for the normal display conditions, that is, work as described image In also include the second frame when, first label has Chong Die with second frame, then based on default label movement rule, The positional information of first label is changed, first label is moved according to default mobile route, so that described first Label meets the normal display conditions.
As a kind of embodiment, the present embodiment is illustrated using face as the target site below.Refer to The label of the target site that Fig. 9, Fig. 9 are provided for third embodiment of the invention blocks the first schematic diagram of other target sites, figure As 300, arrow represents moving direction counterclockwise, and what H1, H2 were represented respectively is the first frame of H1 faces, the second side of H2 faces Frame, corresponding first label of the first frame of the H1 faces 500.The positional information of the second frame of the H2 faces includes H2 Frame boundary coordinate, the positional information of corresponding first label of the first frame of the H1 faces include H1 label boundary coordinates, The H1 labels boundary coordinate is contrasted with H2 frame boundary coordinates, if judging H1 label boundary coordinates according to comparing result It is Chong Die with the H2 frames boundary coordinate, then judge that corresponding first label of the first frame of the H1 faces is unsatisfactory for normal aobvious Show condition, if judging that H1 labels boundary coordinate does not have and the H2 frames boundary coordinate lap according to comparing result, sentence Corresponding first label of first frame of the disconnected H1 faces meets normal display conditions.It is found that through comparing result, institute Corresponding first label of the first frame for stating H1 faces is unsatisfactory for normal display conditions, then based on default label movement rule, The positional information of corresponding first label of the first frame of the H1 faces is changed, so that the first frame correspondence of the H1 faces The first label meet normal display conditions, that is, be eventually found the first frame of the H1 faces for meeting normal display conditions Corresponding first label 501.
In the case of there are many target sites in image, Figure 10 is refer to, Figure 10 is provided for third embodiment of the invention The label of target site block the second schematic diagram of other target sites, the target site is face, image 300, arrow Moving direction clockwise or counterclockwise is represented, the frame of the face includes the second side of the first frame of F1 faces, F2 faces Frame, the 3rd frame of F3 faces and the 4th frame of F4 faces, corresponding 3rd label 502 of the 3rd frame of F3 faces is Corresponding 4th label 503 of 4th frame of F4 faces.The positional information of the first frame of the F1 faces includes F1 frames side Boundary's coordinate, the positional information of the second frame of the F2 faces include F2 frame boundary coordinates, the 3rd frame of the F3 faces Positional information include F3 frame boundary coordinates, the positional information of corresponding 3rd label of the 3rd frame of the F3 faces includes F3 label boundary coordinates, the positional information of the 4th frame of the F4 faces include F4 frame boundary coordinates, the F4 faces The positional information of corresponding 4th label of the 4th frame includes F4 label boundary coordinates.
Can according to certain rule from a left side do the right side obtain successively and store the F1 frames boundary coordinate, as described in F2 sides Boundary's coordinate, the F3 frames boundary coordinate, the F3 labels boundary coordinate, the F4 frames boundary coordinate and the F4 labels Boundary coordinate, these four coordinates is contrasted between any two, is obtained:The F3 labels boundary coordinate and the F1 frames border Coordinate has lap, and the F4 labels boundary coordinate has lap with the F3 frames boundary coordinate, then the F3 labels Boundary coordinate and F4 label boundary coordinates are unsatisfactory for normal display conditions.Now can come according to certain priority successively The F3 labels boundary coordinate and the F4 labels boundary coordinate are changed, so that meeting normal display conditions.According to F3 people The storage sequencing of face and F4 faces, is primarily based on default label movement rule, according to moving direction counterclockwise, changes institute F3 label boundary coordinates are stated, so that corresponding 3rd label of the 3rd frame of the F3 faces meets normal display conditions, i.e., most Corresponding 3rd label 504 of the 3rd frame of the F3 faces for meeting normal display conditions is have found afterwards;Then, based on default Label movement rule, according to moving direction clockwise, change the F4 labels boundary coordinate, so that the 4th of the F4 faces the Corresponding 4th label of frame meets normal display conditions, that is, be eventually found the F4 faces that meet normal display conditions Corresponding 4th label 505 of 4th frame.
It is appreciated that the present embodiment with the topmost difference of image processing method that second embodiment is provided is, this reality The image processing method for applying example offer is directed to the label of target site and blocks other target sites.Other data processings are former Reason is similar to the principle in second embodiment, and similarity may be referred to the content in second embodiment, in the present embodiment no longer Repeat.
A kind of image processing method provided in an embodiment of the present invention, a kind of image processing method provided in an embodiment of the present invention Method, by the positional information for obtaining corresponding first label of the first frame in described image, the positional information of first label Characterize position of first label in described image, then obtain the positional information of the second frame, by first label Positional information is contrasted with the positional information of second frame, if according to comparing result judge first label with it is described Whether the second frame overlaps, if first label has overlap with second frame, that is, judges that first label is discontented with Sufficient normal display conditions, are then based on default label movement rule, change the positional information of first label, so that described First label meets normal display conditions, when blocking other target sites so as to solve label in the picture, abnormal to showing Label be modified so that the problem that label normally shows.
Fourth embodiment
Figure 11 is referred to, a kind of image processing method that fourth embodiment of the invention is provided, the present embodiment describe mesh The label at mark position blocks the handling process of the label of other target sites, and methods described includes:
Step S500:Obtain the positional information of corresponding first label of the first frame in described image, first label Positional information characterize the position of first label in described image;
Step S510:Obtain the positional information of the second label;
Based on step S510, when also the second label corresponding including the second frame in described image, described second is obtained The positional information of label, the positional information of second label include the boundary coordinate of second label.
Step S520:It is right that the boundary coordinate of first label and the boundary coordinate of the second label frame are carried out Than if judging that first label is Chong Die with second label according to comparing result, judging that first label is unsatisfactory for Normal display conditions, if judging that first label, without Chong Die with second label, judges described according to comparing result First label meets normal display conditions.
Step S530:Based on default label movement rule, the positional information of first label is changed, so that described the One label meets normal display conditions.
Based on step S530, if it is determined that first label has the second label corresponding with second frame to overlap i.e. First label is unsatisfactory for normal display conditions, then based on default label movement rule, change the position of first label Confidence ceases, and first label is moved according to default mobile route, so that first label meets the normal display Condition.
As a kind of embodiment, the present embodiment is illustrated using face as the target site below.Refer to The label of the target site that Figure 12, Figure 12 are provided for fourth embodiment of the invention blocks the signal of the label of other target sites Figure, image 300, arrow represent moving direction clockwise, and what H3, H4 were represented respectively is the first frame of H3 faces, H4 faces Second frame, corresponding first label 506 of the first frame of the H3 faces is second frame corresponding of the H4 faces Two labels 507.The positional information of corresponding second label of the second frame of the H4 faces includes H4 label boundary coordinates, described The positional information of corresponding first label of the first frame of H3 faces includes H3 label boundary coordinates, and the H3 labels border is sat Mark is contrasted with H4 label boundary coordinates, if judging that H3 labels boundary coordinate is sat with the H4 labels border according to comparing result Indicated weight is folded, then judge that corresponding first label of the first frame of the H3 faces is unsatisfactory for normal display conditions, if according to contrast As a result judge that H3 labels boundary coordinate does not have and the H4 labels boundary coordinate lap, then judge the first of the H3 faces Corresponding first label of frame meets normal display conditions.It is found that through comparing result, the first frame of the H3 faces Corresponding first label 506 is unsatisfactory for normal display conditions, then based on default label movement rule, change the H3 faces The positional information of corresponding first label of the first frame, so that corresponding first label of the first frame of the H3 faces just meets Often display condition, that is, be eventually found corresponding first label of the first frame of the H3 faces for meeting normal display conditions 508。
It is appreciated that the present embodiment with the topmost difference of image processing method that second embodiment is provided is, this reality The image processing method for applying example offer is directed to the label of target site and blocks the label of other target sites.Other data Handling principle is similar to the principle in second embodiment, and similarity may be referred to the content in second embodiment, the present embodiment In repeat no more.
A kind of image processing method provided in an embodiment of the present invention, a kind of image processing method provided in an embodiment of the present invention Method, by the positional information for obtaining corresponding first label of the first frame in described image, the positional information of first label Characterize position of first label in described image, then obtain the positional information of the second frame, by first label Positional information is contrasted with the positional information of second label, if according to comparing result judge first label with it is described Whether the second label overlaps, if first label has overlap with second label, that is, judges that first label is discontented with Sufficient normal display conditions, are then based on default label movement rule, change the positional information of first label, so that described First label meets normal display conditions, when blocking the label of other target sites so as to solve label in the picture, to showing Abnormal label is modified so that the problem that label normally shows.
5th embodiment
Figure 13 is referred to, fifth embodiment of the invention provides a kind of image processing apparatus 600, and described image includes target Position and the first frame for characterizing the target site scope, first frame to there is the first label, described One label is used to show the information for being described the target site in first frame that described device 600 to include:
Label position acquiring unit 610, the position for obtaining corresponding first label of the first frame in described image are believed Breath, the positional information of first label characterize position of first label in described image;
Judging unit 620, for the positional information based on first label, judges whether first label just meets Normal display condition;
The normal display conditions include at least one of following condition:
First label is not above the border of described image;And work as in described image also include the second frame and During corresponding second label of second frame, first label is not without Chong Die with second frame or with described second Corresponding second label of frame is overlapped.
Label position changes unit 630, if it is described to judge that first label is unsatisfactory for for the judging unit 620 Normal display conditions, then based on default label movement rule, change the positional information of first label, so that described first Label meets normal display conditions.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit Can be stored in memory 110.Above each unit equally can be realized by hardware such as IC chip.
Sixth embodiment
Figure 14 is referred to, sixth embodiment of the invention provides a kind of image processing apparatus 700, and described image includes target Position and the first frame for characterizing the target site scope, first frame to there is the first label, described One label is used to show the information for being described the target site in first frame that described device 700 to include:
Label position acquiring unit 710, the position for obtaining corresponding first label of the first frame in described image are believed Breath, the positional information of first label characterize position of first label in described image;
Judging unit 720, for the positional information based on first label, judges whether first label just meets Normal display condition;
Used as a kind of embodiment, the positional information of first label includes the boundary coordinate of first label, institute Stating judging unit 720 includes:
Image boundary acquiring unit 721, for obtaining the boundary coordinate of described image;
First border comparison unit 722, for by the boundary coordinate of the boundary coordinate of first label and described image Contrasted, if judging that first label exceedes the border of described image according to comparing result, judged first label Normal display conditions are unsatisfactory for, if judging that first label is not above the border of described image according to comparing result, are sentenced First label that breaks meets normal display conditions.
Label position changes unit 730, if it is described to judge that first label is unsatisfactory for for the judging unit 720 Normal display conditions, then based on default label movement rule, change the positional information of first label, so that described first Label meets normal display conditions.
Used as a kind of embodiment, the label position changes unit 730, and the position for changing first label is believed Breath, makes first label move according to default mobile route, so that first label meets the normal display conditions.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit Can be stored in memory 110.Above each unit equally can be realized by hardware such as IC chip.
7th embodiment
Figure 15 is referred to, fifth embodiment of the invention provides a kind of image processing apparatus 800, and described image includes target Position and the first frame for characterizing the target site scope, first frame to there is the first label, described One label is used to show the information for being described the target site in first frame that described device 800 to include:
Label position acquiring unit 810, the position for obtaining corresponding first label of the first frame in described image are believed Breath, the positional information of first label characterize position of first label in described image;
Judging unit 820, for the positional information based on first label, judges whether first label just meets Normal display condition;
Used as a kind of embodiment, the positional information of first label includes the boundary coordinate of first label, institute Stating judging unit 820 includes:
Second bezel locations acquiring unit 821, for when also the second frame is included in described image, obtaining described second The positional information of frame, the positional information of second frame include the boundary coordinate of second frame;
The second boundary comparison unit 822, for by the border of the boundary coordinate of first label and second frame Coordinate is contrasted, if judging that first label is Chong Die with second frame according to comparing result, judges described first Label is unsatisfactory for normal display conditions, if judging that the first label, without Chong Die with second frame, is sentenced according to comparing result First label that breaks meets normal display conditions.
Label position changes unit 830, if it is described to judge that first label is unsatisfactory for for the judging unit 820 Normal display conditions, then based on default label movement rule, change the positional information of first label, so that described first Label meets normal display conditions.
Used as a kind of embodiment, the label position changes unit 830, and the position for changing first label is believed Breath, makes first label move according to default mobile route, so that first label meets the normal display conditions.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit Can be stored in memory 110.Above each unit equally can be realized by hardware such as IC chip.
8th embodiment
Figure 16 is referred to, fifth embodiment of the invention provides a kind of image processing apparatus 900, and described image includes target Position and the first frame for characterizing the target site scope, first frame to there is the first label, described One label is used to show the information for being described the target site in first frame that described device 900 to include:
Label position acquiring unit 910, the position for obtaining corresponding first label of the first frame in described image are believed Breath, the positional information of first label characterize position of first label in described image;
Judging unit 920, for the positional information based on first label, judges whether first label just meets Normal display condition;
Used as a kind of embodiment, the positional information of first label includes the boundary coordinate of first label, institute Stating judging unit 920 includes:
Second label position acquiring unit 921, also include corresponding second label of the second frame for working as in described image When, the positional information of second label is obtained, the positional information of second label includes that the border of second label is sat Mark;
3rd border comparison unit 922, for by the border of the boundary coordinate of first label and second label Coordinate is contrasted, if judging that first label is Chong Die with second label according to comparing result, judges described first Label is unsatisfactory for normal display conditions, if judging that first label is no Chong Die with second label according to comparing result, Then judge that first label meets normal display conditions.
Label position changes unit 930, if it is described to judge that first label is unsatisfactory for for the judging unit 920 Normal display conditions, then based on default label movement rule, change the positional information of first label, so that described first Label meets normal display conditions.
Used as a kind of embodiment, the label position changes unit 930, and the position for changing first label is believed Breath, makes first label move according to default mobile route, so that first label meets the normal display conditions.
It should be noted that each unit in the present embodiment can be by software code realization, now, above-mentioned each unit Can be stored in memory 110.Above each unit equally can be realized by hardware such as IC chip.

Claims (12)

1. a kind of image processing method, it is characterised in that described image includes target site and for characterizing the target portion First frame of position scope, to there is the first label, first label is used to show to first side first frame The information that the target site of inframe is described, methods described include:
The positional information of corresponding first label of the first frame in described image is obtained, the positional information of first label is characterized Position of first label in described image;
Based on the positional information of first label, judge whether first label meets normal display conditions;
If it is determined that first label is unsatisfactory for the normal display conditions, then based on default label movement rule, modification The positional information of first label, so that first label meets normal display conditions.
2. method according to claim 1, it is characterised in that the normal display conditions are included in following condition at least One:
First label is not above the border of described image;And work as During corresponding second label of the second frame, first label without it is not Chong Die with second frame or with second frame Corresponding second label is overlapped.
3. method according to claim 1, it is characterised in that the positional information of first label includes first mark The boundary coordinate of label, the positional information based on first label judge whether first label meets normal display Condition, including:
Obtain the boundary coordinate of described image;
The boundary coordinate of the first label and the boundary coordinate of described image are contrasted, if judging institute according to comparing result Border of first label more than described image is stated, then judges that first label is unsatisfactory for normal display conditions, if according to contrast As a result judge that first label is not above the border of described image, then judge that first label meets normal show bar Part.
4. method according to claim 1, it is characterised in that the positional information of first label includes first mark The boundary coordinate of label, the positional information based on first label, judges whether first label normally shows, bag Include:
When also the second frame is included in described image, the positional information of second frame, the position of second frame are obtained Confidence breath includes the boundary coordinate of second frame;
Boundary coordinate of the boundary coordinate of first label with second frame is contrasted, if being sentenced according to comparing result First label that breaks is Chong Die with second frame, then judge that first label is unsatisfactory for normal display conditions, if according to Comparing result judges that the first label without Chong Die with second frame, then judges that first label meets normal show bar Part.
5. method according to claim 1, it is characterised in that the positional information of first label includes first mark The boundary coordinate of label, the positional information based on first label judge first label whether normal display conditions, Including:
When also the second label corresponding including the second frame in described image, the positional information of second label, institute are obtained The positional information for stating the second label includes the boundary coordinate of second label;
Boundary coordinate of the boundary coordinate of first label with second label is contrasted, if being sentenced according to comparing result First label that breaks is Chong Die with second label, then judge that first label is unsatisfactory for normal display conditions, if according to Comparing result judges that first label without Chong Die with second label, then judges that first label meets normal display Condition.
6. the method according to any one of claim 1-5, it is characterised in that described based on default label movement rule, The positional information of first label is changed, so that first label meets normal display conditions, including:
The positional information of first label is changed, first label is moved according to default mobile route, so that described First label meets the normal display conditions.
7. a kind of image processing apparatus, it is characterised in that described image includes target site and for characterizing the target portion First frame of position scope, to there is the first label, first label is used to show in the frame first frame The information that is described of target site, described device includes:
Label position acquiring unit, it is for obtaining the positional information of corresponding first label of the first frame in described image, described The positional information of the first label characterizes position of first label in described image;
Judging unit, for the positional information based on first label, judges whether first label meets normal display Condition;
Label position changes unit, if judging that first label is unsatisfactory for the normal show bar for the judging unit Part, then based on default label movement rule, change the positional information of first label, so that first label just meets Normal display condition.
8. device according to claim 7, it is characterised in that the normal display conditions are included in following condition at least One:
First label is not above the border of described image;And work as During corresponding second label of the second frame, first label without it is not Chong Die with second frame or with second frame Corresponding second label is overlapped.
9. device according to claim 7, it is characterised in that the positional information of first label includes first mark The boundary coordinate of label, the judging unit include:
Image boundary acquiring unit, for obtaining the boundary coordinate of described image;
First border comparison unit is right for the boundary coordinate of first label and the boundary coordinate of described image are carried out Than if judging that first label exceedes the border of described image according to comparing result, judging that first label is unsatisfactory for Normal display conditions, if judging that first label is not above the border of described image according to comparing result, judge described First label meets normal display conditions.
10. device according to claim 7, it is characterised in that the positional information of first label includes described first The boundary coordinate of label, the judging unit include:
Second bezel locations acquiring unit, for when also the second frame is included in described image, obtaining second frame Positional information, the positional information of second frame include the boundary coordinate of second frame;
The second boundary comparison unit, is carried out for the boundary coordinate by the boundary coordinate of first label with second frame Contrast, if judging that first label is Chong Die with second frame according to comparing result, judges that first label is discontented with Sufficient normal display conditions, if judging the first label not Chong Die with second frame according to comparing result, judge described the One label meets normal display conditions.
11. devices according to claim 7, it is characterised in that the positional information of first label includes described first The boundary coordinate of label, the judging unit include:
Second label position acquiring unit, for when also corresponding second label of the second frame is included in described image, obtaining The positional information of second label, the positional information of second label include the boundary coordinate of second label;
3rd border comparison unit, is carried out for the boundary coordinate by the boundary coordinate of first label with second label Contrast, if judging that first label is Chong Die with second label according to comparing result, judges that first label is discontented with Sufficient normal display conditions, if judging that first label, without Chong Die with second label, judges institute according to comparing result State the first label and meet normal display conditions.
12. devices according to any one of claim 7-11, it is characterised in that the label position changes unit, is used for The positional information of first label is changed, first label is moved according to default mobile route, so that described first Label meets the normal display conditions.
CN201611024976.8A 2016-11-15 2016-11-15 Image processing method and device Active CN106548502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611024976.8A CN106548502B (en) 2016-11-15 2016-11-15 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611024976.8A CN106548502B (en) 2016-11-15 2016-11-15 Image processing method and device

Publications (2)

Publication Number Publication Date
CN106548502A true CN106548502A (en) 2017-03-29
CN106548502B CN106548502B (en) 2020-05-15

Family

ID=58394829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611024976.8A Active CN106548502B (en) 2016-11-15 2016-11-15 Image processing method and device

Country Status (1)

Country Link
CN (1) CN106548502B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101253759A (en) * 2005-05-30 2008-08-27 富士胶片株式会社 Album creating apparatus, album creating method and computer readable medium
CN102057394A (en) * 2008-04-18 2011-05-11 谷歌公司 Content item placement
CN102193795A (en) * 2010-03-12 2011-09-21 国际商业机器公司 Layout converter, layout conversion program, and layout conversion method
JP2011248267A (en) * 2010-05-31 2011-12-08 Bridgestone Corp Panel for information display
CN103513890A (en) * 2012-06-28 2014-01-15 腾讯科技(深圳)有限公司 Method and device for interaction based on image and server
CN103941963A (en) * 2014-04-29 2014-07-23 福建星网视易信息系统有限公司 Method and device for automatically adjusting page layout
CN104407876A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Method and device for displaying labeling control element
CN104503682A (en) * 2014-11-07 2015-04-08 联发科技(新加坡)私人有限公司 Method for processing screen display window and mobile terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101253759A (en) * 2005-05-30 2008-08-27 富士胶片株式会社 Album creating apparatus, album creating method and computer readable medium
CN102057394A (en) * 2008-04-18 2011-05-11 谷歌公司 Content item placement
CN102193795A (en) * 2010-03-12 2011-09-21 国际商业机器公司 Layout converter, layout conversion program, and layout conversion method
JP2011248267A (en) * 2010-05-31 2011-12-08 Bridgestone Corp Panel for information display
CN103513890A (en) * 2012-06-28 2014-01-15 腾讯科技(深圳)有限公司 Method and device for interaction based on image and server
CN103941963A (en) * 2014-04-29 2014-07-23 福建星网视易信息系统有限公司 Method and device for automatically adjusting page layout
CN104503682A (en) * 2014-11-07 2015-04-08 联发科技(新加坡)私人有限公司 Method for processing screen display window and mobile terminal
CN104407876A (en) * 2014-12-15 2015-03-11 北京国双科技有限公司 Method and device for displaying labeling control element

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TATZGERN, MARKUS 等: "Hedgehog Labeling: View Management Techniques for External Labels in 3D Space", 《2014 IEEE VIRTUAL REALITY》 *

Also Published As

Publication number Publication date
CN106548502B (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US10444962B2 (en) Displaying an image on an irregular screen
CN109992226B (en) Image display method and device and spliced display screen
US7751627B2 (en) Image dominant line determination and use
EP1678605A1 (en) Automatic generation of user interface descriptions through sketching
CN110675940A (en) Pathological image labeling method and device, computer equipment and storage medium
WO2021164251A1 (en) Image annotation task pre-verification method and apparatus, device, and storage medium
CN110738598A (en) Image adaptation method, electronic device and storage medium
CN110853488A (en) POI (Point of interest) label display method, device and equipment
CN110989880B (en) Interface element processing method and device and readable storage medium
CN106548502A (en) Image processing method and device
CN112385199B (en) Display control method and related product
CN116168192A (en) Image detection area determination method and device, electronic equipment and storage medium
CN113486941B (en) Live image training sample generation method, model training method and electronic equipment
CN110264401A (en) Continuous type image magnification method, device and storage medium based on radial basis function
CN115840550A (en) Angle-adaptive display screen display method, device and medium
CN111507139A (en) Image effect generation method and device and electronic equipment
TW202032448A (en) Automatic patent drawings displaying device for displaying drawings of patent document
CN110825989A (en) Picture display method and device, electronic equipment and readable medium
CN111429549B (en) Route image generation method, device and storage medium
CN115035129A (en) Goods identification method and device, electronic equipment and storage medium
CN112114656A (en) Image processing method, device and equipment based on airflow and storage medium
CN107688427B (en) Image display method and device
CN111860492A (en) License plate inclination correction method and device, computer equipment and storage medium
CN116932120B (en) Method and device for zooming visual page of map base map and electronic equipment
CN112699263B (en) AI-based two-dimensional art image dynamic display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant