Electronic device, method for controlling electronic device, storage medium, and program product

By using lifting devices to share the camera in foldable electronic devices, the problem of increasing costs of electronic devices is solved, and the effect of reducing the overall cost of the equipment and improving aesthetics is achieved.

CN119729220APending Publication Date: 2025-03-28GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411944157.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

As electronic devices develop towards large screens, the cost of electronic devices continues to increase, especially when the number of cameras increases, resulting in an increase in equipment costs.

Method used

A foldable electronic device is designed, and the camera is installed in the installation slot using a lifting device. By lifting and lowering in the installation slot, the camera is protruded or accommodated, thereby realizing the sharing of the camera, reducing the need for cameras to be set up separately in the main screen and the secondary screen.

Benefits of technology

By sharing the camera, the overall cost of electronic devices is reduced, and the overhead of opening cameras on the main and secondary screens is avoided, while ensuring the aesthetics of the equipment and shooting quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119729220A_ABST
    Figure CN119729220A_ABST
Patent Text Reader

Abstract

The invention relates to an electronic device, a control method of the electronic device, a storage medium and a program product. The electronic equipment comprises a first main body part which is provided with a mounting groove; a lifting device, a camera is arranged in the lifting device, the lifting device is arranged in the mounting groove, and the lifting device is used for carrying out lifting motion in the mounting groove so as to drive the camera to protrude out of the first main body part or be accommodated in the mounting groove; the lens orientation of the camera is consistent with the screen orientation of a main screen included in the first main body part; the second main body part can be in a folded state or an unfolded state relative to the first main body part; and when the second main body part is in a folded state relative to the first main body part, the orientation of the lens is consistent with the screen orientation of the secondary screen included in the second main body part. According to the technical scheme provided by the invention, the cost of the electronic equipment can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an electronic equipment, a control method of the electronic equipment, a storage medium, and a program product. Background Art

[0002] At present, there are more and more electronic devices with shooting functions, and the number of cameras in electronic devices is also increasing. In electronic devices, front cameras and rear cameras are usually set. The front camera is generally used for selfies, video calls, etc., and the rear camera is generally used for shooting other scenes. However, with the trend of electronic devices developing towards large screens, the cost of electronic devices is also increasing. Summary of the invention

[0003] Based on this, it is necessary to provide an electronic device, a control method of the electronic device, a storage medium, and a program product that can reduce the cost of the electronic device.

[0004] In a first aspect, the present application provides an electronic device, including:

[0005] A first main body, wherein a mounting groove is formed on the first main body;

[0006] A lifting device, wherein a camera is disposed in the lifting device, the lifting device is disposed in the mounting groove, and the lifting device is used to move up and down in the mounting groove to drive the camera to protrude from the first main body or be accommodated in the mounting groove, and the lens direction of the camera is consistent with the screen direction of the main screen included in the first main body;

[0007] a second main body portion, the second main body portion being capable of being in a folded state or an unfolded state relative to the first main body portion;

[0008] When the second main body is in a folded state relative to the first main body, the orientation of the lens is consistent with the orientation of the sub-screen included in the second main body.

[0009] In a second aspect, the present application further provides a control method of an electronic device, which is used in the electronic device described in the first aspect, and the method includes:

[0010] In the case where a shooting instruction for a camera in the lifting device is detected, detecting whether the lifting device is lifted in the installation slot;

[0011] If the lifting device is not lifted in the installation slot, controlling the lifting device to lift in the installation slot, and controlling the camera to shoot;

[0012] If the lifting device rises in the installation slot, the camera is controlled to take pictures.

[0013] In a third aspect, the present application further provides an electronic device, comprising the first main body, the lifting device and the second main body described in the first aspect;

[0014] The electronic device further includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described in the second aspect when executing the computer program.

[0015] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method described in the second aspect above are implemented.

[0016] In a fifth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of the method described in the second aspect above.

[0017] The electronic device, control method of the electronic device, storage medium and program product, the electronic device includes a first main body, a lifting device and a second main body, the second main body can be in a folded state or an unfolded state relative to the first main body, that is, the electronic device is a foldable electronic device, the first main body is provided with a mounting groove, a camera is arranged in the lifting device, the lifting device is arranged in the mounting groove, the lifting device is used to move up and down in the mounting groove to drive the camera to protrude from the first main body or be accommodated in the mounting groove, the lens direction of the camera is consistent with the screen direction of the main screen included in the first main body, that is, the main screen can use the camera as a front camera, and when the second main body is in a folded state relative to the first main body, the lens direction is consistent with the screen direction of the secondary screen included in the second main body, so that when the electronic device is in a folded state, the secondary screen can reuse the camera as a front camera, so that there is no need to set a camera for the main screen and the secondary screen respectively, saving the cost of a camera and reducing the overall cost of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0019] Figure 1 This is a schematic diagram of the structure of an electronic device in an unfolded state in one embodiment of the present application;

[0020] Figure 2This is a structural schematic diagram of an electronic device in another embodiment of the present application in a folded state;

[0021] Figure 3 This is a structural schematic diagram of an electronic device in another embodiment of the present application in an unfolded state;

[0022] Figure 4 This is a structural schematic diagram of an electronic device in another embodiment of the present application in a folded state;

[0023] Figure 5 This is a structural schematic diagram of an electronic device in another embodiment of the present application in an unfolded state;

[0024] Figure 6 This is a structural schematic diagram of an electronic device in another embodiment of the present application in a folded state;

[0025] Figure 7 This is a diagram of the internal structure of an electronic device in one embodiment of the present application.

[0026] Description of reference numerals:

[0027] 100-electronic device, 10-first main body, 101-first top frame, 102-first side frame, 103-first bottom frame, 11-second main body, 111-second top frame, 112-second side frame, 113-second bottom frame, 12-lifting device, 121-camera, 122-speaker, 13-hinge. DETAILED DESCRIPTION

[0028] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0029] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0030] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first resistor may be referred to as a second resistor, and similarly, a second resistor may be referred to as a first resistor. Both the first resistor and the second resistor are resistors, but they are not the same resistor.

[0031] It can be understood that the “connection” in the following embodiments should be understood as “electrical connection”, “communication connection”, etc. if the connected circuits, modules, units, etc. have electrical signals or data transmission between each other.

[0032] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" and the like specify the presence of stated features, wholes, steps, operations, components, parts, or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts, or combinations thereof. At the same time, the term "and / or" used in this specification includes any and all combinations of the relevant listed items.

[0033] At present, there are more and more electronic devices with shooting functions, and the number of cameras in electronic devices is also increasing. In electronic devices, front cameras and rear cameras are usually set. The front camera is generally used for selfies, video calls, etc., and the rear camera is generally used for shooting other scenes.

[0034] With the trend of electronic devices developing towards larger screens, the market share of foldable electronic devices is increasing. Currently, all foldable electronic devices on the market are designed with two front cameras, one front camera is set on the main screen for use, and the other front camera is set on the sub-screen for use, which increases the cost of the electronic devices.

[0035] To solve the above problems, the present application provides an electronic device, a control method of the electronic device, a storage medium and a program product.

[0036] The electronic device in the embodiment of the present application can be a mobile phone, a tablet computer, a desktop computer, a laptop computer, an e-reader, a handheld computer, an electronic display screen, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, and a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) and a virtual reality (VR) device, a media player, a smart wearable device and other foldable devices. In the embodiment of the present application, the electronic device can be a foldable display device or a foldable non-display device. In this application, the electronic device is taken as an example of a foldable mobile phone, and other devices can refer to the specific description in this application.

[0037] In the embodiment of the present application, the electronic device includes a first main body and a second main body. The first main body and the second main body are the main structures of the electronic device, and the combined form of the first main body and the second main body is consistent with the form of the electronic device.

[0038] See also Figure 1 and Figure 2 , Figure 1 is a schematic diagram of an exemplary structure of an electronic device 100 in an unfolded state, Figure 2 1 is a schematic diagram of an exemplary structure of the electronic device 100 in a folded state. In the embodiment of the present application, the second body portion 11 can be in a folded state or an unfolded state relative to the first body portion 10, that is, the first body portion 10 and the second body portion 11 can form a folded structure of the electronic device 100.

[0039] In a possible embodiment, the second main body portion 11 can be in a folded state relative to the first main body portion 10, which may refer to a state where the angle between the first main body portion 10 and the second main body portion 11 is less than or equal to a first threshold value, and the first threshold value may be a smaller angle value between 0° and 180°. For example, the first threshold value may be 10°, 5°, or 0°, and so on.

[0040] The second main body 11 can be in an unfolded state relative to the first main body 10, which may refer to a state where the angle between the first main body 10 and the second main body 11 is greater than or equal to a second threshold value, and the second threshold value is greater than the above-mentioned first threshold value. The second threshold value may be a larger angle value between 0° and 180°, for example, the second threshold value may be 170°, 175°, or 180°, and so on.

[0041] In another possible implementation, only one third threshold value may be set, and the third threshold value may be, for example, 90° (of course, it may also be other angles, such as 45°, etc.). If the angle between the first main body portion 10 and the second main body portion 11 is less than the third threshold value, it indicates that the second main body portion 11 is in a folded state relative to the first main body portion 10. On the contrary, if the angle between the first main body portion 10 and the second main body portion 11 is greater than or equal to the third threshold value, it indicates that the second main body portion 11 is in an unfolded state relative to the first main body portion 10. Optionally, the state in which the angle between the first main body portion 10 and the second main body portion 11 is equal to the third threshold value may also be classified as the state in which the second main body portion 11 is in a folded state relative to the first main body portion 10, which is not specifically limited here.

[0042] In the embodiment of the present application, the electronic device 100 further includes a lifting device 12 . The first main body 10 is provided with a mounting groove, which is a groove for mounting the lifting device 12 . The lifting device 12 is disposed in the mounting groove.

[0043] Exemplarily, the first main body portion 10 may include a frame, and the mounting groove may be opened on the frame of the first main body portion 10, for example, the mounting groove is opened on the top frame, side frame or bottom frame of the first main body portion 10, and there is no restriction on the opening position of the mounting groove on the first main body portion 10.

[0044] Hereinafter, the opening position of the installation groove on the first main body 10 will be exemplarily described with reference to the accompanying drawings.

[0045] Please continue to see Figure 1 The electronic device 100 also includes a hinge 13. The first main body 10 includes a first top frame 101, a first side frame 102 and a first bottom frame 103 connected in sequence. The second main body 11 includes a second top frame 111, a second side frame 112 and a second bottom frame 113 connected in sequence. The first end of the hinge 13 is respectively connected to the first top frame 101 and the second top frame 111, and the second end of the hinge 13 is respectively connected to the first bottom frame 103 and the second bottom frame 113.

[0046] In one possible arrangement of the mounting groove, the mounting groove is opened on the first top frame 101; in another possible arrangement of the mounting groove, the mounting groove is opened on the first bottom frame 103; of course, in other possible implementations, the mounting groove can also be opened on the first side frame 102.

[0047] For example, the shape of the mounting groove matches the shape of the lifting device 12. For example, the mounting groove and the lifting device 12 are both in the shape of a rectangular parallelepiped, and the size of the mounting groove matches the size of the lifting device 12. For example, the mounting groove is provided on the first top frame 101 of the first main body 10. Figure 2 The length direction of the installation groove and the length direction of the lifting device 12 are consistent with the length direction of the first top frame 101.

[0048] It can be understood that when the installation groove is opened in the first side frame 102 or the first bottom frame 103 of the first main body 10, similarly, the length direction of the installation groove and the length direction of the lifting device 12 are also consistent with the length direction of the first side frame 102 (or the first bottom frame 103) of the first main body 10.

[0049] In the embodiment of the present application, the lifting device 12 is used to move up and down in the installation groove. When the installation groove is opened in the first top frame 101 or the first bottom frame 103 of the first main body 10, the lifting device 12 moves up and down in the installation groove along the height direction of the electronic device 100. When the installation groove is opened in the first side frame 102 of the first main body 10, the lifting device 12 moves up and down in the installation groove along the width direction of the electronic device 100. Figure 1 and Figure 2 In the electronic device 100 shown, the lifting device 12 is in a state of being completely lowered in the installation groove.

[0050] Among them, a camera 121 is arranged in the lifting device 12. When the lifting device 12 moves up and down in the installation groove, it can drive the camera 121 to protrude from the first main body 10 or be accommodated in the installation groove. After the lifting device 12 is lifted in the installation groove, the camera 121 protrudes from the first main body 10. After the lifting device 12 is lowered in the installation groove, the camera 121 is accommodated in the installation groove.

[0051] Take the installation groove being provided on the first top frame 101 of the first main body 10 as an example, see Figure 3 , Figure 3 is a schematic diagram of an exemplary structure of an electronic device 100 in an unfolded state, Figure 3 The lifting device 12 shown is in a raised state in the installation groove. As the lifting device 12 is raised, the lifting device 12 drives the camera 121 to rise as well. After the lifting device 12 is raised, the camera 121 protrudes from the first main body 10, so that the camera 121 can be used normally.

[0052] In the embodiment of the present application, the first main body 10 is the main screen of the electronic device 100, and the second main body 11 is the auxiliary screen of the electronic device 100. When the second main body 11 is in an unfolded state relative to the first main body 10, the lens direction of the camera 121 is consistent with the screen direction of the main screen included in the first main body 10. For example, Figure 3 As shown, when the second main body 11 is in an unfolded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 protrudes from the first main body 10. At this time, the screen of the main screen faces the user, and the camera 121 also faces the user. In this way, the camera 121 can be used as the front camera 121 of the main screen for scenes such as selfies and video calls.

[0053] It should be noted that the "main screen" and "secondary screen" mentioned in the embodiment of the present application are only used to distinguish the two display screens in terms of name, so that readers can understand the technical solutions provided by the embodiment of the present application, and do not mean that there is a difference in priority or screen between the two. In some possible implementations, the "main screen" in the embodiment of the present application can also be called the "first display screen" and the "secondary screen" can be called the "second display screen"; or, the "secondary screen" in the embodiment of the present application can also be called the "first display screen" and the "main screen" can be called the "second display screen", and so on.

[0054] When the second main body 11 is in a folded state relative to the first main body 10 , the orientation of the lens is consistent with the orientation of the sub-screen included in the second main body 11 .

[0055] For example, see Figure 4 , Figure 4 This is a structural diagram of an exemplary electronic device 100 in a folded state. When the second main body 11 is in a folded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 protrudes from the first main body 10. At this time, the screen of the secondary screen faces the user, and the camera 121 also faces the user. In this way, the camera 121 can be used as the front camera 121 of the secondary screen for scenes such as selfies and video calls.

[0056] In the above embodiment, by setting a camera 121 in the lifting device 12, the main screen of the electronic device 100 can use the camera 121 as the front camera 121, and the sub-screen of the electronic device 100 can also reuse the camera 121 as the front camera 121, so that there is no need to set a camera for the main screen and the sub-screen respectively, which saves the cost of a camera and reduces the overall cost of the electronic device 100.

[0057] In addition, in the embodiment of the present application, a camera 121 is disposed in the lifting device 12 to avoid opening holes in the main screen and the sub-screen to set the front camera. The implementation of the present application can also ensure the integrity of the main screen and the sub-screen.

[0058] In one embodiment, based on the above embodiment, in this embodiment, in addition to the camera 121, the lifting device 12 is also provided with a speaker 122. The lifting device 12 is also used to drive the speaker 122 to protrude from the first main body 10 or be accommodated in the installation groove when it moves up and down in the installation groove.

[0059] When the second main body 11 is in an unfolded state or a folded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 provided in the lifting device 12 protrudes from the first main body 10, and the speaker 122 provided in the lifting device 12 also protrudes from the first main body 10, and the electronic device 100 can use the camera 121 and / or the speaker 122.

[0060] For example, see Figure 5 , Figure 5 is a schematic diagram of an exemplary structure of an electronic device 100 in an unfolded state, Figure 5 The lifting device 12 shown is in a raised state in the installation groove. As the lifting device 12 is raised, the lifting device 12 drives the camera 121 and the speaker 122 to rise. After the lifting device 12 is raised, the camera 121 and the speaker 122 arranged in the lifting device 12 both protrude from the first main body 10, so that the camera 121 and / or the speaker 122 can be used normally.

[0061] See also Figure 6 , Figure 6 This is a structural diagram of an exemplary electronic device 100 in a folded state. When the second main body 11 is in a folded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 and the speaker 122 arranged in the lifting device 12 both protrude from the first main body 10, so that the camera 121 and / or the speaker 122 can be used normally.

[0062] When the second main body 11 is in an unfolded state or a folded state relative to the first main body 10, after the lifting device 12 is lowered, the camera 121 and the speaker 122 are both accommodated in the installation groove.

[0063] In this way, by also arranging the speaker 122 in the lifting device 12 , the sound outlet hole (or speaker opening) of the speaker 122 is hidden in the lifting device 12 , which can reduce the opening of the frame of the electronic device 100 and improve the aesthetics of the electronic device 100 .

[0064] As described above, the mounting groove can be opened on the first top frame 101, the first bottom frame 103 or the first side frame 102 of the first main body 10. Taking the mounting groove as an example, in which the mounting groove can be opened on the first top frame 101 or the first bottom frame 103 of the first main body 10, when the mounting groove is opened on the first top frame 101, the lifting device 12 is arranged in the mounting groove, and the camera 121 and the speaker 122 in the lifting device 12 are arranged side by side in the lifting device 12 along the length direction of the first top frame 101.

[0065] When the mounting groove is opened in the first bottom frame 103 , the camera 121 and the speaker 122 in the lifting device 12 are arranged side by side in the lifting device 12 along the length direction of the first bottom frame 103 .

[0066] In this way, the camera 121 and the speaker 122 are arranged side by side in the lifting device 12 along the length direction of the first top frame 101 or the length direction of the first bottom frame 103, and the lens of the camera 121 and the sound hole of the speaker 122 are oriented in the same direction, both facing the user, thereby avoiding obstruction between the lens of the camera 121 and the sound hole of the speaker 122, thereby ensuring the shooting quality and sound effect.

[0067] In the related art, the speaker openings of the electronic device are generally set on the middle frame of the electronic device. The audio electro-acoustic channel is designed by opening holes on the bottom middle frame or the top middle frame of the electronic device. In some interactive scenarios, for example, a scene in which a user uses an electronic device to watch a video, when the user faces the screen of the electronic device, the sound of the audio played by the electronic device is actually propagated toward the side of the electronic device, not directly toward the user, and the audio playback effect is poor.

[0068] In the embodiment of the present application, the direction of the sound outlet of the speaker 122 is consistent with the direction of the lens. Figure 5 and Figure 6 ,like Figure 5 As shown, when the second main body 11 is in an unfolded state relative to the first main body 10, the lens direction of the camera 121 is consistent with the screen direction of the main screen included in the first main body 10, and the direction of the sound outlet of the speaker 122 is consistent with the lens direction. Then, when the second main body 11 is in an unfolded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 and the speaker 122 protrude from the first main body 10, the screen of the main screen faces the user, and the sound outlet of the camera 121 and the speaker 122 also faces the user. In this way, if the speaker 122 is used to play audio, the electronic device 100 will emit sound toward the user through the sound outlet, which can improve the effect of the audio external speaker.

[0069] like Figure 6 As shown, when the second main body 11 is in a folded state relative to the first main body 10, the direction of the lens is consistent with the screen direction of the secondary screen included in the second main body 11, and the direction of the sound outlet of the speaker 122 is consistent with the direction of the lens. Then, when the second main body 11 is in a folded state relative to the first main body 10, after the lifting device 12 is raised, the camera 121 and the speaker 122 protrude from the first main body 10, the screen of the secondary screen faces the user, and the sound outlet of the camera 121 and the speaker 122 also faces the user. In this way, if the speaker 122 is used to play audio, the electronic device 100 will emit sound toward the user through the sound outlet, which can improve the effect of the audio external speaker.

[0070] In one embodiment, based on any of the above embodiments, in an embodiment of the present application, a distance detection module is further provided in the lifting device 12, and the distance detection module is used to detect the target distance between the lifting device 12 and objects around the electronic device 100 during the process of the lifting device 12 being lifted from the installation slot.

[0071] Exemplarily, the distance detection module can be set at the end of the lifting device 12. The distance detection module can be an infrared sensor, or of course an ultrasonic sensor, etc. During the process of the lifting device 12 rising from the installation slot, the distance detection module can detect the target distance between objects around the electronic device 100. If the electronic device 100 determines that the target distance is too small, for example, the target distance is less than the distance threshold, the user can be prompted to adjust the position of the electronic device 100 to avoid the lifting device 12 being blocked by obstructions in the surrounding environment, affecting the normal use of the camera 121 and the speaker 122 in the lifting device 12, so that the lifting device 12 can be freely raised and lowered.

[0072] In the embodiment of the present application, by integrating a distance detection module in the lifting device 12, it is possible to automatically detect whether the lifting device 12 may be blocked by obstructions in the surrounding environment during the lifting process of the lifting device 12, thereby achieving an intelligent effect of automatic detection of obstructions and ensuring the normal lifting and lowering of the lifting device 12.

[0073] In one embodiment, a control method of an electronic device is provided. The control method of an electronic device is used in the electronic device 100 in any of the above embodiments. For the structure of the electronic device, please refer to the relevant introduction of the above embodiments, which will not be repeated here.

[0074] The method comprises steps A1 to A3:

[0075] Step A1, when a shooting instruction for a camera in the lifting device is detected, detecting whether the lifting device is lifted in the installation slot.

[0076] When a user uses the electronic device of the above embodiment of the present application, in one possible implementation, the user can open the electronic device so that the second main body of the electronic device is in an unfolded state relative to the first main body. In this state, the main screen of the electronic device faces the user.

[0077] When the main screen of the electronic device faces the user, if the user needs to use the front camera, the user can enter the above shooting command. For example, the user can enter the front shooting command in the main screen. Of course, the user can also enter the front shooting command through physical buttons, gestures or voice in the electronic device.

[0078] If the electronic device detects a front-facing shooting instruction based on the main screen, it is determined that the main screen has detected a shooting instruction for the camera in the lifting device; or, if the electronic device detects the front-facing shooting instruction through a physical button, gesture, or voice, and recognizes that the main screen is currently facing the user, it can also be determined that the main screen has detected a shooting instruction for the camera in the lifting device. The shooting instruction of the main screen for the camera in the lifting device indicates that the main screen needs to use the camera for front-facing shooting.

[0079] In another possible implementation, the user may also fold the electronic device so that the second main body portion of the electronic device is in a folded state relative to the first main body portion. In this state, the secondary screen of the electronic device faces the user.

[0080] When the secondary screen of the electronic device is facing the user, if the user needs to use the front camera, the above-mentioned shooting command can be input. For example, the user can input the front shooting command in the secondary screen. Of course, the user can also input the front shooting command through physical buttons, gestures or voice in the electronic device.

[0081] If the electronic device detects a front-facing shooting instruction based on the secondary screen, it is determined that the shooting instruction of the secondary screen for the camera in the lifting device is detected; or, if the electronic device detects the front-facing shooting instruction through a physical button, gesture or voice, and recognizes that the secondary screen is currently facing the user, it can also be determined that the shooting instruction of the secondary screen for the camera in the lifting device is detected. Among them, the shooting instruction of the secondary screen for the camera in the lifting device indicates that the secondary screen needs to use the camera for front-facing shooting.

[0082] When the electronic device detects a shooting instruction for the camera in the lifting device, the electronic device first detects whether the lifting device in the electronic device has been lifted up in the installation slot.

[0083] It is understandable that, in the case where a speaker is also provided in the lifting device, if the lifting device has been raised to use the speaker before a shooting instruction for the camera in the lifting device is detected, then the electronic device does not need to repeatedly raise the lifting device.

[0084] Step A2: If the lifting device is not lifted in the installation slot, the lifting device is controlled to lift in the installation slot, and the camera is controlled to shoot.

[0085] If the electronic device detects that the lifting device is not raised in the installation slot, the electronic device first controls the lifting device to rise in the installation slot, and after the lifting device is raised, controls the camera in the lifting device to take front-facing photos.

[0086] Step A3: if the lifting device is lifted in the installation slot, the camera is controlled to shoot.

[0087] If the electronic device detects that the lifting device has been lifted up in the installation slot, the electronic device directly controls the camera in the lifting device to perform front-facing shooting.

[0088] In this way, the main screen of the electronic device can use the camera set in the lifting device to perform front-facing shooting, and the secondary screen of the electronic device can also use the camera to perform front-facing shooting, that is, the main screen and the secondary screen can reuse the camera as the front camera, so that there is no need to set a camera for the main screen and the secondary screen respectively, saving the cost of a camera and reducing the overall cost of the electronic device.

[0089] In one embodiment, the control method of the electronic device provided in the embodiment of the present application further includes steps A4 to A6:

[0090] Step A4, when an audio playing instruction for the speaker in the lifting device is detected, detecting whether the lifting device is lifted in the installation slot.

[0091] When a user is using an electronic device, if there is a need to play audio externally, the user can enter an audio playback instruction for the speaker. For example, when the user is watching a video or listening to music, if there is a need to play audio externally, the user can enter an audio playback instruction in the electronic device.

[0092] Exemplarily, the user can input the above audio playback instruction in the main screen, or can input the above audio playback instruction in the secondary screen, or can input the audio playback instruction through physical buttons, gestures or voice in the electronic device.

[0093] After the electronic device detects the audio play instruction, the electronic device first detects whether the lifting device in the electronic device has been lifted up in the installation slot.

[0094] It is understandable that a camera is also provided in the lifting device. If the lifting device has been raised to use the camera before a shooting instruction for the speaker in the lifting device is detected, the electronic device does not need to repeatedly raise the lifting device.

[0095] Step A5: If the lifting device is not lifted in the installation slot, the lifting device is controlled to be lifted in the installation slot, and the speaker is controlled to play audio.

[0096] If the electronic device detects that the lifting device is not lifted in the installation slot, the electronic device first controls the lifting device to lift in the installation slot, and after the lifting device is lifted, controls the speaker in the lifting device to play audio.

[0097] Step A6: If the lifting device is lifted in the installation slot, the speaker is controlled to play audio.

[0098] If the electronic device detects that the lifting device has been lifted up in the installation slot, the electronic device can directly control the speaker in the lifting device to play audio.

[0099] In the embodiment of the present application, by arranging the speaker in the lifting device, the sound outlet of the speaker is hidden in the lifting device, which can reduce the opening of the frame of the electronic device and improve the aesthetics of the electronic device. The sound outlet of the speaker is facing the user. When the speaker is used to play audio, the electronic device emits sound toward the user through the sound outlet, which can improve the effect of the audio output.

[0100] In one embodiment, the control method of the electronic device provided in the embodiment of the present application further includes the following steps A7 and A8:

[0101] Step A7: in the process of controlling the lifting device to rise in the installation slot, the target distance between the lifting device and the objects around the electronic device is measured by the distance detection module.

[0102] When the electronic device controls the lifting device to rise in the installation slot, the electronic device can also measure the target distance between the lifting device and objects around the electronic device through the distance detection module.

[0103] For example, the electronic device can control the lifting device to rise in the installation slot while synchronously measuring the target distance between the lifting device and objects around the electronic device through the distance detection module.

[0104] As described above, the distance detection module can be an infrared sensor or an ultrasonic sensor, etc. Taking the distance detection module as an infrared sensor as an example, the infrared sensor can emit infrared light to the environment around the electronic device and receive infrared light reflected by objects in the environment. Based on this process, the target distance between the lifting device and the objects around the electronic device can be calculated, and the electronic device can read the above target distance detected by the distance detection module.

[0105] Step A8: if the target distance is less than the distance threshold, a prompt message is output, where the prompt message is used to prompt the user to adjust the current position of the electronic device.

[0106] The electronic device determines whether the target distance is less than a distance threshold. If so, it indicates that the object is close to the lifting device and the object is an obstruction that will block the lifting of the lifting device. The electronic device outputs a prompt message to prompt the user to adjust the current position of the electronic device to prevent the lifting device from being blocked by obstructions in the surrounding environment, affecting the normal use of the camera and speaker in the lifting device, so that the lifting device can be raised and lowered freely.

[0107] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0108] In an exemplary embodiment, an electronic device is provided. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 The electronic device includes the first main body portion ( Figure 7 Not shown), lifting device ( Figure 7 not shown) and a second main body ( Figure 7(not shown), the electronic device also includes Figure 7 The processor, memory, input / output interface, communication interface, display unit and input device shown. The processor, memory and input / output interface are connected via a system bus, and the communication interface, display unit and input device are connected to the system bus via the input / output interface. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the electronic device is used to exchange information between the processor and the external device. The communication interface of the electronic device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a control method of an electronic device is implemented. The display unit of the electronic device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the electronic device casing, or an external keyboard, touchpad or mouse.

[0109] Those skilled in the art will understand that Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0110] The embodiment of the present application also provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the control method of the electronic device.

[0111] An embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute a method for controlling an electronic device.

[0112] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0113] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital shooting controller, a programmable logic unit, a data processing logic unit based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0114] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0115] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0116] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements may be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. An electronic device, characterized in that: include: A first main body, wherein a mounting groove is formed on the first main body; A lifting device, wherein a camera is disposed in the lifting device, the lifting device is disposed in the mounting groove, and the lifting device is used to move up and down in the mounting groove to drive the camera to protrude from the first main body or be accommodated in the mounting groove, and the lens direction of the camera is consistent with the screen direction of the main screen included in the first main body; a second main body portion, the second main body portion being capable of being in a folded state or an unfolded state relative to the first main body portion; When the second main body is in a folded state relative to the first main body, the orientation of the lens is consistent with the orientation of the sub-screen included in the second main body.

2. The electronic device according to claim 1, characterized in that: The lifting device is also provided with a speaker, and the lifting device is also used to drive the speaker to protrude from the first main body or be accommodated in the installation groove when the lifting device moves in the installation groove.

3. The electronic device according to claim 2, characterized in that: The direction of the sound outlet of the speaker is consistent with the direction of the lens.

4. The electronic device according to claim 2, characterized in that: The electronic device further includes a rotating shaft, the first main body portion includes a first top frame, a first side frame and a first bottom frame connected in sequence, the second main body portion includes a second top frame, a second side frame and a second bottom frame connected in sequence, the first end of the rotating shaft is respectively connected to the first top frame and the second top frame, and the second end of the rotating shaft is respectively connected to the first bottom frame and the second bottom frame; wherein The mounting groove is formed on the first top frame, or the mounting groove is formed on the first bottom frame.

5. The electronic device according to claim 4, characterized in that: In the case where the mounting groove is provided in the first top frame, the camera and the speaker are arranged side by side in the lifting device along the length direction of the first top frame; In the case where the mounting groove is provided in the first bottom frame, the camera and the speaker are arranged side by side in the lifting device along the length direction of the first bottom frame.

6. The electronic device according to any one of claims 1 to 5, characterized in that: The lifting device is also provided with a distance detection module, and the distance detection module is used to detect the target distance between the lifting device and objects around the electronic device when the lifting device is lifted from the installation slot.

7. The electronic device according to claim 6, characterized in that: The distance detection module is an infrared sensor.

8. A method for controlling an electronic device, characterized in that: Used in the electronic device according to any one of claims 1 to 7, the method comprising: In the case where a shooting instruction for a camera in the lifting device is detected, detecting whether the lifting device is lifted in the installation slot; If the lifting device is not lifted in the installation slot, controlling the lifting device to lift in the installation slot, and controlling the camera to shoot; If the lifting device rises in the installation slot, the camera is controlled to take pictures.

9. The method according to claim 8, characterized in that The method further comprises: In the case of detecting an audio playback instruction for a speaker in the lifting device, detecting whether the lifting device is lifted in the installation slot; If the lifting device is not lifted in the installation slot, controlling the lifting device to lift in the installation slot, and controlling the speaker to play audio; If the lifting device rises in the installation slot, the speaker is controlled to play audio.

10. The method according to claim 9, characterized in that The method further comprises: In the process of controlling the lifting device to rise in the installation slot, measuring the target distance between the lifting device and objects around the electronic device by a distance detection module; If the target distance is less than the distance threshold, a prompt message is output, where the prompt message is used to prompt the user to adjust the current position of the electronic device.

11. An electronic device, characterized in that: It comprises the first main body part, the lifting device and the second main body part according to any one of claims 1 to 7; The electronic device further comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of claims 8 to 10 when executing the computer program.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 8 to 10 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 8 to 10 are implemented.