CN104778677B - A kind of localization method, device and equipment - Google Patents
A kind of localization method, device and equipment Download PDFInfo
- Publication number
- CN104778677B CN104778677B CN201410014530.1A CN201410014530A CN104778677B CN 104778677 B CN104778677 B CN 104778677B CN 201410014530 A CN201410014530 A CN 201410014530A CN 104778677 B CN104778677 B CN 104778677B
- Authority
- CN
- China
- Prior art keywords
- information
- picture
- positioning
- profile
- positioning object
- 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.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
- Navigation (AREA)
Abstract
The present invention provides a kind of localization method, device and equipment.One of localization method is applied in an electronic equipment, and electronic equipment includes image collecting device and display device, and method includes: the pictorial information that captured object is obtained by image collecting device;Pictorial information is identified, determines the positioning object in pictorial information, wherein positioning object, which refers to, needs the display adjusted in picture, and includes at least one object in reference object;Obtain the first parameter information of positioning object;The first prompt information is generated based on the first parameter information, wherein the first prompt information is used to prompt display information of the positioning object in picture;The first prompt information is exported on the display apparatus, display information of the object in picture will be positioned and intuitively shows user, and such user can adjust the position of positioning object based on first prompt information, improve whole display effect of the positioning object in picture.
Description
Technical field
The present invention relates to technical field of image processing, in particular to a kind of localization method, device and equipment.
Background technique
It is improved now with people's living standard, more and more people like travelling, and people like using in tourism
Mobile phone or digital product are taken pictures.When taking pictures, photographer adjusts institute's station location according to selected scenery, commander one be shooted,
So that position of the personage in whole photo is preferable in captured photo.
But this artificial adjustment one be shooted institute station location, will lead to one be shooted institute station location be not whole photo most
Best placement, and then photo is caused to be retaken.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of localization methods, position the positioning object for obtaining
First prompt information, and it will be shown in display device, realize the first prompt information of automatic identification positioning object and by its
Intuitively show user.The present invention also provides a kind of positioning device and equipment, to guarantee the reality of the above method in practice
Existing and application.Technical solution is as follows:
On the one hand, the embodiment of the present invention provides a kind of localization method, is applied in an electronic equipment, the electronic equipment packet
Include image collecting device and display device, which comprises
The pictorial information of captured object is obtained by described image acquisition device;
The pictorial information is identified, determines the positioning object in the pictorial information, wherein the positioning object
Refer to and need the display adjusted in picture, and includes at least one object in the reference object;
Obtain the first parameter information of the positioning object;
The first prompt information is generated based on first parameter information, wherein first prompt information is described for prompting
Position display information of the object in the picture;
First prompt information is exported on said display means.
Preferably, the first parameter information of the positioning object is obtained, comprising:
The first profile information of the positioning object is obtained using Edge extraction technology;
The positioning object is calculated in the best image point of the picture;
According to the first profile information as first parameter information, the profile for calculating the positioning object is big
It is small;
The size for determining prompting frame corresponding with the profile size, wherein central point of the prompting frame in picture is
The size of the best image point, the best image point and the prompting frame is first parameter information.
Preferably, the positioning object is calculated in the best image point of the picture, comprising:
The gold point of picture is calculated using golden cut algorithm, the gold point is the best image point.
Preferably, the best image point is the central point of picture.
Preferably, the picture is divided using palace lattice algorithm, obtains the central point of the picture;
Or the length and width of the picture is obtained, the central point of the picture is calculated according to the length and width.
Preferably, the method also includes:
It determines auxiliary object associated with the positioning object, is used in the picture wherein the auxiliary object refers to
The object of object is positioned described in auxiliary positioning;
Obtain the second parameter information of the auxiliary object;
The first prompt information is generated based on first parameter information, comprising: based on first parameter information and described
Second parameter information generates the first prompt information.
Preferably, the second parameter information of the auxiliary object is obtained, comprising:
The second profile information of the auxiliary object is obtained based on Edge extraction technology;
After specifying position of the auxiliary object in picture, second of the auxiliary object in the picture is obtained
Location information, second profile information and the second location information are second parameter information.
It is preferably based on first parameter information and second parameter information, generates the first prompt information, comprising:
Based on the second location information, first location information of the positioning object in the picture is generated;
According to the first profile information in first parameter information, the profile size of the positioning object is calculated, it is described
First profile information is obtained by Edge extraction technology;
The size for determining prompting frame corresponding with the profile size, wherein central point base of the prompting frame in picture
It is determined in the first location information, the size of the first location information and the prompting frame is first prompt information.
On the other hand, the embodiment of the present invention also provides a kind of positioning device, is applied in an electronic equipment, the electronics is set
Standby includes image collecting device and display device, and described device includes:
First acquisition unit, for obtaining the pictorial information of captured object by described image acquisition device;
First recognition unit determines the positioning object in the pictorial information for identifying to the pictorial information,
Wherein the positioning object, which refers to, needs the display adjusted in picture, and includes at least one object in the reference object
Body;
Second acquisition unit, for obtaining the first parameter information of the positioning object;
Information generating unit, for generating the first prompt information based on first parameter information, wherein described first mentions
Show information for prompting display information of the positioning object in the picture;
Output unit, for exporting first prompt information on said display means.
Preferably, the second acquisition unit includes:
Profile obtains subelement, and the first profile for obtaining the positioning object using Edge extraction technology is believed
Breath;
First computation subunit, for calculating the positioning object in the best image point of the picture;
Second computation subunit, for calculating institute according to the first profile information as first parameter information
State the profile size of positioning object;
Parameter obtains subelement, the size of prompting frame corresponding with the profile size is determined, wherein the prompting frame exists
Central point in picture is the best image point, and the size of the best image point and the prompting frame is first parameter
Information.
Preferably, first computation subunit is specifically used for: the gold of picture being calculated using golden cut algorithm
Point, the gold point are the best image point.
Preferably, the best image point is the central point of picture.
Preferably, first computation subunit is specifically used for: being divided, is obtained to the picture using palace lattice algorithm
The central point of the picture;
Or the length and width of the picture is obtained, the central point of the picture is calculated according to the length and width.
Preferably, described device further include:
Second recognition unit, for determining auxiliary object associated with the positioning object, wherein the auxiliary object
Refer in the picture for positioning the object of object described in auxiliary positioning;
Third acquiring unit, for obtaining the second parameter information of the auxiliary object;
Information generating unit is further used for: being based on first parameter information and second parameter information, generates the
One prompt information.
Preferably, third acquiring unit includes:
First obtains subelement, and the second profile for being obtained the auxiliary object based on Edge extraction technology is believed
Breath;
Second obtains subelement, for after specifying position of the auxiliary object in picture, obtaining the auxiliary pair
As the second location information in the picture, second profile information and the second location information are second parameter
Information.
Preferably, the information generating unit includes:
First generates subelement, for being based on the second location information, generates the positioning object in the picture
First location information;
Third computation subunit, for calculating the positioning according to the first profile information in first parameter information
The profile size of object, the first profile information are obtained by Edge extraction technology;
4th computation subunit, for determining the size of prompting frame corresponding with the profile size, wherein the prompt
Central point of the frame in picture is determining based on the first location information, the size of the first location information and the prompting frame
For first prompt information.
In another aspect, the embodiment of the present invention also provides a kind of electronic equipment, including image collecting device and display device, institute
Stating electronic equipment further includes such as above-mentioned positioning device.
Compared with prior art, the present invention includes the following advantages:
Using localization method provided in an embodiment of the present invention, institute can be obtained by the image collecting device in electronic equipment
The pictorial information of reference object, then identifies pictorial information, determines the positioning object in the pictorial information, to obtain
It generates to the first parameter information of positioning object, and based on first parameter information for prompting positioning object aobvious in picture
The first prompt information for showing information, the first prompt information is shown in the display device of electronic equipment, will be positioned object and be existed
Display information in picture intuitively shows user, and such user can adjust positioning object based on first prompt information
Whole display effect of the positioning object in picture is improved in position.
Certainly, it implements any of the products of the present invention and does not necessarily require achieving all the advantages described above at the same time.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is the schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of localization method provided in an embodiment of the present invention;
Fig. 3 is one of localization method provided in an embodiment of the present invention exemplary diagram;
Fig. 4 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Fig. 5 is another flow chart of localization method provided in an embodiment of the present invention;
Fig. 6 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Fig. 7 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Fig. 8 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Fig. 9 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Figure 10 is another exemplary diagram in localization method provided in an embodiment of the present invention;
Figure 11 is another flow chart of localization method provided in an embodiment of the present invention;
Figure 12 is a kind of structural schematic diagram of positioning device provided in an embodiment of the present invention;
Figure 13 is a kernel texture schematic diagram of positioning device provided in an embodiment of the present invention;
Figure 14 is another structural schematic diagram of positioning device provided in an embodiment of the present invention;
Figure 15 is another kernel texture schematic diagram of positioning device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Localization method provided in an embodiment of the present invention can be applied to numerous include image collecting device and display device
In the electronic equipments such as handheld device, portable device or laptop device.Wherein a kind of schematic diagram of electronic equipment please refers to Fig. 1
Shown, 1 is image collecting device, and 2 be display device.Image collecting device 1 is clapped for being shot with obtaining the person of being taken
The pictorial information of object is taken the photograph, display device 2 is then used to show various information, such as the relevant parameter of the picture and picture shot.
Based on above-mentioned electronic equipment, the flow chart of localization method provided in an embodiment of the present invention is please referred to shown in Fig. 2, can be with
The following steps are included:
201: the pictorial information of captured object is obtained by image collecting device.
In embodiments of the present invention, image collecting device can be equipment in the prior art with shooting function, such as take the photograph
As head.Image collecting device shoots reference object by the shooting function of itself, to obtain the figure for including numerous objects
Piece information.After obtaining pictorial information, then need to determine in numerous objects included by picture in next step to need to adjust display
The object of information is to be adjusted it, so that display effect of the object in picture is more excellent.
202: pictorial information being identified, determines the positioning object in pictorial information.
It is to be understood that positioning object, which refers to, needs the display adjusted in picture, and including in reference object
At least one object.
In some instances, electronic equipment can preset the type of positioning object, by image recognition technology right
After reference object in pictorial information is identified, determine with the reference object of pre-set type matching to be positioning pair
As.Such as it is when positioning object that electronic equipment, which presets personage, since face is different from other objects, electronic equipment can
To carry out recognition of face to the reference object in pictorial information by the face recognition technology in image recognition technology, to determine
Which reference object is behaved, after determining face, then as positioning object.
In other examples, which reference object electronic equipment can also be specified for positioning object by user.Such as electricity
The picture obtained by image collecting device is shown on the desplay apparatus by sub- equipment, when the user clicks some reference object
When, electronic equipment show on the display apparatus a prompting frame using prompt user " whether by the reference object as positioning object ",
If user clicks "Yes", electronic equipment can determine that user clicks this button of "Yes" by display device upper contact coordinate,
Then electronic equipment is further by the reference object 1 as positioning object, as shown in figure 3, electronic equipment is by reference object 1 as fixed
Position object.
203: obtaining the first parameter information of positioning object.
Localization method provided in an embodiment of the present invention is the display in order to adjust positioning object in picture, of the invention
In some examples, position object the first parameter information can be positioning object itself characteristic parameter information, using for as
The basic information of adjustment positioning object.
For example, the first parameter information can be the profile information of personage if positioning object is personage;If positioning pair
As for landmark building, then the first parameter information can be the profile information of the landmark building
In other examples of the invention, the first parameter information for positioning object can be characterization positioning object current
Information in picture.For example positioning object is for personage, the first parameter information can be position letter of the personage currently in picture
Breath, can also be personage's proportion in entire picture.When positioning object is landmark building, the first parameter information be can be
The current location information in picture of landmark building, can also include landmark building in entire picture proportion with
And currently employed resolution ratio etc..
In other examples of the invention, the first parameter information can include but is not limited to the feature ginseng of positioning object itself
The information of number information and characterization positioning object in current image.
204: the first prompt information being generated based on the first parameter information, wherein the first prompt information is for prompting positioning object
Display information in picture.First prompt information can be to be shown based on what the profile information as the first parameter information obtained
Show position and display scale.First prompt information is also possible to obtain based on the location information as the first parameter information aobvious
Show position.
205: exporting the first prompt information on the display apparatus.
In embodiments of the present invention, the first prompt information is based on the generation of the first parameter information preferably to show positioning object
Display effect in picture, the display information are then in order to enable display effect enhancing of the positioning object in picture.Electronics
First prompt information can intuitively be showed use by way of exporting the first prompt information on the display apparatus by equipment
Family, in order to which user more quickly adjusts display of the positioning object in picture, to enhance display effect.
Wherein, the feasible pattern of display of the adjustment positioning object in picture may is that adopting for adjustment image collecting device
Collect angle, acquisition distance and acquisition resolution etc., how to adjust and be based primarily upon the first prompt information.Such as in Fig. 4, display device
It shows that positioning object is currently at the position 1 in picture, and passes through localization method provided in an embodiment of the present invention, the first prompt
Information alert needs for positioning object to be moved at the position 2 of picture, and user can then adjust according to the first prompt information and acquire
Position 2 is directed at positioning object by angle, is moved to positioning object at the position 2 of picture.
Using above-mentioned technical proposal, the image collecting device in electronic equipment obtains the pictorial information of captured object, so
Electronic equipment can identify pictorial information afterwards, determine the positioning object in the pictorial information, to get positioning pair
The first parameter information of elephant, and generated based on first parameter information for prompting display information of the positioning object in picture
First prompt information shows the first prompt information in the display device of electronic equipment, will position object in picture
Display information intuitively shows user, and such user can adjust the position of positioning object based on first prompt information, mention
Whole display effect of the height positioning object in picture.
In some examples of the embodiment of the present invention, localization method provided in an embodiment of the present invention can also be refering to Fig. 5 institute
Show, it illustrates another flow charts of localization method provided in an embodiment of the present invention, it may comprise steps of:
501: the pictorial information of captured object is obtained by image collecting device.
502: the pictorial information being identified, determines the positioning object in the pictorial information, wherein the positioning
Object, which refers to, needs the display adjusted in picture, and includes at least one object in the reference object.
Step 501 is to step 502: it is identical to step 202 as step 201, this embodiment of the present invention is no longer illustrated.
503: the first profile information of positioning object is obtained using Edge extraction technology.
Wherein, the first profile information for positioning object is the characteristic information for positioning object, can indicate that positioning object exists
Main information in picture, therefore the profile information of positioning object can be chosen in embodiments of the present invention.
Sobel boundary operator or Prewitt can be used when extracting profile information using Edge extraction technology
Boundary operator, the present invention do not limit the Edge extraction technology of use.
504: calculating positioning object in the best image point of picture.Wherein best image point is that can make to position object in picture
In the optimal point of display effect.
In a kind of feasible pattern of the invention, the gold point that picture is calculated in golden cut algorithm can use, it is yellow
Gold point is best image point.Wherein golden section refers to certain analogy relationship between things each section, i.e., by things entirety
It is divided into two, the ratio between major part and smaller portions are equal to the ratio between whole and major part, ratio 1: 0.618 or 1.618:
1, i.e., long section is the 0.618 of full section.By taking human body as an example: golden section refer to navel to distance/crown of sole to sole away from
From=0.618, therefore when positioning object is entire human body, it is yellow to calculate the point that human body can be made to reach golden section effect
Gold point.By taking face as an example: golden section refers to eyebrow to distance/crown of neck to distance=0.618 of neck, therefore when fixed
When position object is face, the point gold point that face can be made to reach golden section effect that is calculated.Also with gold point
The gold point that can also calculate the object in addition to personage is cut, it is whole which, which can guarantee that object is divided rear longer portion,
The 0.618 of body portion, positioning object as shown in Figure 6 is landmark --- when Eiffel Tower, on Eiffel Tower
Point 1 is gold point (best image point).
In another feasible pattern of the invention, best image point is the central point of picture.The central point of picture can be with
Picture is divided by palace lattice algorithm, obtains the central point of picture, by taking nine grids algorithm shown in Fig. 7 as an example.Pass through nine
Palace lattice algorithm is divided picture to obtain nine regions: with from left to right, sequence from top to bottom is arranged successively as the 1st area
Domain to the 9th region, wherein number i indicates ith zone.It is chosen from this nine regions and is located at the most intermediate region of picture,
That is the 5th region.Coordinate of four vertex in the 5th region in picture is obtained, and then calculates the available 5th according to coordinate
Central point, that is, picture central point in a region.
The central point of certain picture can also be obtained directly by the length and width of picture, can also pass through the four of picture
The coordinate of a vertex in a display device is calculated, and does not limit this embodiment of the present invention the calculating of the central point of picture
Mode.
505: the profile size of positioning object is calculated according to first profile information.The profile size needs to work as positioning object
Before be shown in picture overall profile covering, the entire character contour shown in current image is covered with dotted line 1 as shown in Figure 8
Lid, the dotted line 1 are profile size.Can certainly by electronic equipment in calculating entire picture after the layout of reference object,
The profile size for obtaining to cover positioning object main feature, as covered face with solid line 1 in Fig. 8, which is to take turns
Wide size.
506: determining the size of prompting frame corresponding with profile size, central point of the prompting frame in picture is best image
Point.
In embodiments of the present invention, prompting frame needs all to cover the profile size for positioning object, and size is by profile
Size determines that the prompting frame can be a box, and the central point of box 1 as shown in Figure 9, box 1 is best image point, and is
Whole profiles of personage are covered, the width for being wider than profile size of box, it is long then to position the profile longest of object.Certainly
Prompting frame can also be an irregular shape, such as the irregular frame for wrapping up profile constituted along contour edge periphery.
507: the first prompt information being generated based on the size of best image point and prompting frame, the first prompt information is for prompting
Position display information of the object in picture.
508: exporting the first prompt information on the display apparatus.
In embodiments of the present invention, the first prompt information may include display position and display size, wherein showing size
For the size of prompting frame, display position is the central point of picture, and makes best image point centring point, as shown in Figure 10, figure
Box 2 in 10 is first prompt information in picture of box 1 in Fig. 9.User then can further adjust the electronic equipment side of making
The alignment positioning object of frame 2.
In other examples of the embodiment of the present invention, localization method provided in an embodiment of the present invention can also refering to fig. 11
Shown, it illustrates another flow charts of localization method provided in an embodiment of the present invention, may comprise steps of:
601: the pictorial information of captured object is obtained by image collecting device.
602: the pictorial information being identified, determines the positioning object in the pictorial information, wherein the positioning
Object, which refers to, needs the display adjusted in picture, and includes at least one object in the reference object.
603: obtaining the first parameter information of positioning object.
Step 601 is to step 603: it is identical to step 203 as step 201, this present invention is no longer illustrated.Certainly step
Rapid 603 can also be used the technical solution that step 503 in Fig. 5 is described to step 506 to obtain the first parameter information.
604: determining auxiliary object associated with positioning object.
Herein it is noted that localization method provided in an embodiment of the present invention, which is mainly used in picture, has correlation
Positioning between two objects of connection, such as when people takes pictures at some mark property building, need by using the positioning
Method carry out the positioning between personage and landmark so that the display effect between personage and landmark more preferably.Cause
This needs to come by landmark this auxiliary object the display information of position character this positioning object in picture.
605: obtaining the second parameter information of auxiliary object.
In some examples of the invention, the process for obtaining the second parameter information may include: based on Edge extraction
Second profile information of technology acquisition auxiliary object;Behind specified position of the auxiliary object in picture, obtains auxiliary object and exist
Second location information in picture, the second profile information and second location information are the second parameter information.
Wherein, auxiliary object can be moved to some position by the mobile picture of user by position of the auxiliary object in picture
It sets, then the position is calculated by electronic equipment.
It should be noted is that: localization method provided in an embodiment of the present invention does not limit the execution of step 603 to 605
Sequentially.Electronic equipment can after executing step 603, execute step 604 and 605, can also execute step 604 and
605 and then execute step 603.It can also execute step 604 and 605 while executing step 603.
606: being based on the first parameter information and the second parameter information, generate the first prompt information.
In embodiments of the present invention, the first parameter information may include the first round obtained using Edge extraction technology
Wide information, the second parameter information are the second profile information and second location information.When generating the first prompt information, electronic equipment
It is primarily based on second location information, generates first location information of the positioning object in picture.In some instances, this first
Confidence breath, which can to position object, does not block auxiliary object, therefore when generating first location information, need further combined with
The profile of object and the profile of auxiliary object are positioned, guarantees that the profile of positioning object and auxiliary object is not overlapped.Show at other
In example, which can make positioning object Chong Die with the outline portion of auxiliary object, depend primarily on auxiliary object
Specifically what.
After obtaining first location information, electronic equipment calculates the profile of positioning object according further to first profile information
Size, and determine the size of prompting frame corresponding with profile size, which needs positioning object being currently displayed at figure
Overall profile covering in piece, is as shown in Figure 8 covered the entire character contour shown in current image with dotted line 1, the dotted line 1
As profile size.It after the layout of reference object, can certainly obtain covering in calculating entire picture by electronic equipment
The profile size of lid positioning object main feature, as covered face with dotted line 2 in Fig. 8, which is profile size.
And the profile size that prompting frame then needs to position object all covers, size is determined that this is mentioned by profile size
Show that frame can be a box, box 1 as shown in Figure 9, in order to which whole profiles of personage are covered, box to be wider than profile big
Small width, long then profile longest for positioning object.Certain prompting frame can also be an irregular shape, such as along profile
The irregular frame for wrapping up profile that edge periphery is constituted.
The central point of box 1 determines that in some examples of the invention, which can be based on first location information
The central point of first location information.In other examples of the invention, which can be position shown in first location information
The gold point set does not limit this embodiment of the present invention.
607: exporting the first prompt information on the display apparatus.
Using above-mentioned technical proposal, electronic equipment can adjust positioning object by auxiliary object, so that obtained figure
The display effect of auxiliary object and positioning object is more excellent in piece, avoids artificial check and correction adjustment repeatedly.
Corresponding with above method embodiment, the embodiment of the present invention also provides a kind of positioning device, sets applied to an electronics
In standby, electronic equipment includes image collecting device and display device, and structural schematic diagram please refers to shown in Figure 12, may include:
First acquisition unit 11, the first recognition unit 12, second acquisition unit 13, information generating unit 14 and output unit 15.Wherein,
First acquisition unit 11, for obtaining the pictorial information of captured object by image collecting device.
In embodiments of the present invention, image collecting device can be equipment in the prior art with shooting function, such as take the photograph
As head.Image collecting device shoots reference object by the shooting function of itself, to obtain the figure for including numerous objects
Piece information.After obtaining pictorial information, then need to determine in numerous objects included by picture in next step to need to adjust display
The object of information is to be adjusted it, so that display effect of the object in picture is more excellent.
First recognition unit 12 determines the positioning object in pictorial information, wherein fixed for identifying to pictorial information
Position object, which refers to, needs the display adjusted in picture, and includes at least one object in reference object.
In some instances, electronic equipment can preset the type of positioning object, and the first recognition unit 12 passes through figure
As identification technology is after identifying the reference object in pictorial information, the shooting with pre-set type matching is determined
Object is positioning object.Such as electronic equipment preset personage for positioning object when, due to face be different from other objects, because
This first recognition unit 12 can by the face recognition technology in image recognition technology to the reference object in pictorial information into
Row recognition of face, to determine which reference object is behaved, after determining face, then as positioning object.
In other examples, which reference object electronic equipment can also be specified for positioning object by user.Such as electricity
The picture obtained by image collecting device is shown on the desplay apparatus by sub- equipment, when the user clicks some reference object
When, electronic equipment show on the display apparatus a prompting frame using prompt user " whether by the reference object 1 as positioning object ",
If user clicks "Yes", electronic equipment can determine that user clicks this button of "Yes" by display device upper contact coordinate,
Then the first recognition unit 12 is further by the reference object 1 as positioning object, as shown in figure 3, the first recognition unit 12 will be clapped
Object 1 is taken the photograph as positioning object.
Second acquisition unit 13, for obtaining the first parameter information of positioning object.Positioning provided in an embodiment of the present invention
Method is to adjust display of the positioning object in picture and position the first parameter of object in some examples of the invention
Information can be the characteristic parameter information of positioning object itself, for the basic information as adjustment positioning object.
For example, the first parameter information can be the profile information of personage if positioning object is personage;If positioning pair
As for landmark building, then the first parameter information can be the profile information of the landmark building
In other examples of the invention, the first parameter information for positioning object can be characterization positioning object current
Information in picture.For example positioning object is for personage, the first parameter information can be position letter of the personage currently in picture
Breath, can also be personage's proportion in entire picture.When positioning object is landmark building, the first parameter information be can be
The current location information in picture of landmark building, can also include landmark building in entire picture proportion with
And currently employed resolution ratio etc..
In other examples of the invention, the first parameter information can include but is not limited to the feature ginseng of positioning object itself
The information of number information and characterization positioning object in current image.
Information generating unit 14, for generating the first prompt information based on the first parameter information, wherein the first prompt information
For prompting display information of the positioning object in picture.First prompt information can be based on as the first parameter information
The display position and display scale that profile information obtains.First prompt information is also possible to based on as the first parameter information
The display position that location information obtains.
Output unit 15, for exporting the first prompt information on the display apparatus.
In embodiments of the present invention, the first prompt information is based on the generation of the first parameter information preferably to show positioning object
Display effect in picture, the display information are then in order to enable display effect enhancing of the positioning object in picture.Electronics
The output unit 15 of equipment can be straight by the first prompt information by way of exporting the first prompt information on the display apparatus
User is showed with seeing, in order to which user more quickly adjusts display of the positioning object in picture, to enhance display effect.
Wherein, the feasible pattern of display of the adjustment positioning object in picture may is that adopting for adjustment image collecting device
Collect angle, acquisition distance and acquisition resolution etc., how to adjust and be based primarily upon the first prompt information.Such as in Fig. 4, display device
It shows that positioning object is currently at the position 1 in picture, and passes through localization method provided in an embodiment of the present invention, the first prompt
Information alert needs for positioning object to be moved at the position 2 of picture, and user can then adjust according to the first prompt information and acquire
Position 2 is directed at positioning object by angle, is moved to positioning object at the position 2 of picture.
Using above-mentioned technical proposal, the image collecting device in electronic equipment obtains the pictorial information of captured object, so
The positioning device in electronic equipment can identify pictorial information afterwards, determine the positioning object in the pictorial information, with
The first parameter information of positioning object is got, and is generated based on first parameter information for prompting positioning object in picture
Display information the first prompt information, the first prompt information is shown in the display device of electronic equipment, will be positioned pair
As the display information in picture intuitively shows user, such user can be based on first prompt information adjustment positioning pair
Whole display effect of the positioning object in picture is improved in the position of elephant.
In some examples of the invention, the structural schematic diagram of second acquisition unit 13 can be with refering to fig. 1 shown in 3, can be with
It include: that profile obtains subelement 140, the first computation subunit 141, the second computation subunit 142 and parameter acquisition subelement
143。
Profile obtains subelement 140, for obtaining the first profile information of positioning object using Edge extraction technology.
Wherein, the first profile information for positioning object is the characteristic information for positioning object, can indicate positioning object in picture
Main information, therefore the profile information of positioning object can be chosen in embodiments of the present invention.Utilizing Edge extraction skill
Art can use Sobel boundary operator or Prewitt boundary operator when extracting profile information, and the present invention does not limit use
Edge extraction technology.
First computation subunit 141, for calculating positioning object in the best image point of picture.
In a kind of feasible pattern of the invention, the gold point that picture is calculated in golden cut algorithm can use, it is yellow
Gold point is best image point.Wherein golden section refers to certain analogy relationship between things each section, i.e., by things entirety
It is divided into two, the ratio between major part and smaller portions are equal to the ratio between whole and major part, ratio 1: 0.618 or 1.618:
1, i.e., long section is the 0.618 of full section.By taking human body as an example: golden section refer to navel to distance/crown of sole to sole away from
From=0.618, therefore when positioning object is entire human body, it is yellow to calculate the point that human body can be made to reach golden section effect
Gold point.By taking face as an example: golden section refers to eyebrow to distance/crown of neck to distance=0.618 of neck, therefore when fixed
When position object is face, the point gold point that face can be made to reach golden section effect that is calculated.
In another feasible pattern of the invention, best image point is the central point of picture.The central point of picture can be with
Picture is divided by palace lattice algorithm, obtains the central point of picture, by taking nine grids algorithm shown in Fig. 7 as an example.Pass through nine
Palace lattice algorithm is divided picture to obtain nine regions, with from left to right, sequence from top to bottom arranges to obtain the 1st to
9 regions.It is chosen from this nine regions and is located at the most intermediate region of picture, i.e. the 5th region.Obtain the four of the 5th region
Coordinate of a vertex in picture, and then calculate according to coordinate the central point i.e. central point of picture in available 5th region.
The central point of certain picture can also be obtained directly by the length and width of picture, can also pass through the four of picture
The coordinate of a vertex in a display device is calculated, and does not limit this embodiment of the present invention the calculating of the central point of picture
Mode.
Second computation subunit 142, for calculating the profile size of positioning object according to first profile information.The profile
Size needs positioning object being currently displayed at the covering of overall profile in picture, will show in current image as shown in Figure 8
For entire character contour with the covering of dotted line 1, which is profile size.Entire figure can certainly calculated by electronic equipment
In piece after the layout of reference object, the profile size that can cover positioning object main feature is obtained, as incited somebody to action in Fig. 8 with dotted line 2
Face covering, the dotted line 2 are profile size.
Parameter obtains subelement 143, for determining the size of prompting frame corresponding with the profile size, wherein described mention
Show that central point of the frame in picture is the best image point, the size of the best image point and the prompting frame is described the
One parameter information.
In embodiments of the present invention, prompting frame needs all to cover the profile size for positioning object, and size is by profile
Size determines that the prompting frame can be a box, and the central point of box 1 as shown in Figure 9, box 1 is best image point, and is
Whole profiles of personage are covered, the width for being wider than profile size of box, it is long then to position the profile longest of object.Certainly
Prompting frame can also be an irregular shape, such as the irregular frame for wrapping up profile constituted along contour edge periphery.
Figure 14 is please referred to, it illustrates another positioning devices provided in an embodiment of the present invention, on the basis of Figure 12 also
It may include: the second recognition unit 16 and third acquiring unit 17.
Second recognition unit 16, for determining auxiliary object associated with object is positioned, wherein auxiliary object refers to figure
Object in piece for auxiliary positioning positioning object.Herein it is noted that localization method provided in an embodiment of the present invention
It is mainly used in the positioning in picture between associated two objects, such as when people claps at some mark property building
According to when, the positioning for needing to come by using the localization method between personage and landmark is so that personage and landmark building
Display effect between object is more preferably.Therefore by landmark, this auxiliary object carrys out this positioning pair of position character to needs
As the display information in picture.
Third acquiring unit 17, for obtaining the second parameter information of auxiliary object.Specifically, third acquiring unit 17 can
To include: that the first acquisition subelement and second obtain subelement.Wherein first subelement is obtained, for being based on Edge extraction
Second profile information of technology acquisition auxiliary object.
Second obtains subelement, for behind specified position of the auxiliary object in picture, obtaining auxiliary object in picture
In second location information, the second profile information and second location information are the second parameter information.Wherein, auxiliary object is in picture
In position auxiliary object can be moved to some position by user's mobile picture, then the position is calculated by electronic equipment
It sets.
Information generating unit 14 is further used for: being based on the first parameter information and the second parameter information, generates the first prompt
Information.Wherein the structural schematic diagram of information generating unit 14 can be shown in 5, may include: the first generation subelement refering to fig. 1
144, third computation subunit 145 and the 4th computation subunit 146.Wherein
First generates subelement 144, for being based on second location information, generates first position of the positioning object in picture
Information.The first location information, which can to position object, does not block and helps object, therefore when generating first location information, need
To guarantee that the profile of positioning object and auxiliary object does not weigh further combined with the profile of positioning object and the profile of auxiliary object
It is folded.The first location information can also make the partial contour overlapping for positioning object and auxiliary object, be specifically dependent upon auxiliary object
What is.
Third computation subunit 145, for calculating positioning object according to the first profile information in the first parameter information
Profile size, first profile information are obtained by Edge extraction technology.
4th computation subunit 146, for determining the size of prompting frame corresponding with profile size, wherein prompting frame is being schemed
Central point in piece determines that the size of first location information and prompting frame is the first prompt information based on second location information.
The positioning device that the embodiments of the present invention provide may include in electronic equipment, which can also include
Image collecting device and display device, the picture that wherein positioning device can obtain captured object by image collecting device are believed
Breath;Then the pictorial information is identified, determines the positioning object in the pictorial information, obtain the positioning object
First parameter information;The first prompt information is generated based on first parameter information;Described is exported on said display means
One prompt information.Wherein the positioning object, which refers to, needs the display adjusted in picture, and is included in the reference object
At least one object, first prompt information is used to prompt the display information of the positioning object in the picture.
It should be noted that all the embodiments in this specification are described in a progressive manner, each embodiment weight
Point explanation is the difference from other embodiments, and the same or similar parts between the embodiments can be referred to each other.
For device class embodiment, since it is basically similar to the method embodiment, so being described relatively simple, related place ginseng
See the part explanation of embodiment of the method.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each unit can be realized in the same or multiple software and or hardware when invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It realizes by means of software and necessary general hardware platform.Based on this understanding, technical solution of the present invention essence
On in other words the part that contributes to existing technology can be embodied in the form of software products, the computer software product
It can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are used so that a computer equipment
(can be personal computer, server or the network equipment etc.) executes the certain of each embodiment or embodiment of the invention
Method described in part.
A kind of localization method provided by the present invention, device and equipment are described in detail above, it is used herein
A specific example illustrates the principle and implementation of the invention, and the above embodiments are only used to help understand
Method and its core concept of the invention;At the same time, for those skilled in the art is having according to the thought of the present invention
There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention
Limitation.
Claims (17)
1. a kind of localization method, it is applied in an electronic equipment, the electronic equipment includes image collecting device and display device,
It is characterized in that, which comprises
The pictorial information of captured object is obtained by described image acquisition device;
The pictorial information is identified, determines the positioning object in the pictorial information, wherein the positioning object refers to
It needs to adjust the display in picture, and includes at least one object in the reference object;
The first parameter information of the positioning object is obtained, the first parameter information of the positioning object includes the positioning object
Information of the characteristic parameter information and/or characterization positioning object of itself in current image;
The first prompt information is generated based on first parameter information, wherein first prompt information is to be adjusted for prompting
The positioning object adjustment is after the display in the picture, display information of the positioning object in the picture;
First prompt information is exported on said display means.
2. localization method according to claim 1, which is characterized in that the first parameter information of the positioning object is obtained,
Include:
The first profile information of the positioning object is obtained using Edge extraction technology;
The positioning object is calculated in the best image point of the picture;
According to the first profile information as first parameter information, the profile size of the positioning object is calculated;
The size for determining prompting frame corresponding with the profile size, wherein central point of the prompting frame in picture is described
The size of best image point, the best image point and the prompting frame is first parameter information.
3. localization method according to claim 2, which is characterized in that calculate the positioning object in the best of the picture
Display point, comprising:
The gold point of picture is calculated using golden cut algorithm, the gold point is the best image point.
4. localization method according to claim 2, which is characterized in that the best image point is the central point of picture.
5. localization method according to claim 4, which is characterized in that the picture is divided using palace lattice algorithm,
Obtain the central point of the picture;
Or the length and width of the picture is obtained, the central point of the picture is calculated according to the length and width.
6. localization method according to claim 1, which is characterized in that the method also includes:
Auxiliary object associated with the positioning object is determined, wherein the auxiliary object refers in the picture for assisting
Position the object of the positioning object;
Obtain the second parameter information of the auxiliary object;
The first prompt information is generated based on first parameter information, comprising: is based on first parameter information and described second
Parameter information generates the first prompt information.
7. localization method according to claim 6, which is characterized in that the second parameter information of the auxiliary object is obtained,
Include:
The second profile information of the auxiliary object is obtained based on Edge extraction technology;
After specifying position of the auxiliary object in picture, the second position of the auxiliary object in the picture is obtained
Information, second profile information and the second location information are second parameter information.
8. localization method according to claim 7, which is characterized in that based on first parameter information and second ginseng
Number information, generates the first prompt information, comprising:
Based on the second location information, first location information of the positioning object in the picture is generated;
According to the first profile information in first parameter information, the profile size of the calculating positioning object, described first
Profile information is obtained by Edge extraction technology;
The size of prompting frame corresponding with the profile size is determined, wherein central point of the prompting frame in picture is based on institute
It states first location information to determine, the size of the first location information and the prompting frame is first prompt information.
9. a kind of positioning device, it is applied in an electronic equipment, the electronic equipment includes image collecting device and display device,
It is characterized in that, described device includes:
First acquisition unit, for obtaining the pictorial information of captured object by described image acquisition device;
First recognition unit determines the positioning object in the pictorial information for identifying to the pictorial information, wherein
The positioning object, which refers to, needs the display adjusted in picture, and includes at least one object in the reference object;
Second acquisition unit, for obtaining the first parameter information of the positioning object, the first parameter letter of the positioning object
Breath includes the information of the characteristic parameter information and/or characterization positioning object of the positioning object itself in current image;
Information generating unit, for generating the first prompt information based on first parameter information, wherein the first prompt letter
It ceases for prompting the positioning object to be adjusted to adjust after the display in the picture, the positioning object is in the picture
In display information;
Output unit, for exporting first prompt information on said display means.
10. positioning device according to claim 9, which is characterized in that the second acquisition unit includes:
Profile obtains subelement, for obtaining the first profile information of the positioning object using Edge extraction technology;
First computation subunit, for calculating the positioning object in the best image point of the picture;
Second computation subunit, for according to the first profile information as first parameter information, it to be described fixed to calculate
The profile size of position object;
Parameter obtains subelement, the size of prompting frame corresponding with the profile size is determined, wherein the prompting frame is in picture
In central point be the best image point, the size of the best image point and the prompting frame is that first parameter is believed
Breath.
11. positioning device according to claim 10, which is characterized in that first computation subunit is specifically used for: benefit
The gold point of picture is calculated with golden cut algorithm, the gold point is the best image point.
12. positioning device according to claim 10, which is characterized in that the best image point is the central point of picture.
13. positioning device according to claim 12, which is characterized in that first computation subunit is specifically used for: benefit
The picture is divided with palace lattice algorithm, obtains the central point of the picture;
Or the length and width of the picture is obtained, the central point of the picture is calculated according to the length and width.
14. positioning device according to claim 9, which is characterized in that described device further include:
Second recognition unit, for determining auxiliary object associated with the positioning object, wherein the auxiliary object refers to
For positioning the object of object described in auxiliary positioning in the picture;
Third acquiring unit, for obtaining the second parameter information of the auxiliary object;
Information generating unit is further used for: being based on first parameter information and second parameter information, generates first and mention
Show information.
15. positioning device according to claim 14, which is characterized in that third acquiring unit includes:
First obtains subelement, for obtaining the second profile information of the auxiliary object based on Edge extraction technology;
Second obtains subelement, for obtaining the auxiliary object and existing after specifying position of the auxiliary object in picture
Second location information in the picture, second profile information and the second location information are second parameter letter
Breath.
16. positioning device according to claim 15, which is characterized in that the information generating unit includes:
First generates subelement, for being based on the second location information, generates the of the positioning object in the picture
One location information;
Third computation subunit, for calculating the positioning object according to the first profile information in first parameter information
Profile size, the first profile information obtained by Edge extraction technology;
4th computation subunit, for determining the size of prompting frame corresponding with the profile size, wherein the prompting frame exists
Central point in picture determines that the size of the first location information and the prompting frame is institute based on the first location information
State the first prompt information.
17. a kind of electronic equipment, including image collecting device and display device, which is characterized in that the electronic equipment further includes
Positioning device as described in claim 9 to 16 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410014530.1A CN104778677B (en) | 2014-01-13 | 2014-01-13 | A kind of localization method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410014530.1A CN104778677B (en) | 2014-01-13 | 2014-01-13 | A kind of localization method, device and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104778677A CN104778677A (en) | 2015-07-15 |
CN104778677B true CN104778677B (en) | 2019-02-05 |
Family
ID=53620125
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410014530.1A Active CN104778677B (en) | 2014-01-13 | 2014-01-13 | A kind of localization method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104778677B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297697A (en) * | 2013-05-30 | 2013-09-11 | 北京小米科技有限责任公司 | Method and device for displaying template pictures during photographing |
CN103391361A (en) * | 2013-07-05 | 2013-11-13 | 中科创达软件股份有限公司 | Automatic reminding method and device for self-timer composition of intelligent terminal |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5864630A (en) * | 1996-11-20 | 1999-01-26 | At&T Corp | Multi-modal method for locating objects in images |
US6118887A (en) * | 1997-10-10 | 2000-09-12 | At&T Corp. | Robust multi-modal method for recognizing objects |
US6542621B1 (en) * | 1998-08-31 | 2003-04-01 | Texas Instruments Incorporated | Method of dealing with occlusion when tracking multiple objects and people in video sequences |
JP4915655B2 (en) * | 2006-10-27 | 2012-04-11 | パナソニック株式会社 | Automatic tracking device |
CN101334263B (en) * | 2008-07-22 | 2010-09-15 | 东南大学 | Circular target circular center positioning method |
CN101714256B (en) * | 2009-11-13 | 2011-12-14 | 河北工业大学 | Omnibearing vision based method for identifying and positioning dynamic target |
-
2014
- 2014-01-13 CN CN201410014530.1A patent/CN104778677B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297697A (en) * | 2013-05-30 | 2013-09-11 | 北京小米科技有限责任公司 | Method and device for displaying template pictures during photographing |
CN103391361A (en) * | 2013-07-05 | 2013-11-13 | 中科创达软件股份有限公司 | Automatic reminding method and device for self-timer composition of intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104778677A (en) | 2015-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106471544B (en) | The system and method that threedimensional model generates | |
US9898651B2 (en) | Upper-body skeleton extraction from depth maps | |
CN104104867B (en) | The method and apparatus that control camera device is shot | |
JP6074494B2 (en) | Shape recognition device, shape recognition program, and shape recognition method | |
JP5837508B2 (en) | Posture state estimation apparatus and posture state estimation method | |
CN111649690A (en) | Handheld 3D information acquisition equipment and method | |
CN110059661A (en) | Action identification method, man-machine interaction method, device and storage medium | |
JP6143469B2 (en) | Information processing apparatus, information processing method, and program | |
CN105373929B (en) | Method and device for providing photographing recommendation information | |
KR102106135B1 (en) | Apparatus and method for providing application service by using action recognition | |
CN106200914B (en) | Triggering method, device and the photographing device of augmented reality | |
CN104781849A (en) | Fast initialization for monocular visual simultaneous localization and mapping (SLAM) | |
US20140064602A1 (en) | Method and apparatus for object positioning by using depth images | |
TW201610917A (en) | Method for image segmentation | |
JP2013101528A (en) | Information processing apparatus, display control method, and program | |
EP2894851B1 (en) | Image processing device, image processing method, program, and computer-readable storage medium | |
CN105872381A (en) | Interesting image shooting method | |
JPWO2016035350A1 (en) | Portable information terminal, control method thereof, and control program | |
US20150379333A1 (en) | Three-Dimensional Motion Analysis System | |
KR20170027266A (en) | Image capture apparatus and method for operating the image capture apparatus | |
JP2017525193A (en) | Photography method, apparatus and terminal | |
CN106200916B (en) | Control method, device and the terminal device of augmented reality image | |
JP2016526203A5 (en) | ||
CN107734207B (en) | Video object transformation processing method and device and computing equipment | |
CN107609946B (en) | Display control method and computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |