Shooting method of foldable electronic equipment and foldable electronic equipment
By using foldable sub-components and camera components on foldable electronic devices to shoot at different angles, the problem of only obtaining 2D images in the existing technology is solved, and the acquisition of three-dimensional images is realized, improving the amount of information and face recognition. accuracy.
Patent Information
- Application Number
- CN202310291930.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-21
- Publication Date
- 2024-09-24
AI Technical Summary
Existing electronic devices can only shoot with one camera component, and the resulting image is a 2D plane, unable to obtain three-dimensional information of the target object, which limits the amount of information users can obtain and the accuracy of face recognition.
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 information, improves the accuracy of face recognition and user experience, and allows users to obtain full picture information of target objects.
Smart Images

Figure CN118694908A
Abstract
Description
Technical Field
[0001] The present application relates to the field of imaging technology, and in particular to a photographing method of a foldable electronic device and a foldable electronic device. Background Art
[0002] Nowadays, people use electronic devices including camera components to take photos more and more frequently. However, most of these electronic devices use one camera component to take photos of target objects, and realize 2D plane imaging based on this camera component. The obtained image is usually a plane image, from which only two-dimensional information of the target object can be obtained, so that users cannot obtain three-dimensional information of the target object in the physical world based on the image. Summary of the invention
[0003] Embodiments of the present application provide a photographing method of a foldable electronic device and a foldable electronic device.
[0004] A shooting method of an embodiment of the present application can be applied to a foldable electronic device, the electronic device includes a body and a camera assembly, the camera assembly includes a camera module, the body includes a first sub-section and a second sub-section that can be folded relative to each other, and the camera module is arranged in the first sub-section or the second sub-section. 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.
[0005] 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, and the camera module is installed in the first sub-section or the second sub-section. One or more of the 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.
[0006] Another shooting method of the embodiment of the present application can be applied to a foldable electronic device, the electronic device includes a body and a camera assembly, the 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, the first camera module is located in the first sub-section, and the second camera module is located in the second sub-section. 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.
[0007] Another foldable electronic device of 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.
[0008] The shooting method of the foldable electronic device and the foldable electronic device of the embodiment of the present application use the mutually foldable first sub-section and the second sub-section, and the camera assembly installed on the body, so that the camera assembly shoots the target object at different angles to obtain 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, so that the user can obtain three-dimensional information of the target object according to the three-dimensional image.
[0009] 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 the practice of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] 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:
[0011] Figure 1 is a flowchart of a method for photographing a foldable electronic device according to some embodiments of the present application;
[0012] Figure 2 is a schematic structural diagram of a foldable electronic device in some embodiments of the present application in a partially folded state;
[0013] Figure 3 yes Figure 2 A schematic structural diagram of the foldable electronic device shown in a fully unfolded state;
[0014] Figure 4 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;
[0015] Figure 5 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;
[0016] Figure 6 is a schematic diagram of initial image processing of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0017] Figure 7 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0018] Figure 8 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0019] Fig. 9 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0020] Fig.10 is a flowchart of a method for photographing a foldable electronic device according to other embodiments of the present application;
[0021] Fig.11 is a schematic structural diagram of a foldable electronic device in a partially folded state according to some other embodiments of the present application;
[0022] Fig.12 yes Fig.11 A schematic diagram of the structure of the foldable electronic device shown is in a fully unfolded state;
[0023] Fig.13 It is a schematic diagram of initial image acquisition and processing of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0024] Fig.14 is a schematic diagram of initial image acquisition and processing of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0025] Fig.15 is a flowchart of a method for photographing a foldable electronic device according to certain embodiments of the present application;
[0026] Fig.16 is a schematic diagram of initial image acquisition and processing of a shooting method of a foldable electronic device according to certain embodiments of the present application;
[0027] Fig.17 It is a flowchart of a shooting method of a foldable electronic device according to certain embodiments of the present application. DETAILED DESCRIPTION
[0028] The following is a further description of the embodiments of the present application in conjunction with the accompanying drawings. The same or similar reference numerals in the accompanying drawings represent the same or similar elements or elements with the same or similar functions from beginning to end. In addition, the embodiments of the present application described below in conjunction with the accompanying drawings are exemplary and are only used to explain the embodiments of the present application, and cannot be understood as limiting the present application.
[0029] Electronic devices generally use a camera component to shoot a target object to obtain an image of the target object. However, today's electronic devices generally use a camera component to shoot, so the resulting image is usually a flat image, from which only two-dimensional information of the target object can be obtained, and the third-dimensional information in the physical world (i.e., the distance between the target object and the electronic device) cannot be obtained based on the image, which makes the electronic device obtain less information from the image. In order to solve this problem, the embodiment of the present application provides a shooting method for a foldable electronic device and a foldable electronic device 100 ( Figures 2 to 5 Show).
[0030] See also Figure 1 and Figure 2 The embodiment of the present application provides a photographing method of a foldable electronic device, which 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 module 21 is disposed on the first sub-section 11 or the second sub-section 13 ( Figure 2 In the embodiment shown, the camera module 21 is disposed in the first sub-unit 11). The shooting method includes:
[0031] 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
[0032] 03: The electronic device 100 processes the initial image to obtain a three-dimensional image of the target object.
[0033] See also 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.
[0034] The electronic device 100 includes but is not limited to a structure having two foldable parts such as a mobile phone, a tablet computer, a camera, a video camera, a personal digital assistant, a wearable device, an intelligent robot, an intelligent vehicle, etc. Among them, the wearable device includes a smart bracelet, a smart watch, smart glasses, etc.
[0035] The body 10 is the main body of the electronic device 100, and may include components between the housing and the screen. According to the foldable feature of the electronic device 100, the body 10 includes a first sub-section 11 and a second sub-section 13 that can be folded relative to each other. If the electronic device 100 is a mobile phone that can be folded up and down, such as Figure 2 and Figure 3 As shown, with the folding boundary MM1 as the boundary, the upper half of the mobile phone can be used as the first sub-section 11, and the lower half can be used as the second sub-section 13.
[0036] The camera assembly 20 is a device for obtaining an initial image based on the principle of optical imaging. The initial image obtained by the camera assembly 20 is usually a 2D plane image. There are many types of camera assemblies 20. For example, the camera assembly 20 may include a main camera and a secondary camera, for example, the rear camera of a mobile phone is the main 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 taken by the camera assembly 20, the camera assembly 20 may include a color camera and a black and white camera.
[0037] The camera module 21 is disposed in the first sub-section 11 or the second sub-section 13. For example, when the body 10 is fully unfolded, the body 10 includes a first side 15 and a second side 17 opposite to each other. Figure 2 and Figure 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.
[0038] In one embodiment, see Figure 2 and Figure 3 In order to facilitate the user to understand the information of the electronic device 100 through the screen when the body 10 is in the unfolded state and the folded state, the electronic device 100 may include a first screen 40 and a second screen 50. Among them, the first screen 40 is arranged on the first side 15 of the body 10, and the second screen 50 and the camera assembly 20 are arranged on the second side 17 of the body 10. At this time, the camera assembly 20 includes a camera module 21, which is a main camera, and the camera module 21 is arranged in the first sub-section 11. Of course, in other examples, the second screen 50 can be omitted.
[0039] "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 acquires a three-dimensional image, it needs to combine the initial images acquired by photographing the target object from different angles to obtain the three-dimensional information of the target object. When the camera module 21 photographs the target object, the angle between the first subsection 11 and the second subsection 13 needs to be any angle within the optimal angle range for the electronic device 100 to fully photograph the target object. If the angle between the first subsection 11 and the second subsection 13 exceeds the optimal angle range, the initial image will only contain a portion of the surface of the target object. Figure 4 As shown, 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 completely capture the target object only when the angle between the first subsection 11 and the second subsection 13 is within [β1, β2]. Figure 4 Figure (a) is a scene diagram captured when a user holds the electronic device 100 and the angle between the first subsection 11 and the second subsection 13 is α1, and Figure (b) is a scene schematic diagram captured by the camera module 21 of the electronic device 100 when the first subsection 11 and the second subsection 13 are in the state shown in Figure (a). Obviously, at this time, the angle between the first subsection 11 and the second subsection 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 controls 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.
[0040] See also Figure 5 , assuming that when the camera module 21 takes a picture of the target object, the angles between the first sub-section 11 and the second sub-section 13 are α2, α3 and α4 respectively. FIG. (a) shows a user holding the electronic device 100 (with Figure 2 and Figure 31. The upper and lower foldable electronic device 100 shown in the figure is taken as an example), and scene diagrams taken at corresponding angles. Figure (L1) is a display scene diagram of the electronic device 100 after being photographed at an angle of α2 between the first subsection 11 and the second subsection 13, and Figure (P1) is an initial image of the electronic device 100 obtained when the angle between the first subsection 11 and the second subsection 13 is α2. Similarly, Figure (L2) is a display scene diagram of the electronic device 100 after being photographed at an angle of α3 between the first subsection 11 and the second subsection 13, and Figure (P2) is an initial image of the electronic device 100 obtained when the angle between the first subsection 11 and the second subsection 13 is α3. Figure (L3) is a display scene diagram of the electronic device 100 after being photographed at an angle of α4 between the first subsection 11 and the second subsection 13, and Figure (P3) is an initial image of the electronic device 100 obtained when the angle between the first subsection 11 and the second subsection 13 is α4. By comparing Figure (P1), Figure (P2) and Figure (P3), it can be seen that the target objects (Christmas trees) in these three figures are all 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 combine Figure 6 , Figure (P1), Figure (P2) and Figure (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 Figure (P1), Figure (P2) and Figure (P3) to obtain three-dimensional information of the target object (Christmas tree), thereby obtaining a three-dimensional image of the target object (Christmas tree).
[0041] With the continuous increase in the functions of electronic devices and the increasing requirements of users for electronic devices, the limited information contained in two-dimensional images is increasingly difficult to meet the needs of users. For example, current mobile phones also have face recognition functions. The face recognition function uses a camera component to collect images or video streams containing faces, and automatically detects and tracks faces in the image, and then performs face recognition on the detected faces. A face is three-dimensional, and only two-dimensional information can be obtained from a two-dimensional image. When performing face recognition based on a two-dimensional image, the facial feature information extracted by the electronic device is limited, which may affect the accuracy of face recognition and thus affect the user's experience. For another example, the limitations of two-dimensional images can cause trouble to users. For example, when a user wants to record the full appearance of a target object, he needs to shoot the target object from multiple angles and switch back and forth when viewing the photos to see the full appearance of the target object, thereby reducing the user's experience. The acquisition of three-dimensional images can solve the above problems well. For example, when performing face recognition, the user can take multiple frames of initial images at different angles to generate a three-dimensional image of the face. The electronic device 100 can obtain more facial feature information from the three-dimensional image to improve the accuracy of face recognition, so that the user's experience is better. Alternatively, after taking multiple frames of initial images at different angles, a three-dimensional image of the target object is obtained, so that the user can observe the full appearance of the target object based on the three-dimensional image without being constrained by the limitations of the two-dimensional image, thereby improving the user's experience.
[0042] The foldable electronic device 100 and the shooting method of the foldable electronic device of the embodiment of the present application utilize the first sub-section 11 and the second sub-section 13 that can be folded to each other, and the 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, a three-dimensional image of the target object is obtained, so that the user can obtain three-dimensional information of the target object based on the three-dimensional image.
[0043] See also Figure 2 , Figure 5 and Figure 7 In some embodiments, 01: the camera module 21 photographs the target object when the angle between the first sub-section 11 and the second sub-section 13 is different to obtain an initial image of the target object, which may include:
[0044] 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
[0045] 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.
[0046] See also Figure 2 The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100, and 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, control the camera module 21 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.
[0047] The camera assembly 20 includes only one camera module 21, and the processor 30 needs to combine the two-dimensional information in multiple frames of different initial images to determine the three-dimensional information of the target object when acquiring a three-dimensional image. Therefore, it is necessary to control the angle between the first sub-section 11 and the second sub-section 13 to be multiple different angles, and 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 at an angle. When a three-dimensional image is required, the processor 30 will first control and drive the first sub-section 11 and the second sub-section 13 to fold relative to each other to adjust the angle between the first sub-section 11 and the second sub-section 13 according to different angles. When the angle between the first sub-section 11 and the second sub-section 13 is at an angle, the processor 30 will control the camera module 21 to shoot the target object to obtain multiple frames of initial images of the target object, wherein each angle corresponds to one frame of initial image. In this way, in multiple frames of initial images, the two-dimensional information of the target object at different angles can be obtained, so that the processor 30 can determine the three-dimensional information of the target object, thereby obtaining a three-dimensional image of the target object.
[0048] See also Figure 2 Furthermore, in some embodiments, the electronic device 100 further includes a driving component 60, and the driving component 60 can drive the first sub-section 11 and the second sub-section 13 to fold relative to each other. Figure 5 and Figure 8 , 011: Controlling and driving the first sub-section 11 and the second sub-section 13 to fold relative to each other may include:
[0049] 0111: starting the driving component 60 according to the input instruction; and
[0050] 0113: Control the driving assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13, and / or control the driving 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.
[0051] See also Figure 2 The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100, and the processor 30 is also used to: start the driving component 60 according to the input instruction and control the driving component 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13, and / or control the driving component 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.
[0052] The driving assembly 60 may include a driving member and a transmission member, the driving 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. In order to facilitate receiving input instructions, the electronic device 100 may be provided with a key 70 electrically connected to the processor 30. When the user presses the key 70, the key 70 receives the input instruction and transmits the input instruction to the processor 30, and then the processor 30 starts the driving assembly 60, and controls the driving assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13, and / or controls the driving 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 input instruction of the user, the processor 30 can actively read the input instruction from the key 70. When the processor 30 reads the input instruction, it starts the driving assembly 60 and controls the driving assembly 60 to drive the first sub-section 11 to rotate relative to the second sub-section 13, and / or controls the driving assembly 60 to drive the second sub-section 13 to rotate relative to the first sub-section 11.
[0053] When the drive assembly 60 drives the first sub-section 11 to rotate relative to the second sub-section 13, and / or the drive assembly 60 drives the second sub-section 13 to rotate relative to the first sub-section 11, the processor 30 can control the angle between the first sub-section 11 and the second sub-section 13 by controlling the running time and / or the rotation speed of the driving member of the drive assembly 60. The longer the running time of the drive assembly 60 and / or the greater the rotation speed, the greater the change in the angle between the first sub-section 11 and the second sub-section 13. After the processor 30 obtains the current angle between the first sub-section 11 and the second sub-section 13 and the target angle to be reached, the drive assembly 60 needs to run for a certain time when the angle between the first sub-section 11 and the second sub-section 13 reaches the target angle according to the rotation speed of the drive assembly 60. Then, after the drive assembly 60 is controlled according to the determined running time and rotation speed, it can be ensured that when the drive assembly 60 stops running, the angle between the first sub-section 11 and the second sub-section 13 is the target angle. 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.
[0054] See also Figure 5 , when the camera module 21 takes a picture of the target object, the angles between the first subsection 11 and the second subsection 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) according to the angle difference between the two adjacent angles, so as to control the angles between the first subsection 11 and the second subsection 13 to be α2, α3 and α4 in turn. Figure 5 It can be seen that when the angle between the first sub-unit 11 and the second sub-unit 13 is different, 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.
[0055] In other embodiments, the driving component 60 can be omitted, and in this case, the user can manually change the angle between the first sub-unit 11 and the second sub-unit 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-unit 11 and the second sub-unit 13, and in this process controls the camera module 21 to shoot the target object to obtain multiple frames of initial images of the target object, wherein the angle between the first sub-unit 11 and the second sub-unit 13 corresponding to each frame of the initial image is different. In this way, the user can adjust the angle between the first sub-unit 11 and the second sub-unit 13 in a targeted manner according to the actual situation, so that the two-dimensional information of the target object in the initial image is more, thereby improving the accuracy of the obtained three-dimensional image as much as possible.
[0056] See also 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:
[0057] 031: Get the position coordinates of the corresponding pixel points of the preset point of the target object in each initial image in the module coordinate system;
[0058] 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
[0059] 035: Obtain a three-dimensional image of the target object based on the three-dimensional coordinates of multiple preset points.
[0060] See also Figure 2 The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100. In this case, the processor 30 can be used to: obtain 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. According to the parameters of the camera component 20 and the multiple position coordinates, obtain multiple three-dimensional coordinates of the preset point in the world coordinate system. And according to the three-dimensional coordinates of the multiple preset points, obtain a three-dimensional image of the target object.
[0061] Multiple preset points can be set on the target object. After the camera assembly 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 means 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 combine Figure 5 , where the origin of the module coordinate system is the optical center of the camera assembly 20, the X-axis and the Y-axis are parallel to the x-axis and the y-axis of the initial image respectively, and the Z-axis is the optical axis of the camera.
[0062] 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 according to the external parameters and internal parameters of the camera component 20, and the position coordinates are 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. Among them, 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, wherein the rotation matrix and translation matrix are used to describe the relative relationship between the two module coordinate systems.
[0063] 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 module 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.
[0064] It can be found that when obtaining the depth information of the preset point, the angle between the first subsection 11 and the second subsection 13 is crucial. In one embodiment, the processor 30 drives the first subsection 11 to rotate relative to the second subsection 13 and / or drives the second subsection 13 to rotate relative to the first subsection 11 by controlling the driving component 60, and multiple angles are determined, then the processor 30 can determine the angle between the first subsection 11 and the second subsection 13 according to the operation of the driving component 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 according to the angle detector.
[0065] 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 the 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.
[0066] See also Fig.10 and Fig.11 The embodiment of the present application provides another shooting method of a foldable electronic device, which can be applied to a foldable electronic device 100, and 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, and 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 shooting method may also include:
[0067] 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
[0068] 07: The electronic device 100 processes the initial image to obtain a three-dimensional image of the target object.
[0069] See also Fig.11 The shooting method of the above-mentioned 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.
[0070] The electronic device 100 may also be a foldable mobile phone. Fig.11 and Fig.12 As shown, with the folding boundary MM1 as the boundary, the left half of the mobile phone can be used as the first sub-section 11, and the right half can be used as the second sub-section 13. When used, the electronic device 100 adjusts the angle between the first sub-section 11 and the second sub-section 13 by adjusting the relative position of the first sub-section 11 and the second sub-section 13.
[0071] The installation positions and quantities of the components of the electronic device 100 (such as the camera module and the screen) are various. Fig.11 and Fig.12The 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.
[0072] Since 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 shoot the target object from different angles, so that the initial image shot by the first camera module 23 and the initial image shot by the second camera module 25 are different. Therefore, the processor 30 can control the first camera module 23 and the second camera module 25 to shoot the target object respectively to obtain multiple frames of initial images of the target object, wherein the first initial image shot by the first camera module 23 and the second initial image shot by the second camera module 25 have different shooting angles, so that a three-dimensional image of the target object can be obtained according to the first initial image and the second initial image.
[0073] 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 limited, that is, the first camera module 23 and the second camera module 25 can shoot at the same time or at different times, and 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, so as to obtain two frames of initial images at the same time, save the time of obtaining the initial images, and enable 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 acquisition efficiency of 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.
[0074] See also Fig.11In 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 folded relative to each other and at least one of them is moving relative to the target object.
[0075] Since the first camera module 23 and the second camera module 25 are located at different positions, even when the electronic device 100 is stationary relative to the target object, when the first camera module 23 and the second camera module 25 shoot the target object, the angles of the first camera module 23 and the second camera module 25 relative to the object are different. Therefore, when there are two camera modules 21, which are respectively located in the first sub-unit 11 and the second sub-unit 13, there are many shooting methods.
[0076] 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 shoot 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 shot by the first camera module 23 and the second initial image shot by the second camera module 25 are different at this time, so the three-dimensional image of the target object can be determined based on the first initial image shot by the first camera module 23 and the second initial image shot by the second camera module 25. For example, refer to Fig.13 , the angle between the first sub-unit 11 and the second sub-unit 13 is γ1. When the processor 30 controls the first camera module 23 and the second camera module 25 to shoot the target object (Christmas tree), the first initial image (i.e., Figure (P1)) and the second initial image (i.e., Figure (P2)) can be obtained. Fig.12 It can be seen that Figure (P1) and Figure (P2) are different, so that after processing these two initial images, the processor 30 can obtain a three-dimensional image of the target object (Christmas tree).
[0077] In other embodiments, during the process of relative folding of the first subsection 11 and the second subsection 13, and when at least one of them is moving relative to a target object, the processor 30 controls the first camera module 23 and the second camera module 25 to shoot the target object. At this time, the first initial image shot by the first camera module 23 and the second initial image shot by the second camera module 25 are different. If the camera module moving relative to the target object shoots multiple frames of images during the movement, and the shooting positions corresponding to each frame of the image are different, then the multiple frames of images will also be different. Therefore, the processor 30 can arbitrarily select two or more frames of the initial images for processing, and a three-dimensional image can be obtained after processing. For example, please refer to Fig.14 , the first camera module 23 is stationary relative to the target object, the second camera module 25 moves relative to the target object, and 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, Figure (P1) is the first initial image, Figure (P21) is the 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, Figure (P22) is the 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 Figure (P23) is the 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 Figure (P1), Figure (P21), Figure (P22) and Figure (P23) are different, so that the processor 30 can arbitrarily select two or more frames of the initial image to process to obtain a three-dimensional image of the target object (Christmas tree).
[0078] 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 processor 30 can then select multiple frames of initial images with better quality to obtain a three-dimensional image with better quality.
[0079] See also Fig.11 and Fig.15 In some embodiments, 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, which may include:
[0080] 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 a plurality of different angles;
[0081] 052: When the angle between the first sub-section 11 and the second sub-section 13 is at each angle, control the one of the first camera module 23 and the second camera module 25 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 23 and the second camera module 25 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 multiple frames of the first initial image and one frame of the second initial image; or
[0082] 053: When the angle between the first sub-section 11 and the second sub-section 13 is at each 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.
[0083] See also Fig.11 , the shooting method of the foldable electronic device can be applied to the foldable electronic device 100, in which case the processor 30 is further used to: control and drive the first sub-unit 11 and the second sub-unit 13 to fold relative to each other, and make the angle between the first sub-unit 11 and the second sub-unit 13 be a plurality of different angles. And when the angle between the first sub-unit 11 and the second sub-unit 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 shoot the target object to obtain multiple frames of the first initial image 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 shoot the target object to obtain a frame of the 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 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 other of the first camera module 23 and the second camera module 25 that moves 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.
[0084] 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 of a certain camera module, or by processing multiple frames of images of 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.
[0085] See also Fig.14In 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 photographs 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 shoot the target object, obtains a frame of the first initial image (i.e., Figure (P1)), and controls the second camera module 25 to shoot the target object when the angle between the first sub-section 11 and the second sub-section 13 is at an angle, obtains multiple frames of the second initial image, and each angle corresponds to a frame of the second initial image, that is, Figure (P21) is the second initial image obtained when the angle between the first sub-section 11 and the second sub-section 13 of the electronic device 100 is γ2, Figure (P22) is the second initial image obtained when the angle between the first sub-section 11 and the second sub-section 13 of the electronic device 100 is γ3, and Figure (P23) is the second initial image obtained when the angle between the first sub-section 11 and the second sub-section 13 of the electronic device 100 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 the angles corresponding to each frame of the second initial image are different, 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 many 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 the 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 another embodiment, the processor 30 obtains the 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 in Figure (P21), Figure (P22) and Figure (P23). In other examples, the first camera module 23 moves relative to the target object, the second camera module 25 is stationary relative to the target object, and when the camera assembly 20 shoots the target object, the angles between the first sub-unit 11 and the second sub-unit 13 are γ2, γ3, and γ4, respectively. At this time, the first initial image has multiple frames, namely, Figure (P11), Figure (P12), and Figure (P13), and the second initial image has only one frame, namely, Figure (P2). At this time, the selection method of the initial image is the same as the above selection method, which will not be repeated here.
[0086] See also Fig.16In 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. When the angle between the first subsection 11 and the second subsection 13 is at each angle, 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), and each angle corresponds to a frame of the first initial image and a frame of the second initial image. The multiple frames of the first initial images are Figure (P11), Figure (P12), and Figure (P13), respectively, and the multiple frames of the second initial images are Figure (P21), Figure (P22), and Figure (P23), respectively. From Fig.16 It can be seen that the shooting position corresponding to each frame of the initial image is different, so that each frame of the initial image is different, so that any two or three frames of different initial images are selected from the first initial image and / or the second initial image for processing, and a three-dimensional image of the target object (Christmas tree) can be obtained. At this time, the processor 30 can select the initial image to be processed in a variety of ways.
[0087] 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).
[0088] In another embodiment, the processor 30 selects one, two or more frames of initial images from the first initial image and the second initial image for processing. For example, any one frame of the first initial image is selected from the multiple frames of the first initial image, and any one frame of the second initial image is selected from the multiple frames of the second initial image, and a three-dimensional image is obtained based on the one frame of the first initial image and the one frame of the second initial image. For another example, one frame of the first initial image is selected from the multiple frames of the first initial image, and any two frames of the second initial image or three frames of the second initial image are selected from the multiple frames of the second initial image to obtain a three-dimensional image of the target object. Of course, any two frames of the first initial image or three frames of the first initial image are selected from the multiple frames of the first initial image, and one frame of the second initial image is selected from the second initial image, and the corresponding initial images are processed to obtain a three-dimensional image of the target object. For another example, the processor 30 processes all the first initial images and all the second initial images to obtain a three-dimensional image of the target object (Christmas tree).
[0089] 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.
[0090] Furthermore, the processor 30 generally only needs to process two frames of initial images to obtain a three-dimensional image, and the more initial images that are processed, the more two-dimensional information of the target object that the processor 30 obtains therefrom, and the more comprehensive the three-dimensional information obtained therefrom, the more accurate the obtained three-dimensional image will be, and the stronger the stereoscopic sense will be. However, the number of initial images processed needs to be within a reasonable range. Processing too many initial images requires a lot of calculations, which makes the three-dimensional image acquisition speed slow, thereby affecting the user experience. Therefore, when the processor 30 processes the initial images, the number of initial images can be reasonably selected, such as selecting the 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 ensure that the speed of obtaining the three-dimensional image is not too low on the other hand. For example, Fig.16 In the embodiment shown, 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 screened out and processed by the processor 30 to obtain a three-dimensional image; for another example, Fig.13 In the illustrated embodiment, when the angles between the first subsection 11 and the second subsection 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 screened out and processed by the processor 30 to obtain a three-dimensional image.
[0091] See also Fig.17 In some embodiments, 07: processing the initial image to obtain a three-dimensional image of the target object may include:
[0092] 071: Get the position coordinates of the corresponding pixel points of the preset point of the target object in each initial image in the module coordinate system;
[0093] 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
[0094] 075: Obtain a three-dimensional image of a target object based on the three-dimensional coordinates of multiple preset points.
[0095] See also Fig.11The above-mentioned shooting method of a foldable electronic device can be applied to a foldable electronic device 100. In this case, the processor 30 can be used to: obtain 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. According to the parameters of the camera component 20 and the multiple position coordinates, obtain multiple three-dimensional coordinates of the preset point in the world coordinate system. And according to the three-dimensional coordinates of the multiple preset points, obtain a three-dimensional image of the target object.
[0096] 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 the three-dimensional image of the target object, so that the user can obtain the three-dimensional information of the target object based on the three-dimensional image.
[0097] At this time, the camera assembly 20 includes the first camera module 23 and the second camera module 25, so 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, so after obtaining the accurate angle of the 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 correctness of the external parameters of the camera assembly 20 obtained.
[0098] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0099] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes 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 not be performed in 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 technicians in the technical field to which the embodiments of the present application belong.
[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable storage medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor 30, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, a computer-readable storage medium can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable storage media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), 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 disk 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 may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.
[0101] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0102] A person of ordinary skill in the art will appreciate that all or part of the steps carried by the method for implementing the above-mentioned embodiment 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, each functional unit in each embodiment 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 above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc.
[0103] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary 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 photograph 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-unit and the second sub-unit 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.
