Method, device and electronic device for determining display offset information

By identifying the mark pattern and external direction reference object in the screen image of the smart wearable device, the offset information of the reference direction is calculated, which solves the problem of screen offset of the smart wearable device display and improves the user experience.

CN112802110BActive Publication Date: 2024-10-18LENOVO (BEIJING) LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110178378.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-09
Publication Date
2024-10-18
Estimated Expiration
2041-02-09

AI Technical Summary

Technical Problem

When there is a deviation in the posture tracking algorithm of a smart wearable device, the display screen will be offset, which will affect the user's viewing effect. It is necessary to accurately determine the display offset information to adjust the display screen.

Method used

By obtaining the screen image of the smart wearable device, the reference direction of the mark pattern is identified and determined, combined with the external direction reference object, the actual and reference vectors of the reference direction are calculated, and the offset information of the reference direction is calculated to adjust the reference direction of the display screen.

Benefits of technology

Accurately determine the display offset information of smart wearable devices, reduce or eliminate the deflection of the display screen in the vertical or horizontal direction, and improve the user's viewing experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112802110B_ABST
    Figure CN112802110B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and electronic device for determining display offset information, the method comprising: obtaining a screen image of a smart wearable device, the screen image at least comprising an imaging of a marking pattern outputted in a display interface of the smart wearable device, the marking pattern being a pattern used to mark a reference direction; determining the actual direction vector of the reference direction set by the smart wearable device in a set coordinate system based on the imaging of the marking pattern in the screen image; determining the reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device; determining the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector. The scheme of the present application can accurately obtain the offset information of the reference direction set by the smart wearable device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of display processing technology, and more specifically, to a method, device and electronic device for determining display offset information. Background Art

[0002] Wearable electronic devices such as smart glasses can control the display of the display screen based on the user's posture data.

[0003] However, if there is a deviation in the posture tracking algorithm, the display screen output based on the user's posture data control will be offset. For example, the display screen deviates from the vertical direction, causing the display screen to be tilted in the vertical direction. Once the display screen is offset, it will affect the user's viewing experience of the display screen. Therefore, how to more accurately determine the offset information of the display screen output by the wearable device is a technical problem that technicians in this field need to solve. Summary of the invention

[0004] To achieve the above objectives, the present application provides a method, device and electronic device for determining display offset information.

[0005] A method for determining display offset information includes:

[0006] Obtaining a screen image of a smart wearable device, wherein the screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, wherein the marking pattern is a pattern used to mark a reference direction;

[0007] Determine, based on the imaging of the marking pattern in the screen image, an actual direction vector of the reference direction set by the smart wearable device in a set coordinate system;

[0008] Determining a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device;

[0009] Based on the actual direction vector and the reference direction vector, offset information of the reference direction set by the smart wearable device is determined.

[0010] In a possible implementation, determining a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device includes:

[0011] Obtaining a direction reference image, the direction reference image at least comprising: an image of a direction reference line for indicating the reference direction;

[0012] Based on the position of the direction reference line in the direction reference image, a reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system is determined.

[0013] In yet another possible implementation, determining, based on the marking pattern in the screen image, an actual direction vector of the reference direction set by the smart wearable device in a set coordinate system includes:

[0014] Based on the imaging of the marking pattern in the screen image, determining a reference direction marked by the marking pattern in the screen image;

[0015] A set coordinate system is constructed based on the plane where the screen image is located, and an actual direction vector of the reference direction marked by the marking pattern in the set coordinate system is determined.

[0016] In another possible implementation, the marking pattern is at least one square, and the marking pattern represents the reference direction through two mutually parallel first sides of the square;

[0017] The step of determining a reference direction marked by the marking pattern in the screen image based on the imaging of the marking pattern in the screen image comprises:

[0018] Based on an imaging pattern corresponding to the square in the screen image, a line connecting the center points of two second imaging edges in the imaging pattern is determined as a reference direction marked by the marking pattern;

[0019] The square imaging pattern includes: two first imaging edges and two second imaging edges, the first imaging edge is the imaging of the second edge of the square in the screen image, and the second imaging edge is the imaging of the second edge of the square other than the first edge in the screen image.

[0020] In yet another possible implementation, the method further includes:

[0021] Based on the imaging pattern corresponding to the square in the screen image, determining a first angle between two first imaging sides in the square and a second angle between two second imaging sides in the square;

[0022] Based on the determined first angle and second angle, offset information of the smart wearable device in a first auxiliary reference direction and offset information in a second auxiliary reference direction are determined, and the reference direction, the first auxiliary reference direction and the second auxiliary reference direction are perpendicular to each other.

[0023] In yet another possible implementation, the method further includes:

[0024] In the case where the method is applied to an electronic device other than a smart wearable device, the method further includes: sending the determined offset information on the reference direction to the smart wearable device, so that the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display screen based on the offset information;

[0025] Or,

[0026] When the method is applied to a smart wearable device, the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display image based on the offset information.

[0027] A device for determining display offset information includes:

[0028] A screen image obtaining unit, used to obtain a screen image of the smart wearable device, wherein the screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, wherein the marking pattern is a pattern used to mark a reference direction;

[0029] A first vector determination unit, configured to determine an actual direction vector of the reference direction set by the smart wearable device in a set coordinate system based on the imaging of the marking pattern in the screen image;

[0030] A second vector determination unit, configured to determine a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device;

[0031] An offset determination unit is used to determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

[0032] In a possible implementation manner, the second vector determining unit includes:

[0033] A reference image obtaining unit, used to obtain a direction reference image, wherein the direction reference image at least includes: an image of a direction reference line for indicating the reference direction;

[0034] A reference vector determining unit is used to determine a reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system based on the position of the direction reference line in the direction reference image.

[0035] In yet another possible implementation, the first vector determining unit includes:

[0036] a marking direction determining unit, configured to determine a reference direction marked by the marking pattern in the screen image based on the imaging of the marking pattern in the screen image;

[0037] The reference direction determining unit is used to construct a set coordinate system based on the plane where the screen image is located, and determine the actual direction vector of the reference direction marked by the marking pattern in the set coordinate system.

[0038] In another aspect, the present application also provides an electronic device, comprising:

[0039] Processor and memory;

[0040] Wherein, the processor is used to execute the method for determining display offset information as described in any one of the above items;

[0041] The memory is used to store the program required for the processor to perform the above operations.

[0042] Through the above scheme, it can be known that the present application can obtain the screen image of the smart wearable device when the marking pattern is output in the display interface of the smart wearable device, so that the screen image includes the imaging of the marking pattern. Since the marking pattern is a pattern that marks the reference direction, based on the imaging of the marking pattern in the screen image, the actual direction vector of the basic direction set by the smart wearable device in the set coordinate system can be determined. On this basis, since the direction reference object outside the wearable device can accurately indicate the reference direction, after determining the reference direction vector of the basic direction in the set coordinate system based on the reference direction indicated by the direction reference object, the reference direction vector and the actual direction vector can be combined to accurately obtain the offset information of the reference direction set by the smart wearable device. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A schematic diagram of a flow chart of a method for determining display offset information provided in an embodiment of the present application;

[0045] Figure 2 A schematic diagram showing a marking pattern composed of a plurality of squares;

[0046] Figure 3 A schematic diagram of the marking pattern output by the smart wearable device to the display interface;

[0047] Figure 4 A schematic diagram of another flow chart of a method for determining display offset information provided in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of another flow chart of a method for determining display offset information provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of a scenario for collecting a marking pattern output by smart glasses and a reference image of the direction provided in an embodiment of the present application;

[0050] Figure 7 A schematic diagram of a direction reference image provided in an embodiment of the present application;

[0051] Figure 8 A schematic diagram of a structure of a device for determining display offset information provided in an embodiment of the present application;

[0052] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0053] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims and the above drawings are used to distinguish similar parts, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated herein. DETAILED DESCRIPTION

[0054] The solution of the present application can be applied to determine the offset information of the display screen output by any smart wearable device, so as to provide a basis for adjusting the display screen of the smart wearable device.

[0055] In the present application, the smart wearable device may be a head-mounted smart wearable device such as smart glasses or a smart helmet, or may be a smart wearable device such as a smart watch.

[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only 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 creative work are within the scope of protection of this application.

[0057] See also Figure 1 , Figure 1A flowchart of a method for determining display offset information provided in an embodiment of the present application is provided. The method of this embodiment can be applied to a smart wearable device, or an electronic device other than a smart wearable device that has data processing capabilities.

[0058] The method of this embodiment may include:

[0059] S101, obtaining a screen image of a smart wearable device.

[0060] The screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, and the marking pattern is a pattern used to mark a reference direction.

[0061] For example, when the smart wearable device displays the marking pattern on a display interface, a camera device in the smart wearable device facing the display interface is used to capture the display interface of the smart wearable device to obtain the screen image.

[0062] For another example, a camera device outside the smart wearable device is used to face the display interface of the smart wearable device to capture an image including the marking pattern displayed on the display interface to obtain the screen image.

[0063] It can be understood that the screen image can reflect the image effect viewed by human eyes when viewing the display interface of the smart wearable device.

[0064] Of course, in practical applications, there may be other ways to obtain the screen image, as long as the screen image containing the marking pattern displayed by the smart wearable device can be obtained. For example, when the smart wearable device is a head-mounted smart wearable device, while the display interface of the smart wearable device outputs the marking pattern, the imaging of the marking pattern in the user's eyes is obtained to obtain the screen image.

[0065] The reference direction may be a direction based on (or set for) outputting a display screen in the smart wearable device. In particular, when the smart wearable device controls the presentation of the display screen based on a posture tracking algorithm, the reference direction may be a reference direction based on which the posture tracking algorithm is used to control the display screen.

[0066] For example, in practical applications, the reference direction may be one or more, such as the reference direction may be a vertical direction, or the reference direction may be a horizontal direction.

[0067] It can be understood that in order to more intuitively present the reference direction set by the smart wearable device, in an optional manner, the marking pattern can be at least one square, which is a regular pattern, such as a square or a rectangle, wherein the vertical side of the square can represent the reference direction of the horizontal vertical direction, and the horizontal side of the square can represent the reference direction of the horizontal direction.

[0068] It can be understood that in order to facilitate the comparison of the actual reference direction with the reference direction set by the smart wearable device, according to the wearing characteristics of the smart wearable device during use, the screen image of the present application can be an image obtained when the display interface of the smart wearable device is parallel to at least one reference direction and the image acquisition area of ​​the camera device (a camera device on the smart wearable device or a camera device outside the smart wearable device) is perpendicular to the display interface of the smart wearable device.

[0069] S102: Determine the actual direction vector of the reference direction set by the smart wearable device in the set coordinate system based on the imaging of the marking pattern in the screen image.

[0070] The set coordinate system may be a pre-set coordinate system, and the present application determines the deviation of the reference direction set by the smart wearable device in the coordinate system.

[0071] For example, in a possible implementation, the set coordinate system may be a coordinate system constructed based on the image plane where the screen image is located. For example, when there is only one reference direction, the set coordinate system may be a two-dimensional coordinate system of the image plane where the screen image is located.

[0072] Of course, the set coordinate system may also be the coordinate system of a camera device that captures screen images, and may be set according to actual needs without limitation.

[0073] It is understandable that, since the reference direction is marked in the marking pattern, after the smart wearable device displays the marking pattern, the reference direction set in the display screen of the smart wearable device is consistent with the reference direction marked in the marking pattern. Therefore, in one implementation, the reference direction marked by the marking pattern can be determined in the screen image based on the imaging of the marking pattern in the screen image, and the reference direction marked in the screen image is actually the reference direction set by the smart wearable device marked in the screen image.

[0074] For example: Take the marking pattern as a pattern composed of at least one square, such as Figure 2 As shown. Figure 2 Take the marking pattern as a plurality of squares as an example. At the same time, for ease of understanding, take the reference direction as the vertical direction as an example. Figure 2It can be seen that the vertical sides of each square in the marking pattern actually represent the vertical direction.

[0075] exist Figure 2 On this basis, in order to make the square seen by the user a regular square without any deviation, the smart wearable device will output the square to the display interface according to the reference direction set by it, so that the horizontal side of the square is consistent with the reference horizontal direction set in the smart wearable device, and the vertical side of the corresponding square is consistent with the reference vertical direction set in the smart wearable device. Figure 3 As shown in FIG. 1 , it is a schematic diagram of the marking pattern output by the smart wearable device to the display interface. Figure 3 The imaging 301 of the marking pattern is shown in FIG. Figure 3 In order to facilitate understanding, the reference direction based on which the smart wearable device outputs the display screen is marked, such as Figure 3 As shown by the dashed line 301.

[0076] contrast Figure 2 and Figure 3 It can be seen that the reference direction (ie, the dotted line) based on which the marking pattern displayed by the smart wearable device is based is consistent with the vertical direction marked in the marking pattern.

[0077] Accordingly, the direction vector of the reference direction represented by the marking pattern in the set coordinate system is determined, and the direction vector of the reference direction set by the smart wearable device in the set coordinate system is obtained. This direction vector is also the actual direction vector of the reference direction set by the smart wearable device in the set coordinate system. For the sake of distinction, this direction vector is called the actual direction vector.

[0078] In a possible implementation, after determining the reference direction of the marking pattern in the screen image, a set coordinate system may be constructed based on the plane of the screen image to determine the actual direction vector of the reference direction of the marking pattern in the set coordinate system.

[0079] S103: Determine a reference direction vector corresponding to the reference direction in the set coordinate system based on a reference direction indicated by a direction reference object outside the smart wearable device.

[0080] The direction reference object is a reference object outside the smart wearable device that can accurately indicate the actual reference direction. Accordingly, the reference direction indicated by the direction reference object is an actual reference direction without any offset.

[0081] It is understandable that in order to compare whether there is a deviation in the reference direction set by the smart wearable device, it is necessary to compare the offset between the reference direction set by the smart wearable device and the actual reference direction in the same coordinate system. Based on this, it is necessary to map the reference direction indicated by the direction reference object to the set coordinate system, so as to obtain the direction vector of the reference direction in the set coordinate system. For the sake of distinction, the direction vector of the actual reference direction in the set coordinate system is called the reference direction vector.

[0082] It is understandable that the number of reference directions may vary depending on different application scenarios. When there are multiple reference directions, multiple different reference directions may be indicated by one direction reference object; or different reference directions may be indicated by multiple different direction reference objects.

[0083] Correspondingly, when multiple reference directions are indicated by one or more direction reference objects, it is necessary to respectively determine the reference direction vectors corresponding to each of the multiple reference directions in the set coordinate system.

[0084] S104: Determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

[0085] It can be understood that, for any reference direction, the offset of the actual direction vector corresponding to the reference direction actually set by the smart wearable device relative to the reference direction vector of the reference direction is the offset information of the smart wearable device in the reference direction.

[0086] For example, for a certain reference direction, the angle between the actual direction vector and the reference direction vector may be calculated. The angle may be a vector including an offset direction and an angle.

[0087] For example, the cosine function can be used to calculate the vector of the angle. Specifically, the actual direction vector corresponding to the smart wearable device is represented as a, and the reference direction vector is represented as b, then the direction angle θ between a and b can be calculated by the following formula:

[0088] cosθ=a dot product b / (a modulus*b modulus);

[0089] The angle vector obtained by the above formula can represent the actual deviation of the reference direction set by the smart wearable device.

[0090] Of course, the above is only an example of a method for determining the offset information. In practical applications, there may be other possible methods for determining the offset information based on the actual direction vector and the reference direction vector, and there is no limitation to this.

[0091] It can be understood that the offset information can be used as a basis for the smart wearable device to adjust its set reference direction, so that the smart wearable device adjusts its set reference direction based on the offset information, thereby reducing the skew of the display screen displayed by the smart wearable device seen by the user.

[0092] As an optional method, when the solution of the present application is applied to an electronic device other than a smart wearable device, the electronic device can also send the determined offset information on the reference direction to the smart wearable device, so that the smart wearable device can correct the reference direction on which the smart wearable device outputs the display screen based on the offset information.

[0093] When the solution of the present application is used for a smart wearable device, the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display image based on the offset information.

[0094] In particular, when the smart wearable device controls the display effect of the display screen based on the posture estimation algorithm, the reference direction in the posture estimation algorithm can be adjusted based on the offset information.

[0095] For example, the reference direction in the attitude estimation algorithm can be compensated based on the offset information. For example, assuming that the reference direction is the vertical direction, and the offset information is 15 degrees to the left relative to the vertical direction, then it can be set that the vertical direction set in the attitude estimation algorithm needs to be compensated 15 degrees to the right of the vertical direction.

[0096] Of course, the present application does not impose any limitation on the specific implementation method of adjusting the reference direction based on the offset direction of the smart wearable device.

[0097] From the above content, it can be seen that the present application can obtain a screen image of a smart wearable device when a marking pattern is output in the display interface of the smart wearable device, so that the screen image includes the imaging of the marking pattern. Since the marking pattern is a pattern that marks the reference direction, based on the imaging of the marking pattern in the screen image, the actual direction vector of the base direction set by the smart wearable device in the set coordinate system can be determined. On this basis, since the direction reference object outside the wearable device can accurately indicate the reference direction, after determining the reference direction vector of the base direction in the set coordinate system based on the reference direction indicated by the direction reference object, the reference direction vector and the actual direction vector can be combined to accurately obtain the offset information of the reference direction set by the smart wearable device.

[0098] For ease of understanding, the following is an example of a possible situation where a direction reference object other than a smart wearable is used as an example. Figure 4, which shows a flow chart of another embodiment of a method for determining display offset information of the present application. The method of this embodiment may include:

[0099] S401, obtaining a screen image of a smart wearable device.

[0100] The screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, and the marking pattern is a pattern used to mark a reference direction.

[0101] For this step, please refer to the related introduction of the previous embodiment, which will not be repeated here.

[0102] S402: Obtain a direction reference image.

[0103] The direction reference image includes at least an image of a direction reference line for indicating a reference direction.

[0104] For example, by using the same camera device as that used to obtain the screen image and maintaining the position and posture of the camera device when capturing the screen image unchanged, the camera device is used to capture the image of the direction reference line to obtain the direction reference image.

[0105] Of course, if the direction reference line exists when the screen image is captured, an image containing the direction reference line and the marking pattern can be obtained at the same time. In this case, the direction reference line and the screen image can be considered to be the same image, and the image includes both the marking pattern and the imaging of the direction reference line.

[0106] It is understandable that the direction reference line for indicating the reference direction may be a straight line along the reference direction. For example, if the reference direction includes a vertical direction, the direction reference line indicating the vertical direction may be a plumb line.

[0107] It should be noted that the order of steps S401 and S402 is not limited to Figure 4 As shown, in practical applications, these two steps can be interchangeable or performed simultaneously.

[0108] S403: Determine the actual direction vector of the reference direction set by the smart wearable device in the set coordinate system based on the imaging of the marking pattern in the screen image.

[0109] This step can also refer to the relevant introduction of the previous embodiment, which will not be repeated here.

[0110] S404: Determine a reference direction vector of a reference direction indicated by the direction reference line in a set coordinate system based on the position of the direction reference line in the direction reference image.

[0111] For example, based on the mapping relationship between the camera plane where the direction reference image is located and the set coordinate system, the direction reference line is mapped to the set coordinate system. On this basis, the direction vector of the direction reference line in the set coordinate system can be determined, that is, the reference direction vector is obtained.

[0112] In a possible implementation, the present application constructs a coordinate system based on the plane where the screen image is located, and determines the coordinate system as the set coordinate system. On this basis, the reference direction vector of the direction reference line in the set coordinate system can be determined, thereby obtaining the reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system.

[0113] It can be understood that if the screen image and the direction reference image are images obtained by the same camera device while maintaining the same posture, then the plane where the screen image is located is the same as the plane where the direction reference image is located, and the plane is also the camera plane of the camera device. On this basis, after constructing a coordinate system based on the camera plane, the reference direction vector and the actual direction vector can be easily determined.

[0114] S405: Determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

[0115] The step S405 can be referred to the previous introduction and will not be described again here.

[0116] It can be understood that since the direction reference line itself can represent the reference direction, the actual reference direction can be obtained more conveniently and accurately by obtaining an image containing the direction reference line. On this basis, it is helpful to more accurately determine the offset information of the reference direction set by the smart wearable device relative to the actual reference direction.

[0117] It is understandable that in the above embodiments of the present application, the reference directions set in different smart wearable devices may be different. In order to avoid the image seen by the user's eyes being skewed, the smart wearable device generally adjusts the output of the display image according to the user's posture and the set reference direction, and the reference direction set may also be different depending on the type of smart wearable device.

[0118] For example, taking smart wearable devices such as smart glasses and other smart head-mounted devices as an example, since this type of smart wearable device will change accordingly with the user's head, and the user's eyes are basically perpendicular to the smart wearable device, when the smart wearable device outputs a display image, the offset of the display image relative to the vertical direction has a greater impact on the display effect of the user viewing the display image.

[0119] For example, when the user turns his head to the left relative to the vertical direction, the smart wearable device needs to be deflected to the left by a corresponding degree based on its set vertical direction so that the display screen seen by the user is not skewed; if the vertical direction set by the smart wearable device deviates, the display screen seen by the user will be skewed.

[0120] Based on this, it can be known that for head-mounted devices such as smart glasses, the reference direction set therein includes at least the vertical direction.

[0121] For another example, taking a smart watch as an example, when a user uses the smart watch, the display interface of the smart watch may deflect relative to the horizontal plane. Therefore, in order to better adapt to the user's posture, the smart watch needs to adjust the display effect of the display screen of the display interface based on the horizontal direction. It can be seen that the reference direction set in the smart watch at least includes the horizontal direction.

[0122] For ease of understanding, the following is a schematic diagram of an implementation flow of a method for determining display offset information of the present application, taking a marking pattern of at least one square as an example, and combining a situation. The method of this embodiment can be applied to a smart wearable device or an electronic device other than a smart wearable device. The method of this embodiment may include:

[0123] S501, obtaining a screen image of a smart wearable device.

[0124] The screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, and the marking pattern is a pattern used for a reference direction.

[0125] In this embodiment, the marking pattern is at least one square, and the marking pattern represents the reference direction through two mutually parallel first sides of the square. For example, if the reference direction is the vertical direction, the first side is the vertical side of the square, and the vertical direction is marked by the vertical side.

[0126] For example, the marking pattern may be at least one square or rectangle, wherein at least one square is arranged in m rows in the horizontal direction and n columns in the vertical direction, that is, the marking pattern includes m*n squares, where m and n are natural numbers not less than 1. Figure 2 Of course, in order to accurately mark the horizontal and vertical directions, the marking pattern can be set to multiple squares.

[0127] For this step, please refer to the related introduction of the previous embodiment, which will not be repeated here.

[0128] S502: Obtain a direction reference image.

[0129] The direction reference image includes: a direction reference line for indicating a reference direction.

[0130] For example, taking the reference direction as the vertical direction, the direction reference image may be an image of a plumb line indicating the vertical direction.

[0131] For ease of understanding, a smart wearable device is taken as a smart glasses as an example (similar to other head-mounted smart devices), and an implementation method of obtaining a direction reference image and a screen image is used as an example for explanation:

[0132] The deviation of the display screen of the smart glasses relative to the vertical direction has a great impact on the user's viewing experience. Therefore, the reference direction in the smart glasses needs to be set to the vertical direction.

[0133] like Figure 6 As shown, it shows a schematic diagram of a scene for collecting the marking pattern output by the smart glasses and the direction reference image in the present application.

[0134] exist Figure 6 In the scenario, in order to more accurately analyze the offset of the vertical direction set by the smart glasses 601 relative to the actual vertical direction, the smart glasses 601 are mounted on the horizontal support frame of the support structure 602 to keep the lenses of the smart glasses parallel to the vertical direction, and the smart glasses are placed horizontally, such as Figure 6 shown.

[0135] At the same time, Figure 6 A computer device 603 is also provided, which is connected to a camera device 604, and the camera device is mounted on a horizontal support frame of the support structure 602 so that the image acquisition area of ​​the camera device faces the display interface of the smart glasses.

[0136] Based on the above, assuming that the marking pattern is Figure 2 As shown, the marking pattern is output on the smart glasses (such as Figure 6 In the case of the pattern 605, the camera device 604 can capture a screen image, which can be as shown in FIG. Figure 3 shown.

[0137] On the other hand, in order to determine the actual vertical direction, Figure 6 In the embodiment, a plumb line 606 can be dropped at the front end of the smart glasses, and the camera device captures the image of the plumb line while keeping the camera device in the same posture, and obtains an image including the plumb line, that is, a direction reference image. Figure 7 It shows a schematic diagram of the direction reference image of the present application. Figure 7 The line 701 in the directional reference image shown is an image of a plumb line.

[0138] Understandably, Figure 6Taking the smart wearable device as smart glasses as an example, if the smart device is a smart watch or other smart wearable device that uses the horizontal direction as the reference direction, then when the display interface of the smart wearable device is parallel to the horizontal direction, its screen image and direction reference image can be captured. No further details are given.

[0139] S503: Based on an imaging figure corresponding to the square in the screen image, a line connecting the center points of two second imaging edges in the imaging figure is determined as a reference direction marked by the marking pattern.

[0140] The imaging image includes a first imaging side and a second imaging side, the first imaging side is the imaging of a first side in a square for representing a reference direction, and the second imaging side is the imaging of a second side in the square other than the first side.

[0141] It is understandable that, when the reference direction set by the smart wearable device does not deviate, the horizontal or vertical sides of the square in the marking pattern displayed by the smart wearable device are parallel to the reference direction. If the reference direction set by the smart wearable device deviates, the horizontal or vertical sides of the square in the marking pattern displayed by the smart wearable device will be tilted relative to the reference direction. Correspondingly, the square imaging pattern will also be tilted.

[0142] For example, still taking the reference direction as the vertical direction, if the vertical direction set by the smart wearable device is offset, the vertical side of the square in the marking pattern output by the smart wearable device will be tilted relative to the vertical direction. Figure 6 In the scenario shown, since the vertical direction set in the smart glasses is offset, the vertical side of the square in the marking pattern output by the smart glasses will deviate from the vertical direction. Figure 3 As shown, the directions corresponding to the sides of the square are Figure 3 As shown by the dotted line in the middle, which is obviously not parallel to the vertical direction.

[0143] It is understandable that under normal circumstances, the square output by the smart wearable device will not be deformed. Therefore, based on the imaging of the marking pattern in the screen image, it can be known that the horizontal or vertical side of the square actually represents the reference direction set by the smart wearable device. If the reference direction is the vertical direction, the vertical side of the square in the screen image (or the vertical side of the square imaging pattern) represents the reference direction set by the smart wearable device.

[0144] At the same time, since the square image is not deformed, the square image is still a square, so the vertical side of the square in the screen image is actually the line connecting the center points of the two second imaging sides in the square imaging figure.

[0145] For example, if the reference direction is the vertical direction, the first side of the square representing the reference square is the vertical side of the square. When the image of the square in the screen image is still a square, the reference direction indicated by the line connecting the center points of the two horizontal sides of the square in the screen image is the same as the reference direction indicated by the vertical side of the square.

[0146] It is understandable that the above is an example of a smart wearable device outputting a display screen based only on the smart direction. In actual applications, in addition to setting the reference direction, the smart wearable device will also set an auxiliary reference direction, which is perpendicular to the reference direction. Accordingly, the smart wearable device may also control the output of the display screen in combination with the auxiliary reference direction. For example, when the reference direction is the vertical direction, the smart wearable device will also control the output of the display screen in combination with the horizontal direction set by it.

[0147] If the auxiliary reference direction set by the smart wearable device also has deviations, the marking pattern output by the smart wearable device will be deformed, so that the imaging of the marking pattern in the screen image may no longer be a square. However, the line connecting the center points of the two second imaging edges in the imaging pattern in the screen graphic still indicates the reference direction set by the smart wearable device. This will be explained later in conjunction with the offset information on the auxiliary reference direction, and will not be repeated here.

[0148] It should be noted that step S503 is an implementation method for determining the reference direction of the marking pattern in the screen image based on the imaging of the marking pattern in the screen image, and other methods are also applicable to this embodiment.

[0149] S504: construct a set coordinate system based on the plane where the screen image is located, and determine the actual direction vector of the reference direction marked by the marking pattern in the set coordinate system.

[0150] S505: Determine a reference direction vector of a direction reference line in the direction reference image in a set coordinate system.

[0151] It should be noted that in this embodiment, the coordinate system is set to be a coordinate system constructed based on the plane where the screen image is located, but it can be understood that other situations of setting the coordinate system are also applicable to this embodiment.

[0152] S506: Determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

[0153] For example, still combined Figure 6 Description, in Figure 6The screen image and the direction reference image are the same camera device, so the screen image and the direction reference image are actually the same camera plane. Therefore, the coordinate system constructed with the plane where the screen image is located is actually the coordinate system constructed with the plane where the direction reference image is located. On this basis, in fact, in the camera plane, determine Figure 3 The virtual directions corresponding to the marked smart glasses are as follows: Figure 7 The dashed line and Figure 7 The angle vector between the plumb line 701 in the direction reference image is collected, and the angle vector represents the offset direction and offset angle of the smart glasses relative to the vertical direction.

[0154] It is understandable that in the present application, if the offset information is determined by an electronic device other than the smart wearable device, the electronic device can also send the offset information to the smart wearable electronic device so that the smart wearable electronic device adjusts its set reference direction.

[0155] like Figure 6 In the process, after the computer device obtains the direction reference image and the screen image collected by the camera device and analyzes the offset information, the offset information can be sent to the smart glasses.

[0156] Of course, if the smart wearable device analyzes the offset information, the smart wearable electronic device can directly adjust the reference direction it sets based on the offset information. Figure 6 The computer device can send the direction reference image and the screen image to the smart glasses, which analyze the offset information and adjust the set reference direction based on the determined offset information.

[0157] It is understandable that the above embodiments of the present application are described by taking a reference direction of the smart wearable device as an example, but in actual applications, the smart wearable device can control the output of the display screen in combination with the reference direction, and can also control the output of the display screen in combination with at least one auxiliary reference direction perpendicular to the reference direction. For example, if the reference direction is the vertical direction, the auxiliary reference direction can be the horizontal direction, and can also include a third direction perpendicular to the vertical direction and the horizontal direction.

[0158] If there is a deviation in the auxiliary reference direction set by the smart wearable device, the graphics in the marking pattern output by the smart wearable device will be deformed. For example, after the square is deformed, the two vertical sides of the square may no longer be parallel, and the two horizontal sides may no longer be parallel. Therefore, in the above embodiments of the present application, when the marking pattern includes at least one square, and after the screen image is obtained, the first angle of the two first imaging sides in the square and the second angle of the two second imaging sides in the square can also be determined based on the imaging graphics corresponding to the square in the screen image.

[0159] As mentioned above, the square includes two first sides indicating the reference direction and two second sides, so the images of these two types of sides are respectively the first imaging sides and the second imaging sides.

[0160] Accordingly, based on the determined first angle and the second angle, the offset information of the smart wearable device in the first auxiliary reference direction and the offset information in the second auxiliary reference direction can be determined, wherein the reference direction, the first auxiliary reference direction and the second auxiliary reference direction are perpendicular to each other.

[0161] The first angle and the second angle may be vector angles.

[0162] For example, when the reference direction is the vertical direction, and when the auxiliary reference direction is the horizontal direction, the first angle between the two first imaging edges is the offset information in the horizontal direction; similarly, the second angle is the offset information of the auxiliary reference direction perpendicular to the horizontal and vertical directions in the spatial coordinate system.

[0163] For example, taking smart glasses as an example, combined with Figure 2 and Figure 6 Note. The reference direction of the smart glasses is the vertical direction, and the auxiliary reference direction may include: the horizontal direction. Figure 6 In the posture of the smart glasses shown, the smart glasses can control the adjustment of the display image relative to the horizontal direction on the vertical plane where the display interface is located based on the set vertical direction, so that the display image is deflected inward or outward relative to the display interface.

[0164] In the marking pattern Figure 2 In the case of Figure 2 The square in the middle is a square, which means that if the smart glasses only have deviations in the set vertical direction, the entire marking pattern output by the smart glasses will deviate from the vertical direction, but the marking pattern seen by the user is still square. Therefore, the vertical sides of the squares in the same column actually represent the vertical direction based on which the smart glasses are based. Correspondingly, the line connecting the center lines of the two horizontal sides of each square in the same column also represents the vertical direction. Figure 3 Shown by the dashed line.

[0165] If there is a deviation in the horizontal direction set by the smart glasses, then after the smart glasses output the marking pattern on the display interface based on the horizontal and vertical directions set by the smart glasses, the marking pattern will actually be deflected inward or outward relative to the horizontal direction relative to the display interface, so that each square in the marking pattern seen by the user has been deformed. Specifically, the upper side of the square becomes shorter or the lower side becomes shorter, etc., so that the two vertical sides of the deformed square are no longer parallel to each other, so that the square is deformed into a trapezoid (the same is true for the case where the square is a rectangle). In this case, the angle between the two sides of the trapezoid is the offset information of the smart glasses in the horizontal direction.

[0166] Specifically, assuming that the horizontal direction set by the smart glasses is tilted along the display interface toward the direction of the user's line of sight, the upper side of the square will become longer and the lower side will become shorter. Combining the intersection method of the trapezoids and the angle value of the angle, it can be obtained that the horizontal direction is tilted along the display interface toward the user's line of sight, and the inclination angle is the angle value of the angle.

[0167] The situation where both the horizontal and vertical directions set by the smart glasses have deviations is similar to the situation where the horizontal direction set by the smart eyes has deviations, and will not be described in detail.

[0168] Correspondingly, the case where the auxiliary reference direction is a third direction perpendicular to the horizontal direction and the vertical direction is similar and will not be described in detail here.

[0169] It is understandable that if other electronic devices determine that there is offset information in the auxiliary reference direction set by the smart wearable device, the electronic devices will also send this part of the offset information to the smart wearable device so that the smart wearable device adjusts its set auxiliary reference direction.

[0170] Corresponding to a method for determining display offset information of the present application, the present application also provides a device for determining display offset information, such as Figure 8 As shown, it shows a schematic diagram of a composition structure of a device for determining display offset information of the present application, and the device may include:

[0171] A screen image obtaining unit 801 is used to obtain a screen image of a smart wearable device, wherein the screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, wherein the marking pattern is a pattern used to mark a reference direction;

[0172] A first vector determination unit 802 is used to determine the actual direction vector of the reference direction set by the smart wearable device in a set coordinate system based on the imaging of the marking pattern in the screen image;

[0173] A second vector determining unit 803 is used to determine a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device;

[0174] The offset determination unit 804 is used to determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

[0175] In a possible implementation manner, the second vector determining unit includes:

[0176] A reference image obtaining unit, used to obtain a direction reference image, wherein the direction reference image at least includes: an image of a direction reference line for indicating the reference direction;

[0177] A reference vector determining unit is used to determine a reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system based on the position of the direction reference line in the direction reference image.

[0178] In yet another possible implementation, the first vector determining unit includes:

[0179] a marking direction determining unit, configured to determine a reference direction marked by the marking pattern in the screen image based on the imaging of the marking pattern in the screen image;

[0180] The reference direction determining unit is used to construct a set coordinate system based on the plane where the screen image is located, and determine the actual direction vector of the reference direction marked by the marking pattern in the set coordinate system.

[0181] As an alternative,

[0182] The marking pattern is at least one square, and the marking pattern represents the reference direction through two mutually parallel first sides of the square;

[0183] The marking direction determination unit is specifically used to determine, based on the imaging figure corresponding to the square in the screen image, a line connecting the center points of the two second imaging edges in the imaging figure as a reference direction marked by the marking pattern; wherein the imaging figure of the square includes: two first imaging edges and two second imaging edges, the first imaging edge is the imaging of the second edge of the square in the screen image, and the second imaging edge is the imaging of the second edge of the square other than the first edge in the square in the screen image.

[0184] In an optional manner, the device further includes:

[0185] An angle determination unit, configured to determine a first angle between two first imaging sides in the square and a second angle between two second imaging sides in the square based on an imaging pattern corresponding to the square in the screen image;

[0186] The auxiliary offset determination unit is used to determine the offset information of the smart wearable device in a first auxiliary reference direction and the offset information in a second auxiliary reference direction based on the determined first angle and the second angle, wherein the reference direction, the first auxiliary reference direction and the second auxiliary reference direction are perpendicular to each other.

[0187] In another possible implementation,

[0188] When the device is applied to other than smart wearable devices, the device may further include:

[0189] An information sending unit, configured to send the determined offset information on the reference direction to the smart wearable device, so that the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display screen based on the offset information;

[0190] Or,

[0191] When the device is applied to a smart wearable device, it also includes:

[0192] The direction correction unit is used to correct the reference direction based on which the smart wearable device outputs a display image based on the offset information.

[0193] In another aspect, the present application also provides an electronic device, such as Fig. 9 As shown, it shows a schematic diagram of a composition structure of the electronic device, the electronic device can be a server of the interactive system, and can also be a client of the interactive system, and the electronic device at least includes a memory 901 and a processor 902;

[0194] The processor 901 is used to execute the method for determining the display offset information in any one of the above embodiments.

[0195] This memory is used to store the programs that the processor needs to perform operations.

[0196] It is understandable that the electronic device may further include a display unit 903, an input unit 904 and a communication bus 905. Of course, the electronic device may also have Fig. 9 There may be more or fewer components, without limitation.

[0197] On the other hand, the present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, code set or instruction set is stored, and the at least one instruction, the at least one program, the code set or instruction set is loaded and executed by a processor to implement the method for determining display offset information as described in any of the above embodiments.

[0198] The present application also proposes a computer program, which includes computer instructions stored in a computer-readable storage medium. When the computer program is run on an electronic device, it is used to execute the method for determining display offset information in any one of the above embodiments.

[0199] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. At the same time, the features recorded in each embodiment in this specification can be replaced or combined with each other, so that professionals in the field can implement or use this application. For device embodiments, since they are basically similar to method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0200] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. 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 application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for determining display offset information, comprising: Obtaining a screen image of a smart wearable device, wherein the screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, wherein the marking pattern is a pattern used to mark a reference direction; Determine, based on the imaging of the marking pattern in the screen image, an actual direction vector of the reference direction set by the smart wearable device in a set coordinate system; Determining a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device; Based on the actual direction vector and the reference direction vector, offset information of the reference direction set by the smart wearable device is determined.

2. The method according to claim 1, wherein determining a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device comprises: Obtaining a direction reference image, the direction reference image at least comprising: an image of a direction reference line for indicating the reference direction; Based on the position of the direction reference line in the direction reference image, a reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system is determined.

3. The method according to claim 1, wherein determining the actual direction vector of the reference direction set by the smart wearable device in a set coordinate system based on the marking pattern in the screen image comprises: Based on the imaging of the marking pattern in the screen image, determining a reference direction marked by the marking pattern in the screen image; A set coordinate system is constructed based on the plane where the screen image is located, and an actual direction vector of the reference direction marked by the marking pattern in the set coordinate system is determined.

4. The method according to claim 3, wherein the marking pattern is at least one square, and the marking pattern represents the reference direction through two mutually parallel first sides of the square; The step of determining a reference direction marked by the marking pattern in the screen image based on the imaging of the marking pattern in the screen image comprises: Based on an imaging pattern corresponding to the square in the screen image, a line connecting the center points of two second imaging edges in the imaging pattern is determined as a reference direction marked by the marking pattern; The square imaging pattern includes: two first imaging edges and two second imaging edges, the first imaging edge is the imaging of the second edge of the square in the screen image, and the second imaging edge is the imaging of the second edge of the square other than the first edge in the screen image.

5. The method according to claim 4, further comprising: Based on the imaging pattern corresponding to the square in the screen image, determining a first angle between two first imaging sides in the square and a second angle between two second imaging sides in the square; Based on the determined first angle and second angle, offset information of the smart wearable device in a first auxiliary reference direction and offset information in a second auxiliary reference direction are determined, and the reference direction, the first auxiliary reference direction and the second auxiliary reference direction are perpendicular to each other.

6. The method according to claim 1, further comprising: In the case where the method is applied to an electronic device other than a smart wearable device, the method further includes: sending the determined offset information on the reference direction to the smart wearable device, so that the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display screen based on the offset information; Or, When the method is applied to a smart wearable device, the smart wearable device corrects the reference direction based on which the smart wearable device outputs a display image based on the offset information.

7. A device for determining display offset information, comprising: A screen image obtaining unit, used to obtain a screen image of the smart wearable device, wherein the screen image at least includes an image of a marking pattern outputted in a display interface of the smart wearable device, wherein the marking pattern is a pattern used to mark a reference direction; A first vector determination unit, configured to determine an actual direction vector of the reference direction set by the smart wearable device in a set coordinate system based on the imaging of the marking pattern in the screen image; A second vector determination unit, configured to determine a reference direction vector corresponding to the reference direction in the set coordinate system based on the reference direction indicated by a direction reference object outside the smart wearable device; An offset determination unit is used to determine the offset information of the reference direction set by the smart wearable device based on the actual direction vector and the reference direction vector.

8. The device according to claim 7, wherein the second vector determining unit comprises: A reference image obtaining unit, used to obtain a direction reference image, wherein the direction reference image at least includes: an image of a direction reference line for indicating the reference direction; A reference vector determining unit is used to determine a reference direction vector of the reference direction indicated by the direction reference line in the set coordinate system based on the position of the direction reference line in the direction reference image.

9. The device according to claim 7, wherein the first vector determining unit comprises: a marking direction determining unit, configured to determine a reference direction marked by the marking pattern in the screen image based on the imaging of the marking pattern in the screen image; The reference direction determining unit is used to construct a set coordinate system based on the plane where the screen image is located, and determine the actual direction vector of the reference direction marked by the marking pattern in the set coordinate system.

10. An electronic device, comprising: Processor and memory; Wherein, the processor is used to execute the method for determining display offset information as described in any one of claims 1 to 6 above; The memory is used to store the program required for the processor to perform the above operations.

Citation Information

Patent Citations

  • Shooting realization method and apparatus of smart mobile device

    CN104917964A

  • Display control method and electronic device

    CN106095372A