Intelligent device positioning method, device, equipment and storage medium

Through the camera of the smart device, the marker is captured, the axis and the identity indicator are identified and processed, and a virtual coordinate system is established, which solves the problem of the impact of black and white codes on the environment in the outside-in tracking technology, achieves precise device positioning and improves the comfort of the environment. feel.

CN113095103BActive Publication Date: 2024-10-18JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110404734.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-15
Publication Date
2024-10-18
Estimated Expiration
2041-04-15

AI Technical Summary

Technical Problem

The black and white codes used in the existing outside-in tracking technology have a greater impact on the environment, reducing people's comfort and experience in the environment, and increasing the difficulty of positioning in volatile scenarios.

Method used

Use the camera of the smart device to capture the marker, identify the axis indicator and identity indicator, establish a virtual coordinate system, and combine the preset rules and camera pose estimation algorithm to obtain the device coordinates of the smart device in the world coordinate system, avoiding the use of traditional QR code and other standard codes.

Benefits of technology

It reduces the impact on the environment, improves people's comfort and experience in the environment, and achieves precise device positioning in volatile scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113095103B_ABST
    Figure CN113095103B_ABST
Patent Text Reader

Abstract

The present application relates to a method, apparatus, device and storage medium for positioning a smart device. The method includes: obtaining a marking image obtained by shooting a marking object at the current position by a smart device, wherein the marking object includes an axis indicator and an identity indicator, and the smart device includes a camera for shooting the marking object; identifying the axis indicator in the marking image, and obtaining a virtual coordinate system corresponding to the axis indicator; according to the virtual coordinate system, identifying the identity indicator in the marking image, obtaining the first coordinate of the identity indicator in the virtual coordinate system, and obtaining the identification identity corresponding to the identity indicator; obtaining the corresponding second coordinate of the identification identity in the world coordinate system; according to the first coordinate and the second coordinate, according to the camera pose estimation algorithm, obtaining the device coordinates of the smart device in the world coordinate system. The present application is used to solve the problem that the black and white codes used in the existing outside-in tracking technology have a greater impact on the environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of positioning, and in particular to a method, apparatus, device and storage medium for positioning an intelligent device. Background Art

[0002] With the continuous development of artificial intelligence, the application scenarios of robots have been greatly expanded, bringing great convenience to people's production and life. Among them, navigation and positioning technology is one of the key technologies of indoor robot systems. At present, the commonly used positioning technologies mainly include outside-in tracking technology and inside-out tracking technology. Among them, the positioning methods of Outside-in Tracking include visual positioning methods based on visual benchmark library (Apriltag), positioning methods based on visible light communication, etc.; Inside-out Tracking methods include visual and laser simultaneous localization and mapping (SLAM) positioning methods, etc. The above two methods have their own advantages and disadvantages. Among them, the Inside-out Tracking method does not require the environment to be modified, and its applicability is wider, but it has certain requirements for the stability and structure of the environment; while the Outside-in Tracking positioning method requires the deployment of auxiliary positioning markers in the environment, so it is necessary to transform the environment to a certain extent, which affects the applicability of the technology, but the requirements for the stability and structure of the environment are lower.

[0003] Although the positioning method of Inside-out Tracking can actively adapt to the environment, it has high requirements for the stability of the environment. Therefore, the difficulty of positioning in volatile scenes increases, such as crowded places such as shopping malls and front desks, and places where goods are stored such as warehouses. Although the existing positioning method of Outside-in Tracking can better achieve positioning in volatile scenes, the current Outside-in Tracking usually uses visual positioning methods such as QR codes, two-dimensional barcodes that can be quickly identified (Quick Response, referred to as QR) codes, and April tag codes. The various codes mentioned above are black and white codes. This type of black and white code will appear more abrupt in the environment, have a greater impact on the environment, and easily cause coordination problems with the original environment, reducing people's comfort and experience in the environment, thus limiting the expansion of the technology. Summary of the invention

[0004] The present application provides a smart device positioning method, apparatus, device and storage medium to solve the problem that the black and white codes used in the existing outside-in tracking technology have a significant impact on the environment.

[0005] In a first aspect, an embodiment of the present application provides a method for positioning a smart device, comprising: obtaining a marking image obtained by photographing a marking object at a current position by a smart device, wherein the marking object comprises an axis indication mark and an identity indication mark, and the smart device comprises a camera for photographing the marking object; identifying the axis indication mark in the marking image, and obtaining a virtual coordinate system corresponding to the axis indication mark; according to the virtual coordinate system, identifying the identity indication mark in the marking image, obtaining a first coordinate of the identity indication mark in the virtual coordinate system, and obtaining an identification identity corresponding to the identity indication mark; obtaining a second coordinate corresponding to the identification identity in a world coordinate system, wherein the second coordinate is pre-set; according to the first coordinate and the second coordinate, and in accordance with a camera pose estimation algorithm, obtaining the device coordinates of the smart device in the world coordinate system.

[0006] Optionally, the axis indicator includes a horizontal axis indicator and a vertical axis indicator; identifying the axis indicator in the identification image and obtaining a virtual coordinate system corresponding to the axis indicator, including: using the indicator arranged according to a first preset rule in the identification image as the horizontal axis indicator; based on the horizontal axis indicator, using the indicator arranged according to a second preset rule in the identification image as the vertical axis indicator; based on the horizontal axis indicator and the vertical axis indicator, obtaining the virtual coordinate system corresponding to the horizontal axis indicator and the vertical axis indicator.

[0007] Optionally, obtaining the virtual coordinate system corresponding to the horizontal axis indicator and the vertical axis indicator according to the horizontal axis indicator and the vertical axis indicator includes: taking the straight line where the horizontal axis indicator is located as the horizontal axis, and taking the straight line where the vertical axis indicator is located as the vertical axis; and establishing the virtual coordinate system according to the horizontal axis and the vertical axis.

[0008] Optionally, identifying the identity indication mark in the identification image according to the virtual coordinate system, obtaining the first coordinate of the identity indication mark in the virtual coordinate system, and obtaining the identification identity corresponding to the identity indication mark, includes: taking the mark in the first preset quadrant of the virtual coordinate system as the identity indication mark; obtaining the first coordinate corresponding to the identity indication mark in the virtual coordinate system; and converting the first coordinate into the identification identity corresponding to the identity indication mark according to a preset coordinate conversion rule.

[0009] Optionally, based on the identification information, the identification arranged according to a first preset rule in the identification image is used as the horizontal axis indication identification, including: based on the identification information, when it is determined that M identifications in the identification image are in the same straight line, the M identifications are used as the horizontal axis indication identification, wherein M is an integer greater than 3.

[0010] Optionally, based on the identification information and the horizontal axis indicator, the identification arranged according to a second preset rule in the identification image is used as the vertical axis indicator, including: based on the identification information, obtaining the endpoint identifications in the horizontal axis indicator, wherein the endpoint identifications are the identifications located at both ends of the horizontal axis indicator; when one endpoint identification and two identifications located on both sides of the straight line where the horizontal axis indicator is located are on the same straight line, the endpoint identification and the two identifications located on both sides of the straight line where the horizontal axis indicator is located are used as the vertical axis indicator.

[0011] Optionally, the identifier also includes a position verification identifier; the method of obtaining the device coordinates of the smart device in the world coordinate system according to the first coordinate and the second coordinate and a camera pose estimation algorithm includes: obtaining the transformation relationship of the identifier from the world coordinate system to the virtual coordinate system according to the first coordinate and the second coordinate and a camera pose estimation algorithm; obtaining the identifier in the second preset quadrant of the virtual coordinate system as the position verification identifier; obtaining the fourth coordinate of the position verification identifier in the virtual coordinate system; obtaining the position transformation result of the smart device according to the transformation relationship; and obtaining the device coordinates of the smart device in the world coordinate system according to the fourth coordinate and the position transformation result.

[0012] Optionally, the material used to make the marker includes retro-reflective material, and the camera includes a camera head with a filter.

[0013] In the second aspect, an embodiment of the present application provides a marker, including an axis indicator and an identity indicator; the axis indicator is used to indicate a virtual coordinate system of a marker image, the marker image is obtained by photographing the marker, and the identity indicator is used to indicate the identity of the marker through its position in the marker image relative to the virtual coordinate system.

[0014] Optionally, the axis indicator includes at least one horizontal axis indicator and at least one vertical axis indicator; the at least one horizontal axis indicator is arranged according to a first preset rule to indicate the horizontal axis of the virtual coordinate system; the at least one vertical axis indicator is arranged according to a second preset rule to indicate the vertical axis of the virtual coordinate system.

[0015] Optionally, the identity indication mark is located in a first preset quadrant in the virtual coordinate system.

[0016] Optionally, the number of the horizontal axis indicator marks is M, where M is an integer greater than 3; and the at least one horizontal axis indicator mark is arranged according to a first preset rule, including: the M horizontal axis indicator marks are continuously arranged on the same straight line.

[0017] Optionally, the number of the vertical axis indicator marks is two; and the at least one vertical axis indicator mark is arranged according to a second preset rule, including: the two vertical axis indicator marks are respectively arranged on both sides of the straight line where the horizontal axis indicator mark is located, and the two vertical axis indicator marks and one endpoint mark of the horizontal axis indicator mark are arranged on the same straight line.

[0018] Optionally, the material used to make the marker includes retro-reflective material.

[0019] Optionally, the marker also includes a light generating device, which is an infrared light generating device or a light emitting diode; the axis indicator mark and the identity indicator mark are made of the retro-reflective material and are used to reflect the light emitted by the light generating device.

[0020] Optionally, the axis indicator and the identity indicator are both circular; or, the axis indicator and the identity indicator are both square.

[0021] In a third aspect, an embodiment of the present application provides a smart device positioning device, comprising: a first acquisition module, used to acquire a marking image obtained by photographing a marking object by a smart device at a current position, wherein the marking object comprises an axis indication mark and an identity indication mark, and the smart device comprises a camera for photographing the marking object; a first recognition module, used to identify the axis indication mark in the marking image, and acquire a virtual coordinate system corresponding to the axis indication mark; a second recognition module, used to identify the identity indication mark in the marking image according to the virtual coordinate system, acquire a first coordinate of the identity indication mark in the virtual coordinate system, and acquire an identification identity corresponding to the identity indication mark; a second acquisition module, used to acquire a second coordinate corresponding to the identification identity in a world coordinate system, wherein the second coordinate is pre-set; a processing module, used to acquire the device coordinates of the smart device in the world coordinate system according to the first coordinate and the second coordinate and a camera pose estimation algorithm.

[0022] In a fourth aspect, an embodiment of the present application provides an electronic device, characterized in that it includes: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other through the communication bus; the memory is used to store computer programs; and the processor is used to execute the programs stored in the memory to implement the smart device positioning method described in the first aspect.

[0023] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the smart device positioning method described in the first aspect is implemented.

[0024] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application, through the camera included in the smart device to shoot the marker, obtain the marker image, identify and process the marker in the marker image, and finally obtain the coordinates of the smart device in the world coordinate system, that is, the smart device is positioned. In the process of positioning the smart device in this method, the marker in the environment is used. The camera on the smart device can shoot the marker, and the marker does not need to have black and white color or fixed shape similar to standard codes such as QR codes. On the premise that the camera of the smart device can capture it, the marker can be set according to the environment, and the setting form of the marker is more free, which reduces the impact on the environment, avoids destroying the coordination of the environment, and enhances people's comfort and experience in the environment. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0027] Figure 1 A schematic diagram of the process steps of the smart device positioning method provided in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of the steps of the virtual coordinate system acquisition process provided in an embodiment of the present application;

[0029] Figure 3 A specific schematic diagram of the arrangement of markings provided in the embodiments of the present application;

[0030] Figure 4A schematic diagram of the structure connection of the smart device positioning device provided in an embodiment of the present application;

[0031] Figure 5 This is a schematic diagram of the structural connection of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0033] The smart device positioning method provided in the embodiment of the present application belongs to Outside-in Tracking, which requires placing a marker in the environment in advance, and then using the camera on the smart device to capture a marker image containing the marker. The imaging of a marker in the marker image represents a marker. Multiple markers can be set in the environment as needed.

[0034] The smart device in the present application includes a camera capable of taking pictures. The smart device may be a smart robot equipped with a camera, or may be other types of smart devices equipped with a camera. The protection scope of the present application is not limited to the specific type of the smart device.

[0035] In one embodiment, if Figure 1 As shown, a method for locating a smart device, the specific process steps are as follows:

[0036] Step 101, obtaining a marker image obtained by photographing a marker at a current position using a smart device, wherein the marker includes an axis indicator and an identity indicator, and the smart device includes a camera for photographing the marker.

[0037] In this embodiment, when the smart device is at the current position, the camera on the smart device captures the marker to obtain a marker image. The marker includes an axis indicator and an identity indicator. The axis indicator is used to indicate the location of the axis, and the number of axis indicator markers needs to be able to indicate the axis; the identity indicator is used to identify the identity of the marker corresponding to the marker, and the number of identity indicator markers can be set as needed. The scope of protection of this application is not limited to the specific number of axis indicator markers and identity indicator markers.

[0038] In this embodiment, the specific shapes and colors of the axis indicator and the identity indicator can be set as needed. For example, the axis indicator and the identity indicator can both be round or square; the colors of the axis indicator and the identity indicator can be yellow or red. The scope of protection of this application is not limited to the specific shape and color of the marker.

[0039] In one embodiment, the material used to make the marker includes retro-reflective material, and the camera includes a camera with a filter.

[0040] In this embodiment, the retro-reflective material utilizes the light emitted by the light generating device to directly reflect back in the direction of the light generating device to produce a dazzling and shining bright spot. The light generating device can be installed on a smart device, or it can be installed around the axis indicator mark and the identity indicator mark, as long as it can ensure that the light emitted by the light generating device is reflected by the axis indicator mark and the identity indicator mark. The light generating device can be an infrared light generating device, a light emitting diode (LED), a self-luminous material, a fluorescent material, etc. Preferably, the light generating device is an invisible light generating device. After the light generating device emits light, the camera collects the axis indicator mark and the identity indicator mark made of the retro-reflective material through the camera of the filter to generate a logo image.

[0041] Step 102: Identify the axis indicator mark in the identification image and obtain the virtual coordinate system corresponding to the axis indicator mark.

[0042] In this embodiment, a virtual coordinate system is established through axis indication marks. The coordinate system is an artificially defined two-dimensional coordinate system, which includes a horizontal axis and a vertical axis.

[0043] In one embodiment, the axis indicator includes a horizontal axis indicator and a vertical axis indicator. Figure 2 As shown, the process of identifying the axis indicator in the identification image and obtaining the virtual coordinate system corresponding to the axis indicator is as follows:

[0044] Step 201: Use the logos arranged in the logo image according to the first preset rule as horizontal axis indicator logos.

[0045] All logos in the logo image are identified, and when some of the logos are arranged according to the first preset rule, the logos in the logo image that meet the first preset arrangement rule are used as horizontal axis indicator logos. The first preset arrangement rule is a rule set in advance by humans, and its specific rule content can be set according to actual conditions and needs.

[0046] In one embodiment, according to the identification information, the identifications arranged according to the first preset rule in the identification image are used as horizontal axis indication identifications. The specific process is as follows: according to the identification information, when M identifications in the identification image are on the same straight line, the M identifications are used as horizontal axis indication identifications, where M is an integer greater than 3.

[0047] That is, when there are M marks in the image located on the same straight line, these M marks are horizontal axis indicator marks. More specifically, for example, when the marks are circular, when the centers of the M circular marks are on the same straight line, these M marks are used as horizontal axis indicator marks.

[0048] Step 202: according to the horizontal axis indication mark, the marks arranged according to the second preset rule in the mark image are used as the vertical axis indication marks.

[0049] When the horizontal axis indicator in the image has been identified, all the logos in the logo image are identified according to the identified horizontal axis indicator, and when some of the logos are arranged according to the second preset rule, the logos in the logo image that meet the second preset arrangement rule are used as vertical axis indicator. The second preset arrangement rule is a rule set in advance by humans, and its specific content can be set according to actual conditions and needs.

[0050] In one embodiment, based on the identification information and the horizontal axis indicator, the identification arranged according to the second preset rule in the identification image is used as the vertical axis indicator. The specific process is as follows: based on the identification information, the endpoint identifications in the horizontal axis indicator are obtained, wherein the endpoint identifications are the identifications located at both ends of the horizontal axis indicator; when an endpoint identification and two identifications located on both sides of the straight line where the horizontal axis indicator is located are on the same straight line, the endpoint identification and the two identifications located on both sides of the straight line where the horizontal axis indicator is located are used as the vertical axis indicator.

[0051] Step 203: acquiring a virtual coordinate system corresponding to the horizontal axis indicator and the vertical axis indicator according to the horizontal axis indicator and the vertical axis indicator.

[0052] In one embodiment, a virtual coordinate system corresponding to the horizontal axis indicator and the vertical axis indicator is obtained based on the horizontal axis indicator and the vertical axis indicator. The specific process is as follows: the straight line where the horizontal axis indicator is located is used as the horizontal axis, and the straight line where the vertical axis indicator is located is used as the vertical axis; based on the horizontal axis and the vertical axis, a virtual coordinate system is established.

[0053] More specifically, the endpoint mark on the vertical axis points to the direction of the endpoint element not on the vertical axis as the positive direction of the horizontal axis. The number of marks on both sides of the horizontal axis is obtained, and the side with a preset fixed number of marks is used as the positive direction of the vertical axis; a virtual coordinate system is established based on the positive direction of the horizontal axis and the positive direction of the vertical axis.

[0054] In one embodiment, after the virtual coordinate system is established, the identification image is subjected to perspective transformation. Perspective transformation refers to the transformation that utilizes the colinearity of the perspective center, the image point, and the target point, and rotates the image receiving surface (perspective surface) around the trace (perspective axis) by a certain angle according to the perspective rotation law, destroying the original projection light beam, while still keeping the projection geometry on the image receiving surface unchanged. After the perspective transformation, the coordinate acquisition can be better achieved.

[0055] Step 103 : identifying the identity indicator in the identification image according to the virtual coordinate system, obtaining the first coordinate of the identity indicator in the virtual coordinate system, and obtaining the identification identity corresponding to the identity indicator.

[0056] In this embodiment, after the virtual coordinate system is acquired, the coordinates of each identifier in the virtual coordinate system are unique, and each identifier can be better distinguished according to the virtual coordinate system. Because the coordinates of the identifier in the virtual coordinate system are unique, the unique identifier identity corresponding to the identifier can be acquired according to the coordinates.

[0057] In one embodiment, according to the virtual coordinate system, the identity indicator in the identification image is identified, the first coordinate of the identity indicator in the virtual coordinate system is obtained, and the identification identity corresponding to the identity indicator is obtained, which specifically includes: using the identifier in the first preset quadrant of the virtual coordinate system as the identity indicator; obtaining the first coordinate corresponding to the identity indicator in the virtual coordinate system; and converting the first coordinate into the identification identity corresponding to the identity indicator according to the preset coordinate conversion rule.

[0058] The preset coordinate conversion rules are rules artificially defined according to actual conditions and needs, and the protection scope of this application is not limited to the specific content of the preset coordinate conversion rules.

[0059] In this embodiment, a preset quadrant of the four quadrants formed by the virtual coordinate system can be used as the first preset quadrant, and the first preset quadrant includes an identity indicator. For example, the first quadrant of the virtual coordinate system is the first preset quadrant, and the indicator in the first preset quadrant is the identity indicator.

[0060] According to the coordinates of the identity indicator, the corresponding identification identity can be obtained. For example, if the coordinates of a logo in the virtual coordinate system are (1, 1), the identification identity is 11. The identification identity can also be generated by combining more than two identity indicators. For example, there are two identity indicators, one with coordinates (1, 1) and the other with coordinates (2, 1), then the identification identity is 1121.

[0061] Step 104, obtaining a corresponding second coordinate of the identification identity in the world coordinate system, wherein the second coordinate is preset.

[0062] In this embodiment, the world coordinate system is a physically existing reference coordinate system, for example, a coordinate system represented by longitude and latitude. The second coordinate is the coordinate of the identity indicator corresponding to the identification identity in the world coordinate system, and the second coordinate and the corresponding relationship between the second coordinate and the identification identity are acquired and saved in advance. After the identification identity is obtained through the identity indicator, the second coordinate in the world coordinate system can be obtained through the corresponding relationship.

[0063] Step 105 : acquiring the device coordinates of the smart device in the world coordinate system according to the first coordinates and the second coordinates and in accordance with a camera pose estimation algorithm.

[0064] In this embodiment, the camera pose estimation algorithm is used to solve the coordinates and rotation angle of the camera in the world coordinate system through the coordinates of the feature points in the world coordinate system and the images of the feature points in the camera photo.

[0065] In a specific embodiment, when positioning the smart device, a camera pose estimation algorithm is used, and the algorithm requires an identifier for verifying the final position. Therefore, the identifier also includes a position verification identifier.

[0066] In this embodiment, according to the first coordinate and the second coordinate, the device coordinates of the smart device in the world coordinate system are obtained according to the camera pose estimation algorithm. The specific process is as follows:

[0067] According to the first coordinate and the second coordinate, in accordance with the camera pose estimation algorithm, obtain the transformation relationship of the identifier from the world coordinate system to the virtual coordinate system; obtain the identifier in the second preset quadrant of the virtual coordinate system as the position verification identifier; obtain the fourth coordinate of the position verification identifier in the virtual coordinate system; according to the transformation relationship, obtain the position transformation result of the smart device; according to the fourth coordinate and the position transformation result, obtain the device coordinates of the smart device in the world coordinate system.

[0068] In one embodiment, the second preset quadrant is a quadrant of a virtual coordinate system artificially determined according to actual conditions and needs. For example, when the first preset quadrant is the first quadrant of the virtual coordinate system, the second preset quadrant is the fourth quadrant. The protection scope of the present application is not limited to the specific position of the second preset quadrant.

[0069] In one embodiment, the markers are circular, there are 10 markers in total, M is 5, and the arrangement in the environment is abstracted as follows: Figure 3 As shown in the figure, the circle with an "×" indicates that there should be no marker at that position, and the circle indicates that there is a marker at that position.

[0070] After the smart device captures the image of the marker at the current location, it recognizes that No. 0, No. 1, No. 2, No. 3, and No. 4 are on the same straight line, and No. 0, No. 1, No. 2, No. 3, and No. 4 are horizontal axis indicators, and the straight line where No. 0, No. 1, No. 2, No. 3, and No. 4 are located is the horizontal axis. The direction from No. 0 marker to No. 4 marker is the positive direction of the horizontal axis.

[0071] Identify that the No. 0 and No. 4 labels are endpoint labels. There are two labels, No. 5 and No. 6, on both sides of the horizontal axis of the No. 0 label. Then the No. 5, No. 0, and No. 6 labels are the vertical axis indicator labels, and the straight line where the No. 5, No. 0, and No. 6 labels are located is the vertical axis.

[0072] When determining the positive direction of the vertical axis, the preset number of marks is 3, and if it is identified that there are 3 marks above the horizontal axis, which meets the preset number of marks, then the direction where the 3 marks are located is the positive direction of the vertical axis. Thus, a virtual coordinate system is established.

[0073] In this embodiment, the first quadrant of the virtual coordinate system is the first preset quadrant, and the No. 8 and No. 9 in the first preset quadrant are identity indication marks. According to the coordinates of No. 8 and No. 9 in the virtual coordinate system, the identification identities corresponding to No. 8 and No. 9 are obtained, and the second coordinates of No. 8 and No. 9 in the world coordinate system are obtained.

[0074] In this embodiment, the fourth quadrant of the virtual coordinate system is the second preset quadrant, and the No. 7 mark in the second preset quadrant is a position verification mark. The fourth coordinate of the No. 7 mark in the virtual coordinate system is obtained. The coordinates of the No. 7 mark in the world coordinate system are obtained in the same manner as above.

[0075] According to the coordinates of No. 8, No. 9 and No. 7 in the virtual coordinate system and the world coordinate system respectively, according to the camera pose estimation algorithm, the coordinates of the smart device that shoots the identification image in the world coordinate system are obtained to complete the positioning of the smart device.

[0076] In this embodiment, the camera pose estimation algorithm may be a P3P pose estimation algorithm, or may be other specific estimation algorithms. The protection scope of this application is not limited to the specific implementation content of the camera pose estimation algorithm.

[0077] The smart device positioning method provided in the embodiment of the present application uses a camera included in the smart device to shoot a marker, obtain a marker image, identify and process the marker in the marker image, and finally obtain the coordinates of the smart device in the world coordinate system, that is, the smart device is positioned. In the process of positioning the smart device in this method, the marker in the environment is used. The camera on the smart device can capture the marker. The marker does not need to have a black and white color or a fixed shape similar to a standard code such as a QR code. On the premise that the camera of the smart device can capture it, the marker can be set according to the environment. The setting form of the marker is more free, which reduces the impact on the environment, avoids destroying the coordination of the environment, and enhances the comfort and experience of people in the environment.

[0078] At the same time, when the sign is made of retro-reflective material, especially when the light is invisible, the impact of the sign on the environment is further reduced. People in the environment will not feel abrupt because of the sign, which further improves their comfort.

[0079] Based on the same concept, a marker is provided in the embodiment of the present application. The specific implementation of the marker can be found in the description of the method embodiment part, and the repeated parts will not be repeated.

[0080] In one embodiment, the marker includes an axis indicator and an identity indicator; the axis indicator is used to indicate a virtual coordinate system of a marker image, the marker image is obtained by photographing the marker, and the identity indicator is used to indicate the identity of the marker through its position in the marker image relative to the virtual coordinate system.

[0081] In one embodiment, the axis indicator includes at least one horizontal axis indicator and at least one vertical axis indicator; at least one horizontal axis indicator is arranged according to a first preset rule to indicate the horizontal axis of the virtual coordinate system; at least one vertical axis indicator is arranged according to a second preset rule to indicate the vertical axis of the virtual coordinate system.

[0082] In one embodiment, the identity indicator is located in a first preset quadrant in the virtual coordinate system. The first preset quadrant is a first area defined by the axis indicator.

[0083] In one embodiment, the number of horizontal axis indicator marks is M, where M is an integer greater than 3; at least one horizontal axis indicator mark is arranged according to a first preset rule, including: M horizontal axis indicator marks are continuously arranged on the same straight line.

[0084] In one embodiment, the number of vertical axis indicator marks is two; at least one vertical axis indicator mark is arranged according to a second preset rule, including: the two vertical axis indicator marks are arranged on both sides of the straight line where the horizontal axis indicator mark is located, and the two vertical axis indicator marks and one endpoint mark of the horizontal axis indicator mark are arranged on the same straight line.

[0085] In one embodiment, the material used to make the marker includes retro-reflective material.

[0086] In one embodiment, the marker also includes a light generating device, which is an infrared light generating device or a light emitting diode; the axis indicating mark and the identity indicating mark are made of retro-reflective material to reflect the light emitted by the light generating device.

[0087] In one embodiment, the axis indicator and the identity indicator are both circular; or, the axis indicator and the identity indicator are both square.

[0088] In one embodiment, the marker further includes a position verification mark, and the position verification mark is located in a second preset quadrant in the virtual coordinate system. The second preset quadrant is a second area defined by the axis indication mark.

[0089] Based on the same concept, an intelligent device positioning device is provided in the embodiment of the present application. The specific implementation of the device can refer to the description of the method embodiment part, and the repeated parts will not be repeated. Figure 4 As shown, the device mainly includes:

[0090] The first acquisition module 401 is used to acquire a marker image obtained by photographing a marker at a current position by a smart device, wherein the marker includes an axis indication marker and an identity indication marker, and the smart device includes a camera for photographing the marker;

[0091] A first recognition module 402 is used to recognize an axis indication mark in the identification image and obtain a virtual coordinate system corresponding to the axis indication mark;

[0092] The second recognition module 403 is used to recognize the identity indicator in the identification image according to the virtual coordinate system, obtain the first coordinate of the identity indicator in the virtual coordinate system, and obtain the identification identity corresponding to the identity indicator;

[0093] A second acquisition module 404 is used to acquire a corresponding second coordinate of the identification identity in the world coordinate system, wherein the second coordinate is preset;

[0094] The processing module 405 is used to obtain the device coordinates of the smart device in the world coordinate system according to the first coordinates and the second coordinates and in accordance with the camera pose estimation algorithm.

[0095] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 5As shown, the electronic device mainly includes: a processor 501, a memory 502 and a communication bus 503, wherein the processor 501 and the memory 502 communicate with each other through the communication bus 503. The memory 502 stores a program that can be executed by the processor 501, and the processor 501 executes the program stored in the memory 502 to implement the following steps: obtaining a marker image obtained by shooting a marker at the current position by the smart device, wherein the marker includes an axis indicator and an identity indicator, and the smart device includes a camera for shooting the marker; identifying the axis indicator in the marker image, and obtaining a virtual coordinate system corresponding to the axis indicator; according to the virtual coordinate system, identifying the identity indicator in the marker image, obtaining the first coordinate of the identity indicator in the virtual coordinate system, and obtaining the identity corresponding to the identity indicator; obtaining the corresponding second coordinate of the identity in the world coordinate system, wherein the second coordinate is preset; according to the first coordinate and the second coordinate, according to the camera pose estimation algorithm, obtaining the device coordinates of the smart device in the world coordinate system.

[0096] The communication bus 503 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 503 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0097] The memory 502 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Alternatively, the memory may also be at least one storage device located away from the processor 501 .

[0098] The above-mentioned processor 501 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0099] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the smart device positioning method described in the above embodiment.

[0100] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0101] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0102] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for positioning a smart device, characterized in that: include: Acquire a marker image obtained by photographing a marker at a current location using a smart device, wherein the marker includes an axis indication marker, an identity indication marker, and a location verification marker, and the smart device includes a camera for photographing the marker; Identify the axis indication mark in the identification image, and obtain a virtual coordinate system corresponding to the axis indication mark; the straight line where the axis indication mark is located corresponds to the horizontal and vertical coordinate axes indicating the virtual coordinate system; According to the virtual coordinate system, the identity indicator in the identification image is identified, the first coordinate of the identity indicator in the virtual coordinate system is obtained, and the identification identity corresponding to the identity indicator is obtained; the identification in the first preset quadrant of the virtual coordinate system is used as the identity indicator; Obtaining a second coordinate corresponding to the identification identity in the world coordinate system, wherein the second coordinate is preset; According to the first coordinate and the second coordinate, in accordance with the camera pose estimation algorithm, obtain the transformation relationship of the marker from the world coordinate system to the virtual coordinate system; obtain the marker in the second preset quadrant of the virtual coordinate system as a position verification marker; obtain the fourth coordinate of the position verification marker in the virtual coordinate system; according to the transformation relationship, obtain the position transformation result of the smart device; according to the fourth coordinate and the position transformation result, obtain the device coordinates of the smart device in the world coordinate system.

2. The smart device positioning method according to claim 1, characterized in that: The axis indication mark includes a horizontal axis indication mark and a vertical axis indication mark; Identifying the axis indication mark in the identification image and acquiring a virtual coordinate system corresponding to the axis indication mark includes: Using the logos in the logo image that are arranged according to a first preset rule as the horizontal axis indicating logos; According to the horizontal axis indication marks, the marks arranged according to the second preset rule in the mark image are used as the vertical axis indication marks; According to the horizontal axis indication mark and the vertical axis indication mark, the virtual coordinate system corresponding to the horizontal axis indication mark and the vertical axis indication mark is acquired.

3. The smart device positioning method according to claim 2, characterized in that: The acquiring, according to the horizontal axis indication mark and the vertical axis indication mark, the virtual coordinate system corresponding to the horizontal axis indication mark and the vertical axis indication mark comprises: The straight line where the horizontal axis indicator mark is located is used as the horizontal axis, and the straight line where the vertical axis indicator mark is located is used as the vertical axis; The virtual coordinate system is established according to the horizontal axis and the vertical axis.

4. The smart device positioning method according to claim 1, characterized in that: Obtaining the identification identity corresponding to the identity indication identifier includes: According to a preset coordinate conversion rule, the first coordinate is converted into an identification identity corresponding to the identity indication identifier.

5. The smart device positioning method according to claim 2, characterized in that: The step of using the logos in the logo image arranged according to the first preset rule as the horizontal axis indicating logos includes: When it is determined that M logos in the logo image are on the same straight line, the M logos are used as the horizontal axis indication logos, where M is an integer greater than 3.

6. The smart device positioning method according to claim 5, characterized in that: The step of using the logos arranged according to the second preset rule in the logo image as the vertical axis indication logos according to the horizontal axis indication logos includes: Obtaining endpoint identifiers in the horizontal axis indicator, wherein the endpoint identifiers are identifiers located at both ends of the horizontal axis indicator; When one endpoint marker and two markers located on both sides of the straight line where the horizontal axis indicator marker is located are on the same straight line, the endpoint marker and the two markers located on both sides of the straight line where the horizontal axis indicator marker is located are used as the vertical axis indicator marker.

7. The smart device positioning method according to claim 1, characterized in that: The material used to make the marker includes retro-reflective material, and the camera includes a camera head with a filter.

8. A marker, characterized in that: Including axis indication mark, identity indication mark and position verification mark; The axis indicator is used to indicate the virtual coordinate system of the identification image, and the identification image is obtained by photographing the identification object with a smart device; the identity indicator is used to indicate the identity of the identification object through its position in the identification image relative to the virtual coordinate system; the position verification identifier and the identity indicator are used to determine the device coordinates of the smart device in the world coordinate system, wherein the device coordinates are obtained in the following manner: according to the first coordinate of the identity indicator in the virtual coordinate system and the corresponding second coordinate of the identification identity corresponding to the identity indicator in the world coordinate system, according to the camera pose estimation algorithm, the transformation relationship of the identification object from the world coordinate system to the virtual coordinate system is obtained; Acquire the fourth coordinate of the position verification mark in the virtual coordinate system; acquire the position transformation result of the smart device according to the transformation relationship; acquire the device coordinate of the smart device in the world coordinate system according to the fourth coordinate and the position transformation result; The straight line where the axis indicator mark is located corresponds to the horizontal and vertical coordinate axes of the virtual coordinate system; the mark in the first preset quadrant of the virtual coordinate system is the identity indication mark; the mark in the second preset quadrant of the virtual coordinate system is the position verification mark.

9. The marker according to claim 8, characterized in that: The axis indication marks include at least one horizontal axis indication mark and at least one vertical axis indication mark; The at least one horizontal axis indication mark is arranged according to a first preset rule and is used to indicate the horizontal axis of the virtual coordinate system; The at least one vertical axis indication mark is arranged according to a second preset rule and is used to indicate the vertical axis of the virtual coordinate system.

10. The marker according to claim 9, characterized in that: The number of the horizontal axis indication marks is M, where M is an integer greater than 3; The at least one horizontal axis indicator is arranged according to a first preset rule, including: The M horizontal axis indication marks are arranged continuously on the same straight line.

11. The marker according to claim 9, characterized in that: The number of the vertical axis indication marks is two; The at least one vertical axis indicator is arranged according to a second preset rule, including: The two longitudinal axis indication marks are arranged on both sides of the straight line where the horizontal axis indication mark is located, and the two longitudinal axis indication marks and an endpoint mark of the horizontal axis indication mark are arranged on the same straight line.

12. The marker according to claim 8, characterized in that: The material used to make the marker includes retro-reflective material.

13. The marker according to claim 12, characterized in that: The marker also includes a light generating device, which is an infrared light generating device or a light emitting diode; The axis indication mark and the identity indication mark are made of the retro-reflective material and are used to reflect the light emitted by the light generating device.

14. The marker according to any one of claims 8 to 13, characterized in that: The axis indicator mark and the identity indicator mark are both circular; Alternatively, the axis indicator mark and the identity indicator mark are both square.

15. A smart device positioning device, characterized in that: include: A first acquisition module is used to acquire a marker image obtained by photographing a marker at a current location by a smart device, wherein the marker includes an axis indication marker, an identity indication marker, and a location verification marker, and the smart device includes a camera for photographing the marker; A first recognition module is used to recognize the axis indication mark in the identification image and obtain a virtual coordinate system corresponding to the axis indication mark; the straight line where the axis indication mark is located corresponds to the horizontal and vertical coordinate axes indicating the virtual coordinate system; A second recognition module is used to recognize the identity indicator in the identification image according to the virtual coordinate system, obtain the first coordinate of the identity indicator in the virtual coordinate system, and obtain the identification identity corresponding to the identity indicator; and use the identification in the first preset quadrant of the virtual coordinate system as the identity indicator; A second acquisition module, used to acquire a second coordinate corresponding to the identification identity in the world coordinate system, wherein the second coordinate is preset; A processing module is used to obtain the transformation relationship of the marker from the world coordinate system to the virtual coordinate system according to the first coordinate and the second coordinate and in accordance with the camera pose estimation algorithm; obtain the marker in the second preset quadrant of the virtual coordinate system as a position verification marker; obtain the fourth coordinate of the position verification marker in the virtual coordinate system; obtain the position transformation result of the smart device according to the transformation relationship; and obtain the device coordinates of the smart device in the world coordinate system according to the fourth coordinate and the position transformation result.

16. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the smart device positioning method described in any one of claims 1 to 7.

17. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the smart device positioning method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Object positioning and orientation method and system based on multiple identifiers

    CN107481287A

  • Indoor robot vision positioning system

    CN108195381A

  • Robot, and pose estimation method and device based on marker

    CN108198216A

  • Positioning equipment and method thereof

    CN109949366A

  • Vehicle-mounted sensor and vehicle pose relation calibration method and device, equipment and medium

    CN110264520A