CN111988527B - Device control method, device, storage medium and electronic device - Google Patents

Device control method, device, storage medium and electronic device Download PDF

Info

Publication number
CN111988527B
CN111988527B CN202010888201.5A CN202010888201A CN111988527B CN 111988527 B CN111988527 B CN 111988527B CN 202010888201 A CN202010888201 A CN 202010888201A CN 111988527 B CN111988527 B CN 111988527B
Authority
CN
China
Prior art keywords
size
camera module
focal length
preset
display screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010888201.5A
Other languages
Chinese (zh)
Other versions
CN111988527A (en
Inventor
王路
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010888201.5A priority Critical patent/CN111988527B/en
Publication of CN111988527A publication Critical patent/CN111988527A/en
Application granted granted Critical
Publication of CN111988527B publication Critical patent/CN111988527B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a device control method, a device control apparatus, a storage medium and an electronic device. The equipment control method can be applied to electronic equipment, the electronic equipment comprises a camera module and a telescopic display screen, and the method comprises the following steps: identifying whether the electronic equipment is in a shooting state; if so, identifying the size of the expansion area of the telescopic display screen; the distance between a plurality of lenses in the camera module is adjusted according to the size of the expansion area so as to change the focal length of the camera module. The user can correspond the focus of adjusting the camera module directly through shrink or extension telescopic display screen when shooing in the embodiment of the application, and the user can conveniently adjust the focus of camera module to electronic equipment's operability has been promoted.

Description

Device control method, device, storage medium and electronic device
Technical Field
The present application belongs to the technical field of electronic devices, and in particular, to a device control method, apparatus, storage medium, and electronic device.
Background
With the continuous improvement of the performance of the camera in the electronic device, the user can use the electronic device to shoot images, which is an indispensable part of daily life. The user's demand for the electronic device is not only to be able to capture an image, but also to be able to capture an image with good presentation effect. However, in the related art, it is still inconvenient for the user to operate the electronic device to capture an image. That is, the operability of the electronic device is not high.
Disclosure of Invention
The embodiment of the application provides a device control method and device, a storage medium and an electronic device, which can improve the operability of the electronic device.
In a first aspect, an embodiment of the present application provides a device control method, which is applied to an electronic device, where the electronic device includes a camera module and a retractable display screen, and the method includes:
identifying whether the electronic equipment is in a shooting state;
if so, identifying the size of the expansion area of the telescopic display screen;
and adjusting the distance between a plurality of lenses in the camera module according to the size of the expansion area so as to change the focal length of the camera module.
In a second aspect, an embodiment of the present application provides a device control apparatus, which is applied to an electronic device, where the electronic device includes a retractable display screen, and the apparatus includes:
the identification module is used for identifying whether the electronic equipment is in a shooting state or not;
the acquisition module is used for identifying the size of the expansion area of the telescopic display screen if the size of the expansion area of the telescopic display screen is the same as the size of the expansion area of the telescopic display screen;
and the processing module is used for adjusting the distance between the plurality of lenses in the camera module according to the size of the expansion area so as to change the focal length of the camera module.
In a third aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the computer program is executed on a computer, the computer is caused to execute the method provided by the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, a scalable display screen, and a camera module, where the processor is configured to execute the method provided in the embodiment of the present application by calling a computer program stored in the memory.
In the embodiment of the application, whether the electronic equipment is in a shooting state is identified; if so, identifying the size of the expansion area of the telescopic display screen; the distance between a plurality of lenses in the camera module is adjusted according to the size of the expansion area so as to change the focal length of the camera module. Electronic equipment includes the telescopic display screen in the embodiment of this application, the user is when shooing, can be directly through shrink or stretch the telescopic display screen can correspond the focus of adjustment camera module, whether the user also can directly look over on the telescopic display screen simultaneously and use the focus after the adjustment to shoot suitable, do not need the user to adjust the camera lens or look for the focus parameter and set up, consequently the user can conveniently adjust the focus of camera module, thereby electronic equipment's operability has been promoted.
Drawings
The technical solutions and advantages of the present application will become apparent from the following detailed description of specific embodiments of the present application when taken in conjunction with the accompanying drawings.
Fig. 1 is a schematic structural diagram of a contracted state of a flexible display screen of an electronic device according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of an extended state of a flexible display screen of an electronic device according to an embodiment of the present application.
Fig. 3 is an exploded schematic view of an electronic device according to an embodiment of the present application.
Fig. 4 is an exploded schematic view of a schematic cross-sectional structure diagram of a contracted state of a flexible display screen of an electronic device according to an embodiment of the present application.
Fig. 5 is an exploded schematic view of a schematic cross-sectional structure diagram of an extended state of a flexible display screen of an electronic device according to an embodiment of the present application.
Fig. 6 is a schematic flowchart of a control method of a camera module according to an embodiment of the present application.
Fig. 7 is another schematic flow chart of a control method of a camera module according to an embodiment of the present application.
Fig. 8 is a scene schematic diagram of a control method of a camera module according to an embodiment of the present application.
Fig. 9 is another schematic view of a scene of a control method of a camera module according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of a device for controlling a camera module according to an embodiment of the present application.
Fig. 11 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
Fig. 12 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
It is understood that the execution subject of the embodiment of the present application may be an electronic device such as a smart phone or a tablet computer.
Referring to fig. 1 to fig. 3, an electronic device 100 of the present embodiment includes a housing assembly 10, a flexible display 30, a driver 50, and a driving mechanism 70. The shell assembly 10 is a hollow structure; the components of the driver 50, the drive mechanism 70, and the camera 90 may all be disposed in the housing assembly 10. It is understood that the electronic device 100 according to the embodiment of the present disclosure includes, but is not limited to, a mobile terminal such as a mobile phone, a tablet, or other portable electronic devices, and the electronic device 100 is taken as an example of a mobile phone in this document.
In the present embodiment, the housing assembly 10 includes a first housing 12 and a second housing 14, and the first housing 12 and the second housing 14 are relatively movable. Specifically, in the present embodiment, the first housing 12 and the second housing 14 are slidably connected, that is, the second housing 14 is slidable with respect to the first housing 12.
Specifically, referring to fig. 4 and 5, the first casing 12 and the second casing 14 together form an accommodating space 16. The accommodating space 16 can be used for accommodating components such as the driver 50, the camera 90 and the driving mechanism 70. The housing assembly 10 may further include a rear cover 18, and the rear cover 18 and the first and second housings 12 and 14 together form an accommodating space 16.
The driving element 50 is disposed on the second housing 14, one end of the flexible display 30 is disposed on the first housing 12, the flexible display 30 bypasses the driving element 50, and the other end of the flexible display is disposed in the accommodating space 16, so that a part of the flexible display is hidden in the accommodating space 16, and a part of the flexible display 30 hidden in the accommodating space 16 may not be lighted. The first housing 12 and the second housing 14 are relatively far away from each other, and the driving member 50 can drive the flexible display 30 to unfold, so that more flexible display 30 is exposed out of the accommodating space 16. The flexible display screen 30 exposed outside the accommodating space 16 is lighted up, so that the display area presented by the electronic device 100 becomes large.
The driving member 50 may be a rotating shaft structure with teeth 52 on the outside, the flexible display 30 is linked with the driving member 50 by engaging, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driving member 50 drives a portion of the flexible display 30 engaged with the driving member 50 to move and unfold.
It is understood that the driver 50 can also be a circular shaft without the belt 52, and when the first casing 12 and the second casing 14 are relatively far away from each other, the driver 50 can stretch the portion of the flexible display 30 wound on the driver 50, so that more flexible display is exposed out of the accommodating space 16 and is in a flat state. Specifically, the driving member 50 is rotatably disposed on the second housing 14, and the driving member 50 can rotate along with the movement of the flexible display 30 when the flexible display 30 is gradually opened. In other embodiments, the driver 50 may be fixed to the second housing 14, and the driver 50 may have a smooth surface. When the flexible display 30 is spread, the driver 50 is slidably contacted with the flexible display 30 through its smooth surface.
When the first housing 12 and the second housing 14 are relatively close to each other, the flexible display screen can be retracted by the driving member 50. Alternatively, the electronic device 100 further includes a reset member (not shown), one end of the flexible display screen, which is accommodated in the accommodating space 16, is linked with the reset member, and when the first shell 12 and the second shell 14 are relatively close to each other, the reset member drives the flexible display screen 30 to reset, so that a part of the flexible display screen is retracted into the accommodating space 16.
In this embodiment, the driving mechanism 70 may be disposed in the accommodating space 16, the driving mechanism 70 may be linked with the second housing 14, and the driving mechanism 70 is configured to drive the second housing 14 to move away from the first housing 12, so as to drive the flexible display panel assembly 30 to extend. It will be appreciated that the drive mechanism 70 may be omitted and the user may directly move the first and second housings relative to one another, manually, etc.
It should be noted that, the flexible display screen of the electronic device may be longitudinally extended (vertically extended) in addition to being laterally extended (laterally extended), and the extension direction of the flexible display screen is not limited in the embodiments of the present application. The electronic devices extending and retracting along different directions have similar telescopic structures, for example, longitudinal extension and retraction of the flexible display screen can be realized by changing the arrangement directions of hardware such as the first shell, the second shell, the driving piece and the driving mechanism, and the telescopic structures are not repeated herein.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a method for controlling a camera module according to an embodiment of the present disclosure. The control method is applied to the electronic equipment in the embodiment, the electronic equipment further comprises a camera module and a telescopic display screen, and the camera module can be used for shooting pictures or videos. The flow of the control method of the camera module can comprise the following steps:
in 101, it is identified whether the electronic device is in a shooting state.
With the continuous improvement of the performance of the camera in the electronic device, the user can use the electronic device to shoot images, which is an indispensable part of daily life. The user's demand for the electronic device is not only to be able to capture an image, but also to be able to capture an image with good presentation effect. However, in the related art, it is still inconvenient for the user to operate the electronic device to capture an image. That is, the operability of the electronic device is not high.
It should be noted that, in this embodiment of the application, the electronic device may be configured with a retractable display screen, and the retractable display screen may be a flexible display screen, and the flexible display screen may increase an expanded size of the display screen by stretching, and may also decrease the expanded size of the display screen by shrinking, so as to provide a user with display screens of different sizes.
When the camera application of the electronic equipment is started, the electronic equipment is in a shooting state, the electronic equipment can enter the shooting state through the camera module, the live-action image can be obtained in real time through the camera module, and the live-action image is shot. The electronic device may identify whether the electronic device is currently in a shooting state through the processor, for example, whether the electronic device is currently in the shooting state may be determined through a working state of the camera module, and when the camera module is in the working state, the electronic device is in the shooting state.
At 102, if so, the size of the display expansion area of the retractable display is identified.
And if the electronic equipment is in a shooting state, identifying the size of the expansion area of the telescopic display screen. The retractable display screen may include a fixed display area and an extended display area. The fixed display area is a display area in which the retractable display screen is in a retracted state and is not accommodated in the electronic device. The expanded display area is a display area which can be stored in the electronic device and can be moved to the outside of the electronic device to be increased, and the expanded display area can be contracted into the electronic device or expanded to the outside of the electronic device for displaying.
It can be appreciated that the size of the expansion area of the retractable display screen is adjustable, the minimum size of the expansion area of the retractable display screen is the fixed display area size, the maximum size of the expansion area of the retractable display screen is the fixed display area size plus the total expansion display area size, and the expansion display area can move between the inside of the electronic device and the outside of the electronic device.
In 103, adjusting the distance between the plurality of lenses in the camera module according to the size of the expansion area to change the focal length of the camera module.
In this application embodiment, can be associated the size in telescopic display screen expansion region with the focus of camera module, for example can set up the mapping table between the size in expansion region and the focus of camera module in advance, the size in different expansion regions corresponds the focus of different camera modules.
For example, when the size of the expansion area of the telescopic display screen is the size of the fixed display area, the focal length of the camera module is set to be 1 time of the focal length in advance; when the size of the expansion area of the telescopic display screen is the size of the expansion display area obtained by adding 1 half to the size of the fixed display area, the focal length of the camera module is 2 times that of the fixed display area; when the size of the expansion area of the telescopic display screen is the size of the fixed display area plus the size of the whole expansion display area, the focal length of the camera module is 10 times of the focal length.
The camera module can move lens to assigned position through the motor, realizes the adjustment of focus, and the focus of camera module is big more, and the scenery that can shoot is just farther. After the size that obtains telescopic display screen expansion region, can adjust the distance between a plurality of lenses in the camera module according to the size in expansion region to change the focus of camera module.
For example, the camera module has photoelectric sensor and 5 lenses, and 2 nd lens and 3 rd lens can wholly remove in order to change the focus of camera module as a set of lens. After obtaining the regional size of telescopic display screen expansion, for example when discerning that the size of current expansion region reaches fixed display area and adds 1 half extension display area, according to the mapping table between the size in expansion region and the focus of camera module, the focus of the camera module that corresponds is 2 times focus, then the motor can correspond 2 nd lens of drive and 3 rd lens and move to the assigned position that 2 times focus corresponds to change the focus of camera module and be 2 times focus. Wherein, the 2 nd lens and the 3 rd lens are lenses which are close to the 2 nd and the 3 rd of the photoelectric sensor.
Electronic equipment includes the telescopic display screen in the embodiment of this application, the user is when shooing, can be directly through shrink or stretch the telescopic display screen can correspond the focus of adjustment camera module, whether the user also can directly look over on the telescopic display screen to use the focus after the adjustment to shoot suitable simultaneously, and do not need the user to adjust the camera lens or look for the focus parameter and set up, consequently the user can conveniently adjust the focus of camera module, thereby electronic equipment's operability has been promoted.
It should be noted that, the user can contract or extend the telescopic display screen through manual mode or motor mode, and when the size of user's manual mode adjustment telescopic display screen, the user uses both hands to grip electronic equipment usually, therefore the user not only can be convenient manual adjustment camera module focus, but also can make the shooting more stable, especially when the focus of camera module is great, can be better prevent to shoot the shake.
Referring to fig. 7, fig. 7 is another schematic flow chart of a control method of a camera module according to an embodiment of the present application, where the flow chart may include:
in 201, it is identified whether the electronic device is in a shooting state.
When the camera application of the electronic equipment is started, the electronic equipment is in a shooting state, the electronic equipment can enter the shooting state through the camera module, the live-action image can be obtained in real time through the camera module, and the live-action image is shot. The electronic device may identify whether the electronic device is currently in a shooting state through the processor, for example, whether the electronic device is currently in the shooting state may be determined through a working state of the camera module, and when the camera module is in the working state, the electronic device is in the shooting state.
At 202, if so, the size of the display expansion area of the retractable display is identified.
And if the electronic equipment is in a shooting state, identifying the size of the expansion area of the telescopic display screen. The retractable display screen may include a fixed display area and an extended display area. The fixed display area is a display area in which the retractable display screen is in a retracted state and is not accommodated in the electronic device. The expanded display area is a display area which can be stored in the electronic device and can be moved to the outside of the electronic device to be increased, and the expanded display area can be contracted into the electronic device or expanded to the outside of the electronic device for displaying.
It can be appreciated that the size of the expansion area of the retractable display screen is adjustable, the minimum size of the expansion area of the retractable display screen is the fixed display area size, the maximum size of the expansion area of the retractable display screen is the fixed display area size plus the total expansion display area size, and the expansion display area can move between the inside of the electronic device and the outside of the electronic device.
The retractable display screen can be retracted or extended manually or electrically to adjust the size of the expansion area. When the size of the display screen unfolding area is adjusted manually by a user, the user can apply an external force to one end of the telescopic display screen, and when the external force is applied to one end of the telescopic display screen, the telescopic display screen is driven by the external force to stretch or contract so as to change the size of the telescopic display screen unfolding area. Or, the user can also adjust the size of the display screen expansion area in an electric manner, the electronic device may further include a driving motor, and when the electronic device receives a control instruction of the user, the electronic device controls the driving motor to drive the retractable display screen to extend or retract according to the control instruction, so as to change the size of the retractable display screen expansion area.
It can be understood that, when the user adjusts the size of the retractable display screen in a manual mode, the user usually uses both hands to hold the electronic device, so that the user can conveniently and manually adjust the focal length of the camera module, the shooting can be more stable, and especially when the focal length of the camera module is larger, the shooting shake can be better prevented; and the user has increased the mutual interaction between user and the electronic equipment through the module focus of manual adjustment camera, has promoted electronic equipment's maneuverability.
In one embodiment, the retractable display screen rotates around a rotating shaft; identifying the size of the expansion area of the telescopic display screen comprises acquiring the rotation angle of a rotating shaft; and calculating the size of the expansion area of the telescopic display screen according to the rotation angle. It can be understood that the retractable display screen rotates around the rotating shaft, and the structure of the rotating shaft can refer to the structure of the driving member in the above implementation, and the structure of the rotating shaft is not described herein again.
No matter the telescopic display screen removes the electronic equipment outside from the electronic equipment inside, still removes the electronic equipment outside from the electronic equipment inside, the telescopic display screen rotation can all be followed to the pivot, can set up an angle sensor in pivot department, through the turned angle of angle sensor monitoring pivot. For example, when the expanded display area moves from the inside of the electronic device to the outside of the electronic device, the rotation angle of the rotation shaft increases as the rotation shaft rotates. When the expanded display area moves from the outside of the electronic equipment to the inside of the electronic equipment, the rotating shaft rotates along with the expanded display area, and the rotating angle of the rotating shaft is smaller. For example, the rotation angle is 720 degrees, which means that the rotation shaft rotates twice. It should be noted that, when the expandable display area of the retractable display screen is located inside the electronic device, the rotation angle of the rotating shaft is set to zero.
And calculating the size of the expansion area of the telescopic display screen according to the rotation angle. After the rotation angle of the rotating shaft is obtained, the size of the expansion area of the telescopic display screen can be calculated according to the rotation angle of the rotating shaft. For example, the size of the display screen expansion area can be calculated through the rotation angle of the rotating shaft and the radius of the rotating shaft.
It should be noted that the size of the display screen expansion area can also be calculated by other methods. For example, a distance sensor may be provided at the edge of the fixed display area, which may measure the size of the current deployment area. The size of how to identify the display screen expansion area is not limited.
In 203, it is identified whether the size of the deployment area reaches a preset size.
In the embodiment of the application, after the size of the expansion area of the telescopic display screen is obtained, whether the size of the expansion area reaches the preset size is judged. The preset size can be set according to the requirement, and the preset size can be one or more.
For example, the preset size may be set to a size of the fixed display area; for another example, the preset size may be the size of the extended display area obtained by adding 1 half to the size of the fixed display area; for another example, the preset size may be the size of the fixed display area plus the size of the entire extended display area.
At 204, if the size of the expansion area does not reach the preset size, the distance between the plurality of lenses in the camera module is maintained, so that the focal length of the camera module is the first focal length.
In the embodiment of the application, the mapping table between the focal lengths of the preset sizes and the camera modules can be preset, and different preset sizes correspond to different focal lengths of the camera modules.
For example, when the preset size is the size of the fixed display area, the focal length of the camera module is set to be 1 time of the focal length; when the preset size is the size of the extended display area which is obtained by adding 1 half to the size of the fixed display area, the focal length of the camera module is 2 times of the focal length; when the preset size is the fixed display area size plus the whole expanded display area size, the focal length of the camera module is 10 times of the focal length.
The camera module can move lens to assigned position through the motor, realizes the adjustment of focus, and the focus of camera module is big more, and the scenery that can shoot is just farther. After obtaining the regional size of telescopic display screen expansion, discernment expansion region is for predetermineeing the size, if do not reach the default size, then do not adjust the focus of current camera module, also keep the distance between a plurality of lenses in the camera module to the focus that makes the camera module keeps being current first focus.
For example, when the telescopic display screen is in the shrink state, the size of the expansion region of telescopic display screen is fixed display area, and the display area of extension is all accomodate inside electronic equipment, and the focus of the camera module that corresponds this moment is first focus, and wherein, first focus can be the default focus of camera module, for example can be 1 times focus.
In the shooting process of a user, the telescopic display screen of the electronic equipment is stretched, and whether the size of the expansion area reaches the preset size or not is identified. For example, the preset size may be the size of the extended display area obtained by adding 1 half to the size of the fixed display area, and when it is recognized that the size of the extended display area outside the electronic device does not reach half, it is considered that the size of the extended display area does not reach the preset size, and at this time, the distance between the plurality of lenses in the camera module is maintained, so that the focal length of the camera module is maintained as the current first focal length.
In 205, if the size of the expansion area reaches the predetermined size, the distance between the plurality of lenses in the camera module is adjusted, so that the focal length of the camera module is the second focal length, and the second focal length is not equal to the first focal length.
For example, the size of the expansion area of the telescopic display screen is a fixed display area, and the focal length of the corresponding camera module is the first focal length.
In the shooting process of a user, the telescopic display screen of the electronic equipment is stretched, and whether the size of the expansion area reaches the preset size or not is identified. For example, the preset size may be the size of the extended display area obtained by adding 1 half to the size of the fixed display area, and when the size of the extended display area outside the electronic device is identified to reach half, the size of the extended area is considered to reach the preset size, and the distances between the plurality of lenses in the camera module are adjusted according to a mapping table between the preset size and the focal length of the camera module, so that the focal length of the camera module is changed from the first focal length to the second focal length. For example, the second focal length may be 2 times the first focal length. When the telescopic display screen continues to be stretched, and the extended display area is recognized to be in the stretching state, the distance between the plurality of lenses in the camera module is adjusted according to the mapping table so that the focal length of the camera module is changed from the second focal length to the third focal length. For example, the third focal length may be 10 times the first focal length.
For another example, when the size of the expansion area of the retractable display screen is the fixed display area plus the entire expansion display area, the focal length of the corresponding camera module is the first focal length.
During shooting, a user retracts the retractable display screen of the electronic device and identifies whether the size of the expansion area reaches a preset size. For example, the preset size may be the size of the extended display area obtained by adding 1 half to the size of the fixed display area, and when the size of the extended display area outside the electronic device shrinks to half, the size of the extended area is considered to reach the preset size, and then the distance between the plurality of lenses in the camera module is adjusted according to a mapping table between the preset size and the focal length of the camera module, so that the focal length of the camera module is changed to the second focal length. For example, the second focal length may be 1/2 the first focal length. When the telescopic display screen continues to be contracted, and the expanded display area is identified to be in a contracted state, the distance between the plurality of lenses in the camera module is adjusted according to the mapping table so that the focal length of the camera module is changed from the second focal length to the third focal length. For example, the third focal length may be 1/10 times the first focal length.
The predetermined size may be one or more. When the preset size is multiple, the judgment can be carried out in sequence to obtain the corresponding focal length.
For example, the preset sizes may include a first preset size, a second preset size, and a third preset size. The first preset size can be the size of a fixed display area, and the focal length of the corresponding camera module is a first focal length; the second preset size can be the size of the extended display area obtained by adding 1 half to the size of the fixed display area, and the focal length of the corresponding camera module is the second focal length; the third preset size can be the size of the fixed display area plus the size of the whole extended display area, and the focal length of the corresponding camera module is the third focal length.
The size of the current expansion area is a first preset size, the focal length of the corresponding camera module is a first focal length, a telescopic display screen is stretched in the shooting process of a user, whether the size of the expansion area reaches a third preset size or not can be judged firstly, and if the size reaches the third preset size, the distance between a plurality of lenses in the camera module is adjusted, so that the focal length of the camera module is a third focal length; if the size of the expansion area does not reach the third preset size, judging whether the size of the expansion area reaches the second preset size, and if the size of the expansion area reaches the second preset size, adjusting the distance between a plurality of lenses in the camera module to enable the focal length of the camera module to be the second focal length; if the size of the expansion area does not reach the second preset size, the distance between the plurality of lenses in the camera module is kept, so that the focal length of the camera module is kept as the first focal length. The second focal length is 2 times of the first focal length, and the third focal length is 10 times of the first focal length. The first focal length may be a default focal length of the camera module, such as 1-fold focal length.
It should be noted that the numerical values in the above embodiments are only examples, and in other embodiments, the number and the size of the preset sizes may be adjusted as needed, or corresponding focal length data may be set as needed, and the relationship between the multiple of the back focal length and the first focal length is adjusted.
In one embodiment, if the size of the expansion area reaches a preset size, adjusting the distance between the plurality of lenses in the camera module to make the focal length of the camera module be the second focal length includes: determining a preset lens from a plurality of lenses; obtaining the moving distance of the preset lens according to the corresponding relation between the preset size of the preset expansion area and the position of the preset lens; the preset lens is driven to move the moving distance relative to other lenses so as to change the focal length of the camera module.
The camera module comprises a plurality of lenses, and the camera module can adjust the focal length by changing the positions of one or more preset lenses.
The embodiment of the application can preset the preset size of the expansion area, the focal length of the camera module and the corresponding relation between the positions of the preset lenses, such as setting a mapping table and the like.
When the size of the expansion area reaches the preset size, the moving distance of the current preset lens to be moved can be calculated according to the corresponding relation between the preset size of the preset expansion area and the position of the preset lens. Then the preset lens is driven to move the moving distance relative to other lenses so as to change the focal length of the camera module.
For example, the camera module has photoelectric sensor and 5 lenses, 2 nd and 3 rd lens can move as predetermineeing the lens wholly, obtain telescopic display screen expansion area's size after, obtain according to the mapping table and predetermine the position that the lens will be located, thereby calculate 2 nd and 3 rd lens and need the distance that removes at present, then correspond 2 nd and 3 rd lens of drive and remove, change the distance of 2 nd and 3 rd lens and other lenses, thereby change the focus of camera module. Wherein, the 2 nd lens and the 3 rd lens are lenses which are close to the 2 nd lens and the 3 rd lens of the photoelectric sensor. If necessary, only the 2 nd lens or the 3 rd lens may be adjusted, or other lenses such as the 1 st lens, the 4 th lens or the 5 th lens may be adjusted.
In an embodiment, the camera module may also include other numbers of lenses, such as 7 lenses, 9 lenses, etc., and the preset lenses may also be multiple, such as 3 preset lenses, 4 preset lenses, etc. The embodiment of the application can preset the corresponding relation between the preset size of the expansion area and the positions of a plurality of preset lenses. When the preset lens is a plurality of, and when the size of the expansion area reaches the preset size, the preset lens is driven to move relative to other lenses by the movement distance including: obtaining the moving distance and the moving direction corresponding to the preset lenses respectively according to the corresponding relation between the preset size of the preset expansion area and the positions of the preset lenses; and driving the plurality of preset lenses to move towards the corresponding moving directions respectively by the moving distance so as to enable the focal length of the camera module to be the second focal length. It can be understood that, when the preset lenses are multiple, based on the current positions of the multiple preset lenses, the corresponding directions and distances to be moved of the different preset lenses can be obtained according to the corresponding relationship between the preset size of the expansion area and the positions of the multiple preset lenses, and the moving directions and distances of the different preset lenses can be different from each other or can be different from each other as required.
In an embodiment, the photosensor and the lens, such as the 1 st lens and the photosensor, can be adjusted according to needs, and the function of adjusting the focal length of the camera module can also be realized.
It can be understood that the moving distance of the lens is very small, the moving distance of the telescopic display screen is far greater than that of the lens, the moving distance of the telescopic display screen is converted into the moving distance of the lens according to a preset proportion, the moving distance of the lens is adjusted by adjusting the size of the expansion area, the adjusting precision is high, the moving distance of the lens is adjusted more accurately, and a user can easily adjust the focal length to be wanted. In one embodiment, driving the preset lens to move the moving distance relative to the other lens when the size of the expansion area reaches a preset size comprises: identifying a trend of change in the size of the deployment area; if the variation trend is larger, adjusting the distance between a plurality of lenses in the camera module to increase the focal length of the camera module; if the variation trend is smaller, adjusting the distance between a plurality of lenses in the camera module to reduce the focal length of the camera module. And acquiring the variation trend of the size of the expansion area, namely acquiring whether the telescopic display screen is stretched or contracted, wherein if the variation trend is larger, the telescopic display screen is stretched, and if the variation trend is smaller, the telescopic display screen is contracted.
The camera module comprises a plurality of lenses, and the camera module can further realize the adjustment of the focal length by changing the positions of one or more preset lenses. When the telescopic display screen is stretched, can adjust distance between a plurality of lenses in the camera module to increase the focus of camera module. When the telescopic display screen is contracted, the distance between a plurality of lenses in the camera module can be adjusted, and the focal length of the camera module is reduced.
For example, the size of the current expansion region is the fixed display region size, and the corresponding camera module focus is first focus, and when the user in shooting process, the telescopic display screen is stretched for the size of the current expansion region reaches the fixed display region size and adds 1 half the size of the expansion display region, and the trend of change of the size of the expansion region is the grow, and the focus of the corresponding camera module is the second focus. For example, the second focal length is 2 times the first focal length.
For example, the camera module has photoelectric sensor and 5 lenses, and the 2 nd lens and the 3 rd lens can wholly move as the preset lens to change the focal length of the camera module. According to the preset size of the preset expansion area and the corresponding relation between the positions of the preset lenses, when the size of the expansion area reaches the expansion display area with the size of the fixed display area plus 1 half, the positions of the 2 nd lens and the 3 rd lens to be located are obtained, the moving distance of the 2 nd lens and the 3 rd lens which need to move at present is calculated, then the motor drives the 2 nd lens and the 3 rd lens to move the moving distance, and the focal distance of the camera module is changed into the second focal distance.
For another example, the size of the current expansion area is larger than the size of the expansion display area obtained by adding 1 half to the size of the fixed display area, but the expansion display area is not fully extended, the focal length of the corresponding camera module is the first focal length, when the user takes a picture, the telescopic display screen is contracted, so that the size of the current expansion area is the size of the fixed display area, the variation trend of the size of the expansion area is reduced, and the focal length of the corresponding camera module is the second focal length. For example, the second focal length is 1/2 the first focal length.
Similarly, for example, the camera module has 5 lenses, and the 2 nd lens and the 3 rd lens can move as a whole to change the focus of camera module as presetting the lens. According to the preset size of the preset expansion area and the corresponding relation between the positions of the preset lenses, the positions where the 2 nd lens and the 3 rd lens are to be located when the size of the expansion area is the size of the fixed display area are obtained, so that the moving distance of the 2 nd lens and the 3 rd lens which need to move at present is calculated, then the 2 nd lens and the 3 rd lens are driven by the motor to move the moving distance, and the focal distance of the camera module is changed into the second focal distance. The 2 nd lens and the 3 rd lens can be a lens close to the 2 nd lens and a lens close to the 3 rd lens of the photoelectric sensor.
It is understood that, after identifying whether the size of the deployment region reaches the preset size, the method may further include: if the size of the expansion area does not reach the preset size, prompting a user to adjust the size of the expansion area so as to adjust the focal length of the camera module to be the second focal length.
If the size of the expansion area changes but does not reach the preset size, the focal length of the camera module cannot be adjusted at the moment, the electronic equipment can pop up a prompt box to prompt a user to adjust the size of the expansion area, for example, the expanded display area continues to be expanded, so that the size of the expansion area reaches the preset size, when the size of the expansion area reaches the preset size, the distance between a plurality of lenses in the camera module is adjusted, and the focal length of the camera module is adjusted to be the second focal length from the current first focal length.
Electronic equipment includes the telescopic display screen in the embodiment of the application, the user is when shooing, can be directly through shrink or the telescopic display screen of extension can correspond the focus of adjustment camera module, it is whether suitable that the user also can directly look over the focus of using after the adjustment on the telescopic display screen simultaneously shoots, and do not need the user to adjust the camera lens or look for the focus parameter and set up, consequently the user can conveniently adjust the focus of camera module, and electronic equipment and user's interdynamic has also been increased, thereby electronic equipment's operability has been promoted.
Referring to fig. 8 to 9, fig. 8 is a schematic view of a scenario of an apparatus control method according to an embodiment of the present application, and fig. 9 is a schematic view of another scenario of the apparatus control method according to the embodiment of the present application. The electronic equipment provided by the embodiment comprises the telescopic display screen. The retractable display screen may be a display screen that is retractable. The retractable display screen may be a flexible display screen that may be extended and retracted, etc. On the electronic equipment provided with the telescopic display screen, the expansion size of the display screen can be increased by stretching the display screen, and the expansion size of the display screen can be reduced by contracting the display screen. As shown in fig. 8, fig. 8 shows the configuration of the display screen of the electronic device when the retractable display screen is in the retracted state, and the configuration of the display screen of the electronic device when the retractable display screen is in the extended state.
When the camera application of the electronic equipment is started, the electronic equipment is in a shooting state, the electronic equipment can enter the shooting state through the camera module, the live-action image can be obtained in real time through the camera module, and the live-action image is shot.
And if the electronic equipment is in a shooting state, identifying the size of the expansion area of the telescopic display screen. The retractable display screen may include a fixed display area and an extended display area. The fixed display area is a display area in which the retractable display screen is in a retracted state and is not accommodated in the electronic device. The extended display area is a display area that can be accommodated inside the electronic device and can be moved to the outside of the electronic device to be increased.
It will be appreciated that the size of the display area of the retractable display screen is adjustable, the size of the display area of the retractable display screen is at least the fixed display area size, the size of the display area of the retractable display screen is at most the fixed display area size plus the total extended display area size, and the extended display area is movable between the interior of the electronic device and the exterior of the electronic device.
And after the size of the expansion area of the telescopic display screen is obtained, judging whether the size of the expansion area reaches the preset size. The preset size can be set as required, and it can be understood that the preset size may be one or more.
In the embodiment of the application, the mapping table between the focal lengths of the preset sizes and the camera modules can be preset, and different preset sizes correspond to different focal lengths of the camera modules. For example, when the preset size is the size of the fixed display area, the focal length of the camera module is set to be 1 time of the focal length; when the preset size is the size of the extended display area which is obtained by adding 1 half to the size of the fixed display area, the focal length of the camera module is 2 times of the focal length; when the preset size is the fixed display area size plus the whole expanded display area size, the focal length of the camera module is 10 times of the focal length.
The camera module can move the lens to the designated position through the motor so as to adjust the focal length. After obtaining the regional size of telescopic display screen expansion, discernment expansion region is for predetermineeing the size, if do not reach the default size, then do not adjust the focus of current camera module, also keep the distance between a plurality of lenses in the camera module to the focus that makes the camera module keeps being current first focus.
If the size of the expansion area reaches the preset size, the distance between the plurality of lenses in the camera module is adjusted, so that the focal length of the camera module is the second focal length, and the second focal length is not equal to the first focal length.
For example, when the telescopic display screen is in the shrink state, the size of the expansion area of telescopic display screen is fixed display area, and the expanded display area is all accomodate inside electronic equipment, and first focus this moment can be the default focus of camera module, for example can be 1 times focus.
During shooting, a user stretches a retractable display screen of the electronic device, and then identifies whether the size of the expansion area is equal to a preset size, for example, the preset size may be the size of the expansion display area obtained by adding 1 half to the size of the fixed display area.
If the size of the expanded display area outside the electronic equipment does not reach half, the size of the expansion area is considered to not reach the preset size, and the distance between the plurality of lenses in the camera module is kept at the moment so that the focal length of the camera module is kept to be the current first focal length.
If the size of the expanded display area outside the electronic equipment reaches half, the size of the expanded display area is considered to reach the preset size, and the distances between the plurality of lenses in the camera module are adjusted according to a mapping table between the preset size and the focal length of the camera module, so that the focal length of the camera module is changed into the second focal length. For example, the second focal length may be 2 times the focal length.
If the retractable display screen of the electronic device continues to be stretched and the retractable display screen is in a fully extended state, the size of the expansion area of the retractable display screen is the size of the fixed display area plus the size of the full expansion display area, and at this time, the corresponding focal length of the camera may be the third focal length. For example, the third focal length may be 10 times the focal length.
Specifically, the camera module includes a plurality of lenses, and the camera module can adjust the focal length by changing the position of one or more preset lenses. The embodiment of the application can preset the preset size of the expansion area, the focal length of the camera module and the corresponding relation between the positions of the preset lenses, such as setting a mapping table and the like.
When the size of the expansion area reaches the preset size, the moving distance of the current preset lens to be moved can be calculated according to the preset size of the expansion area and the corresponding relation between the positions of the preset lens, and then the preset lens is driven to move the moving distance relative to other lenses so as to change the focal length of the camera module.
The electronic device can identify a trend of change in the size of the expansion area; if the variation trend is larger, adjusting the distance between a plurality of lenses in the camera module to increase the focal length of the camera module; if the variation trend is for diminishing, then adjust the distance between a plurality of lenses in the camera module to reduce the focus of camera module.
Referring to fig. 9, for example, the camera module has a prism 220, a photo sensor 280 and 5 lenses (the other 3 lenses are not shown). The 2 nd lens 240 and the 3 rd lens 260 can integrally move as a preset lens to change the focal length of the camera module. When the size of the currently expanded area of the display screen 290 of the electronic device is the fixed display area size, the corresponding focal length of the camera module is the first focal length, for example, 1-fold focal length. In the shooting process, a telescopic display screen is stretched, so that when the size of the current expansion area of the display screen 290 of the electronic device reaches the expansion display area with the size of the fixed display area plus 1 half, the positions where the 2 nd lens 240 and the 3 rd lens 260 are to be located are obtained according to the preset size of the expansion area and the corresponding relation between the positions of the preset lenses, the moving distance that the 2 nd lens 240 and the 3 rd lens 260 need to move at present is calculated, then the 2 nd lens 240 and the 3 rd lens 260 are driven by a motor to move the moving distance, and the focal length of the camera module is changed from the first focal length to the second focal length. For example, the second focal length may be 2 times the first focal length. When the telescopic display screen continues to be stretched and the currently expanded display area of the display screen 290 of the electronic device is recognized to be in the stretching state, the positions where the 2 nd lens 240 and the 3 rd lens 260 are to be located are obtained according to the corresponding relation between the preset size of the preset stretching area and the preset lens position, so that the moving distance that the 2 nd lens 240 and the 3 rd lens 260 need to move at present is calculated, then the motor drives the 2 nd lens 240 and the 3 rd lens 260 to move continuously for the moving distance, and therefore the focal length of the camera module is changed from the second focal length to the third focal length. For example, the third focal length may be 10 times the first focal length.
The application embodiment electronic equipment includes the telescopic display screen, the user is when shooing, can be directly through shrink or the telescopic display screen that extends can correspond the focus of adjustment camera module, the user also can directly look over on the telescopic display screen simultaneously and use the focus after the adjustment to shoot whether suitable, and do not need the user to adjust the camera lens or look for the focus parameter and set up, consequently the user can conveniently adjust the focus of camera module, thereby electronic equipment's operability has been promoted.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an apparatus control device according to an embodiment of the present application. The equipment control device can be applied to electronic equipment, and the electronic equipment comprises a camera module and a telescopic touch display screen. The device control apparatus 300 may include: an identification module 301, an acquisition module 302 and a processing module 303.
The identification module 301 is configured to: identifying whether the electronic equipment is in a shooting state;
the obtaining module 302 is configured to: if so, identifying the size of the expansion area of the telescopic display screen;
the processing module 303 is configured to: the distance between a plurality of lenses in the camera module is adjusted according to the size of the expansion area so as to change the focal length of the camera module.
In one embodiment, the processing module 303 may be configured to:
identifying whether the size of the expansion area reaches a preset size;
if the size of the expansion area does not reach the preset size, the distance between a plurality of lenses in the camera module is kept, so that the focal length of the camera module is a first focal length;
if the size of the expansion area reaches the preset size, the distance between the plurality of lenses in the camera module is adjusted, so that the focal length of the camera module is the second focal length, and the second focal length is not equal to the first focal length.
In one embodiment, the processing module 303 may be configured to:
if the size of the expansion area does not reach the preset size, prompting a user to adjust the size of the expansion area so as to adjust the focal length of the camera module to be the second focal length.
In one embodiment, the processing module 303 may be configured to:
determining a preset lens from a plurality of lenses;
obtaining the moving distance of the preset lens according to the corresponding relation between the preset size of the preset expansion area and the position of the preset lens;
the preset lens is driven to move the moving distance relative to other lenses so that the focal length of the camera module is the second focal length.
In one embodiment, the processing module 303 may be configured to:
identifying a trend of change in the size of the deployment area;
if the variation trend is larger, adjusting the distance between a plurality of lenses in the camera module to increase the focal length of the camera module;
if the variation trend is smaller, adjusting the distance between a plurality of lenses in the camera module to reduce the focal length of the camera module.
In one embodiment, the processing module 303 may be configured to:
when one end of the telescopic display screen is subjected to external force, the telescopic display screen is driven by the external force to extend or contract so as to change the size of an expansion area of the telescopic display screen; or
When the electronic equipment receives a control instruction of a user, the electronic equipment controls the driving motor to drive the telescopic display screen to extend or contract according to the control instruction so as to change the size of an extending area of the telescopic display screen.
In one embodiment, the processing module 303 may be configured to:
when a plurality of preset lenses are provided, obtaining the moving distances and moving directions respectively corresponding to the plurality of preset lenses according to the corresponding relation between the preset size of the preset expansion area and the positions of the plurality of preset lenses;
driving the preset lenses to move towards the corresponding moving directions respectively by the moving distance so as to enable the focal length of the camera module to be the second focal length
The application embodiment provides a computer-readable storage medium on which a computer program is stored, which, when executed on a computer, causes the computer to execute the flow in the device control method provided in this embodiment.
The embodiment of the application further provides an electronic device, which comprises a memory, a processor, a telescopic display screen and a camera module, wherein the processor is used for executing the flow in the device control method provided by the embodiment by calling the computer program stored in the memory.
For example, the electronic device may be a mobile terminal such as a tablet computer or a smart phone. Referring to fig. 11, fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
The electronic device 400 may include a touch screen 401, a memory 402, a processor 403, a camera module 404, and the like. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display 401 may be a retractable display. The retractable display screen may be a retractable touch display screen. The retractable touch display may be a flexible display that may be bent, retracted, extended, etc. On an electronic device configured with a retractable touch display screen, the expansion size of the screen can be increased by extending the display screen, and the expansion size of the screen can be reduced by retracting the display screen.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The camera module 404 is used for video camera shooting and image acquisition, and processes images by a photosensitive component circuit and a control component in the camera after acquiring the images by means of a lens, and then restores the images by means of software, so that the images can be seen through a display screen.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
identifying whether the electronic equipment is in a shooting state;
if so, identifying the size of the expansion area of the telescopic display screen;
the distance between a plurality of lenses in the camera module is adjusted according to the size of the expansion area so as to change the focal length of the camera module.
Referring to fig. 12, the electronic device 400 may include a touch display 401, a memory 402, a processor 403, a camera module 404, a battery 405, a microphone 406, a speaker 407, and other components.
The touch display 401 may be a retractable touch display. The retractable touch display screen may be a retractable touch display screen. The retractable touch display may be a flexible display that may be bent, retracted, extended, etc. On an electronic device configured with a retractable touch display screen, the expansion size of the display screen can be increased by stretching the screen, and the expansion size of the screen can be reduced by retracting the display screen.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing executable code. The application programs may constitute various functional modules. The processor 403 executes various functional applications and data processing by running an application program stored in the memory 402.
The processor 403 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing an application program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
The camera module 404 is used for video camera shooting and image acquisition, and processes images by a photosensitive component circuit and a control component in the camera after acquiring the images by means of a lens, and then restores the images by means of software, so that the images can be seen through a display screen.
The battery 405 may be used to supply power to various modules and components of the electronic device.
Microphone 406 may be used to pick up acoustic signals in the surrounding environment, such as to receive voice commands from a user, etc.
The speaker 407 may be used to play sound signals.
In this embodiment, the processor 403 in the electronic device loads the executable code corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 403 runs the application programs stored in the memory 402, so as to execute:
identifying whether the electronic equipment is in a shooting state;
if so, identifying the size of the expansion area of the telescopic display screen;
the distance between a plurality of lenses in the camera module is adjusted according to the size of the expansion area so as to change the focal length of the camera module.
In one embodiment, in adjusting the distance between the plurality of lenses in the camera module according to the size of the expansion area to change the focal length of the camera module, the processor 403 performs identifying whether the size of the expansion area reaches a preset size;
if the size of the expansion area does not reach the preset size, the distance between a plurality of lenses in the camera module is kept, so that the focal length of the camera module is a first focal length;
if the size of the expansion area reaches the preset size, the distance between the plurality of lenses in the camera module is adjusted, so that the focal length of the camera module is the second focal length, and the second focal length is not equal to the first focal length.
In one embodiment, after identifying whether the size of the expansion area reaches the preset size, the processor 403 prompts the user to adjust the size of the expansion area if the size of the expansion area does not reach the preset size, so that the focal length of the camera module is adjusted to the second focal length.
In one embodiment, when the size of the expansion area reaches a preset size, the distance between the lenses in the camera module is adjusted so that the focal length of the camera module is in the second focal length, and the processor 403 executes the step of determining a preset lens from the lenses;
obtaining the moving distance of the preset lens according to the corresponding relation between the preset size of the preset expansion area and the position of the preset lens;
the preset lens is driven to move the moving distance relative to other lenses so that the focal length of the camera module is the second focal length.
In one embodiment, in driving the preset lens to move the moving distance relative to the other lenses, the processor 403 executes to identify a variation trend of the size of the expansion area;
if the variation trend is larger, adjusting the distance between a plurality of lenses in the camera module to increase the focal length of the camera module;
if the variation trend is smaller, adjusting the distance between a plurality of lenses in the camera module to reduce the focal length of the camera module.
In one embodiment, the processor 403 executes the operation that when one end of the retractable display screen is subjected to an external force, the retractable display screen is driven by the external force to extend or contract so as to change the size of the expansion area of the retractable display screen; or
When the electronic equipment receives a control instruction of a user, the electronic equipment controls the driving motor to drive the telescopic display screen to extend or contract according to the control instruction so as to change the size of an extending area of the telescopic display screen.
In one embodiment, in the driving of the preset lens to move the moving distance relative to other lenses, the processor 403 executes, when there are a plurality of preset lenses, obtaining moving distances and moving directions respectively corresponding to the plurality of preset lenses according to a preset relationship between a preset size of a preset expansion area and positions of the plurality of preset lenses;
and driving the plurality of preset lenses to move towards the corresponding moving directions respectively by the moving distance so as to enable the focal length of the camera module to be the second focal length.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the device control method, and are not described herein again.
The device control apparatus provided in the embodiment of the present application and the device control method in the above embodiments belong to the same concept, and any method provided in the device control method embodiment may be run on the device control apparatus, and a specific implementation process thereof is described in detail in the device control method embodiment, and is not described herein again.
It should be noted that, for the apparatus control method of the embodiment of the present application, it can be understood by those skilled in the art that all or part of the process for implementing the apparatus control method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, the computer program can be stored in a computer readable storage medium, such as a memory, and executed by at least one processor, and during the execution process, the process of the embodiment of the apparatus control method can be included. The storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the device control apparatus according to the embodiment of the present application, each functional module may be integrated into one processing chip, each module may exist alone physically, or two or more modules may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed descriptions of the device control method, apparatus, storage medium, and electronic device provided in the embodiments of the present application, and the specific examples applied herein are set forth to explain the principles and implementations of the present application, and the descriptions of the above embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. The device control method is applied to electronic devices, and is characterized in that the electronic devices comprise a camera module and a telescopic display screen, and the method comprises the following steps:
identifying whether the electronic equipment is in a shooting state;
if so, identifying the size of the expansion area of the telescopic display screen;
adjusting the distance between a plurality of lenses in the camera module according to the size of the expansion area to change the focal length of the camera module, presetting a mapping table between the size of the expansion area and the focal length of the camera module, wherein the sizes of different expansion areas correspond to different focal lengths of the camera module, converting the moving distance of the telescopic display screen into the moving distance between the lenses according to a preset proportion, and adjusting the moving distance between the lenses by adjusting the size of the expansion area.
2. The device control method according to claim 1, wherein the adjusting the distance between the plurality of lenses in the camera module according to the size of the expansion area to change the focal length of the camera module comprises:
identifying whether the size of the expansion area reaches a preset size;
if the size of the expansion area does not reach the preset size, keeping the distance between a plurality of lenses in the camera module so as to enable the focal length of the camera module to be a first focal length;
and if the size of the expansion area reaches the preset size, adjusting the distance between a plurality of lenses in the camera module to enable the focal length of the camera module to be a second focal length, wherein the second focal length is not equal to the first focal length.
3. The apparatus control method according to claim 2, wherein after identifying whether the size of the deployment region reaches a preset size, the method further comprises:
if the size of the expansion area does not reach the preset size, prompting a user to adjust the size of the expansion area so as to adjust the focal length of the camera module to be the second focal length.
4. The apparatus control method according to claim 2, wherein if the size of the expansion area reaches the preset size, adjusting a distance between lenses in the camera module to make the focal length of the camera module a second focal length comprises:
determining a preset lens from the plurality of lenses;
obtaining the moving distance of the preset lens according to the corresponding relation between the preset size of the preset expansion area and the position of the preset lens;
and driving the preset lens to move relative to other lenses by the moving distance so as to enable the focal length of the camera module to be the second focal length.
5. The apparatus control method according to claim 4, wherein said driving the preset mirror to move the moving distance relative to the other mirrors comprises:
identifying a trend of change in the size of the deployment area;
if the variation trend is larger, adjusting the distance between a plurality of lenses in the camera module to increase the focal length of the camera module;
if the variation trend is smaller, the distance between the plurality of lenses in the camera module is adjusted to reduce the focal length of the camera module.
6. The device control method according to claim 1, characterized in that the method further comprises:
when one end of the telescopic display screen is subjected to external force, the telescopic display screen is driven by the external force to extend or contract so as to change the size of an expansion area of the telescopic display screen; or
When the electronic equipment receives a control instruction of a user, the electronic equipment controls the driving motor to drive the telescopic display screen to extend or contract according to the control instruction so as to change the size of an extending area of the telescopic display screen.
7. The apparatus control method according to claim 4, wherein said driving the preset mirror to move the moving distance relative to the other mirrors comprises:
when a plurality of preset lenses are provided, obtaining the moving distances and moving directions respectively corresponding to the plurality of preset lenses according to the corresponding relation between the preset size of the preset expansion area and the positions of the plurality of preset lenses;
and driving the plurality of preset lenses to move towards the corresponding moving directions respectively by the moving distance so as to enable the focal length of the camera module to be the second focal length.
8. The utility model provides a device of equipment control, is applied to electronic equipment, a serial communication port, electronic equipment includes telescopic display screen and camera module, and the device includes:
the identification module is used for identifying whether the electronic equipment is in a shooting state or not;
the acquisition module is used for identifying the size of the expansion area of the telescopic display screen if the size of the expansion area of the telescopic display screen is the same as the size of the expansion area of the telescopic display screen;
the processing module is used for adjusting the distances among the lenses in the camera module according to the size of the expansion area so as to change the focal length of the camera module, presetting a mapping table between the size of the expansion area and the focal length of the camera module, wherein the sizes of the different expansion areas correspond to the different focal lengths of the camera module, converting the moving distance of the telescopic display screen into the moving distance among the lenses according to a preset proportion, and adjusting the moving distance among the lenses by adjusting the size of the expansion area.
9. A storage medium having stored thereon a computer program, characterized in that the computer program, when executed on a computer, causes the computer to execute the method according to any one of claims 1 to 7.
10. An electronic device comprising a memory, a processor, a retractable display screen and a camera module, wherein the processor is adapted to perform the method of any one of claims 1 to 7 by invoking a computer program stored in the memory.
CN202010888201.5A 2020-08-28 2020-08-28 Device control method, device, storage medium and electronic device Active CN111988527B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010888201.5A CN111988527B (en) 2020-08-28 2020-08-28 Device control method, device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010888201.5A CN111988527B (en) 2020-08-28 2020-08-28 Device control method, device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN111988527A CN111988527A (en) 2020-11-24
CN111988527B true CN111988527B (en) 2022-03-22

Family

ID=73440330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010888201.5A Active CN111988527B (en) 2020-08-28 2020-08-28 Device control method, device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN111988527B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111474809B (en) * 2020-04-30 2021-08-20 Oppo广东移动通信有限公司 Electronic device
WO2022114836A1 (en) * 2020-11-26 2022-06-02 삼성전자 주식회사 Electronic device including slidable display
CN113055510B (en) * 2021-03-08 2023-02-28 Oppo广东移动通信有限公司 Electronic device
CN113114811B (en) * 2021-04-12 2023-08-29 维沃移动通信有限公司 Electronic equipment
CN113114949B (en) * 2021-04-22 2022-07-26 Oppo广东移动通信有限公司 Anti-shake photographing method, electronic device and readable storage medium
CN113114820A (en) * 2021-04-28 2021-07-13 维沃移动通信有限公司 Electronic device
CN113259512B (en) * 2021-05-19 2022-09-13 维沃移动通信(杭州)有限公司 Electronic device
CN113727001B (en) * 2021-08-31 2023-06-13 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN114244981B (en) * 2021-12-13 2024-01-16 维沃移动通信有限公司 Electronic equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698902B (en) * 2017-10-24 2020-09-11 华为技术有限公司 Synchronous focusing method and device
CN108712592A (en) * 2018-03-21 2018-10-26 谢奇 A kind of camera module and terminal of special light path
CN111294510A (en) * 2020-01-22 2020-06-16 维沃移动通信有限公司 Monitoring method and electronic equipment
CN111526270A (en) * 2020-04-23 2020-08-11 华为技术有限公司 Terminal equipment with shooting function and shooting method
CN111474809B (en) * 2020-04-30 2021-08-20 Oppo广东移动通信有限公司 Electronic device
CN111580237A (en) * 2020-05-20 2020-08-25 Oppo广东移动通信有限公司 Electronic device and control method thereof

Also Published As

Publication number Publication date
CN111988527A (en) 2020-11-24

Similar Documents

Publication Publication Date Title
CN111988527B (en) Device control method, device, storage medium and electronic device
US9389758B2 (en) Portable electronic device and display control method
US20160044227A1 (en) Image capturing device support with remote controller
CN108347564B (en) Mobile terminal and control method and control device of rotary camera module of mobile terminal
KR101840741B1 (en) linked phone type selfie apparatus
CN110730295B (en) Camera module, electronic equipment, shooting control method and device
CN113596316A (en) Photographing method, graphical user interface and electronic equipment
WO2023030223A1 (en) Photographing method and apparatus, and electronic device
CN114982213A (en) Electronic device for providing camera preview and method thereof
CN210867915U (en) Imaging module and electronic device
US20140168454A1 (en) Image Capture Device and Anti-shake Control Method Thereof
CN105049738A (en) Selfie taking control method and device
CN111835890B (en) Mobile terminal, screen control method, screen control device and storage medium
CN111818266A (en) Image display method, image pickup apparatus, image display apparatus, and readable storage medium
CN115766917A (en) Method and device for adjusting field angle, storage medium and electronic equipment
WO2022051956A1 (en) Handheld gimbal, method for controlling handheld gimbal, and computer-readable storage medium
CN209748685U (en) Mobile terminal
CN113114819A (en) Panorama shooting method, electronic device and readable storage medium
WO2020209097A1 (en) Image display device, image display method, and program
CN113784037B (en) Image shooting method and device, storage medium and electronic equipment
CN113741778A (en) Device control method, device, storage medium and electronic device
CN115811559A (en) Image acquisition method, image acquisition device, storage medium and electronic equipment
KR101156684B1 (en) Composite imaging method of digital image processing device
CN213656277U (en) Hand-held cloud platform
JP4383370B2 (en) Imaging device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant