Disclosure of Invention
The disclosure provides a camera module, an electronic device, a shooting processing method and a storage medium.
According to a first aspect of the embodiments of the present disclosure, a camera module is provided, including:
a light deflecting assembly, the light deflecting assembly comprising: the light source comprises a light input surface for receiving incident light and a light output surface for outputting light, wherein the incident light and the light output surface output light have different transmission directions;
the first driving assembly is connected with the light deflection assembly and used for driving the light deflection assembly to rotate around at least two rotating shafts;
and the zoom lens assembly is positioned on one side of the light output surface of the light deflection assembly.
Optionally, the light deflecting assembly includes: a triangular prism.
Optionally, the at least two rotation axes comprise:
the first rotating shaft is vertical to a lens optical axis of the zoom lens assembly;
and the second rotating shaft is vertical to the lens optical axis of the zoom lens assembly and the first rotating shaft.
Optionally, the rotation angle of the light beam deflection assembly is greater than or equal to a set angle threshold;
wherein the set angle threshold is: the zoom lens assembly is determined based on a first angle of view of the zoom lens assembly at a minimum magnification and a second angle of view of the zoom lens assembly at a maximum magnification.
Optionally, twice the set angle threshold is equal to the difference between the first view and the second view.
Optionally, the zoom lens assembly includes: a plurality of lenses;
the camera module further comprises: and the second driving component is connected with the zoom lens component and is used for driving the lenses to move.
According to a second aspect of the embodiments of the present disclosure, an electronic device is provided, which includes the camera module according to any one of the first aspect.
According to a third aspect of the embodiments of the present disclosure, there is provided a shooting processing method applied to the electronic device according to the second aspect, including:
determining a desired finder center position of a finder screen in a process of framing a screen based on the zoom lens assembly;
and under the condition that the expected view center position is different from the current view center position of the view picture, controlling a first driving assembly to drive a light deflection assembly to rotate, switching the view center position of the view picture from the current view center position to the expected view center position, and generating the view picture with the view center position switched to the expected view center position.
Optionally, the controlling the first driving assembly to drive the light beam deflecting assembly to rotate includes:
determining a vector value between the desired view center position and the current view center position;
and controlling the first driving assembly to drive the light beam deflection assembly to rotate towards the direction from the expected view center position to the current view center position based on the vector value.
Optionally, the determining a desired view center position of a view picture in the process of picture view based on the zoom lens assembly includes:
and determining the expected view center position of the view picture in the process of picture view of the zoom lens component based on the minimum magnification.
Optionally, the method further includes:
in the process of shooting the view-finding picture, if the camera module is detected to move in a set range, determining the movement parameters of the camera module;
and controlling the first driving assembly to drive the light deflection assembly to rotate corresponding to the movement parameter based on the movement parameter.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory configured to store processor-executable instructions;
wherein the processor is configured to: the steps in any of the above-described shooting processing methods of the third aspect are implemented when executed.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions of the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the steps of any one of the shooting processing methods of the third aspect.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
it can be seen from the foregoing embodiments that, in the camera module of the present disclosure, the light deflecting module is disposed around at least two rotation axes, and in the process of framing a picture by the zoom lens module, if the desired center position of framing is different from the current center position of framing of the framed picture, the first driving module can be controlled to drive the light deflecting module to rotate, so as to switch the center position of framing of the framed picture from the current center position of framing to the desired center position of framing. In the embodiment of the disclosure, in the zooming process based on the zoom lens module, the switching of the view finding center position can be realized through the optical deflection module of the camera module, and compared with the arrangement of a plurality of different camera modules to realize optical zooming, the image is more continuous, smooth zooming switching is realized, the structure of the camera module can be simplified, and the use experience of a user is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic structural diagram of a camera module according to an exemplary embodiment, where as shown in fig. 1, the camera module may include: alight deflection assembly 101, afirst driving assembly 102 and azoom lens assembly 103.
Thelight deflecting assembly 101 may include: the light source comprises a light input surface for receiving incident light and a light output surface for outputting light, wherein the incident light and the light output surface output light have different transmission directions;
thefirst driving assembly 102 is connected with the lightbeam deflection assembly 101 and is used for driving the lightbeam deflection assembly 101 to rotate around at least two rotation axes;
thezoom lens assembly 103 is located at one side of the light output surface of thelight deflection assembly 101.
Here, thelight deflecting member 101 is configured to receive an incident light and change a transmission direction of the incident light, wherein the light input surface is configured to receive the incident light, and after the light input surface receives the incident light, the transmission direction of the incident light may be changed based on thelight deflecting member 101, and then the light of which the transmission direction is changed is output through the light output surface of thelight deflecting member 101.
In some optional embodiments, the camera module may further include an image sensor. Fig. 2 is a schematic structural diagram of a camera module according to an exemplary embodiment, and as shown in fig. 2, the camera module further includes animage sensor 104, and in the case that the camera module includes theimage sensor 104, the light output by the light output surface can be transmitted to thezoom lens assembly 103, and then the light whose transmission direction is changed by thelight deflection assembly 101 is transmitted to theimage sensor 104 via thezoom lens assembly 103, and theimage sensor 104 can image the received light. Wherein thezoom lens assembly 103 may be located between the lightray deflection assembly 101 and theimage sensor 104.
In some alternative embodiments, thelight deflecting component 101 may be a prism or other device that changes the propagation direction of the incident light. For example, the light deflecting component may be a combination of a plurality of plane mirrors, and the deflection of the light is realized by reflection between the plane mirrors, which is not particularly limited herein.
In some embodiments, the light deflecting assembly may include: a triangular prism. Here, the prism is a transparent body having a triangular optical cross section, and is an optical instrument made of a transparent material and having a triangular cross section.
Fig. 3 is a schematic cross-sectional structure diagram illustrating a triple prism according to an exemplary embodiment, and as shown in fig. 3, the triple prism may include alight input surface 301, alight deflection surface 302, and alight output surface 303. In the implementation, the incident light may be received based on a light input surface of the prism, and after receiving the incident light, the incident light is refracted based on the light deflection surface, the transmission direction of the incident light is changed, and then the light whose transmission direction is changed is output based on the light output surface. In some alternative embodiments, the light input surface of the triple prism may be perpendicular to the light deflection surface, so that, in a case where the triple prism receives an incident light ray perpendicular to the lens optical axis direction of the zoom lens assembly, the incident light ray may be converted into a direction parallel to the lens optical axis direction of the zoom lens assembly after passing through the triple prism.
In some alternative embodiments, the first driving assembly may be an assembly having a rotor, wherein the rotor is a rotating body capable of rotating the light beam deflecting assembly. In some embodiments, the first drive assembly may be constituted by a drive motor, for example, a linear motor, a rotary motor, or the like. In order to enable the first driving assembly to drive the light beam deflection assembly to rotate around at least two rotation axes, at least two rotors with different rotation directions can be arranged inside the first driving assembly. For example, if the light deflecting element is to be driven to rotate about a first rotational axis and a second rotational axis perpendicular to each other, a first rotor and a second rotor having rotational directions perpendicular to each other may be provided. Under the condition that at least two rotors with different rotating directions are arranged in the first driving assembly, the light deflection assembly further comprises at least two rotating shafts used for bearing the rotors, and the rotating shafts are fixedly connected with the at least two rotors respectively.
In some alternative embodiments, the first driving component may also be a driving device formed by a magnetic attraction structure, the driving device includes a carrier, a base, a spring plate, and a circuit board, the carrier is used for carrying the light deflection component and is rotatably connected with the base through the spring plate, the circuit board is mounted on the base and is provided with a bottom coil and a side coil, the bottom of the carrier is provided with a bottom magnet corresponding to the bottom coil, the side of the carrier is provided with a side magnet corresponding to the side coil, the bottom coil is matched with the bottom magnet and the side coil is matched with the side magnet, and the driving light deflection component rotates relative to the base around two rotation axes, for example, the driving light deflection component rotates around two rotation axes perpendicular to each other.
It will be appreciated that in alternative embodiments, the first driving assembly may be formed by different driving devices or combinations of structures, for example, in one implementation, the first driving assembly may include a first assembly and a second assembly, the first assembly and the second assembly are capable of respectively driving the light deflecting assembly to rotate around at least one rotation axis, and in order to avoid mutual interference between the first assembly and the second assembly, the rotation axes around which the first assembly and the second assembly are driven are different, the first assembly may be an assembly including a rotor, and the second assembly may be a driving device formed by a magnetic attraction structure.
In some embodiments, when the focal length of the zoom lens assembly is changed, the first driving assembly drives the light deflection assembly to rotate around two rotation axes; the light input surface of the rotated light deflection assembly receives incident light and changes the transmission direction of the incident light; the light output surface of the light deflection component transmits the light with the changed transmission direction to the zoom lens component; in this way, the change of the photographing angle of view of the zoom lens assembly, that is, the change of the direction of the photographing angle of view of the zoom lens assembly can be achieved.
In some embodiments, the rotation direction of the light deflecting assembly is opposite to a first direction, and the first direction is a switching direction for switching a current view center position of a view frame of the camera module to a desired view center position.
In some embodiments, the at least two rotational axes may include: the zoom lens assembly comprises a first rotating shaft and a second rotating shaft, wherein the first rotating shaft is vertical to a lens optical axis of the zoom lens assembly, and the second rotating shaft is vertical to the lens optical axis of the zoom lens assembly and the first rotating shaft. Here, the lens optical axis is a line passing through the lens center of the zoom lens assembly. When the zoom lens assembly comprises a plurality of lenses, the optical axes of the lenses are aligned to form the lens optical axis of the zoom lens assembly. Here, by providing a first rotation axis (Pitch) perpendicular to the lens optical axis and a second rotation axis (Yaw) perpendicular to the first rotation axis and the lens optical axis, the light deflecting unit can be rotated about the first rotation axis and the second rotation axis to achieve smooth switching of the finder center during zooming of the zoom lens unit.
In the embodiment of the disclosure, in the zooming process based on the zoom lens module, the switching of the view finding center position can be realized through the optical deflection module of the camera module, and compared with the arrangement of a plurality of different camera modules to realize optical zooming, the image is more continuous, smooth zooming switching is realized, the structure of the camera module can be simplified, and the use experience of a user is further improved.
In some embodiments, the rotation angle of the light deflecting assembly is greater than or equal to a set angle threshold;
wherein the set angle threshold may be: the zoom lens assembly is determined based on a first angle of view of the zoom lens assembly at a minimum magnification and a second angle of view of the zoom lens assembly at a maximum magnification.
In the embodiment of the present disclosure, the rotation angle of the light deflecting assembly can be determined by a first angle of view of the zoom lens assembly at the minimum magnification and a second angle of view of the zoom lens assembly at the maximum magnification, where the rotation angle of the light deflecting assembly can be the maximum rotation angle of the light deflecting assembly, that is, the maximum rotation angle of the light deflecting assembly cannot exceed the set angle threshold in the process of controlling the first driving assembly to drive the light deflecting assembly to rotate. Wherein, the first visual angle under the minimum magnification is: when the camera module works under the minimum magnification, the diagonal visual angle of the framing picture is obtained; the second viewing angle at maximum magnification is: when the camera module works under the maximum magnification, the diagonal visual angle of the framing picture is formed.
Optionally, in some embodiments, twice the set angle threshold is equal to the difference between the first view and the second view; in other words, the two times of rotation angle of the light deflection assembly is greater than or equal to the angle difference between the first viewing angle and the second viewing angle.
For example, when the camera module operates at the minimum magnification, the diagonal angle of view (first angle of view) of the finder screen is 40 degrees, and when the camera module operates at the maximum magnification, the diagonal angle of view (second angle of view) of the finder screen is 20 degrees, then the angle threshold is set equal to: the difference between the first viewing angle and the second viewing angle is divided by two, i.e., 10 degrees, i.e., the angle of rotation of the light deflecting assembly is greater than or equal to 10, e.g., the light deflecting assembly is a prism whose Pitch axis can rotate +/-5 degrees.
In the embodiment of the disclosure, the rotation angle of the light deflection assembly can be determined based on the first angle of view of the zoom lens assembly at the minimum magnification and the second angle of view of the zoom lens assembly at the maximum magnification, and by taking the minimum magnification and the maximum magnification into consideration, in the using process, no matter which focal length the zoom lens assembly is switched to, the light deflection assembly can rotate to the angle corresponding to the current focal length, so that the switching of the view finding center position is realized, and smooth zooming is realized on the basis of making the picture more continuous.
In some embodiments, the zoom lens assembly may include: a plurality of lenses;
the camera module may further include: and the second driving component is connected with the zoom lens component and is used for driving the lenses to move.
Here, the lenses are arranged in sequence along the light transmission direction, and the lenses are spaced from each other. In some embodiments, the optical centers of the plurality of lenses are located on the same line, which can form the lens optical axis of the zoom lens assembly. The distance between any two adjacent lenses can be changed, and the focal length of the zoom lens assembly can be adjusted by changing the distance between any two adjacent lenses in the plurality of lenses.
Here, the second driving assembly may include a guide rail parallel to the optical axis of the lens, the guide rail being slidably coupled with the plurality of lenses. The second driving assembly may be formed of a driving motor, for example, a linear motor, a rotor motor, or the like.
In the implementation process, the plurality of lenses can be driven to move along the guide rail based on the second driving assembly so as to realize the multi-focus optical zooming function. Fig. 4 is a schematic structural diagram three of a camera module according to an exemplary embodiment, and as shown in fig. 4, thezoom lens assembly 103 may have a plurality of lenses.
In some embodiments, the camera module may further include: and the filtering component is used for filtering infrared light and is positioned at the light output side of the zoom lens component. In the embodiment of the disclosure, a filtering component may be disposed between the zoom lens component and the image sensor for filtering infrared light. For example, an infrared filter is disposed between the light deflecting member and the image sensor. Here, can filter the infrared light through infrared filter, avoid image sensor to sense invisible light, form ghost or flare during the formation of image, influence the formation of image quality.
In some embodiments, the electronic device includes the camera module described in any of the above embodiments.
In the embodiment of the present disclosure, the camera module may be disposed in an electronic device, wherein the electronic device may include a mobile terminal and a fixed terminal. The mobile terminal may include a mobile phone, a notebook computer, a tablet computer, a wearable electronic device, and the like, and the fixed terminal may include a personal computer device, a monitoring device, or a medical device, and the like. The electronic equipment related in the embodiment of the disclosure comprises a display module, wherein the display module can be a display screen of the electronic equipment. For example, the setting interface may be displayed based on a display screen of the electronic device.
Fig. 5 is a flowchart illustrating a shooting processing method according to an exemplary embodiment, and as shown in fig. 5, the method is applied to the electronic device provided in the above embodiment, and mainly includes the following steps:
instep 51, in the process of framing a picture based on the zoom lens assembly, determining a desired framing center position of the framed picture;
instep 52, in the case that the desired view center position is different from the current view center position of the view screen, the first driving assembly is controlled to drive the light deflecting assembly to rotate, the view center position of the view screen is switched from the current view center position to the desired view center position, and a view screen with the view center position switched to the desired view center position is generated.
In some embodiments, after generating the finder screen in which the finder center position is switched to the desired finder center position, the method may further include at least one of: outputting the framing picture to a display module of the electronic equipment, and displaying the framing picture on the display module of the electronic equipment; and outputting the framing picture to a set storage space of the electronic equipment, and storing the framing picture to the set storage space.
In some embodiments, the determining the desired center position of the view picture in the process of picture viewing based on the zoom lens assembly includes: receiving a first input for a framing picture in the process of framing the picture based on the zoom lens component; in response to a first input, a desired center of view position of the framed screen is determined.
In some embodiments, the first input may be a touch input entered by a user in a framed screen, and determining the desired center of framing position of the framed screen in response to the first input includes: and determining the touch control area input on the framing picture as the expected framing position of the framing picture. Here, the touch input may be input based on a touch module of the electronic device. For example, the touch input may include: click input, slide select input, etc., wherein click input may include: single click input, double click input, press input, etc.
In some embodiments, the determining the desired center position of the view picture in the process of picture viewing based on the zoom lens assembly includes: during the process of framing the picture based on the zoom lens component, identifying a target object in the framed picture; based on the identified target object, a desired finder center position of the finder screen is determined.
In some embodiments, the determining a desired viewing center position of the viewing screen based on the identified target object includes: and determining the position of the identified target object as the expected view center position of the view picture. Here, the target object may include: a portrait, a landmark building, a vehicle, and/or the like in the finder screen.
In the embodiment of this disclosure, the camera module includes: a light deflecting assembly, the light deflecting assembly comprising: the light source comprises a light input surface for receiving incident light and a light output surface for outputting light, wherein the incident light and the light output surface output light have different transmission directions; the first driving assembly is connected with the light deflection assembly and used for driving the light deflection assembly to rotate around at least two rotating shafts; and the zoom lens assembly is positioned on one side of the light output surface of the light deflection assembly.
In the implementation process, the view finding picture can be shot based on the camera module, and in the process of shooting the view finding picture, the picture can be found based on the zoom lens group contained in the camera module. In the process of performing the frame view, a desired view center position of the view frame and a current view center of the view frame may be determined, and when the desired view center position is different from the current view center position of the view frame, the first driving assembly may be controlled to drive the light deflecting assembly to rotate, so as to switch the view center position of the view frame from the current view center position to the desired view center position.
In some embodiments, in the case that the desired center of view position is different from the current center of view position of the view frame, the second driving assembly may be controlled to drive the plurality of lenses included in the zoom lens assembly to move so as to achieve optical zooming of the camera assembly, and while performing the optical zooming, the first driving assembly may be controlled to drive the light deflecting assembly to rotate so as to switch the center of view position of the view frame from the current center of view position to the desired center of view position.
The current view center position refers to a current view center position of the view frame, that is, if the view frame needs to be zoomed, the current view center position is a zoom center of the view frame, and the desired view center position may be any arbitrary position in the view frame, that is, in the embodiment of the present disclosure, when the focal length of the camera module is adjusted, any position in the view frame may be determined as a zoom center corresponding to the current focal length.
In the embodiment of the disclosure, the camera module is provided with the light deflection assembly capable of rotating around at least two rotating shafts, and in the process of framing the image by the zoom lens assembly, if the desired framing center position is different from the current framing center position of the framed image, the first driving assembly can be controlled to drive the light deflection assembly to rotate, so that the framing center position of the framed image is switched from the current framing center position to the desired framing center position.
In the embodiment of the disclosure, in the zooming process based on the zoom lens module, the switching of the view finding center position can be realized through the optical deflection module of the camera module, and compared with the arrangement of a plurality of different camera modules to realize optical zooming, the image is more continuous, smooth zooming switching is realized, the structure of the camera module can be simplified, and the use experience of a user is further improved.
In some embodiments, the controlling the first driving assembly to drive the light deflecting assembly to rotate may include:
determining a vector value between the desired view center position and the current view center position;
and controlling the first driving assembly to drive the light beam deflection assembly to rotate towards the direction from the expected view center position to the current view center position based on the vector value.
In some embodiments, the controlling the first driving assembly to drive the light deflecting assembly to rotate includes: determining a relative position between the desired view center position and the current view center position; and controlling the first driving assembly to drive the light beam deflection assembly to rotate based on the relative position. Wherein the relative position may be represented based on a vector value or a coordinate value between the desired view center position and the current view center position.
Taking the example that the relative position is expressed based on the vector value, after the desired viewing center position is determined, the vector value between the desired viewing center position and the current viewing center position can be determined, and since the vector value carries the direction information and the distance information from the desired viewing center position to the current viewing center position, the first driving assembly can be controlled to drive the light deflecting assembly to rotate in the corresponding direction, for example, in the opposite direction from the desired viewing center position to the current viewing center position, based on the vector value.
Fig. 6 is an operation diagram of a camera module according to an exemplary embodiment, as shown in fig. 6, before thezoom lens assembly 603 performs zooming, thezoom lens assembly 603 includes afirst object 601 and asecond object 602 in a view frame at a first focal length, and a current shooting angle of thezoom lens assembly 603 is an angle of view 1, and at this time, if only thefirst object 601 is to be displayed in the view frame, zooming needs to be performed through thezoom lens assembly 603, for example, by controlling a second driving assembly to drive a plurality of lenses in thezoom lens assembly 603 to move, so as to achieve zooming. In the process of zooming, thelight deflecting assembly 604 can be controlled to move, after thezoom lens assembly 603 zooms, thelight deflecting assembly 604 also rotates from the first angle to the second angle, and the shooting angle of thezoom lens assembly 603 changes from an angle of view 1 to an angle of view 2, where the shooting angle of view is an angle formed by a viewing line and a vertical direction of the camera module in the process of shooting pictures based on the camera module.
In some embodiments, the determining the desired center position of the view picture in the process of picture viewing based on the zoom lens assembly may include: and determining the expected view center position of the view picture in the process of picture view of the zoom lens component based on the minimum magnification.
Here, the desired viewing position of the viewing image may be determined during the image viewing of the zoom lens assembly based on the minimum magnification, and since there are many objects displayed in the viewing image when the camera module operates based on the minimum magnification, the user may determine the desired viewing center from the determination image and adjust the focal length of the zoom lens assembly as needed, which is convenient for identification and operation. In some embodiments, the zoom lens assembly may also determine a desired center position of the view of the frame during frame viewing at a set magnification, wherein the set magnification is greater than or equal to a minimum magnification and less than or equal to a maximum magnification.
In the embodiment of the disclosure, under the condition that the camera module operates based on the minimum magnification, smooth zoom switching can be performed on any point in the view-finding picture, and when the smooth zoom switching is performed on any point in the view-finding picture, a plurality of lenses included in the optical zoom module can be controlled to move correspondingly, and the light deflection assembly can move in the opposite direction according to the vector value from the any point to the current view-finding center position of the view-finding picture. In this way, the camera module can take any point appointed or automatically identified based on the view finding picture as a zoom center, then calculate the vector value of the any point and the current view finding center position as the operation basis of the movement of the light deflection component, so that the rotating motor of the light deflection component and the motor of the optical zooming component work simultaneously, the effect of smooth optical zooming of any point in the view finding picture can be completed, and when the optical zooming is ensured, the any point in the view finding picture can be taken as the zoom center of the view finding picture.
In some embodiments, the camera module is formed by a set of prisms (light deflecting components) capable of rotating around two axes (Pitch and Yaw) and a zoom lens component, wherein the two times of the rotation angle of the prisms is greater than or equal to the angular difference between the diagonal angle of view (first angle of view) of the view of the optical zoom module at the minimum magnification and the diagonal angle of view (second angle of view) of the view at the maximum magnification. For example: the Pitch can axially rotate a prism of +/-5 degrees, and is matched with a camera module of which the diagonal visual angle of a viewing picture under the minimum magnification is 40 degrees and the diagonal visual angle of the viewing picture under the maximum magnification is 20 degrees.
When the camera module works under the minimum magnification, the prism performs anti-shake processing (0-3 degrees), when the smooth zooming switching is performed on any point (expected framing center) in a framing picture under the minimum magnification, the lens group (a plurality of lenses) of the zoom lens assembly moves correspondingly, the prism performs reverse motion according to a vector from any point in the framing picture to the current framing center of the framing picture, and when the optical zooming is ensured, any point in the framing picture can become the center of picture zooming. Therefore, the problem of information loss of an object to be tracked caused by zooming of the visual angle during optical zooming can be solved, and smooth zooming is carried out at any position in a framing picture, so that the shooting effect is more diversified.
In some embodiments, the method may further comprise: in the process of shooting the view-finding picture, if the camera module is detected to move in a set range, determining the movement parameters of the camera module; and controlling the first driving assembly to drive the light deflection assembly to rotate corresponding to the movement parameter based on the movement parameter.
In the embodiment of the disclosure, in the process of shooting a framing picture, if it is detected that the camera module moves within the set range, the movement parameters of the camera module can be determined, wherein the movement parameters include the movement direction and the displacement of the camera assembly. For example, a gyroscope can be arranged in the camera assembly, then the micro movement of the camera assembly is detected based on the gyroscope, the detected movement information is transmitted to a microprocessor of the camera module to be calculated, the displacement required to be compensated is obtained, then the light deflection assembly is rotated according to the movement direction and the displacement of the camera module, the movement direction and the displacement of the camera module are compensated, and therefore the problem of image blurring caused by the micro movement or shaking of the camera module can be effectively solved.
In some embodiments, the set range may be an angular range of 0 degrees to 3 degrees. That is to say, the light deflection assembly in the embodiment of the present disclosure can perform anti-shake processing of a small angle (0 degree to 3 degrees) on the camera module. In some embodiments, in the process of capturing the view-finding picture, if it is detected that the camera module moves within a set range, determining a movement parameter of the camera module includes: determining whether the camera module works under the minimum magnification in the process of shooting the framing picture; and if the camera module works under the minimum magnification, determining the movement parameters of the camera module.
For example, when the camera module moves, the movement parameters of the camera module can be acquired; obtaining a driving parameter of the first driving component according to the moving parameter; and controlling the first driving assembly to drive the light deflection assembly to rotate based on the driving parameters. For example, if the movement parameter represents that the displacement of the camera module along the first direction is the first displacement, the driving parameter obtained according to the movement parameter is: the first driving assembly is controlled to drive the light deflection assembly to rotate by the first angle along the second direction based on the control module, wherein the second direction can be the direction opposite to the first direction. Here, the movement parameter may be converted into a driving parameter of the first driving assembly based on the microprocessor.
Fig. 7 is a block diagram illustrating a hardware configuration of an electronic device according to an example embodiment. For example, theapparatus 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 7, theapparatus 500 may include one or more of the following components: aprocessing component 502, amemory 504, apower component 506, amultimedia component 508, anaudio component 510, an input/output (I/O)interface 512, asensor component 514, and acommunication component 516.
Theprocessing component 502 generally controls overall operation of thedevice 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing components 502 may include one ormore processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 502 can include one or more modules that facilitate interaction between theprocessing component 502 and other components. For example, theprocessing component 502 can include a multimedia module to facilitate interaction between themultimedia component 508 and theprocessing component 502.
Thememory 504 is configured to store various types of data to support operations at theapparatus 500. Examples of such data include instructions for any application or method operating ondevice 500, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 506 provides power to the various components ofdevice 500. Thepower components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for theapparatus 500.
Themultimedia component 508 includes a screen that provides an output interface between thedevice 500 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when thedevice 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 510 is configured to output and/or input audio signals. For example,audio component 510 includes a Microphone (MIC) configured to receive external audio signals whenapparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 504 or transmitted via thecommunication component 516. In some embodiments,audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between theprocessing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 514 includes one or more sensors for providing various aspects of status assessment for thedevice 500. For example, thesensor assembly 514 may detect an open/closed state of theapparatus 500, the relative positioning of the components, such as a display and keypad of theapparatus 500, thesensor assembly 514 may also detect a change in the position of theapparatus 500 or a component of theapparatus 500, the presence or absence of user contact with theapparatus 500, orientation or acceleration/deceleration of theapparatus 500, and a change in the temperature of theapparatus 500. Thesensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 516 is configured to facilitate communication between theapparatus 500 and other devices in a wired or wireless manner. Theapparatus 500 may access a wireless network based on a communication standard, such as WI-FI, 2G, or 6G, or a combination thereof. In an exemplary embodiment, thecommunication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theapparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as thememory 504 comprising instructions, executable by theprocessor 520 of theapparatus 500 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a photographing processing method, may include:
determining a desired finder center position of a finder screen in a process of framing a screen based on the zoom lens assembly;
and under the condition that the expected view center position is different from the current view center position of the view picture, controlling a first driving assembly to drive a light deflection assembly to rotate, switching the view center position of the view picture from the current view center position to the expected view center position, and generating the view picture with the view center position switched to the expected view center position.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.