Data processing method and electronic equipment

By acquiring and mapping the initial direction data in the foldable electronic device, the problem of inaccurate direction data caused by changes in the body position is solved, and the normal operation of the device and the accuracy of direction data in different usage modes are achieved.

CN120034601APending Publication Date: 2025-05-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510213925.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-05-23

AI Technical Summary

Technical Problem

In the foldable electronic device, due to the change in the relative position between the two bodies, the direction data sensed by the sensor is inaccurate, which affects the normal use of the device.

Method used

By acquiring the initial data acquired by the first acquisition device and based on the target relative position parameters between the first body and the second body, the initial data is mapped into more accurate direction data using the target mapping parameters, thereby feedbacking accurate direction information.

Benefits of technology

This method can ensure the accuracy of the direction data of the electronic device, avoid the inconsistency of the direction data caused by changes in the body position, and ensure the normal operation of the device in different usage modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120034601A_ABST
    Figure CN120034601A_ABST
Patent Text Reader

Abstract

The invention provides a data processing method and electronic equipment, and is applied to the technical field of data processing. The data processing method comprises the following steps: acquiring first initial data acquired by a first acquisition device; mapping the first initial data into second initial data by using a target mapping parameter matched with a target relative position parameter based on the target relative position parameter between the first body and the second body in response to an instruction for indicating to obtain the initial data for the target object; feeding back the second initial data; wherein the target object is arranged on the first body, and the first acquisition device is arranged on the second body.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a data processing method and an electronic device. Background Art

[0002] A foldable electronic device includes two bodies that can rotate relative to each other. A sensor is usually set in the body to indicate the direction of the electronic device. The placement of the sensor for identifying the direction may be placed in different positions in the electronic device for various reasons. However, since the relative position between the two bodies may change, the direction data sensed by the sensor may be inaccurate. Summary of the invention

[0003] In view of this, the present disclosure provides a data processing method and an electronic device.

[0004] According to a first aspect of the present disclosure, there is provided a data processing method, comprising: acquiring first initial data acquired by a first acquisition device; in response to an instruction indicating acquisition of initial data for a target object, based on a target relative position parameter between a first body and a second body, mapping the first initial data into second initial data with a target mapping parameter matching the target relative position parameter; and feeding back the second initial data; wherein the target object is disposed on the first body, and the first acquisition device is disposed on the second body.

[0005] According to an embodiment of the present disclosure, the target mapping parameter represents a mapping relationship between the first coordinate system and the second coordinate system, the first acquisition device corresponds to the first coordinate system, and the target object corresponds to the second coordinate system.

[0006] According to an embodiment of the present disclosure, the target mapping parameter represents the axis rotation relationship between the first coordinate system and the second coordinate system of the direction data of the target object determined by the first initial data; or the target mapping parameter represents the projection relationship between the coordinate axes of the first coordinate system and the coordinate axes of the second coordinate system of the first initial data.

[0007] According to an embodiment of the present disclosure, the method further includes: acquiring third initial data collected by a second collection device; the second collection device is arranged on the first body; and determining first direction data for the target object based on the second initial data and the third initial data.

[0008] According to an embodiment of the present disclosure, the target relative position parameter includes a first position sub-parameter and a second position sub-parameter; the first position sub-parameter is used to characterize the angle between the first body and the second body; the second position sub-parameter is used to characterize the angle between the first body and / or the second body and the direction of gravity.

[0009] According to an embodiment of the present disclosure, if the target relative position parameter is a first relative position parameter, the target mapping parameter is a first mapping parameter; if the target relative position parameter is a second relative position parameter, the target mapping parameter is a second mapping parameter; the first mapping parameter is different from the second mapping parameter, and the first relative position parameter is different from the first position sub-parameter and / or second position sub-parameter of the second relative position parameter.

[0010] According to an embodiment of the present disclosure, the method further includes: feeding back the first direction data to the target application via a first target interface, where the first target interface is a standard interface used by the target application to access the first direction data.

[0011] According to an embodiment of the present disclosure, based on the target relative position parameters between the first body and the second body, the first initial data is mapped to the second initial data with the target mapping parameters matching the target relative position parameters, including: based on the target relative position parameters, determining the target mode, the target mode characterizing the usage scenario of the target display screen; according to the target mapping parameters corresponding to the target mode, mapping the first direction data to the second direction data to obtain the display direction of the target display screen.

[0012] According to an embodiment of the present disclosure, the method further includes: feeding back the second direction data to the target application via a second target interface, where the second target interface is a standard interface used by the target application to access the first direction data in the target mode.

[0013] A second aspect of the present disclosure provides an electronic device, comprising: a first body, a second body, which is hinged to the first body, and the first body can rotate relative to the second body to be in different relative positions; a first acquisition device, which is arranged on the second body, and the first acquisition device is used to measure first initial data; a processor, which is arranged on the first body or the second body, and the processor is used to obtain the first initial data collected by the first acquisition device; in response to an instruction to instruct to obtain initial data for a target object, based on a target relative position parameter between the first body and the second body, the first initial data is mapped to second initial data with a target mapping parameter matching the target relative position parameter; and the second initial data is fed back; wherein the target object is arranged on the first body, and the first acquisition device is arranged on the second body.

[0014] The third aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned data processing method.

[0015] The fourth aspect of the present disclosure also provides a computer program product, including a computer program, which implements the above-mentioned data processing method when executed by a processor.

[0016] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0018] Figure 1 A flowchart schematically shows a data processing method according to an embodiment of the present disclosure;

[0019] Figure 2A One of the schematic diagrams of coordinate system mapping according to an embodiment of the present disclosure is schematically shown;

[0020] Figure 2B A second schematic diagram schematically illustrates coordinate system mapping according to an embodiment of the present disclosure;

[0021] Figure 2C A third schematic diagram schematically illustrates coordinate system mapping according to an embodiment of the present disclosure;

[0022] Figure 3A One of the schematic diagrams of coordinate system mapping according to another embodiment of the present disclosure is schematically shown;

[0023] Figure 3B A second schematic diagram schematically illustrates coordinate system mapping according to another embodiment of the present disclosure;

[0024] Figure 3C A third schematic diagram schematically illustrates coordinate system mapping according to another embodiment of the present disclosure;

[0025] Figure 3D A fourth schematic diagram schematically illustrates coordinate system mapping according to another embodiment of the present disclosure;

[0026] Figure 4 The structure diagram of the electronic device according to the embodiment of the present disclosure is schematically shown;

[0027] Figure 5 A structural block diagram schematically shows a data processing device according to an embodiment of the present disclosure; and

[0028] Figure 6 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0029] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0030] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0031] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0032] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0033] The embodiments of the present disclosure provide a data processing method and an electronic device. Before introducing the technical solutions provided by the embodiments of the present disclosure, the related technologies involved in the present disclosure are first described.

[0034] A foldable electronic device includes two bodies that can rotate relative to each other. A sensor is usually set in the body to indicate the direction of the electronic device. The placement of the sensor for identifying the direction may be placed in different positions in the electronic device for various reasons. However, since the relative position between the two bodies may change, the direction data sensed by the sensor may be inaccurate.

[0035] At present, according to the user's usage habits, the sensor used to identify the direction of the electronic device is placed in the part whose relative position changes less with the user's use. For example, the main body part that the user holds in normal use is called the base part of the electronic device. The main body part that rotates relative to the main body held by the user when in use is called the flip part of the electronic device. However, with the increase of electronic devices in the base part, the space is squeezed, resulting in the inability to place the direction sensor. If the direction sensor is placed in the flip part, since the flip part will unfold and fold, the direction data measured by the direction sensor will be inconsistent with the direction data of the actual foldable electronic device, thereby affecting the use. In one example, in a candy bar phone, the direction data measured by the direction sensor is the direction of the device. For example, when the candy bar phone is in a horizontal state, the head of the phone is defined as the front of the device; when the candy bar phone is in a vertical state, the back of the phone is defined as the front of the device.

[0036] In a folding phone, the motherboard is usually located in the flip part, and the battery and USB port are located in the base. If the direction sensor is set in the flip part, the direction data measured by the direction sensor will be reversed with the defined direction as the flip part flips and folds, causing a logical error in the device's use of the direction data.

[0037] In another example, a foldable phone includes an inner screen and an outer screen. The inner screen is the main display screen of the foldable phone, which is usually located on the inner side of the phone, that is, the display screen that can be seen after the foldable phone is unfolded. The outer screen is the second display screen of the foldable phone, which is usually located on the outer side of the phone, that is, the display screen that can be seen after the foldable phone is folded. The inner and outer screens usually display content in the display screen according to the mode of the foldable phone. At present, in foldable phones, the direction sensor is located in the flip part. Since the direction sensor is arranged in the base part, the display direction of the inner and outer screens is consistent with the direction measured by the direction sensor when the foldable phone is in the closed mode (the angle between the base part and the flip part is 0 degrees) or the unfolded mode (the angle between the base part and the flip part is 180 degrees). Therefore, the outer screen can only display content in the closed mode, resulting in the inability to display in other modes, which cannot meet the needs of users.

[0038] It should be understood that the base part and the flip part are two bodies of the foldable device whose relative positions can change. Depending on the scenario, the base part and the flip part correspond to the first body and the second body. In different scenarios, there may be other description methods.

[0039] The embodiment of the present disclosure provides a data processing method, including: obtaining first initial data collected by a first acquisition device; in response to an instruction to obtain initial data for a target object, based on a target relative position parameter between a first body and a second body, mapping the first initial data to second initial data with a target mapping parameter matching the target relative position parameter; feeding back the second initial data; wherein the target object is set on the first body, and the first acquisition device is set on the second body. When the first acquisition device directly used to determine the direction of the target object is set at a position corresponding to a non-target object, data conversion can be performed by constructing a mapping relationship between the target object and the first acquisition device regarding the direction data, so that the direction data corresponding to the target object can be obtained. Separating the first acquisition device from the target object can not only save the space to which the target object belongs, but also obtain the direction data of the first body and the second body through a first acquisition device, which can ensure the normal use of the electronic device.

[0040] The following will be passed Figure 1~Figure 3D The data processing method of the embodiment of the present disclosure is described in detail.

[0041] Figure 1 The flowchart of the data processing method according to the embodiment of the present disclosure is schematically shown.

[0042] like Figure 1 As shown, the data processing method of this embodiment includes operations S210 to S230.

[0043] The data processing method of this embodiment is applied to an electronic device. The electronic device includes a first body and a second body. The second body can rotate relative to the first body to be in different relative positions.

[0044] The electronic device may be a terminal including multiple folding screens, wherein the first body (base part) has a first display screen, and the second body (flip part) has a second display screen. For example, a folding screen mobile phone, a tablet computer, etc. The electronic device may also be a foldable terminal, wherein the first body has a display screen, and the second body has a keyboard. For example, a laptop computer, etc.

[0045] The embodiments of the present disclosure are described by taking a foldable screen mobile phone as an example of an electronic device.

[0046] In operation S210 , first initial data collected by a first collection device is acquired.

[0047] Wherein, the first collecting device is arranged on the second body.

[0048] Exemplarily, the first acquisition device may be an electronic device disposed in the second body of the electronic device for determining the direction of the electronic device. For example, the first acquisition device may be an acceleration sensor, a gyroscope, a geomagnetic sensor, a gravity sensor, or other sensors.

[0049] In the process of determining the direction of the electronic device, the first acquisition device may be one or more, and the embodiments of the present disclosure do not make specific limitations. For example, when there is one first acquisition device, in order to determine the direction of the electronic device, the first acquisition device may be a geomagnetic sensor disposed on the second body. When there are multiple first acquisition devices, in order to determine the direction of the electronic device, the first acquisition device may be an acceleration sensor, a gyroscope, or a geomagnetic sensor disposed on the second body.

[0050] The direction of the electronic device may be a predefined direction, for example, the direction of the first body of the base is taken as the direction of the electronic device, the direction in which the head of the base faces is the Y direction, the direction in which the right side of the base faces is the X direction, and the direction perpendicular to the first display screen of the base is the Z direction. Alternatively, the direction of the inner screen (second display screen) of the second body of the flip portion is taken as the direction of the electronic device, the direction in which the head of the second body inner screen faces is the Y direction, the direction in which the right side of the second body inner screen faces is the X direction, and the direction perpendicular to the second body inner screen is the Z direction.

[0051] The first initial data may be raw data collected by the first acquisition device for determining the direction of the electronic device. For example, magnetic data of the second body measured by a geomagnetic sensor. The first initial data may also be direction data of the electronic device calculated based on the raw data collected by the first acquisition device. For example, the direction of the second display screen in the second body.

[0052] In operation S220, in response to an instruction to obtain initial data for a target object, based on a target relative position parameter between the first body and the second body, the first initial data is mapped to second initial data with a target mapping parameter matching the target relative position parameter.

[0053] Wherein, the target object is set in the first body.

[0054] Exemplarily, the target object may be an object in the electronic device that cannot directly use the first initial data. That is, if the target object uses initial data of the same type as the first initial data, the first initial data needs to be converted to determine data (second initial data) that is suitable for itself, and the first initial data cannot be used directly.

[0055] In the case where the initial data is data for determining the direction of the electronic device, the target object may be a body that is different from the position of the first acquisition device. For example, the target object may be a first body that is different from the second body in the electronic device. For example, the target object may also be an outer screen that is opposite to the second display screen (inner screen) of the second body in the electronic device. Here, the first body may be understood as the outer part of the second body that carries the outer screen, and the second body may be understood as the inner part of the second body that carries the inner screen.

[0056] For example, if the space of the first body is limited, the geomagnetic sensor is set in the second body, and the geomagnetic sensor is no longer set in the first body. The target object can be a virtual geomagnetic sensor of the first body. The magnetic data measured by the geomagnetic sensor in the second body can be converted to obtain the magnetic data of the virtual geomagnetic sensor in the first body. Therefore, the magnetic data of the first body can be determined by the geomagnetic sensor set in the second body, and no longer rely on the geomagnetic sensor set in the first body itself.

[0057] The target relative position parameter can be the positional relationship between the first body and the second body. For example, the positional relationship can be an angle. For example, the angle between the first body and the second body of the folding screen mobile phone is 0 degrees, 60 degrees, 120 degrees, 180 degrees, etc. The positional relationship can also be an angle and a placement direction. For example, the angle between the first body and the second body of the folding screen mobile phone is 60 degrees, and the first body and the second body are placed vertically.

[0058] The target mapping parameter may be a conversion relationship between the initial data of the first acquisition device and the target object determined according to the relative position relationship between the first body and the second body. The target mapping parameters corresponding to different target relative position parameters may be different. For example, the target mapping parameter may be a mapping relationship between the coordinate systems in which the first acquisition device and the target object are located. For example, the first magnetic data (first initial data) measured by the real geomagnetic sensor set in the second body can be converted between coordinate systems to obtain the second magnetic data (second initial data) of the virtual geomagnetic sensor in the first body.

[0059] In operation S230, second initial data is fed back.

[0060] In one example, the direction of the folding screen mobile phone is defined by the direction of the base part, so the direction of the folding screen mobile phone can be calculated based on the magnetic data of the base part. The real geomagnetic sensor (first acquisition device) is arranged on the flip part (second body) of the folding screen mobile phone. The target object is the virtual geomagnetic sensor of the base part (second body) of the folding screen mobile phone. In the process of determining the direction of the folding screen mobile phone, the first magnetic data (first initial data) sensed by the real geomagnetic sensor is obtained. According to the angle between the base part and the flip part of the folding screen mobile phone (target relative position parameter), the mapping relationship between the coordinate system where the real geomagnetic sensor and the virtual geomagnetic sensor are located is determined, and the first magnetic data is mapped to the second magnetic data (second initial data). The system of the electronic device calculates and determines the direction of the folding screen mobile phone based on the second magnetic data.

[0061] In another example, the direction of the folding screen mobile phone is defined by the direction of the expected display screen, so the direction of the expected display screen can be converted by the direction of the inner screen of the flip part. The real geomagnetic sensor (first acquisition device) is arranged on the flip part (second body) of the folding screen mobile phone. The target object is the expected display screen, and the expected display screen can be the inner screen of the flip part or the outer screen of the flip part. In the process of determining the direction of the expected display screen, the magnetic data sensed by the real geomagnetic sensor is obtained, and the first direction data (first initial data) of the inner screen of the flip part is calculated based on the magnetic data. According to the relative position relationship between the base part and the flip part of the folding screen mobile phone (target relative position parameter), the mapping relationship between the coordinate system where the inner screen and the outer screen of the flip part are located is determined, and the first direction data is mapped to the second direction data (second initial data). The system of the electronic device can display relevant content on the outer screen according to the second direction data.

[0062] It is understandable that when the first acquisition device directly used to determine the direction of the target object is set at a position corresponding to the non-target object, the direction data corresponding to the target object can be obtained by constructing a mapping relationship between the target object and the first acquisition device on the direction data for data conversion. Setting the first acquisition device separately from the target object can not only save the space to which the target object belongs, but also obtain the direction data of the first body and the second body through a first acquisition device, which can ensure the normal use of the electronic device.

[0063] As described above, the target mapping parameter represents the mapping relationship between the first coordinate system and the second coordinate system. The first acquisition device corresponds to the first coordinate system, and the target object corresponds to the second coordinate system.

[0064] Exemplarily, the target mapping parameter may be a mapping relationship between coordinate systems determined according to a relative position relationship between the first body and the second body.

[0065] The coordinate system to which the first initial data measured by the first acquisition device belongs is the first coordinate system. The coordinate system to which the second initial data corresponding to the target object belongs is the second coordinate system.

[0066] In one example, the first coordinate system may be a coordinate system of the flip part where the real geomagnetic sensor is located. The second coordinate system may be a coordinate system of the base part where the virtual geomagnetic sensor is located. The relationship between the first coordinate system and the second coordinate system may be determined by the angle between the first body and the second body.

[0067] In another example, the first coordinate system may be a coordinate system where the inner screen of the flip part is located. The second coordinate system may be a coordinate system where the outer screen of the flip part is located. The relationship between the first coordinate system and the second coordinate system may be determined by the angle between the first body and the second body and the placement direction.

[0068] Figure 2A One of the schematic diagrams of coordinate system mapping according to an embodiment of the present disclosure is schematically shown; Figure 2B A second schematic diagram schematically illustrates coordinate system mapping according to an embodiment of the present disclosure; Figure 2C A third schematic diagram of coordinate system mapping according to an embodiment of the present disclosure is schematically shown.

[0069] As described above, in one achievable manner, when the target object is set in the first body, the target mapping parameter represents the projection relationship between the coordinate axes of the first coordinate system and the coordinate axes of the second coordinate system of the direction data of the target object determined by the first initial data.

[0070] It should be noted that in the embodiments of the present disclosure, most embodiments are explained by taking the acquisition device as a geomagnetic sensor as an example. Other sensors for determining the direction are similar. The coordinate system may be slightly different according to the different sensors, but the principle is the same, and the examples are not explained one by one. In one example, the real geomagnetic sensor (first acquisition device) is arranged on the flip part (second body) of the folding screen mobile phone. The target object is a virtual geomagnetic sensor of the base part (second body) of the folding screen mobile phone. In the process of determining the direction of the folding screen mobile phone, the first magnetic data (first initial data) sensed by the real geomagnetic sensor is obtained. According to the angle between the base part and the flip part of the folding screen mobile phone (target relative position parameter), the projection relationship between the first coordinate system where the real geomagnetic sensor is located and the coordinate point of the second coordinate system where the virtual geomagnetic sensor is located is determined, and the first magnetic data is projected as the second magnetic data (second initial data). The system of the electronic device calculates and determines the direction of the folding screen mobile phone based on the second magnetic data.

[0071] The foldable screen mobile phone 100 includes a first body 102 (base part) and a second body 101 (flip part). The real geomagnetic sensor is set on the second body 101, but the direction of the foldable screen mobile phone is consistent with the direction of the first body 102. Therefore, a virtual geomagnetic sensor is constructed in the first body 102 of the foldable screen mobile phone, and the magnetic data of the virtual geomagnetic sensor can be directly used as the direction data for determining the first body 102. Figure 2A , when the angle between the first body 102 and the second body 101 is 180 degrees, the first coordinate system (XYZ) where the real geomagnetic sensor is located is consistent with the second coordinate system (X′Y′Z′) where the virtual geomagnetic sensor is located, then the first magnetic data measured by the real geomagnetic sensor in the first body 102 can be used as the second magnetic data of the virtual geomagnetic sensor. Figure 2B , when the angle between the first body 102 and the second body 101 is 90 degrees, the X direction in the first coordinate system where the real geomagnetic sensor is located is consistent with the X' direction in the second coordinate system where the virtual geomagnetic sensor is located, the Z direction in the first coordinate system where the real geomagnetic sensor is located is consistent with the Z' direction in the second coordinate system where the virtual geomagnetic sensor is located, and the Y direction in the first coordinate system where the real geomagnetic sensor is located is opposite to the Y' direction in the second coordinate system where the virtual geomagnetic sensor is located. Then, the component of the first magnetic data measured by the real geomagnetic sensor in the first body 102 in the Y direction can be reversed to obtain the second magnetic data of the virtual geomagnetic sensor. When the angle between the first body 102 and the second body 101 is 0 degrees, the X direction in the first coordinate system where the real geomagnetic sensor is located is consistent with the X' direction in the second coordinate system where the virtual geomagnetic sensor is located, the Z direction in the first coordinate system where the real geomagnetic sensor is located is opposite to the Z' direction in the second coordinate system where the virtual geomagnetic sensor is located, and the Y direction in the first coordinate system where the real geomagnetic sensor is located is opposite to the Y' direction in the second coordinate system where the virtual geomagnetic sensor is located. Then, the components of the first magnetic data measured by the real geomagnetic sensor in the first body 102 in the Y and Z directions may be reversed to obtain the second magnetic data of the virtual geomagnetic sensor.

[0072] Reference Figure 2C When the angle between the first body 102 and the second body 101 is between 0-90 degrees and 90-180 degrees, the second coordinate system (X′Y′Z′) is coincident with the origin of the first coordinate system (XYZ) according to the angle between the first body 102 and the second body 101, the first coordinate system (XYZ) where the first magnetic data measured by the real geomagnetic sensor is located is projected to the second coordinate system (X′Y′Z′) where the virtual geomagnetic sensor is located, and the second magnetic data in the second coordinate system is copied to the virtual geomagnetic sensor.

[0073] It can be understood that when the first acquisition device directly used to determine the direction of the target object is set at the position corresponding to the non-target object, data conversion can be performed by constructing a projection relationship between the target object and the coordinate system of the first acquisition device regarding the direction data, so as to obtain the direction data corresponding to the target object. Figure 3A One of the schematic diagrams of coordinate system mapping according to another embodiment of the present disclosure is schematically shown; Figure 3B A second schematic diagram of coordinate system mapping according to another embodiment of the present disclosure is schematically shown.

[0074] As described above, in another achievable manner, when the target object is disposed on the second body, the target mapping parameter represents the axis rotation relationship between the first coordinate system and the second coordinate system of the first initial data.

[0075] In one example, a real geomagnetic sensor (first acquisition device) is provided in the flip part (second body) of a folding screen mobile phone. The target object is the expected display screen, which can be the inner screen of the flip part (second body) or the outer screen of the flip part (second body). In the process of determining the direction of the expected display screen, the magnetic data sensed by the real geomagnetic sensor is obtained, and the first direction data (first initial data) of the inner screen of the flip part is calculated based on the magnetic data. According to the relative position relationship between the base part and the flip part of the folding screen mobile phone (target relative position parameter), the rotation relationship between the first coordinate system where the inner screen of the flip part is located and the coordinate axis of the second coordinate system where the outer screen is located is determined, and the first direction data is rotated into the second direction data (second initial data). The system of the electronic device can display relevant content on the outer screen according to the second direction data.

[0076] The folding screen mobile phone 100 includes a first body 102 (base part) and a second body 101 (flip part). The real geomagnetic sensor is arranged on the second body 101, and the direction of the inner screen of the second body 101 is consistent with the first direction data measured by the real geomagnetic sensor. The direction of the outer screen of the second body 101 and the direction of the inner screen of the second body 101 need to be converted into a coordinate system according to the relative position relationship between the first body 102 and the second body 101.

[0077] Reference Figure 3A When the first body 102 and the second body 101 are unfolded, the expected display screen is the inner screen of the second body 101, and the first coordinate system (XYZ) where the inner screen of the second body 101 is located is consistent with the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located. Then the first direction data of the inner screen of the second body 101 can be used as the second direction data.

[0078] Reference Figure 3B, when the first body 102 and the second body 101 are closed, the expected display screen is the outer screen of the second body 101, the first coordinate system (XYZ) where the inner screen of the second body 101 is located is different from the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located, the X direction in the first coordinate system where the inner screen of the second body 101 is located is consistent with the X′ direction in the second coordinate system where the outer screen of the second body 101 is located, the Z direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Z′ direction in the second coordinate system where the outer screen of the second body 101 is located, and the Y direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Y′ direction in the second coordinate system where the outer screen of the second body 101 is located. However, the second coordinate system (X′Y′Z′) can be obtained by flipping the first coordinate system (XYZ) 180 degrees around the X axis, and the second direction data of the outer screen of the second body 101 can be obtained.

[0079] It can be understood that when the first acquisition device directly used to determine the direction of the target object is set at the position corresponding to the non-target object, data conversion can be performed by constructing a rotation relationship between the target object and the first acquisition device regarding the coordinate system of the direction data to obtain the direction data corresponding to the target object.

[0080] As described above, the data processing method further includes: acquiring third initial data collected by the second collection device; the second collection device is arranged on the first body; and determining first direction data for the target object based on the second initial data and the third initial data.

[0081] Exemplarily, the second acquisition device may be an electronic device disposed in the second body of the electronic device for determining the direction of the electronic device, for example, an acceleration sensor, a gyroscope, a gravity sensor, or the like.

[0082] It should be noted that, in the case where there are multiple first acquisition devices, the second acquisition device may be partially identical to the first acquisition device. For example, in the case where the first acquisition device is an acceleration sensor, a gyroscope, or a geomagnetic sensor provided in the second body, the second acquisition device may be an acceleration sensor or a gyroscope provided in the first body. That is, a geomagnetic sensor is provided in the second body, and no geomagnetic sensor is provided in the first body.

[0083] The acceleration sensor and the gyroscope in the first body and the second body cooperate with each other to determine the relative position relationship between the first body and the second body.

[0084] For example, the first initial data may be raw data measured by an acceleration sensor, a gyroscope, or a geomagnetic sensor provided in the second body. The third initial data may be raw data measured by an acceleration sensor or a gyroscope provided in the first body.

[0085] In one example, when the first initial data is the original data sensed by the first acquisition device, when the angle between the first body and the second body is 180 degrees, the first coordinate system where the first magnetic data measured by the real geomagnetic sensor of the second body is located is consistent with the second coordinate system where the second magnetic data measured by the virtual geomagnetic sensor of the first body is located, then the first magnetic data can be used as the second magnetic data. According to the acceleration sensor and gyroscope in the first body and the second body, the angle between the first body and the second body is determined. According to the angle and the second magnetic data, the first direction data of the first body can be calculated.

[0086] In some embodiments, for the calibration of the real geomagnetic sensor in the second body, the acceleration sensor, gyroscope, and geomagnetic sensor in the second body can be used to complete the calibration. After calibration, it can be considered that the real geomagnetic sensor of the second body is accurate. The virtual geomagnetic sensor is a projected geomagnetic sensor. The calibration of the virtual geomagnetic sensor is actually the calibration of the real geomagnetic sensor in the second body. The virtual geomagnetic sensor data in the first body is calibrated data and does not involve the calibration link.

[0087] As described above, the target relative position parameter includes a first position sub-parameter and a second position sub-parameter; the first position sub-parameter is used to characterize the angle between the first body and the second body; the second position sub-parameter is used to characterize the angle between the first body and / or the second body and the gravity direction.

[0088] Exemplarily, the first position sub-parameter characterizes the angle between the first body and the second body. The angle here can be understood as the angle between the direction connecting the first body and the second body and a reference direction (such as a horizontal plane, the ground, etc.) in three-dimensional space. By measuring the angle between the first body and the second body, the geometric relationship between the two objects in relative directions can be accurately described. For example, the first position sub-parameter can be the angle between the first body and the second body in a folding mobile phone.

[0089] The second position sub-parameter characterizes the angle between the first body and / or the second body and the gravity direction. The gravity direction generally refers to the direction of the earth's gravity. The angle between the gravity directions can be used to describe the inclination of the body in space or the posture relative to gravity, thereby further inferring the spatial position relationship of the object.

[0090] In one example, it is possible to determine whether the expected display screen is the inner screen or the outer screen of the second body based on the angle between the first body and the second body, and the angles between the first body and the second body and the direction of gravity. For example, when the angle between the first body and the second body is 60 degrees, the angle between the first body and the direction of gravity is 120 degrees, and the angle between the second body and the direction of gravity is 90 degrees, the outer screen of the first body of the folding machine can be used as the expected display screen to display content.

[0091] As described above, if the target relative position parameter is the first relative position parameter, the target mapping parameter is the first mapping parameter; if the target relative position parameter is the second relative position parameter, the target mapping parameter is the second mapping parameter; the first mapping parameter is different from the second mapping parameter, and the first position sub-parameter and / or the second position sub-parameter of the first relative position parameter are different from those of the second relative position parameter.

[0092] Exemplarily, different relative position parameters correspond to different mapping parameters. That is, when the first body and the second body have the same angle, but the angle between the first body and the direction of gravity and / or the angle between the second body and the direction of gravity change, different relative position parameters can exist between the first body and the second body. When the first body and the second body have different angles, but the angle between the first body and the direction of gravity and / or the angle between the second body and the direction of gravity remain unchanged, different relative position parameters can also exist between the first body and the second body.

[0093] Different relative position parameters between the first body and the second body can be that the electronic device is in different application modes. In different application modes, the display of the inner screen and the outer screen of the flipping part is different.

[0094] For example, when the angle between the first body and the second body is 60 degrees, the angle between the first body and the direction of gravity is 120 degrees, and the angle between the second body and the direction of gravity is 90 degrees, the folding machine has the first relative position parameter. When the angle between the first body and the second body is 90 degrees, the angle between the first body and the direction of gravity is 120 degrees, and the angle between the second body and the direction of gravity is 90 degrees, the folding machine has the second relative position parameter.

[0095] As described above, the data processing method of this embodiment further includes: feeding back the first direction data to the target application through the first target interface, and the first target interface is the standard interface used by the target application to access the first direction data.

[0096] The target application can be an application program or system that receives and utilizes the first direction data. The target application can be a positioning system, a navigation system, a data analysis platform, etc.

[0097] The first target interface may be a standardized interface for transmitting the first direction data to the target application. The first target interface may be a hardware interface, a software interface, or a combination of the two. The target application obtains the first direction data from the first target interface according to a predetermined protocol.

[0098] Figure 3C A third schematic diagram schematically illustrates coordinate system mapping according to another embodiment of the present disclosure; Figure 3D A fourth schematic diagram of coordinate system mapping according to another embodiment of the present disclosure is schematically shown.

[0099] As described above, in operation S220, based on the target relative position parameter between the first body and the second body, the first initial data is mapped to the second initial data with the target mapping parameter matching the target relative position parameter. In one achievable manner, when the first initial data is the direction data of the second body, the operation may further include: determining a target mode based on the target relative position parameter, the target mode characterizing the usage scenario of the target display screen; and mapping the first direction data to the second direction data according to the target mapping parameter corresponding to the target mode, to obtain the display direction of the target display screen.

[0100] Exemplarily, different relative position parameters (first position sub-parameter and second position sub-parameter) between the first body and the second body may indicate that the electronic device is in different application modes.

[0101] For example, refer to Figure 3A , when the angle between the first body and the second body is 180 degrees, the angle between the first body and the direction of gravity is 0 degrees, and the angle between the second body and the direction of gravity is 0 degrees, the folding machine is in the first mode: the unfolding mode. Figure 3B When the angle between the first body and the second body is 0 degrees, the angle between the first body and the direction of gravity is 0 degrees, and the angle between the second body and the direction of gravity is 0 degrees, the folder is in the second mode: closed mode. Figure 3C When the angle between the first body and the second body is 60 degrees, the angle between the first body and the direction of gravity is 60 degrees, and the angle between the second body and the direction of gravity is -60 degrees, the folding machine is in the third mode: tent mode. Figure 3D When the angle between the first body and the second body is 60 degrees, the angle between the first body and the direction of gravity is 120 degrees, and the angle between the second body and the direction of gravity is 90 degrees, the folding machine is in the fourth mode: standing mode.

[0102] It should be noted that the embodiment of the present disclosure does not specifically limit the application modes corresponding to different relative position parameters between the first body and the second body, and can be set according to actual needs.

[0103] The display direction of the target display screen may be the inner screen or the outer screen on which the user expects the electronic device to display content.

[0104] Reference Figure 3A , when the angle between the first body and the second body is 180 degrees, the angle between the first body and the direction of gravity is 0 degrees, and the angle between the second body and the direction of gravity is 0 degrees, the folding machine is in the first mode: the unfolded mode, the expected display screen is the inner screen of the second body 101, and the first coordinate system (XYZ) where the inner screen of the second body 101 is located is the same as the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located.

[0105] Reference Figure 3B , when the angle between the first body and the second body is 0 degree, the angle between the first body and the direction of gravity is 0 degree, and the angle between the second body and the direction of gravity is 0 degree, the folding machine is in the second mode: closed mode, the expected display screen is the outer screen of the second body 101, the first coordinate system (XYZ) where the inner screen of the second body 101 is located is different from the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located, the X direction in the first coordinate system where the inner screen of the second body 101 is located is consistent with the X′ direction in the second coordinate system where the outer screen of the second body 101 is located, the Z direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Z′ direction in the second coordinate system where the outer screen of the second body 101 is located, and the Y direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Y′ direction in the second coordinate system where the outer screen of the second body 101 is located. However, the second coordinate system (X′Y′Z′) can be obtained by flipping the first coordinate system (XYZ) 180 degrees around the X-axis, and the second direction data of the outer screen of the second body 101 can be obtained.

[0106] Reference Figure 3C, when the angle between the first body 102 and the second body 101 is 60 degrees, the angle between the first body and the direction of gravity is 60 degrees, and the angle between the second body and the direction of gravity is -60 degrees, the folding machine is in the third mode: tent mode, the expected display screen is the outer screen of the second body 101, the first coordinate system (XYZ) where the inner screen of the second body 101 is located is different from the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located, the X direction in the first coordinate system where the inner screen of the second body 101 is located is consistent with the X′ direction in the second coordinate system where the outer screen of the second body 101 is located, the Z direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Z′ direction in the second coordinate system where the outer screen of the second body 101 is located, and the Y direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Y′ direction in the second coordinate system where the outer screen of the second body 101 is located. However, the second coordinate system (X′Y′Z′) can be obtained by flipping the first coordinate system (XYZ) 180 degrees around the X-axis, and the second direction data of the outer screen of the second body 101 can be obtained.

[0107] Reference Figure 3D , when the angle between the first body and the second body is 60 degrees, the angle between the first body and the direction of gravity is 120 degrees, and the angle between the second body and the direction of gravity is 90 degrees, the folding machine is in the fourth mode: standing mode, the expected display screen is the outer screen of the second body 101, the first coordinate system (XYZ) where the inner screen of the second body 101 is located is different from the second coordinate system (X′Y′Z′) where the expected display screen (the inner screen of the second body 101) is located, the X direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the X′ direction in the second coordinate system where the outer screen of the second body 101 is located, the Z direction in the first coordinate system where the inner screen of the second body 101 is located is opposite to the Z′ direction in the second coordinate system where the outer screen of the second body 101 is located, and the Y direction in the first coordinate system where the inner screen of the second body 101 is located is consistent with the Y′ direction in the second coordinate system where the outer screen of the second body 101 is located. However, the second coordinate system (X′Y′Z′) can be obtained by flipping the first coordinate system (XYZ) 180 degrees around the Y axis, and the second direction data of the outer screen of the second body 101 can be obtained.

[0108] It is understandable that when the electronic device is in different modes and needs to change the display direction of the electronic device display screen, the reported direction data is flipped accordingly, and the original data measured by the sensor corresponding to the direction data is not changed. This can determine the display direction of the display screen and retain the original data measured by the sensor.

[0109] As described above, the data processing method of this embodiment further includes: feeding back the second direction data to the target application via the second target interface, where the second target interface is a standard interface used by the target application to access the first direction data in the target mode.

[0110] Exemplarily, in the target mode, the target application obtains the second direction data through the second target interface. In the non-target mode, the target application obtains the third direction data through the first target interface. The third direction data represents the direction data of the base unit in the non-target mode.

[0111] It should be noted that in the target mode, when the target application wants to obtain the direction data, the second target interface feeds back the converted direction data to the target application. Therefore, what is actually obtained here is the first direction data, but what is fed back is the converted second direction data.

[0112] It is understandable that the interface for obtaining direction data is changed according to the different modes of the device. When the interface for obtaining direction data is changed in the target mode, it is not necessary to adjust the direction data in real time according to the angle between the first body and the second body. The direction data is converted according to the target mode without changing the original data measured by the original sensor, thereby reducing errors.

[0113] Figure 4 The structural diagram of an electronic device according to an embodiment of the present disclosure is schematically shown.

[0114] The present disclosure also discloses an electronic device. Figure 4 The electronic device 100 includes: a first body 102, a second body 101, a first acquisition device 103 and a processor 104.

[0115] The second body 101 is hinged to the first body 102 , and the first body 102 can rotate relative to the second body 101 to be in different relative positions.

[0116] The first acquisition device 103 is disposed on the second body 101 , and is used to measure the first initial data.

[0117] The processor 104 is arranged in the first body 102 or the second body 101, and is used for acquiring the first initial data acquired by the first acquisition device 103; in response to the instruction indicating to acquire the initial data for the target object, based on the target relative position parameter between the first body 102 and the second body 101, the first initial data is mapped into the second initial data with the target mapping parameter matching the target relative position parameter; and the second initial data is fed back; wherein, the target object is arranged in the first body 102 or the second body 101.

[0118] For the description of the electronic device 100, please refer to the above Figure 1 The description will not be repeated here.

[0119] The electronic device of the exemplary embodiment of the present disclosure may be a terminal including multiple folding screens, and the application scenario of determining the posture of the terminal folding screen when the screen is folded. In the exemplary embodiments described below, the terminal is sometimes also referred to as an intelligent terminal device, wherein the terminal may be a mobile terminal, or may be referred to as a user equipment (User Equipment, UE), a mobile station (Mobile Station, MS), etc. A terminal is a device that provides voice and / or data connection to a user, or a chip arranged in the device, for example, a handheld device with a wireless connection function, a vehicle-mounted device, etc. For example, examples of terminals may include: mobile phones, tablet computers, laptop computers, PDAs, mobile Internet devices (Mobile Internet Devices, MID), wearable devices, virtual reality (Virtual Reality, VR) devices, augmented reality (Augmented Reality, AR) devices, wireless terminals in industrial control, wireless terminals in unmanned driving, wireless terminals in remote surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, etc.

[0120] Based on the above data processing method, the present disclosure also provides a data processing device. Figure 5 The device is described in detail.

[0121] Figure 5 The structure block diagram of a data processing device according to an embodiment of the present disclosure is schematically shown.

[0122] like Figure 5 As shown, the data processing device 300 of this embodiment includes an acquisition module 310 , a mapping module 320 and a feedback module 330 .

[0123] The acquisition module 310 is used to acquire the first initial data acquired by the first acquisition device. In one embodiment, the acquisition module 310 can be used to perform the operation S210 described above, which will not be described in detail here.

[0124] The mapping module 320 is used to respond to the instruction to obtain the initial data for the target object, based on the target relative position parameter between the first body and the second body, map the first initial data to the second initial data with the target mapping parameter matching the target relative position parameter. In one embodiment, the mapping module 320 can be used to perform the operation S220 described above, which will not be repeated here.

[0125] The feedback module 330 is used to feed back the second initial data. In one embodiment, the feedback module 330 can be used to perform the operation S230 described above, which will not be described in detail here.

[0126] The target object is arranged on the first body, and the first acquisition device is arranged on the second body.

[0127] According to an embodiment of the present disclosure, any multiple modules of the acquisition module 310, the mapping module 320 and the feedback module 330 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 310, the mapping module 320 and the feedback module 330 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application-specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in any appropriate combination of any of them. Alternatively, at least one of the acquisition module 310, the mapping module 320 and the feedback module 330 can be at least partially implemented as a computer program module, and when the computer program module is run, the corresponding function can be executed.

[0128] Figure 6 A block diagram of an electronic device suitable for implementing a data processing method according to an embodiment of the present disclosure is schematically shown.

[0129] like Figure 6 As shown, the electronic device 400 according to an embodiment of the present disclosure includes a processor 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage part 408 to a random access memory (RAM) 403. The processor 401 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a dedicated microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 401 may also include an onboard memory for caching purposes. The processor 401 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0130] In RAM 403, various programs and data required for the operation of electronic device 400 are stored. Processor 401, ROM 402 and RAM 403 are connected to each other via bus 404. Processor 401 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 402 and / or RAM 403. It should be noted that the program can also be stored in one or more memories other than ROM 402 and RAM 403. Processor 401 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0131] According to an embodiment of the present disclosure, the electronic device 400 may further include an input / output (I / O) interface 405, which is also connected to the bus 404. The electronic device 400 may further include one or more of the following components connected to the input / output (I / O) interface 405: an input portion 406 including a keyboard, a mouse, etc.; an output portion 407 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 408 including a hard disk, etc.; and a communication portion 409 including a network interface card such as a LAN card, a modem, etc. The communication portion 409 performs communication processing via a network such as the Internet. A drive 410 is also connected to the input / output (I / O) interface 405 as needed. A removable medium 411, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage portion 408 as needed.

[0132] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0133] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 402 and / or RAM 403 described above and / or one or more memories other than ROM 402 and RAM 403.

[0134] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the data processing method provided by the embodiment of the present disclosure.

[0135] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 401. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0136] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 409, and / or installed from the removable medium 411. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0137] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 409, and / or installed from the removable medium 411. When the computer program is executed by the processor 401, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, apparatus, module, unit, etc. described above can be implemented by a computer program module.

[0138] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0139] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0140] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0141] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A data processing method, comprising: Acquire first initial data collected by a first collection device; In response to an instruction to obtain initial data for a target object, based on a target relative position parameter between a first body and a second body, the first initial data is mapped to second initial data with a target mapping parameter matching the target relative position parameter; feeding back the second initial data; Wherein, the target object is set on the first body, and the first acquisition device is set on the second body.

2. According to the method of claim 1, the target mapping parameter represents a mapping relationship between a first coordinate system and a second coordinate system, the first acquisition device corresponds to the first coordinate system, and the target object corresponds to the second coordinate system.

3. The method according to claim 1, wherein the target mapping parameter represents an axis rotation relationship between the first coordinate system and the second coordinate system of the direction data of the target object determined by the first initial data; or The target mapping parameter represents a projection relationship between the first initial data and the coordinate axes of the first coordinate system and the coordinate axes of the second coordinate system.

4. The method according to claim 1 or 3, further comprising: Acquiring third initial data collected by the second collection device; The second acquisition device is arranged on the first body; Based on the second initial data and the third initial data, first direction data for the target object is determined.

5. The method according to claim 1, wherein the target relative position parameter comprises a first position sub-parameter and a second position sub-parameter; The first position sub-parameter is used to characterize the angle between the first body and the second body; The second position sub-parameter is used to characterize the angle between the first body and / or the second body and the gravity direction.

6. The method according to claim 5, if the target relative position parameter is a first relative position parameter, the target mapping parameter is a first mapping parameter, and if the target relative position parameter is a second relative position parameter, the target mapping parameter is a second mapping parameter; The first mapping parameter is different from the second mapping parameter, and the first relative position parameter is different from the first position sub-parameter and / or the second position sub-parameter of the second relative position parameter.

7. The method according to claim 4, further comprising: The first direction data is fed back to a target application through a first target interface, where the first target interface is a standard interface used by the target application to access the first direction data.

8. The method according to claim 1 or 6, mapping the first initial data to the second initial data based on the target relative position parameter between the first body and the second body with the target mapping parameter matching the target relative position parameter, comprising: Based on the target relative position parameter, determining a target mode, wherein the target mode represents a usage scenario of the target display screen; According to the target mapping parameters corresponding to the target mode, the first direction data is mapped into second direction data to obtain the display direction of the target display screen.

9. The method according to claim 8, further comprising: The second direction data is fed back to the target application through a second target interface, where the second target interface is a standard interface used by the target application to access the first direction data in the target mode.

10. An electronic device comprising: the first ontology, A second body is hinged to the first body, and the first body can rotate relative to the second body to be in different relative positions; A first acquisition device, disposed on the second body, the first acquisition device being used to measure first initial data; A processor, disposed in the first body or the second body, and configured to obtain first initial data collected by the first collection device; In response to an instruction to obtain initial data for a target object, based on a target relative position parameter between a first body and a second body, the first initial data is mapped to second initial data with a target mapping parameter matching the target relative position parameter; The second initial data is fed back; wherein the target object is set on the first body, and the first acquisition device is set on the second body.