CN107172327B - Image acquisition method and electronic equipment - Google Patents

Image acquisition method and electronic equipment Download PDF

Info

Publication number
CN107172327B
CN107172327B CN201710187773.9A CN201710187773A CN107172327B CN 107172327 B CN107172327 B CN 107172327B CN 201710187773 A CN201710187773 A CN 201710187773A CN 107172327 B CN107172327 B CN 107172327B
Authority
CN
China
Prior art keywords
filter
lens
image acquisition
target
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710187773.9A
Other languages
Chinese (zh)
Other versions
CN107172327A (en
Inventor
张亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710187773.9A priority Critical patent/CN107172327B/en
Publication of CN107172327A publication Critical patent/CN107172327A/en
Application granted granted Critical
Publication of CN107172327B publication Critical patent/CN107172327B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0264Details of the structure or mounting of specific components for a camera module assembly
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • H04N23/663Remote control of cameras or camera parts, e.g. by remote control devices for controlling interchangeable camera parts based on electronic image sensor signals

Abstract

The embodiment of the invention discloses an image acquisition method, which comprises the following steps: obtaining a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; generating a control instruction based on the first operation, and sending the control instruction to the filter device, wherein the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires images through the target filter lens. The embodiment of the invention also discloses electronic equipment and a filter device.

Description

Image acquisition method and electronic equipment
Technical Field
The present invention relates to image processing technologies, and in particular, to an image capturing method and an electronic device.
Background
At present, the difference of the photographing effect of photographing by using the mobile phone and the professional single-lens reflex camera mainly comes from the hardware filter, namely the use of the filter in the professional single-lens reflex camera can effectively improve the photographing effect, and the mobile phone can cause low imaging quality under the condition of lacking the use of some hardware filters, so that the effect which some users want is difficult to achieve.
Disclosure of Invention
In order to solve the existing technical problems, embodiments of the present invention provide an image acquisition method and an electronic device, which can at least solve the above problems in the prior art.
The technical scheme of the embodiment of the invention is realized as follows:
a first aspect of an embodiment of the present invention provides an image acquisition method, where the method includes:
obtaining a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation;
generating a control instruction based on the first operation, and sending the control instruction to the filter device, wherein the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires images through the target filter lens.
In the above scheme, a first hole is arranged in the filter device; each filter lens in the filter device can move to the first hole and at least shield a partial area of the first hole;
correspondingly, the electronic device and the filter device have a preset positional relationship, including:
the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole.
In the above scheme, a rotatable annular structure is arranged in the filter device; all the filter lenses in the filter device are arranged on the rotatable annular structure so as to be moved to the first holes through the rotation of the rotatable annular structure; in a corresponding manner, the first and second electrodes are,
the control instruction is used for controlling the rotatable annular structure to rotate at least by a preset angle, so that a first filter lens or the target filter lens in the at least one filter lens moves to a position corresponding to an image acquisition assembly of the electronic equipment.
In the above scheme, the method further comprises:
detecting whether the relative position relation between the image acquisition assembly and each filter lens changes under the preset position relation;
and when the change is determined, modifying the mapping table based on the changed relative position relationship between the image acquisition assembly and each filter lens.
A second aspect of the embodiments of the present invention provides an image capturing method, where the method includes:
the filter device receives a control instruction aiming at a target filter lens sent by electronic equipment; the filter device and the electronic equipment have a preset position relation, so that any one of at least one filter lens arranged on the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation;
based on the control instruction, the target filter lens is selected from the at least one filter lens, and the target filter lens is controlled to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the electronic equipment can control the image acquisition assembly to acquire images through the target filter lens.
A third aspect of an embodiment of the present invention provides an electronic device, including:
the image acquisition component is used for acquiring images;
a first processor to obtain a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires images through the target filter lens.
In the above scheme, a first hole is arranged in the filter device; each filter lens in the filter device can move to the first hole and at least shield a partial area of the first hole;
correspondingly, the electronic device and the filter device have a preset positional relationship, including:
the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole.
In the above scheme, the first processor is further configured to detect whether a relative positional relationship between the image acquisition assembly and the target filter lens meets a preset rule; and the image acquisition assembly is also used for determining whether the image acquisition assembly can be controlled to acquire images through the target filter lens based on the image acquisition instruction according to the detection result.
A fourth aspect of an embodiment of the present invention provides a filter device, including: at least one filter lens; correspondingly, the filter device further comprises:
the second processor is used for receiving a control instruction which is sent by the electronic equipment and aims at the target filter lens; the filter device and the electronic equipment have a preset position relation, so that any one of at least one filter lens arranged on the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; and the electronic equipment is further used for selecting the target filter lens from the at least one filter lens based on the control instruction, and controlling the target filter lens to move to a position corresponding to the image acquisition assembly of the electronic equipment, so that the electronic equipment can control the image acquisition assembly to acquire an image through the target filter lens.
In the above scheme, a first hole is arranged in the filter device; each filter lens in the filter device can move to the first hole and at least shield a partial area of the first hole;
correspondingly, the filter device and the electronic device have a preset position relationship, including:
the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole.
In the above scheme, a rotatable annular structure is arranged in the filter device; all the filter lenses in the filter device are arranged on the rotatable annular structure so as to be moved to the first holes through the rotation of the rotatable annular structure; in a corresponding manner, the first and second electrodes are,
the control instruction is used for controlling the rotatable annular structure to rotate at least by a preset angle, so that a first filter lens or the target filter lens in the at least one filter lens moves to a position corresponding to an image acquisition assembly of the electronic equipment
According to the image acquisition method, the electronic equipment and the filter device, the electronic equipment controls the filter device provided with at least one filter lens, and the target filter lens is selected from at least one filter lens in the filter device, so that an image acquisition assembly of the electronic equipment can acquire images through the target filter lens, and therefore the problems that compared with a professional single-lens reflex camera, the existing electronic equipment is low in imaging quality and cannot achieve the acquisition effect required by a user are solved; moreover, the embodiment of the invention is an automatic process, and does not need a user to manually adjust the required hardware filter, so that the selection time for selecting the filter can be shortened, a foundation is laid for avoiding the user missing the wonderful moment of image acquisition, the user experience is enriched, and the user experience is improved.
Drawings
FIG. 1 is a schematic flow chart illustrating an implementation of an image acquisition method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an interface of an electronic device presenting filter identifiers according to an embodiment of the invention;
FIG. 3 is a first schematic structural diagram of a filter device according to an embodiment of the present invention;
FIG. 4 is a second schematic structural diagram of a filter device according to an embodiment of the present invention;
FIG. 5 is a third schematic structural diagram of a filter device according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a structure of an electronic device according to an embodiment of the invention;
FIG. 7 is a schematic diagram of a filter device according to an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the present invention can be understood in detail, a more particular description of the invention, briefly summarized above, may be had by reference to embodiments, some of which are illustrated in the appended drawings.
Example one
The embodiment provides an image acquisition method; the method is applied to electronic equipment, wherein the electronic equipment can be a mobile phone, a tablet personal computer and the like; here, in this embodiment, the electronic device is capable of performing data communication with the filter device, such as controlling the filter device in a wired or wireless manner; here, the electronic device may send a control instruction to the filter device in a software control manner; further, in practical applications, the filter device may be integrated in the electronic device, or the filter device and the electronic device are independent devices. Specifically, fig. 1 is a schematic flow chart illustrating an implementation of the image acquisition method according to the embodiment of the present invention; as shown in fig. 1, the method includes:
step 101: obtaining a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation;
here, the electronic device may be provided with a main interface and may be capable of connecting with the auxiliary interface of the filter device through the main interface to communicate; furthermore, the electronic device further has a main fixing device, and can be fixedly connected with an auxiliary fixing device on the filter device through the main fixing device, so as to ensure the relative stability of the electronic device and the filter device, and the stable state is that the electronic device and the filter device are in a preset position relationship, the main fixing device and the auxiliary fixing device can be adsorbed together, so that the electronic device and the filter device are fixed together through the adsorption force, the adsorbed electronic device and the filter device are in the preset position relationship, and further, in the preset position relationship, the acquisition channel of the image acquisition assembly of the electronic device can be completely shielded by a specific filter lens in the filter device, so that the acquisition channel of the image acquisition assembly is completely transparent to the specific filter lens for image acquisition, here, the specific filter lens may be any one of the filter lenses in the filter device.
In a specific embodiment, the electronic device presents at least one filter identifier on a display screen, and correspondingly, the obtaining a first operation for the electronic device may specifically include: and acquiring a first operation aiming at a target filter identifier in the at least one filter identifier. Here, each filter identification corresponds to one filter lens, so as to select a target filter lens from at least one filter lens based on the filter identification; the target filter identification is an identification corresponding to the target filter lens. In practical application, as shown in fig. 2, it is assumed that five filter lenses are arranged in the filter device, at this time, five filter identifiers presented in the electronic device respectively correspond to the filter lenses 1 to 5, so that a user can select a target filter lens through the five filter identifiers presented in the electronic device. Here, in practical applications, the filter identifier may be specifically a graphic with a shape similar to that of the filter lens, and of course, the filter identifier may also include characters, such as a name of the filter lens.
Specifically, the filter lens in this embodiment may be: polarizers, starlight mirrors, medium density filters, etc.; the use of the polarizer can remove stray light, such as specular reflection light, reflection light of a metal surface, refraction light in air, and the like, among others. The use of the starlight mirror can create various lighting effects, such as a cross mirror, a Mi-character mirror, and the like. The use of the medium density filter can reduce the amount of light entering, thereby increasing the exposure time and creating some motion effects, such as waterfall movement, cloud movement, and the like.
Step 102: generating a control instruction based on the first operation, and sending the control instruction to the filter device, wherein the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires images through the target filter lens.
Correspondingly, the filter device receives a control instruction aiming at a target filter lens sent by electronic equipment; the filter device and the electronic equipment have a preset position relation, so that any one of at least one filter lens arranged on the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; further, the filter device selects the target filter lens from the at least one filter lens based on the control instruction, and controls the target filter lens to move to a position corresponding to an image acquisition component of the electronic device, for example, controls the target filter lens to move to a position capable of completely shielding an acquisition channel of the image acquisition component, so that when the electronic device controls the image acquisition component to acquire an image, the acquisition channel of the image acquisition component can be completely transparent and then the target filter lens is acquired, so that the image acquired by the electronic device achieves an effect similar to that of an image acquired after a filter is arranged in front of a single lens reflex camera lens.
In a specific embodiment, the electronic device detects a first result indicating that the electronic device is connected with the filter device, and sends the control instruction to the filter device; or detecting a second result representing that the electronic equipment is not connected with the filter device, and adjusting and starting a filter algorithm module corresponding to the target filter based on the control instruction so as to respond to the control instruction through the filter algorithm module. Here, the electronic device has a main interface and can be connected to an auxiliary interface of the filter device through the main interface in a communication manner, and correspondingly, the first result indicates that the main interface and the auxiliary interface are in a communication connection state, and the second result indicates that the main interface and the auxiliary interface are not in a communication connection state, that is, a disconnection state.
That is to say, when detecting that the electronic device is connected to the filter device, the electronic device directly sends the control command to the filter device through the communication connection link; otherwise, when detecting that the filter device and the electronic device are not connected, starting a filter algorithm module based on a control instruction, wherein the filter algorithm module is set by the electronic device (here, the filter algorithm module can correspond to an application program capable of processing collected images and realizing a filter effect).
Certainly, in order to obtain a better filter effect, in another embodiment of the present application, the control instruction may be further responded based on the filter device and the filter algorithm module together, for example, the target filter lens is firstly shielded on an acquisition channel of the image acquisition assembly, so that light entering the image acquisition assembly from the outside passes through the target filter lens for imaging, the obtained image after the initial filter processing is performed, and then the filter algorithm module is used to perform image processing (such as filter processing) on the image after the initial filter processing again, so as to obtain a better image effect.
In practical application, after the electronic device sends the control instruction to the filter device, whether the relative position relationship between the image acquisition assembly and the target filter lens meets a preset rule or not can be detected, and whether the image acquisition assembly can be controlled to acquire an image through the target filter lens based on the image acquisition instruction or not is determined according to a detection result; for example, whether the target filter lens can completely block the acquisition channel of the image acquisition assembly is detected, here, when the acquisition channel of the image acquisition assembly can be completely blocked and all light entering the image acquisition assembly is light processed by the target filter lens, it is considered that the relative position relationship between the image acquisition assembly and the target filter lens meets the preset rule, otherwise, it is considered that the relative position relationship between the image acquisition assembly and the target filter lens does not meet the preset rule. Further, when the relative position relation between the image acquisition assembly and the target filter lens meets a preset rule and an image acquisition instruction is detected, controlling the image acquisition assembly to acquire an image through the target filter lens; and when the relative position relation between the image acquisition assembly and the target filter lens does not meet the preset rule, even if an image acquisition instruction is obtained, the image acquisition instruction is not responded, so that the image which does not meet the filter effect is prevented from being acquired because the target filter lens does not move in place. Further, the electronic device may further generate a prompt message to prompt the user that the relative position relationship between the image capture assembly and the target filter lens does not satisfy a preset rule, and ask the user to wait. Here, the image capturing instruction is an image capturing instruction generated by triggering a photographing key (a physical key or a virtual key) on an electronic device (e.g., a mobile phone).
In this way, according to the method provided by the embodiment of the invention, the electronic device is used for controlling the filter device provided with at least one filter lens, and the target filter lens is selected from at least one filter lens in the filter device, so that the image acquisition assembly of the electronic device can acquire images through the target filter lens, and thus, the problems that compared with a professional single lens reflex camera, the existing electronic device is low in imaging quality and cannot achieve the acquisition effect required by a user are solved; moreover, the embodiment of the invention is an automatic process, and does not need a user to manually adjust the required hardware filter, so that the selection time for selecting the filter can be shortened, a foundation is laid for avoiding the user missing the wonderful moment of image acquisition, the user experience is enriched, and the user experience is improved.
In this embodiment, the filter device is a structure capable of controlling the filter lens installed on the filter device to move in an automatic control manner. The following provides a specific structure of the filter device in this embodiment, and a specific description of a control manner of the electronic device for controlling the filter device based on the specific structure of the filter device; in particular, the amount of the solvent to be used,
as shown in fig. 3 to 5, a first hole is formed in the filter device; the first hole corresponds to an image acquisition assembly of the electronic device. In other words, after the filter device is connected to the electronic device, the first cavity of the filter device is located on the external light collecting channel of the image collecting assembly of the electronic device. Each filter lens in the filter device can move and can move to the first hole, and when the filter lens moves to the first hole, the whole area of the first hole is shielded, namely, the filter lens shields a collecting channel (such as a lens) of the image collecting assembly. In this way, it is convenient for the lens of the image capturing component in the electronic device to capture through the first hole (i.e., the filter-free lens), and for the lens of the image capturing component in the electronic device to capture an image by moving to the filter lens of the first hole; that is, the electronic device and the filter device have a preset position relationship that: the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole, namely, after the filter device is connected with the electronic equipment, the first hole of the filter device is positioned on an acquisition channel of external light of the image acquisition assembly. In an embodiment of the application, the first hole of the filter device and the image acquisition device of the electronic device are calibrated before leaving the factory, so that the electronic device obtains connection information representing that the filter device is successfully connected with the electronic device, and the electronic device and the filter device meet the preset position relationship. Of course, in other embodiments, it may also be possible to capture the picture in real time, specifically by the image capture assembly, and perform the calibration with the previous one to determine whether the first hole of the filter device is in the capture channel of the ambient light located in the image capture assembly.
For example, when a camera application at an electronic device end (a mobile phone end) is in an operating state, an image acquisition component of the electronic device is in a preview mode, an image acquired by the image acquisition component of the electronic device in the preview mode in real time is displayed through a display screen of the electronic device, if a user needs a filter effect, a plurality of different filter identifiers are displayed on the display screen through triggering operation, and further, if the electronic device obtains connection information representing that a filter device is successfully connected with the electronic device, the electronic device and the filter device meet the preset position relationship (that is, a first hole is located in a path of external light of the image acquisition component), the filter lens can be used for image acquisition; here, the plurality of different filter identifiers correspond to a plurality of different filter lenses on the filter device in a one-to-one manner, or a first filter identifier corresponding to the plurality of different filter lenses on the filter device among the plurality of different filter identifiers has a different display effect on the display screen from other filter identifiers, for example, a highlight or the like, that is, the filter identifiers displayed on the electronic device do not correspond to only the same filter device, and when corresponding to the plurality of filter devices, the identification characteristics (e.g., color, shape, etc.) of the filter identifiers of the filter lenses of the different filter devices on the display screen may be different.
Or, when the mobile phone terminal photographing application is in an operating state, the image acquisition assembly of the electronic equipment is in a preview mode, the display screen of the electronic equipment displays an image acquired by the image acquisition assembly of the electronic equipment in real time in the preview mode, and if the electronic equipment obtains connection information representing successful connection between the filter device and the electronic equipment, the electronic equipment and the filter device meet the preset position relationship (namely, the first hole is located on a path of external light of the image acquisition assembly), a plurality of filter identifications corresponding to a plurality of different filter lenses on the filter device one by one are directly displayed on the display screen for a user to select.
The user determines a target filter lens through selection operation aiming at different filter identifiers, after the selection operation is successful, the mobile phone sends a corresponding control instruction to the filter device, and an automatic device of the filter device controls the target filter lens to automatically move to the first hole based on the control instruction. In the process of controlling the target filter lens to automatically move to the first hole, whether the relative position relation between the image acquisition assembly and the target filter lens meets a preset rule or not can be detected, specifically, whether the target filter lens moves in place or not is detected, namely, whether the target filter lens completely moves to the first hole or not is detected. When the target filter lens moves completely into the first hole, in-place information is generated so as to indicate that the electronic equipment (namely, the mobile phone end) can respond to a photographing instruction.
Further, in a specific embodiment, a rotatable ring structure is provided in the filter device, that is, the rotatable ring structure is an automatic device in the filter device, for example, the automatic device may be a gear capable of automatically rotating, and the movement of the filter lens is controlled by the rotation of the gear; all the filter lenses in the filter device are arranged on the rotatable annular structure so as to be moved to the first holes through the rotation of the rotatable annular structure; as shown in fig. 3, the filter lenses 1 to 5 are all disposed on a rotatable ring structure (e.g., a gear), so that, after a user performs a click operation on a specific filter mark on the display screen, a specific filter lens of the filter lenses 1 to 5 can be rotated to a first hole by the rotatable ring structure; in a corresponding manner, the first and second electrodes are,
the control instruction is specifically configured to control the rotatable ring structure to rotate at least a preset angle, so that a first filter lens of the at least one filter lens or the target filter lens moves to a position corresponding to an image capture component of the electronic device. Here, the rotatable ring structure may rotate several preset angles at a time, for example, the preset angle is a, where the preset angle a is an angle formed by taking a circle center O of the rotatable ring structure as a vertex and taking a line segment formed by the circle center O to the first hole and the filter lens 1 (or the filter lens 5) adjacent to the first hole as an edge; here, in practical application, the angle formed by the origin O and the two adjacent filter lenses can be a, so that when the rotating angle a of the rotatable ring structure is equal to the rotating angle a, the specific filter lens can be ensured to be located in the first hole, and the image acquisition assembly can acquire images through the specific filter lens. For example, after a user selects a target filter lens through a filter identifier on a display screen, the rotatable ring structure can control the target filter lens to move to the first hole by rotating a plurality of preset angles; for another example, each time a user clicks a specific key (physical key or virtual key) on the display screen, the rotatable ring structure rotates by a predetermined angle a, and the process is repeated, so that the user can select a target filter lens after one or more clicks, wherein the filter identifier of the selected target filter lens is different from the filter identifiers of other unselected filter lenses. Of course, the above is only used for explaining the embodiment of the present invention, and is not used for limiting the embodiment of the present invention, in practical applications, the above-mentioned angles may be different as long as the electronic device can control the target filter lens to move to the first hole according to the actual angle.
In another specific embodiment, the electronic device obtains a relative positional relationship between the image capturing assembly and each of the at least one filter lens element in the preset positional relationship, and generates a mapping table representing the relative positional relationship between the image capturing assembly and each of the at least one filter lens element; that is to say, the electronic device records the relative position relationship between each filter lens and the image capturing component in the filter device in a mapping table manner, for example, when the image capturing component in the electronic device corresponds to the first hole and enables the image capturing component to capture an image through the first hole, the electronic device records the relative position relationship between each filter lens and the first hole in the preset position relationship in a mapping table manner. Further, after the user selects the target filter lens, the electronic device selects a first relative position relationship between the image acquisition component and the target filter lens selected by the first operation from the mapping table, determines a movement parameter of the target filter lens according to the first relative position relationship, and generates a control instruction based on the movement parameter, so that the filter device controls the target filter lens to move to a position corresponding to the image acquisition component of the electronic device according to the movement parameter.
Further, in order to enable the electronic device to accurately determine the movement parameter, the electronic device may further detect whether a relative positional relationship between the image capturing assembly and each of the filter lenses changes in the preset positional relationship, and modify the mapping table based on the changed relative positional relationship between the image capturing assembly and each of the filter lenses when the change is determined.
Here, in practical applications, a detection process of a relative positional relationship between the image capturing assembly and each of the at least one filter lens, and/or a detection process of whether a relative positional relationship between the image capturing assembly and each of the at least one filter lens changes may be detected by the electronic device itself, or may be detected by the filter device and then sent to the electronic device.
Fig. 4 and 5 are schematic diagrams illustrating different arrangement manners of filter lenses in the filter device, as shown in fig. 4, the filter device can move the filter lenses to the first holes through the arranged tracks, and different filter lenses can be arranged in different tracks; or, the filter lens centers on first hole sets up, and each filter device can remove the filter lens to first hole through the track that self corresponds, if, five different filter lenses correspond different tracks, like this, electronic equipment only needs to know which track corresponds which filter lens can determine the removal parameter.
The following examples of the present invention are described in further detail with reference to specific applications; specifically, a set of hardware filters is mounted in a seal body, and the seal body is mounted to the back of the handset, for example, by magnetic attraction or by embedding the handset in a housing provided by the seal body (e.g., a handset back case type product). Here, the sealing body may be a battery itself, or may be powered by the electric power of the mobile phone through a contact with the mobile phone. Furthermore, a hole is formed in the sealing body, and the position of the hole is just matched with the position of a camera of the mobile phone. Inside the seal, under mechanical device's drive, can remove the position of specific hardware filter to the hole to shelter from in the front of the camera of cell-phone, reach the purpose of filtering light. For example, a ring-shaped structure may be adopted, a group of filters is mounted on a disk, and the disk is rotated by a servo motor, so that the purpose of rotating the disk to a specified position is achieved.
Here, the sealing body can perform data communication with the mobile phone, for example, data transmission with the mobile phone through a wireless communication mode (bluetooth, near field communication technology NFC or wireless fidelity Wi-Fi, etc.); or, data transmission is carried out with the mobile phone in a wired mode, such as through an electric shock connected with the mobile phone; therefore, under the control of the user, the camera software of the mobile phone can send a control instruction to the sealing body according to the filter type selected by the user, for example, the rotation angle of the servo motor is controlled by the control instruction, so that the purpose that the user controls the automatic movement of the hardware filter through the operation on the user interaction interface is achieved.
Therefore, according to the method provided by the embodiment of the invention, the user can select the specific filter without adjusting the required hardware filter in a manual mechanical mode, the operation process of the user is simplified, the selection speed of selecting a new filter by the user is increased, and the problem that the wonderful moment is missed is effectively avoided. Furthermore, the embodiment of the invention can be realized on the basis of software, so that the full-automatic selection process is realized, and the user experience is further improved. In addition, the attention of the user is still completely focused on the viewing interface of the mobile phone display screen, the filter accessory at the back of the mobile phone does not need to be adjusted by taking care, and a foundation is further laid for improving the image effect.
Example two
The present embodiment provides an electronic device, as shown in fig. 6, the electronic device includes:
the image acquisition component 61 is used for acquiring images;
a first processor 62 for obtaining a first operation for the electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires images through the target filter lens.
In an embodiment, the first processor 62 is further configured to present at least one filter identifier on the display screen, where each filter identifier corresponds to one filter lens, so as to select a target filter lens from the at least one filter lens based on the filter identifier; correspondingly, the method is further configured to acquire a first operation for a target filter identifier in the at least one filter identifier, where the target filter identifier is an identifier corresponding to the target filter lens.
In another embodiment, a first hole is arranged in the filter device; each filter lens in the filter device can move to the first hole and at least shield a partial area of the first hole; correspondingly, the electronic device and the filter device have a preset positional relationship, including:
the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole.
In another embodiment, the first processor 62 is further configured to detect whether a relative position relationship between the image capturing assembly and the target filter lens satisfies a preset rule; correspondingly, the image acquisition assembly is further used for determining whether the image acquisition assembly can be controlled to acquire images through the target filter lens based on the image acquisition instruction according to the detection result.
In another embodiment, the first processor 62 is further configured to detect a first result indicating that the electronic device is connected to the filter device, and send the control instruction to the filter device; the electronic equipment is connected with the auxiliary interface of the filter device through a main interface for communication connection, is provided with a main fixing device and is connected with the auxiliary fixing device on the filter device through the main fixing device so as to ensure the relative stability of the electronic equipment and the filter device; alternatively, the first and second electrodes may be,
and detecting a second result representing that the electronic equipment is not connected with the filter device, and adjusting and starting a filter algorithm module corresponding to the target filter based on the control instruction so as to respond to the control instruction through the filter algorithm module.
In another embodiment, the first processor 62 is further configured to obtain a relative positional relationship between the image capturing assembly and each of the at least one filter lens under the preset positional relationship, and generate a mapping table representing the relative positional relationship between the image capturing assembly and each of the at least one filter lens; the mapping table is further used for selecting a first relative position relation between the image acquisition component and the target filter lens selected by the first operation; correspondingly, the filter device is further configured to determine a movement parameter of the target filter lens according to the first relative position relationship, and generate a control instruction based on the movement parameter, so that the filter device controls the target filter lens to move to a position corresponding to the image capture component of the electronic device according to the movement parameter.
In an embodiment, the first processor 62 is further configured to detect whether a relative positional relationship between the image capturing assembly and each of the filter lenses changes in the preset positional relationship; and when the change is determined, modifying the mapping table based on the changed relative position relationship between the image acquisition assembly and each filter lens.
Here, it should be noted that: the description of the embodiment of the electronic device is similar to the description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description is omitted. For technical details that are not disclosed in the embodiment of the electronic device of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is not repeated here.
EXAMPLE III
The present embodiment provides a filter device, as shown in fig. 7, the filter device including: at least one filter lens 72; correspondingly, the filter device further comprises:
a second processor 71, configured to receive a control instruction for a target filter lens sent by an electronic device; the filter device and the electronic equipment have a preset position relation, so that any one of at least one filter lens arranged on the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; the electronic equipment is used for selecting the target filter lens from the at least one filter lens based on the control instruction, and controlling the target filter lens to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the electronic equipment can control the image acquisition assembly to acquire images through the target filter lens.
In one embodiment, the filter device is provided with a first hole; each filter lens in the filter device can move to the first hole and at least shield a partial area of the first hole;
correspondingly, the filter device and the electronic device have a preset position relationship, including:
the image acquisition assembly in the electronic equipment corresponds to the first hole, so that the image acquisition assembly acquires images through the first hole.
In another embodiment, a rotatable ring-shaped structure is arranged in the filter device; all the filter lenses in the filter device are arranged on the rotatable annular structure so as to be moved to the first holes through the rotation of the rotatable annular structure; in a corresponding manner, the first and second electrodes are,
the control instruction is used for controlling the rotatable annular structure to rotate at least by a preset angle, so that a first filter lens or the target filter lens in the at least one filter lens moves to a position corresponding to an image acquisition assembly of the electronic equipment.
Here, it should be noted that: the description of the embodiment of the filter device is similar to the description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description is omitted. For technical details not disclosed in the embodiments of the filter device of the present invention, those skilled in the art should understand with reference to the description of the embodiments of the method of the present invention, and for the sake of brevity, no further description is provided here.
In another embodiment of the invention, the desired filter effect is selected in a photographing application, and the electronic device determines how to respond to the selection of the target filter effect based on whether a filter device is connected. If the filter device is connected, the filter lens corresponding to the target filter effect is used for photographing, and the photographed image shows the target filter effect naturally. And if the filter device is not connected, performing image processing on the photographed image through a software algorithm corresponding to the target filter effect, thereby realizing the target filter effect.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a mobile storage device, a Read Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
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 appended claims.

Claims (8)

1. An image acquisition method, characterized in that the method comprises:
obtaining a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation;
generating a control instruction based on the first operation, and sending the control instruction to the filter device, wherein the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition assembly of the electronic equipment, so that the image acquisition assembly acquires an image through the target filter lens;
the sending the control command to the filter device includes:
detecting a first result representing that the electronic equipment is connected with the filter device, and sending the control instruction to the filter device; alternatively, the first and second electrodes may be,
and detecting a second result representing that the electronic equipment is not connected with the filter device, and adjusting and starting a filter algorithm module corresponding to the target filter based on the control instruction so as to respond to the control instruction through the filter algorithm module.
2. The method of claim 1, further comprising:
the electronic equipment presents at least one filter identifier on a display screen, wherein each filter identifier corresponds to one filter lens, so that a target filter lens is selected from the at least one filter lens based on the filter identifiers;
correspondingly, the obtaining a first operation for the electronic device includes:
and acquiring a first operation aiming at a target filter identifier in the at least one filter identifier, wherein the target filter identifier is an identifier corresponding to the target filter lens.
3. The method of claim 1, further comprising:
detecting whether the relative position relation between the image acquisition assembly and the target filter lens meets a preset rule or not, and determining whether the image acquisition assembly can be controlled to acquire images through the target filter lens based on an image acquisition instruction or not according to a detection result.
4. The method of claim 1, further comprising:
acquiring the relative position relationship between the image acquisition assembly and each filter lens in the at least one filter lens under the preset position relationship, and generating a mapping table representing the relative position relationship between the image acquisition assembly and each filter lens;
selecting a first relative position relation between the image acquisition component and the target filter lens selected by the first operation from the mapping table;
correspondingly, the generating a control instruction based on the first operation comprises:
determining the movement parameters of the target filter lens according to the first relative position relation;
and generating a control instruction based on the movement parameter so that the filter device controls the target filter lens to move to a position corresponding to an image acquisition assembly of the electronic equipment according to the movement parameter.
5. An electronic device, characterized in that the electronic device comprises:
the image acquisition component is used for acquiring images;
a first processor to obtain a first operation for an electronic device; the first operation is a selection operation of selecting a target filter lens in a filter device which can be controlled by the electronic equipment; the electronic equipment and the filter device have a preset position relation, so that any one of at least one filter lens arranged in the filter device can correspond to an image acquisition assembly arranged in the electronic equipment through movement under the preset position relation; the control instruction is used for controlling a target filter lens in the filter device to move to a position corresponding to an image acquisition component of the electronic equipment so that the image acquisition component acquires images through the target filter lens;
the first processor is further configured to detect a first result indicating that the electronic device is connected with the filter device, and send the control instruction to the filter device; the electronic equipment is connected with the auxiliary interface of the filter device through a main interface for communication connection, is provided with a main fixing device and is connected with the auxiliary fixing device on the filter device through the main fixing device so as to ensure the relative stability of the electronic equipment and the filter device; alternatively, the first and second electrodes may be,
and detecting a second result representing that the electronic equipment is not connected with the filter device, and adjusting and starting a filter algorithm module corresponding to the target filter based on the control instruction so as to respond to the control instruction through the filter algorithm module.
6. The electronic device of claim 5, wherein the first processor is further configured to present at least one filter identifier on the display screen, wherein each filter identifier corresponds to one filter lens, so as to select a target filter lens from the at least one filter lens based on the filter identifier; correspondingly, the method is further configured to acquire a first operation for a target filter identifier in the at least one filter identifier, where the target filter identifier is an identifier corresponding to the target filter lens.
7. The electronic device according to claim 5, wherein the first processor is further configured to obtain a relative positional relationship between the image capturing assembly and each of the at least one filter lens in the preset positional relationship, and generate a mapping table representing the relative positional relationship between the image capturing assembly and each of the at least one filter lens; the mapping table is further used for selecting a first relative position relation between the image acquisition component and the target filter lens selected by the first operation; in a corresponding manner, the first and second electrodes are,
the first processor is further configured to determine a movement parameter of the target filter lens according to the first relative position relationship, and generate a control instruction based on the movement parameter, so that the filter device controls the target filter lens to move to a position corresponding to an image acquisition component of the electronic device according to the movement parameter.
8. The electronic device of claim 5, wherein the first processor is further configured to detect whether a relative position relationship between the image capturing component and the target filter lens meets a preset rule, and determine whether the image capturing component can be controlled to capture an image through the target filter lens based on an image capturing instruction according to a detection result.
CN201710187773.9A 2017-03-27 2017-03-27 Image acquisition method and electronic equipment Active CN107172327B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710187773.9A CN107172327B (en) 2017-03-27 2017-03-27 Image acquisition method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710187773.9A CN107172327B (en) 2017-03-27 2017-03-27 Image acquisition method and electronic equipment

Publications (2)

Publication Number Publication Date
CN107172327A CN107172327A (en) 2017-09-15
CN107172327B true CN107172327B (en) 2020-04-24

Family

ID=59848978

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710187773.9A Active CN107172327B (en) 2017-03-27 2017-03-27 Image acquisition method and electronic equipment

Country Status (1)

Country Link
CN (1) CN107172327B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111598880A (en) * 2020-05-19 2020-08-28 上海杏脉信息科技有限公司 Fluorescence in situ hybridization sample pathological detection system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002271665A (en) * 2001-03-12 2002-09-20 Sanyo Electric Co Ltd Mobile phone and lens cover for the mobile phone
JP2004053836A (en) * 2002-07-18 2004-02-19 Matsushita Electric Ind Co Ltd Mobile telephone set
CN204091241U (en) * 2014-02-28 2015-01-14 上海工程技术大学 A kind of cell-phone cover of the straight plate shooting mobile phone with optical filter
US10126531B2 (en) * 2015-02-02 2018-11-13 Xing Du Motorized interchangeable lens system
JP2018510393A (en) * 2015-03-16 2018-04-12 マイクロ・アクチュエータ・カンパニー・リミテッドMicro Actuator Co., Ltd. Filter switching device used for camera module and mobile device including camera module

Also Published As

Publication number Publication date
CN107172327A (en) 2017-09-15

Similar Documents

Publication Publication Date Title
CN107580178B (en) Image processing method and device
CN104303146B (en) The entrance of image related application in mobile device
CN106820519B (en) Terminal protective sleeve with replaceable camera lens mode and lens mode obtaining method
US20080080846A1 (en) Selecting autofocus area in an image
CN102158646A (en) Imaging control apparatus, imaging apparatus, imaging control method, and program
CN104065880A (en) Processing method and system for automatically taking pictures based on eye tracking technology
EP3261330A1 (en) Method and apparatus for setting camera parameter
US9124805B2 (en) Adapting an optical image stabilizer on a camera
CN103945117A (en) Photographing unit, cooperative photographing method, and recording medium having recorded program
EP3352453B1 (en) Photographing method for intelligent flight device and intelligent flight device
KR20170085760A (en) Method for controlling camera device and electronic device thereof
CN107637063B (en) Method for controlling function based on gesture of user and photographing device
CN104469001A (en) Mobile phone with photographing stabilization function and stabilization method in photographing process of mobile phone
JP2014093691A (en) Imaging apparatus, imaging method, and program
CN112653843A (en) Shooting method and device based on holder and electronic equipment
CN108153083B (en) Filter group structure, camera device and filter control method of camera device
CN107172327B (en) Image acquisition method and electronic equipment
JP2018152787A (en) Imaging device, external device, imaging system, imaging method, operation method, and program
JP2021039167A (en) Image processor and method for controlling image processor
CN111176521B (en) Message display method, intelligent sound box and storage medium
WO2020073244A1 (en) Control method, apparatus, device, system and storage medium for manual focusing
CN115423692A (en) Image processing method, image processing device, electronic equipment and storage medium
KR20150015664A (en) Beam projector using flash of portable device
JP2014082586A (en) Photographing apparatus
CN111782053A (en) Model editing method, device, equipment and 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