Processing method and electronic device
Patent Information
- Application Number
- CN202610910143.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-10-09
AI Technical Summary
[0003]相关技术中,通常都是根据设备的当前姿态来确定设备的工作模式,存在准确度较低、使用场景有限等问题
[0010] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure.
Smart Images

Figure CN122884367A_ABST
Abstract
Description
[0001] Case Analysis This disclosure is a divisional application of application number 202211732922.2, filed on December 30, 2022, entitled "Processing Method and Electronic Device". Technical Field
[0002] This disclosure relates to, but is not limited to, the field of electronic technology, and in particular to a processing method apparatus, electronic device, and storage medium. Background Technology
[0003] In related technologies, the working mode of a device is usually determined based on its current posture, which has problems such as low accuracy and limited application scenarios. Summary of the Invention
[0004] This disclosure provides at least one processing method and apparatus, electronic device, storage medium, and computer program product.
[0005] The technical solution of this disclosure embodiment is implemented as follows: This disclosure provides a processing method, the method comprising: Based on the first set of detection data obtained from the sensor set of the electronic device, the first target posture of the electronic device is determined; The operating mode of the electronic device is determined based at least on the first target posture and the second target posture; wherein the second target posture is determined by a second set of detection data obtained by the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0006] This disclosure provides a processing apparatus, the apparatus comprising: The first determining module is used to determine the first target posture of the electronic device based on the first set of detection data obtained by the sensor set of the electronic device; The second determining module is used to determine the operating mode of the electronic device based at least on the first target posture and the second target posture; wherein the second target posture is determined by a second set of detection data obtained by the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0007] This disclosure provides an electronic device, including: The first body is plate-shaped and has opposite first and second sides; The second body, in a plate-like form, has opposite third and fourth sides; A connecting device is connected to a first end of the first body and to a second end of the second body, such that the first body rotates relative to the second body in a first manner and a second manner; wherein the rotation reference in the first manner is parallel to the second end of the second body, and the rotation reference in the second manner is perpendicular to the second body. A sensor assembly is located in the first body and the second body; The processor is configured to determine a first target posture based on a first set of detection data obtained from the sensor set; and to determine an operating mode based on at least the first target posture and a second target posture; wherein the second target posture is determined by a second set of detection data obtained from the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0008] This disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described processing method.
[0009] This disclosure provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements the above-described processing method.
[0010] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0011] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the specification, serve to illustrate the technical solutions of this disclosure.
[0012] Figure 1 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure; Figure 2 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure; Figure 3 A schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure; Figure 4A A schematic diagram of the composition structure of an electronic device provided in an embodiment of this disclosure; Figure 4B A schematic diagram of the composition structure of an electronic device provided in an embodiment of this disclosure; Figure 5 This is a schematic diagram of the composition structure of a processing device provided in an embodiment of the present disclosure; Figure 6This is a schematic diagram of a hardware entity of an electronic device according to an embodiment of this disclosure. Detailed Implementation
[0013] To make the objectives, technical solutions, and advantages of this disclosure clearer, the disclosure will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this disclosure. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0014] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0015] In the following description, the terms “first, second, third” are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that “first, second, third” may be interchanged in a specific order or sequence where permitted, so that the embodiments of this disclosure described herein can be implemented in an order other than that illustrated or described herein.
[0016] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this disclosure belongs. The terminology used herein is for the purpose of describing embodiments of this disclosure only and is not intended to be limiting of this disclosure.
[0017] In related technologies, the operating mode of a device is generally determined by its current posture, which has problems such as low accuracy. In addition, for complex application scenarios such as multi-screen, open cover, and rotation, the operating mode of the device cannot be determined by the current posture alone, resulting in limited application scenarios.
[0018] This disclosure provides a processing method that determines the operating mode of an electronic device by using a first target posture and historical postures. On the one hand, this improves the accuracy of the operating mode determination, especially compared to determining the operating mode solely based on the current posture, thereby reducing the possibility of errors due to misjudgment and other factors, and ultimately improving the user experience. On the other hand, it can be applied to complex application scenarios such as multi-screen and rotation scenarios, thus broadening the application range of the electronic device. The processing method provided in this disclosure can be executed by an electronic device, which can be various types of terminals such as laptops, tablets, desktop computers, and mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices).
[0019] The technical solutions in the embodiments of this disclosure will now be clearly and completely described with reference to the accompanying drawings.
[0020] Figure 1 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 1 As shown, the method includes steps S11 to S12, wherein: Step S11: Determine the first target posture of the electronic device based on the first set of detection data obtained from the sensor set of the electronic device.
[0021] Here, the electronic device includes at least a sensor set. The sensor set can be any suitable set of sensors capable of collecting data. For example, the sensor set is used to collect data from at least one of the following sensors: indicating angle, opening / closing state, orientation, position, distance, etc. In implementation, those skilled in the art can independently set the sensor set according to actual needs, and the embodiments disclosed herein are not limited thereto.
[0022] The first target posture can be any suitable posture that can represent the form of the electronic device. In implementation, the first target posture may include, but is not limited to, the angle between the two bodies, the open / closed state, the orientation of the display device assembly, etc.
[0023] The first target pose can be calculated in real time or preset. In some embodiments, a correspondence between the target pose and the detection data set can be established in advance. Based on this correspondence, the first target pose corresponding to the first detection data set can be obtained, and this correspondence can be stored in an electronic device or another electronic device. When the correspondence is stored in an electronic device, the electronic device determines the first target pose matching the first detection data set in the correspondence based on the first detection data set. When the correspondence is stored in another electronic device, the electronic device sends the first detection data set to the other electronic device, so that the other electronic device determines the first target pose matching the first detection data set in the correspondence based on the first detection data set, and returns the corresponding first target pose to the electronic device. In implementation, those skilled in the art can set the correspondence between the detection data set and the target pose according to actual needs, and the embodiments disclosed herein are not limited thereto.
[0024] In some implementations, the correspondence can be set according to preset rules. These preset rules may include, but are not limited to, the electronic device's system configuration, user-defined parameters, user preferences, usage frequency, and user operation information. In implementation, those skilled in the art can independently set preset rules according to actual needs; this disclosure does not impose such limitations.
[0025] For example, a configuration option can be provided on the page, through which users can customize the mapping.
[0026] For example, the correspondence can be determined in real time based on the gestures used in the operation.
[0027] For example, different gestures correspond to different relationships. When the user inputs the gesture "O", the relationship can be: the first set of detection data corresponds to the first target pose, and the second set of detection data corresponds to the second target pose; when the user inputs the gesture "V", the relationship can be: the first set of detection data corresponds to the second target pose, and the second set of detection data corresponds to the first target pose.
[0028] For example, different operation step sizes correspond to different relationships. When the user's swipe distance is within a first length range, the relationship is: the first detection data set corresponds to the first target pose, and the second detection data set corresponds to the second target pose. When the user's swipe distance is within a second length range, the relationship is: the first detection data set corresponds to the second target pose, and the second detection data set corresponds to the first target pose. The first and second length ranges are not the same.
[0029] In implementation, those skilled in the art can independently set the correspondence between operation gestures and corresponding relationships according to actual needs, and the embodiments disclosed herein are not limited thereto.
[0030] In some implementations, the first target pose may be determined from a preset set of candidate poses, wherein the set of candidate poses includes at least one candidate pose. In practice, different candidate poses correspond to different sets of detection data. Those skilled in the art can set the number of candidate poses according to actual needs; this disclosure does not impose such a limitation.
[0031] Step S12: Determine the operating mode of the electronic device based at least on the first target posture and the second target posture; wherein the second target posture is determined by a second set of detection data obtained by the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0032] Here, the electronic device also includes at least a set of display devices and input devices. The set of display devices includes at least one display device, which can be any device capable of displaying information, such as an LED (Light-Emitting Diode) screen, an LCD (Liquid Crystal Display) screen, or an EINK (Electronic Ink) screen. LED screens include OLED (Organic Light-Emitting Diode) screens, AMOLED (Active-Matrix Organic Light-Emitting Diode) screens, Mini LED (sub-millimeter light-emitting diode) screens, and Micro LED (micron light-emitting diode) screens. The input device can be any device capable of inputting information, such as a keyboard, touchscreen, touchpad, mouse, or audio input device.
[0033] The operating modules of an electronic device may include, but are not limited to, the display state of a set of display devices and the operating state of input devices. The display state of a set of display devices may include, but is not limited to, display on, display off, and the display position of the target content. The operating state of input devices may include, but is not limited to, on, off.
[0034] In some implementations, the display state of the display device set and / or the operating state of the input device can be determined based on the first target posture and the second target posture.
[0035] In this embodiment, a first target posture of the electronic device is determined based on a first set of detection data obtained from a set of sensors of the electronic device; and an operating mode of the electronic device is determined based on at least the first target posture and a second target posture. The second target posture is determined using a second set of detection data obtained from the set of sensors, and the second set of detection data is obtained earlier than the first set of detection data. This method of determining the operating mode of the electronic device using both the current posture and historical postures improves the accuracy of the operating mode determination. Specifically, compared to determining the operating mode solely based on the current posture, it reduces the possibility of errors in the operating mode due to misjudgment or other factors, thereby improving the user experience. Furthermore, it can be applied to complex application scenarios such as multi-screen and rotation scenarios, thus broadening the scope of application for the electronic device.
[0036] In some implementations, steps S11 to S12 may be executed by the processor of the electronic device, or by the controller of the electronic device, or by both the controller and the processor of the electronic device.
[0037] For example, the controller of the electronic device obtains a first set of detection data obtained from a set of sensors; based on the first set of detection data, it determines a first target posture and sends the first target posture to the processor of the electronic device; The processor of the electronic device obtains a first target posture sent by the controller; based on the first target posture and a second target posture, the operating mode of the electronic device is determined; wherein, the second target posture is determined by the controller by obtaining a second set of detection data obtained by the sensor set.
[0038] Here, the controller can be any suitable chip with the function of processing sensor data. For example, a sensor hub, a signal processor, or an embedded controller. In implementation, those skilled in the art can choose the implementation method of the controller according to actual needs, and the embodiments disclosed herein are not limited thereto.
[0039] In some implementations, the controllers are independent of the processor, and they communicate with each other through a pre-defined interface. For example, the WMI (Windows Management Instrumentation) interface.
[0040] In some implementations, the processor may be a CPU (Central Processing Unit). In practice, the operating mode of the electronic device is determined by application software or an operating system running on the CPU.
[0041] In some implementations, "determining the operating mode of the electronic device" in step S12 includes step S121, wherein: Step S121: Determine the display status of the display device set of the electronic device.
[0042] Here, the set of display devices includes at least a first display device and a second display device. Both the first and second display devices can be any devices capable of performing display functions, and they can be the same or different. For example, the first display device may be an EINK screen, and the second display device may be an OLED screen. Alternatively, both the first and second display devices may be OLED screens.
[0043] The display state of the set of display devices may include, but is not limited to, at least one of the following: the display state of the first display device, the display state of the second display device, the target content being displayed on the first display device, the target content being displayed on the second display device, etc.
[0044] For example, the display state of the display device set can be: the first display device is off, the second display device is on, or the target content is switched from the first display device to the second display device.
[0045] For example, the display state of this set of display devices could be: keeping the second display device on, turning on the first display device, or displaying the target content on both the first and second display devices. In this case, the first display device serves as the main screen, and the second display device serves as an extended screen or secondary screen.
[0046] In this embodiment, the display state of the display device set of the electronic device is determined based on a first target posture and a second target posture. This improves the accuracy of the display state determination by using the current posture and historical postures, thereby reducing the possibility of display errors due to misjudgment or other factors, and ultimately enhancing the user experience. Furthermore, controlling the display state of the display device set reduces the power consumption of the display device set, thus improving the battery life of the electronic device.
[0047] In some implementations, the step S12 of "determining the operating mode of the electronic device based at least on the first target posture and the second target posture" includes steps S131 and / or S132, wherein: Step S131: When the first target posture and the second target posture satisfy the first relationship, maintain the display state of the display device set.
[0048] Here, the first relationship indicates that the first target posture is a specific candidate posture, and the second target posture is also a specific candidate posture. In implementation, the first target posture and the second target posture are different candidate postures determined from a set of candidate postures. The set of candidate postures includes at least one posture, such as a flat panel posture, a computer posture, or a rotation posture. Specifically, the flat panel posture indicates that the first and second bodies of the electronic device satisfy an overlap condition, where the overlap condition indicates complete or near-complete overlap. The computer posture indicates that the first and second bodies of the electronic device satisfy an angle condition based on a rotation reference of a first method, and the rotation reference of the first method and the second end of the second body satisfy a parallel condition, where the angle condition indicates an angle between them, which can be greater than 0 degrees and less than 360 degrees, and the parallel condition indicates complete or near-parallel parallelism. The rotation posture indicates that the first and second bodies satisfy an angle condition based on a rotation reference of a second method, and the rotation reference of the second method and the second body satisfy a perpendicular condition, where the perpendicular condition indicates complete or near-perpendicular perpendicularity.
[0049] In some embodiments, the electronic device further includes a first body and a second body connected by a connecting device. The first body has opposite first and second sides; a first display device is mounted on the first side, and a second display device is mounted on the second side. The second body has opposite third and fourth sides. In implementation, a first end of the first body is connected to the connecting device, and a second end of the second body is connected to the connecting device. The first body rotates relative to the second body in a first manner and a second manner. The rotation reference in the first manner is parallel to the second end of the second body, and the rotation reference in the second manner is perpendicular to the second body. The connecting device can be any device capable of connection, such as a hinge or a magnetic attraction device. In implementation, those skilled in the art can choose the implementation method of the connecting device according to time requirements; this disclosure does not limit this.
[0050] The first target posture and the second target posture may include, but are not limited to, one of the following: a first candidate posture, a second candidate posture, a third candidate posture, a fourth candidate posture, a fifth candidate posture, a sixth candidate posture, and a seventh candidate posture. Specifically, the first candidate posture indicates that the second body is located on one side of the second display device of the first body, and the first and second bodies satisfy a first included angle condition based on a rotation reference of the first method. The second candidate posture indicates that the second body is located on one side of the second display device of the first body, and the first and second bodies satisfy a second included angle condition based on a rotation reference of the first method, where the second included angle is greater than the first included angle. The third candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first and second bodies satisfy a second included angle condition based on a rotation reference of the first method. The fourth candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first and second bodies satisfy a first included angle condition based on a rotation reference of the first method. The fifth candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first and second bodies satisfy an overlap condition based on a rotation reference of the first method. The sixth candidate posture indicates that the second body is located on one side of the second display device of the first body, and the first and second bodies satisfy an overlap condition based on a rotation reference of the first method. The seventh candidate posture indicates that the first and second bodies satisfy an included angle condition based on a rotation reference of the second method.
[0051] In some implementations, the first included angle can be an angle within a first angle range, and the second included angle can be an angle within a second angle range. In practice, the first and second angle ranges can be obtained based on user-defined parameters, multiple trials, statistical analysis, etc. For example, the first angle range can be (0, 100°) and the second angle range can be (100°, 180°), i.e.: The first candidate posture characterizes the rotation reference of the first body and the second body based on the first method to satisfy the first included angle condition, wherein the first included angle is greater than 0° and not greater than 100°. The second candidate posture characterizes the rotation reference of the first body and the second body based on the first method to satisfy the second included angle condition, wherein the second included angle is greater than 100° and less than 180°.
[0052] For example, the first angle range could be (0, 110°) and the second angle range could be (110°, 180°). In some implementations, the first and second angle ranges are complementary. In practice, some anti-jitter processing can be added for boundary values (e.g., 110°) to avoid repeated switching between the two candidate poses.
[0053] Table 1 shows the classification results of candidate poses provided in the embodiments of this disclosure. As shown in Table 1, there are three types of poses: computer pose, tablet pose, and rotation pose. Computer poses are further divided into first type computer poses (PC1) and second type computer poses (PC2). PC1 includes pose 1 (corresponding to the aforementioned second candidate pose) and pose 2 (corresponding to the aforementioned second candidate pose), while PC2 includes pose 3 (corresponding to the aforementioned third candidate pose) and pose 4 (corresponding to the aforementioned fourth candidate pose). The tablet poses are further divided into the first type of tablet poses (Tablet1) and the second type of tablet poses (Tablet2). Tablet1 includes pose 5 (corresponding to the aforementioned fifth candidate pose), and Tablet2 includes pose 6 (corresponding to the aforementioned sixth candidate pose). The rotational attitude includes attitude 7 (corresponding to the aforementioned seventh candidate attitude).
[0054] Table 1. Results of candidate pose segmentation
[0055] In some implementations, users can set more or fewer candidate poses according to actual needs, and this disclosure does not limit this.
[0056] For example, the above 7 candidate poses can be further divided into 11 candidate poses, namely: the first candidate pose includes the first candidate sub-pose and the second candidate sub-pose, the third candidate pose includes the third candidate sub-pose and the fourth candidate sub-pose, and the seventh candidate pose includes the fifth candidate sub-pose, the sixth candidate sub-pose and the seventh candidate sub-pose.
[0057] The first candidate sub-attitude indicates that the rotation reference of the first and second bodies based on the first method satisfies the first sub-angle condition, and the second candidate sub-attitude indicates that the rotation reference of the first and second bodies based on the first method satisfies the second sub-angle condition, wherein the first sub-angle is smaller than the second sub-angle. In implementation, the first angle range can be divided into a first sub-angle range and a second sub-angle range, wherein the first sub-angle is within the first sub-angle range and the second sub-angle is within the second sub-angle range.
[0058] The third candidate sub-attitude characterization indicates that the rotation reference of the first body and the second body based on the first method satisfies the second sub-angle condition, and the fourth candidate sub-attitude characterization indicates that the rotation reference of the first body and the second body based on the first method satisfies the first sub-angle condition.
[0059] The fifth candidate sub-attitude characterizes the rotation reference of the first and second bodies based on the second method, which satisfies the third sub-angle condition. The sixth candidate sub-attitude characterizes the rotation reference of the first and second bodies based on the second method, which satisfies the fourth sub-angle condition. The seventh candidate sub-attitude characterizes the rotation reference of the first and second bodies based on the second method, which satisfies the fifth sub-angle condition. The third sub-angle is greater than the fifth sub-angle, and the fifth sub-angle is greater than the fourth sub-angle. In implementation, the third sub-angle can be an angle within a third angle range, the fourth sub-angle can be an angle within a fourth angle range, and the fifth sub-angle can be an angle within a fifth angle range. In some implementations, the third, fourth, and fifth angle ranges can be obtained based on user-defined methods, multiple trials, statistical methods, etc. For example, the third angle range can be (170°, 190°], the fourth angle range can be (-10°, 10°), and the fifth angle range can be [10°, 170°], that is: The fifth candidate sub-attitude characterization indicates that the rotation reference of the first and second bodies based on the second method satisfies the third sub-angle condition, wherein the third sub-angle is greater than 170° and less than 190°; The sixth candidate sub-pose characterization indicates that the rotation reference of the first body and the second body based on the second method satisfies the fourth sub-angle condition, wherein the fourth sub-angle is greater than -10° and less than 10°; The seventh candidate sub-attitude characterization indicates that the rotation reference of the first and second bodies based on the second method satisfies the fifth sub-angle condition, wherein the fifth sub-angle is not less than 10° and not greater than 170°.
[0060] Table 2 shows the segmentation results of a candidate pose provided by an embodiment of this disclosure. Table 2. Results of candidate pose segmentation
[0061] There are three types of poses: computer pose, tablet pose, and rotation pose. The computer pose is further divided into the first type of computer pose (PC1) and the second type of computer pose (PC2). PC1 includes pose 11 (corresponding to the aforementioned first candidate sub-pose), pose 11 (corresponding to the aforementioned second candidate sub-pose), and pose 2 (corresponding to the aforementioned second candidate pose). PC2 includes pose 3 (corresponding to the aforementioned third candidate pose), pose 41 (corresponding to the aforementioned third candidate sub-pose), and pose 42 (corresponding to the aforementioned fourth candidate sub-pose). The tablet poses are further divided into the first type of tablet poses (Tablet1) and the second type of tablet poses (Tablet2). Tablet1 includes pose 5 (corresponding to the aforementioned fifth candidate pose), and Tablet2 includes pose 6 (corresponding to the aforementioned sixth candidate pose). The rotational attitudes include attitude 71 (corresponding to the aforementioned fifth candidate sub-attitude), attitude 72 (corresponding to the aforementioned sixth candidate sub-attitude), and attitude 73 (corresponding to the aforementioned seventh candidate sub-attitude).
[0062] In some implementations, the phrase "the first target pose and the second target pose satisfy a first relationship" in step S131 includes at least one of steps S141 to S144, wherein: Step S141: The second target pose is the first candidate pose or the third candidate pose, and the first target pose is the sixth candidate pose or the seventh candidate pose; Step S142: The second target pose is the second candidate pose or the fourth candidate pose, and the first target pose is the fifth candidate pose or the seventh candidate pose; Step S143: The second target pose is the fifth candidate pose and the first target pose is the fourth candidate pose; Step S144: The second target pose is the sixth candidate pose and the first target pose is the first candidate pose.
[0063] In some implementations, the phrase "the first target pose and the second target pose satisfy a first relationship" in step S131 includes at least one of steps S151 to S155, wherein: Step S151: The first target pose is the first candidate pose, and the second target pose is the sixth candidate pose; Step S152: The first target pose is the fourth candidate pose, and the second target pose is the fifth candidate pose; Step S153: The first target pose is the fifth candidate pose, and the second target pose is the second candidate pose or the fourth candidate pose; Step S154: The first target pose is the sixth candidate pose, and the second target pose is either the first candidate pose or the third candidate pose; Step S155: The first target pose is the seventh candidate pose, and the second target pose is the first candidate pose, the second candidate pose, the third candidate pose, or the fourth candidate pose.
[0064] Step S132: When the first target posture and the second target posture satisfy the second relationship, switch the display state of the display device set.
[0065] Here, the second relationship represents that the first target posture is a specific candidate posture, and the second target posture is also a specific candidate posture. Switching the display state of the set of display devices may include, but is not limited to, switching the display state of the first display device, switching the display state of the second display device, and switching the display of target content between the first display device and the second display device, at least one of the following:
[0066] In some implementations, the phrase "the first target pose and the second target pose satisfy a second relationship" in step S132 includes at least one of steps S161 to S165, wherein: Step S161: The second target pose is the first candidate pose, and the first target pose is the second candidate pose; Step S162: The second target pose is the second candidate pose, and the first target pose is the first candidate pose; Step S163: The second target pose is the third candidate pose, and the first target pose is the fourth candidate pose; Step S164: The second target pose is the fourth candidate pose, and the first target pose is the third candidate pose; Step S165: The second target pose is the seventh candidate pose, and the first target pose is the first candidate pose, the second candidate pose, the third candidate pose, or the fourth candidate pose.
[0067] Table 3 shows a schematic result of determining the display state of a set of display devices according to an embodiment of this disclosure. As shown in Table 3, in which: Table 3. Schematic results of determining the display status of the display device set.
[0068] "N / A" indicates that it does not exist; "Keep" indicates that the display state of the display device set is maintained (i.e., the first target posture and the second target posture satisfy the first relationship); "Switch" indicates that the display state of the display device set is switched (i.e., the first target posture and the second target posture satisfy the second relationship). If the historical posture (corresponding to the aforementioned second target posture) is posture 1 (corresponding to the aforementioned first candidate posture), and the current posture is posture 2 (corresponding to the aforementioned second candidate posture), then the display state of the display device set is switched; if the current posture (corresponding to the aforementioned first target posture) is posture 6 (corresponding to the aforementioned sixth candidate posture) or posture 7 (corresponding to the aforementioned seventh candidate posture), then the display state of the display device set is maintained. If the historical posture is posture 2, and the current posture is posture 1, then the display state of the display device set is switched; if the current posture is posture 5 (corresponding to the aforementioned fifth candidate posture) or posture 7, then the display state of the display device set is maintained. If the historical posture is posture 3 (corresponding to the aforementioned third candidate posture), and the current posture is posture 4 (corresponding to the aforementioned fourth candidate posture), then the display state of the display device set is switched; if the current posture is posture 6 or posture 7, then the display state of the display device set is maintained. If the historical posture is posture 4, and the current posture is posture 3, then the display state of the display device set is switched; if the current posture is posture 5 or posture 7, then the display state of the display device set is maintained. If the historical posture is posture 5, and the current posture is posture 4, then the display state of the display device set is maintained. If the historical posture is posture 6, and the current posture is posture 1, then the display state of the display device set is maintained. If the historical posture is posture 7, and the current posture is posture 1, posture 2, posture 3, or posture 4, then the display state of the display device set is switched.
[0069] In some implementations, the phrase "the first target pose and the second target pose satisfy a second relationship" in step S132 includes at least one of steps S171 to S174, wherein: Step S171: The first target pose is the first candidate pose, and the second target pose is the second candidate pose or the seventh candidate pose; Step S172: The first target pose is the second candidate pose, and the second target pose is either the first candidate pose or the seventh candidate pose; Step S173: The first target pose is the third candidate pose, and the second target pose is the fourth candidate pose or the seventh candidate pose; Step S174: The first target pose is the fourth candidate pose, and the second target pose is the third candidate pose or the seventh candidate pose.
[0070] In this embodiment, the display state of the display device set is maintained when the first target posture and the second target posture satisfy a first relationship; and / or, the display state of the display device set is switched when the first target posture and the second target posture satisfy a second relationship. Thus, by setting the first and second relationships, the accuracy of the display state of the display device set can be improved, thereby reducing the possibility of display errors due to misjudgment or other factors, and ultimately improving the user experience.
[0071] In some implementations, step S12, "determining the operating mode of the electronic device based at least on the first target posture and the second target posture," further includes step S181, wherein: Step S181: Determine the working state of the input device of the electronic device based on the first target posture.
[0072] Here, the operating state of the input device may include, but is not limited to, being on or off. For example, turning on the input device or turning off the input device.
[0073] In this embodiment, the operating state of the input device is determined based on a first target posture. By determining the operating state of the input device using the current posture, the accuracy of the input device's operating state can be improved, thereby reducing the possibility of input errors due to misjudgment or other factors, and ultimately enhancing the user experience.
[0074] In some embodiments, step S181 includes step S1811 and / or step S1812, wherein: Step S1811: If the first target posture satisfies the third relationship, maintain the working state of the input device.
[0075] Here, the third relation indicates that the first target posture is a specific candidate posture. This third relation indicates that the first target posture may be, but is not limited to, one of the first candidate posture, second candidate posture, third candidate posture, fourth candidate posture, or seventh candidate posture. In implementation, since the first to fourth candidate postures are all computer postures and the seventh candidate posture is a rotation posture, the user can touch input devices such as keyboards and touchpads, thus enabling the keyboard, touchpad, and other input devices to be activated.
[0076] Step S1812: If the first target posture does not satisfy the third relationship, switch the working state of the input device.
[0077] Here, if the first target posture is the fifth or sixth candidate posture, the input device is turned off. In practice, since both the fifth and sixth candidate postures are tablet postures, the user cannot touch input devices such as keyboards and touchpads. Therefore, input devices such as keyboards and touchpads can be turned off.
[0078] In this embodiment, the input device maintains its operating state when the first target posture satisfies the third relationship; and / or switches its operating state when the first target posture does not satisfy the third relationship. By setting the third relationship, the accuracy of the input device's operating state can be improved, thereby reducing the possibility of input errors due to misjudgment or other factors, and ultimately improving the user experience.
[0079] In some implementations, step S12, "determining the operating mode of the electronic device based at least on the first target posture and the second target posture," further includes step S191, wherein: Step S191: Determine the display state of the display device set of the electronic device based at least on the first target posture and the second target posture, and determine the working state of the input device of the electronic device based on the first target posture.
[0080] In this embodiment, the display state of the display device set is determined by a first target posture and a second target posture, and the operating state of the input device is determined by the first target posture. Thus, by determining the display state of the display device set using historical and current postures, and by using the current posture to determine the operating state of the input device, the accuracy of the state of each device can be improved through different methods, thereby enhancing the user experience.
[0081] Figure 2 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 2 As shown, the method includes steps S21 to S22, wherein: Step S21: Determine the first target posture of the electronic device based on the first set of detection data obtained from the sensor set of the electronic device.
[0082] Here, step S21 corresponds to step S11 mentioned above. In implementation, the specific implementation method of step S11 mentioned above can be referred to.
[0083] Step S22: Determine the operating mode of the electronic device based on the first target posture, the second target posture, and the selection instruction of the display device set of the electronic device; wherein, the second target posture is determined by the second detection data set obtained by the sensor set, and the acquisition time of the second detection data set is earlier than the acquisition time of the first detection data set.
[0084] Here, the operating modules of the electronic device may include, but are not limited to, the display state of the display device set and the operating state of the input device set. The display state of the display device set may include, but is not limited to, display on, display off, and the display position of the target content. The operating state of the input device may include, but is not limited to, on, off.
[0085] The display device set includes a first display device and a second display device. The selection instruction can be generated in any suitable manner. For example, a selection instruction generated by pressing a physical button. Another example is a selection instruction generated by a gesture input on the user interface. Yet another example is a selection instruction received from other electronic devices. In implementation, those skilled in the art can determine the generation method of the selection instruction according to actual needs; this disclosure does not limit such methods.
[0086] The selection command is used to select either the first display device or the second display device.
[0087] In some implementations, different target postures can correspond to the same or different display devices. For example, both the first target posture and the second target posture can correspond to either the first display device or the second display device. Another example is that the first target posture corresponds to the first display device, and the second target posture corresponds to the second display device. Yet another example is that the first target posture corresponds to the second display device, and the second target posture corresponds to the second display device.
[0088] In some implementations, the selection command is generally used after the second target posture and before the first target posture. In practice, the selection command may change the display device selected corresponding to the second target posture. For example, if the second target posture corresponds to the selection of the first display device, and the selection command is used to select the second display device, then if the first target posture corresponds to the selection of the first display device, the electronic device can operate in a mode that switches the display state of the display device set, i.e., turning off the second display device, turning on the first display device, and switching the target content from the second display device to the first display device. If the first target posture corresponds to the selection of the second display device, then the electronic device can operate in a mode that maintains the display state of the display device set, i.e., maintaining the display of the second display device.
[0089] In this embodiment, a first target posture of the electronic device is determined based on a first set of detection data obtained from the sensor set of the electronic device; the operating mode of the electronic device is determined based on the first target posture, a second target posture, and a selection instruction from the display device set of the electronic device; wherein the second target posture is determined by a second set of detection data obtained from the sensor set, and the second set of detection data is obtained earlier than the first set of detection data. Thus, determining the operating mode of the electronic device using the current posture, historical postures, and selection instructions improves the accuracy of the operating mode, especially compared to determining the operating mode solely based on the current posture, thereby reducing the possibility of errors in the operating mode due to misjudgment or other factors, and thus improving the user experience; furthermore, it can be applied to complex application scenarios such as multi-screen and rotation, thereby broadening the scope of application of the electronic device.
[0090] In some implementations, step S22, "determining the operating mode of the electronic device based on the selection instructions of the first target posture, the second target posture, and the display device set of the electronic device," includes step S221, wherein: Step S221: Determine the display state of the display device set based on the first target posture, the second target posture, and the selection instruction of the display device set.
[0091] Here, the display state of the display device set may include, but is not limited to, display on, display off, and the display position of the target content.
[0092] In some embodiments, step S221 includes steps S231 to S233, wherein: Step S231: Determine the first display state of the display device set based on the first target posture and the second target posture.
[0093] Here, the first display state may include, but is not limited to, turning the display on, turning the display off, and the display position of the target content.
[0094] Step S232: Determine the second display state of the display device set according to the selection instruction of the display device set.
[0095] Here, the first display state may include, but is not limited to, turning the display on, turning the display off, and the display position of the target content. In implementation, the second display state of the display device set may be turning on the first display device, turning on the second display device, etc.
[0096] Step S233: Determine the display state of the display device set based on the first display state and the second display state.
[0097] Here, the display state of the display device set can be either a first display state or a second display state.
[0098] In some embodiments, step S233 includes step S241 and / or step S242, wherein: Step S241: When the first display state and the second display state are the same, the second display state is determined as the display state of the display device set.
[0099] Here, if the first display state and the second display state are the same, the current display state, i.e., the second display state, can be maintained.
[0100] Step S242: If the first display state and the second display state are different, determine the first display state as the display state of the display device set.
[0101] Here, if the first display state and the second display state are different, it is necessary to switch the display state, that is, switch from the second display state to the first display state.
[0102] In this embodiment, the display state of the display device set is determined based on the first target posture, the second target posture, and the selection instruction of the display device set. This improves the accuracy of the display state determination by using the current posture, historical posture, and selection instruction, thereby reducing the possibility of display errors due to misjudgment and improving the user experience. Furthermore, controlling the display state of the display device set reduces its power consumption, thus improving the battery life of the electronic device.
[0103] Figure 3 This is a schematic diagram illustrating the implementation flow of a processing method provided in an embodiment of this disclosure, as shown below. Figure 3 As shown, the method includes steps S31 to S32, wherein: Step S31: Determine the first target posture of the electronic device based on the first set of detection data obtained from the sensor set of the electronic device.
[0104] Here, step S31 corresponds to step S11 mentioned above. When implementing it, you can refer to the specific implementation method of step S11 mentioned above.
[0105] Step S32: Determine the operating mode of the electronic device based on the first target posture, the second target posture, and the third target posture; wherein, the second target posture is determined by a second set of detection data obtained by the sensor set, and the acquisition time of the second set of detection data is earlier than the acquisition time of the first set of detection data; the third target posture is determined by a third set of detection data obtained by the sensor set, and the acquisition time of the third set of detection data is earlier than the acquisition time of the second set of detection data.
[0106] Here, the third target pose is the pose preceding the second target pose. During implementation, the third target pose may be one of the following: the first candidate pose, the second candidate pose, the third candidate pose, the fourth candidate pose, the fifth candidate pose, the sixth candidate pose, the seventh candidate pose, etc.
[0107] In some implementations, the pose of the third target may be the same as or different from that of the first target.
[0108] In some implementations, within a time threshold before the switching time, if a third target posture exists, it is determined whether the third target posture is the same as the first target posture. If they are the same, it indicates that repeated switching between the two postures may be occurring, and the display state of the display device set is maintained at the display state corresponding to the third target posture. If they are different, the display state of the display device set needs to be switched, that is, the display state of the display device set is switched from the display state corresponding to the second target posture to the display state corresponding to the first target posture. If no third target posture exists, the display state of the display device set needs to be switched from the display state corresponding to the second target posture to the display state corresponding to the first target posture. The time threshold can be set according to preset rules. These preset rules may include, but are not limited to, the system configuration of the electronic device, user-defined rules, user preferences, usage frequency, and user operation information. In implementation, those skilled in the art can independently set preset rules according to actual needs, and this disclosure does not impose such limitations.
[0109] In some implementations, it can be first determined whether a third target posture exists before the second target posture. If a third target posture exists, it is determined whether the time interval between the acquisition time of the third target posture and the acquisition time of the first target posture is within a time threshold. If it is within the time threshold, it is then determined whether the third target posture is the same as the first target posture. If they are the same, the display state of the display device set is maintained. If they are different, the display state of the display device set is switched. If it is not within the time threshold, the display state of the display device set is switched from the display state corresponding to the second target posture to the display state corresponding to the first target posture. If there is no third target posture, the display state of the display device set is switched from the display state corresponding to the second target posture to the display state corresponding to the first target posture.
[0110] In some implementations, step S32, "determining the operating mode of the electronic device based on the first target posture, the second target posture, and the third target posture," includes steps S321 and / or S322, wherein: Step S321: If the third target posture exists within a time threshold before the first switching time, and the first target posture and the third target posture are the same, maintain the display state of the display device set of the electronic device.
[0111] Here, the first switching time represents the time required to switch from the second target posture to the first target posture. The time threshold can be a pre-set threshold, such as 1 second or 3 seconds. If a third target posture exists within the time threshold before switching to the first target posture, and the third target posture is the same as the first target posture, then the display state of the display device set can remain as the display state corresponding to the third target posture.
[0112] Step S322: If the third target posture exists within a time threshold before the first switching time, and the first target posture and the third target posture are different, switch the display state of the display device set.
[0113] Here, if a third target posture exists within the time threshold before switching to the first target posture, and the third target posture is different from the first target posture, then the display state of the display device set needs to switch from the display state corresponding to the third target posture to the display state corresponding to the second target posture, and then switch from the display state corresponding to the second target posture to the display state corresponding to the first target posture.
[0114] In this embodiment, a first target posture of the electronic device is determined based on a first set of detection data obtained from a set of sensors. The operating mode of the electronic device is then determined based on the first target posture, a second target posture, and a third target posture. The second target posture is determined using a second set of detection data obtained from the sensor set, and the second set of detection data was obtained earlier than the first set of detection data. Similarly, the third target posture is determined using a third set of detection data obtained from the sensor set, and the third set of detection data was obtained earlier than the second set of detection data. This method of determining the operating mode of the electronic device using both the current posture and multiple historical postures improves the accuracy of the operating mode determination. Compared to determining the operating mode solely based on the current posture, it reduces the possibility of errors due to misjudgment, thereby improving the user experience. Furthermore, it can be applied to complex application scenarios such as multi-screen displays, rotation, and repeated opening and closing, thus broadening the scope of application for the electronic device.
[0115] Figure 4A This is a schematic diagram of the composition structure of an electronic device 40 provided in an embodiment of the present disclosure, as shown below. Figure 4A As shown, the electronic device 40 includes: The first body 41 is plate-shaped and has opposite first and second sides; The second body 42 is plate-shaped and has opposite third and fourth sides; The connecting device 43 is connected to the first end 411 of the first body 41 and to the second end 421 of the second body 42, so that the first body 41 rotates relative to the second body 42 in a first mode and a second mode; wherein the rotation reference of the first mode satisfies the parallel condition with the second end 421 of the second body 42, and the rotation reference of the second mode satisfies the perpendicular condition with the second body 41. Sensor assembly 44 is located in the first body 41 and the second body 42; The processor 45 is configured to determine a first target posture based on a first set of detection data obtained from the sensor set; and to determine an operating mode based on at least the first target posture and a second target posture; wherein the second target posture is determined by a second set of detection data obtained from the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0116] In this embodiment of the disclosure, the working mode of the electronic device is determined by the current posture and the historical posture. On the one hand, the accuracy of the working mode can be improved, thereby reducing the possibility of working mode errors caused by misjudgment and other factors, and thus improving the user experience. On the other hand, it can be applied to application scenarios with high complexity such as multi-screen and rotation, thereby broadening the scope of use of the electronic device.
[0117] In some embodiments, the electronic device further includes a set of display devices located on the first body; the processor 45 is further configured to: determine the display state of the set of display devices.
[0118] Here, the display device set includes at least one display device, which can be any device capable of displaying functions, such as OLED, LCD, or EINK. The display state of the display device set can include, but is not limited to, display on, display off, and the display position of the target content. In this way, on the one hand, determining the display state of the display device set by using both the current and historical states, especially compared to determining the operating mode solely by the current state, can improve the accuracy of the display state, thereby reducing the possibility of display errors due to misjudgments and other factors, and thus improving the user experience; on the other hand, controlling the display state of the display device set can reduce the power consumption of the display device set, thereby improving the battery life of the electronic device.
[0119] In some embodiments, the set of display devices includes a first display device located on a first side of the first body and a second display device located on a second side of the first body; the processor 45 is further configured to: determine the display state of the first display device, determine the display state of the second display device, determine that target content is displayed on the first display device, and / or determine that target content is displayed on the second display device.
[0120] Here, both the first display device and the second display device can be any device capable of displaying a screen, and they can be the same or different. For example, the first display device can be an EINK screen, and the second display device can be an OLED screen. Or, for another example, both the first and second display devices can be OLED screens.
[0121] In some embodiments, the first display device and the second display device may be the same or different. For example, both the first display device and the second display device may be LCD or OLED. Another example is that the first display device is LCD and the second display device is OLED. Yet another example is that the first display device is OLED and the second display device is LCD.
[0122] In some implementations, the first display device may be a display device with low power consumption and eye protection features. For example, the first display device may be an EINK, and the second display device may be an LCD or an OLED.
[0123] In some embodiments, the first display device may also be a display device with functions such as low power consumption, eye protection, and consideration for viewing experience. For example, the first display device may be a color EINK display, an LCD display, or an OLED display.
[0124] In some embodiments, the first display device and the second display device have different display principles, and the power consumption of the second display device is lower than that of the first display device; wherein, the first display device includes a first display unit set and is used to display an image, and the first display unit set can display at least three colors; the second display device includes a light-emitting unit and a second display unit set.
[0125] Here, the first display unit set includes: a plurality of first display units, or a group of a plurality of first display units. Each first display unit includes at least three types of charged particles, and the different charged particles have different color attributes. In implementation, the distribution of the at least three types of charged particles in the first display unit is controlled by applying a voltage to the first display unit, so that the first display unit set displays at least three colors.
[0126] Alternatively, the first display unit group includes at least three third display units and a filter film covering the third display units. Each third display unit comprises two different colored charged particles, and the filter films covering different third display units in the first display unit group have different colors. In implementation, by applying a voltage to each third display unit in the first display unit group, the distribution of the two types of charged particles in each third display unit can be controlled, thereby changing the color of the light mixed by the filter films on at least three third display units in the first display unit group after being illuminated by external light from the electronic device.
[0127] In some embodiments, the sensor set includes: a first subset of sensors for acquiring an angle between the first body and the second body based on a rotation reference of the first method; a second subset of sensors for acquiring an indication of whether the rotation reference between the first body and the second body based on the first method overlaps; and a third subset of sensors for acquiring an indication of the attitude between the first body and the second body based on a rotation reference of the second method.
[0128] Here, the first subset of sensors can be any sensor capable of acquiring and indicating the angle between two points. For example, a gravity sensor, an angle sensor, etc. In implementation, those skilled in the art can choose the first subset of sensors according to actual needs; this disclosure does not limit this selection.
[0129] The second subset of sensors can be any sensor capable of detecting whether there is overlap between the two sensors. Examples include Hall effect sensors and switch sensors. In implementation, those skilled in the art can choose the second subset of sensors according to actual needs; this disclosure does not impose any limitations.
[0130] The third sensor subset can be any sensor capable of acquiring and indicating the attitude between the two. Examples include Hall effect sensors and image sensors. In implementation, those skilled in the art can choose the second sensor subset according to actual needs; this disclosure does not limit this selection.
[0131] In some embodiments, the first subset of sensors includes at least one of the following: a gravity sensor, an angle sensor, an acceleration sensor, and a distance sensor; the second subset of sensors includes at least one of the following: a Hall sensor, a touch sensor, and a switch sensor; and the third subset of sensors includes at least one of the following: a Hall sensor, an ultrasonic sensor, and an image sensor.
[0132] In some embodiments, the first sensor subset includes a first sub-sensor located on the first body and a second sub-sensor located on the second body, wherein the first and second sub-sensors can obtain detection data based on spatial attitude; the second sensor subset includes a third and a fourth sub-sensor located on both sides of a third end of the first body, and a first triggering component located at a fourth end of the second body, wherein the third end of the first body is the opposite end to the first end, and the fourth end of the second body is the opposite end to the second end, and the third and fourth sub-sensors can obtain detection data based on the first triggering component; the third sensor subset includes a second triggering component located on a first end of the first body, and a fifth and a sixth sub-sensor located on both sides of a second end of the second body, wherein the fifth and sixth sub-sensors can obtain detection data based on the second triggering component.
[0133] Figure 4B This is a schematic diagram of the composition structure of an electronic device provided in an embodiment of the present disclosure, such as... Figure 4BAs shown, the electronic device includes: a first body 41, a second body 42, a connecting device 43, a processor 45 located in the second body 42, a first gravity sensor 441 (corresponding to the aforementioned first sub-sensor) located in the first body 41, a second gravity sensor 442 (corresponding to the aforementioned second sub-sensor) located in the second body 42, a first Hall sensor 443 (corresponding to the aforementioned third sub-sensor) and a second Hall sensor 444 (corresponding to the aforementioned fourth sub-sensor) located on both sides of the third end 412 of the first body 41, a first magnetic attraction component 445 (corresponding to the aforementioned first trigger component) located at the fourth end 422 of the second body 42, a second magnetic attraction component 446 (corresponding to the aforementioned second trigger component) located at the first end 411 of the first body 41, and a third Hall sensor 447 (corresponding to the aforementioned fifth sub-sensor) and a fourth Hall sensor 448 (corresponding to the aforementioned sixth sub-sensor) located on both sides of the second end 421 of the second body 42, wherein: The first body 41 has an EINK screen (corresponding to the aforementioned first display device) on its first side and an OLED screen (corresponding to the aforementioned second display device) on its second side. The first gravity sensor 441 and the second gravity sensor 442 can obtain detection data based on spatial attitude; The first Hall sensor 443 and the second Hall sensor 444 can obtain detection data based on the first magnetic attraction component 445; The third Hall sensor 447 and the fourth Hall sensor 448 can obtain detection data based on the second magnetic component 446.
[0134] In some embodiments, the electronic device further includes a controller; the controller is configured to obtain the first detection data set detected by the sensor set; determine the first target posture based on the first detection data set, and send the first target posture to the processor; the processor 45 is further configured to: obtain the first target posture sent from the controller; determine the operating mode of the electronic device based on the first target posture and the second target posture; wherein the second target posture is determined by the controller obtaining the second detection data set detected by the sensor set.
[0135] In some embodiments, the processor 45 is further configured to: maintain the display state of the display device set when the first target pose and the second target pose satisfy a first relationship; and / or switch the display state of the display device set when the first target pose and the second target pose satisfy a second relationship.
[0136] In some embodiments, the first target pose and the second target pose include one of the following: a first candidate pose, a second candidate pose, a third candidate pose, a fourth candidate pose, a fifth candidate pose, a sixth candidate pose, and a seventh candidate pose; wherein, the first candidate pose indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy a first included angle condition based on the rotation reference of the first method; the second candidate pose indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy a second included angle condition based on the rotation reference of the first method, the second included angle being greater than the first included angle; the third candidate pose indicates that the second body is on one side of the first display device of the first body, the first... The first body and the second body satisfy the second included angle condition based on the rotation reference of the first method; the fourth candidate posture indicates that the second body is on one side of the first display device of the first body, and the first body and the second body satisfy the first included angle condition based on the rotation reference of the first method; the fifth candidate posture indicates that the second body is on one side of the first display device of the first body, and the first body and the second body satisfy the overlap condition based on the rotation reference of the first method; the sixth candidate posture indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy the overlap condition based on the rotation reference of the first method; the seventh candidate posture indicates that the first body and the second body satisfy the included angle condition based on the rotation reference of the second method.
[0137] Table 4 shows the classification results of candidate poses provided in the embodiments of this disclosure. As shown in Table 4, there are three types of poses: computer pose, tablet pose, and rotation pose. Computer poses are further divided into first type computer poses (PC1) and second type computer poses (PC2). PC1 includes pose 1 (corresponding to the aforementioned second candidate pose) and pose 2 (corresponding to the aforementioned second candidate pose), while PC2 includes pose 3 (corresponding to the aforementioned third candidate pose) and pose 4 (corresponding to the aforementioned fourth candidate pose). The tablet poses are further divided into the first type of tablet poses (Tablet1) and the second type of tablet poses (Tablet2). Tablet1 includes pose 5 (corresponding to the aforementioned fifth candidate pose), and Tablet2 includes pose 6 (corresponding to the aforementioned sixth candidate pose). The rotational attitude includes attitude 7 (corresponding to the aforementioned seventh candidate attitude).
[0138] Table 4. Candidate pose segmentation results
[0139] In some implementations, the first target pose and the second target pose satisfy a first relationship, including at least one of the following: the second target pose is the first candidate pose or the third candidate pose, and the first target pose is the sixth candidate pose or the seventh candidate pose; the second target pose is the second candidate pose or the fourth candidate pose, and the first target pose is the fifth candidate pose or the seventh candidate pose; the second target pose is the fifth candidate pose and the first target pose is the fourth candidate pose; the second target pose is the sixth candidate pose and the first target pose is the first candidate pose.
[0140] In some implementations, the first target pose and the second target pose satisfy a second relationship, including at least one of the following: the second target pose is the first candidate pose and the first target pose is the second candidate pose; the second target pose is the second candidate pose and the first target pose is the first candidate pose; the second target pose is the third candidate pose and the first target pose is the fourth candidate pose; the second target pose is the fourth candidate pose and the first target pose is the third candidate pose; the second target pose is the seventh candidate pose and the first target pose is the first candidate pose, the second candidate pose, the third candidate pose, or the fourth candidate pose.
[0141] In some embodiments, the processor 45 is further configured to: determine the operating mode of the electronic device based on the first target posture, the second target posture, and the selection instructions of the display device set.
[0142] In some embodiments, the processor 45 is further configured to: determine the display state of the display device set based on the first target posture, the second target posture, and the selection instruction of the display device set.
[0143] In some embodiments, the processor 45 is further configured to: determine a first display state of the display device set based on the first target posture and the second target posture; determine a second display state of the display device set based on a selection instruction for the display device set; and determine the display state of the display device set based on the first display state and the second display state.
[0144] In some embodiments, the processor 45 is further configured to: determine the second display state as the display state of the display device set when the first display state and the second display state are the same; or determine the first display state as the display state of the display device set when the first display state and the second display state are different.
[0145] In some embodiments, the processor 45 is further configured to: determine the operating mode of the electronic device based on the first target posture, the second target posture, and the third target posture; wherein the third target posture is determined by a third set of detection data obtained by the sensor set, and the acquisition time of the third set of detection data is earlier than the acquisition time of the second set of detection data.
[0146] In some embodiments, the processor 45 is further configured to: maintain the display state of the display device set of the electronic device when the third target posture exists within a time threshold before the first switching time and the first target posture and the third target posture are the same; switch the display state of the display device set when the third target posture exists within a time threshold before the first switching time and the first target posture and the third target posture are different.
[0147] In some embodiments, the electronic device further includes an input device located on a third side of the second body; the processor is further configured to: determine the operating state of the input device based on the first target posture.
[0148] In some embodiments, the processor 45 is further configured to: maintain the operating state of the input device when the first target posture satisfies the third relationship; and switch the operating state of the input device when the first target posture does not satisfy the third relationship.
[0149] The descriptions of the above electronic device embodiments are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the electronic device embodiments of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.
[0150] Based on the above embodiments, this disclosure provides a processing apparatus. Figure 5 A processing apparatus provided in the embodiments of this disclosure, such as Figure 5 As shown, the device 50 includes a first determining module 51 and a second determining module 52, wherein: The first determining module 51 is used to determine the first target posture of the electronic device based on the first detection data set obtained by the sensor set of the electronic device; The second determining module 52 is used to determine the operating mode of the electronic device based at least on the first target posture and the second target posture; wherein the second target posture is determined by a second set of detection data obtained by the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
[0151] In some embodiments, the second determining module 52 is further configured to: determine the display state of the display device set of the electronic device.
[0152] In some embodiments, the second determining module 52 is further configured to: determine the display state of a first display device in the set of display devices; determine the display state of a second display device in the set of display devices; determine that target content is displayed on the first display device; or determine that target content is displayed on the second display device.
[0153] In some embodiments, the second determining module 52 is further configured to: maintain the display state of the display device set when the first target posture and the second target posture satisfy a first relationship; and switch the display state of the display device set when the first target posture and the second target posture satisfy a second relationship.
[0154] In some embodiments, the electronic device includes a first body and a second body connected by a connecting device. The first body has opposite first and second sides, with a first display device on the first side and a second display device on the second side. The second body has opposite third and fourth sides. A first end of the first body is connected to the connecting device, and a second end of the second body is connected to the connecting device. The first body rotates relative to the second body in a first manner and a second manner. The rotation reference of the first manner satisfies a parallel condition with the second end of the second body, and the rotation reference of the second manner satisfies a perpendicular condition with the second body. The first target posture and the second target posture include one of the following: a first candidate posture, a second candidate posture, a third candidate posture, a fourth candidate posture, a fifth candidate posture, a sixth candidate posture, and a seventh candidate posture. The first candidate posture indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy a first included angle condition based on the rotation reference of the first manner. The second candidate posture indicates... The second body is located on one side of the second display device of the first body, and the first body and the second body satisfy a second included angle condition based on a rotation reference of a first method, wherein the second included angle is greater than the first included angle; the third candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first body and the second body satisfy the second included angle condition based on a rotation reference of the first method; the fourth candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first body and the second body satisfy the first included angle condition based on a rotation reference of a first method; the fifth candidate posture indicates that the second body is located on one side of the first display device of the first body, and the first body and the second body satisfy an overlap condition based on a rotation reference of a first method; the sixth candidate posture indicates that the second body is located on one side of the second display device of the first body, and the first body and the second body satisfy the overlap condition based on a rotation reference of a first method; the seventh candidate posture indicates that the first body and the second body satisfy an included angle condition based on a rotation reference of a second method.
[0155] In some implementations, the first target pose and the second target pose satisfy a first relationship, including at least one of the following: the second target pose is the first candidate pose or the third candidate pose, and the first target pose is the sixth candidate pose or the seventh candidate pose; the second target pose is the second candidate pose or the fourth candidate pose, and the first target pose is the fifth candidate pose or the seventh candidate pose; the second target pose is the fifth candidate pose and the first target pose is the fourth candidate pose; the second target pose is the sixth candidate pose and the first target pose is the first candidate pose.
[0156] In some implementations, the first target pose and the second target pose satisfy a second relationship, including at least one of the following: the second target pose is the first candidate pose and the first target pose is the second candidate pose; the second target pose is the second candidate pose and the first target pose is the first candidate pose; the second target pose is the third candidate pose and the first target pose is the fourth candidate pose; the second target pose is the fourth candidate pose and the first target pose is the third candidate pose; the second target pose is the seventh candidate pose and the first target pose is the first candidate pose, the second candidate pose, the third candidate pose, or the fourth candidate pose.
[0157] In some embodiments, the second determining module 52 is further configured to: determine the operating mode of the electronic device based on the first target posture, the second target posture, and the selection instruction of the display device set.
[0158] In some embodiments, the second determining module 52 is further configured to: determine the display state of the display device set based on the first target posture, the second target posture, and the selection instruction of the display device set.
[0159] In some embodiments, the second determining module 52 is further configured to: determine a first display state of the display device set based on the first target posture and the second target posture; determine a second display state of the display device set based on the selection instruction of the display device set; and determine the display state of the display device set based on the first display state and the second display state.
[0160] In some embodiments, the second determining module 52 is further configured to: determine the second display state as the display state of the display device set when the first display state and the second display state are the same; or determine the first display state as the display state of the display device set when the first display state and the second display state are different.
[0161] In some embodiments, the second determining module 52 is further configured to: determine the operating mode of the electronic device based on the first target posture, the second target posture, and the third target posture; wherein the third target posture is determined by a third set of detection data obtained by the sensor set, and the acquisition time of the third set of detection data is earlier than the acquisition time of the second set of detection data.
[0162] In some embodiments, the second determining module 52 is further configured to: maintain the display state of the display device set of the electronic device when the third target posture exists within a time threshold before the first switching time and the first target posture and the third target posture are the same; switch the display state of the display device set when the third target posture exists within a time threshold before the first switching time and the first target posture and the third target posture are different.
[0163] In some embodiments, the second determining module 52 is further configured to: determine the operating state of the input device of the electronic device based on the first target posture.
[0164] In some embodiments, the second determining module 52 is further configured to: maintain the working state of the input device when the first target posture satisfies the third relationship; or switch the working state of the input device when the first target posture does not satisfy the third relationship.
[0165] The description of the above apparatus embodiments is similar to that of the above method embodiments, and has similar beneficial effects. For technical details not disclosed in the apparatus embodiments of this disclosure, please refer to the description of the method embodiments of this disclosure for understanding.
[0166] It should be noted that, in the embodiments of this disclosure, if the above methods are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this disclosure, or the parts that contribute to related technologies, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this disclosure are not limited to any specific hardware and software combination.
[0167] This disclosure provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the above-described method.
[0168] This disclosure provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method. The computer-readable storage medium can be transient or non-transient.
[0169] This disclosure provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program. When the computer program is read and executed by a computer, it implements some or all of the steps in the above-described method. This computer program product can be implemented specifically through hardware, software, or a combination thereof. In one optional embodiment, the computer program product is specifically embodied as a computer storage medium; in another optional embodiment, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0170] It should be noted that, Figure 6 This is a schematic diagram of a hardware entity of an electronic device in an embodiment of this disclosure, such as... Figure 6 As shown, the hardware entity of the electronic device 600 includes: a processor 601, a communication interface 602, and a memory 603, wherein: The processor 601 typically controls the overall operation of the electronic device 600.
[0171] Communication interface 602 enables electronic devices to communicate with other terminals or servers via a network.
[0172] The memory 603 is configured to store instructions and applications executable by the processor 601, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data, and video communication data) in the processor 601 and various modules in the electronic device 600. It can be implemented using flash memory or random access memory (RAM). Data transfer between the processor 601, the communication interface 602, and the memory 603 can be performed via bus 604.
[0173] It should be noted that the descriptions of the storage medium and device embodiments above are similar to those of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.
[0174] It should be understood that the phrase "an embodiment" or "one embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this disclosure. Therefore, "in one embodiment" or "one embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this disclosure, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this disclosure. The sequence numbers of the above-described embodiments are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0175] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0176] In the several embodiments provided in this disclosure, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components may be combined, or integrated into another system, or some features may be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0177] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0178] In addition, each functional unit in the embodiments of this disclosure can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0179] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0180] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this disclosure, in essence or the part that contributes to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an electronic device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this disclosure. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, magnetic disks, or optical disks.
[0181] The above description is merely an embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A processing method, the method comprising: Based on the first set of detection data obtained from the sensor set of the electronic device, the first target posture of the electronic device is determined; The operating mode of the electronic device is determined based at least on the first target posture and the second target posture; wherein the second target posture is determined by a second set of detection data obtained by the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
2. The method according to claim 1, wherein determining the operating mode of the electronic device includes: Determine the display status of the set of display devices of the electronic device; The determination of the display state of the set of display devices of the electronic device includes at least one of the following: Determine the display state of the first display device in the set of display devices; Determine the display state of the second display device in the set of display devices; The target content is determined to be displayed on the first display device; The target content is determined to be displayed on the second display device.
3. The method according to claim 2, wherein determining the operating mode of the electronic device based at least on the first target posture and the second target posture includes at least one of the following: When the first target posture and the second target posture satisfy the first relationship, the display state of the display device set is maintained; When the first target posture and the second target posture satisfy the second relationship, the display state of the display device set is switched.
4. The method according to claim 3, wherein the electronic device comprises a first body and a second body connected by a connecting device, the first body having opposite first and second sides, the first side having a first display device, the second side having a second display device, the second body having opposite third and fourth sides, a first end of the first body being connected to the connecting device, a second end of the second body being connected to the connecting device, the first body rotating relative to the second body in a first manner and a second manner, the rotation reference of the first manner being parallel to the second end of the second body, and the rotation reference of the second manner being perpendicular to the second body; The first target pose and the second target pose include one of the following: a first candidate pose, a second candidate pose, a third candidate pose, a fourth candidate pose, a fifth candidate pose, a sixth candidate pose, and a seventh candidate pose; wherein, The first candidate posture indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy the first included angle condition based on the rotation reference of the first method; The second candidate posture indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy the second included angle condition based on the rotation reference of the first method, wherein the second included angle is greater than the first included angle; The third candidate posture indicates that the second body is on one side of the first display device of the first body, and the first body and the second body satisfy the second included angle condition based on the rotation reference of the first method; The fourth candidate posture indicates that the second body is on one side of the first display device of the first body, and the first body and the second body satisfy the first included angle condition based on the rotation reference of the first method. The fifth candidate posture indicates that the second body is on one side of the first display device of the first body, and the first body and the second body satisfy the overlap condition based on the rotation reference of the first method; The sixth candidate posture indicates that the second body is on one side of the second display device of the first body, and the first body and the second body satisfy the overlap condition based on the rotation reference of the first method; The seventh candidate posture indicates that the first body and the second body satisfy the included angle condition based on the rotation reference of the second method.
5. The method according to claim 4, wherein the first target pose and the second target pose satisfy a first relationship, including at least one of the following: The second target pose is either the first candidate pose or the third candidate pose, and the first target pose is either the sixth candidate pose or the seventh candidate pose; The second target pose is the second candidate pose or the fourth candidate pose, and the first target pose is the fifth candidate pose or the seventh candidate pose; The second target pose is the fifth candidate pose and the first target pose is the fourth candidate pose; The second target pose is the sixth candidate pose and the first target pose is the first candidate pose.
6. The method according to claim 4, wherein the first target pose and the second target pose satisfy a second relationship, including at least one of the following: The second target pose is the first candidate pose, and the first target pose is the second candidate pose; The second target pose is the second candidate pose, and the first target pose is the first candidate pose; The second target pose is the third candidate pose, and the first target pose is the fourth candidate pose; The second target pose is the fourth candidate pose, and the first target pose is the third candidate pose; The second target pose is the seventh candidate pose, and the first target pose is the first candidate pose, the second candidate pose, the third candidate pose, or the fourth candidate pose.
7. The method according to any one of claims 2 to 6, wherein determining the operating mode of the electronic device based at least on the first target posture and the second target posture comprises: The display state of the display device set is determined based on the first target posture, the second target posture, and the selection instruction of the display device set.
8. The method according to claim 7, wherein determining the display state of the display device set based on the first target posture, the second target posture, and the selection instruction of the display device set comprises: Based on the first target posture and the second target posture, determine the first display state of the display device set; Based on the selection instruction of the display device set, determine the second display state of the display device set; The display state of the set of display devices is determined based on the first display state and the second display state.
9. The method according to claim 8, wherein determining the display state of the display device set based on the first display state and the second display state comprises: When the first display state and the second display state are the same, the second display state is determined as the display state of the display device set; If the first display state and the second display state are different, the first display state is determined as the display state of the set of display devices.
10. The method according to any one of claims 1 to 9, wherein determining the operating mode of the electronic device based at least on the first target posture and the second target posture comprises: The operating mode of the electronic device is determined based on the first target posture, the second target posture, and the third target posture; wherein the third target posture is determined by a third set of detection data obtained by the sensor set, and the acquisition time of the third set of detection data is earlier than the acquisition time of the second set of detection data.
11. The method according to claim 10, wherein determining the operating mode of the electronic device based on the first target posture, the second target posture, and the third target posture comprises: If the third target posture exists within a time threshold before the first switching time, and the first target posture and the third target posture are the same, the display state of the display device set of the electronic device is maintained; If the third target posture exists within a time threshold before the first switching time, and the first target posture and the third target posture are different, the display state of the display device set is switched.
12. The method according to any one of claims 1 to 11, wherein determining the operating mode of the electronic device based at least on the first target posture and the second target posture further comprises: Based on the first target posture, the operating state of the input device of the electronic device is determined.
13. The method according to claim 12, wherein determining the operating state of the input device of the electronic device based on the first target posture comprises: If the first target posture satisfies the third relationship, the working state of the input device is maintained; wherein, the third relationship indicates that the first target posture is a first candidate posture, a second candidate posture, a third candidate posture, a fourth candidate posture, or a seventh candidate posture; If the first target posture does not satisfy the third relationship, the working state of the input device is switched.
14. An electronic device, comprising: The first body is plate-shaped and has opposite first and second sides; The second body, in a plate-like form, has opposite third and fourth sides; A connecting device is connected to a first end of the first body and to a second end of the second body, such that the first body rotates relative to the second body in a first manner and a second manner; wherein the rotation reference in the first manner satisfies a parallel condition with the second end of the second body, and the rotation reference in the second manner satisfies a perpendicular condition with the second body. A sensor assembly is located in the first body and the second body; The processor is configured to determine a first target posture based on a first set of detection data obtained from the sensor set; and to determine an operating mode based on at least the first target posture and a second target posture; wherein the second target posture is determined by a second set of detection data obtained from the sensor set, and the second set of detection data is obtained earlier than the first set of detection data.
15. The device of claim 14, wherein the electronic device further comprises a set of display devices located on the first body; The processor is further configured to: determine the display state of the set of display devices; in, The set of display devices includes a first display device located on a first side of the first body and a second display device located on a second side of the first body; The processor is further configured to: determine the display state of the first display device, determine the display state of the second display device, determine that target content is displayed on the first display device, and / or determine that target content is displayed on the second display device.
16. The device according to claim 15, wherein the display principles of the first display device and the second display device are different, and the power consumption of the second display device is lower than that of the first display device; wherein, The first display device includes a first display unit set and is used to display an image, wherein the first display unit set can display at least three colors; the second display device includes a light-emitting unit and a second display unit set.
17. The device according to any one of claims 14 to 16, wherein the sensor set includes a first subset of sensors, a second subset of sensors, and a third subset of sensors; The first sensor subset includes a first sub-sensor located on the first body and a second sub-sensor located on the second body, wherein, The first and second sub-sensors can obtain detection data based on spatial orientation. The second sensor subset includes a third sub-sensor and a fourth sub-sensor located on both sides of the third end of the first body, and a first trigger component located at the fourth end of the second body. The third end of the first body is the two ends opposite to the first end, and the fourth end of the second body is the two ends opposite to the second end. The third sub-sensor and the fourth sub-sensor can obtain detection data based on the first trigger component. The third sensor subset includes a second trigger component located at the first end of the first body, and a fifth sub-sensor and a sixth sub-sensor located on both sides of the second end of the second body, wherein the fifth sub-sensor and the sixth sub-sensor can obtain detection data based on the second trigger component.