CN103512557B - Electric room is relative to location determining method and electronic equipment - Google Patents

Electric room is relative to location determining method and electronic equipment Download PDF

Info

Publication number
CN103512557B
CN103512557B CN201210226437.8A CN201210226437A CN103512557B CN 103512557 B CN103512557 B CN 103512557B CN 201210226437 A CN201210226437 A CN 201210226437A CN 103512557 B CN103512557 B CN 103512557B
Authority
CN
China
Prior art keywords
electronic equipment
scene image
described
position
destination object
Prior art date
Application number
CN201210226437.8A
Other languages
Chinese (zh)
Other versions
CN103512557A (en
Inventor
李栋
Original Assignee
联想(北京)有限公司
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 联想(北京)有限公司 filed Critical 联想(北京)有限公司
Priority to CN201210226437.8A priority Critical patent/CN103512557B/en
Publication of CN103512557A publication Critical patent/CN103512557A/en
Application granted granted Critical
Publication of CN103512557B publication Critical patent/CN103512557B/en

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/04Interpretation of pictures
    • G01C11/06Interpretation of pictures by comparison of two or more pictures of the same area
    • G01C11/08Interpretation of pictures by comparison of two or more pictures of the same area the pictures not being supported in the same relative position as when they were taken
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C11/00Photogrammetry or videogrammetry, e.g. stereogrammetry; Photographic surveying
    • G01C11/02Picture taking arrangements specially adapted for photogrammetry or photographic surveying, e.g. controlling overlapping of pictures

Abstract

The invention discloses a kind of electric room relative to location determining method and electronic equipment.Described electric room includes relative to location determining method: obtain the first scene image that the first electronic equipment is gathered by photographic head;Obtain the second scene image that the second electronic equipment is gathered by photographic head;When described first scene image and the second scene image have same destination object, according to described destination object in the first scene image or the position of the second scene image, determine the relative position of described first electronic equipment and the second electronic equipment.Visible, in the present embodiment, first scene image with same target object and the second scene image gathered by analysing and comparing, it is achieved that electric room is relative to the determination of position.

Description

Electric room is relative to location determining method and electronic equipment

Technical field

The present invention relates to technical field of electronic equipment, particularly relate to a kind of electric room true relative to position Determine method and electronic equipment.

Background technology

Along with the development of science and technology, various electronic products are constantly abundant and facilitate popular life.By In utilizing electronic product to process information, there is the advantages such as convenient and swift, saving resource so that electronic product becomes For an indispensable part in the life of people or work.

In prior art, by specific communication technology, electric room can carry out short-range communication, Such as: Bluetooth technology can realize the closely data transmission of electric room.And along with people's demand Being on the increase, the transmission of electric room closely data can not meet the use demand of people, in some field Under scape, also need to know the relative position of electric room, such as: a PAD may only shine by display one width The local of sheet, when multiple stage PAD is put together, can show complete on a bigger Mosaic screen Photo, at this moment it needs to be determined that relative position between PAD.Wherein, in the same plane first For electronic equipment and the second electronic equipment, so-called position relatively at least includes: the second electronic equipment is positioned at The upside of the first electronic equipment, downside, left side or right side;And for being in the first electronics of Different Plane For equipment and the second electronic equipment, so-called position relatively also should include the second electronic equipment and the first electricity The angular relationship of subset.

So, how to determine the relative position of electric room, and then determined by utilization, position is real relatively Existing application-specific is a problem merited attention.

Summary of the invention

For solving above-mentioned technical problem, embodiments provide a kind of electric room true relative to position Determining method and electronic equipment, to realize the electric room determination relative to position, technical scheme is as follows:

A kind of electric room relative to location determining method, including:

Obtain the first scene image that the first electronic equipment is gathered by photographic head;

Obtain the second scene image that the second electronic equipment is gathered by photographic head;

When described first scene image and the second scene image have same destination object, according to described Destination object in the first scene image or the position of the second scene image, determine described first electronic equipment and The relative position of the second electronic equipment.

Wherein, according to described destination object in the first scene image or the position of the second scene image, determine Described first electronic equipment and the relative position of the second electronic equipment, including:

Determine the described destination object primary importance at described first scene image;

Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.

Wherein, described method also includes:

Judge target pair in the angles of display of destination object in described first scene image and the second scene image The angles of display of elephant is the most identical,

If it is not, then according to described destination object in the first scene image or the position of the second scene image, Determine the relative position of described first electronic equipment and the second electronic equipment, including:

Obtain that the first electronic equipment is gathered by acceleration transducer when gathering the first scene image the One acceleration parameter;

Obtain that the second electronic equipment is gathered by acceleration transducer when gathering the second scene image the Two acceleration parameter;

Utilize described first acceleration parameter and the second acceleration parameter, determine described first electronic equipment and The angular relationship of the second electronic equipment;

Analyze the first scene image and the second scene image, determine that the second electronic equipment correspondence is found a view content phase First electronic equipment correspondence content of finding a view is found a view position;

Find a view the taking of content relative to the first electronic equipment correspondence according to the second electronic equipment correspondence content of finding a view Scape position and the second electronic equipment shoot photographic head parameter during the second scene image, determine described second Electronic equipment is relative to the second position of the first electronic equipment;

Analyze the second electronic equipment of being determined relative to the second position of the first electronic equipment and described Angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.

Wherein, when judging to obtain angles of display and second scene of destination object in described first scene image When in image, the angles of display of destination object is identical, described according to described destination object at the first scene image Or second position of scene image, determine the relative position of described first electronic equipment and the second electronic equipment, Including:

Determine the described destination object primary importance at described first scene image;

Using the described first relative position as described second electronic equipment relative to the position of the first electronic equipment, To obtain described first electronic equipment and the relative position of the second electronic equipment.

Wherein, described method also includes: when not having in described first scene image and the second scene image During same destination object, continue to obtain the first scene image that the first electronic equipment is gathered by photographic head;

And obtain the second scene image that the second electronic equipment is gathered by photographic head.

The embodiment of the present invention also provides for a kind of electronic equipment, including:

First scene image acquisition module, for obtain that the first electronic equipment is gathered by photographic head the One scene image;

Second scene image acquisition module, obtain that the second electronic equipment is gathered by photographic head second Scape image;

First judge module, is used for judging whether have in described first scene image and the second scene image Same destination object, and where it has, trigger the first relative position determination module;

First relative position determination module, is used for according to described destination object at the first scene image or second The position of scene image, determines the relative position of described first electronic equipment and the second electronic equipment.

Wherein, the described first relative position determination module, specifically for:

Determine the described destination object primary importance at described first scene image;

Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.

Wherein, described electronic equipment also includes: the second judge module and the second relative position determination module;

Described second judge module, for same when having in described first scene image and the second scene image During one destination object, it is judged that the angles of display of destination object and the second scene graph in described first scene image In Xiang, the angles of display of destination object is the most identical, and in a case of no, triggers the second relative position true Cover half block;

Described second relative position determination module, specifically for:

Obtain that the first electronic equipment is gathered by acceleration transducer when gathering the first scene image the One acceleration parameter;

Obtain that the second electronic equipment is gathered by acceleration transducer when gathering the second scene image the Two acceleration parameter;

Utilize described first acceleration parameter and the second acceleration parameter, determine described first electronic equipment and The angular relationship of the second electronic equipment;

Analyze the first scene image and the second scene image, determine that the second electronic equipment correspondence is found a view content phase First electronic equipment correspondence content of finding a view is found a view position;

Find a view the taking of content relative to the first electronic equipment correspondence according to the second electronic equipment correspondence content of finding a view Scape position and the second electronic equipment shoot photographic head parameter during the first scene image, determine described second Electronic equipment is relative to the second position of the first electronic equipment;

Analyze the second electronic equipment of being determined relative to the second position of the first electronic equipment and described Angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.

Wherein, described second judge module, it is additionally operable to the aobvious of in described first scene image destination object Show that angle, with when the angles of display of destination object is identical in the second scene image, triggers the first relative position true Cover half block;

First relative position determination module, specifically for:

Determine the described destination object primary importance at described first scene image;

Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.

Wherein, described electronic equipment also includes:

Processing module, for when not having same target in described first scene image and the second scene image During object, trigger the first scene image acquisition module and the second scene image acquisition module.

In the technical scheme that the embodiment of the present invention is provided, determining that the first electronic equipment and the second electronics set During standby relative position relation, obtain the first scene image that the first electronic equipment is gathered by photographic head And second the second scene image that gathered by photographic head of electronic equipment;When this first scene image with When second scene image has same destination object, according to this destination object at the first scene image or The position of two scene images, determines the relative position of this first electronic equipment and the second electronic equipment.It is visible, In the present embodiment, by first scene image with same target object that gathered and the of analysing and comparing Two scene images, it is achieved that electric room is relative to the determination of position.

Accompanying drawing explanation

In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to reality Execute the required accompanying drawing used in example or description of the prior art to be briefly described, it should be apparent that below, Accompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art, On the premise of not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.

A kind of electric room that Fig. 1 is provided by the embodiment of the present invention is relative to the first of location determining method Plant flow chart;

A kind of electric room that Fig. 2 is provided by the embodiment of the present invention is relative to the second of location determining method Plant flow chart;

A kind of electric room that Fig. 3 is provided by the embodiment of the present invention is relative to the 3rd of location determining method Plant flow chart;

The first schematic diagram of the images relations that Fig. 4 is provided by the embodiment of the present invention;

A kind of electric room that Fig. 5 is provided by the embodiment of the present invention is relative to the 4th of location determining method Plant flow chart;

The second schematic diagram of the images relations that Fig. 6 is provided by the embodiment of the present invention;

Fig. 7 is provided the 5th kind relative to location determining method of a kind of electric room by the embodiment of the present invention Flow chart;

Fig. 8 is the schematic diagram of the provided scene of the embodiment of the present invention 1;

The schematic diagram of the scene 2 that Fig. 9 is provided by the embodiment of the present invention;

The structural representation of a kind of electronic equipment that Figure 10 is provided by the embodiment of the present invention.

Detailed description of the invention

Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and not It it is whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making The every other embodiment obtained under creative work premise, broadly falls into the scope of protection of the invention.

In order to realize the determination of the relative position of electric room, embodiments provide a kind of electronics Equipment room is relative to location determining method and electronic equipment.

A kind of electric room provided the embodiment of the present invention first below enters relative to location determining method Row is introduced.

It should be noted that the electric room that the embodiment of the present invention is provided can relative to location determining method To be suitable for inclusion in the scene of one first electronic equipment and the second electronic equipment, now, holding of the method Row main body can be the first electronic equipment or the second electronic equipment;Or, it is adaptable to comprise the first electronics and set In the scene of standby, the second electronic equipment and server, now, the executive agent of the method can be service Device;Further, the first electronic equipment position and the second electronic equipment position close together, make Obtain it and may photograph the same destination object in scene.In actual applications, the first electronic equipment and Two electronic equipments can be to have the electronic equipments such as photographic head mobile phone, PAD, notebook.

As it is shown in figure 1, a kind of electric room is relative to location determining method, may include that

S101, obtains the first scene image that the first electronic equipment is gathered by photographic head;

S102, obtains the second scene image that the second electronic equipment is gathered by photographic head;

When determining the relative position of the first electronic equipment and the second electronic equipment, need first to obtain first The first scene image and the second electronic equipment that electronic equipment is gathered by photographic head pass through photographic head The second scene image gathered, and then utilize the first scene image and the second scene image to carry out follow-up Process.

It should be noted that when executive agent is the first electronic equipment, the first electronic equipment obtains self The first scene image gathered by photographic head, and actively or passively obtain the second electronic equipment by taking the photograph The second scene image gathered as head;When executive agent is the second electronic equipment, the second electronic equipment Obtain the second scene image of being gathered self by photographic head, and actively or passively obtain the first electronics and set Standby the first scene image gathered by photographic head;And when executive agent is server, this server Actively or passively obtain the first scene image and the second electricity that the first electronic equipment is gathered by photographic head The second scene image that subset is gathered by photographic head.

It is understood that step S101 and the execution sequence of step S102 are as just a kind of example, Should not constitute the restriction to the embodiment of the present invention, such as: step S102 can prior to step S101, Or, step S101 and step S102 are carried out simultaneously, and this is all rational.

S103, it is judged that in described first scene image and the second scene image, whether there is same destination object, If it is, perform step S104;Otherwise, step S101 is performed;

Owing to the first electronic equipment position and the second electronic equipment position are nearer so that it may Photograph same destination object in scene, and when the first electronic equipment and the second electronic equipment photograph same During destination object, can be by taken destination object at the first scene image or the second scene image Position, determine the relative position of the first electronic equipment and the second electronic equipment.

When get the first scene image corresponding to the first electronic equipment and the second electronic equipment corresponding After two scene images, then image analysis algorithm can be utilized to analyze the first scene image and the second scene image, Judge whether described first scene image and the second scene image have same destination object, and then according to Different judged results, performs different operating procedures.Wherein, when the first scene image and the second scene When image has same destination object, show the region captured by the first electronic equipment and the second electronic equipment Having overlapping region, and then can perform step S104, the destination object taken by utilization carries out first The determination of the relative position of electronic equipment and the second electronic equipment;And when the first scene image and the second scene When image does not has same destination object, show the district captured by the first electronic equipment and the second electronic equipment Territory does not have overlapping region, now needs to re-execute step S101, again to obtain the first electronic equipment The first scene image and the second scene image of the second electronic equipment.

S104, according to described destination object in the first scene image or the position of the second scene image, determines Described first electronic equipment and the relative position of the second electronic equipment.

After judging that the first scene image and the second scene image have same destination object, then can divide Analyse this destination object position at the first scene image, or, analyze this destination object at the second scene graph The position of picture, to determine the relative position of this first electronic equipment and the second electronic equipment.

It should be noted that the first electronic equipment and the second electronic equipment are likely located at same plane or difference Plane, therefore, will cause the tool determining the relative position of described first electronic equipment and the second electronic equipment Body implementation is different.

Wherein, this destination object at least may include that in the position of the first scene image or the second scene image Upper and lower, left and right, upper left, lower-left, upper right or bottom right etc..

In the technical scheme that the embodiment of the present invention is provided, determining that the first electronic equipment and the second electronics set During standby relative position relation, obtain the first scene image that the first electronic equipment is gathered by photographic head And second the second scene image that gathered by photographic head of electronic equipment;When this first scene image with When second scene image has same destination object, according to this destination object at the first scene image or The position of two scene images, determines the relative position of this first electronic equipment and the second electronic equipment.It is visible, In the present embodiment, by first scene image with same target object that gathered and the of analysing and comparing Two scene images, it is achieved that electric room is relative to the determination of position.

It should be noted that after determining the relative position of the first electronic equipment and the second electronic equipment, Determined by then can utilizing, relative position is specifically applied.Such as: the first electronic equipment and second Electronic equipment respectively one is arranged on the PAD of fixed position, and determined by utilization, two PAD are relative to position, The screen splicing of two PAD is become widescreen, to realize the display of customizing messages;Or, the first electronics sets For carrying with image capture device for user, its Dynamical capture interior of building scene, the second electronics sets Standby for image capture device original in building, the picture utilizing two equipment to be gathered determines that two set Standby relative position relation, and then determine user position in this building.

Below to determine the relative position of the first electronic equipment and the second electronic equipment being generally aligned in the same plane Example, is introduced relative to location determining method a kind of electric room provided by the present invention.

It should be noted that the electric room that the embodiment of the present invention is provided can relative to location determining method To be suitable for inclusion in the scene of one first electronic equipment and the second electronic equipment, now, holding of the method Row main body can be the first electronic equipment or the second electronic equipment;Or, it is adaptable to comprise the first electronics and set In the scene of standby, the second electronic equipment and server, now, the executive agent of the method can be service Device;Further, the first electronic equipment position and the second electronic equipment position close together, make Obtain it and may photograph same destination object in scene.In actual applications, the first electronic equipment and second Electronic equipment can be to have the electronic equipments such as photographic head mobile phone, PAD, notebook.

As in figure 2 it is shown, a kind of electric room is relative to location determining method, may include that

S201, obtains the first scene image that the first electronic equipment is gathered by photographic head;

S202, obtains the second scene image that the second electronic equipment is gathered by photographic head;

S203, it is judged that in described first scene image and the second scene image, whether there is same destination object, If it is, perform step S204;Otherwise, step S201 is performed;

In the present embodiment, step S201-step S203 is similar to step S101-S103 in above-described embodiment, Do not repeat them here.

S204, determines the described destination object primary importance at described first scene image;

Those skilled in the art are it is understood that utilize image analysis algorithm, it may be determined that go out this destination object Primary importance at the first scene image.Wherein, this destination object is in the primary importance of the first scene image At least may include that upper and lower, left and right, upper left, lower-left, upper right or bottom right etc..

S205, using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, To obtain described first electronic equipment and the relative position of the second electronic equipment.

It is understood that due to first electronic equipment the second electronic equipment at grade, the first electricity Subset and the second electronic equipment photograph this destination object with identical shooting angle, therefore, it can by Described primary importance as described second electronic equipment relative to the position of the first electronic equipment, described to obtain First electronic equipment and the relative position of the second electronic equipment.Such as: when destination object is at the first scene graph During the left side of picture, then may determine that this second electronic equipment is in the left side of the first electronic equipment;And work as target Object when the right side of the first scene image, then may determine that this second electronic equipment is at the first electronic equipment Right side.

Certainly, in another embodiment of the invention, it is also possible to determine that destination object is at the second scene image The second position;At this time, it may be necessary to this second position is set as the first electronic equipment relative to the second electronics Standby position, obtains the relative position of this first electronic equipment and the second electronic equipment with this.

In the embodiment of the present invention, for the first electronic equipment and the second electronic equipment that are generally aligned in the same plane and Speech, when determining relative position, is judging that the first scene image and the second scene image have same target After object, it may be determined that this destination object in the primary importance of this first scene image, and then by this first Position relative to the position of the first electronic equipment as this second electronic equipment, realizes this first electronics with this and sets Standby with the second electronic equipment relative to the determination of position.

As a example by the mobile phone A being generally aligned in the same plane in a target scene below and mobile phone B, to institute of the present invention The electric room provided is introduced relative to location determining method.

It should be noted that the method that the present embodiment is provided is applicable to one comprises mobile phone A and mobile phone B In target scene, wherein, mobile phone A position and mobile phone B position are relatively near, and it can photograph Same destination object in this target scene, mobile phone A is the executive agent of method.Wherein, mobile phone A and hands Machine B has photographic head, and when photographic subjects scene, the camera parameter such as focal length and viewing distance is identical.

As it is shown on figure 3, a kind of electric room is relative to location determining method, may include that

S301, mobile phone A obtains the image A of this target scene that self photographic head is gathered;

S302, mobile phone A obtains the image B of this target scene that mobile phone B is gathered by photographic head;

S303, mobile phone A analysis obtains image A and image B and has same destination object c;

Wherein, the relation of image A and image B is as shown in Figure 4.

S304, mobile phone A determines the destination object c right side at image A;

S305, mobile phone A determines the mobile phone B right side in mobile phone A.

Owing to the mobile phone A identical at same plane and camera parameter and mobile phone B have photographed same target pair As c, and destination object c is on the right side of image A, hence, it can be determined that go out mobile phone B in mobile phone A Right side.

In the embodiment of the present invention, for being generally aligned in the same plane and mobile phone A that camera parameter is identical and mobile phone B For, when determining relative position, mobile phone A judges that image A and image B has same destination object c After, then can determine that the destination object c right side at image A, and then determine that mobile phone B is in mobile phone A Right side, achieve the determination of mobile phone A and the relative position of mobile phone B with this.

As a example by the mobile phone A being generally aligned in the same plane in a target scene below and mobile phone B, to institute of the present invention The electric room provided is introduced relative to location determining method.

It should be noted that the method that the present embodiment is provided be applicable to one comprise mobile phone A, mobile phone B with And in the target scene of server, wherein, mobile phone A position and mobile phone B position are relatively near, its Can photograph same destination object in this target scene, this server is the executive agent of method.Wherein, Mobile phone A and mobile phone B all have photographic head, and when photographic subjects scene, the photographic head focal length of mobile phone A Less relative to the photographic head focal length of mobile phone B, i.e. the scope that mobile phone A can photograph is relative to mobile phone B Relatively big, and objects in images is less.

As it is shown in figure 5, a kind of electric room is relative to location determining method, may include that

S401, server obtains the image A of this target scene that mobile phone A is gathered by photographic head;

S402, server obtains the image B of this target scene that mobile phone B is gathered by photographic head;

S403, server analysis obtains image A and comprises image B;

Wherein, the relation of image A and image B is as shown in Figure 6.

S404, server determines the image B right side at image A;

S405, server determines the mobile phone B right side in mobile phone A.

Owing to the mobile phone A different at same plane and focal length parameter and mobile phone B have photographed same target pair As c, and destination object c is the object captured by image B, meanwhile, image B on the right side of image A, Hence, it can be determined that go out the mobile phone B right side in mobile phone A.

In the embodiment of the present invention, for being generally aligned in the same plane and mobile phone A that focal length parameter is different and mobile phone B For, when determining relative position, after mobile phone A judges that image A comprises image B, i.e. image B is clapped The same destination object that the object taken the photograph is had by image A and image B, then can determine that image B exists The right side of image A, and then determine the mobile phone B right side in mobile phone A, achieve mobile phone A and hands with this The determination of the relative position of machine B.

Owing to the first electronic equipment and the second electronic equipment are likely located at same plane, it is also possible to be positioned at difference Plane, further, the embodiment of the present invention also provides for a kind of electric room relative to location determining method, To realize being generally aligned in the same plane or the first electronic equipment of Different Plane and the relative position of the second electronic equipment Determination.

It should be noted that the electric room that the embodiment of the present invention is provided can relative to location determining method To be suitable for inclusion in the scene of one first electronic equipment and the second electronic equipment, now, holding of the method Row main body can be the first electronic equipment or the second electronic equipment;Or, it is adaptable to comprise the first electronics and set In the scene of standby, the second electronic equipment and server, now, the executive agent of the method can be service Device.Further, the first electronic equipment position and the second electronic equipment position close together, make Obtain it and may photograph same destination object in scene.Wherein, the first electronic equipment and the second electronic equipment Being respectively provided with photographic head and acceleration transducer, in actual applications, the first electronic equipment and the second electronics set Standby can be the electronic equipments such as mobile phone, PAD, notebook.

As it is shown in fig. 7, a kind of electric room is relative to location determining method, may include that

S501, obtains the first scene image that the first electronic equipment is gathered by photographic head;

S502, obtains the second scene image that the second electronic equipment is gathered by photographic head;

S503, it is judged that in described first scene image and the second scene image, whether there is same destination object, If it is, perform step S504;Otherwise, step S501 is performed;

In the present embodiment, step S501-step S503 and step S101-step S103 in above-described embodiment Similar, do not repeat them here.

S504, it is judged that in described first scene image in the angles of display of destination object and the second scene image The angles of display of destination object is the most identical, if it is, perform step S505;Otherwise, step is performed S507;

Determine in the first scene image and the second scene image that there is same mesh utilizing image analysis algorithm After mark object, then need to judge angles of display and second scene of destination object in described first scene image In image, the angles of display of destination object is the most identical, to determine that the first electronic equipment is shooting first During scape image and the second electronic equipment shoot the second scene image time the most at grade, and according to Different judged results, performs different operating procedures.When the display of destination object in the first scene image Angle, with when the angles of display of destination object is identical in the second scene image, shows that the first electronic equipment is being clapped When taking the photograph the first scene image and the second electronic equipment when shooting the second scene image at grade, this Time, perform step S505;And as the angles of display of destination object and second in the first scene image In scape image during the angles of display difference of destination object, show that the first electronic equipment is at shooting the first scene graph During picture and the second electronic equipment shoot the second scene image time not at same plane, there is certain angle, At this time, it may be necessary to perform step S507.

S505, determines the described destination object primary importance at described first scene image;

S506, using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, To obtain described first electronic equipment and the relative position of the second electronic equipment;

In the present embodiment, step S505-step S506 and above-described embodiment step S204-step S205 phase Seemingly, do not repeat them here.

S507, is obtained the first electronic equipment and is adopted by acceleration transducer when gathering the first scene image First acceleration parameter of collection;

S508, is obtained the second electronic equipment and is adopted by acceleration transducer when gathering the second scene image Second acceleration parameter of collection;

S509, utilizes described first acceleration parameter and the second acceleration parameter, determines described first electronics Equipment and the angular relationship of the second electronic equipment;

Destination object in destination object angles of display and the second scene image in determining the first scene image During angles of display difference, it may be assumed that the first electronic equipment shoot the first scene image time and the second electronic equipment It is positioned at different planes when shooting the second scene image, then needs to obtain the first electronic equipment and gathering the The first acceleration parameter of being gathered by acceleration transducer during one scene image, obtain the second electronics and set Standby the second acceleration parameter gathered by acceleration transducer when gathering the second scene image, and then Utilize this first acceleration parameter and the second acceleration parameter, determine that the first electronic equipment and the second electronics set Standby angular relationship.It is understood that the first electronic equipment determined and the second electronic equipment angle Relation is that when shooting the first scene image and the second electronic equipment is in shooting the second scene for the first electronic equipment Angular relationship during image.

It should be noted that the X-axis gathered by acceleration transducer in prior art, Y-axis, Z The acceleration parameter of axle correspondence direction, it may be determined that go out the current form of this electronic equipment, i.e. relative to water The angle of inclination of plane.In the present embodiment, the first acceleration parameter is utilized to determine inclining of the first electronic equipment Rake angle mode and utilize the second acceleration parameter to determine the second electronic equipment inclination angle with respect to the horizontal plane Mode and the prior art of degree utilize acceleration transducer determine the mode phase at angle of inclination of electronic equipment Seemingly, do not repeat them here.Further, the first acceleration parameter is being utilized to determine the first electronic equipment Inclination angle with respect to the horizontal plane, and utilize the second acceleration parameter determine the second electronic equipment relative to Behind the inclination angle of horizontal plane, then can determine that the first electronic equipment and the angular relationship of the second electronic equipment.

S510, analyzes the first scene image and the second scene image, determines that the second electronic equipment correspondence is found a view Content is found a view relative to the first electronic equipment correspondence the position of finding a view of content;

Image analysis algorithm is utilized to analyze the first scene image and the second scene image, it may be determined that to go out second Electronic equipment correspondence content of finding a view is found a view relative to the first electronic equipment correspondence the position of finding a view of content.Wherein, Described position of finding a view can be at least may include that upper and lower, left and right, upper left, lower-left, upper right or Bottom right etc..

S511, finds a view in content finds a view relative to the first electronic equipment correspondence according to the second electronic equipment correspondence That holds finds a view position and photographic head parameter time the second electronic equipment shoots the second scene image, determines institute State second electronic equipment second position relative to the first electronic equipment;

Wherein, determining that the second electronic equipment correspondence content of finding a view takes relative to the first electronic equipment correspondence Behind the position of finding a view of scape content, then can utilize this find a view position and the second electronic equipment shooting second The photographic head parameter of scape image, such as: viewing distance, focal length etc., determines that this second electronic equipment is relative The second position in the first electronic equipment.Such as: when viewing distance is less than certain threshold value, the second electronics Equipment correspondence content of finding a view is found a view in the first electronic equipment correspondence the left side of content, and now, the second electronics sets Standby in the left side of the first electronic equipment;And when viewing distance is more than certain threshold value, the second electronic equipment pair Content of should finding a view is found a view in the first electronic equipment correspondence the left side of content, and now, the second electronic equipment is The right side of one electronic equipment.

Below as a example by photographic head A and photographic head B, introduce how to utilize find a view position and viewing distance Determine the photographic head A position relative to photographic head B:

As shown in Figure 8 in scene 1, the content of finding a view of photographic head A is the fan section with lines 1 as axis Territory, the content of finding a view of photographic head B is the sector region with lines 2 as axis;Taking when picture registration When scape distance L is less than o, then the content left side in the content of finding a view of photographic head B of finding a view of photographic head A; When viewing distance L when picture registration is more than o, content the taking at photographic head B of finding a view of photographic head A The right side of scape content.

And owing to photographic head A and photographic head B is closely perception, then it may be assumed that the distance of A, B is Fixed value, such as 10cm, the angular relationship of two equipment can also obtain, so, as long as obtaining L, just Relative position judgment can be carried out.

Wherein, as the content right side (Fig. 8 in the content of finding a view of photographic head B that finds a view that photographic head A occurs Analogue all can occur with Fig. 9), the most now need to judge the length of L, if L is too small, be then figure Position relationship under scene shown in 9, otherwise for the position relationship under scene shown in Fig. 8.

It is understood that the execution sequence of step S507-step 509 and step S510-step S511 is also It is not limited to the present embodiment, such as: step S507-step 509 can be same with step S510-step S511 Shi Jinhang, or, step S510-step S511 is prior to step S507-step 509, and this is all rational.

S512, analyze the second electronic equipment of being determined relative to the first electronic equipment the second position with And described angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.

Determining that the second electronic equipment closes relative to the second position of the first electronic equipment and described angle After system, then may determine that the relative position of described first electronic equipment and the second electronic equipment.

In the embodiment of the present invention, when determining relative position relation, when determining the first scene image and second After scene image has same destination object, continue to judge whether are the first electronic equipment and the second electronic equipment It is generally aligned in the same plane, and then carries out different relative positions according to different judged results and determine step, Achieve eventually and be generally aligned in the same plane or the electronic equipment of Different Plane is relative to the determination of position.

By the description of above embodiment of the method, those skilled in the art is it can be understood that arrive The present invention can add the mode of required general hardware platform by software and realize, naturally it is also possible to by firmly Part, but a lot of in the case of the former is more preferably embodiment.Based on such understanding, the technology of the present invention The part that prior art is contributed by scheme the most in other words can embody with the form of software product Coming, this computer software product is stored in a storage medium, including some instructions with so that one It is each that computer equipment (can be personal computer, server, or the network equipment etc.) performs the present invention All or part of step of method described in individual embodiment.And aforesaid storage medium includes: read only memory (ROM), random-access memory (ram), magnetic disc or CD etc. are various can store program code Medium.

Corresponding to above method embodiment, the embodiment of the present invention also provides for a kind of electronic equipment, such as Figure 10 Shown in, may include that

First scene image acquisition module 110, for obtaining what the first electronic equipment was gathered by photographic head First scene image;

Second scene image acquisition module 120, obtain the second electronic equipment by photographic head gathered second Scene image;

First judge module 130, is used for judging whether have in described first scene image and the second scene image There is same destination object, and where it has, trigger the first relative position determination module;

First relative position determination module 140, for according to described destination object at the first scene image or the The position of two scene images, determines the relative position of described first electronic equipment and the second electronic equipment.

It should be noted that this electronic equipment can be the first electronic equipment, the second electronic equipment or service Device;Further, each module in this electronic equipment is positioned in processor, processor seek unity of action, wherein, This processor can be central processing unit.

In the technical scheme that the embodiment of the present invention is provided, determining that the first electronic equipment and the second electronics set During standby relative position relation, this electronic equipment obtains that the first electronic equipment is gathered by photographic head The second scene image that one scene image and the second electronic equipment are gathered by photographic head;When this first When scene image and the second scene image have same destination object, according to this destination object at first Scape image or the position of the second scene image, determine the relative of this first electronic equipment and the second electronic equipment Position.Visible, in the present embodiment, gathered by analysing and comparing has the first of same target object Scene image and the second scene image, it is achieved that electric room is relative to the determination of position.

Wherein, the first relative position determination module 140, specifically for:

Determine the described destination object primary importance at described first scene image;

Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.

Further, described electronic equipment can also include: the second judge module and the second phase para-position Put and determine module;

Described second judge module, for same when having in described first scene image and the second scene image During one destination object, it is judged that the angles of display of destination object and the second scene graph in described first scene image In Xiang, the angles of display of destination object is the most identical, and in a case of no, triggers the second relative position true Cover half block;

Described second relative position determination module, specifically for:

Obtain that the first electronic equipment is gathered by acceleration transducer when gathering the first scene image the One acceleration parameter;

Obtain that the second electronic equipment is gathered by acceleration transducer when gathering the second scene image the Two acceleration parameter;

Utilize described first acceleration parameter and the second acceleration parameter, determine described first electronic equipment and The angular relationship of the second electronic equipment;

Analyze the first scene image and the second scene image, determine that the second electronic equipment correspondence is found a view content phase First electronic equipment correspondence content of finding a view is found a view position;

Find a view the taking of content relative to the first electronic equipment correspondence according to the second electronic equipment correspondence content of finding a view Scape position and the second electronic equipment shoot photographic head parameter during the first scene image, determine described second Electronic equipment is relative to the second position of the first electronic equipment;

Analyze the second electronic equipment of being determined relative to the second position of the first electronic equipment and described Angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.

Further, described second judge module, it is additionally operable to target pair in described first scene image When the angles of display of destination object is identical in the angles of display of elephant and the second scene image, trigger first relative Position determination module 140;

First relative position determination module 140, specifically for:

Determine the described destination object primary importance at described first scene image;

Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.

Further, described electronic equipment can also include:

Processing module, for when not having same target in described first scene image and the second scene image During object, trigger the first scene image acquisition module and the second scene image acquisition module.

For device or system embodiment, owing to it essentially corresponds to embodiment of the method, thus relevant Part sees the part of embodiment of the method and illustrates.Device described above or system embodiment are only Being schematic, the wherein said unit illustrated as separating component can be or may not be physics Upper separate, the parts shown as unit can be or may not be physical location, i.e. can position In a place, or can also be distributed on multiple NE.Can select according to the actual needs Some or all of module therein realizes the purpose of the present embodiment scheme.Those of ordinary skill in the art In the case of not paying creative work, i.e. it is appreciated that and implements.

In several embodiments provided by the present invention, it should be understood that disclosed system, device and Method, in being not above spirit and scope, can realize in other way.Currently Embodiment be a kind of exemplary example, should not be taken as limit, given particular content should The purpose of this restriction the application.Such as, described unit or the division of subelement, it is only a kind of logic merit Can divide, actual can have other dividing mode, the most multiple unit or multiple subelement knot when realizing Unify.It addition, multiple unit can or assembly can in conjunction with or be desirably integrated into another system, Or some features can ignore, or do not perform.

It addition, described system, apparatus and method and the schematic diagram of different embodiment, without departing from this In the range of application, can be with other system, module, techniques or methods combine or integrated.Another point, Shown or discussed coupling each other or direct-coupling or communication connection can be to be connect by some Mouthful, device or the INDIRECT COUPLING of unit or communication connection, can be electrical, machinery or other form.

The above is only the detailed description of the invention of the present invention, it is noted that general for the art For logical technical staff, under the premise without departing from the principles of the invention, it is also possible to make some improvement and profit Decorations, these improvements and modifications also should be regarded as protection scope of the present invention.

Claims (8)

1. an electric room is relative to location determining method, it is characterised in that described method includes:
Obtain the first scene image that the first electronic equipment is gathered by photographic head;
Obtain the second scene image that the second electronic equipment is gathered by photographic head;
When described first scene image and the second scene image have same destination object, it is judged that described The angles of display of destination object and the angles of display of destination object in the second scene image in first scene image The most identical, when judging to obtain angles of display and second scene of destination object in described first scene image When in image, the angles of display of destination object is identical, according to described destination object at the first scene image or The position of two scene images, determines the relative position of described first electronic equipment and the second electronic equipment, institute Stating same destination object is described first scene image and the image of described second scene image coincidence.
Method the most according to claim 1, it is characterised in that
According to described destination object in the first scene image or the position of the second scene image, determine described One electronic equipment and the relative position of the second electronic equipment, including:
Determine the described destination object primary importance at described first scene image;
Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.
Method the most according to claim 1, it is characterised in that described method also includes:
In judgement obtains angles of display and second scene image of destination object in described first scene image When the angles of display of destination object differs, determine described first electronic equipment and the phase of the second electronic equipment To position, including:
Obtain that the first electronic equipment is gathered by acceleration transducer when gathering the first scene image the One acceleration parameter;
Obtain that the second electronic equipment is gathered by acceleration transducer when gathering the second scene image the Two acceleration parameter;
Utilize described first acceleration parameter and the second acceleration parameter, determine described first electronic equipment and The angular relationship of the second electronic equipment;
Analyze the first scene image and the second scene image, determine that the second electronic equipment correspondence is found a view content phase First electronic equipment correspondence content of finding a view is found a view position;
Find a view the taking of content relative to the first electronic equipment correspondence according to the second electronic equipment correspondence content of finding a view Scape position and the second electronic equipment shoot photographic head parameter during the second scene image, determine described second Electronic equipment is relative to the second position of the first electronic equipment;
Analyze the second electronic equipment of being determined relative to the second position of the first electronic equipment and described Angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.
Method the most according to claim 1, described method also includes: when described first scene image With when the second scene image does not has same destination object, continue to obtain the first electronic equipment by shooting The first scene image that head is gathered;
And obtain the second scene image that the second electronic equipment is gathered by photographic head.
5. an electronic equipment, it is characterised in that including:
First scene image acquisition module, for obtain that the first electronic equipment is gathered by photographic head the One scene image;
Second scene image acquisition module, obtain that the second electronic equipment is gathered by photographic head second Scape image;
First judge module, is used for judging whether have in described first scene image and the second scene image Same destination object;
Second judge module, for when having same mesh in described first scene image and the second scene image During mark object, it is judged that in described first scene image in the angles of display of destination object and the second scene image The angles of display of destination object is the most identical, and where it has, triggers the first relative position to determine mould Block, described same destination object is described first scene image and the image of described second scene image coincidence;
First relative position determination module, is used for according to described destination object at the first scene image or second The position of scene image, determines the relative position of described first electronic equipment and the second electronic equipment.
Electronic equipment the most according to claim 5, it is characterised in that the described first relative position is true Cover half block, specifically for:
Determine the described destination object primary importance at described first scene image;
Using described primary importance as described second electronic equipment relative to the position of the first electronic equipment, to obtain Obtain described first electronic equipment and the relative position of the second electronic equipment.
Electronic equipment the most according to claim 5, it is characterised in that also include: the second phase para-position Put and determine module;
Described second judge module, is additionally operable to when judging the display of destination object in described first scene image In the case of the angles of display of destination object differs in angle and the second scene image, trigger second relative Position determination module;
Described second relative position determination module, specifically for:
Obtain that the first electronic equipment is gathered by acceleration transducer when gathering the first scene image the One acceleration parameter;
Obtain that the second electronic equipment is gathered by acceleration transducer when gathering the second scene image the Two acceleration parameter;
Utilize described first acceleration parameter and the second acceleration parameter, determine described first electronic equipment and The angular relationship of the second electronic equipment;
Analyze the first scene image and the second scene image, determine that the second electronic equipment correspondence is found a view content phase First electronic equipment correspondence content of finding a view is found a view position;
Find a view the taking of content relative to the first electronic equipment correspondence according to the second electronic equipment correspondence content of finding a view Scape position and the second electronic equipment shoot photographic head parameter during the first scene image, determine described second Electronic equipment is relative to the second position of the first electronic equipment;
Analyze the second electronic equipment of being determined relative to the second position of the first electronic equipment and described Angular relationship, to obtain the relative position of described first electronic equipment and the second electronic equipment.
Electronic equipment the most according to claim 5, it is characterised in that also include:
Processing module, for when not having same target in described first scene image and the second scene image During object, trigger the first scene image acquisition module and the second scene image acquisition module.
CN201210226437.8A 2012-06-29 2012-06-29 Electric room is relative to location determining method and electronic equipment CN103512557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210226437.8A CN103512557B (en) 2012-06-29 2012-06-29 Electric room is relative to location determining method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210226437.8A CN103512557B (en) 2012-06-29 2012-06-29 Electric room is relative to location determining method and electronic equipment

Publications (2)

Publication Number Publication Date
CN103512557A CN103512557A (en) 2014-01-15
CN103512557B true CN103512557B (en) 2016-12-21

Family

ID=49895670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210226437.8A CN103512557B (en) 2012-06-29 2012-06-29 Electric room is relative to location determining method and electronic equipment

Country Status (1)

Country Link
CN (1) CN103512557B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104601439A (en) * 2014-08-11 2015-05-06 腾讯科技(深圳)有限公司 File transfer method, position determination method, relative device, apparatus and system
CN104731541B (en) * 2015-03-17 2019-01-15 联想(北京)有限公司 A kind of control method, electronic equipment and system
CN105468095B (en) * 2015-11-12 2019-01-15 联想(北京)有限公司 A kind of angle detecting method and electronic equipment
CN107390863A (en) * 2017-06-16 2017-11-24 北京七鑫易维信息技术有限公司 Control method and device, electronic equipment, the storage medium of equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464970A (en) * 2000-03-23 2003-12-31 捷装技术公司 Self-calibrating, multi-camera machine vision measuring system
CN101180634A (en) * 2005-03-30 2008-05-14 宾夕法尼亚州大学理事会 A system and method for localizing imaging devices
CN101828394A (en) * 2007-10-19 2010-09-08 株式会社丰田自动织机 Video display device and video display method
CN102369413A (en) * 2009-03-31 2012-03-07 阿尔卡特朗讯公司 A method for determining the relative position of a first and a second imaging device and devices therefore

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6789039B1 (en) * 2000-04-05 2004-09-07 Microsoft Corporation Relative range camera calibration
US8593535B2 (en) * 2010-09-10 2013-11-26 Apple Inc. Relative positioning of devices based on captured images of tags

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464970A (en) * 2000-03-23 2003-12-31 捷装技术公司 Self-calibrating, multi-camera machine vision measuring system
CN101180634A (en) * 2005-03-30 2008-05-14 宾夕法尼亚州大学理事会 A system and method for localizing imaging devices
CN101828394A (en) * 2007-10-19 2010-09-08 株式会社丰田自动织机 Video display device and video display method
CN102369413A (en) * 2009-03-31 2012-03-07 阿尔卡特朗讯公司 A method for determining the relative position of a first and a second imaging device and devices therefore

Also Published As

Publication number Publication date
CN103512557A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN104580878B (en) Electronic device and the method for automatically determining image effect
US9071724B2 (en) Method and apparatus for providing a video call service
EP2915137B1 (en) Using a plurality of sensors for mapping and localization
US9699375B2 (en) Method and apparatus for determining camera location information and/or camera pose information according to a global coordinate system
KR101977703B1 (en) Method for controlling photographing in terminal and terminal thereof
JP2012084146A (en) User device and method providing augmented reality (ar)
DE202010018459U1 (en) System for displaying transitions between street views
CN104038690B (en) Image processing apparatus, image capturing device and image processing method
CN103813108A (en) Array camera, mobile terminal, and methods for operating the same
KR101315399B1 (en) Terminal device and method for providing object information
US9635248B2 (en) Mobile device and method for controlling the same
US20140118483A1 (en) Smart targets facilitating the capture of contiguous images
US9564175B2 (en) Clustering crowdsourced videos by line-of-sight
US9582937B2 (en) Method, apparatus and computer program product for displaying an indication of an object within a current field of view
CN105245771A (en) Mobile camera system
US20150244986A1 (en) Virtual circular conferencing experience using unified communication technology
Chen et al. Crowd map: Accurate reconstruction of indoor floor plans from crowdsourced sensor-rich videos
KR20160028490A (en) Image processing apparatus, image processing method, and imaging system
CN105956518A (en) Face identification method, device and system
KR101606727B1 (en) Mobile terminal and operation method thereof
US20110148739A1 (en) Method and Apparatus for Determining Information for Display
CN104284092A (en) Photographing method, intelligent terminal and cloud server
Chen et al. Rise of the indoor crowd: Reconstruction of building interior view via mobile crowdsourcing
CN103310005A (en) Thumbnail display method and device
EP2988210A1 (en) Gesture control method, apparatus and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant