CN111586271B - Electronic equipment and photographing control method - Google Patents
Electronic equipment and photographing control method Download PDFInfo
- Publication number
- CN111586271B CN111586271B CN202010388680.4A CN202010388680A CN111586271B CN 111586271 B CN111586271 B CN 111586271B CN 202010388680 A CN202010388680 A CN 202010388680A CN 111586271 B CN111586271 B CN 111586271B
- Authority
- CN
- China
- Prior art keywords
- camera module
- detection piece
- installation state
- determining
- detection
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/002—Diagnosis, testing or measuring for television systems or their details for television cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- General Health & Medical Sciences (AREA)
- Studio Devices (AREA)
Abstract
The invention provides electronic equipment and a photographing control method, and relates to the technical field of electronic equipment, wherein the electronic equipment comprises: the device comprises a device body, wherein the device body is provided with a mounting groove, and a first detection piece is arranged in the mounting groove; the camera module is movably arranged in the mounting groove, a second detection piece and a third detection piece are arranged on the camera module, and the camera module is provided with a first mounting state and a second mounting state; under the condition that the camera module is arranged in the mounting groove in a first mounting state, a first surface of the camera module is attached to the bottom surface of the mounting groove, and the first detection piece and the second detection piece are distributed oppositely; under the condition that the camera module is arranged in the mounting groove in a second mounting state, the first surface is attached to the bottom surface, and the first detection piece and the third detection piece are distributed oppositely; the orientation of the camera module in the first installation state is different from the orientation of the camera module in the second installation state. The scheme of the invention improves the photographing experience of the user.
Description
Technical Field
The present invention relates to the field of electronic devices, and in particular, to an electronic device and a photographing control method.
Background
With the rapid development of the field of electronic devices, cameras of the electronic devices are becoming more important, and the cameras become the key points of competition and propaganda of various manufacturers. At present, a camera of electronic equipment is generally fixedly installed on the electronic equipment, is integrated with the electronic equipment and cannot be detached. However, if the camera can be separated from the electronic device, the camera is generally separated from the electronic device only by a simple mechanism, that is: the relation between camera and the electronic equipment is only accomodate and is accomodate the relation, perhaps, only possesses the function of taking off and putting on, can only simply change the position relation between camera and the electronic equipment promptly, realizes basic shooting function, therefore the user experience of shooing is not good enough.
Disclosure of Invention
The invention aims to provide electronic equipment and a photographing control method, so that the problems that in the prior art, the position relation between a camera and the electronic equipment can only be simply changed, the basic photographing function is realized, and the photographing experience of a user is poor are solved.
In order to solve the technical problem, the invention is realized as follows:
an embodiment of the present invention provides an electronic device, including:
the device comprises a device body, a first detection piece and a second detection piece, wherein the device body is provided with a mounting groove;
the camera module is movably arranged in the mounting groove, a second detection piece and a third detection piece are arranged on the camera module, and the camera module is provided with a first mounting state and a second mounting state;
under the condition that the camera module is arranged in the mounting groove in the first mounting state, the first surface of the camera module is attached to the bottom surface of the mounting groove, and the first detection piece and the second detection piece are distributed oppositely;
under the condition that the camera module is arranged in the mounting groove in the second mounting state, the first surface is attached to the bottom surface, and the first detection piece and the third detection piece are distributed oppositely;
wherein the orientation of the camera module in the first installation state is different from the orientation of the camera module in the second installation state.
The embodiment of the invention also provides a photographing control method which is applied to the electronic equipment, and the method comprises the following steps:
detecting the camera module through the first detection piece to obtain first detection information;
determining the installation state of the camera module according to the first detection information, wherein the installation state comprises a first installation state and a second installation state;
determining a target working mode of the camera module according to the installation state;
and controlling the camera module to work in the target working mode.
An embodiment of the present invention further provides an electronic device, where the electronic device is the electronic device described above, and the electronic device further includes:
the acquisition module is used for detecting the camera module through the first detection piece to obtain first detection information;
the first determining module is used for determining the installation state of the camera module according to the first detection information, wherein the installation state comprises a first installation state and a second installation state;
the second determining module is used for determining a target working mode of the camera module according to the installation state;
and the control module is used for controlling the camera module to work in the target working mode.
An embodiment of the present invention further provides an electronic device, where the electronic device is the electronic device described above, and the electronic device further includes: a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the photographing control method as described above.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the photographing control method are implemented as described above.
In the embodiment of the invention, the installation groove is formed in the equipment body, the camera module is movably arranged in the installation groove, the first detection piece is arranged in the installation groove, and the second detection piece and the third detection piece are arranged on the camera module, so that different installation states of the camera module are determined according to the relative distribution of the first detection piece, the second detection piece and the third detection piece, different shooting modes are determined according to the installation states of the camera module, and the shooting experience of a user is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram illustrating a connection between an apparatus body and a camera module according to an embodiment of the present invention;
fig. 2 shows a second schematic diagram of the connection between the apparatus body and the camera module according to the embodiment of the present invention;
fig. 3 is a third schematic diagram illustrating a connection between an apparatus body and a camera module according to an embodiment of the present invention;
fig. 4 is a fourth schematic view illustrating a connection between the apparatus body and the camera module according to the embodiment of the present invention;
fig. 5 is a fifth schematic view illustrating a connection between the apparatus body and the camera module according to the embodiment of the present invention;
fig. 6 shows an exploded view of a camera module according to an embodiment of the present invention;
FIG. 7 illustrates a first schematic view of a rotating buckle provided by an embodiment of the present invention;
FIG. 8 illustrates a second schematic view of a rotating buckle provided by embodiments of the present invention;
fig. 9 is a flowchart illustrating steps of a photographing control method according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 11 is a second schematic structural diagram of an electronic device according to an embodiment of the invention.
Description of reference numerals:
1-equipment body, 2-camera module, 31-first detection piece, 32-fourth detection piece, 21-second detection piece, 22-third detection piece, 23-fifth detection piece, 24-sixth detection piece, 4-rotary buckle, 41-snap spring, 42-limiting groove, 43-mounting seat, 44-rotating shaft, 51-first buckle part, 52-second buckle part, 53-sliding groove, 54-limiting piece, 55-elastic telescopic piece, 56-camera body, 57-circuit board, 58-shell, 101-third surface, 102-second surface.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The electronic Device provided by the embodiment of the invention can be a Mobile phone, a tablet Computer, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a netbook, a Wearable Device, a vehicle-mounted Device or a Personal Digital Assistant (PDA), and the like. It should be noted that the specific type of the electronic device is not limited in the embodiment of the present invention.
At present, in the prior art, most of electronic equipment is a whole with the camera thereon, and the camera can not be dismantled from electronic equipment, and the camera that can dismantle from electronic equipment also only changes the position relation between camera and the electronic equipment through simple mechanical separation, realizes basic function of shooing for the user experience of shooing is not good enough. Therefore, the embodiment of the invention provides the electronic equipment, which realizes that the camera module is installed on the electronic equipment body in different installation states, realizes different photographing functions according to the installation state of the camera module, and improves the photographing experience of a user.
As shown in fig. 1 to 5, an embodiment of the present invention provides an electronic device, including:
the device comprises a device body 1, wherein an installation groove is formed in the device body 1, and a first detection piece 31 is arranged in the installation groove; as shown in fig. 1, the mounting groove is formed on a third surface 101 of the apparatus body 1, and preferably, the third surface 101 is a top surface of the apparatus body 1.
The camera module 2 is movably arranged in the camera mounting groove, a second detection piece 21 and a third detection piece 22 are arranged on the camera module 2, and the camera module 2 has a first mounting state and a second mounting state;
under the condition that the camera module 2 is arranged in the mounting groove in the first mounting state, the first surface of the camera module 2 is attached to the bottom surface of the mounting groove, and the first detection piece 31 and the second detection piece 21 are distributed oppositely;
when the camera module 2 is disposed in the mounting groove in the second mounting state, the first surface is attached to the bottom surface, and the first detecting member 31 and the third detecting member 22 are distributed oppositely;
wherein, the orientation of the camera module 2 in the first installation state is different from the orientation in the second installation state.
In the embodiment of the invention, the installation groove is formed in the equipment body 1, and the camera module 2 is movably arranged in the installation groove, so that the camera module 2 and the equipment body 1 have different installation states when combined together, and the camera module 2 can have different photographing functions, thereby being suitable for different application scenes; therefore, the problem that the position relation between the camera and the electronic equipment is intelligently and simply changed, the basic shooting function is realized, and the shooting experience of a user is poor in the prior art is solved; in addition, by arranging the first detection piece 21 in the mounting groove and arranging the second detection piece 22 and the third detection piece 23 on the camera module 2, the installation state of the camera module 2 can be confirmed according to the relative distribution of the first detection piece 21, the second detection piece 22 and the third detection piece 23, so that the working mode of the camera module 2 can be automatically identified according to the installation state of the camera module 2, the interaction between a user and electronic equipment is increased, and the photographing experience of the user is improved.
As an alternative embodiment, the first detecting member 31 is a light source detecting member, and the second detecting member 21 and the third detecting member 22 are light emitting elements;
alternatively, the first detecting member 31 is a hall detecting member, and the second detecting member 21 and the third detecting member 22 are magnetic elements.
In the case where the first detecting member 31 is a light source detecting member, and the second detecting member 21 and the second detecting member 22 are light emitting elements, the first detecting member 31 detects an illumination parameter of the detecting member located within a detection range thereof, and determines whether the detecting member located within the detection range thereof is the second detecting member 21 or the third detecting member 22. Specifically, at least one illumination parameter of the first detecting element 21 and the second detecting element 22 is different, wherein the illumination parameter includes: color, color temperature, wavelength, beam angle, brightness, and the like, and preferably, the first detecting member 21 and the second detecting member 22 are different in color.
When the first detecting member 31 is a hall detecting member, and the second detecting member 21 and the third detecting member 22 are magnetic elements, the first detecting member 21 detects the magnetic field intensity of the magnetic element located in the detection range thereof, and determines whether the detecting member located in the detection range thereof is the second detecting member 21 or the third detecting member 22. Wherein the second detecting member 21 and the third detecting member 22 have different magnetic field strengths.
The first detector 31, the second detector 21, and the third detector 22 may be configured as a capacitance detection combination or an electrical connection detection combination; determining whether the second detecting member 21 or the third detecting member 22 constitutes a capacitance with the first detecting member 31 by detecting a capacitance value of a capacitance constituted by the detecting member combined with the first detecting member 31; alternatively, when the first detecting member 31 is electrically connected to the second detecting member 21 or the second detecting member 22, it is determined whether the second detecting member 21 or the second detecting member 22 is electrically connected to the first detecting member 31 by detecting a value of current flowing through the detecting member.
Of course, any combination of detection capable of detecting whether the second detecting member 21 or the third detecting member 22 is distributed opposite to the first detecting member 31 is applicable to the embodiment of the present invention.
As an alternative embodiment, as shown in fig. 1 to 5, the mounting groove penetrates through the first surface 102 and the second surface opposite to the apparatus body 1; preferably, the first side 102 is a screen side of the electronic device, and the second side is a battery cover side of the electronic device; alternatively, the first side 102 is a battery cover side of the electronic device, and the second side is a screen side of the electronic device.
In the embodiment of the invention, the mounting groove penetrates through the first surface 102 and the second surface of the electronic device body 1, so that the lens of the camera module 2 can face both the first surface 102 and the second surface, and the camera module can be used as a front camera and a rear camera, thereby meeting different use requirements of users.
As shown in fig. 3, a fourth detection member 32 is further disposed on the bottom surface of the mounting groove, when the camera module 2 is in the first mounting state, the fourth detection member 32 and the third detection member 22 are distributed oppositely, and when the camera module 2 is in the second mounting state, the fourth detection member 32 and the second detection member 21 are distributed oppositely. Specifically, in order to improve the accuracy of detection and prevent that the detection piece in the mounting groove is unusual, lead to unable accurate judgement camera module 2's installation status, in this embodiment, two detection pieces have been set up in the mounting groove.
Further, as an optional embodiment, the camera module 2 further includes a third installation state separated from the apparatus body 1.
In order to make camera module 2 be in during the third installation status, can accomplish according to user's the intention of shooing and shoot, in this embodiment, this camera module 2 is preferred intelligent camera, includes: the communication module is in communication connection with the equipment body, and the processor and the shooting device are used for image processing; the processor is used for processing the pictures shot by the shooting device and packaging the pictures into data packets which can be transmitted by the communication module, so that the shot pictures are transmitted to the equipment body; in addition, the communication module can also realize the receiving and dispatching of instructions, and realize the relevance of camera module 2 and the application of equipment body 1 to when realizing camera module 2 and equipment body 1 separation, equipment body 1 is to camera module 2's control. Preferably, the communication module is a wifi module or a bluetooth module, but is not limited thereto.
Specifically, in the process that the camera module 2 is changed from the first installation state or the second installation state to the third installation state, the first detecting element 31, the second detecting element 21 and the third detecting element 22 can determine the moving-out direction of the camera module 2 from the installation groove, wherein the direction in which the second detecting element 21 points to the third detecting element 22 is preferably perpendicular to the first surface 102.
Set up in the mounting groove first detection piece 31 set up on camera module 2 second detection piece 21 with when third detection piece 22, camera module 2 shifts out the process of mounting groove specifically includes following several kinds of condition:
the first condition is as follows: when the second detection piece 21 is located in the detection range of the first detection piece 31, the third detection piece 22 is located in the range of the first detection piece 31, and the camera module 2 is determined to be moved out of the mounting groove from the first mounting state along the second direction and changed into the third mounting state; the second direction is opposite to the y-axis (in the coordinate axis of this embodiment, the x-axis is parallel to the short side of the electronic device, the y-axis is perpendicular to the plane where the display screen of the electronic device is located, and the z-axis is parallel to the long side of the electronic device).
Case two: when the second detection piece 21 is located in the detection range of the first detection piece 31, the detection range is changed to that when no detection piece is located in the detection range of the first detection piece 31, the camera module 2 is determined to be moved out of the mounting groove from the first mounting state along the first direction and changed to the third mounting state; wherein the first direction is a positive direction of the y-axis.
Case three: the second detecting piece 21 is located in the detecting range of the first detecting piece 31, and the light intensity of the second detecting piece gradually weakens, so that the camera module 2 is determined to be moved out of the mounting groove from the first mounting state along a third direction and is changed into the third mounting state; wherein the third mounting state is a z-axis direction.
Case four: when the third detecting member 22 is located within the detecting range of the first detecting member 31, the second detecting member 21 is located within the detecting range of the first detecting member 31, and it is determined that the camera module 2 is moved out of the mounting groove from the second mounting state along the second direction and is changed into the third mounting state; wherein the second direction is opposite to the y-axis.
Case five: when the third detecting piece 22 is located in the detecting range of the first detecting piece 31, the detecting range is changed to that no detecting piece is located in the detecting range of the first detecting piece 31, and the camera module 2 is determined to be moved out of the mounting groove from the second mounting state along the first direction and changed to the third mounting state; wherein the first direction is a positive direction of the y-axis.
Case six: the third detecting piece 21 is located in the detecting range of the first detecting piece 31, and the light intensity of the third detecting piece gradually weakens, so that the camera module 2 is determined to be moved out of the mounting groove from the second mounting state along a third direction and is changed into the third mounting state; wherein the third mounting state is a z-axis direction.
According to the six moving-out conditions, the embodiment of the present invention can recognize the working mode of the camera module 2 in the third installation state, for example: the first and fifth cases are recognized as a self-timer mode in the separated state, the second and fourth cases are recognized as a wide-angle mode in the separated state, and the third and sixth cases are recognized as a panorama mode in the separated state, etc., and these operation modes may be operation modes corresponding to the moving-out direction preset by the user.
Further, the embodiment of the present invention further provides a second embodiment for detecting the moving-out direction of the camera module 2, specifically, as shown in fig. 4, the first surface may be provided with a second detecting piece 21, a third detecting piece 22, a fifth detecting piece 23 and a sixth detecting piece 24, and the bottom surface of the mounting groove may be provided with a first detecting piece 31 and a fourth detecting piece 32;
the second detecting element 21, the third detecting element 22, the fifth detecting element 23 and the sixth detecting element 24 are distributed on the first surface at four end points of a parallelogram, and a first side and a second side of the parallelogram, which are opposite to each other, are parallel to the first surface 102.
In this embodiment, determining the moving-out direction of the camera module 2 from the mounting groove according to the detection result of the detection member includes the following conditions:
the first condition is as follows: the second detecting member 21 is located within the detection range of the first detecting member 31, that is: the second detecting piece 21 and the first detecting piece 31 are distributed oppositely, the fifth detecting piece 23 is located in the detection range of the first detecting piece 31, and the camera module 2 is determined to be moved out of the mounting groove from the first mounting state along the first direction to be changed into a third mounting state.
Case two: the third detection piece 22 is changed from being located in the detection range of the fourth detection piece 32 to the sixth detection piece 24 being located in the detection range of the fourth detection piece 32, and it is determined that the camera module 2 is moved out of the mounting groove from the first mounting state along the second direction to be changed into the third mounting state.
Case three: the second detection piece 21 is located in the detection range of the first detection piece 31, the third detection piece 22 is located in the detection range of the fourth detection piece 32, the first detection piece 21 detects that the light intensity of the second detection piece 21 is gradually weakened and the light intensity of the third detection piece 22 is gradually weakened, and it is determined that the camera module 2 is moved out of the installation groove from the first installation state along the third direction to be changed into the third installation state.
Case four: the third detecting member 22 is positioned in the detecting range of the first detecting member 31, and the sixth detecting member 24 is positioned in the detecting range of the first detecting member 31, so that the camera module 2 is determined to be moved out of the mounting groove from the second mounting state along the first direction and is changed into the third mounting state.
Case five: the second detection piece 21 is positioned in the detection range of the fourth detection piece 32, the fifth detection piece 23 is positioned in the detection range of the fourth detection piece 32, and the camera module 2 is determined to be moved out of the mounting groove from the second mounting state along the second direction and is changed into the third mounting state.
Case six: the third detection piece 23 is located in the detection range of the first detection piece 31, the second detection piece 21 is located in the detection range of the fourth detection piece 32, the first detection piece 31 detects that the light intensity of the third detection piece 22 is gradually weakened, the fourth detection piece 32 detects that the light intensity of the second detection piece 21 is gradually weakened, and it is determined that the camera module 2 is moved out of the mounting groove from the second mounting state along the third direction to be changed into the third mounting state.
The first direction is a positive direction of a y axis, the second direction is a negative direction of the y axis, and the third direction is a Z axis direction (in the coordinate axis of this embodiment, an x axis is parallel to a short side of the electronic device, a y axis is perpendicular to a plane where a display screen of the electronic device is located, and a Z axis is parallel to a long side of the electronic device).
According to the six moving-out conditions, the embodiment of the present invention can recognize the working mode of the camera module 2 in the third installation state, for example: the first and fifth cases are recognized as a self-timer mode in the separated state, the second and fourth cases are recognized as a wide-angle mode in the separated state, and the third and sixth cases are recognized as a panorama mode in the separated state, etc., and these operation modes may be operation modes corresponding to the moving-out direction preset by the user.
In the present embodiment, as shown in fig. 3, it is preferable that the first and fourth sensing pieces 31 and 32 are provided at diagonal positions of the first surface inside the mounting groove. The second detecting element 21 and the fifth detecting element 23 are located on a straight line perpendicular to the first surface 102, the third detecting element 22 and the sixth detecting element 24 are located on another straight line perpendicular to the first surface 102, so that the second detecting element 21, the third detecting element 22, the fifth detecting element 23 and the sixth detecting element 24 are distributed at end points of a parallelogram, and a connecting line between the second detecting element 21 and the third detecting element 22 and a connecting line between the fifth detecting element 23 and the sixth detecting element 24 respectively form a diagonal line of the parallelogram.
It is emphasized that in this embodiment, the first light source 21 and the third light source 23 have different illumination parameters, and the second light source 22 and the fourth light source 24 have different illumination parameters.
As an optional embodiment, the mounting groove is formed on a third surface 101 of the apparatus body 1, and penetrates through a second surface 102 and a third surface of the apparatus body 1, which are opposite to each other, and the second surface 102 and the third surface are adjacent to the first side surface 101, respectively; so that the camera module 2 can be respectively moved out of the mounting groove along a first direction far away from the second surface 102, a second direction far away from the third surface 102 and a third direction far away from the third surface 101 relative to the device body 1. Thereby realize according to camera module 2 shift out the direction discernment camera module 2 be in with the mode during the third installation status of equipment body 1 separation has increased the enjoyment that the camera module can be dismantled in the use, makes electronic equipment's application more humanized, has increased user and electronic equipment's interdynamic, improves user's the experience of shooing.
As an alternative embodiment, as shown in fig. 3, 5, 7 and 8, the side wall of the mounting groove is provided with a rotary buckle 4, the rotary buckle 4 is hinged with the device body 1, and the buckle 4 can rotate between a first position and a second position; as a preferred embodiment, the rotating buckle 4 is hinged to the device body 1 through a rotating shaft 44 on the rotating buckle 4, and the rotating buckle 4 rotates between the first position and the second position through the rotation of the rotating shaft 44.
A first buckling part 51 and a second buckling part 52 which are matched with the rotary buckle 4 are respectively arranged on a first side wall and a second side wall of the camera module 2, and the first side wall and the second side wall are distributed oppositely; specifically, as shown in fig. 5 and 7, the surfaces of the rotating buckle 4, which are matched with the first buckle part 51 and the second buckle part 52, include two end surfaces located on different planes, where the two end surfaces are both perpendicular to the third surface 101, and the end surface located near the third surface 101 protrudes out of the end surface far away from the third surface 101, so that the end surface far away from the third surface 101 functions as a slide rail, and the camera module 2 can be moved out of the mounting groove along the first direction and the second direction. In addition, optionally, a guide inclined plane is provided between an end surface close to the third surface 103 and an end surface of the rotating buckle 4 parallel to the third surface 101 in a surface matched with the first buckling part 51/the second buckling part 52, and the guide inclined plane plays a role in guiding the camera module 2 when the camera module 2 is placed in the installation groove.
When the camera module 2 is arranged in the mounting groove in the first mounting state and the rotary buckle 4 is located at the first position, the rotary buckle 4 is in limit fit with the first buckle part 51;
when the camera module 2 is arranged in the mounting groove in the second mounting state and the rotary buckle 4 is located at the first position, the rotary buckle 4 is in limit fit with the second buckle part 52;
the camera module 2 is disposed in the mounting groove, and the camera module 2 can move relative to the mounting groove when the rotary buckle 4 is located at the second position.
Similarly, the first fastening part 51 and the second fastening part 52 include two end surfaces located on different planes, and the two end surfaces of the second fastening part 51 and the second fastening part 52 and the two end surfaces of the rotating fastener 4 are correspondingly attached and connected when the rotating fastener 4 is connected with the first fastening part 51/the second fastening part 52, so that the camera module 2 is limited in the third direction.
As an optional embodiment, in the case that the camera module 2 is disposed in the mounting groove and the rotating buckle 4 is in the second position, the camera module 2 can move in a first direction, a second direction and a third direction relative to the mounting groove;
wherein the first direction is opposite to the second direction, and the third direction is perpendicular to the first direction.
Specifically, the rotating buckle 4 can rotate relative to the device body 1 through the rotating shaft 44, so that when the camera module 2 is moved out of the mounting groove along the third direction and moves upwards along with the camera module 2 through the second buckle part 51, the protruding part of the second buckle part 51 interacts with the protruding part of the first buckle part 41, so that the rotating buckle 4 rotates from the first position to the second position, and the camera module 2 is moved out of the mounting groove along the third direction.
Specifically, as shown in fig. 8, a snap spring 41 or a torsion spring is disposed on the rotating shaft 44.
Set up in the mounting groove along the third direction at camera module 2, perhaps, when shifting out from the mounting groove along the third direction, rotatory buckle 4 rotates to the second position, and rotatory buckle 4 can be at circling round to the first position under the effect of jump ring 41 or torsional spring.
Alternatively, as shown in fig. 5, 7 and 8, the rotary buckle 4 is connected to the apparatus body 1 through a mounting seat 43, the mounting seat 43 is connected to the apparatus body 1 by a bolt, and the rotating shaft 44 respectively penetrates through two opposite side surfaces of the rotary buckle 4 and the mounting seat 43, so as to realize the rotary connection between the rotary buckle 4 and the mounting seat 43, so that the rotary buckle 4 can rotate between the first position and the second position relative to the apparatus body 1.
As a preferred embodiment, the electronic device comprises one or two rotating buckles 4, and in the case that the electronic device comprises one rotating buckle 4, the rotating buckle 4 is located on a first inner wall surface of the mounting groove;
in the case that the electronic device includes two rotating buckles 4, the two rotating buckles 4 are respectively located on a first inner wall surface and a second inner wall surface of the mounting groove; wherein the first inner wall surface and the second inner wall surface are distributed oppositely. Through the arrangement of the two rotating buckles 4, when the two rotating buckles 4 are matched with the first buckling part 51 and the second buckling part 52, a sliding rail is formed between the two rotating buckles 4, so that the camera module 2 can move out of the mounting groove along the first direction and the second direction.
As an alternative embodiment, as shown in fig. 5, 7 and 8, the rotating buckle 4 is provided with a limiting groove 42;
as shown in fig. 5, the first locking portion 51 and the second locking portion 52 are both provided with a sliding groove 53, and the sliding groove 53 is provided; the first buckling part 51 and the second buckling part 52 are both provided with sliding grooves 53, and the first buckling part 51 and the second buckling part 52 also both comprise a limiting part 54 and an elastic telescopic part 55; under the condition that the rotating buckle 4 is in limit fit with the first buckling part 51, the limiting part 54 of the first buckling part 51 is at least partially positioned in the limiting groove 42;
under the condition that the rotating buckle 4 is in limit fit with the second buckling part 52, the second buckling part 52 is at least partially positioned in the limit groove 42.
In the present embodiment, the elastic expansion piece 55, the limiting piece 54 and the limiting groove 42 cooperate to limit the camera module 2 in the first direction and the second direction when the camera module 2 is disposed in the mounting groove.
Here, as shown in fig. 6, the camera module 2 includes a module main body and a first locking portion 51 and a second locking portion 52 located on both sides of the module main body, and specifically, the module main body includes: the camera comprises a camera body 56, a circuit board 57 and a shell 58, wherein one end face of the shell 58 is an open end face, and the circuit board 57 is positioned on the open end face and connected with the shell 58 through bolts or screws; the first locking portion 51 and the second locking portion 52 are disposed on two opposite outer side surfaces of the housing 58, and are connected to the circuit board 56 by bolts.
In addition, as shown in fig. 5 and 6, the central axis of the camera module 2 is parallel to the direction from the second surface 102 to the third surface.
According to the electronic equipment provided by the embodiment of the invention, the mounting groove is formed in the third surface 101 of the equipment body 1 and penetrates through the first surface 102 and the second side surface which are opposite to each other of the equipment body 1, so that the camera module 2 has a first mounting state and a second mounting state in the mounting groove, and thus the functions of a front camera and a rear camera are realized, and the camera module 2 is movably connected with the mounting groove, so that the camera module 2 can be moved out of the mounting groove along a first direction far away from the first surface 102, a second direction far away from the second surface and a third direction far away from the third surface 101; the separation of the equipment body 1 and the camera module 2 is realized, the detection piece is arranged on the first surface of the mounting groove, the detection piece is arranged on the second surface of the camera module 2, the light source is detected, the moving-out direction of the mounting groove for moving the camera module 2 out is determined, so that the equipment body 1 can determine the photographing intention of a user according to the moving-out direction, the camera module 2 is started according to the photographing intention, and the photographing experience of the user is improved.
As shown in fig. 9, an embodiment of the present invention further provides a photographing control method, which is applied to the electronic device described above, and the photographing method includes:
step S901 of detecting the camera module by the first detection element to obtain first detection information;
step S902, determining the installation state of the camera module according to the first detection information, wherein the installation state comprises a first installation state and a second installation state;
step S903, determining a target working mode of the camera module according to the installation state;
and step S904, controlling the camera module to work in the target working mode.
According to the photographing control method, the camera module is detected through the first detection piece to obtain first detection information, different installation states of the camera module are determined according to the first detection information, the target working mode of the camera module is determined according to the installation states, the camera module is controlled to work in the target working mode, photographing intentions of a user are identified according to the state of the camera module set by the user, the user is prevented from manually selecting the target of the camera module from a left mode, the situation that a front camera and a rear camera are simultaneously arranged on electronic equipment is avoided, cost is saved, and photographing experience of the user is improved.
It should be noted that, in the electronic device adopting the photographing control method of the embodiment of the present invention, the camera module needs to have a function of communicating with the device body, and the camera module can photograph according to the instruction sent by the device body, and process the photographed picture, so as to transmit the photographed picture to the device body. Therefore, the camera module includes at least: the communication module is used for communication between the camera module and the electronic equipment after the camera module is separated from the equipment body; and the processor is used for receiving the control instruction transmitted by the communication module, photographing according to the instruction, processing the photographed image and converting the image into data which can be transmitted by the communication module.
In this embodiment, the relationship between the preset moving direction of the camera module out of the camera mounting groove and the working mode of the camera module may be specifically determined by the user.
Preferably, if the camera module is installed in the installation groove in a first installation state, the camera module plays a role of a front camera; if the camera module is installed in the mounting groove with the second installation state, the camera module has played the function of rearmounted camera, has realized the camera module can play leading camera function according to the user's demand, can play rearmounted camera function again.
Specifically, step S903, determining the installation state of the camera module according to the first detection information, specifically includes:
determining that the camera module is in a first installation state under the condition that the first detection information is first information of relative distribution of a first detection piece and a second detection piece;
determining that the camera module is in a second installation state under the condition that the first detection information is second information of relative distribution of the first detection piece and the third detection piece;
according to the installation state, determining a target working mode of the camera module specifically comprises:
when the installation state is the first installation state, determining that the camera module is located in the installation groove and faces a first direction;
determining the target working mode as a first working mode according to the first direction;
when the installation state is the second installation state, determining that the camera module is located in the installation groove, and the camera module faces a second direction, wherein the first direction is different from the second direction;
and determining the target working mode as a second working mode according to the second direction.
In this step, when the camera module is in the first installation state, the camera module functions as a front camera, and the first working mode is a front camera working mode; when the camera module is in the second installation state, the camera module plays a role of a rear camera, and the second working mode is a rear camera working mode.
Further, the installation state further comprises a third installation state that the camera module is positioned outside the installation groove;
step S903, determining the installation state of the camera module according to the first detection information, specifically including:
determining an initial installation state and a current installation state of the camera module according to the first detection information, wherein the initial installation state is the installation state of the camera module before a preset time;
according to the installation state, determining a target working mode of the camera module specifically comprises:
determining the moving-out direction of the camera module according to the initial installation state under the condition that the current installation state is the third installation state;
and determining a target working mode of the camera module according to the initial installation state and the moving-out direction.
In this step, through according to the initial installation state of camera module with the direction of shifting out of camera module, discernment the mode when camera module is in the third installation state with equipment body separation for camera module and equipment body are not merely mechanical separation, simultaneously, can realize camera module and equipment body's application and be concerned, realize also can shoot according to user's intention when both separate, thereby avoided the mode of user's manual adjustment camera module, improved user's the experience of shooing.
Furthermore, the mounting groove penetrates through a first surface and a second surface of the equipment body, which are opposite to each other, a first detection piece and a fourth detection piece are further arranged on the bottom surface of the mounting groove, a second detection piece, a third detection piece, a fifth detection piece and a sixth detection piece are arranged on the first surface, the second detection piece, the third detection piece, the fifth detection piece and the sixth detection piece are distributed on the first surface by four end points of a parallelogram, and a first edge and a second edge which are opposite to each other in the parallelogram are parallel to the first surface;
step S903, determining the moving-out direction of the camera module according to the first detection information, specifically including:
when the first detection information comprises first initial information of relative distribution of a first detection piece and a second detection piece before a preset time and first current information of relative distribution of the first detection piece and a fifth detection piece, determining that the camera module is changed from a first installation state to a third installation state along a first direction;
when the first detection information comprises second initial information of relative distribution of a fourth detection piece and a third detection piece before a preset time and second current information of relative distribution of the fourth detection piece and a sixth detection piece, determining that the camera module is changed from a first installation state to a third installation state along a second direction;
when the first detection information comprises third initial information that the first detection piece and the second detection piece are distributed relatively at a first distance before a preset time and third current information that the first detection piece and the second detection piece are distributed relatively at a second distance, determining that the camera module is changed from the first installation state to a third installation state along a third direction;
when the first detection information comprises fourth initial information of relative distribution of the first detection piece and the third detection piece before a preset time and fourth current information of relative distribution of the first detection piece and the sixth detection piece, determining that the camera module is changed from the second installation state to the third installation state along the first direction;
when the first detection information comprises fifth initial information of relative distribution of a fourth detection piece and a second detection piece before a preset time and fifth current information of relative distribution of the fourth detection piece and the fifth detection piece, determining that the camera module is changed from a second installation state to a third installation state along a second direction;
and when the first detection information comprises sixth initial information that the first detection piece and the third detection piece are distributed relatively at a first distance before a preset time and sixth current information that the first detection piece and the third detection piece are distributed relatively at a second distance, determining that the camera module is changed from the second installation state to the third installation state along the third direction.
In addition, the step of determining the target working mode of the camera module according to the initial installation state and the moving-out direction specifically comprises: and determining a target working mode of the camera module according to a pre-stored initial installation state-moving-out direction-working mode corresponding relation.
The first condition is as follows: determining that the target working mode is a self-timer mode when the first installation state is changed to a third installation state along a first direction;
case two: determining the target working mode as a wide-angle mode when the first installation state is changed to a third installation state along a second direction;
case three: when the first installation state is changed to a third installation state along the third direction, or the second installation state is changed to the third installation state along the third direction, the target working mode is determined to be a panoramic mode;
case four: determining the target working mode as a wide-angle mode when the second installation state is changed to a third installation state along the first direction;
case five: and when the second installation state is changed to a third installation state along the second direction, determining that the target working mode is a self-timer mode.
The method for determining the moving-out direction of the camera module in the embodiment of the present invention is similar to the content recorded in the foregoing embodiment of the electronic device, and is not described herein again.
As shown in fig. 10, an embodiment of the present invention further provides an electronic device 1000, where the electronic device is the electronic device described above, and the electronic device 1000 further includes:
an obtaining module 1001, configured to detect the camera module through the first detecting element to obtain first detection information;
a first determining module 1002, configured to determine, according to the first detection information, an installation state of the camera module, where the installation state includes a first installation state and a second installation state;
a second determining module 1003, configured to determine a target working mode of the camera module according to the installation state;
and a control module 1004, configured to control the camera module to operate in the target operating mode.
Optionally, in the above embodiment of the present invention:
the first determination block 1002 includes:
the first determining submodule is used for determining that the camera module is in a first installation state under the condition that the first detection information is first information of relative distribution of the first detection piece and the second detection piece;
the second determining submodule is used for determining that the camera module is in a second installation state under the condition that the first detection information is second information of relative distribution of the first detection piece and the third detection piece;
the third determining submodule is configured to determine a target working mode of the camera module according to the installation state, and specifically includes:
the fourth determining submodule is used for determining that the camera module is located in the mounting groove and faces the first direction when the mounting state is the first mounting state;
a fifth determining submodule, configured to determine, according to the first direction, that the target operating mode is the first operating mode;
a sixth determining submodule, configured to determine that the camera module is located in the mounting groove and faces a second direction when the mounting state is the second mounting state, where the first direction is different from the second direction;
and the seventh determining submodule is used for determining the target working mode as the second working mode according to the second direction.
Optionally, in the above embodiment of the present invention, the installation state further includes a third installation state in which the camera module is located outside the installation groove;
the first determining module 1002 further comprises:
an eighth determining submodule, configured to determine an initial installation state and a current installation state of the camera module according to the first detection information, where the initial installation state is an installation state of the camera module before a preset time;
the second determining module 1003 specifically includes:
a ninth determining submodule, configured to determine, when the current installation state is the third installation state, a moving-out direction of the camera module according to the initial installation state;
and the tenth determining submodule is used for determining a target working mode of the camera module according to the initial installation state and the moving-out direction.
Optionally, in the embodiment of the present invention, the mounting groove penetrates through the first surface and the second surface of the device body, the bottom surface of the mounting groove is further provided with a first detecting element and a fourth detecting element, the first surface is provided with a second detecting element, a third detecting element, a fifth detecting element and a sixth detecting element, the second detecting element, the third detecting element, the fifth detecting element and the sixth detecting element are distributed on the first surface by four end points of a parallelogram, and a first side and a second side opposite to each other in the parallelogram are parallel to the first surface;
the ninth determining sub-module specifically includes:
the first determining unit is used for determining that the camera module is changed from the first installation state to the third installation state along the first direction when the first detection information comprises first initial information of relative distribution of the first detection piece and the second detection piece before a preset time and first current information of relative distribution of the first detection piece and the fifth detection piece;
the second determining unit is used for determining that the camera module is changed from the first installation state to a third installation state along the second direction when the first detection information comprises second initial information of relative distribution of a fourth detection piece and a third detection piece before a preset time and second current information of relative distribution of the fourth detection piece and a sixth detection piece;
the third determining unit is used for determining that the camera module is changed from the first installation state to a third installation state along a third direction when the first detection information comprises third initial information and third current information, wherein the first initial information and the second initial information are distributed in a first distance in a relative mode, and the third current information is distributed in a second distance in a relative mode;
the fourth determining unit is used for determining that the camera module is changed from the second installation state to the third installation state along the first direction when the first detection information comprises fourth initial information of relative distribution of the first detection piece and the third detection piece before a preset time and fourth current information of relative distribution of the first detection piece and the sixth detection piece;
the fifth determining unit is used for determining that the camera module is changed from the second installation state to the third installation state along the second direction when the first detection information comprises fifth initial information of relative distribution of a fourth detection piece and a second detection piece before a preset time and fifth current information of relative distribution of the fourth detection piece and the fifth detection piece;
and the sixth determining unit is used for determining that the camera module is changed from the second installation state to the third installation state along the third direction when the first detection information comprises sixth initial information and sixth current information, wherein the first initial information and the third initial information are distributed at a first distance in a relative mode before the preset time, and the sixth current information is distributed at a second distance in a relative mode.
It should be noted that the electronic device provided in the embodiment of the present invention is an electronic device capable of executing the photographing control method, and all embodiments of the photographing control method are applicable to the electronic device and can achieve the same or similar beneficial effects.
An embodiment of the present invention further provides an electronic device, where the electronic device is the electronic device described above, and the electronic device further includes: the processor, the memory and the computer program stored in the memory and capable of running on the processor, when executed by the processor, implement the processes of the embodiment of the photographing control method as described above, and can achieve the same technical effects, and are not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned embodiment of the photographing control method, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device 500 for implementing various embodiments of the present invention, where the electronic device 500 includes, but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, input unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, and power supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 11 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
A processor 510 for monitoring the detection signals of the light intensity of at least two light sources detected by the light source detection element; determining the moving direction of the camera module from the camera mounting groove according to the detection signal; determining a target working mode of the camera module according to a preset relation between the moving direction of the camera module out of the camera mounting groove and the working mode of the camera module; and controlling the camera module to start the target working mode.
According to the embodiment of the invention, after the camera module is moved out of the camera mounting groove, the target working mode of the camera module is determined according to the moving-out direction of the camera module, and the camera module is controlled to start the target working mode, so that the association of the camera module and the application of the electronic equipment is realized, and the photographing experience of a user is improved.
It should be noted that the electronic device provided in the embodiment of the present invention is an electronic device capable of executing the photographing control method, and all embodiments of the photographing control method are applicable to the electronic device and can achieve the same or similar beneficial effects.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The electronic device 500 also includes at least one sensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 5061 and/or a backlight when the electronic device 500 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 11, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the electronic apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic apparatus 500 or may be used to transmit data between the electronic apparatus 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the electronic device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The electronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, the electronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (13)
1. An electronic device, comprising:
the device comprises a device body (1), wherein the device body (1) is provided with an installation groove, and a first detection piece (31) is arranged in the installation groove;
the camera module (2) is movably arranged in the mounting groove, a second detection piece (21) and a third detection piece (22) are arranged on the camera module (2), and the camera module (2) has a first mounting state and a second mounting state;
under the condition that the camera module (2) is arranged in the mounting groove in the first mounting state, the first surface of the camera module (2) is attached to the bottom surface of the mounting groove, and the first detection piece (31) and the second detection piece (21) are distributed oppositely;
under the condition that the camera module (2) is arranged in the mounting groove in the second mounting state, the first surface is attached to the bottom surface, and the first detection piece (31) and the third detection piece (22) are distributed oppositely;
the orientation of the camera module (2) in the first installation state is different from that in the second installation state;
the side wall of the mounting groove is provided with a rotary buckle (4), the rotary buckle (4) is hinged with the equipment body (1), and the rotary buckle (4) can rotate between a first position and a second position;
the camera module comprises a camera module (2), and is characterized in that a first buckling part (51) and a second buckling part (52) which are matched with the rotary buckle (4) are respectively arranged on a first side wall and a second side wall of the camera module (2), and the first side wall and the second side wall are distributed oppositely.
2. The electronic apparatus according to claim 1, wherein the first detecting member (31) is a light source detecting member, and the second detecting member (21) and the third detecting member (22) are light emitting elements;
or, the first detection piece (31) is a Hall detection piece, and the second detection piece (21) and the third detection piece (22) are magnetic elements.
3. The electronic device according to claim 1, wherein the mounting slot penetrates through a first face (102) and a second face opposite to the device body (1);
the bottom surface of mounting groove still is provided with fourth detection piece (32) camera module (2) when being in first installation status, fourth detection piece (32) with third detection piece (22) relative distribution camera module (2) are in when second installation status, fourth detection piece (32) with second detection piece (21) relative distribution.
4. The electronic device according to claim 3, wherein the camera module (2) further comprises a third mounting state in a separated state from the device body (1);
the first surface is provided with a fifth detection piece (23) and a sixth detection piece (24);
the second detection piece (21), the third detection piece (22), the fifth detection piece (23) and the sixth detection piece (24) are distributed on the first surface by four end points of a parallelogram, and a first side and a second side which are opposite in the parallelogram are parallel to the first surface (102).
5. The electronic device according to claim 1, wherein when the camera module (2) is disposed in the mounting groove in the first mounting state and the rotating buckle (4) is in the first position, the rotating buckle (4) is in limit fit with the first buckle part (51);
when the camera module (2) is arranged in the mounting groove in the second mounting state and the rotary buckle (4) is located at the first position, the rotary buckle (4) is in limit fit with the second buckle part (52);
the camera module (2) is arranged in the mounting groove, and under the condition that the rotating buckle (4) is located at the second position, the camera module (2) can move relative to the mounting groove.
6. The electronic device according to claim 5, wherein with the camera module (2) disposed in the mounting slot and the rotating buckle (4) in the second position, the camera module (2) is movable in a first direction, a second direction and a third direction relative to the mounting slot;
wherein the first direction is opposite to the second direction, and the third direction is perpendicular to the first direction.
7. The electronic device according to claim 5, characterized in that it comprises one or two of said rotary catches (4);
in the case that the electronic device comprises one rotary buckle (4), the rotary buckle (4) is positioned on a first inner wall surface of the mounting groove;
under the condition that the electronic equipment comprises two rotary buckles (4), the two rotary buckles (4) are respectively positioned on a first inner wall surface and a second inner wall surface of the mounting groove; wherein the first inner wall surface and the second inner wall surface are distributed oppositely.
8. The electronic device according to claim 5, wherein the rotating buckle (4) is provided with a limiting groove (42);
the first buckling part (51) and the second buckling part (52) are both provided with sliding grooves (53), and the first buckling part (51) and the second buckling part (52) also both comprise a limiting piece (54) and an elastic telescopic piece (55);
the elastic telescopic piece (55) is arranged on the sliding chute (53), one end of the elastic telescopic piece (55) is connected with the limiting piece (54), and the limiting piece (54) can retract into the sliding chute (53) through the elastic telescopic piece (55) or at least partially extend out of the sliding chute (53);
under the condition that the rotating buckle (4) is in limit fit with the first buckle part (51), the limiting part (54) of the first buckle part (51) is at least partially positioned in the limiting groove (42);
under the condition that the rotating buckle (4) is in limit fit with the second buckle part (52), the second buckle part (52) is at least partially positioned in the limit groove (42).
9. A photographing control method applied to the electronic device according to any one of claims 1 to 8, the method comprising:
detecting the camera module through the first detection piece to obtain first detection information;
determining the installation state of the camera module according to the first detection information, wherein the installation state comprises a first installation state and a second installation state;
determining a target working mode of the camera module according to the installation state;
and controlling the camera module to work in the target working mode.
10. The photographing control method according to claim 9, wherein determining the installation state of the camera module according to the first detection information specifically includes:
determining that the camera module is in a first installation state under the condition that the first detection information is first information of relative distribution of a first detection piece and a second detection piece;
determining that the camera module is in a second installation state under the condition that the first detection information is second information of relative distribution of the first detection piece and the third detection piece;
according to the installation state, determining a target working mode of the camera module specifically comprises:
when the installation state is the first installation state, determining that the camera module is located in the installation groove and faces a first direction;
determining the target working mode as a first working mode according to the first direction;
when the installation state is the second installation state, determining that the camera module is located in the installation groove, and the camera module faces a second direction, wherein the first direction is different from the second direction;
and determining the target working mode as a second working mode according to the second direction.
11. The photographing control method according to claim 9, wherein the mounting state further includes a third mounting state in which the camera module is located outside the mounting groove;
according to the first detection information, determining the installation state of the camera module specifically comprises:
determining an initial installation state and a current installation state of the camera module according to the first detection information, wherein the initial installation state is the installation state of the camera module before a preset time;
according to the installation state, determining a target working mode of the camera module specifically comprises:
determining the moving-out direction of the camera module according to the initial installation state under the condition that the current installation state is the third installation state;
and determining a target working mode of the camera module according to the initial installation state and the moving-out direction.
12. The photographing control method according to claim 11, wherein the mounting groove penetrates through a first surface and a second surface of the apparatus body, the first surface is provided with a first detecting member and a fourth detecting member, the first surface is provided with a second detecting member, a third detecting member, a fifth detecting member and a sixth detecting member, the second detecting member, the third detecting member, the fifth detecting member and the sixth detecting member are distributed on the first surface at four end points of a parallelogram, and a first side and a second side of the parallelogram, which are opposite to each other, are parallel to the first surface;
according to the first detection information, determining the moving-out direction of the camera module specifically comprises:
when the first detection information comprises first initial information of relative distribution of a first detection piece and a second detection piece before a preset time and first current information of relative distribution of the first detection piece and a fifth detection piece, determining that the camera module is changed from a first installation state to a third installation state along a first direction;
when the first detection information comprises second initial information of relative distribution of a fourth detection piece and a third detection piece before a preset time and second current information of relative distribution of the fourth detection piece and a sixth detection piece, determining that the camera module is changed from a first installation state to a third installation state along a second direction;
when the first detection information comprises third initial information that the first detection piece and the second detection piece are distributed relatively at a first distance before a preset time and third current information that the first detection piece and the second detection piece are distributed relatively at a second distance, determining that the camera module is changed from the first installation state to a third installation state along a third direction;
when the first detection information comprises fourth initial information of relative distribution of the first detection piece and the third detection piece before a preset time and fourth current information of relative distribution of the first detection piece and the sixth detection piece, determining that the camera module is changed from the second installation state to the third installation state along the first direction;
when the first detection information comprises fifth initial information of relative distribution of a fourth detection piece and a second detection piece before a preset time and fifth current information of relative distribution of the fourth detection piece and the fifth detection piece, determining that the camera module is changed from a second installation state to a third installation state along a second direction;
and when the first detection information comprises sixth initial information that the first detection piece and the third detection piece are distributed relatively at a first distance before a preset time and sixth current information that the first detection piece and the third detection piece are distributed relatively at a second distance, determining that the camera module is changed from the second installation state to the third installation state along the third direction.
13. An electronic device according to any one of claims 1 to 8, the electronic device further comprising:
the acquisition module is used for detecting the camera module through the first detection piece to obtain first detection information;
the first determining module is used for determining the installation state of the camera module according to the first detection information, wherein the installation state comprises a first installation state and a second installation state;
the second determining module is used for determining a target working mode of the camera module according to the installation state;
and the control module is used for controlling the camera module to work in the target working mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010388680.4A CN111586271B (en) | 2020-05-09 | 2020-05-09 | Electronic equipment and photographing control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010388680.4A CN111586271B (en) | 2020-05-09 | 2020-05-09 | Electronic equipment and photographing control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111586271A CN111586271A (en) | 2020-08-25 |
CN111586271B true CN111586271B (en) | 2022-02-18 |
Family
ID=72110778
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010388680.4A Active CN111586271B (en) | 2020-05-09 | 2020-05-09 | Electronic equipment and photographing control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111586271B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320585A (en) * | 2014-11-06 | 2015-01-28 | 广东欧珀移动通信有限公司 | Photographing method of mobile terminal, mobile terminal, camera and mobile device |
CN204156925U (en) * | 2014-11-06 | 2015-02-11 | 广东欧珀移动通信有限公司 | Terminal equipment |
CN206077465U (en) * | 2016-08-31 | 2017-04-05 | 深圳市至壹科技开发有限公司 | A kind of drawing video camera |
EP3160114A1 (en) * | 2014-07-15 | 2017-04-26 | Huawei Technologies Co., Ltd. | Mobile terminal and camera assembly thereof |
CN106657458A (en) * | 2016-10-28 | 2017-05-10 | 努比亚技术有限公司 | Terminal and hot-plug camera device for terminal |
CN109067964A (en) * | 2018-06-12 | 2018-12-21 | Oppo广东移动通信有限公司 | Camera control method, device, mobile terminal and storage medium |
CN110716417A (en) * | 2019-09-23 | 2020-01-21 | 维沃移动通信有限公司 | Wearable device and display method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10110719B2 (en) * | 2016-12-12 | 2018-10-23 | Brian Joseph Aberle | Magnification and lighting attachment for mobile telephones |
-
2020
- 2020-05-09 CN CN202010388680.4A patent/CN111586271B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3160114A1 (en) * | 2014-07-15 | 2017-04-26 | Huawei Technologies Co., Ltd. | Mobile terminal and camera assembly thereof |
CN104320585A (en) * | 2014-11-06 | 2015-01-28 | 广东欧珀移动通信有限公司 | Photographing method of mobile terminal, mobile terminal, camera and mobile device |
CN204156925U (en) * | 2014-11-06 | 2015-02-11 | 广东欧珀移动通信有限公司 | Terminal equipment |
CN206077465U (en) * | 2016-08-31 | 2017-04-05 | 深圳市至壹科技开发有限公司 | A kind of drawing video camera |
CN106657458A (en) * | 2016-10-28 | 2017-05-10 | 努比亚技术有限公司 | Terminal and hot-plug camera device for terminal |
CN109067964A (en) * | 2018-06-12 | 2018-12-21 | Oppo广东移动通信有限公司 | Camera control method, device, mobile terminal and storage medium |
CN110716417A (en) * | 2019-09-23 | 2020-01-21 | 维沃移动通信有限公司 | Wearable device and display method |
Also Published As
Publication number | Publication date |
---|---|
CN111586271A (en) | 2020-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109639970B (en) | Shooting method and terminal equipment | |
WO2021136268A1 (en) | Photographing method and electronic device | |
CN107786817B (en) | A kind of photographic method and mobile terminal | |
CN110213414B (en) | Drive control method, terminal and computer readable storage medium | |
CN107995395B (en) | Mobile terminal and image acquisition method for same | |
CN109348020B (en) | Photographing method and mobile terminal | |
CN108924414B (en) | Shooting method and terminal equipment | |
CN110769174B (en) | Video viewing method and electronic equipment | |
CN109688253B (en) | Shooting method and terminal | |
CN111050069B (en) | Shooting method and electronic equipment | |
CN111327807A (en) | Electronic device | |
WO2021147911A1 (en) | Mobile terminal, method for detecting image capturing mode, and storage medium | |
CN111475247B (en) | Display method and electronic equipment | |
CN110769154B (en) | Shooting method and electronic equipment | |
CN110602387B (en) | Shooting method and electronic equipment | |
CN110636225B (en) | Photographing method and electronic equipment | |
CN108317992A (en) | A kind of object distance measurement method and terminal device | |
CN111031246A (en) | Shooting method and electronic equipment | |
JP7413546B2 (en) | Photography method and electronic equipment | |
CN108196699B (en) | Page switching method and equipment | |
CN111464677B (en) | Electronic device, control method and control device thereof | |
CN110913133B (en) | Shooting method and electronic equipment | |
CN111586271B (en) | Electronic equipment and photographing control method | |
CN107911585B (en) | Image processing method and device of mobile terminal and mobile terminal | |
CN109600545A (en) | A kind of shooting householder method, terminal and computer readable storage medium |
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 |