[go: up one dir, main page]

CN110519515A - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN110519515A
CN110519515A CN201910814845.7A CN201910814845A CN110519515A CN 110519515 A CN110519515 A CN 110519515A CN 201910814845 A CN201910814845 A CN 201910814845A CN 110519515 A CN110519515 A CN 110519515A
Authority
CN
China
Prior art keywords
subject
imaging
blocked
determined
edge detection
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
CN201910814845.7A
Other languages
Chinese (zh)
Other versions
CN110519515B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201910814845.7A priority Critical patent/CN110519515B/en
Publication of CN110519515A publication Critical patent/CN110519515A/en
Application granted granted Critical
Publication of CN110519515B publication Critical patent/CN110519515B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

This application discloses a kind of information processing method and electronic equipments, determine the first imaging of the subject of display, edge detection is carried out to the subject in the first imaging, determine integrality of the subject in the first imaging, determine that the first part of subject in the first imaging is blocked, it is filled by first part of the second part to the subject in the first imaging, subject is presented completely in the first imaging, second part is the part for meeting first condition on subject with the incidence relation of first part.This programme passes through in the first imaging for showing subject, if subject has part to be blocked in the first imaging, then the part that is blocked is filled by meeting the part of first condition with the incidence relation for the part that is blocked, so that subject can be completely presented, subject incomplete situation in the first imaging is avoided.

Description

A kind of information processing method and electronic equipment
Technical field
This application involves control field more particularly to a kind of information processing methods and electronic equipment.
Background technique
When taking pictures to object, due to other objects to subject block cause subject first at As imperfect.
Summary of the invention
In view of this, the application provides a kind of information processing method and electronic equipment, concrete scheme are as follows:
A kind of information processing method, comprising:
Determine the first imaging of the subject of display;
Edge detection is carried out to the subject in first imaging, determines the subject described Integrality in first imaging;
Determine that the first part of subject described in first imaging is blocked, by second part to described the The first part of the subject in one imaging is filled, and keeps the subject complete in first imaging Whole presentation, the second part are the portions for meeting first condition on the subject with the incidence relation of the first part Point.
Further, further includes:
Be blocked part if determining that the subject exists in first imaging by edge detection, determine described in By the consistency of part and the part that is blocked determined by the edge detection that human body blocks in first imaging;
If it is determined that by the part that human body blocks and the portion that is blocked determined by the edge detection in first imaging It is point consistent, determine described in the part that is blocked be first part.
Further, the second part is to meet the with the incidence relation of the first part on the subject The part of one condition, comprising:
The second part is part adjacent with the first part on the subject;
Or,
The second part is to be determined on the subject according to the background image rule of the subject It is the part in same background region with the first part.
Further, the first imaging of the subject of the determining display, comprising:
Determine the first imaging of subject in the view-finder of the electronic equipment of display;
Or,
Determine the first imaging of the subject of the electronic equipment storage of display.
Further, if the first of the subject is imaged as of subject in the view-finder of electronic equipment One imaging, it is described to be filled by first part of the second part to the subject in first imaging, make The subject is completely presented in first imaging, comprising:
It is filled by first part of the second part to the subject in first imaging, so that institute State the first imaging that the subject after the second part is filled in electronic equipment storage;
Or,
If the first of the subject is imaged as the first imaging of the subject of electronic equipment storage, described logical It crosses second part to be filled the first part of the subject in first imaging, makes the subject It is completely presented in first imaging, comprising:
It is filled by first part of the second part to the subject in first imaging, with determination Second imaging, second imaging are in the figure completely presented according to the determining subject of first imaging Picture.
Further, the first part of subject described in the determination first imaging is blocked, comprising:
Determine the object type and body form of the subject;
The content blank parts for determining the subject determine the quilt of subject described in first imaging Whether shield portions are located at the content blank parts;
If the part that is blocked of subject described in first imaging is located at the content blank parts, institute is determined The part that is blocked for stating subject is first part.
A kind of electronic equipment, comprising:
Display screen is shown for the first imaging to subject;
Processor determines described clapped for carrying out edge detection to the subject in first imaging Take the photograph integrality of the object in first imaging;Determine that the first part of subject described in first imaging is hidden Gear is filled by first part of the second part to the subject in first imaging, makes described clapped Take the photograph object it is described first imaging in completely present, the second part be on the subject with the first part Incidence relation meets the part of first condition.
Further, the processor is also used to:
Be blocked part if determining that the subject exists in first imaging by edge detection, determine described in By the consistency of part and the part that is blocked determined by the edge detection that human body blocks in first imaging;If it is determined that institute It states in the first imaging and part is blocked unanimously with what is determined by the edge detection by the part that human body blocks, determine the quilt Shield portions are first part.
Further, further includes:
Image collecting device, for acquiring the first imaging of subject described in the view-finder of the electronic equipment;
Or,
Memory, for storing the first imaging of the subject.
Further, the processor determines that the first part of subject described in first imaging is blocked, Include:
The processor determines the object type and body form of the subject, determines the subject Content blank parts, determine whether the part that is blocked of subject described in first imaging is located at the content blank Part;If being blocked for subject described in first imaging is partially located at the content blank parts, described in determination The part that is blocked of subject is first part.
A kind of storage medium, at least storing one group of instruction set;
Described instruction collection is for called and at least execution any one as above information processing method.
A kind of information processing unit, comprising: determination unit, detection unit and fills unit, in which:
First imaging of subject of the determination unit for determining display;
The detection unit be used for it is described first imaging in the subject carry out edge detection, determine described in Integrality of the subject in first imaging;
The fills unit is used to determine that the first part of subject described in first imaging to be blocked, and passes through Second part is filled the first part of the subject in first imaging, and the subject is made to exist It is completely presented in first imaging, the second part is the incidence relation on the subject with the first part Meet the part of first condition.
It can be seen from the above technical proposal that information processing method disclosed in the present application and electronic equipment, determine display First imaging of subject carries out edge detection to the subject in the first imaging, determines subject the Integrality in one imaging, determines that the first part of subject in the first imaging is blocked, by second part to first The first part of subject in imaging is filled, and subject is presented completely in the first imaging, and second Dividing is the part for meeting first condition on subject with the incidence relation of first part.This programme in display by being taken When the first imaging of object, if subject has part to be blocked in the first imaging, by being associated with the part that is blocked The part that relationship meets first condition is filled the part that is blocked, so that subject can be completely presented, keeps away Subject incomplete situation in the first imaging is exempted from.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of information processing method disclosed in the embodiment of the present application;
Fig. 2 is the only signal of a part including subject in the imaging of one kind first disclosed in the embodiment of the present application Figure;
Fig. 3 is the schematic diagram that subject is blocked in the imaging of one kind first disclosed in the embodiment of the present application;
Fig. 4 is a kind of relational graph being blocked between part and first part disclosed in the embodiment of the present application;
Fig. 5 is a kind of flow chart of information processing method disclosed in the embodiment of the present application;
Fig. 6 is a kind of flow chart of information processing method disclosed in the embodiment of the present application;
Fig. 7 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Present embodiment discloses a kind of information processing method, flow chart is as shown in Figure 1, comprising:
Step S11, the first imaging of the subject of display is determined;
It is imaged in the display screen display first of electronic equipment, the first imaging is acquired to the image of subject The imaging for being in.
Wherein, the first imaging can be with are as follows: the current institute's acquired image of image collecting device, only by acquired image Display on a display screen, but is stored in the memory of electronic equipment not yet, determines the first imaging at this time, i.e., it is shown that The first imaging of subject directly will place after carrying out subsequent processing to the first imaging in the view-finder of electronic equipment Image after reason is saved, and does not save the first imaging;
First imaging can be with are as follows: the first imaging of the subject stored in the memory of electronic equipment, i.e., To Image Acquisition to image saved, first imaging be to be recalled from the memory of electronic equipment and be shown in display screen On image, be further continued for carrying out subsequent processing later, after subsequent processing is completed, on the basis for saving treated the second image On, the first image is still stored in memory as original image, wherein the second image is determining according to the first imaging The image that subject is completely presented.At this point, there are also the images after handling for the original image that has stored in memory, with side Just two images are compared, to search in treated image whether have unmatched region.
Step S12, edge detection is carried out to the subject in the first imaging, determines subject in the first imaging In integrality;
First imaging is shot to subject, still, except subject is external in the first imaging, Other objects are also had, such as: other people or object, alternatively, background image etc..
To first imaging in subject carry out edge detection, with determine subject first imaging in whether Completely.
Specifically, can determine whether edge line of the subject in the first imaging can close by edge detection It closes, if edge line of the subject in the first imaging is a closed line, shows subject in the first imaging For a complete image;
If edge line of the subject in the first imaging cannot be closed, show subject in the first imaging In be incomplete image, at this point, first imaging may only include subject a part, as shown in Fig. 2, first imaging 21, the subject 22 in the first imaging 21 is only a part, and the subject and imperfect in the first imaging 21 causes The edge detection results of subject 22 show that subject is imperfect in the first imaging;It may also be in the first imaging Subject is blocked by other objects, as shown in figure 3, the subject 32 in the first imaging 31 is hidden by other objects 33 Gear, causes the edge detection results of subject 32 to show that subject is imperfect in the first imaging.
Step S13, determine that the first part of subject in the first imaging is blocked, by second part to the first one-tenth The first part of subject as in is filled, and subject is presented completely in the first imaging, second part It is the part for meeting first condition on subject with the incidence relation of first part.
When being determined that subject is imperfect in the first imaging, need to further determine that whether subject is hidden Gear can be judged by carrying out the testing result that edge detection obtains to subject, specifically, to subject Edge detection is carried out, if whether the not closed part in edge for the subject that detection obtains is located at the edge of the first imaging, If the not closed part in the edge of subject is positioned at the edge of the first imaging, then it is assumed that subject is in the first imaging In do not shot completely, first imaging in only have taken a part of subject;If detecting obtained subject The not closed part in edge is not at the edge of the first imaging, then it is assumed that subject is to be blocked, and is not to be taken It arrives.
It if finally determining that subject is blocked in the first imaging, and is that the first part of subject is hidden When gear, just directly first part is filled by the second part of subject, so that being taken in the first imaging Object realizes integrality of the subject in the first imaging to the filling of first part by second part.
Specifically, determining that subject is blocked in the first imaging, at this point, determining the feature for the part that is blocked, such as Even if fruit is blocked, part keeps being blocked state, will not to subject in the first imaging it is to be expressed in have It influences, it is possible to determine that the part that is blocked is first part, i.e. first part are as follows: even at the state of being blocked, also not Can on subject in the first imaging the influential part of content to be expressed.
Wherein, first part can be with specifically: blank parts, the i.e. not no part of substantive content;Alternatively, have content, but Being will not content to be expressed has an impact in the first imaging to subject;Alternatively, it is confirmable, with other not by Shield portions are the part of duplicate contents.
And second part is the part for meeting first condition on subject with the incidence relation of first part, even A part is blank parts, then, second part is blank parts identical with first part;If first part be have content but Be will not on subject in the first imaging the influential part of content to be expressed, then, second part can be Part on subject after this is partially filled with first part, forms apparent boundary with first part, to prompt user should First part filled with second part is the part being filled, rather than the original contents at first part position;If first Be divided into it is confirmable, with other be not blocked part be duplicate contents parts, then, second part be in first part Hold duplicate part, so that the first part after filling second part is effectively connected with front and back, linking part is without obvious boundary.
The first part of subject in the first imaging is filled by second part, it can be with specifically: will The second part that region area and everywhere radius are significantly greater than first part is directly placed at the upper surface of first part, later will Second part is cut along the boundary line of first part, with obtain with the identical region in the region of first part, be used to Cover first part.
In addition, first part can be the part of the part that is blocked greater than subject, as shown in figure 4, the first one-tenth Picture 41, subject 42, first part 43 and the part 44 that is blocked, wherein the part 44 that is blocked is the arc shade in Fig. 4 Part, first part 43 are the dotted line dash areas in Fig. 4.First part is completely covered the part that is blocked, also, even if Make first part that the part that is blocked be completely covered, subject content to be expressed can't also be impacted.
It should be noted that be filled by first part of the second part to the subject in the first imaging, It can be filled specifically by be blocked part of the second part to the subject in the first imaging, and first part In other parts in addition to the part that is blocked then be not necessarily to fill.
Information processing method disclosed in the present embodiment determines the first imaging of the subject of display, is imaged to first In subject carry out edge detection, determine subject first imaging in integrality, determine in the first imaging The first part of subject is blocked, and is carried out by first part of the second part to the subject in the first imaging Subject is presented completely in the first imaging in filling, and second part is to be associated on subject with first part Relationship meets the part of first condition.This programme by show subject first imaging when, if first imaging in quilt Shooting object has part to be blocked, then is blocked by the part for meeting first condition with the incidence relation for the part that is blocked to this Part is filled, so that subject can be completely presented, it is imperfect in the first imaging to avoid subject The case where.
Present embodiment discloses a kind of information processing method, flow chart is as shown in Figure 5, comprising:
Step S51, the first imaging of the subject of display is determined;
Step S52, edge detection is carried out to the subject in the first imaging, determines subject in the first imaging In integrality;
If step S53, determining that subject has the part that is blocked in the first imaging by edge detection, first is determined By the consistency of part and the part that is blocked determined by edge detection that human body blocks in imaging;
Step S54, if it is determined that by the part that human body blocks and the portion that is blocked determined by edge detection in the first imaging Divide unanimously, determines that the part that is blocked is first part;
Edge detection is carried out to the subject in the first imaging by edge detection first, to determine the portion that is blocked Point, it is whether accurate in order to further determine the testing result of the edge detection, therefore, it is further added by a determination and is blocked part Detection process, that is, determine in the first imaging by part that human body blocks with pass through the consistent of the part that is blocked that edge detection determines Property.
Specifically, determining the first imaging by human body component detection after determining the part that is blocked by edge detection It is middle by human body shield portions, compare by edge detection determine being blocked part and by human body component detection determination first It is whether consistent by human body shield portions in imaging, if unanimously, showing the inspection of the part that is blocked determined by edge detection It is accurate to survey result, the part that is blocked directly is determined as first part;If the testing result of two kinds of detection modes is inconsistent, It can then continue to be detected using the third detection mode, alternatively, carrying out respectively again using above two detection mode primary Detection, to further determine whether to go wrong in detection process.
Wherein, human body component detection can be specially skin detection, that is, detect the texture in the first imaging on subject Whether with the consistent part of dermatoglyph, will be determined as detecting determining quilt by human body component with the consistent part of dermatoglyph Shield portions, wherein subject be it is non-human, if subject is also human body, cannot using human body at Sorting, which is surveyed, determines the part that is blocked.
Such as: shooting one name cards, and this name cards be held with a hand by people, then, first imaging in include business card, Including manpower, and the part that manpower is contacted with business card is the part that is blocked of subject, can by human body component detection To determine the position of hand, and people is when holding business card, and grip portions are and need that is shot have content part unrelated certainly Part, such as blank parts, then, then other blank parts that can directly select an on piece, which will be blocked, to be partially filled with, so that The business card obtained in the first imaging is complete.
Step S55, it is filled by first part of the second part to the subject in the first imaging, makes to be clapped It takes the photograph object completely to present in the first imaging, second part is to meet first with the incidence relation of first part on subject The part of condition.
When being filled by second part to first part, second part be on subject with first part Incidence relation meets the part of first condition, specifically, second part can be with are as follows: adjacent with first part on subject Part, alternatively, second part be on subject according to the background image rule of subject determine and first part For the part in same background region.
Wherein, first part can be the part that is blocked, i.e., the shape, size of first part and area with the portion of being blocked Point completely the same, what the content for the part that no matter is blocked is, is directly filled into the adjacent second part in the part that is blocked Be blocked part, can at least make subject consistent in the background color tone of first part, and filling is coordinated.
If first part is sleazy blank parts, second part adjacent thereto is also sleazy blank Part is after first part is filled, will not have any influence to the imaging of subject by second part.
Furthermore it is also possible to are as follows: second part be determined on subject according to the background image rule that is taken with First part is the part in same background region, specifically, after display screen shows the first imaging, by quilt in the first imaging The analysis for shooting object, can determine the distribution rule of background image in subject, be advised according to the distribution of the background image Then, the background image of the first part being blocked can be determined, at this point, can be directly by background image and be blocked first Point the consistent second part of background image be filled into first part, thus ensure that subject after the treatment at The perfect harmony property of background image as in.
Information processing method disclosed in the present embodiment determines the first imaging of the subject of display, is imaged to first In subject carry out edge detection, determine subject first imaging in integrality, determine in the first imaging The first part of subject is blocked, and is carried out by first part of the second part to the subject in the first imaging Subject is presented completely in the first imaging in filling, and second part is to be associated on subject with first part Relationship meets the part of first condition.This programme by show subject first imaging when, if first imaging in quilt Shooting object has part to be blocked, then is blocked by the part for meeting first condition with the incidence relation for the part that is blocked to this Part is filled, so that subject can be completely presented, it is imperfect in the first imaging to avoid subject The case where.
Present embodiment discloses a kind of information processing method, flow chart is as shown in Figure 6, comprising:
Step S61, the first imaging of the subject of display is determined;
Step S62, edge detection is carried out to the subject in the first imaging, determines subject in the first imaging In integrality;
Step S63, the object type and body form of subject are determined;
Step S64, the content blank parts for determining subject determine being blocked for subject in the first imaging Whether part is located at content blank parts;
If step S65, the part that is blocked of subject is located at content blank parts in the first imaging, determination is taken The part that is blocked of object is first part;
When determining that subject has part to be blocked by edge detection, to determine the part being blocked, then it can be with By determining the object type and body form of subject, since subject is presented in the first imaging, then can To determine the type and its conventional shape of the subject by the subject not being blocked in the first imaging.Example Such as: subject is business card, mobile phone, can be determined by the imaging to subject, determine to be clapped After taking the photograph the type of object, the quilt is determined in the part not being blocked in the type and subject further according to subject Shoot the shape of object.
After the type and shape of the clearly subject, the subject can be determined by the training to routine data The content blank parts and content concentrated part of body, such as: the content concentrated part of business card is usually in intermediate region, or a left side Side, and therefore the left side of business card and intermediate region are determined as content concentrated part by right side usually not substantive content, right side It is determined as content blank parts.
If it is partially to be located at content blank parts that subject, which is blocked, in the first imaging, it is possible to directly The part that is blocked for determining subject is first part, at this point, first part is content blank parts, then, herein On the basis of, second part is also content blank parts;
If it is partially to be located at content concentrated part that subject, which is blocked, in the first imaging, it is possible to determine Content type on the subject, such as: usually someone will name, post, phone and Business Names on a name cards, if The part that is blocked is any one in name, post or phone, then can be searched and be hidden by way of network data query The relevant information of stopper point, such as: post is blocked, then can search the name by Business Name and the phone is corresponding The post of personage is filled with later to the part that is blocked.It should be noted that when the part that is blocked is content concentrated part When other types content part, it can also be searched by this lookup mode.
It therefore, can basis if it is partially to be located at content concentrated part that subject, which is blocked, in the first imaging The content type of content concentrated part determines the interior of part that be blocked by the content of the content type of other parts that are not blocked Hold the content of type.
Step S66, it is filled by first part of the second part to the subject in the first imaging, makes to be clapped It takes the photograph object completely to present in the first imaging, second part is to meet first with the incidence relation of first part on subject The part of condition.
Information processing method disclosed in the present embodiment determines the first imaging of the subject of display, is imaged to first In subject carry out edge detection, determine subject first imaging in integrality, determine in the first imaging The first part of subject is blocked, and is carried out by first part of the second part to the subject in the first imaging Subject is presented completely in the first imaging in filling, and second part is to be associated on subject with first part Relationship meets the part of first condition.This programme by show subject first imaging when, if first imaging in quilt Shooting object has part to be blocked, then is blocked by the part for meeting first condition with the incidence relation for the part that is blocked to this Part is filled, so that subject can be completely presented, it is imperfect in the first imaging to avoid subject The case where.
Present embodiment discloses a kind of electronic equipment, structural schematic diagram as shown in fig. 7, comprises:
Display screen 71 and processor 72.
Display screen 71 is used to show the first imaging of subject;
Processor 72 is used to carry out edge detection to the subject in the first imaging, determines subject first Integrality in imaging;Determine that the first part of subject in the first imaging is blocked, by second part to the first one-tenth The first part of subject as in is filled, and subject is presented completely in the first imaging, second part It is the part for meeting first condition on subject with the incidence relation of first part.
It is imaged in the display screen display first of electronic equipment, the first imaging is acquired to the image of subject The imaging for being in.
Wherein, the first imaging can be with are as follows: the current institute's acquired image of image collecting device, only by acquired image Display on a display screen, but is stored in the memory of electronic equipment not yet, determines the first imaging at this time, i.e., it is shown that The first imaging of subject directly will place after carrying out subsequent processing to the first imaging in the view-finder of electronic equipment Image after reason is saved, and does not save the first imaging;
First imaging can be with are as follows: the first imaging of the subject stored in the memory of electronic equipment, i.e., To Image Acquisition to image saved, first imaging be to be recalled from the memory of electronic equipment and be shown in display screen On image, be further continued for carrying out subsequent processing later, after subsequent processing is completed, on the basis for saving treated the second image On, the first image is still stored in memory as original image, wherein the second image is determining according to the first imaging The image that subject is completely presented.At this point, there are also the images after handling for the original image that has stored in memory, with side Just two images are compared, to search in treated image whether have unmatched region.
First imaging is shot to subject, still, except subject is external in the first imaging, Other objects are also had, such as: other people or object, alternatively, background image etc..
To first imaging in subject carry out edge detection, with determine subject first imaging in whether Completely.
Specifically, can determine whether edge line of the subject in the first imaging can close by edge detection It closes, if edge line of the subject in the first imaging is a closed line, shows subject in the first imaging For a complete image;
If edge line of the subject in the first imaging cannot be closed, show subject in the first imaging In be incomplete image, at this point, first imaging may only include subject a part, as shown in Fig. 2, first imaging 21, the subject 22 in the first imaging 21 is only a part, and the subject and imperfect in the first imaging 21 causes The edge detection results of subject 22 show that subject is imperfect in the first imaging;It may also be in the first imaging Subject is blocked by other objects, as shown in figure 3, the subject 32 in the first imaging 31 is hidden by other objects 33 Gear, causes the edge detection results of subject 32 to show that subject is imperfect in the first imaging.
When being determined that subject is imperfect in the first imaging, need to further determine that whether subject is hidden Gear can be judged by carrying out the testing result that edge detection obtains to subject, specifically, to subject Edge detection is carried out, if whether the not closed part in edge for the subject that detection obtains is located at the edge of the first imaging, If the not closed part in the edge of subject is positioned at the edge of the first imaging, then it is assumed that subject is in the first imaging In do not shot completely, first imaging in only have taken a part of subject;If detecting obtained subject The not closed part in edge is not at the edge of the first imaging, then it is assumed that subject is to be blocked, and is not to be taken It arrives.
It if finally determining that subject is blocked in the first imaging, and is that the first part of subject is hidden When gear, just directly first part is filled by the second part of subject, so that being taken in the first imaging Object realizes integrality of the subject in the first imaging to the filling of first part by second part.
Specifically, determining that subject is blocked in the first imaging, at this point, determining the feature for the part that is blocked, such as Even if fruit is blocked, part keeps being blocked state, will not to subject in the first imaging it is to be expressed in have It influences, it is possible to determine that the part that is blocked is first part, i.e. first part are as follows: even at the state of being blocked, also not Can on subject in the first imaging the influential part of content to be expressed.
Wherein, first part can be with specifically: blank parts, the i.e. not no part of substantive content;Alternatively, have content, but Being will not content to be expressed has an impact in the first imaging to subject;Alternatively, it is confirmable, with other not by Shield portions are the part of duplicate contents.
And second part is the part for meeting first condition on subject with the incidence relation of first part, even A part is blank parts, then, second part is blank parts identical with first part;If first part be have content but Be will not on subject in the first imaging the influential part of content to be expressed, then, second part can be Part on subject after this is partially filled with first part, forms apparent boundary with first part, to prompt user should First part filled with second part is the part being filled, rather than the original contents at first part position;If first Be divided into it is confirmable, with other be not blocked part be duplicate contents parts, then, second part be in first part Hold duplicate part, so that the first part after filling second part is effectively connected with front and back, linking part is without obvious boundary.
The first part of subject in the first imaging is filled by second part, it can be with specifically: will The second part that region area and everywhere radius are significantly greater than first part is directly placed at the upper surface of first part, later will Second part is cut along the boundary line of first part, with obtain with the identical region in the region of first part, be used to Cover first part.
In addition, first part can be the part of the part that is blocked greater than subject, as shown in figure 4, the first one-tenth Picture 41, subject 42, first part 43 and the part 44 that is blocked, wherein the part 44 that is blocked is the arc shade in Fig. 4 Part, first part 43 are the dotted line dash areas in Fig. 4.First part is completely covered the part that is blocked, also, even if Make first part that the part that is blocked be completely covered, subject content to be expressed can't also be impacted.
It should be noted that be filled by first part of the second part to the subject in the first imaging, It can be filled specifically by be blocked part of the second part to the subject in the first imaging, and first part In other parts in addition to the part that is blocked then be not necessarily to fill.
Further, processor 72 is also used to:
Determining that subject when the first imaging exists and is blocked part, determines in the first imaging by edge detection By the consistency of part and the part that is blocked determined by edge detection that human body blocks;If it is determined that by human body in the first imaging The part blocked is consistent with the part that is blocked determined by edge detection, determines that the part that is blocked is first part.
Edge detection is carried out to the subject in the first imaging by edge detection first, to determine the portion that is blocked Point, it is whether accurate in order to further determine the testing result of the edge detection, therefore, it is further added by a determination and is blocked part Detection process, that is, determine in the first imaging by part that human body blocks with pass through the consistent of the part that is blocked that edge detection determines Property.
Specifically, determining the first imaging by human body component detection after determining the part that is blocked by edge detection It is middle by human body shield portions, compare by edge detection determine being blocked part and by human body component detection determination first It is whether consistent by human body shield portions in imaging, if unanimously, showing the inspection of the part that is blocked determined by edge detection It is accurate to survey result, the part that is blocked directly is determined as first part;If the testing result of two kinds of detection modes is inconsistent, It can then continue to be detected using the third detection mode, alternatively, carrying out respectively again using above two detection mode primary Detection, to further determine whether to go wrong in detection process.
Wherein, human body component detection can be specially skin detection, that is, detect the texture in the first imaging on subject Whether with the consistent part of dermatoglyph, will be determined as detecting determining quilt by human body component with the consistent part of dermatoglyph Shield portions, wherein subject be it is non-human, if subject is also human body, cannot using human body at Sorting, which is surveyed, determines the part that is blocked.
Such as: shooting one name cards, and this name cards be held with a hand by people, then, first imaging in include business card, Including manpower, and the part that manpower is contacted with business card is the part that is blocked of subject, can by human body component detection To determine the position of hand, and people is when holding business card, and grip portions are and need that is shot have content part unrelated certainly Part, such as blank parts, then, then other blank parts that can directly select an on piece, which will be blocked, to be partially filled with, so that The business card obtained in the first imaging is complete.
When being filled by second part to first part, second part be on subject with first part Incidence relation meets the part of first condition, specifically, second part can be with are as follows: adjacent with first part on subject Part, alternatively, second part be on subject according to the background image rule of subject determine and first part For the part in same background region.
Wherein, first part can be the part that is blocked, i.e., the shape, size of first part and area with the portion of being blocked Point completely the same, what the content for the part that no matter is blocked is, is directly filled into the adjacent second part in the part that is blocked Be blocked part, can at least make subject consistent in the background color tone of first part, and filling is coordinated.
If first part is sleazy blank parts, second part adjacent thereto is also sleazy blank Part is after first part is filled, will not have any influence to the imaging of subject by second part.
Furthermore it is also possible to are as follows: second part be determined on subject according to the background image rule that is taken with First part is the part in same background region, specifically, after display screen shows the first imaging, by quilt in the first imaging The analysis for shooting object, can determine the distribution rule of background image in subject, be advised according to the distribution of the background image Then, the background image of the first part being blocked can be determined, at this point, can be directly by background image and be blocked first Point the consistent second part of background image be filled into first part, thus ensure that subject after the treatment at The perfect harmony property of background image as in.
Further, processor 72 determines that the first part of subject in the first imaging is blocked, comprising:
Processor determines the object type and body form of subject;Determine the content gutter of subject Point, determine whether the part that is blocked of subject in the first imaging is located at content blank parts;If being clapped in the first imaging The part that is blocked for taking the photograph object is located at content blank parts, determines that the part that is blocked of subject is first part.
When determining that subject has part to be blocked by edge detection, to determine the part being blocked, then it can be with By determining the object type and body form of subject, since subject is presented in the first imaging, then can To determine the type and its conventional shape of the subject by the subject not being blocked in the first imaging.Example Such as: subject is business card, mobile phone, can be determined by the imaging to subject, determine to be clapped After taking the photograph the type of object, the quilt is determined in the part not being blocked in the type and subject further according to subject Shoot the shape of object.
After the type and shape of the clearly subject, the subject can be determined by the training to routine data The content blank parts and content concentrated part of body, such as: the content concentrated part of business card is usually in intermediate region, or a left side Side, and therefore the left side of business card and intermediate region are determined as content concentrated part by right side usually not substantive content, right side It is determined as content blank parts.
If it is partially to be located at content blank parts that subject, which is blocked, in the first imaging, it is possible to directly The part that is blocked for determining subject is first part, at this point, first part is content blank parts, then, herein On the basis of, second part is also content blank parts;
If it is partially to be located at content concentrated part that subject, which is blocked, in the first imaging, it is possible to determine Content type on the subject, such as: usually someone will name, post, phone and Business Names on a name cards, if The part that is blocked is any one in name, post or phone, then can be searched and be hidden by way of network data query The relevant information of stopper point, such as: post is blocked, then can search the name by Business Name and the phone is corresponding The post of personage is filled with later to the part that is blocked.It should be noted that when the part that is blocked is content concentrated part When other types content part, it can also be searched by this lookup mode.
It therefore, can basis if it is partially to be located at content concentrated part that subject, which is blocked, in the first imaging The content type of content concentrated part determines the interior of part that be blocked by the content of the content type of other parts that are not blocked Hold the content of type.
Electronic equipment disclosed in the present embodiment determines the first imaging of the subject of display, in the first imaging Subject carries out edge detection, determines integrality of the subject in the first imaging, determines and clapped in the first imaging The first part for taking the photograph object is blocked, and is filled out by first part of the second part to the subject in the first imaging It fills, subject is presented completely in the first imaging, second part is to be associated on subject with first part System meets the part of first condition.This programme by show subject first imaging when, if first imaging in clapped Taking the photograph object has part to be blocked, then by meeting the part of first condition with the incidence relation for the part that is blocked to the portion that is blocked Divide and be filled, so that subject can be completely presented, it is incomplete in the first imaging to avoid subject Situation.
Present embodiment discloses a kind of information processing units, comprising: determination unit, detection unit and fills unit, in which:
First imaging of subject of the determination unit for determining display;
Detection unit is used to carry out edge detection to the subject in the first imaging, determines subject first Integrality in imaging;
Fills unit is for determining that the first part of subject in the first imaging is blocked, by second part to the The first part of subject in one imaging is filled, and subject is presented completely in the first imaging, and second Part is the part for meeting first condition on subject with the incidence relation of first part.
Information processing unit disclosed in the present embodiment is that the information processing method according to disclosed in above-described embodiment is realized, Details are not described herein for concrete processing procedure.
Present embodiment discloses a kind of storage mediums, at least storing one group of instruction set, wherein instruction set is for being adjusted With and at least execute as described above described in any item information processing methods.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of information processing method, comprising:
Determine the first imaging of the subject of display;
Edge detection is carried out to the subject in first imaging, determines the subject described first Integrality in imaging;
Determine that the first part of subject described in first imaging is blocked, by second part to the first one-tenth described The first part of the subject as in is filled, and makes the subject completely be in first imaging Existing, the second part is the part for meeting first condition on the subject with the incidence relation of the first part.
2. according to the method described in claim 1, wherein, further includes:
If determining that the subject has the part that is blocked in first imaging by edge detection, described first is determined By the consistency of part and the part that is blocked determined by the edge detection that human body blocks in imaging;
If it is determined that by the part that human body blocks and the part one that is blocked determined by the edge detection in first imaging It causes, the part that is blocked described in determination is first part.
3. according to the method described in claim 1, wherein, the second part be on the subject with described first The incidence relation divided meets the part of first condition, comprising:
The second part is part adjacent with the first part on the subject;
Or,
The second part be on the subject according to the background image rule of the subject determine with institute State the part that first part is same background region.
4. according to the method described in claim 1, wherein, the first of the subject of the determining display is imaged, comprising:
Determine the first imaging of subject in the view-finder of the electronic equipment of display;
Or,
Determine the first imaging of the subject of the electronic equipment storage of display.
5. according to the method described in claim 4, wherein, if the first of the subject is imaged as finding a view for electronic equipment First imaging of subject in frame, it is described by second part to the of the subject in first imaging A part is filled, and the subject is presented completely in first imaging, comprising:
It is filled by first part of the second part to the subject in first imaging, so that the electricity The first imaging of the subject after the second part is filled in sub- equipment storage;
Or,
If the first of the subject is imaged as the first imaging of the subject of electronic equipment storage, described to pass through the Two parts are filled the first part of the subject in first imaging, make the subject in institute It states and is completely presented in the first imaging, comprising:
It is filled by first part of the second part to the subject in first imaging, to determine second Imaging, second imaging are in the image completely presented according to the determining subject of first imaging.
6. according to the method described in claim 1, wherein, first of subject described in determination first imaging Part is blocked, comprising:
Determine the object type and body form of the subject;
The content blank parts for determining the subject determine being blocked for subject described in first imaging Whether part is located at the content blank parts;
If the part that is blocked of subject described in first imaging is located at the content blank parts, the quilt is determined The part that is blocked of shooting object is first part.
7. a kind of electronic equipment, comprising:
Display screen is shown for the first imaging to subject;
Processor determines the subject for carrying out edge detection to the subject in first imaging Integrality of the body in first imaging;Determine that the first part of subject described in first imaging is blocked, It is filled by first part of the second part to the subject in first imaging, makes the subject Body is completely presented in first imaging, and the second part is to be associated on the subject with the first part Relationship meets the part of first condition.
8. equipment according to claim 7, wherein the processor is also used to:
If determining that the subject has the part that is blocked in first imaging by edge detection, described first is determined By the consistency of part and the part that is blocked determined by the edge detection that human body blocks in imaging;If it is determined that described It is consistent with the part that is blocked that is determined by the edge detection by part that human body blocks in one imaging, it is determining described in be blocked Part is first part.
9. equipment according to claim 7, wherein further include:
Image collecting device, for acquiring the first imaging of subject described in the view-finder of the electronic equipment;
Or,
Memory, for storing the first imaging of the subject.
10. equipment according to claim 7, wherein the processor determines subject described in first imaging The first part of body is blocked, comprising:
The processor determines the object type and body form of the subject, determines the content of the subject Blank parts, determine whether the part that is blocked of subject described in first imaging is located at the content gutter Point;If the part that is blocked of subject described in first imaging is located at the content blank parts, the quilt is determined The part that is blocked of shooting object is first part.
CN201910814845.7A 2019-08-28 2019-08-28 Information processing method and electronic equipment Active CN110519515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910814845.7A CN110519515B (en) 2019-08-28 2019-08-28 Information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910814845.7A CN110519515B (en) 2019-08-28 2019-08-28 Information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110519515A true CN110519515A (en) 2019-11-29
CN110519515B CN110519515B (en) 2021-03-19

Family

ID=68629548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910814845.7A Active CN110519515B (en) 2019-08-28 2019-08-28 Information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110519515B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380543A (en) * 2001-04-12 2002-11-20 清华大学 Image segmentation and identification method in industrial radiation imaging system
CN103295018A (en) * 2013-05-21 2013-09-11 常州大学 Method for precisely recognizing fruits covered by branches and leaves
US9202260B2 (en) * 2012-04-16 2015-12-01 Fujitsu Limited Method and apparatus for processing scanned image
CN106327445A (en) * 2016-08-24 2017-01-11 王忠民 Image processing method and device, photographic equipment and use method thereof
CN106454336A (en) * 2016-11-23 2017-02-22 北京小米移动软件有限公司 Method and device for detecting whether camera of terminal is covered or not, and terminal
CN107844742A (en) * 2017-09-26 2018-03-27 平安科技(深圳)有限公司 Facial image glasses minimizing technology, device and storage medium
CN108170272A (en) * 2017-12-28 2018-06-15 中国联合网络通信集团有限公司 A kind of Intelligent microphone control method and device
CN109002801A (en) * 2018-07-20 2018-12-14 燕山大学 A kind of face occlusion detection method and system based on video monitoring
CN109872277A (en) * 2017-12-04 2019-06-11 北京京东尚科信息技术有限公司 Information processing method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1380543A (en) * 2001-04-12 2002-11-20 清华大学 Image segmentation and identification method in industrial radiation imaging system
US9202260B2 (en) * 2012-04-16 2015-12-01 Fujitsu Limited Method and apparatus for processing scanned image
CN103295018A (en) * 2013-05-21 2013-09-11 常州大学 Method for precisely recognizing fruits covered by branches and leaves
CN106327445A (en) * 2016-08-24 2017-01-11 王忠民 Image processing method and device, photographic equipment and use method thereof
CN106454336A (en) * 2016-11-23 2017-02-22 北京小米移动软件有限公司 Method and device for detecting whether camera of terminal is covered or not, and terminal
CN107844742A (en) * 2017-09-26 2018-03-27 平安科技(深圳)有限公司 Facial image glasses minimizing technology, device and storage medium
CN109872277A (en) * 2017-12-04 2019-06-11 北京京东尚科信息技术有限公司 Information processing method and device
CN108170272A (en) * 2017-12-28 2018-06-15 中国联合网络通信集团有限公司 A kind of Intelligent microphone control method and device
CN109002801A (en) * 2018-07-20 2018-12-14 燕山大学 A kind of face occlusion detection method and system based on video monitoring

Also Published As

Publication number Publication date
CN110519515B (en) 2021-03-19

Similar Documents

Publication Publication Date Title
CN111626201B (en) Commodity detection method, commodity detection device and readable storage medium
US7889947B2 (en) Image completion
CN109376592A (en) Biopsy method, device and computer readable storage medium
CN108985199A (en) Detection method, device and the storage medium of commodity loading or unloading operation
US20040141657A1 (en) Image processing to remove red-eye features
CN110163076A (en) A kind of image processing method and relevant apparatus
CN106663322B (en) The method and apparatus of feature in image for identification
CN106909873A (en) The method and apparatus of recognition of face
CN107220931A (en) A kind of high dynamic range images method for reconstructing based on grey-scale map
CN109214995A (en) The determination method, apparatus and server of picture quality
CN107808126A (en) Vehicle retrieval method and device
CN108289176B (en) Photographing question searching method, question searching device and terminal equipment
CN109961423A (en) A kind of pulmonary nodule detection method based on disaggregated model, server and storage medium
CN109040594A (en) Photographic method and device
CN111784675A (en) Method and device for processing article texture information, storage medium and electronic equipment
US20130135446A1 (en) Street view creating system and method thereof
CN110378351A (en) Seal discrimination method and device
JP2002230550A (en) Method of identifying object image
CN103065118A (en) Image blurring detection method and device
WO2023185234A1 (en) Image processing method and apparatus, and electronic device and storage medium
US7505606B2 (en) Detecting doctored images using camera response normality and consistency
CN110246150A (en) Metal detection method, apparatus, equipment and storage medium
CN105574844B (en) Rdaiation response Function Estimation method and apparatus
CN110264460A (en) A kind of discrimination method of object detection results, device, equipment and storage medium
CN115223293B (en) Taking verification method, device, system and equipment for consumable cabinet

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