Patent Publication Number: US-2022214539-A1

Title: Camera Module and Terminal Device

Description:
CROSS-REFERENCE TO RELATED APPLICATIONS 
     This application is a continuation of International Application No. PCT/CN2020/115091, filed on Sep. 14, 2020, which claims priority to Chinese Patent Application No. 201910927693.1, filed on Sep. 27, 2019. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties. 
    
    
     TECHNICAL FIELD 
     This application relates to the field of electronic technologies, and in particular, to a camera module and a terminal device. 
     BACKGROUND 
     An electronic device such as a mobile phone gradually becomes an indispensable product in public life. With development of electronic technologies, functions of the electronic device continuously increase, including at least functions such as communication, Internet access, and shooting. Quality of shooting directly affects use experience of the electronic device. Implementation of the shooting function of the electronic device relies on a camera module in hardware to complete image capture, and relies on operation of an algorithm in software, so as to finally achieve shooting experience required by a user. 
     When using the electronic device to perform shooting, the user sometimes wants to perform wide-angle shooting, and sometimes wants to perform long-focus shooting. Therefore, a requirement of the user for zooming of the camera module becomes stronger. In an existing product such as a mobile phone or a tablet computer, a single lens usually has only a capability of performing fixed-focus shooting. Zooming is completed through splicing by using a plurality of fixed-focus lenses. When shooting is performed, lenses of different focal lengths are invoked based on different zooming requirements. However, this solution causes two problems: One is that for shooting characteristics of higher quality and a larger focal length, a plurality of lenses are needed for splicing, resulting in an increase in difficulty in appearance design. In this case, positions usually need to be reserved on a compact rear housing of a conventional mobile phone for various lenses, and a quantity of front-facing lenses is hardly increased unless a screen-to-body ratio thereof is decreased. The other problem is that the manner of performing splicing by using the plurality of fixed-focus lenses causes an “interruption” problem in picture quality, that is, a picture quality degradation problem exists between different zooming magnifications. 
     SUMMARY 
     This application provides a camera module, to resolve a problem that a quantity of camera modules (or lenses) in a terminal device is large and costs are high. The technical solutions are as follows. 
     According to a first aspect, a camera module is provided. The camera module includes two first magnetic bodies, a lens group, a zooming coil, and a sensor, where the two first magnetic bodies are respectively located on two opposite sides of the lens group; the lens group includes a first soft film lens; the zooming coil is connected to a soft film of the first soft film lens; when the zooming coil is energized, a Lorentz force is generated under action of a magnetic field formed by the two first magnetic bodies, to change a shape of the first soft film lens, so as to change a focal length of the first soft film lens; and the sensor is configured to receive a light beam incident through the lens group. 
     Further, the zooming coil may be located on an edge of an outer surface of the first soft film lens, to connect to the soft film. When the zooming coil is energized, the generated Lorentz force pushes the zooming coil to move, so as to extrude the first soft film lens to deform, and implement a zooming function. Alternatively, the zooming coil may be located on an edge of an inner surface of the first soft film lens, that is, located inside the first soft film lens, to connect to the soft film. In this case, when the zooming coil is energized, the generated Lorentz force also pushes the zooming coil to move, so as to drag the soft film of the first soft film lens to deform the first soft film lens, and implement a zooming function. 
     According to the camera module provided in this embodiment of this application, the zooming coil is disposed on the first soft film lens, to implement a continuous optical zooming function. In addition, real images are captured, and an imaging effect is better. An overall structure of the camera module is relatively compact, so that the camera module can be used in a terminal device with a limited space, such as a mobile phone. In addition, compared with a currently commonly used solution of implementing a zooming capability in a manner of performing splicing by using a plurality of fixed-focus lenses, the camera module of this application has an optical zooming capability, that is, a single lens may implement a zooming capability implemented by two fixed-focus lenses, and two lenses may achieve an effect achieved by more fixed-focus lenses. Therefore, when the optical zooming capability is ensured, a quantity of camera modules in the terminal device may be reduced, and costs may be reduced. 
     With reference to the first aspect, in a first possible implementation of the first aspect, the camera module further includes an annular barrel having an opening on a surface, where the sensor is fastened to a bottom surface that is inside the annular barrel and that is opposite to the opening; and the two first magnetic bodies are respectively fastened onto surfaces that are inside the annular barrel and that are on two sides of the bottom surface. 
     With reference to the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the camera module further includes a lens cone connected to the annular barrel, where the lens cone is connected to the annular barrel through an elastic apparatus, and at least one lens in the lens group is connected to the lens cone. Specifically, the elastic apparatus may be a spring, a spring plate, or the like, so that the lens cone can be moved. 
     With reference to the foregoing possible implementations, in a third possible implementation of the first aspect, the camera module further includes a second magnetic body located between the first soft film lens and the first magnetic body, where the second magnetic body is in a one-to-one correspondence with the first magnetic body, and a magnetic field direction of the second magnetic body is the same as a magnetic field direction of the corresponding first magnetic body. Optionally, the second magnetic body is fastened onto the lens cone. The second magnetic body in this embodiment may converge a magnetic field of the first magnetic body, to enhance the magnetic field. In a case of a same current, the Lorentz force generated by the zooming coil is increased, and a deformation amount of the first soft film lens is increased. Therefore, a zooming capability is improved. 
     With reference to the foregoing possible implementations, in a fourth possible implementation of the first aspect, the camera module further includes a first compensation coil, where the first compensation coil is located between the two first magnetic bodies; and when the first compensation coil is energized, a Lorentz force is generated under action of a magnetic field, to change a position of the lens group, so as to change the image distance of the camera module. In this embodiment of this application, the first compensation coil is added to compensate for a change in the image distance that is caused by a change in the focal length of the camera module, so as to ensure imaging quality. Optionally, all or some lenses included in the lens group are located in a space formed by the first compensation coil. 
     With reference to the fourth possible implementation of the first aspect, in a fifth possible implementation of the first aspect, the camera module further includes a lens cone connected to the annular barrel, where the lens cone is connected to the annular barrel through an elastic apparatus, the first compensation coil and a first adjustment coil are fastened onto the lens cone, and at least one lens in the lens group is connected to the lens cone. Specifically, the elastic apparatus may be a spring, a spring plate, or the like. The Lorentz force generated after the first compensation coil is energized pushes the lens cone, to drive the lens connected to the lens cone to move. 
     With reference to the fourth or the fifth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, the zooming coil and the first compensation coil are connected in series. A one-to-one correspondence between a zooming value and a compensation value may be learned through optical design. Therefore, a zooming function and a compensation function may be implemented through current control. 
     With reference to the sixth possible implementation of the first aspect, in a seventh possible implementation of the first aspect, the camera module further includes a first adjustment coil, where the first adjustment coil is located between the two first magnetic bodies, and a quantity of turns of the first adjustment coil is less than a quantity of turns of the first compensation coil, or a single-turn length of the first adjustment coil is less than a single-turn length of the first compensation coil. 
     With reference to the sixth possible implementation of the first aspect, in an eighth possible implementation of the first aspect, the camera module further includes a second adjustment coil, the lens group further includes a second soft film lens, and the second adjustment coil is connected to a soft film of the second soft film lens; and when the second adjustment coil is energized, a Lorentz force is generated under action of a magnetic field, to change a shape of the second soft film lens, so as to focus the light beam onto the sensor. Optionally, the camera module further includes a fourth magnetic body located between the second soft film lens and the first magnetic body, where the fourth magnetic body is in a one-to-one correspondence with the first magnetic body, and a magnetic field direction of the fourth magnetic body is the same as a magnetic field direction of the corresponding first magnetic body. The fourth magnetic body may converge a magnetic field, to enhance a Lorentz force, and increase a deformation amount of the second soft film lens. 
     Usually, after a quantity of turns and a single-turn length of the zooming coil and the quantity of turns and the single-turn length of the first compensation coil are designed, a relatively ideal image may be obtained through current control. If the obtained image is not clear enough because of a special reason, for example, if a factor, such as an assembly error or a decrease in stability of a lens after operating for a long time, causes the image to be not clear enough, the camera module needs to be further adjusted by using the adjustment coils provided in the foregoing two implementations, so as to further improve the imaging quality. 
     With reference to the first aspect or the first to the third possible implementations of the first aspect, in a ninth possible implementation of the first aspect, the camera module further includes a second compensation coil, the lens group further includes a third soft film lens, and the second compensation coil is connected to a soft film of the third soft film lens; and when the second compensation coil is energized, a Lorentz force is generated under action of a magnetic field, to change a shape of the third soft film lens, so as to change an image distance of the camera module. In this embodiment of this application, the second compensation coil is added to compensate for a change in the image distance that is caused by a change in the focal length of the camera module, so as to ensure imaging quality. 
     With reference to the ninth possible implementation of the first aspect, in a tenth possible implementation of the first aspect, the camera module further includes a third magnetic body located between the third soft film lens and the first magnetic body, where the third magnetic body is in a one-to-one correspondence with the first magnetic body, and a magnetic field direction of the third magnetic body is the same as a magnetic field direction of the corresponding first magnetic body. The third magnetic body may converge a magnetic field, to enhance a Lorentz force, and increase a deformation amount of the third soft film lens. 
     With reference to the ninth or the tenth possible implementation of the first aspect, in an eleventh possible implementation of the first aspect, the zooming coil and the second compensation coil are connected in series. A one-to-one correspondence between a zooming value and a compensation value may be learned through optical design. Therefore, a zooming function and a compensation function may be implemented through current control. 
     With reference to the eleventh possible implementation of the first aspect, in a twelfth possible implementation of the first aspect, the camera module further includes a first adjustment coil, where the first adjustment coil is located between the two first magnetic bodies; and when the first adjustment coil is energized, a Lorentz force is generated under action of a magnetic field, to change a position of the lens group, so as to change an image distance of the camera module. 
     With reference to the eleventh possible implementation of the first aspect, in a thirteenth possible implementation of the first aspect, the camera module further includes a second adjustment coil, the lens group further includes a second soft film lens, and the second adjustment coil is connected to a soft film of the second soft film lens; and a quantity of turns of the second adjustment coil is less than a quantity of turns of the second compensation coil, or a single-turn length of the second adjustment coil is less than a single-turn length of the second compensation coil. 
     Usually, after a quantity of turns and a single-turn length of the zooming coil and the quantity of turns and the single-turn length of the second compensation coil are designed, a relatively ideal image may also be obtained through current control. If there is indeed a problem that the image is not clear enough, the camera module needs to be further adjusted by using the adjustment coils provided in the foregoing two implementations, so as to further improve the imaging quality. 
     With reference to any one of the foregoing possible implementations, in a fourteenth possible implementation of the first aspect, the camera module further includes a reflector, configured to reflect an input light beam to the lens group. According to the camera module provided in this embodiment of this application, a periscope structure may be implemented, so as to fold a light path, and reduce a volume of the camera module. The camera module is applicable to a terminal device that has a requirement on a volume, such as a mobile phone. 
     With reference to any one of the foregoing possible implementations, in a fifteenth possible implementation of the first aspect, a light blocking area of a coil connected to a soft film of a soft film lens is less than ¼ of an area of a surface that is of the soft film lens and that is connected to the coil. For example, the coil is the zooming coil, the second compensation coil, or the second adjustment coil. The foregoing size requirement may ensure that a light beam of a sufficient intensity reaches the sensor without too much loss. A specific value of the light blocking area may be changed based on an actual case. This is not limited in this application. 
     With reference to any one of the foregoing possible implementations, in a sixteenth possible implementation of the first aspect, the soft film lens is formed in a manner of wrapping liquid or gel by using the soft film; or the soft film lens is formed in a manner of wrapping liquid or gel in a closed space including the soft film and a lens. 
     With reference to any one of the foregoing possible implementations, in a seventeenth possible implementation of the first aspect, the camera module further includes a controller, configured to generate control information based on information sent by the sensor, to control an energization amount of the coil disclosed in the foregoing implementation. 
     With reference to any one of the foregoing possible implementations, in an eighteenth possible implementation of the first aspect, the soft film lens includes a soft film deformation area and a lens fastening area, and the camera module further includes a conductive rod, a slidable conductive apparatus, and a lead. The lens fastening area is configured to fasten a lens onto the lens cone; the conductive rod is located in the lens fastening area, and is configured to conduct electricity; the slidable conductive apparatus is located on the conductive rod; and the lead is connected to both the coil located on the soft film lens and the slidable conductive apparatus. In this embodiment, the slidable conductive apparatus may move along the conductive rod, and is connected to the coil by using the lead. When the coil is energized, a Lorentz force is generated under action of a magnetic field. The Lorentz force pushes the coil to change a position thereof. A lead with relatively good rigidity is used, so that the slidable conductive apparatus can move as the coil moves, a relative position of the lead remains unchanged, and stability is better. In this embodiment, the soft film lens may be any soft film lens mentioned in the foregoing possible implementations, and the coil may be a coil on any soft film lens mentioned in the foregoing possible implementations, for example, the zooming coil, the second compensation coil, or the second adjustment coil. 
     According to a second aspect, a zooming method that uses the camera module provided in the first aspect is provided. The method includes: receiving a zooming instruction, and determining an energization amount of the zooming coil according to the received zooming instruction, where the energization amount is a value of a voltage or a current required for zooming; energizing the zooming coil, where a Lorentz force generated after the zooming coil is energized pushes the zooming coil to move, to deform the first soft film lens, and change a focal length. Optionally, when the camera module includes a compensation coil, the compensation coil is energized, and a Lorentz force generated after the compensation coil is energized is used to compensate for a degradation degree of imaging quality that is caused by a change in an image distance that is caused by a change in the focal length. Further, when the camera module further includes an adjustment coil, if the zooming coil and the compensation coil are connected in series, insufficient compensation occurs, and the method further includes: energizing the adjustment coil, where after being energized, the adjustment coil is configured to adjust the image distance of the camera module, so as to more accurately focus a light beam onto the sensor, and reduce a loss of the light beam. 
     With reference to the second aspect, in a first possible implementation of the second aspect, when a plurality of camera modules are included, after the receiving a zooming instruction, the method further includes: invoking a corresponding camera module according to the received zooming instruction. For example, a camera module with a larger focal length needs to be invoked for long-focus shooting. 
     According to a third aspect, a terminal device is provided. The terminal device includes the camera module described in any implementation of the first aspect, a processor, and a display, where the camera module is configured to capture image information, and the processor is configured to process the image information, to control the display to display a captured image. 
     With reference to the third aspect, in a first possible implementation of the third aspect, the terminal device further includes a memory, configured to store the image information. When required, a user may invoke, from the memory, a photo or a video that has been shot. 
     With reference to the foregoing possible implementation, in a second possible implementation of the third aspect, the terminal device includes a plurality of camera modules, and at least one of the camera modules is the camera module described in any implementation of the first aspect. In this embodiment of this application, a plurality of camera modules described in any implementation of the first aspect may be used, or several additional fixed-focus lenses may be added. Compared with an existing zooming technology in which splicing is performed by using fixed-focus lenses, a quantity of the camera modules is smaller. In addition, according to the camera module in this application, continuous optical zooming may be implemented, and imaging quality is better. 
     According to a fourth aspect, a camera device is provided, for example, a camera or a camcorder, and the camera device includes the camera module described in any implementation of the first aspect and a packaging structure. 
     According to a fifth aspect, a readable storage medium is provided. The readable storage medium stores instructions, and when the instructions are run on a terminal device, the terminal device is enabled to perform the method described in the second aspect or any implementation of the second aspect. 
     According to a sixth aspect, a computer program product including instructions is provided. When the instructions are run on a terminal device, the terminal device is enabled to perform the method described in the second aspect or any implementation of the second aspect. 
     The camera module provided in the embodiments of this application may be used as a separate camera, or may be used in a device that needs to perform shooting or video recording in different scenarios, such as a smartphone, a tablet computer, or a robot. According to the camera module in the embodiments of this application, a continuous optical zooming function may be implemented, real images are captured, and an imaging effect is better. Compared with a currently commonly used solution of implementing a zooming capability in a manner of performing splicing by using a plurality of fixed-focus lenses, the camera module of this application has an optical zooming capability, that is, a single lens may implement a zooming capability implemented by two fixed-focus lenses, and two lenses may achieve an effect achieved by more fixed-focus lenses. When the optical zooming capability remains unchanged, a quantity of camera modules in a terminal device may be reduced. In addition, an image quality “interruption” problem existing in current splicing of the fixed-focus lenses may be further resolved by using a plurality of camera modules disclosed in this application. 
    
    
     
       BRIEF DESCRIPTION OF DRAWINGS 
         FIG. 1  is a schematic diagram of imaging of a camera module; 
         FIG. 2  is a schematic diagram of a structure of a camera module according to an embodiment of this application; 
         FIG. 3  is a schematic diagram of a first soft film lens of a camera module according to an embodiment of this application; 
         FIG. 4  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 5  is a schematic diagram of arrangement of magnetic bodies of a camera module according to another embodiment of this application; 
         FIG. 6  is a schematic diagram of arrangement of a first magnetic body and a corresponding second magnetic body that are of a camera module according to another embodiment of this application; 
         FIG. 7  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 8  is a schematic diagram of a line connection manner of a zooming coil and a compensation coil in a camera module according to another embodiment of this application; 
         FIG. 9  is a schematic diagram of a line connection manner of a zooming coil and a compensation coil in a camera module according to another embodiment of this application; 
         FIG. 10  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 11  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 12  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 13  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 14  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 15  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 16  is a schematic diagram of a structure of a camera module according to another embodiment of this application; 
         FIG. 17  is a flowchart of a zooming method performed by using a camera module according to an embodiment of this application; 
         FIG. 18  is a flowchart of a zooming method performed by using a camera module according to an embodiment of this application in a case of a plurality of camera modules; and 
         FIG. 19  is a schematic diagram of a terminal device that includes a camera module according to an embodiment of this application. 
     
    
    
     DESCRIPTION OF EMBODIMENTS 
     Before the embodiments of this application are explained and described in detail, application scenarios in the embodiments of this application are described first. 
     A camera function of an electronic device such as a mobile phone is to shoot a static picture or a dynamic video by using a built-in digital camera or an external digital camera. As a new additional function of the electronic device, a shooting capability of the electronic device has become one of the most concerned indexes. Implementation of a shooting function of the electronic device relies on an optical module in hardware to complete image capture, and relies on operation of an algorithm in software, so as to finally achieve shooting experience required by a user. In addition to an imaging function, most important technologies in the optical module further include zooming and focusing technologies. 
     A focal length is a measurement manner of measuring convergence or divergence of light in an optical system, and refers to a distance from a center of a lens to a focal point of light convergence when parallel light is incident. A shorter focal length indicates a larger field of view. 
     In a case of a definite focal length, a larger image surface (that is, an effective operating surface of a sensor in the camera module) indicates a larger field of view. Generally, a focal length of the optical module is fixed. 
     Focusing refers to a process in which a distance between an image surface and a lens is changed based on different positions in which objects at different distances are clearly imaged in a rear part of the lens, so that a photographed object is clearly imaged. Because a depth of field exists in all imaging systems, if the photographed object is outside the depth of field, an image is blurred after the object is photographed. To ensure clear presentation of the photographed object, focusing needs to be performed. 
     The depth of field is a depth for clear imaging in an optical imaging system. The depth of field is a physical phenomenon, but values of depths of field of different optical systems are different.  FIG. 1  is a schematic diagram of lens imaging, where ΔL represents a depth of field, and L represents a shooting distance. A value of the depth of field is related to parameters of an optical lens, such as a focal length f and an F-stop (F-number) of the lens, and is also related to a diameter  6  of a circle of confusion that a used sensor can distinguish. 
     A relationship between the foregoing parameters is described by using the following formula: 
     
       
         
           
             
               
                 Δ 
                 ⁢ 
                 L 
               
               = 
               
                 
                   2 
                   ⁢ 
                   
                     f 
                     2 
                   
                   ⁢ 
                   F 
                   ⁢ 
                   δ 
                   ⁢ 
                   
                     L 
                     2 
                   
                 
                 
                   
                     f 
                     4 
                   
                   - 
                   
                     
                       F 
                       2 
                     
                     ⁢ 
                     
                       δ 
                       2 
                     
                     ⁢ 
                     
                       L 
                       2 
                     
                   
                 
               
             
             . 
           
         
       
     
     As the user is increasingly dependent on the mobile phone, requirements for the mobile phone also become more diverse. For example, the user sometimes needs to photograph a beautiful scene with a wide angle, and the user sometimes also needs to shoot a distant portrait. Because different scenarios need to be photographed, both a wide-angle camera and a long-focus camera need to be used. Therefore, a zooming requirement of a common user on the camera module becomes stronger. 
     In view of this, an embodiment of this application provides a camera module. As shown in  FIG. 2 , the camera module includes two first magnetic bodies ( 201 ,  202 ), a lens group  203  (in  FIG. 2 , the lens group  203  includes four lenses), a zooming coil  204 , and a sensor  205 . 
     The two first magnetic bodies ( 201 ,  202 ) are respectively located on two opposite sides of the lens group  203 , to form a magnetic field. The lens group  203  includes a first soft film lens  2031 . The zooming coil  204  is connected to a soft film of the first soft film lens  2031 , and the zooming coil  204  may be located on an edge of an outer surface of the first soft film lens  2031 , to connect to the soft film. A specific structure of the first soft film lens  2031  and the zooming coil  204  may be shown in  FIG. 3 . Alternatively, the zooming coil  204  may be located on an edge of an inner surface of the first soft film lens  2031 , that is, may be located inside the first soft film lens  2031 , to connect to the soft film. When the zooming coil  204  is energized, a Lorentz force is generated under action of a magnetic field, to push the zooming coil  204  to move, so as to extrude or drag the soft film of the first soft film lens  2031 , and change a shape of the first soft film lens  2031 , that is, change a surface type of the first soft film lens  2031 , such as a curvature or another parameter, thereby changing a focal length of the lens group, and implementing a zooming function. The sensor  205  is configured to receive a light beam incident through the lens group  203 . 
     The first soft film lens may be formed in a manner of wrapping liquid or gel by using the soft film, or the first soft film lens may be formed in a manner of wrapping liquid or gel in a closed space including the soft film and a lens. The liquid may be oil, a solvent, ionic liquid, a liquid metal, and the like. The liquid is transparent or translucent substance. When being wrapped by the soft film, the liquid may be deformed under a force, to implement the zooming function. The coil located on the soft film lens may be a structure formed by winding a metal wire by a plurality of turns or only one turn, or even may be a circular metal ring, provided that the soft film of the soft film lens can be pushed in the magnetic field by the Lorentz force when the coil is energized. A similar coil in the subsequent embodiments may also have the foregoing structure, and details are not described in this application again. 
     In addition, the camera module provided in this application may further include an annular barrel  206  having an opening on a surface, where the sensor  205  is fastened onto a bottom surface that is inside the annular barrel  206  and that is opposite to the opening. The two first magnetic bodies ( 201 ,  202 ) are separately fastened inside the annular barrel  206 , and are disposed, opposite to each other, on surfaces on two sides of the bottom surface of the annular barrel  206 . In addition, the camera module further includes a lens cone  207  connected to the annular barrel  206 . The lens cone  207  may be connected to the bottom surface or a side surface of the annular barrel  206  by using an apparatus such as a spring plate or a spring, so that the lens cone  207  can move. A specific structure of the lens cone  207  and the annular barrel  206  is shown in  FIG. 4 . 
     Further, as shown in  FIG. 3 , the first soft film lens  2031  includes a soft film deformation area  301  and a lens fastening area  302 , where the lens fastening area  302  is configured to fasten a lens onto the lens cone  207 . The camera module further includes a conductive rod  305  located in the lens fastening area  302  and a slidable conductive apparatus  304  connected to the conductive rod  305 , where the conductive rod  305  is connected to a power supply circuit (in a terminal device, if the power supply circuit is connected to a processor, it may also be understood as that the conductive rod  305  is connected to the processor), and is configured to conduct electricity; and the slidable conductive apparatus  304  may move along the conductive rod  305 , and is connected to the zooming coil  204  by using a lead  303 . When the zooming coil  204  is energized, the Lorentz force is generated under action of the magnetic field, and the Lorentz force pushes the zooming coil  204  to change a position thereof. A lead  303  with relatively good rigidity is used, so that the slidable conductive apparatus  304  can move as the zooming coil  204  moves, and a relative position of the lead  303  remains unchanged, and stability is better. Certainly, the lead may be alternatively directly connected to the power supply circuit inside the terminal. However, a segment of lead needs to be reserved, to ensure that the lead may still be connected to the coil when the coil moves to a farthest distance from the power supply circuit. In this case, the lead always swings correspondingly when the coil moves, resulting in relatively poor stability. It should be understood that, in this application, the rigidity of the lead  303  may be within any range, provided that the slidable conductive apparatus  304  can be driven; and the slidable conductive apparatus  304  may be a slidable ring or in any other form, provided that the slidable conductive apparatus  304  can move along the conductive rod  305 . 
     It should be noted that, a soft film lens structure in the subsequent embodiments is similar to the foregoing soft film lens structure, and details are not described in this application again. In the lens group, lenses other than the soft film lens each also have a lens fastening area. Each of the lenses is fastened to a corresponding lens cone by using the lens fastening area. However, because there is no coil on outer surfaces or inner surfaces of these lenses, there is no apparatus such as a conductive rod or a lead in the lens fastening areas of these lenses. 
     In this embodiment of this application, the magnetic body is an object that may generate a magnetic field, for example, a magnet or a lodestone. There may be more than two first magnetic bodies, for example, four first magnetic bodies are relatively located around the lens group  203 , or six first magnetic bodies relatively surround the lens group  203 .  FIG. 5  is a schematic diagram of an example in which there are four first magnetic bodies ( 201 ,  202 ,  209 , and  210 ). All the first magnetic bodies may be fastened inside the annular barrel  206 . In the subsequent embodiments of this application, an example in which there are two first magnetic bodies is used for description. Optionally, the camera module further includes a second magnetic body  208  located between the first magnetic body and the first soft film lens. The second magnetic body  208  may be fastened onto the lens cone  207 , or may be integrated inside the lens cone  207 , as shown in  FIG. 4 . The second magnetic body is in a one-to-one correspondence with the first magnetic body. A structure of the second magnetic body and the first magnetic body may be shown in  FIG. 5  (for clear illustration, a structure such as the lens cone is not shown in the figure). It should be understood that, a shape of the first magnetic body and a shape of the second magnetic body each may be alternatively a curved shape, to surround the soft film lens. A specific shape is not limited. 
     In addition, a polarity direction of the second magnetic body  208  is the same as a polarity direction of the corresponding first magnetic body  201 . As shown in  FIG. 6 , if polarity of a surface that is of the first magnetic body  201  and that faces the second magnetic body  208  is a south pole (S pole), polarity of a surface that is of the second magnetic body  208  and that faces the first magnetic body  201  is a north pole (N pole). Otherwise, if polarity of a surface that is of the first magnetic body  201  and that faces the second magnetic body  208  is an N pole, polarity of a surface that is of the second magnetic body  208  and that faces the first magnetic body  201  is an S pole. In this case, the second magnetic body  208  may converge a magnetic field of the first magnetic body  201 , to enhance the magnetic field. Therefore, in a case of a same current, the Lorentz force generated by the zooming coil  204  is increased, and a deformation amount of the first soft film lens  2031  is increased. When the camera module is used in a small terminal device such as a mobile phone, because a current cannot be particularly high, strength of the Lorentz force is limited, so that the first soft film lens  2031  cannot achieve a better zooming effect. In this embodiment, the second magnetic body  208  is used to implement magnetic field convergence, so that this problem can be resolved. 
     It should be understood that, a third magnetic body may also exist between a second soft film lens mentioned below in this application and the first magnetic body, so as to converge the magnetic field of the first magnetic body, and increase a deformation amount of the second soft film lens. A fourth magnetic body may also exist between a third soft film lens and the first magnetic body, so as to converge the magnetic field of the first magnetic body, and increase a deformation amount of the third soft film lens. Features of the third magnetic body and features of the fourth magnetic body are the same as those of the second magnetic body, and if there are more soft film lenses, there may also be magnetic bodies that correspond to the soft film lenses and that play a role of magnetic field convergence. Details are not described in this embodiment of this application again. 
     The camera module provided in this application may be further used in a terminal device such as a mobile phone, a tablet computer, or a vehicle, and serve as a camera of the mobile phone, an event data recorder in a vehicle-mounted device, or another camera device. The camera module may be a conventional camera module, or may be a folded camera module. The processor inside the terminal device processes image information captured by the sensor  205 , parses a zooming requirement conveyed by the user, and drives the camera module based on the zooming requirement to complete optical zooming. 
     Specifically, after the light beam is incident through the lens group  203 , the light beam is converged onto the sensor  205 . To prevent the zooming coil  204  from blocking entry of the light beam, a light blocking area of the zooming coil  204  needs to be less than ¼ or ⅓ of an area of a surface that is in the first soft film lens  2031  and that is connected to the zooming coil  204 . A specific value of the light blocking area is not limited. In addition, the lens group  203  may further include a plurality of lenses, for example, four or six lenses. In  FIG. 2 , four lenses are used as an example. This is not limited in this application. The sensor  205  may be an image sensor, for example, a complementary metal oxide semiconductor (CMOS) image sensor, a charge-coupled device (CCD) image sensor, or the like. An image returned by the sensor  205  is a preview shot by the terminal device. If the user enlarges the preview or taps a zooming button such as 2× or 5×, the processor of the terminal device obtains a zooming requirement signal, and controls an energization amount of the zooming coil  204  based on the zooming requirement signal given by the user. Power of the zooming coil  204  may come from a power supply device in a device, for example, if the camera module is used in a mobile phone or a tablet computer, the power may come from a battery of the mobile phone or the tablet computer. A Lorentz force is generated under action of a magnetic field after the coil is energized, so that the coil moves, thereby extruding or dragging the first soft film lens  2031  to deform, changing the focal length, and implementing an optical zooming function. The energization amount may be continuously changed, so that the first soft film lens  2031  can be continuously deformed, thereby implementing a continuous optical zooming function. 
     According to the camera module provided in this application, the zooming coil is disposed on the edge of the outer surface or the inner surface of the first soft film lens, so that the continuous optical zooming function can be implemented, real images are captured, and an imaging effect is better. An overall structure of the camera module is relatively compact, so that the camera module can be used in a terminal device with a limited space, such as a mobile phone. 
     In addition, compared with a currently commonly used solution of implementing a zooming capability in a manner of performing splicing by using a plurality of fixed-focus lenses, the camera module of this application has an optical zooming capability, that is, a single lens may implement a zooming capability implemented by two fixed-focus lenses, for example, a single camera module of this application may implement a continuous change of a 1-2-fold focal length. In the conventional technology, a 1-2-fold zooming effect needs to be achieved by using a combination of a 1-fold fixed-focus lens and a 2-fold fixed-focus lens. In addition, optical zooming in this application is continuous, the real images are captured, and the imaging effect is better. Further, dual lenses of this application may achieve an effect achieved by more fixed-focus lenses. Therefore, a quantity of the camera modules in the terminal device may be reduced, and it can be further ensured that the optical zooming capability is not weakened. 
     Optionally, the camera module provided in this application further includes a first compensation coil  701 . As shown in  FIG. 7 , the first compensation coil  701  is located between the two first magnetic bodies ( 201 ,  202 ), and the lens group  203  is located in a space formed by the first compensation coil  701 . Specifically, all lenses included in the lens group  203  are located in the space formed by the first compensation coil  701 , or some lenses included in the lens group  203  are located in the space formed by the first compensation coil  701 . For example, the lens group  203  includes four lenses, and one, two, or three lenses may be located in the space formed by the first compensation coil, or all the four lenses may be located in the space formed by the first compensation coil. When the first compensation coil  701  is energized, a Lorentz force is generated under action of a magnetic field, so that the lens group  203  moves, and a position of the lens group  203  is changed, thereby changing an image distance of the camera module, and implementing compensation (or implementing zooming). In addition, the Lorentz force generated by the first compensation coil  701  may alternatively only push some lenses in the lens group  203  to move, thereby implementing compensation as well. 
     An operating procedure of this embodiment of this application is as follows: For example, the sensor  205  returns a preview shot by the terminal device, the user taps a zooming button such as 2× or 5×, and the processor of the terminal device obtains a zooming requirement signal. The processor controls energization for the zooming coil  204  based on the zooming requirement signal given by the user, the energized coil generates a Lorentz force under action of a magnetic field, so that the first soft film lens  2031  is deformed, thereby changing the focal length, and implementing the optical zooming function. After zooming is completed, if the preview is still not clear enough, the processor gradually increases a current for the first compensation coil  701 , to drive the lens group  203  to move or drive some lenses in the lens group  203  to move, thereby implementing zooming compensation. When an image signal transmitted by the sensor  205  is clear, the processor stops increasing the current for the first compensation coil  701 , to complete compensation. 
     Specifically, the first compensation coil  701  is fastened onto the lens cone  207 , the lens group  203  is connected to the lens cone  207 , and the Lorentz force generated after the first compensation coil  701  is energized causes the first compensation coil  701  to drive the lens cone  207  to move, thereby changing a position of a lens in the lens group  203 . In addition, the lens cone  207  may also fasten the lens group  203 . Further, the lenses in the lens group  203  may not all be connected to the lens cone  207 , for example, if the lens group includes six lenses, four or five lenses may be connected to the lens cone  207 . A specific quantity is not limited. The remaining lenses may be connected to the annular barrel  206  by using a fastening part or another fastening apparatus. The Lorentz force generated after the first compensation coil  701  is energized causes the first compensation coil  701  to drive the lens cone  207  to move, so that lenses that are connected to the lens cone  207  are moved, and positions of the remaining lenses remain unchanged. 
     In addition, parameters of each lens in the lens group (for example, whether a lens is a concave lens or a convex lens and a curvature radius of each lens) and a distance between lenses may be determined through optical design. After the determining is completed, a correspondence between a focal length change value of the lens group  203  and a displacement value of the lens group  203  may be calculated, and the focal length change value is in a one-to-one correspondence with the displacement value of the lens group  203 . That is, in this case, a force generated by the zooming coil  204  is also in a one-to-one correspondence with a force generated by the first compensation coil  701 . Therefore, a quantity of turns and a single-turn length of the zooming coil  204  and a quantity of turns and a single-turn length of the first compensation coil  701  may be designed in advance, so that the zooming coil  204  and the first compensation coil  701  can be connected in series, and after current loading, a compensation function can be implemented while zooming is performed. In this case, one end of the zooming coil  204  may be connected to one end of the first compensation coil  701 , as shown in  FIG. 8 . Alternatively, according to a principle of proximity, it is equivalent to disconnecting the first compensation coil  701  at a part that is relatively close to the zooming coil  204 , and two disconnected ports are respectively connected to two ends of the zooming coil  204 , as shown in  FIG. 9 . Alternatively, there may be another connection manner. This is not limited in this application. 
     Usually, after the quantity of turns and the single-turn length of the zooming coil  204  and the quantity of turns and the single-turn length of the first compensation coil  701  are designed, a relatively ideal image may be obtained through current control. If the obtained image is not clear enough because of a special reason (for example, a factor such as an assembly error or a decrease in stability of a lens after operating for a long time), the camera module needs to be further adjusted. For this case, another embodiment of this application provides the following two feasible manners. 
     (1) As shown in  FIG. 10 , the camera module may further include a first adjustment coil  1001 . The first adjustment coil  1001  is also located between the two first magnetic bodies ( 201 ,  202 ). Some lenses included in the lens group  203  are located in a space formed by winding the first adjustment coil  1001 . When the first adjustment coil  1001  is energized, a Lorentz force is also generated under action of a magnetic field, so that the position of the lens group  203  is changed, the image distance of the camera module is changed, and further adjustment is implemented. Therefore, the light beam is more accurately focused onto the sensor  205  to obtain a clearer image. Because the first adjustment coil  1001  plays a fine-tuning role based on the zooming coil  204  and the first compensation coil  701 , there is no need to exert a large force on the lens group  203 . Therefore, usually, the Lorentz force generated by the first adjustment coil  1001  is less than the Lorentz force generated by the first compensation coil  701 . When a same current is exerted, a magnitude of a Lorentz force generated by a coil in a magnetic field is related to a quantity of turns and a single-turn length of the coil. If the single-turn length of the coil remains unchanged, the magnitude of the Lorentz force generated by the coil in the magnetic field is directly proportional to the quantity of turns of the coil. If the quantity of turns of the coil remains unchanged, the magnitude of the Lorentz force generated in the magnetic field is directly proportional to the single-turn length of the coil. Therefore, a quantity of turns of the first adjustment coil  1001  may be less than the quantity of turns of the first compensation coil  701  or a single-turn length of the first adjustment coil  1001  may be less than the single-turn length of the first compensation coil  701 . 
     It should be understood that, the first compensation coil  701  is disconnected from the first adjustment coil  1001 , and the first compensation coil  701  and the first adjustment coil  1001  may separately perform current loading. After adjustment of the zooming coil  204  and the first compensation coil  701  is completed, if the image still cannot meet a definition requirement, the first adjustment coil  1001  is started for further adjustment. Usually, because the first compensation coil  701  needs to push the lens group  203  to move for a longer distance, the space formed by winding the first compensation coil  701  is larger than the space formed by winding the first adjustment coil  1001 . Therefore, a quantity of lenses in the space formed by winding the first compensation coil  701  is also larger than a quantity of lenses in the space formed by winding the first adjustment coil  1001 . 
     In addition, some lenses included in the lens group  203  may be located in the space formed by the first compensation coil  701 , and the remaining lenses may be located in the space formed by the first adjustment coil  1001 . For example, the lens group includes four lenses, three lenses are located in the space formed by the first compensation coil  701 , and one lens is located in the space formed by the first adjustment coil  1001 . In this case, the Lorentz force generated by the first compensation coil  701  may push the three lenses in the space formed by the first compensation coil  701  to change positions thereof, so as to complete a compensation function; and the Lorentz force generated by the first adjustment coil  1001  may push the lens in the space formed by the first adjustment coil  1001  to change a position thereof, so as to further adjust the camera module. Certainly, two lenses may be alternatively located in the space formed by winding the first compensation coil  701 , and the other two lenses may be located in the space formed by winding the first adjustment coil  1001 . Alternatively, there may be another arrangement manner. This is not limited in this application. 
     Optionally, the camera module includes a lens cone  207  connected to the annular barrel  206  by using a spring or a spring plate. As shown in  FIG. 4 , all or some lenses in the lens group  203  are connected to the lens cone  207 , and both the first adjustment coil  1001  and the first compensation coil  701  are fastened onto the lens cone. The Lorentz force generated after the first compensation coil  701  is energized pushes the first compensation coil  701  to drive the lens cone  207  to move, thereby implementing compensation. If image definition still does not meet a requirement, the first adjustment coil  1001  is energized. In this case, a generated Lorentz force pushes the first adjustment coil  1001  to drive the lens cone  207  to move, thereby changing a position of a lens connected to the lens cone  207 , and further implementing adjustment. 
     In addition, the lens cone may be further divided into a first lens cone  2071  and a second lens cone  2072 , where some lenses in the lens group may be connected to the first lens cone  2071 , and the remaining lenses may be connected to the second lens cone  2072 . For example, as shown in  FIG. 11 , the lens group  203  includes four lenses, where three lenses are connected to the first lens cone  2071 , and the remaining one lens is connected to the second lens cone  2072 . The first lens cone  2071  and the second lens cone  2072  are not connected to each other, and are separately connected to the annular barrel  206  by using a deformable apparatus (a spring, a spring plate, or the like). The first compensation coil  701  is connected to the first lens cone  2071 , and the first adjustment coil  1001  is connected to the second lens cone  2072 . In this case, the Lorentz force generated after the first compensation coil  701  is energized pushes the first compensation coil  701  to drive the first lens cone  2071  to move, thereby changing a position of a lens connected to the first lens cone  2071 , and implementing compensation. If image definition still does not meet a requirement, the first adjustment coil  1001  is energized. In this case, a generated Lorentz force pushes the first adjustment coil  1001  to drive the second lens cone  2072  to move, thereby changing a position of a lens connected to the second lens cone  2072 , and further implementing adjustment. 
     (2) As shown in  FIG. 12 , the camera module further includes a second adjustment coil  1201 , and the lens group  203  further includes a second soft film lens  2032 . The second adjustment coil  1201  is connected to a soft film of the second soft film lens  2032 . A specific structure of the second adjustment coil  1201  is similar to a structure of the zooming coil  204 . The second adjustment coil  1201  may also be located on an edge of an outer surface of the second soft film lens  2032 , to connect to the soft film, or located on an edge of an inner surface of the second soft film lens  2032 , that is, located inside the second soft film lens  2032 , to connect to the soft film, with reference to  FIG. 3 . When the second adjustment coil  1201  is energized, a Lorentz force is also generated under action of a magnetic field, to push the second adjustment coil to move, so as to extrude or drag the soft film of the second soft film lens  2032 , so that a shape of the second soft film lens  2032  is changed, and the focal length of the lens group is fine-tuned. Because the focal length is changed, the image distance is also changed, the light beam is more accurately focused onto the sensor, and further adjustment is implemented. To prevent the second adjustment coil  1201  from blocking entry of the light beam, a light blocking area of the second adjustment coil  1201  also needs to be less than ¼ or ⅓ of an area of a surface that is in the second soft film lens  2032  and that is connected to the second adjustment coil  1201 . A specific value of the light blocking area is not limited. 
     Because the second adjustment coil  1201  plays a fine-tuning role based on the zooming coil  204  and the first compensation coil  701 , there is no need to exert a large force on the soft film on the second soft film lens  2032 . Therefore, the Lorentz force generated by the second adjustment coil  1201  is generally less than the Lorentz force generated by the zooming coil  204 . When a same current is exerted, a magnitude of a Lorentz force generated by a coil in a magnetic field is related to a quantity of turns and a single-turn length of the coil. If the single-turn length of the coil remains unchanged, the magnitude of the Lorentz force generated by the coil in the magnetic field is directly proportional to the quantity of turns of the coil. If the quantity of turns of the coil remains unchanged, the magnitude of the Lorentz force generated in the magnetic field is directly proportional to the single-turn length of the coil. Therefore, a quantity of turns of the second adjustment coil  1201  may be less than the quantity of turns of the zooming coil  204  or a single-turn length of the second adjustment coil  1201  may be less than the single-turn length of the zooming coil  204 . 
     It should be understood that, the second adjustment coil  1201  is also disconnected from another coil, and the second adjustment coil  1201  and the another coil may separately perform current loading. After adjustment of the zooming coil  204  and the first compensation coil  701  is completed, if the image still cannot meet a definition requirement, the second adjustment coil  1201  is started for further adjustment. In addition, the second soft film lens may be formed in a manner of wrapping liquid or gel by using the soft film, or may be formed in a manner of wrapping liquid or gel in a closed space including the soft film and a lens. 
     Further, another embodiment of this application provides a camera module. Based on  FIG. 2 , the camera module further includes a second compensation coil  1301 , as shown in  FIG. 13 . In this case, the lens group  203  further includes a third soft film lens  2033 . The second compensation coil  1301  is connected to a soft film of the third soft film lens  2033 . A specific structure of the second compensation coil  1301  is similar to the structure of the zooming coil  204  and the structure of the second adjustment coil  1201 , with reference to  FIG. 3 . Details are not described in this application again. When the second compensation coil  1301  is energized, a Lorentz force is also generated under action of a magnetic field, to change a shape of the third soft film lens  2033 , and change the focal length of the lens group, thereby changing the image distance of the lens group, and implementing compensation. In this embodiment, the lens group  203  does not need to move, and is simpler in design. Similarly, the third soft film lens may be formed in a manner of wrapping liquid or gel by using the soft film, or may be formed in a manner of wrapping liquid or gel in a closed space including the soft film and a lens. To prevent the second compensation coil  1301  from blocking entry of the light beam, a light blocking area of the second compensation coil  1301  also needs to be less than ¼ or ⅓ of an area of a surface that is in the third soft film lens  2033  and that is connected to the second compensation coil  1301 . A specific value of the light blocking area is not limited. 
     Optionally, parameters of each lens in the lens group (for example, whether a lens is a concave lens or a convex lens and a curvature radius of each lens) and a distance between lenses are determined through optical design. After the determining is completed, a correspondence between a focal length change value and an image distance change value of the lens group may be calculated, and the focal length change value is in a one-to-one correspondence with the image distance change value. In other words, under action of a same magnetic field, a force generated by the zooming coil  204  is also in a one-to-one correspondence with a force generated by the second compensation coil  1301 . Therefore, the quantity of turns and the single-turn length of the zooming coil  204  and a quantity of turns and a single-turn length of the second compensation coil  1301  may be designed in advance, so that the zooming coil  204  and the second compensation coil  1301  can be connected in series, and after current loading, a compensation function can be implemented while zooming is performed. 
     Usually, after the quantity of turns and the single-turn length of the zooming coil  204  and the quantity of turns and the single-turn length of the second compensation coil  1301  are designed, a relatively ideal image may be obtained through current control. If the obtained image is not clear enough because of a special reason (for example, a factor such as an assembly error or a decrease in stability of a lens after operating for a long time), for this case, this embodiment of this application may further include the first adjustment coil  1001  mentioned in the foregoing implementation, as shown in  FIG. 14 ; or include the second adjustment coil  1201 , as shown in  FIG. 15 . Specific principles and features have been described in detail in the foregoing implementations. Details are not described in this application. 
     Optionally, based on the embodiments shown in  FIG. 2  to  FIG. 15 , the camera module further includes a reflector  1601 , configured to reflect an input light beam to the lens group  203 , and fold a light path, so as to implement a periscope camera module, and reduce a volume of the camera module. A specific structure of the camera module is shown in  FIG. 16 . It should be understood that,  FIG. 16  is a schematic diagram of a camera module obtained by adding a reflector based on one of structures represented in  FIG. 2 ,  FIG. 7  to  FIG. 10 , and  FIG. 12  to  FIG. 15 . In addition, all the coils mentioned in the foregoing implementations are connected to the processor, and connections therebetween include a connection to the processor by using the power supply circuit, so that the processor controls energization amounts of the coils, and a zooming effect and an imaging effect of the camera module are adjusted. 
     Based on the foregoing implementations, the lens group further includes a first fixed lens, configured to focus a received light beam. The lens group may further include a second fixed lens, to further focus the light beam to converge the light beam onto the sensor  205 . The light beam may pass through the first fixed lens, the soft film lenses, and the second fixed lens in sequence. Alternatively, the first fixed lens, the soft film lenses, and the second fixed lens may be arranged in another manner. This is not limited in this application. It should be noted that, the lens group may further include more lenses, and added lenses may further focus the light beam to improve imaging quality. 
     The camera module disclosed in the embodiments of this application may be used separately for shooting, or may be used together with another camera (for example, a fixed-focus lens). Certainly, a plurality of camera modules disclosed in this application may be alternatively used together. A specific process is as follows: 
     (1) A specific operating procedure of a single camera module disclosed in this application is shown in  FIG. 17 . 
       1701 . Obtain, according to different received instructions such as a 2-fold zooming magnification, values of voltages or currents required for zooming, where relationships between zooming magnifications and the voltages or currents supplied to corresponding coils may be pre-stored in a processor, for example, correspondences are stored in a form of a table or in a form of a function; and the processor may learn, based on the required zooming magnifications, the values of the voltages or currents supplied to the corresponding coils, where the corresponding coils include different coils mentioned in the foregoing different apparatus embodiments. 
       1702 . Energize a zooming coil, where a Lorentz force generated after the zooming coil is energized pushes the zooming coil to move, so as to extrude or drag a first soft film lens to deform, and change a focal length. 
     Optionally, the specific operating procedure of the camera module further includes:  1703 . Energize a compensation coil, where a Lorentz force generated after the compensation coil is energized is used to compensate for a degradation degree of imaging quality that is caused by a change in an image distance that is caused by a change in the focal length. The camera module may be of the structures shown in  FIG. 7  to  FIG. 12 , the compensation coil is the first compensation coil, and the Lorentz force generated by the first compensation coil controls the lens group or some lenses in the lens group to move, so as to change the image distance of the camera module, and implement compensation. Alternatively, the camera module may be of the structures shown in  FIG. 13  to  FIG. 15 . In this case, the compensation coil is the second compensation coil, and the Lorentz force generated by the second compensation coil pushes the second compensation coil to move, so as to extrude the third soft film lens to deform, change the image distance of the camera module, and implement compensation. 
     Optionally, when the zooming coil and the compensation coil are connected in series, the specific operating procedure further includes:  1704 . Energize an adjustment coil, where after being energized, the adjustment coil is configured to adjust the image distance of the camera module, so as to more accurately focus a light beam onto a sensor, and reduce a loss of the light beam. The camera module may be of the structures shown in  FIG. 10  and  FIG. 14 , the adjustment coil is the first adjustment coil, and the Lorentz force generated by the first adjustment coil controls the lens group or some lenses in the lens group to move, so as to further adjust the image distance. Alternatively, the camera module may be of the structures shown in  FIG. 12  and  FIG. 15 . In this case, the adjustment coil is the second adjustment coil, and the Lorentz force generated by the second adjustment coil pushes the second adjustment coil to move, so as to extrude the second soft film lens to deform, and further adjust the image distance. 
     (2) An operating procedure of a plurality of camera modules is as follows: A zooming scenario recognition procedure is added based on the case (1), where a specific camera to be used needs to be determined based on a requirement. A specific procedure is shown in  FIG. 18 . 
       1801 . Invoke corresponding camera modules according to different received instructions. It is assumed that there are two camera modules, which respectively have a 1-4-fold zooming magnification and a 4-8-fold zooming magnification. When a received instruction shows that a 3-fold zooming magnification is needed, the camera module having the 1-4-fold zooming magnification is invoked; and when a received instruction shows that a 6-fold zooming magnification is needed, the camera module having the 4-8-fold zooming magnification is invoked. For more camera modules, a similar manner may also be used to determine which camera module is to be invoked. In addition, 1-8-fold continuous zooming may be implemented under this assumption without an image quality “interruption” problem. 
     After a camera module to be invoked is determined, the remaining steps are the same as those in the case (1). Details are not described in this application again. It should be understood that, the foregoing operating procedure is merely for the camera module disclosed in this application. If the plurality of camera modules include a fixed-focus module, and the fixed-focus module is invoked, the fixed-focus module directly performs shooting after being invoked. 
     In addition, there is the following case: If there are two camera modules, which respectively have a 1-2-fold zooming magnification and a 6-8-fold zooming magnification, when a received instruction shows that a 4-fold zooming magnification is needed, no camera module may separately implement the 4-fold zooming magnification. In this case, one of the two camera modules is first invoked, for example, the camera module that is set to be in a 2-fold zooming magnification mode is invoked, to perform shooting; and then the other camera module is invoked, for example, the camera module that is set to be in a 6-fold zooming magnification mode is invoked, to perform shooting. Obtained image information is sent to the processor, to achieve an effect of the 4-fold zooming magnification through algorithm adjustment. In this case, focal lengths of the two cameras are closer to a required focal length, and a shooting effect is better than a shooting effect achieved by using a 1-fold fixed-focus lens and an 8-fold fixed-focus lens. 
     The camera module provided in the embodiments of this application may be used as a separate camera, or may be used in a device that needs to perform shooting or video recording in different scenarios, such as a smartphone, a tablet computer, or a robot. According to the camera module in the embodiments of this application, a continuous optical zooming function may be implemented, real images are captured, and an imaging effect is better. Compared with a currently commonly used solution of implementing a zooming capability in a manner of performing splicing by using a plurality of fixed-focus lenses, the camera module of this application has an optical zooming capability, that is, a single lens may implement a zooming capability implemented by two fixed-focus lenses, and two lenses may achieve an effect achieved by more fixed-focus lenses. When the optical zooming capability remains unchanged, a quantity of camera modules in a terminal device may be reduced. In addition, an image quality “interruption” problem existing in current splicing of the fixed-focus lenses may be further resolved by using a plurality of camera modules disclosed in this application. 
     An embodiment of this application provides a camera device, such as a camera or a camcorder. The camera device includes the camera module provided in the foregoing implementations and a packaging structure. The camera module further includes a controller connected to the coils in the camera module, and the controller is configured to control energization amounts of the coils. The coils include different coils mentioned in the foregoing different apparatus embodiments. The controller may be an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), or the like. 
     An embodiment of this application provides a terminal device, including the camera module provided in the foregoing implementations of this application.  FIG. 19  is a block diagram of a structure of a terminal device according to an example embodiment of this application. The terminal device may be a device that integrates a shooting or video recording function, such as a smartphone, a tablet computer, a smart robot, or a notebook computer, or may be a transportation means such as an automobile that has a shooting or video recording function. The terminal device may also be referred to as user equipment, a portable terminal, a laptop terminal, a desktop terminal, a vehicle-mounted terminal, or another name. 
     Usually, the terminal device further includes a processor  1901  and a memory  1902 . 
     The processor  1901  may include one or more processing cores, for example, the processor  1901  may be a 4-core processor or an 8-core processor. The processor  1901  may be implemented in at least one hardware form of digital signal processing (DSP), an FPGA, or a programmable logic array (PLA). The processor  1901  may alternatively include a main processor and a coprocessor. The main processor is a processor configured to process data in a wake-up state, and is also referred to as a central processing unit (CPU). The coprocessor is a low-power processor configured to process data in a standby state. In some embodiments, the processor  1901  may integrate a graphics processing unit (GPU), and the GPU is configured to render and draw content that needs to be displayed on a display. In some embodiments, the processor  1901  may further include an artificial intelligence (AI) processor, and the AI processor is configured to process a computing operation related to machine learning. 
     The memory  1902  may include one or more computer-readable storage media, where the computer-readable storage medium may be in a non-transient state. The memory  1902  may further include a high-speed random access memory and a non-volatile memory, for example, one or more magnetic disk storage devices or flash memory storage devices. In some embodiments, the non-transient computer-readable storage medium in the memory  1902  is configured to store at least one instruction. 
     In some embodiments, the terminal device  3000  may optionally include a peripheral device interface  1903  and at least one peripheral device. The processor  1901 , the memory  1902 , and the peripheral device interface  1903  may be connected through a bus or a signal cable. Each peripheral device may be connected to the peripheral device interface  1903  through a bus, a signal cable, or a circuit board. Specifically, the peripheral device includes at least one of a camera assembly  1904 , a radio frequency circuit  1905 , a display  1906 , an audio circuit  1907 , a positioning assembly  1908 , or a power supply  1909 . 
     The peripheral device interface  1903  may be configured to connect at least one peripheral device related to input/output (I/O) to the processor  1901  and the memory  1902 . In some embodiments, the processor  1901 , the memory  1902 , and the peripheral device interface  1903  are integrated on a same chip or a same circuit board. In some other embodiments, any one or two of the processor  1901 , the memory  1902 , and the peripheral device interface  1903  may be implemented on a separate chip or a separate circuit board. This is not limited in this embodiment. 
     The camera assembly  1904  may include the camera module provided in the foregoing implementations, and is configured to: capture an image or a video, and send captured image or video information to the processor  1901 , to perform image preview processing or storage. Optionally, the camera assembly  1904  includes a front-facing camera and a rear-facing camera. Usually, the front-facing camera is disposed on a front panel of the terminal, and the rear-facing camera is disposed on a back side of the terminal. The front-facing camera may use the camera module provided in this application to adapt to zooming requirements of different scenarios. Usually, there may be more than one rear-facing camera, each of which is any one of a main camera, a depth of field camera, a wide-angle camera, and a long-focus camera, so as to implement a background blurring function by combining the main camera and the depth of field camera, implement panoramic shooting and virtual reality (VR) shooting functions by combining the main camera and the wide-angle camera, or implement a shooting function by using another combination. All the rear-facing cameras may use the camera module provided in this application, or some of the rear-facing cameras are existing fixed-focus lenses, and the remaining rear-facing cameras are the camera module provided in this application. In some embodiments, the camera assembly  1904  may further include a flash. 
     The radio frequency circuit  1905  is configured to receive and transmit a radio frequency (RF) signal, where the radio frequency signal is also referred to as an electromagnetic signal. The radio frequency circuit  1905  communicates with a communication network and another communication device by using the electromagnetic signal. The radio frequency circuit  1905  converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. 
     The display  1906  is configured to display a user interface (UI). The UI may include a graph, a text, an icon, a video, and any combination thereof. When the display  1906  is a touch display, the display  1906  further has a capability of collecting a touch signal on a surface or above a surface of the display  1906 . The touch signal may be input as a control signal into the processor  1901  for processing. In this case, the display  1906  may be further configured to provide a virtual button and/or a virtual keyboard. The virtual button and/or the virtual keyboard is also referred to as a soft button and/or a soft keyboard. 
     The audio circuit  1907  is configured to collect a sound wave of a user and a sound wave of an environment, convert the sound waves into electrical signals, and input the electrical signals into the processor  1901  for processing, or input the electrical signals into the radio frequency circuit  1905  to implement voice communication. For a purpose of stereo collection or noise reduction, there may be a plurality of microphones, and the microphones are separately disposed at different parts of the terminal. In some embodiments, the audio circuit  1907  may further include a headset jack. 
     The positioning assembly  1908  is configured to position a current geographic location of the terminal device, to implement navigation or a location-based service (LBS). 
     The power supply  1909  is configured to supply power to each component in the terminal device. 
     A person skilled in the art may understand that the structure shown in  FIG. 19  does not constitute a limitation on the terminal device, and the terminal device may include more or fewer components than those shown in the figure, or combine some components, or use different types of component arrangement. 
     It should be noted that, for clarity of the descriptions of the embodiments of this application, unrelated components may not be shown in the reference accompanying drawings, and for clarity, thicknesses of the layers and the areas may be exaggerated. Although the embodiments of this application provide an example of a parameter including a specific value, it should be understood that the parameter does not need to be exactly equal to a corresponding value, but may be approximated to the corresponding value within an acceptable error margin or design constraint. 
     A person of ordinary skill in the art may understand that all or a part of the steps of the embodiments may be implemented by hardware or a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like. 
     The foregoing descriptions are merely optional embodiments of this application, but are not intended to limit this application. Any modification, equivalent replacement, improvement, or the like made without departing from the spirit and principle of this application shall fall within the protection scope of this application.