CN106383679A - Locating method and terminal device using same - Google Patents
Locating method and terminal device using same Download PDFInfo
- Publication number
- CN106383679A CN106383679A CN201610798466.XA CN201610798466A CN106383679A CN 106383679 A CN106383679 A CN 106383679A CN 201610798466 A CN201610798466 A CN 201610798466A CN 106383679 A CN106383679 A CN 106383679A
- Authority
- CN
- China
- Prior art keywords
- image
- equipment
- information
- subset
- rgb
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
- Image Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
An embodiment of the invention provides a locating method. The locating method is characterized in that a first device and a second device are in a connected state. The locating method comprises the steps that the first device obtains a first image, wherein the first image is a subset of a second image, the second image is a complete image displayed by the second device, the second image includes a foreground image and a background image, the first image comprises a subset of the foreground image, and the first image further comprises a subset of the background image; and the first device determines the position of the first device relative to the second device according to color information of the first image. According to the locating method provided by the embodiment of the invention, the image displayed on the second device is obtained through the first device, so that the position of the first device relative to the second device can be determined, and the user experience can be improved without adding hardware equipment.
Description
Technical field
The present invention relates to terminal display field, more particularly, to a kind of localization method and its terminal unit.
Background technology
Enhancing with smart mobile phone function and popularization, it has become as after PC, second letter of user
Breath center, due to the advantage of the intrinsic hardware of PC (such as screen) and software (such as large-scale application software data),
Increasing people needs the combination between computer and mobile phone to interact, and this interaction needs to be seamlessly connected two equipment, can
Meet the Consumer's Experience of flow process it is not required that increasing extra hardware cost and back-end data process service, and reach this friendship
A mutual premise is the positioning between mobile phone and PC screen.Therefore, how to determine the relative position between user equipment, be one
Individual problem demanding prompt solution.
Content of the invention
This law embodiment provides a kind of localization method, can determine the relative position between equipment.
In a first aspect, providing a kind of localization method, the first equipment and the second equipment to be in connection status, including:Described
One equipment obtains the first image, and wherein, described first image is the subset of the second image, and described second image sets for described second
The complete image of standby display, described second image includes foreground image and background image, and described first image includes described prospect
The subset of image, described first image also includes the subset of described background image;Described first equipment is according to described first image
Color information, determine the position that described first equipment is with respect to described second equipment.
In conjunction with a first aspect, in the first possible implementation of first aspect, described according to described first image
Color information, determine the position that described first equipment is with respect to described second equipment, including:Obtain the color of described second image
Multimedia message, and described second image RGB RGB information is determined according to the color information of described second image;According to described first
The color information of image determines the RGB RGB information of described first image;RGB information according to described first image with described
The RGB information of the second image, determines described first equipment position with respect to described second equipment in the horizontal direction.
In conjunction with first aspect and its above-mentioned implementation, in the possible implementation of the second of first aspect, described
According to the color information of described first image, determine the position that described first equipment is with respect to described second equipment, including:Obtain
The information of the 3rd image, wherein, described 3rd image is the subset of the second image, and described 3rd image includes described foreground image
Subset, described 3rd image also includes the subset of described background image, described first equipment obtain during described three image with
When described first equipment obtains described first image, different from the vertical dimension of described second equipment;According to described first image
Color information determine the RGB information of described first image;Described 3rd figure is determined according to the color information of described 3rd image
The RGB information of picture;The RGB information of the RGB information according to described first image and described 3rd image obtains described first image
With the aberration of described 3rd image, and determine described first equipment and described second equipment in vertical direction according to described aberration
Distance.
In conjunction with first aspect and its above-mentioned implementation, in the third possible implementation of first aspect, described
First equipment obtains the first image, including:The photographic head of the first equipment described in described first equipment utilization obtains described first figure
Picture.
In conjunction with first aspect and its above-mentioned implementation, in the 4th kind of possible implementation of first aspect, described
Method also includes:Send the positional information that described first equipment is with respect to described second equipment to described second equipment.
In conjunction with first aspect and its above-mentioned implementation, in the 5th kind of possible implementation of first aspect, described
Method also includes:Described first equipment obtains the 4th image, and wherein, described 4th image only includes the subset of described foreground image
Or the subset of described background image;
Described first equipment sends configured information to described second equipment, and described configured information is used for indicating that described second sets
Described second image of standby renewal, determines according to described second image after updating in order to described first equipment and sets with described second
Standby relative position.
Second aspect, provides a kind of localization method, the first equipment and the second equipment to be in connection status, including:Described
Two equipment show the second image, and described second image includes foreground image and background image;Described second equipment is according to described
The color information of the first image that one equipment obtains, determines the position that described first equipment is with respect to described second equipment, wherein,
Described first image is the subset of the second image, and described first image includes the subset of described foreground image, described first image
Also include the subset of described background image.
In conjunction with second aspect, in the first possible implementation of second aspect, described second equipment is according to described
The color information of the first image that the first equipment obtains, determines the position that described first equipment is with respect to described second equipment, bag
Include:The color information of described first image is obtained at described first equipment;According to the acquisition of information of described first image
The RGB RGB information of the first image;RGB information according to described first image and the RGB information of described second image, determine
The described first equipment position in the horizontal direction with described second equipment relatively, wherein, the color information bag of described second image
Include the RGB information of described second image.
In conjunction with second aspect and its above-mentioned implementation, in the possible implementation of the second of second aspect, described
According to the color information of described first image, determine the position that described first equipment is with respect to described second equipment, including:From institute
State the color information obtaining the 3rd image at the first equipment, wherein, described 3rd image is the subset of the second image, the described 3rd
Image includes the subset of described foreground image, and described 3rd image also includes the subset of described background image, described first equipment
Obtain during described three image and when described equipment obtains described first image, different from the vertical dimension of described second equipment;
The color information of described first image is obtained at described first equipment;According to the acquiring color information of described first image
The RGB information of the first image;RGB information according to described 3rd image the 3rd image described in acquiring color information;According to institute
The RGB information of the RGB information and described 3rd image of stating the first image obtains the color of described first image and described 3rd image
Difference, and the described first equipment and described second equipment distance in vertical direction is determined according to described aberration.
In conjunction with second aspect and its above-mentioned implementation, in the third possible implementation of second aspect, described
Method also includes:When the 4th image that described first equipment obtains only includes the subset of described foreground image or described background image
Subset when, receive the configured information that described first equipment sends, described configured information is used for indicating described second renewal of the equipment
Described second image, in order to described first equipment according to the new image of described second Image Acquisition after updating.
The third aspect, provides a kind of equipment, described equipment and the second equipment to be in connection status, including:
Acquiring unit, described acquiring unit is used for obtaining the first image, and wherein, described first image is the son of the second image
Collection, described second image is the complete image that described second equipment shows, described second image includes foreground image and Background
Picture, described first image includes the subset of described foreground image, and described first image also includes the subset of described background image;Really
Order unit, described determining unit is used for the color information according to described first image, determines described equipment with respect to described second
The position of equipment.
In conjunction with the third aspect, in the first possible implementation of the third aspect, described acquiring unit is used for obtaining
The color information of described second image, and described second image RGB RGB is determined according to the color information of described second image
Information;Described determining unit is used for:Determine the RGB RGB letter of described first image according to the color information of described first image
Breath;The RGB information of the RGB information according to described first image and described second image, determines described equipment with respect to described the
Two equipment position in the horizontal direction.
In conjunction with the third aspect and its above-mentioned implementation, in the possible implementation of the second of the third aspect, described
Acquiring unit is used for:Obtain the information of the 3rd image, wherein, described 3rd image is the subset of the second image, described 3rd figure
As including the subset of described foreground image, described 3rd image also includes the subset of described background image, and described equipment obtains institute
State during three images and when described equipment obtains described first image, different from the vertical dimension of described second equipment;Described true
Order unit is used for:Determine the RGB information of described first image according to the color information of described first image;According to described 3rd figure
The color information of picture determines the RGB information of described 3rd image;RGB information according to described first image and described 3rd image
RGB information obtain the aberration of described first image and described 3rd image, and described equipment and institute are determined according to described aberration
State the distance in vertical direction for second equipment.
In conjunction with the third aspect and its above-mentioned implementation, in the third possible implementation of the third aspect, described
Acquiring unit is used for obtaining described first image using the photographic head of described equipment.
In conjunction with the third aspect and its above-mentioned implementation, in the 4th kind of possible implementation of the third aspect, described
Equipment also includes:Transmitting element, described transmitting element is used for sending described equipment with respect to described second to described second equipment
The positional information of equipment.
In conjunction with the third aspect and its above-mentioned implementation, in the 5th kind of possible implementation of the third aspect, described
Acquiring unit is used for:Obtain the 4th image, wherein, described 4th image only includes the subset of described foreground image or described background
The subset of image;Transmitting element is used for sending configured information to described second equipment, and described configured information is used for indicating described the
Second image described in two renewal of the equipment, determines according to described second image after updating in order to described equipment and sets with described second
Standby relative position.
Fourth aspect, provides a kind of equipment, and the first equipment and described equipment are in connection status, including:Display unit, institute
State display unit for show the second image, described second image includes foreground image and background image;Determining unit, described true
The color information of the first image for being obtained according to described first equipment for the order unit, determines described first equipment with respect to described
The position of equipment, wherein, described first image is the subset of the second image, and described first image includes the son of described foreground image
Collection, described first image also includes the subset of described background image.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, it is used in described determining unit:From
The color information of described first image is obtained at described first equipment;The first figure according to the acquisition of information of described first image
The RGB RGB information of picture;The RGB information of the RGB information according to described first image and described second image, determines described the
The one equipment position in the horizontal direction with described equipment relatively, wherein, the color information of described second image includes described second
The RGB information of image.
In conjunction with fourth aspect and its above-mentioned implementation, in the possible implementation of the second of fourth aspect, described
Determining unit is used for:Obtain the color information of the 3rd image at described first equipment, wherein, described 3rd image is the second figure
The subset of picture, described 3rd image includes the subset of described foreground image, and described 3rd image also includes described background image
Subset, described first equipment obtains when obtaining described first image with described equipment during described three image, with described equipment
Vertical dimension is different;The color information of described first image is obtained at described first equipment;Color according to described first image
Multimedia message obtains the RGB information of described first image;According to described 3rd image the 3rd image described in acquiring color information
RGB information;The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and institute
State the aberration of the 3rd image, and the described first equipment and described equipment distance in vertical direction is determined according to described aberration.
In conjunction with fourth aspect and its above-mentioned implementation, in the third possible implementation of fourth aspect, described
Equipment also includes:Receiving unit, described receiving unit be used for when described first equipment obtain the 4th image only include described before
During the subset of the subset of scape image or described background image, receive the configured information that described first equipment sends, described instruction letter
Cease for indicating the second image described in described renewal of the equipment, in order to described first equipment according to described second image after updating
Obtain new image.
Therefore, the embodiment of the present invention passes through the image that the first equipment obtains display on the second equipment, can determine that first sets
The standby position relatively with the second equipment, in the case of not increasing hardware device, it is possible to increase Consumer's Experience.
Brief description
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, will make to required in the embodiment of the present invention below
Accompanying drawing be briefly described it should be apparent that, drawings described below is only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the schematic diagram of the application scenarios of one embodiment of the invention.
Fig. 2 is the indicative flowchart of the method for one embodiment of the invention.
Fig. 3 is the indicative flowchart of the method for another embodiment of the present invention.
Fig. 4 is the indicative flowchart of the method for another embodiment of the present invention.
Fig. 5 is the indicative flowchart of another embodiment of the present invention.
Fig. 6 is the schematic diagram of the equipment of one embodiment of the invention.
Fig. 7 is the schematic diagram of the equipment of another embodiment of the present invention.
Specific embodiment
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 clear, complete
Site preparation describes it is clear that described embodiment is a part of embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in bright, the every other reality that those of ordinary skill in the art are obtained on the premise of not making creative work
Apply example, all should belong to the scope of protection of the invention.
Fig. 1 is the schematic diagram of the application scenarios of one embodiment of the invention.As shown in figure 1, when equipment (such as mobile phone) and
When equipment (such as PC) needs to be combined being used interchangeably, bluetooth, infrared or Wireless Fidelity WiFi skill may be passed through
Art etc. is attached, and can carry out the transmission of data, but due between mobile phone and PC mutual alignment cannot determine
When it is impossible to provide visual feedback information it is impossible to intuitively obtain the information that presents in PC using mobile phone.Existing mobile phone
Being mutually located and giant-screen between, the method generally by physical markings is it is thus possible to need to transform hardware device.
Fig. 2 is the indicative flowchart of the method for one embodiment of the invention.As shown in Fig. 2 wherein, the first equipment and
Two equipment are in connection status, and the method includes:
Step 210, the first equipment obtains the first image, and wherein, the first image is the subset of the second image, and the second image is
The complete image that second equipment shows, the second image includes foreground image and background image, and the first image includes foreground image
Subset, the first image also includes the subset of background image.
Step 220, the first equipment, according to the color information of the first image, determines the position that the first equipment is with respect to the second equipment
Put.
Specifically, the first equipment and the second equipment are in connection status and refer to can enter between the first equipment and the second equipment
The transmission of row data and communication, such as by technology such as bluetooth, WiFi to be attached by way of wireless or wired, Ying Li
Solution, the invention is not restricted to this.
Specifically, the first equipment can be the intelligent terminal with camera function, and the second equipment can be for having screen
The terminal unit of curtain display function.
In step 210, the second image is the complete image that the second equipment shows, the second image is coloured image, and this
Two images include foreground image and background image, and the such as second image can be for covering formula figure, and the first equipment is in advance or by disappearing
The mode of breath transmission knows the pattern of this second graph, and foreground image is different with the color of background image;
First image is that the first equipment shoots, by photographic head, the image obtaining during the second image, and this first image is similarly
Coloured image, therefore, the first image is the subset of the second image, and specifically, the first image includes the prospect of above-mentioned second image
A part for image, that is, include the subset of foreground image, the first image also includes of the background image of the second image
Point.
Specifically, in a step 220, because the first equipment knows the concrete pattern of the second image, therefore obtained by oneself
The color information of the first image taking, is compared with known second image it may be determined that the first equipment is relative sets with second
Standby position.
Therefore, the embodiment of the present invention passes through the image that the first equipment obtains display on the second equipment, can determine that first sets
The standby relative position with the second equipment is such that it is able to improve Consumer's Experience.
Alternatively, as one embodiment of the invention, according to the color information of the first image, determine described first equipment phase
For the position of described second equipment, including:Obtain the color information of the second image, and true according to the color information of the second image
Fixed second image RGB RGB information;Determine the RGB RGB information of the first image according to the color information of the first image;Root
According to the RGB information of RGB information and second image of the first image, determine the first equipment with respect to the second equipment in the horizontal direction
Position.
That is, the first equipment by way of receiving the second facility information, can obtain the color letter of the second image
Breath, further, by RGB information and the second image RGB information of the first image, determines the first equipment with respect to the second equipment
Position on XY direction of principal axis.
For example, shown by computer screen and cover formula color graphics, mobile phone camera captures rgb value, to be obtained by calculating
Mobile phone is with respect to the X of computer screen, Y-coordinate.
Alternatively, as one embodiment of the invention, according to the color information of the first image, determine the first equipment with respect to
The position of the second equipment, including:Obtain the information of the 3rd image, wherein, the 3rd image is the subset of the second image, the 3rd image
Including the subset of foreground image, the 3rd image also includes the subset of background image, with first during the first equipment acquisition three image
When equipment obtains the first image, different from the vertical dimension of the second equipment;First figure is determined according to the color information of the first image
The RGB information of picture;Determine the RGB information of the 3rd image according to the color information of the 3rd image;RGB information according to the first image
Obtain the aberration of the first image and the 3rd image with the RGB information of the 3rd image, and the first equipment and second are determined according to aberration
Equipment is in the distance of vertical direction.
That is, when the first equipment is different in the position in the second equipment vertical direction, two width of acquisition
Image, that is, the first image and the 3rd image be in diverse location photographs, then this two field pictures is passed through to calculate color
Deviation is assured that the first equipment with respect to the distance in the vertical direction of the second equipment.
For example, the first image be the first equipment from the second equipment closer when obtain, then this first image has
One color contrast, the 3rd image be the first equipment from the second equipment farther out when obtain, then the 3rd image has second
Color contrast, the such a corresponding relation according to Z axis position and first, second color contrast is it becomes possible to determine first
Equipment is with respect to the second equipment in the position of vertical direction.
Alternatively, as one embodiment of the invention, above-mentioned first equipment obtains the first image, including:First equipment profit
Obtain the first image with the photographic head of the first equipment.
Alternatively, as one embodiment of the invention, said method also includes:Send the first equipment to the second equipment relatively
Positional information in described second equipment.
That is, after the first equipment determines with the relative position of the second equipment, can by this first equipment with respect to
The positional information of the second equipment is sent to the second equipment, in order to the second equipment according to the position of the first equipment, with the first equipment
Enter row data communication, more intuitively enter the interaction of row information.
Alternatively, said method also includes:First equipment obtains the 4th image, and wherein, the 4th image only includes foreground picture
The subset of picture or the subset of background image;First equipment sends configured information to the second equipment, and configured information is used for instruction second
Second image described in renewal of the equipment, determines the relative position with the second equipment in order to the first equipment according to the second image after updating
Put.
That is, the 4th image is similarly the first equipment shoots, by photographic head, the image obtaining during the second image, and
4th image but only include the subset of foreground image in the second image or the subset of background image that is to say, that the 4th image only
Only it is made up of the foreground image of the second image or is only made up of background image, at this moment the first equipment utilization the 4th image may be no
Method knows the position with respect to the second equipment, and now, the first equipment sends configured information to the second equipment, and instruction the second equipment is more
New second image, now, the first equipment shoots the second image after updating, and the image according to obtaining proceeds sentencing of position
Disconnected.
In other words, when first equipment obtain image only include foreground image or background image when it may be impossible to
Determine the first equipment and the relative position of the second equipment, therefore, the second equipment will update the image of display on screen.
Fig. 3 is the indicative flowchart of the method for another embodiment of the present invention.As shown in figure 3, wherein, the first equipment and
Two equipment are in connection status, and the method includes:
Step 310, the second equipment shows the second image, and the second image includes foreground image and background image.
Step 310, the color information of the first image that the second equipment obtains according to the first equipment, determine the first equipment relatively
In the position of the second equipment, wherein, the first image is the subset of the second image, and the first image includes the subset of foreground image, the
One image also includes the subset of background image.
Specifically, the second image is coloured image, and the second equipment can be believed according to the color of the first image and the second image
Breath, judges the position that the first equipment is with respect to the second equipment.
Therefore, the color information of the first image that the second equipment obtains according to the first equipment, can determine the first equipment phase
For the position of the second equipment, improve Consumer's Experience.
Alternatively, as one embodiment of the invention, the color of the first image that the second equipment obtains according to the first equipment
Information, determines the position that the first equipment is with respect to the second equipment, including:The color letter of the first image is obtained at the first equipment
Breath;The RGB RGB information of acquisition of information first image according to the first image;RGB information according to the first image and second
The RGB information of image, determines the first equipment position in the horizontal direction with the second equipment relatively, wherein, described second image
Color information includes the RGB information of described second image.
Alternatively, the color information according to the first image, determines the position that the first equipment is with respect to the second equipment, including:
Obtain the color information of the 3rd image at the first equipment, wherein, the 3rd image is the subset of the second image, and the 3rd image includes
The subset of foreground image, the 3rd image also includes the subset of background image, and the first equipment is obtained and obtained with equipment during three images
During described first image, different from the vertical dimension of the second equipment;The color information of the first image is obtained at the first equipment;Root
RGB information according to acquiring color information first image of the first image;Acquiring color information the 3rd image according to the 3rd image
RGB information;The RGB information of the RGB information according to the first image and the 3rd image obtains the aberration of the first image and the 3rd image,
And the first equipment and described second equipment distance in vertical direction is determined according to above-mentioned aberration.
Alternatively, as one embodiment of the invention, said method also includes:The 4th image obtaining when the first equipment
During the subset of the subset including foreground image or background image, receive the configured information that the first equipment sends, configured information is used for
Indicate the second image described in described second renewal of the equipment, new according to described second Image Acquisition after updating in order to the first equipment
Image.
That is, when the 4th image that the first equipment obtains only includes the subset of foreground image or only of the second image
During the subset of the background image only including the second image, configured information can be sent to the second equipment, the second equipment will be according to this
Configured information, updates the second image, that is, updates on the second equipment the image of display, in order to the first equipment according to updating after
The new image of the second Image Acquisition, if the new image of acquisition includes foreground image subset and the background image of the second image
Subset, then the second equipment just can according to this new Image Acquisition first equipment with respect to the second equipment position.
Specifically, the second equipment can cover position and the size of formula color graphics by dynamic adjustment, that is, above-mentioned more
New second image, to reach the position that dynamic tracking first equipment is with respect to the second equipment.
Therefore, the embodiment of the present invention is passed through to obtain the image of display on the second equipment that the first equipment shoots, and can determine
First equipment, with respect to the position of the second equipment, is increased without hardware device, improves Consumer's Experience, and can provide and closely connect
Contact the positioning of 10-20CM distance.
Fig. 4 is the indicative flowchart of the method for another embodiment of the present invention.In the method, the first equipment is mobile phone, the
Two equipment are PC (English:Personal Computer, writes a Chinese character in simplified form:PC).
As shown in figure 4, on the screen of the method comprising the steps of 401, PC, formula coloured image is covered in display, that is, above-mentioned second
Image.
Step 402, mobile phone utilizes photographic head to obtain the second image of display on PC screen, shoots and obtains the first image.
Step 403, is calculated the rgb value of the first image.
Step 404, the rgb value according to the first image calculates 2D (X, the Y) coordinate with respect to PC for the mobile phone.
Step 405, acquisition mobile phone relative position in the horizontal direction with respect to PC.
Step 406, calculates the color in two frame the first images obtaining before the Z axis change in location of PC and after change for the mobile phone
Difference.
Step 407, according to above-mentioned Colorimetry mobile phone with respect to PC coordinate in vertical direction, obtain mobile phone with respect to
The relative position of PC.
Step 407, calculates the adjustment vector covering formula coloured image.
Step 409, size and/or the position of formula coloured image is covered in the second equipment adjustment.That is, the second equipment is carried out
The renewal of the second image.
Therefore, the embodiment of the present invention is passed through to obtain the image of display on the second equipment that the first equipment shoots, and can determine
First equipment, with respect to the position of the second equipment, is increased without hardware device, improves Consumer's Experience, and can provide and closely connect
Contact the positioning of 10-20CM distance.
Fig. 5 is the indicative flowchart of another embodiment of the present invention.
As shown in figure 5, step 501, formula figure is covered in display one on a pc screen, that is, above-mentioned second equipment shows
Foreground image in second image, in the second image, the part in addition to covering formula figure is background image.
Step 502, mobile phone obtains image, that is, the first image that above-mentioned first equipment obtains by photographic head.
Step 503, mobile phone detects in the first image with the presence or absence of covering formula figure, that is, whether includes the in the first image
The foreground image of two images, if there is change carry out step 504, otherwise carry out step 505.
Step 504, the image that opponent's machine examination measures carries out color sample, obtains sample point.
Step 505, PC updates the second image, that is, the size and location of formula image is covered in adjustment.
Step 506, according to step 504 color sample, calculates the X that mobile phone is with respect to PC, Y direction position, that is, schemes
In by interior point calculate position.
Step 507, by determining the aberration of the two field pictures of mobile phone acquisition, determines mobile phone with respect to the Z-direction of PC
Position.Specifically, by the aberration of two frames, can determine outlier, that is, outlier is determined by the aberration with previous frame.
Step 508, can determine adjustment vector by the position of outlier.
Step 509, can determine according to adjustment vector and modulates the size and location covering formula image on PC screen.
Therefore, the embodiment of the present invention is passed through to obtain the image of display on the second equipment that the first equipment shoots, and can determine
First equipment, with respect to the position of the second equipment, is increased without hardware device, improves Consumer's Experience, and can provide and closely connect
Contact the positioning of 10-20CM distance.
Fig. 6 is the schematic diagram of the equipment of one embodiment of the invention.As shown in fig. 6, this equipment 600 includes:
Acquiring unit 610, described acquiring unit 610 is used for obtaining the first image, and wherein, described first image is the second figure
The subset of picture, described second image is the complete image that described second equipment shows, described second image include foreground image and
Background image, described first image includes the subset of described foreground image, and described first image also includes described background image
Subset.
Determining unit 620, described determining unit 620 is used for the color information according to described first image, sets described in determination
The standby position with respect to described second equipment.
Alternatively, as one embodiment of the invention, described acquiring unit 610 is used for obtaining the color of described second image
Information, and described second image RGB RGB information is determined according to the color information of described second image;Described determining unit is used
In:Determine the RGB RGB information of described first image according to the color information of described first image;According to described first image
RGB information and described second image RGB information, determine described equipment position with respect to described second equipment in the horizontal direction
Put.
Alternatively, as one embodiment of the invention, described acquiring unit 610 is used for:Obtain the information of the 3rd image, its
In, described 3rd image is the subset of the second image, and described 3rd image includes the subset of described foreground image, described 3rd figure
As also including the subset of described background image, described equipment obtains and obtains described first figure with described equipment during described three image
During picture, different from the vertical dimension of described second equipment;Described determining unit 620 is used for:Color according to described first image
Information determines the RGB information of described first image;Determine the RGB of described 3rd image according to the color information of described 3rd image
Information;The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and described the
The aberration of three images, and the described equipment and described second equipment distance in vertical direction is determined according to described aberration.
Alternatively, as one embodiment of the invention, described acquiring unit 610 is used for obtaining using the photographic head of described equipment
Take described first image.
Alternatively, as one embodiment of the invention, described equipment also includes:Transmitting element, described transmitting element is used for
Send the positional information that described equipment is with respect to described second equipment to described second equipment.
Alternatively, as one embodiment of the invention, described acquiring unit 610 is used for:Obtain the 4th image, wherein, institute
State the 4th image and only include the subset of described foreground image or the subset of described background image;Transmitting element is used for described second
Equipment sends configured information, and described configured information is used for indicating the second image described in described second renewal of the equipment, in order to described
Equipment determines the relative position with described second equipment according to described second image after updating.
Fig. 7 is the schematic diagram of the equipment of another embodiment of the present invention.As shown in fig. 7, this equipment 700 includes:
Display unit 710, described display unit 710 is used for display the second image, and described second image includes foreground image
And background image;
Determining unit 720, described determining unit 720 is used for the color letter of the first image according to described first equipment acquisition
Breath, determines the position that described first equipment is with respect to described equipment, wherein, described first image is the subset of the second image, institute
State the subset that the first image includes described foreground image, described first image also includes the subset of described background image.
Alternatively, as one embodiment of the invention, described determining unit 720 is used for:Obtain at described first equipment
The color information of described first image;The RGB RGB information of the acquisition of information described first image according to described first image;
RGB information according to described first image and the RGB information of described second image, determine that described first equipment is set with described relatively
Standby position in the horizontal direction, wherein, the color information of described second image includes the RGB information of described second image.
Alternatively, as one embodiment of the invention, described determining unit 720 is used for:Obtain at described first equipment
The color information of the 3rd image, wherein, described 3rd image is the subset of the second image, and described 3rd image includes described prospect
The subset of image, described 3rd image also includes the subset of described background image, and described first equipment obtains described 3rd image
When obtaining described first image with described equipment, different from the vertical dimension of described equipment;Obtain at described first equipment
The color information of described first image;The RGB information of the acquiring color information described first image according to described first image;Root
RGB information according to described 3rd image the 3rd image described in acquiring color information;RGB information according to described first image and
The RGB information of described 3rd image obtains the aberration of described first image and described 3rd image, and is determined according to described aberration
Described first equipment and described equipment are in the distance of vertical direction.
Alternatively, as one embodiment of the invention, described equipment also includes:Receiving unit, described receiving unit is used for
When the 4th image that described first equipment obtains only includes the subset of the subset of described foreground image or described background image, connect
Receive the configured information that described first equipment sends, described configured information is used for indicating the second image described in described renewal of the equipment, with
It is easy to described first equipment according to the new image of described second Image Acquisition after updating.
Those of ordinary skill in the art are it is to be appreciated that combine each method step described in the embodiments described herein
Rapid and unit, can be with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and soft
The interchangeability of part, generally describes step and the composition of each embodiment in the above description according to function.These
Function to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint.Ability
Domain those of ordinary skill can use different methods to each specific application realize described function, but this reality
Existing it is not considered that beyond the scope of this invention.
Method in conjunction with the embodiments described herein description or step can be with the software journeys of hardware, computing device
Sequence, or the combination of the two is implementing.Software program can be placed in random access memory (RAM), internal memory, read only memory (ROM),
In electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technical field, institute is public
In any other form of storage medium known.
Although by reference to accompanying drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or replacement, and these modification or replace all should be in the covering scope of the present invention.
Claims (20)
1. a kind of localization method is it is characterised in that the first equipment and the second equipment are in connection status, including:
Described first equipment obtains the first image, and wherein, described first image is the subset of the second image, and described second image is
The complete image that described second equipment shows, described second image includes foreground image and background image, described first image bag
Include the subset of described foreground image, described first image also includes the subset of described background image;
Described first equipment, according to the color information of described first image, determines described first equipment with respect to described second equipment
Position.
2. method according to claim 1, it is characterised in that the described color information according to described first image, determines
Described first equipment with respect to the position of described second equipment, including:
Obtain the color information of described second image, and determine that described second image is red according to the color information of described second image
Turquoise RGB information;
Determine the RGB RGB information of described first image according to the color information of described first image;
RGB information according to described first image and the RGB information of described second image, determine described first equipment with respect to institute
State the second equipment position in the horizontal direction.
3. method according to claim 1 and 2 is it is characterised in that the described color information according to described first image, really
Determine the position that described first equipment is with respect to described second equipment, including:
Obtain the information of the 3rd image, wherein, described 3rd image is the subset of the second image, described 3rd image includes described
The subset of foreground image, described 3rd image also includes the subset of described background image, and described first equipment obtains the described 3rd
When obtaining described first image with described first equipment during image, different from the vertical dimension of described second equipment;
Determine the RGB information of described first image according to the color information of described first image;
Determine the RGB information of described 3rd image according to the color information of described 3rd image;
The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and described the
The aberration of three images, and the described first equipment and described second equipment distance in vertical direction is determined according to described aberration.
4. according to the method in any one of claims 1 to 3 it is characterised in that described first equipment obtains the first image,
Including:
The photographic head of the first equipment described in described first equipment utilization obtains described first image.
5. method according to any one of claim 1 to 4 is it is characterised in that methods described also includes:
Send the positional information that described first equipment is with respect to described second equipment to described second equipment.
6. method according to any one of claim 1 to 5 is it is characterised in that methods described also includes:
Described first equipment obtains the 4th image, and wherein, described 4th image only includes the subset of described foreground image or described
The subset of background image;
Described first equipment sends configured information to described second equipment, and described configured information is used for indicating described second equipment more
Newly described second image, determines and described second equipment according to described second image after updating in order to described first equipment
Relative position.
7. a kind of localization method is it is characterised in that the first equipment and the second equipment are in connection status, including:
Described second equipment shows the second image, and described second image includes foreground image and background image;
The color information of the first image that described second equipment obtains according to described first equipment, determines described first equipment relatively
In the position of described second equipment, wherein, described first image is the subset of the second image, described first image include described before
The subset of scape image, described first image also includes the subset of described background image.
8. method according to claim 7 it is characterised in that described second equipment obtained according to described first equipment the
The color information of one image, determines the position that described first equipment is with respect to described second equipment, including:
The color information of described first image is obtained at described first equipment;
The RGB RGB information of the acquisition of information described first image according to described first image;
The RGB information of the RGB information according to described first image and described second image, determine described first equipment relatively with institute
State the second equipment position in the horizontal direction, wherein, the color information of described second image includes the RGB letter of described second image
Breath.
9. the method according to claim 7 or 8 is it is characterised in that the described color information according to described first image, really
Determine the position that described first equipment is with respect to described second equipment, including:
Obtain the color information of the 3rd image at described first equipment, wherein, described 3rd image is the subset of the second image,
Described 3rd image includes the subset of described foreground image, and described 3rd image also includes the subset of described background image, described
First equipment obtains when obtaining described first image with described equipment during described three image, vertical with described second equipment away from
From difference;
The color information of described first image is obtained at described first equipment;
The RGB information of the acquiring color information described first image according to described first image;
RGB information according to described 3rd image the 3rd image described in acquiring color information;
The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and described the
The aberration of three images, and the described first equipment and described second equipment distance in vertical direction is determined according to described aberration.
10. the method according to any one of claim 7 to 9 is it is characterised in that methods described also includes:
When the 4th image that described first equipment obtains only includes the subset of described foreground image or the subset of described background image
When, receive the configured information that described first equipment sends, described configured information is used for indicating described in described second renewal of the equipment the
Two images, in order to described first equipment according to the new image of described second Image Acquisition after updating.
A kind of 11. equipment it is characterised in that described equipment and the second equipment are in connection status, including:
Acquiring unit, described acquiring unit is used for obtaining the first image, and wherein, described first image is the subset of the second image,
Described second image is the complete image that described second equipment shows, described second image includes foreground image and background image,
Described first image includes the subset of described foreground image, and described first image also includes the subset of described background image;
Determining unit, described determining unit is used for the color information according to described first image, determines described equipment with respect to institute
State the position of the second equipment.
12. equipment according to claim 11 it is characterised in that
Described acquiring unit is used for:Obtain the color information of described second image, and the color information according to described second image
Determine described second image RGB RGB information;
Described determining unit is used for:Determine the RGB RGB letter of described first image according to the color information of described first image
Breath;The RGB information of the RGB information according to described first image and described second image, determines described equipment with respect to described the
Two equipment position in the horizontal direction.
13. equipment according to claim 11 or 12 it is characterised in that
Described acquiring unit is used for:Obtain the information of the 3rd image, wherein, described 3rd image is the subset of the second image, institute
State the subset that the 3rd image includes described foreground image, described 3rd image also includes the subset of described background image, described set
Standby obtain when obtaining described first image with described equipment during described three image, with the vertical dimension of described second equipment not
With;
Described determining unit is used for:Determine the RGB information of described first image according to the color information of described first image;
Determine the RGB information of described 3rd image according to the color information of described 3rd image;
The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and described the
The aberration of three images, and the described equipment and described second equipment distance in vertical direction is determined according to described aberration.
14. equipment according to any one of claim 11 to 13 are it is characterised in that described acquiring unit is used for utilizing institute
The photographic head stating equipment obtains described first image.
15. equipment according to any one of claim 11 to 14 are it is characterised in that described equipment also includes:
Transmitting element, described transmitting element is used for sending, to described second equipment, the position that described equipment is with respect to described second equipment
Confidence ceases.
16. equipment according to any one of claim 11 to 15 it is characterised in that
Described acquiring unit is used for:Obtain the 4th image, wherein, described 4th image only include described foreground image subset or
The subset of described background image;
Transmitting element is used for sending configured information to described second equipment, and described configured information is used for indicating described second equipment more
Newly described second image, determines relative with described second equipment in order to described equipment according to described second image after updating
Position.
A kind of 17. equipment it is characterised in that the first equipment and described equipment are in connection status, including:
Display unit, described display unit is used for display the second image, and described second image includes foreground image and background image;
Determining unit, described determining unit is used for the color information of the first image according to described first equipment acquisition, determines institute
State the position that the first equipment is with respect to described equipment, wherein, described first image is the subset of the second image, described first image
Including the subset of described foreground image, described first image also includes the subset of described background image.
18. equipment according to claim 17 are it is characterised in that described determining unit is used for:
The color information of described first image is obtained at described first equipment;
The RGB RGB information of the acquisition of information described first image according to described first image;
The RGB information of the RGB information according to described first image and described second image, determine described first equipment relatively with institute
State equipment position in the horizontal direction, wherein, the color information of described second image includes the RGB information of described second image.
19. equipment according to claim 17 or 18 are it is characterised in that described determining unit is used for:
Obtain the color information of the 3rd image at described first equipment, wherein, described 3rd image is the subset of the second image,
Described 3rd image includes the subset of described foreground image, and described 3rd image also includes the subset of described background image, described
First equipment obtains when obtaining described first image with described equipment during described three image, with the vertical dimension of described equipment not
With;
The color information of described first image is obtained at described first equipment;
The RGB information of the acquiring color information described first image according to described first image;
RGB information according to described 3rd image the 3rd image described in acquiring color information;
The RGB information of the RGB information according to described first image and described 3rd image obtains described first image and described the
The aberration of three images, and the described first equipment and described equipment distance in vertical direction is determined according to described aberration.
20. equipment according to any one of claim 17 to 19 are it is characterised in that described equipment also includes:
Receiving unit, the 4th image that described receiving unit is used for when described first equipment obtains only includes described foreground image
During the subset of subset or described background image, receive the configured information that described first equipment sends, described configured information is used for referring to
Show the second image described in described renewal of the equipment, new according to described second Image Acquisition after updating in order to described first equipment
Image.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798466.XA CN106383679B (en) | 2016-08-31 | 2016-08-31 | Positioning method and terminal equipment thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610798466.XA CN106383679B (en) | 2016-08-31 | 2016-08-31 | Positioning method and terminal equipment thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106383679A true CN106383679A (en) | 2017-02-08 |
CN106383679B CN106383679B (en) | 2020-03-24 |
Family
ID=57938943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610798466.XA Active CN106383679B (en) | 2016-08-31 | 2016-08-31 | Positioning method and terminal equipment thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106383679B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109711398A (en) * | 2018-12-29 | 2019-05-03 | 联想(北京)有限公司 | Sensor spatial relationship acquisition methods, device and electronic equipment |
CN112947872A (en) * | 2019-12-10 | 2021-06-11 | 上海品奇数码科技有限公司 | Method for placing detection equipment on display screen based on multilayer convolutional neural network |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957877A (en) * | 2011-08-26 | 2013-03-06 | 卡西欧计算机株式会社 | Image processing device and image processing method |
CN103292779A (en) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | Method for measuring distance and image acquisition equipment |
CN103365572A (en) * | 2012-03-26 | 2013-10-23 | 联想(北京)有限公司 | Electronic equipment remote control method and electronic equipment |
CN103377673A (en) * | 2012-04-20 | 2013-10-30 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
CN103852066A (en) * | 2012-11-28 | 2014-06-11 | 联想(北京)有限公司 | Equipment positioning method, control method, electronic equipment and system |
WO2015188898A1 (en) * | 2014-06-12 | 2015-12-17 | Sony Corporation | Input handover from a first device to a second device |
-
2016
- 2016-08-31 CN CN201610798466.XA patent/CN106383679B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102957877A (en) * | 2011-08-26 | 2013-03-06 | 卡西欧计算机株式会社 | Image processing device and image processing method |
CN103292779A (en) * | 2012-02-28 | 2013-09-11 | 联想(北京)有限公司 | Method for measuring distance and image acquisition equipment |
CN103365572A (en) * | 2012-03-26 | 2013-10-23 | 联想(北京)有限公司 | Electronic equipment remote control method and electronic equipment |
CN103377673A (en) * | 2012-04-20 | 2013-10-30 | 联想(北京)有限公司 | Method for controlling electronic equipment and electronic equipment |
CN103852066A (en) * | 2012-11-28 | 2014-06-11 | 联想(北京)有限公司 | Equipment positioning method, control method, electronic equipment and system |
WO2015188898A1 (en) * | 2014-06-12 | 2015-12-17 | Sony Corporation | Input handover from a first device to a second device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109711398A (en) * | 2018-12-29 | 2019-05-03 | 联想(北京)有限公司 | Sensor spatial relationship acquisition methods, device and electronic equipment |
CN112947872A (en) * | 2019-12-10 | 2021-06-11 | 上海品奇数码科技有限公司 | Method for placing detection equipment on display screen based on multilayer convolutional neural network |
Also Published As
Publication number | Publication date |
---|---|
CN106383679B (en) | 2020-03-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10499002B2 (en) | Information processing apparatus and information processing method | |
CN109426333B (en) | Information interaction method and device based on virtual space scene | |
CN104102678B (en) | The implementation method and realization device of augmented reality | |
CN110998566A (en) | Method and apparatus for generating and displaying360 degree video based on eye tracking and physiological measurements | |
EP2974509B1 (en) | Personal information communicator | |
US11328490B2 (en) | Information processing program, method, and system for sharing virtual process for real object arranged in a real world using augmented reality | |
CN105847850A (en) | Panorama video real time playing method and apparatus | |
WO2020042968A1 (en) | Method for acquiring object information, device, and storage medium | |
CN102945563A (en) | Showing and interacting system and method for panoramic videos | |
CN105204347A (en) | Method, device and system for smart home interaction based on augmented reality technologies | |
CN113345108B (en) | Augmented reality data display method and device, electronic equipment and storage medium | |
CN103959220B (en) | Method for achieving augmented reality, and user equipment | |
CN104881526A (en) | Article wearing method and glasses try wearing method based on 3D (three dimensional) technology | |
CN102385482B (en) | Methods and apparatuses for enhancing wallpaper display | |
JP2023504608A (en) | Display method, device, device, medium and program in augmented reality scene | |
US11749230B2 (en) | Rotational image viewer | |
US20240087157A1 (en) | Image processing method, recording medium, image processing apparatus, and image processing system | |
KR20210129360A (en) | System for providing 3D model augmented reality service using AI and method thereof | |
CN112967193A (en) | Image calibration method and device, computer readable medium and electronic equipment | |
CN106383679A (en) | Locating method and terminal device using same | |
CN111899349B (en) | Model presentation method and device, electronic equipment and computer storage medium | |
US11651529B2 (en) | Image processing method, apparatus, electronic device and computer readable storage medium | |
CN106095935A (en) | A kind of method and device of presenting programs interactive user | |
US20230020942A1 (en) | Virtual Content Units for Extended Reality | |
CN104144287A (en) | Reality augmentation camera |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |