Image capture method of foldable electronic device, and foldable electronic device
By using foldable sub-components and camera components in electronic devices to shoot at different angles, combined with the image processing of the processor, the problem of only obtaining two-dimensional information in the existing technology is solved, and three-dimensional information is obtained and better achieved. user experience.
Patent Information
- Application Number
- PCT/CN2023/130173
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-21
- Filing Date
- 2023-11-07
- Publication Date
- 2024-09-26
AI Technical Summary
Existing electronic devices can only obtain two-dimensional information of the target object when shooting through a single camera component, and cannot obtain its three-dimensional information in the physical world, which limits the user's experience and information acquisition.
Design a foldable electronic device that shoots target objects at different angles through its mutually foldable sub-components and a camera assembly mounted on the body, obtains multiple frames of initial images, and processes these images through a processor to generate A three-dimensional image of the target object.
It realizes the conversion from two-dimensional images to three-dimensional images, provides more comprehensive information acquisition, improves the accuracy of face recognition and user experience, and enables users to observe the full picture of the target object more intuitively.
Smart Images

Figure CN2023130173_26092024_PF_FP
Abstract
Description
Method for photographing foldable electronic device and foldable electronic device
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 21, 2023, with application number 202310291930.6 and application name “Photographing method of foldable electronic device and foldable electronic device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of imaging technology, and in particular to a photographing method for a foldable electronic device and the foldable electronic device. Background Art
[0003] Nowadays, people are increasingly using electronic devices that include camera components to take photos. However, most of these electronic devices use a single camera component to capture a target object, creating a two-dimensional image based on this single camera component. The resulting image is typically flat, providing only two-dimensional information about the target object, preventing users from obtaining three-dimensional information about the target object in the physical world.
[0004] Summary of the Invention
[0005] Embodiments of the present application provide a photographing method for a foldable electronic device and a foldable electronic device.
[0006] A photographing method according to an embodiment of the present application can be applied to a foldable electronic device, the electronic device comprising a main body and a camera assembly, the camera assembly comprising a camera module, the main body comprising a first sub-section and a second sub-section capable of folding relative to each other, the camera module being disposed in either the first sub-section or the second sub-section. The photographing method comprises: photographing a target object with the camera module at different angles between the first sub-section and the second sub-section to obtain an initial image of the target object; and processing the initial image by the electronic device to obtain a three-dimensional image of the target object.
[0007] A foldable electronic device according to an embodiment of the present application includes a main body, a camera assembly, and one or more processors. The main body includes a first sub-section and a second sub-section that can be folded relative to each other. The camera assembly includes a camera module, which is installed in the first sub-section or the second sub-section. One or more processors are used to execute the above-mentioned shooting method. The shooting method includes: the camera module shoots a target object when the angle between the first sub-section and the second sub-section is different angles to obtain an initial image of the target object; and the electronic device processes the initial image to obtain a three-dimensional image of the target object.
[0008] Another photographing method according to an embodiment of the present application can be applied to a foldable electronic device, the electronic device comprising a main body and a camera assembly, the main body comprising a first subsection and a second subsection capable of folding relative to each other, the camera assembly comprising a first camera module and a second camera module, the first camera module being located in the first subsection and the second camera module being located in the second subsection. The photographing method comprises: photographing a target object with the first camera module and the second camera module to obtain an initial image of the target object; and processing the initial image by the electronic device to obtain a three-dimensional image of the target object.
[0009] Another foldable electronic device according to an embodiment of the present application includes a main body, a camera assembly and one or more processors. The main body includes a first sub-section and a second sub-section that can be folded relative to each other. The camera assembly includes a first camera module and a second camera module, and the first camera module and the second camera module are respectively located in the first sub-section and the second sub-section. One or more of the processors are used to execute the above-mentioned shooting method. The shooting method includes: the first camera module and the second camera module shoot a target object to obtain an initial image of the target object; and the electronic device processes the initial image to obtain a three-dimensional image of the target object.
[0010] The photographing method and foldable electronic device of the embodiments of the present application utilize a foldable first and second sub-units, and a camera assembly mounted on the main body, to capture a target object at different angles, thereby acquiring multiple frames of initial images of the target object at different angles. After processing the multiple frames of initial images of the target object, a three-dimensional image of the target object is obtained, allowing a user to obtain three-dimensional information about the target object based on the three-dimensional image.
[0011] Additional aspects and advantages of the embodiments of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0013] FIG1 is a schematic flow chart of a method for photographing a foldable electronic device according to some embodiments of the present application;
[0014] FIG2 is a schematic structural diagram of a foldable electronic device in a partially folded state according to some embodiments of the present application;
[0015] FIG3 is a schematic structural diagram of the foldable electronic device shown in FIG2 in a fully unfolded state;
[0016] FIG4 is a schematic diagram of a shooting scene of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0017] FIG5 is a schematic diagram of a shooting scene of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0018] FIG6 is a schematic diagram of initial image processing of a photographing method for a foldable electronic device according to certain embodiments of the present application;
[0019] FIG7 is a schematic flow chart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0020] FIG8 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0021] FIG9 is a schematic flow chart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0022] FIG10 is a flowchart of a method for photographing a foldable electronic device according to other embodiments of the present application;
[0023] FIG11 is a schematic structural diagram of a foldable electronic device in a partially folded state according to other embodiments of the present application;
[0024] FIG12 is a schematic structural diagram of the foldable electronic device shown in FIG11 in a fully unfolded state;
[0025] FIG13 is a schematic diagram of initial image acquisition and processing in a shooting method for a foldable electronic device according to certain embodiments of the present application;
[0026] FIG14 is a schematic diagram of initial image acquisition and processing in a photographing method for a foldable electronic device according to certain embodiments of the present application;
[0027] FIG15 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0028] FIG16 is a schematic diagram of initial image acquisition and processing in a photographing method for a foldable electronic device according to certain embodiments of the present application;
[0029] FIG17 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application. DETAILED DESCRIPTION
[0030] The following further describes the embodiments of the present application in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions. Furthermore, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are intended only to explain the embodiments of the present application and are not to be construed as limiting the present application.
[0031] Electronic devices generally use a camera assembly to shoot a target object to obtain an image of the target object. However, today's electronic devices generally use a camera assembly for shooting, and the resulting image is usually a flat image, from which only two-dimensional information of the target object can be obtained. It is impossible to obtain third-dimensional information in the physical world (i.e., the distance between the target object and the electronic device) based on the image, which results in the electronic device obtaining less information from the image. To solve this problem, the embodiments of the present application provide a shooting method for a foldable electronic device and a foldable electronic device 100 (shown in Figures 2 to 5).
[0032] Referring to Figures 1 and 2, an embodiment of the present application provides a method for photographing a foldable electronic device. The method for photographing a foldable electronic device can be applied to a foldable electronic device 100. The foldable electronic device 100 includes a body 10 and a camera assembly 20 disposed on the body 10. The body 10 includes a first subsection 11 and a second subsection 13 that can be folded relative to each other. The camera module 21 is disposed in the first subsection 11 or the second subsection 13 (in the embodiment shown in Figure 2, the camera module 21 is disposed in the first subsection 11). The photographing method includes:
[0033] 01: The camera module 21 photographs the target object when the angles between the first sub-section 11 and the second sub-section 13 are different, so as to obtain an initial image of the target object; and
[0034] 03: The electronic device 100 processes the initial image to obtain a three-dimensional image of the target object.
[0035] Please refer to Figure 2. The foldable electronic device 100 of the embodiment of the present application also includes a processor 30, which is used to control the camera module 21 to shoot the target object when the angle between the first sub-section 11 and the second sub-section 13 is different angles to obtain an initial image of the target object, and to process the initial image to obtain a three-dimensional image of the target object.
[0036] The electronic device 100 includes, but is not limited to, a mobile phone, tablet computer, camera, video camera, personal digital assistant, wearable device, smart robot, smart vehicle, etc., which has a structure with two foldable parts. Among them, the wearable device includes a smart bracelet, smart watch, smart glasses, etc.
[0037] The main body 10 is the body of the electronic device 100 and includes components between the housing and the screen. Due to the foldable nature of the electronic device 100, the main body 10 comprises a first subsection 11 and a second subsection 13 that can fold relative to each other. If the electronic device 100 is a top-down folding mobile phone, as shown in Figures 2 and 3, the upper half of the phone, defined by the folding boundary MM1, can serve as the first subsection 11, and the lower half can serve as the second subsection 13.
[0038] The camera assembly 20 is a device that uses optical imaging principles to capture an initial image. The initial image captured by the camera assembly 20 is typically a 2D planar image. There are many different types of camera assemblies 20. For example, depending on whether they perform the primary imaging task, the camera assembly 20 may include a primary camera and a secondary camera. For example, the rear camera of a mobile phone is the primary camera, and the front camera is the secondary camera. Based on the focal length of the camera assembly 20, the camera assembly 20 may include a telephoto camera, a macro camera, and a wide-angle camera. Based on the color of the image captured by the camera assembly 20, the camera assembly 20 may include a color camera or a black and white camera.
[0039] The camera module 21 is disposed in the first subsection 11 or the second subsection 13. For example, when the body 10 is fully unfolded, the body 10 includes a first side 15 and a second side 17 that are opposite to each other, as shown in Figures 2 and 3. From the perspective of a user normally using the electronic device 100, such as a mobile phone, the first side 15 is the side facing the user, and the second side 17 is the side facing away from the user.
[0040] In one embodiment, referring to Figures 2 and 3 , to facilitate the user's ability to view information about the electronic device 100 through the screens when the body 10 is in both the unfolded and folded states, the electronic device 100 may include a first screen 40 and a second screen 50. The first screen 40 is disposed on the first side 15 of the body 10, while the second screen 50 and the camera assembly 20 are disposed on the second side 17 of the body 10. In this embodiment, the camera assembly 20 includes a camera module 21, which serves as a primary camera, and is disposed within the first subsection 11. Of course, in other embodiments, the second screen 50 may be omitted.
[0041] "Three-dimensional information" includes the size of the target object and the distance between the target object and the electronic device 100. When the processor 30 obtains a three-dimensional image, it needs to combine the initial images obtained by shooting the target object from different angles to obtain the three-dimensional information of the target object. When the camera module 21 shoots the target object, the angle between the first sub-section 11 and the second sub-section 13 needs to be any angle within the optimal angle range for the electronic device 100 to be able to completely shoot the target object. If the angle between the first sub-section 11 and the second sub-section 13 exceeds the optimal angle range, the initial image will only contain a part of the surface of the target object. As shown in Figure 4, at this time, the shooting angle is α1, which exceeds the optimal angle range. Assuming that the optimal angle range is [β1, β2], then α1>β2, or α1<β1. The electronic device 100 can only completely shoot the target object when the angle between the first sub-section 11 and the second sub-section 13 is within [β1, β2]. Figure (a) in Figure 4 is a scene diagram of a user holding the electronic device 100 and photographed when the angle between the first sub-section 11 and the second sub-section 13 is α1, and Figure (b) is a schematic diagram of the scene photographed by the camera module 21 of the electronic device 100 when the first sub-section 11 and the second sub-section 13 are in the state shown in Figure (a). Obviously, at this time, the angle between the first sub-section 11 and the second sub-section 13 is too large, resulting in the inability to fully present the target object in the initial image, and the initial image contains less two-dimensional information, which affects the subsequent acquisition of three-dimensional images. Therefore, when it is necessary to obtain a three-dimensional image of the target object, the processor 30 will control the camera module 21 to shoot the target object within the optimal angle range to obtain multiple frames of initial images of the target object and ensure the integrity of the target object in the initial image.
[0042] Please refer to Figure 5. Assuming that when the camera module 21 shoots the target object, the angles between the first sub-section 11 and the second sub-section 13 are α2, α3 and α4 respectively. Figure (a) is a scene diagram of a user holding the electronic device 100 (taking the upper and lower foldable electronic device 100 shown in Figures 2 and 3 as an example) and shooting at the corresponding angles. Figure (L1) is a display scene diagram of the electronic device 100 after shooting with the angle between the first sub-section 11 and the second sub-section 13 being α2, and Figure (P1) is an initial image of the electronic device 100 obtained when the angle between the first sub-section 11 and the second sub-section 13 is α2. Similarly, Figure (L2) is a display scene diagram of the electronic device 100 after shooting with the angle between the first sub-section 11 and the second sub-section 13 being α3, and Figure (P2) is an initial image of the electronic device 100 obtained when the angle between the first sub-section 11 and the second sub-section 13 is α3. Figure (L3) is a display scene diagram of the electronic device 100 after the angle between the first sub-section 11 and the second sub-section 13 is α4, and Figure (P3) is the initial image obtained by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is α4. Comparing Figures (P1), (P2) and (P3), it can be seen that the target object (Christmas tree) in these three figures is complete, and when the electronic device 100 is at different angles to shoot the target object, the angle and position of the camera module 21 relative to the target object, as well as the distance between the camera module 21 and the target object (i.e., depth information) will change, resulting in different corresponding initial images. Therefore, after the processor 30 controls the camera module 21 to shoot the target object at three angles, three initial images with different depth information can be obtained, and the two-dimensional information contained in the three initial images with different depth information is also different. Therefore, please refer to Figure 6, Figures (P1), (P2) and (P3) are initial images, and Figure (D1) is a three-dimensional image. After acquiring multiple frames of initial images of the target object, the processor 30 can process the multiple frames of initial images, that is, process image (P1), image (P2) and image (P3) to obtain three-dimensional information of the target object (Christmas tree), thereby obtaining a three-dimensional image of the target object (Christmas tree).
[0043] As electronic devices continue to increase in functionality and user demands, the limited information contained in two-dimensional images is increasingly unable to meet user needs. For example, current mobile phones also have facial recognition capabilities. Facial recognition uses a camera to capture images or video streams containing faces, automatically detects and tracks faces within the images, and then performs facial recognition on the detected faces. Human faces are three-dimensional, and two-dimensional images can only capture two-dimensional information. When performing facial recognition based on two-dimensional images, the electronic device can only extract limited facial feature information, which may affect the accuracy of facial recognition and, consequently, the user experience. For another example, the limitations of two-dimensional images can cause user frustration. For example, if a user wants to capture the entire view of an object, they need to photograph the object from multiple angles and switch between photos to see the entire object clearly, which reduces the user experience. The acquisition of three-dimensional images can effectively address these issues. For example, when performing facial recognition, a user can capture multiple frames of initial images taken at different angles to generate a three-dimensional image of the face. The electronic device 100 can then obtain more facial feature information from the three-dimensional image, improving the accuracy of facial recognition and providing a better user experience. Alternatively, after capturing multiple frames of initial images taken at different angles, a three-dimensional image of the target object is obtained, allowing the user to observe the entire target object from the three-dimensional image without being constrained by the limitations of a two-dimensional image, thereby improving the user experience.
[0044] The foldable electronic device 100 and the shooting method of the foldable electronic device of the embodiment of the present application utilize a first sub-section 11 and a second sub-section 13 that can be folded together, and a camera component 20 installed on the main body 10, so that the camera component 20 shoots the target object at different angles to obtain multiple frames of initial images of the target object at different angles, and after processing the multiple frames of initial images of the target object, obtain a three-dimensional image of the target object, so that the user can obtain three-dimensional information of the target object based on the three-dimensional image.
[0045] Referring to FIG. 2 , FIG. 5 , and FIG. 7 , in some embodiments, 01: the camera module 21 photographs the target object when the angles between the first sub-section 11 and the second sub-section 13 are different to obtain an initial image of the target object, which may include:
[0046] 011: Control and drive the first sub-section 11 and the second sub-section 13 to fold relative to each other, and make the angle between the first sub-section 11 and the second sub-section 13 be a plurality of different angles; and
[0047] 013: When the angle between the first sub-section 11 and the second sub-section 13 is at each angle, the camera module 21 is controlled to shoot the target object to obtain multiple frames of initial images of the target object, wherein each angle corresponds to one frame of the initial image.
[0048] Please refer to Figure 2. The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100. The processor 30 is also used to control and drive the first sub-section 11 and the second sub-section 13 to fold relative to each other, and make the angle between the first sub-section 11 and the second sub-section 13 be a plurality of different angles; and when the angle between the first sub-section 11 and the second sub-section 13 is at each angle, the camera module 21 is controlled to shoot the target object to obtain multiple frames of initial images of the target object, wherein each angle corresponds to one frame of the initial image.
[0049] The camera assembly 20 includes only one camera module 21. When acquiring a 3D image, the processor 30 needs to combine 2D information from multiple different initial images to determine the 3D information of the target object. Therefore, the angle between the first subsection 11 and the second subsection 13 needs to be controlled to be multiple different angles. Each time the angle between the first subsection 11 and the second subsection 13 is at a different angle, the camera module 21 is controlled to capture the target object. To obtain a 3D image, the processor 30 first controls the first and second subsections 11 and 13 to fold relative to each other, adjusting the angle between the first and second subsections 11 and 13 according to the angle. Each time the angle between the first and second subsections 11 and 13 is at a different angle, the processor 30 controls the camera module 21 to capture the target object, acquiring multiple initial images of the target object, one for each angle. In this way, 2D information of the target object at different angles can be acquired from the multiple initial images, allowing the processor 30 to determine the 3D information of the target object and thereby obtain a 3D image of the target object.
[0050] Referring to FIG2 , further, in some embodiments, the electronic device 100 further includes a driving component 60 that can drive the first sub-section 11 and the second sub-section 13 to fold relative to each other. Referring to FIG5 and FIG8 , 011: Controlling the driving of the first sub-section 11 and the second sub-section 13 to fold relative to each other may include:
[0051] 0111: Start the driving component 60 according to the input instruction; and
[0052] 0113: Control the drive assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13, and / or control the drive assembly 60 to drive the second sub-section 13 to rotate relative to the first sub-section 11, so that the angle between the first sub-section 11 and the second sub-section 13 is a plurality of angles in sequence.
[0053] Please refer to Figure 2. The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100. The processor 30 is further used to: start the driving component 60 according to the input instruction and control the driving component 60 to drive the first sub-part 11 to rotate relative to the second sub-part 13, and / or control the driving component 60 to drive the second sub-part 13 to rotate relative to the first sub-part 11, so that the angle between the first sub-part 11 and the second sub-part 13 is a plurality of angles in sequence.
[0054] The drive assembly 60 may include a drive member and a transmission member. The drive member is used to generate a driving force, and the transmission member is used to transmit the driving force to the first sub-section 11 or the second sub-section 13, so that the first sub-section 11 and the second sub-section 13 can rotate relative to each other. To facilitate receiving input commands, the electronic device 100 may be provided with a key 70 electrically connected to the processor 30. When a user presses the key 70, the key 70 receives the input command and transmits the input command to the processor 30. The processor 30 then activates the drive assembly 60 and controls the drive assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13 and / or controls the drive assembly 60 to drive the second sub-section 13 to rotate relative to the first sub-section 11. Alternatively, after the key 70 receives the user's input command, the processor 30 may actively read the input command from the key 70. When the processor 30 reads the input command, it activates the drive assembly 60 and controls the drive assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13 and / or controls the drive assembly 60 to drive the second sub-section 13 to rotate relative to the first sub-section 11.
[0055] When the drive assembly 60 drives the first subsection 11 to rotate relative to the second subsection 13, and / or when the drive assembly 60 drives the second subsection 13 to rotate relative to the first subsection 11, the processor 30 can control the angle between the first subsection 11 and the second subsection 13 by controlling the operating time and / or rotation speed of the drive member of the drive assembly 60. The longer the operating time and / or the greater the rotation speed of the drive assembly 60, the greater the change in the angle between the first subsection 11 and the second subsection 13. After the processor 30 obtains the current angle between the first subsection 11 and the second subsection 13 and the target angle to be reached, it can determine the operating time required for the drive assembly 60 to reach the target angle based on the rotation speed of the drive assembly 60. Then, by controlling the drive assembly 60 based on the determined operating time and rotation speed, it can be ensured that the angle between the first subsection 11 and the second subsection 13 is the target angle when the drive assembly 60 stops operating. In this way, the shooting method of the foldable electronic device and the foldable electronic device 100 of the present application can further increase the automation performance of the electronic device 100 while achieving shooting of the target object from multiple angles by utilizing the driving component 60 to drive the first sub-section 11 and the second sub-section 13 to fold relative to each other.
[0056] Please refer to Figure 5. When the camera module 21 shoots the target object, the angles between the first sub-section 11 and the second sub-section 13 are α2, α3 and α4 respectively, and the three angles gradually decrease. When the user presses the button 70, the processor 30 can determine the running time of the drive component 60 between the two adjacent angles (the speed is known) based on the angle difference between the two adjacent angles, so as to control the angles between the first sub-section 11 and the second sub-section 13 to be α2, α3 and α4 in turn. As can be seen from Figure 5, when the angle between the first sub-section 11 and the second sub-section 13 is at different angles, the angle and position of the camera module 21 relative to the target object, as well as the distance between the camera module 21 and the target object will change, so that the corresponding initial images are different. Therefore, the processor 30 can obtain a three-dimensional image based on the two-dimensional information in the three initial images.
[0057] In other embodiments, the drive assembly 60 can be omitted. In this case, the user can manually change the angle between the first sub-section 11 and the second sub-section 13. When it is necessary to obtain a three-dimensional image of the target object, the user continuously changes the angle between the first sub-section 11 and the second sub-section 13, and during this process controls the camera module 21 to capture the target object to obtain multiple frames of initial images of the target object, wherein each initial image corresponds to a different angle between the first sub-section 11 and the second sub-section 13. In this way, the user can adjust the angle between the first sub-section 11 and the second sub-section 13 in a targeted manner according to actual conditions, so that the initial image contains more two-dimensional information of the target object, thereby maximizing the accuracy of the obtained three-dimensional image.
[0058] Referring to FIG. 9 , in some embodiments, 03: the electronic device 100 processes the initial image to obtain a three-dimensional image of the target object, which may include:
[0059] 031: Get the position coordinates of the corresponding pixel point of the preset point of the target object in each initial image in the module coordinate system;
[0060] 033: Obtain multiple three-dimensional coordinates of the preset point in the world coordinate system according to the parameters of the camera assembly 20 and the multiple position coordinates; and
[0061] 035: Obtain a three-dimensional image of the target object based on the three-dimensional coordinates of multiple preset points.
[0062] Referring to FIG. 2 , the aforementioned photographing method for a foldable electronic device can be applied to a foldable electronic device 100. In this case, the processor 30 may be configured to: obtain the position coordinates of a pixel corresponding to a predetermined point of a target object in each initial image in the module coordinate system; obtain multiple three-dimensional coordinates of the predetermined point in the world coordinate system based on the parameters of the camera assembly 20 and the multiple position coordinates; and obtain a three-dimensional image of the target object based on the three-dimensional coordinates of the multiple predetermined points.
[0063] Multiple preset points can be set on the target object. After the camera component 20 shoots the target object, the preset points will have corresponding pixels in the initial image. Multiple frames of initial images are taken from different angles. In different initial images, the depth information corresponding to the corresponding pixels of the same preset point is different. There are multiple types of depth information corresponding to the pixels of a preset point. Different depth information represents different two-dimensional information in the corresponding initial image. Therefore, the position coordinates of the corresponding pixel in the module coordinate system can be obtained based on the two-dimensional information in the initial image corresponding to the different depth information of the same pixel. Please refer to Figure 5, where the origin of the module coordinate system is the optical center of the camera component 20, the X-axis and the Y-axis are parallel to the x-axis and y-axis of the initial image, respectively, and the Z-axis is the optical axis of the camera.
[0064] After obtaining the position coordinates of the corresponding pixel point in the module coordinate system, the depth information of the preset point can be obtained based on the external parameters and internal parameters of the camera component 20, and the position coordinates can be converted to obtain the three-dimensional coordinates of the preset point in the world coordinate system. Among them, the internal parameters are parameters related to the characteristics of the camera component 20 itself, such as the focal length and pixel size of the camera component 20, and the external parameters are parameters of the camera component 20 in the world coordinate system, such as the position and rotation direction of the camera component 20. The world coordinate system is the coordinate system of the entire shooting scene, the origin can be any point in the shooting scene, and the three coordinate axes can be any three mutually orthogonal unit axes. Since the present application uses multiple initial images to obtain a three-dimensional image, the external parameters also include the rotation matrix and translation matrix between the module coordinate systems of the camera module 21 corresponding to each initial image, where the rotation matrix and translation matrix are used to describe the relative relationship between the two module coordinate systems.
[0065] When obtaining the depth information of the preset point, it is also necessary to obtain the relative position between the shooting positions of the camera modules 21 corresponding to each initial image. The relative position between the camera modules 21 can be determined according to the angle at the time of shooting. When there is only one camera module 21, the processor 30 needs to continuously adjust the angle between the first subsection 11 and the second subsection 13 to different angles, and the position of the camera module 21 on the main body 10 is fixed. Therefore, after obtaining the accurate angle of each angle between the first subsection 11 and the second subsection 13, the processor 30 can determine the shooting position of the camera module 21 corresponding to different initial images, thereby determining the relative position between the shooting positions corresponding to different initial images.
[0066] It can be found that when obtaining depth information of a preset point, the angle between the first subsection 11 and the second subsection 13 is crucial. In one embodiment, the processor 30 controls the drive assembly 60 to drive the first subsection 11 to rotate relative to the second subsection 13, and / or to drive the second subsection 13 to rotate relative to the first subsection 11, and multiple angles are determined. Then, the processor 30 can determine the angle between the first subsection 11 and the second subsection 13 based on the operation of the drive assembly 60. In another embodiment, the electronic device 100 can also be provided with an angle detector, and the processor 30 can directly obtain the angle between the first subsection 11 and the second subsection 13 based on the angle detector.
[0067] After obtaining the three-dimensional coordinates of multiple preset points, the processor 30 can fuse the three-dimensional coordinates of the multiple preset points to obtain the three-dimensional coordinates of each part of the target object to determine the three-dimensional information of the target object. Finally, the processor 30 can obtain a three-dimensional image of the target object, thereby realizing the conversion between the initial image and the three-dimensional image, which is convenient for subsequent users to perform certain applications based on the three-dimensional image.
[0068] Referring to Figures 10 and 11, an embodiment of the present application provides another method for photographing a foldable electronic device. The method for photographing a foldable electronic device can be applied to a foldable electronic device 100. The foldable electronic device 100 includes a body 10 and a camera assembly 20 disposed on the body 10. The body 10 includes a first sub-section 11 and a second sub-section 13 that can be folded relative to each other. The camera assembly 20 may include a first camera module 23 and a second camera module 25. The first camera module 23 is located in the first sub-section 11, and the second camera module 25 is located in the second sub-section 13. The photographing method may also include:
[0069] 05: The first camera module 23 and the second camera module 25 shoot the target object to obtain an initial image of the target object; and
[0070] 07: The electronic device 100 processes the initial image to obtain a three-dimensional image of the target object.
[0071] Please refer to Figure 11. The above-mentioned shooting method of the foldable electronic device can be applied to the foldable electronic device 100. At this time, the processor 30 is also used to: control the first camera module 23 and the second camera module 25 to shoot the target object to obtain the initial image of the target object and process the initial image to obtain a three-dimensional image of the target object.
[0072] The electronic device 100 can also be a foldable mobile phone, as shown in Figures 11 and 12. With the folding boundary MM1 as the boundary, the left half of the mobile phone can serve as the first subsection 11, and the right half can serve as the second subsection 13. During use, the electronic device 100 adjusts the angle between the first subsection 11 and the second subsection 13 by adjusting the relative positions of the first subsection 11 and the second subsection 13.
[0073] The installation positions and quantities of the various components of the electronic device 100 (such as the camera module and the screen) are various. Referring to Figures 11 and 12, the electronic device 100 includes a first screen 40 and a second screen 50. In order to enhance the shooting function of the camera assembly 20, the camera assembly 20 includes a first camera module 23 and a second camera module 25. The first screen 40 is arranged on the first side 15 of the body 10, and the first camera module 23, the second camera module 25 and the second screen 50 are arranged on the second side 17 of the body 10, wherein the first camera module 23 is arranged on the first sub-section 11, and the second screen 50 and the second camera module 25 are arranged on the second sub-section 13. At this time, regardless of whether the angle between the first sub-section 11 and the second sub-section 13 changes, the first camera module 23 and the second camera module 25 can shoot the target object from different angles. Of course, in other examples, the second screen 50 can also be omitted.
[0074] Because the first camera module 23 and the second camera module 25 are located at different positions relative to the target object, the first camera module 23 and the second camera module 25 can capture the target object from different angles, resulting in different initial images captured by the first camera module 23 and the second camera module 25. Therefore, the processor 30 can control the first camera module 23 and the second camera module 25 to capture the target object respectively to obtain multiple frames of initial images of the target object, wherein the first initial image captured by the first camera module 23 and the second initial image captured by the second camera module 25 have different shooting angles, thereby obtaining a three-dimensional image of the target object based on the first initial image and the second initial image.
[0075] Furthermore, when the processor 30 controls the first camera module 23 and the second camera module 25 to shoot the target object respectively, the order in which the first camera module 23 and the second camera module 25 shoot the target object is not restricted, that is, the first camera module 23 and the second camera module 25 can shoot at the same time or at different times. It is only necessary to ensure that the first camera module 23 and the second camera module 25 can shoot the target object from different angles. In one embodiment, the processor 30 can process multiple frames of initial images at the same time to obtain a three-dimensional image. At this time, the processor 30 can control the first camera module 23 and the second camera module 25 to shoot the target object at the same time to obtain two frames of initial images at the same time, saving the time for obtaining the initial images, and enabling the processor 30 to process two frames of initial images at the same time, thereby speeding up the processing efficiency of the initial images and the efficiency of obtaining the three-dimensional images. In another embodiment, the processor 30 controls the first camera module 23 and the second camera module 25 to photograph the target object in sequence, that is, the target object is not photographed at the same time. At this time, the processor 30 only needs to process one initial image at a time, so that the load of the processor 30 when processing the initial image is small and the power consumption is also low.
[0076] Please refer to Figure 11. In some embodiments, the first camera module 23 and the second camera module 25 photograph the target object when the angle between the first sub-section 11 and the second sub-section 13 is at a known angle and both are stationary relative to the target object; or the first camera module 23 and the second camera module 25 photograph the target object when the first sub-section 11 and the second sub-section 13 are in the process of relative folding, and at least one of them is moving relative to the target object.
[0077] Because the first camera module 23 and the second camera module 25 are located in different positions, even when the electronic device 100 is stationary relative to the target object, the first camera module 23 and the second camera module 25 will capture the target object at different angles relative to the object. Therefore, when there are two camera modules 21, located in the first sub-section 11 and the second sub-section 13, respectively, a variety of shooting methods are possible.
[0078] In some embodiments, when the angle between the first subsection 11 and the second subsection 13 is at a known angle (i.e., any angle within the optimal angle range) and both are stationary relative to the target object, the processor 30 controls the first camera module 23 and the second camera module 25 to photograph the target object. Since the first camera module 23 is located in the first subsection 11 and the second camera module 25 is located in the second subsection 13, the first initial image captured by the first camera module 23 and the second initial image captured by the second camera module 25 are different. Therefore, a three-dimensional image of the target object can be determined based on the first initial image captured by the first camera module 23 and the second initial image captured by the second camera module 25. For example, referring to Figure 13, the angle between the first subsection 11 and the second subsection 13 is γ1. When the processor 30 controls the first camera module 23 and the second camera module 25 to photograph the target object (Christmas tree), a first initial image (i.e., Figure (P1)) and a second initial image (i.e., Figure (P2)) can be obtained. It can be seen from FIG. 12 that the image ( P1 ) and the image ( P2 ) are different, so that the processor 30 can obtain a three-dimensional image of the target object (Christmas tree) after processing these two initial images.
[0079] In other embodiments, while the first subsection 11 and the second subsection 13 are folded relative to each other, and at least one of them is in motion relative to a target object, the processor 30 controls the first camera module 23 and the second camera module 25 to capture the target object. In this case, the first initial image captured by the first camera module 23 and the second initial image captured by the second camera module 25 are different. If the camera module that is in motion relative to the target object captures multiple frames of images during the motion, and each frame corresponds to a different shooting position, then the multiple frames of images will also be different. Therefore, the processor 30 can arbitrarily select two or more of the initial images for processing, and a three-dimensional image can be obtained after processing. For example, referring to FIG14 , the first camera module 23 is stationary relative to the target object, the second camera module 25 is moving relative to the target object, and when the camera assembly 20 photographs the target object, the angles between the first sub-section 11 and the second sub-section 13 are γ2, γ3, and γ4, respectively. FIG1 is a first initial image, FIG21 is a second initial image obtained by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ2, FIG22 is a second initial image obtained by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ3, and FIG23 is a second initial image obtained by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ4. It can be seen that FIG1, FIG21, FIG22, and FIG23 are different, so that the processor 30 can arbitrarily select two or more of the initial images for processing to obtain a three-dimensional image of the target object (Christmas tree).
[0080] Therefore, the electronic device 100 has more methods of shooting initial images and selecting methods of selecting initial images for processing, so that the processor 30 can control the movement of the first sub-section 11 and the second sub-section 13 in a targeted manner according to the specific shooting scene to ensure that the processor 30 can obtain enough initial images. The subsequent processor 30 processing can select multiple frames of initial images with better quality to obtain a three-dimensional image with better quality.
[0081] Referring to FIG. 11 and FIG. 15 , in some embodiments, 05: the first camera module 23 and the second camera module 25 photograph the target object to obtain an initial image of the target object, which may include:
[0082] 051: Control and drive the first sub-section 11 and the second sub-section 13 to fold relative to each other, and make the angle between the first sub-section 11 and the second sub-section 13 be multiple different angles;
[0083] 052: When the angle between the first sub-section 11 and the second sub-section 13 is at each angle, control the first camera module 23 and the second camera module 25 that moves relative to the target object to photograph the target object to obtain multiple frames of first initial images of the target object, and control the first camera module 23 and the second camera module 25 that is stationary relative to the target object to photograph the target object to obtain one frame of second initial image of the target object, wherein each angle corresponds to one frame of the first initial image, and the initial image includes multiple frames of the first initial image and one frame of the second initial image; or
[0084] 053: Whenever the angle between the first sub-section 11 and the second sub-section 13 is at an angle, one of the first camera module 23 and the second camera module 25 that moves relative to the target object is controlled to shoot the target object to obtain multiple frames of first initial images of the target object, and the other of the first camera module 23 and the second camera module 25 that moves relative to the target object is controlled to shoot the target object to obtain multiple frames of second initial images of the target object, wherein each angle corresponds to one frame of the first initial image and one frame of the second initial image, and the initial image includes multiple frames of the first initial image and multiple frames of the second initial image.
[0085] Referring to FIG. 11 , the above-described photographing method for a foldable electronic device can be applied to a foldable electronic device 100. In this case, the processor 30 is further configured to: control and drive the first sub-section 11 and the second sub-section 13 to fold relative to each other, and to adjust the angle between the first sub-section 11 and the second sub-section 13 to a plurality of different angles. Furthermore, when the angle between the first sub-section 11 and the second sub-section 13 is at each angle, control the first camera module 23 and the second camera module 25 to move relative to the target object to photograph the target object to obtain multiple frames of first initial images of the target object, and control the first camera module 23 and the second camera module 25 to remain stationary relative to the target object to photograph the target object to obtain a frame of second initial image of the target object, wherein each angle corresponds to a frame of the first initial image, and the initial image includes multiple frames of the first initial image and a frame of the second initial image. Or when the angle between the first sub-section 11 and the second sub-section 13 is at each angle, control one of the first camera module 23 and the second camera module 25 to move relative to the target object to shoot the target object to obtain multiple frames of first initial images of the target object, and control the other of the first camera module 23 and the second camera module 25 to move relative to the target object to shoot the target object to obtain multiple frames of second initial images of the target object, wherein each angle corresponds to one frame of the first initial image and one frame of the second initial image, and the initial image includes multiple frames of the first initial image and multiple frames of the second initial image.
[0086] When the processor 30 obtains a three-dimensional image of the target object based on the initial image, it only needs to ensure that the shooting angle corresponding to each frame of the initial image is different. There is no restriction on the camera module that shoots the initial image. The three-dimensional image of the target object can be obtained by processing multiple frames of images from a certain camera module, or by processing multiple frames of images from two camera modules. When adjusting the angle between the first sub-section 11 and the second sub-section 13, there are multiple adjustment methods. One is that one of the first sub-section 11 and the second sub-section 13 moves relative to the target object, and the other is stationary relative to the target object. The other is that both the first sub-section 11 and the second sub-section 13 move relative to the target object. It can be understood that the camera module that is stationary relative to the target object can only shoot the target object from one angle, while the camera module that moves relative to the target object can shoot the target object from multiple angles. Therefore, the selection method of the initial image to be processed corresponding to different adjustment methods is different.
[0087] Please refer to Figure 14. In some embodiments, the first camera module 23 is stationary relative to the target object, and the second camera module 25 moves relative to the target object. When the camera assembly 20 shoots the target object, the angles between the first sub-section 11 and the second sub-section 13 are γ2, γ3 and γ4 respectively. The processor 30 controls the first camera module 23 to capture the target object, obtaining a first initial image (i.e., Figure (P1)). The processor 30 controls the second camera module 25 to capture the target object at each angle between the first sub-section 11 and the second sub-section 13, obtaining multiple second initial images, with each angle corresponding to a second initial image. For example, Figure (P21) is a second initial image captured by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ2, Figure (P22) is a second initial image captured by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ3, and Figure (P23) is a second initial image captured by the electronic device 100 when the angle between the first sub-section 11 and the second sub-section 13 is γ4. The first camera module 23 and the second camera module 25 are in different positions, so the two-dimensional information in the first initial image and the two-dimensional information in each frame of the second initial image are different. Since each frame of the second initial image corresponds to a different angle, the two-dimensional information in each frame of the second initial image is also different. Then, when processing the initial image to obtain a three-dimensional image, there are multiple methods for selecting the initial image to be processed, and it is only necessary to obtain two or more frames of different initial images therefrom. In one embodiment, the processor 30 can process any one frame of the second initial image and the first initial image in Figure (P21), Figure (P22) and Figure (P23), that is, Figure (P1), to obtain a three-dimensional image (Christmas tree) of the target object, that is, Figure (D1). In another embodiment, the processor 30 obtains a three-dimensional image of the target object (Christmas tree) by processing any two frames of the second initial image or all three frames of the second initial image and Figure (P1) in Figure (P21), Figure (P22) and Figure (P23). In yet another embodiment, the processor 30 obtains a three-dimensional image (Christmas tree) of the target object by processing any two frames of the second initial image or all three frames of the second initial image in Figure (P21), Figure (P22) and Figure (P23). In other examples, the first camera module 23 is in motion relative to the target object, while the second camera module 25 is stationary relative to the target object. When the camera assembly 20 photographs the target object, the angles between the first sub-section 11 and the second sub-section 13 are γ2, γ3, and γ4, respectively. In this case, the first initial image has multiple frames, namely, Figure (P11), Figure (P12), and Figure (P13), while the second initial image has only one frame, namely, Figure (P2). The method for selecting the initial image in this case is the same as that described above and will not be repeated here.
[0088] Referring to FIG. 16 , in some other embodiments, the first camera module 23 and the second camera module 25 both move relative to the target object. When the camera assembly 20 photographs the target object, the angles between the first subsection 11 and the second subsection 13 are θ2, θ3, and θ4, respectively. At each angle between the first subsection 11 and the second subsection 13, the processor 30 controls the first camera module 23 and the second camera module 25 to photograph the target object (Christmas tree) to obtain multiple frames of first initial images and multiple frames of second initial images of the target object (Christmas tree), with each angle corresponding to one frame of the first initial image and one frame of the second initial image. The multiple frames of the first initial image are respectively shown in FIG (P11), FIG (P12), and FIG (P13), and the multiple frames of the second initial image are respectively shown in FIG (P21), FIG (P22), and FIG (P23). As can be seen from FIG16 , each initial image corresponds to a different shooting position, resulting in each initial image being different. This allows any two or three different initial images selected from the first and / or second initial images to be processed to obtain a three-dimensional image of the target object (Christmas tree). The processor 30 can use a variety of methods to select the initial images to be processed.
[0089] In one embodiment, the processor 30 processes any two frames of the first initial image or all three frames of the first initial image in Figure (P11), Figure (P12) and Figure (P13), or processes any two frames of the second initial image or all three frames of the second initial image in Figure (P21), Figure (P22) and Figure (P23) to obtain a three-dimensional image of the target object (Christmas tree), namely, Figure (D1).
[0090] In another embodiment, the processor 30 selects one, two, or more initial images from the first and second initial images, respectively, for processing. For example, any one of the first initial images is selected from the multiple first initial images, and any one of the second initial images is selected from the multiple second initial images, and a three-dimensional image is obtained based on the one first initial image and the one second initial image. For another example, one of the first initial images is selected from the multiple first initial images, and any two or three of the second initial images are selected from the multiple second initial images to obtain a three-dimensional image of the target object. Of course, a three-dimensional image of the target object can also be obtained by selecting any two or three of the first initial images from the multiple first initial images, and selecting one of the second initial images from the second initial images, and processing the corresponding initial images. For another example, the processor 30 processes all of the first initial images and all of the second initial images to obtain a three-dimensional image of the target object (Christmas tree).
[0091] In this way, the processor 30 can control the relative folding of the first sub-section 11 and the second sub-section 13 according to a variety of driving methods, and the selection methods of the initial image corresponding to different driving methods may also be different, so that the processor 30 can select the driving method and the selection method according to actual conditions.
[0092] Furthermore, the processor 30 generally only needs to process two frames of initial images to obtain a three-dimensional image. The more initial images that are processed, the more two-dimensional information of the target object that the processor 30 obtains from them, the more comprehensive the three-dimensional information obtained from them, and the more accurate and stereoscopic the three-dimensional image obtained. However, the number of initial images processed needs to be within a reasonable range. Processing too many initial images requires a large amount of calculations, which slows down the acquisition of the three-dimensional image and affects the user experience. Therefore, when the processor 30 processes the initial images, it can reasonably select the number of initial images, such as selecting initial images taken by the camera module when the folding angles differ greatly, so as to ensure the accuracy of the three-dimensional image on the one hand and the acquisition speed of the three-dimensional image on the other hand. For example, in the embodiment shown in Figure 16, when the angles between the first sub-section 11 and the second sub-section 13 are selected as θ2 and θ4 respectively, the first initial image and the second initial image respectively taken by the first camera module 23 and the second camera module 25 are filtered out and processed by the processor 30 to obtain a three-dimensional image; for another example, in the embodiment shown in Figure 13, when the angles between the first sub-section 11 and the second sub-section 13 are selected as γ2 and γ4 respectively, the first initial image and the second initial image respectively taken by the first camera module 23 and the second camera module 25 are filtered out and processed by the processor 30 to obtain a three-dimensional image.
[0093] Referring to FIG. 17 , in some embodiments, 07: processing the initial image to obtain a three-dimensional image of the target object may include:
[0094] 071: Get the position coordinates of the corresponding pixel point of the preset point of the target object in each initial image in the module coordinate system;
[0095] 073: Obtain multiple three-dimensional coordinates of the preset point in the world coordinate system according to the parameters of the camera assembly 20 and the multiple position coordinates; and
[0096] 075: Obtain a three-dimensional image of a target object based on the three-dimensional coordinates of multiple preset points.
[0097] Referring to FIG. 11 , the aforementioned photographing method for a foldable electronic device can be applied to a foldable electronic device 100. In this case, the processor 30 may be configured to: obtain the position coordinates of a pixel corresponding to a predetermined point of a target object in each initial image in the module coordinate system; obtain multiple three-dimensional coordinates of the predetermined point in the world coordinate system based on the parameters of the camera assembly 20 and the multiple position coordinates; and obtain a three-dimensional image of the target object based on the three-dimensional coordinates of the multiple predetermined points.
[0098] Similar to the above 03: the electronic device 100 processes the initial image to obtain a three-dimensional image of the target object, after acquiring multiple frames of images, the three-dimensional coordinates of multiple preset points can be obtained based on the preset points of the target object and the parameters of the camera component 20 to obtain a three-dimensional image of the target object, so that the user can obtain three-dimensional information of the target object based on the three-dimensional image.
[0099] At this time, the camera assembly 20 includes a first camera module 23 and a second camera module 25. Therefore, the external parameters of the camera assembly 20 include the rotation matrix between the module coordinate system of the first camera module 23 and the module coordinate system of the second camera module 25. When determining the relative position of the first camera module 23 and the second camera module 25, when the body 10 is fully unfolded, the distance between the first camera module 23 and the second camera module 25 is determined. Therefore, after obtaining the accurate angle between the first sub-section 11 and the second sub-section 13, the processor 30 can determine the distance between the first camera module 23 and the second camera module 25, thereby ensuring the accuracy of the obtained external parameters of the camera assembly 20.
[0100] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0101] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.
[0102] The logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable storage medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including processor 30, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable storage media include the following: an electrical connection having one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable storage medium may even be paper or other suitable medium on which the program is printed, since the program can be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner as necessary, and then stored in a computer memory.
[0103] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0104] Those skilled in the art will appreciate that all or part of the steps carried out in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment. In addition, the various functional units in the various embodiments of the present application can be integrated into a processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. The storage medium mentioned above can be a read-only memory, a disk or an optical disk, etc.
[0105] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are illustrative and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application. The scope of the present application is defined by the claims and their equivalents.
Claims
1. A shooting method for a foldable electronic device, the electronic device comprising a body and a camera assembly, the camera assembly comprising a camera module, the body comprising a first sub-section and a second sub-section that can be folded relative to each other, the camera module being arranged in the first sub-section or the second sub-section; characterized in that: The shooting method comprises: The camera module photographs the target object when the angles between the first sub-section and the second sub-section are different, so as to obtain an initial image of the target object; and The electronic device processes the initial image to obtain a three-dimensional image of the target object.
2. The shooting method according to claim 1, characterized in that: The camera module photographs the target object when the angles between the first sub-unit and the second sub-unit are different to obtain an initial image of the target object, including: Controlling and driving the first sub-section and the second sub-section to fold relative to each other, and making the angle between the first sub-section and the second sub-section to be a plurality of different angles; and When the angle between the first sub-section and the second sub-section is at each angle, the camera module is controlled to shoot the target object to obtain multiple frames of initial images of the target object, wherein each angle corresponds to one frame of the initial image.
3. The shooting method according to claim 2, characterized in that: The electronic device further comprises a driving component; the controlling and driving the relative folding of the first sub-section and the second sub-section comprises: Activate the driving component according to the input command; and The driving assembly is controlled to drive the first sub-section to rotate relative to the second sub-section, and / or the driving assembly is controlled to drive the second sub-section to rotate relative to the first sub-section, so that the angle between the first sub-section and the second sub-section is a plurality of angles in sequence.
4. The shooting method according to any one of claims 1 to 3, characterized in that: Processing the initial image to obtain a three-dimensional image of the target object includes: Obtaining the position coordinates of the corresponding pixel points of the preset point of the target object in each of the initial images in the module coordinate system; According to the parameters of the camera assembly and the plurality of position coordinates, a plurality of three-dimensional coordinates of the preset point in a world coordinate system are acquired; and The three-dimensional image of the target object is acquired according to the three-dimensional coordinates of the plurality of preset points.
5. A shooting method for a foldable electronic device, the electronic device comprising a body and a camera assembly, the body comprising a first sub-section and a second sub-section that can be folded relative to each other, the camera assembly comprising a first camera module and a second camera module, the first camera module is located in the first sub-section, and the second camera module is located in the second sub-section; characterized in that: The shooting method comprises: The first camera module and the second camera module shoot a target object to obtain an initial image of the target object; and The electronic device processes the initial image to obtain a three-dimensional image of the target object.
6. The shooting method according to claim 5, characterized in that: The first camera module and the second camera module shoot the target object when the angle between the first sub-section and the second sub-section is at a known angle and both are stationary relative to the target object; or The first camera module and the second camera module shoot the target object when the first sub-section and the second sub-section are folded relative to each other and at least one of them is moving relative to the target object.
7. The shooting method according to claim 5, characterized in that: The first camera module and the second camera module shoot a target object to obtain an initial image of the target object, including: Controlling and driving the first sub-section and the second sub-section to fold relative to each other, and making the angle between the first sub-section and the second sub-section to be a plurality of different angles; and When the angle between the first sub-unit and the second sub-unit is at each angle, control the one of the first camera module and the second camera module that moves relative to the target object to shoot the target object to obtain multiple frames of first initial images of the target object, and control the one of the first camera module and the second camera module that is stationary relative to the target object to shoot the target object to obtain a frame of second initial image of the target object, wherein each angle corresponds to a frame of the first initial image, and the initial image includes the multiple frames of the first initial image and one frame of the second initial image; or When the angle between the first sub-unit and the second sub-unit is at each angle, one of the first camera module and the second camera module that moves relative to the target object is controlled to shoot the target object to obtain multiple frames of first initial images of the target object, and the other of the first camera module and the second camera module that moves relative to the target object is controlled to shoot the target object to obtain multiple frames of second initial images of the target object, wherein each angle corresponds to one frame of the first initial image and one frame of the second initial image, and the initial images include multiple frames of the first initial image and multiple frames of the second initial image.
8. The shooting method according to any one of claims 5 to 7, characterized in that: Processing the initial image to obtain a three-dimensional image of the target object includes: Obtaining the position coordinates of the corresponding pixel points of the preset point of the target object in each of the initial images in the module coordinate system; According to the parameters of the camera assembly and the plurality of position coordinates, a plurality of three-dimensional coordinates of the preset point in a world coordinate system are acquired; and The three-dimensional image of the target object is acquired according to the three-dimensional coordinates of the plurality of preset points.
9. A foldable electronic device, characterized in that: The electronic device comprises: A body, the body comprising a first sub-section and a second sub-section capable of being folded relative to each other; A camera assembly, the camera assembly comprising a camera module, the camera module being installed in the first sub-unit or the second sub-unit; and One or more processors, wherein the one or more processors are used to execute the shooting method according to any one of claims 1 to 4.
10. A foldable electronic device, characterized in that: The electronic device comprises: A body, the body comprising a first sub-section and a second sub-section capable of being folded relative to each other; A camera assembly, the camera assembly comprising a first camera module and a second camera module, the first camera module and the second camera module are respectively located in the first sub-section and the second sub-section; and One or more processors, wherein the one or more processors are used to execute the shooting method described in any one of claims 5-8.
Citation Information
Patent Citations
Picture shooting method and mobile terminals
CN106162150A
Image photographing method and terminal thereof
CN109151442A
Photographing method and electronic device
CN109274824A
Three -dimensional cell -phone of shooing
CN205901976U
Position attitude measurement device and position attitude measurement program
JP2011238048A
