Terminal Device
20180238684 ยท 2018-08-23
Assignee
Inventors
- Quancheng Han (Shenzhen, CN)
- Wei Wang (Beijing, CN)
- Baicai Wang (Beijing, CN)
- Zhengping Tan (Beijing, CN)
Cpc classification
H01R35/04
ELECTRICITY
H04N23/54
ELECTRICITY
H01R13/6205
ELECTRICITY
G01B21/22
PHYSICS
International classification
G01B21/22
PHYSICS
H01R13/62
ELECTRICITY
H01R35/04
ELECTRICITY
Abstract
A terminal device having a rotatable image capture component, including a magnetic body and a sensor. A change in the magnetic flux caused by rotation of the magnetic body is identified by the sensor, and used to identify whether the image capture component is in a front-facing state or a rear-facing state. The magnetic body is mounted in a connector of the image capture component or at an end of the connector. The sensor is mounted on a circuit board using a bottom surface perpendicular to a Z-axis of the sensor. When the image capture component is at a front-facing position and a rear-facing position, an angle between a connection line, which connects a south pole and a north pole of the magnetic body, and a radial line of an image capture unit included in the image capture component is less than a preset value in a rotation direction.
Claims
1-14. (canceled)
15. A terminal device, comprising: a device housing; a circuit board disposed in the device housing; an image capture component comprising an image capture circuit configured to capture image data, wherein an end of the image capture component has a connector, wherein the connector is pivotally coupled to the device housing, and wherein the image capture component is rotatable between a rear-facing position and a front-facing position relative to the device housing using the connector; a magnetic body disposed in the connector or at an end of the connector, wherein the magnetic body comprises a south pole and a north pole; a sensor mounted on the circuit board and disposed proximate to the magnetic body and is configured to: sense magnetic flux generated when the magnetic body is rotated; and output a preset signal based on the magnetic flux; and a processor electrically coupled to the image capture component and the sensor and configured to determine, according to the preset signal output by the sensor, whether the image capture component is in a rear-facing state or a front-facing state, wherein the sensor is mounted on the circuit board using a bottom surface perpendicular to a Z-axis of the sensor, wherein the magnetic body is on an extended plane of a plane on which the sensor is located, and wherein an angle between a coupling line, which couples the south pole and the north pole of the magnetic body and a radial line of the image capture circuit is less than a preset value in a rotation direction when the image, capture component is at the front-facing position and the rear-facing position.
16. The terminal device according to claim 15, wherein the sensor is further configured to set a first threshold and a second threshold, and wherein when outputting the preset signal, the sensor is further configured to output the preset signal based on a relationship between the magnetic flux generated by the magnetic body and the first threshold and the second threshold.
17. The terminal device according to claim 16, wherein the sensor comprises a first output terminal and a second output terminal, wherein the first output terminal of the sensor is configured to output a first level when the magnetic flux generated by the magnetic body is greater than or equal to the first threshold, and wherein the second output terminal of the sensor is configured to output a second level when the magnetic flux generated by the magnetic body is less than or equal to the second threshold.
18. The terminal device according to claim 17, wherein the processor is further configured to determine that the image capture component is in the front-facing state when identifying the first level output by the first output terminal of the sensor.
19. The terminal device according to claim 17, wherein the processor is further configured to determine that the image capture component is in the rear-facing state when identifying the second level output by the second output terminal of the sensor.
20. The terminal device according to claim 15, wherein when the image capture component is in the front-facing state, the processor is further configured to provide an image-rotating instruction.
21. The terminal device according to claim 16, wherein the sensor comprises a bipolar Hall sensor.
22. The terminal device according to claim 15, wherein the sensor is mounted on the circuit board using a pad.
23. A camera state switching method, applied to a terminal device having a camera, comprising: sensing, using a sensor, magnetic flux generated when a magnetic body is rotated, wherein the terminal device further comprises a device housing, an image capture component, the magnetic body, and the sensor, wherein the image capture component comprises an image capture circuit configured to capture image data, wherein an end of the image capture component has a connector pivotally coupled. to the device housing, wherein. the image capture component is rotatable between a rear-facing position and a front-facing position relative to the device housing using the connector, wherein the magnetic body is disposed in the connector or at an end of the connector; outputting, using the sensor, a preset signal based on the magnetic flux; and determining, according to the preset signal output by the sensor, whether the image capture component is in a rear-facing state or a front-facing state.
24. The method according to claim 23, further comprising setting, using the sensor, a first threshold and a second threshold, and wherein when outputting the preset signal, the method further comprises outputting the preset signal based on a relationship between the magnetic flux generated by the magnetic body and the first threshold and the second threshold.
25. The method according to claim 24, wherein the sensor comprises a first output terminal and a second output terminal, and wherein when outputting the preset signal, the method further comprises: outputting, by the first output terminal of the sensor, a first level when the magnetic flux generated by the magnetic body is greater than or equal to the first threshold; and outputting, by the second output terminal of the sensor, a second level when the magnetic flux generated by the magnetic body is less than or equal to the second threshold.
26. The method according to claim. 25, wherein. when determining whether the image capture component is in the rear-facing state or the front-facing state, the method further comprises determining that the image capture component is in the front-facing state when the first output terminal of the sensor outputs the first level.
27. The method according to claim 25, wherein when determining whether the image capture component is in the rear-facing state or the front-facing state, the method further comprises determining that the image capture component is in the rear-lacing state when the second output terminal of the sensor outputs the second level.
28. The method according to claim 23, further comprising providing an image-rotating instruction when the image capture component is in the front-facing state.
29. A computer program product comprising a non-transitory computer readable storage medium storing one or more programs which when executed by a terminal device having a camera, cause a method that comprises: sensing, using a sensor, magnetic flux generated when a magnetic body is rotated, wherein the terminal device further comprises a device housing, an image capture component, the magnetic body, and the sensor, wherein the image capture component comprises an image capture circuit configured to capture image data, wherein an end of the image capture component has a connector pivotally coupled to the device housing, wherein the image capture component is rotatable between a rear-facing position and a front-facing position relative to the device housing using the connector, wherein the magnetic body is disposed in the connector or at an end of the connector; outputting, using the sensor, a preset signal based on the magnetic flux; and determining, according to the preset signal output by the sensor, whether the image capture component is in a rear-facing, state or a front-facing state.
30. The computer program product according to claim 29, further comprising setting, using the sensor, a first threshold and a second threshold, and wherein when. outputting the preset signal, the method further comprises outputting the preset signal based on a relationship between the magnetic flux generated by the magnetic body and the first threshold and the second threshold.
31. The computer program product according to claim 30, wherein the sensor comprises a first output terminal and a second output terminal, and wherein when outputting the preset signal, the method further comprises: outputting, by the first output terminal of the sensor, a first level when the magnetic flux generated by the magnetic body is greater than or equal to the first threshold; and outputting, by the second output terminal of the sensor, a second level when the magnetic flux generated by the magnetic body is less than or equal to the second threshold.
32. The computer program product according to claim 31, wherein when determining whether the image capture component is in the rear-facing state or the front-facing state, the method further comprises determining that the image capture component is in the front-facing state when the first output terminal of the sensor outputs the first level.
33. The computer program product according to claim 31, wherein when determining whether the image capture component is in the rear-facing state or the front-facing state, the method further comprises determining that the image capture component is in the rear-facing state when the second output terminal of the sensor outputs the second level.
34. The computer program product according to claim 29. further comprising providing an image rotating instruction when the image capture component is in the front-facing state.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0018] To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show some embodiments of the present disclosure, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
DESCRIPTION OF EMBODIMENTS
[0027] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.
Embodiment 1
[0028] This embodiment of the present disclosure relates to a terminal device having a rotatable image capture component. The terminal device may be a mobile phone, a tablet computer, a personal digital assistant (PDA), or the like. The mobile phone is used as an example for the description below in this embodiment of the present disclosure. However, it should be noted that this does not constitute any limitation to this embodiment of the present disclosure.
[0029] As shown in
[0030] The mobile phone housing 101, where the circuit board 102 is disposed in the mobile phone housing 101.
[0031] The image capture component 103 includes an image capture unit 1031 configured to capture image data, such as a camera. Referring to
[0032] Referring to
[0033] The control unit 106 is preferably a microprocessor, and is a control center of the entire mobile phone 100. The control unit 106 is electrically connected to the image capture component 103 and the sensor 105. According to a specified rule, when the magnetic flux detected by the sensor 105 satisfies a condition, the sensor 105 outputs a preset signal, for example, a high level or a low level, to a control unit 106. In this way, the control unit 106 may determine the position state of the image capture component 103 according to the received signal. Further, when the image capture component 103 is in a front-facing state, the control unit 106 may output an image-rotating instruction, for example, sending the instruction to an image processing unit. In this way, an image seen by a user is an upright image.
[0034] A person skilled in the art may understand that the mobile phone 100 may further include a display screen 107 on a front surface, and another component such as a battery not shown in
[0035] For ease of understanding, the front-facing position, rear-facing position, front-facing state, and rear-facing state of the image capture component are described below.
[0036] In this embodiment of the present disclosure, a position of the image capture component 103 in
[0037] The front-facing state and the rear-facing state are sets of multiple positions. According to a setting, when the image capture component 103 is rotated to any position within a range of a preset rotation angle away from the front-facing position, it is referred to as that the image capture component 103 is in the front-facing state. Correspondingly, when the image capture component 103 is rotated to any position within a range of a preset rotation angle away from the rear-facing position, it is referred to as that the image capture component 103 is in the rear-facing state. This is based on the following consideration. When photographing, a user captures an image not only using the front-facing position and the rear-facing position, but also by rotating the image capture component 103 by a particular angle. In this case, the mobile phone 100 still needs to determine a position of the image capture component 103. For example, although the position of the image capture component 103 is 10 degrees away from the front-facing position, if a captured image is not processed, the output image is still upside-down. Therefore, it needs to be specified that the mobile phone 100 also regards this position as the front-facing position. In this way, an image captured by the image capture component 103 can be rotated by 180 degrees to become an upright image.
[0038] In this embodiment of the present disclosure, the position of the magnetic body 104 is determined by detecting the magnetic flux of the magnetic body 104, and the position of the image capture component 103 is further determined. Therefore, rotation of the magnetic body 104 is preferably in synchronization with rotation of the image capture component 103. That is, the position of the magnetic body 104 in a rotation direction is preferably consistent with the position of the image capture component 103 in the rotation direction. Therefore, referring to
[0039] In addition, referring to
[0040] A working principle is briefly described below.
[0041] Referring to
[0042] 1. A value of the magnetic flux is assumed, and does not constitute any limitation.
[0043] 2. It is specified that in the rotation direction, the angle between the connection line f-f, which connects the south pole S and the north pole N of the magnetic body 104, and the Z-axis of the sensor 105 is referred to as a rotation angle for short.
[0044] Referring to
[0045] Referring to
[0046] In this embodiment of the present disclosure, a size between a top surface 1051 shown in
[0047] It should be additionally noted the following.
[0048] 1. Although in this embodiment of the present disclosure, the magnetic body 104 is disposed at the end of the connector 1032, the connector 1032 may be set to a hollow structure to dispose the magnetic body 104 in the connector 1032.
[0049] 2. The front-facing position and the rear-facing position, and the front-facing state and the rear-facing state are relative concepts. After learning a basic principle, a person skilled in the art may define the front-facing position, the rear-facing position, the front-facing state, the rear-facing state according to needs.
[0050] 3. In this embodiment of the present disclosure, the settings of the south pole S and the north pole N of the magnetic body 104 are described in
[0051] 4. In this embodiment of the present disclosure, although in the direction of the section line A-A in
[0052] 5. When a working principle is described in this embodiment of the present disclosure with reference to
Embodiment 2
[0053] Content of this embodiment of the present disclosure the same as or similar to that of Embodiment 1 is not described herein again, and mutual reference may be made between the two embodiments.
[0054] In Embodiment 1, during description of determining a position state of the image capture component 103 using a specified magnetic flux threshold, a single threshold manner is used. However, although the position state of the image capture component 103 may be identified in such a manner, there is room for improvement.
[0055] First, determining of the position state is not proper enough. Referring to
[0056] Second, a ping-pong effect may occur, thereby increasing power consumption. For example, when a user is walking or running, and the mobile phone 100 is in a mobile bumpy state, if the image capture component 103 is at a position adjacent to and corresponding to a single threshold, the position states may be constantly switched back and forth. This is referred to as the ping-pong effect. For example, referring to
[0057] Therefore, this embodiment of the present disclosure is improved to resolve the foregoing disadvantage.
[0058] A sensor in this embodiment of the present disclosure includes a first output terminal and a second output terminal. When the magnetic flux generated by a magnetic body is greater than or equal to a first threshold, the first output terminal of the sensor outputs a first level. When the magnetic flux generated by the magnetic body is less than or equal to a second threshold, the second output terminal of the sensor outputs a second level.
[0059] The sensor in this embodiment of the present disclosure may be a bipolar Hall sensor.
[0060] A working principle of this embodiment of the present disclosure is described below with reference to
[0061] According to a rule, magnetic flux 2000 and 2000 may be selected to serve as the first threshold and the second threshold. If the magnetic flux is less than 2000, the first output terminal outputs a high level. If the magnetic flux is greater than or equal to 2000, the first output terminal outputs a low level. If the magnetic flux is less than or equal to 2000, the second output terminal outputs a low level. If the magnetic flux is greater than 2000, the second output terminal outputs a high level. The control unit 106 detects level outputs of the first output terminal and the second output terminal. When the first output terminal outputs a low level, the control unit 106 determines that the image capture unit 103 is in the front-facing state. When the second output terminal outputs a low level, the control unit 106 determines that the image capture unit 103 is in the rear-facing state.
[0062] A working process is further described with reference to
[0063] A. Referring to
[0064] B. Referring to
[0065] C. Referring to
[0066] D. Referring to
[0067] For an angle interval in which both the first output terminal OUT1 and the second output terminal OUT2 in
[0068] In this embodiment of the present disclosure, because the sensor 105 has two output terminals, two thresholds may be set to determine the position state of the image capture component. Advantages are as follows.
[0069] First, determining of the position state is more proper. In this embodiment of the present disclosure, a position obtained after rotation within an angle of 45 degrees based on the front-facing position is determined as the front-facing state, and a position obtained after rotation within an angle 45 degrees based on the rear-facing position is determined as the rear-facing state. This is obviously more proper.
[0070] Second, the ping-pong effect is avoided, and power consumption is reduced. For example, the image capture component 103 is rotated back and forth within a small amplitude around 45 degrees. In this case, when the rotation angle is slightly less than 45 degrees, the first output terminal OUT 1 outputs a low level 0, and the image capture component 103 is determined to be in the rear-facing state. When the rotation angle is slightly greater than 45 degrees, both the first output terminal OUT 1 and the second output terminal OUT 2 output a high level 1, and the image capture component 103 is still determined to be in the rear-facing state. Therefore, frequent switching of the image capture component between the front-facing state and the rear-facing state does not occur, preventing the control unit 106 from frequently giving an image-rotating instruction, and obviously reducing power consumption of the mobile phone 100.
[0071] It is easy to understand the following.
[0072] 1. Selection of a threshold in this embodiment of the present disclosure is for ease of understanding, but does not constitute any limitation to the present disclosure.
[0073] 2. When the magnetic flux reaches a threshold, the high level or the low level output by the first output terminal and the second output terminal is also merely an example. A person skilled in the art may properly select a high level or a low level according to needs.
[0074] 3. In this embodiment of the present disclosure, if the magnetic flux is greater than or equal to the first threshold, the first output terminal outputs the low level, and if the magnetic flux is less than or equal to the second threshold, the second output terminal outputs the low level. However, a value relationship between the magnetic flux and the threshold is merely an example, and may be preset according to needs.
[0075] Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure, but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present disclosure.