CN111510634B - Camera module control method and camera module - Google Patents

Camera module control method and camera module Download PDF

Info

Publication number
CN111510634B
CN111510634B CN202010371205.6A CN202010371205A CN111510634B CN 111510634 B CN111510634 B CN 111510634B CN 202010371205 A CN202010371205 A CN 202010371205A CN 111510634 B CN111510634 B CN 111510634B
Authority
CN
China
Prior art keywords
camera module
working mode
electronic device
electronic equipment
target
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
CN202010371205.6A
Other languages
Chinese (zh)
Other versions
CN111510634A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010371205.6A priority Critical patent/CN111510634B/en
Publication of CN111510634A publication Critical patent/CN111510634A/en
Application granted granted Critical
Publication of CN111510634B publication Critical patent/CN111510634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • 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/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • 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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes

Abstract

The embodiment of the invention provides a camera module control method and a camera module, which are applied to the field of communication and aim to solve the problem of low security of a shared detachable camera module. The method is applied to a target camera module and comprises the following steps: receiving first control information sent by first electronic equipment under the condition that the working mode of the target camera module is a first working mode; if the first electronic equipment meets the first preset condition, executing target operation corresponding to the first control information; if the first electronic equipment does not meet the first preset condition, not responding to the first control information or sending first feedback information indicating that the first electronic equipment is forbidden to use the target camera module to the first electronic equipment; the first preset condition includes: the first electronic equipment is preset electronic equipment associated with the first working mode; the first working mode is that the target camera module comprises one of a plurality of working modes, and each working mode is at least associated with one electronic device.

Description

Camera module control method and camera module
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a camera module control method and a camera module.
Background
At present, detachable camera modules (or called camera units) are increasingly widely applied to electronic devices such as mobile phones and tablet computers. The detachable camera module can be separated from the electronic equipment and can work in an independent charged mode, and can also be used for storing data such as image information and video information. Specifically, the detachable camera module can be shared among different electronic devices or different users.
Wherein, anyone can use detachable camera module in an electronic equipment, if use this camera module of function through this electronic equipment, perhaps control other electronic equipment and connect and use this camera module. However, a user using the detachable camera module may be an illegal user, which may cause data in the camera module or the electronic device to be leaked to the illegal user, so that security of sharing the detachable camera module is low.
Disclosure of Invention
The embodiment of the invention provides a camera module control method and a camera module, and aims to solve the problem that the security of a shared detachable camera module is low.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a camera module control method, which is applied to a target camera module, and the method includes: receiving first control information sent by first electronic equipment under the condition that the working mode of the target camera module is a first working mode; executing target operation corresponding to the first control information under the condition that the first electronic equipment meets a first preset condition; under the condition that the first control information does not meet the first preset condition, the first control information is not responded, or first feedback information is sent to the first electronic equipment; wherein, the first preset condition comprises: the first electronic equipment is preset electronic equipment associated with the first working mode; the first feedback information is information indicating that the first electronic equipment forbids using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes.
In a second aspect, an embodiment of the present invention further provides a camera module, where the camera module is a target camera module, and the camera module includes: the receiving module is used for receiving first control information sent by first electronic equipment under the condition that the working mode of the target camera module is a first working mode; the first execution module is used for executing target operation corresponding to the first control information received by the receiving module under the condition that the first electronic equipment meets a first preset condition; the second execution module does not respond to the first control information received by the receiving module or sends first feedback information to the first electronic equipment under the condition that the first electronic equipment does not meet the first preset condition; wherein, the first preset condition comprises: the first electronic equipment is preset electronic equipment associated with the first working mode; the first feedback information is information indicating that the first electronic equipment forbids using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes.
In a third aspect, an embodiment of the present invention provides a camera module device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the camera module control method according to the first aspect.
In a fourth aspect, an embodiment of the present invention 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 camera module control method according to the first aspect are implemented.
In the embodiment of the present invention, after the working mode of the target camera module is the first working mode and the first control information sent by the first electronic device is received, it is possible to determine whether the first electronic device has the authority to use the target camera module by determining whether the first electronic device satisfies the first preset condition, that is, whether the first electronic device is a preset electronic device associated with the first working mode. Specifically, when the first electronic device meets a first preset condition, a target operation corresponding to the first control information may be executed; under the condition that the first electronic device does not meet the first preset condition, the first electronic device may not respond to the first control information, or send the first feedback information to the first electronic device, that is, prohibit the first electronic device from using the target camera module. And the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes. Therefore, the situation that any person or any electronic equipment is connected at will and uses the target camera module can be avoided, the target camera module can be used by the illegal user or the electronic equipment except the electronic equipment associated with the first working mode, data leakage in the camera module is avoided, and the safety of the shared camera module (such as a detachable camera module) is improved.
Drawings
Fig. 1 is a schematic flow chart of a camera module control method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a camera module according to an embodiment of the present invention;
fig. 3 is a second schematic structural diagram of a camera module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a camera module according to an embodiment of the present invention.
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.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. "plurality" means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. 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 terms "first" and "second," and the like, in the description and in the claims of the present application, are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first electronic device and the second electronic device, etc. are for distinguishing different electronic devices, and are not for describing a specific order of the electronic devices.
The camera module control method provided by the embodiment of the invention can be applied to interaction between a detachable camera module and one or more electronic devices, and realizes the process of sharing the camera module among the one or more electronic devices. For example, in the process of sharing the shooting function of the camera module or sharing the data (such as image information or video information) stored in the camera module among the one or more electronic devices.
For example, a process in which a detachable target camera module interacts with a first electronic device and a second electronic device to connect and use the target camera module with the first electronic device and the second electronic device is taken as an example to describe the camera module control method provided in the embodiment of the present invention.
It can be understood that the detachable camera module breaks the restriction of the original electronic equipment adapting and matching with the fixed camera module, and reduces the maintenance cost of the equipment. And the detachable camera module matched with one electronic device is detached and inserted into another electronic device, so that capacity support is provided for sharing the camera module. For example, in the embodiment of the present invention, the target camera module is a camera module adapted and matched with the first electronic device or the second electronic device.
Further, detachable camera module can split (separation promptly) with electronic equipment's fuselage, for example, target camera module can split with first electronic equipment or second electronic equipment's fuselage. The detachable camera module is provided with an energy supply unit (such as a battery) and can be independently connected with the body of the electronic equipment in a data mode. For example, the Wireless connection mode may include a Wireless Fidelity (Wi-Fi) connection mode, a bluetooth connection mode, and the like, and the physical connection mode may include a plug connection mode, a magnetic connection mode, or a data line connection mode. In addition, the detachable camera module (such as a target camera module) can have functions of storage, communication, processing and the like, so as to be connected with the electronic device and interact data.
It should be noted that, when the detachable target camera module is connected to the first electronic device or the second electronic device in a plug-in connection manner (that is, the target camera module is inserted into the first electronic device or the second electronic device), slots are provided in both the first electronic device and the second electronic device to support the target camera module to be inserted and connected. At this time, the first electronic device and the second electronic device have slots with the same specification.
Under the condition that the detachable target camera module is connected with the first electronic equipment or the second electronic equipment in a magnetic suction connection mode, magnetic suction contacts are arranged in the first electronic equipment and the second electronic equipment to support connection of the target camera module, namely. At this time, the magnetic attraction contact points with the same specification are arranged in the first electronic device and the second electronic device. In addition, the target camera module is also provided with a magnetic attraction contact to support the magnetic attraction contact of the target camera module to be detachably connected with the magnetic attraction contact in the first electronic equipment or the second electronic equipment.
Optionally, in an embodiment of the present invention, one electronic device (e.g., the first electronic device or the second electronic device) may include one or more detachable camera modules (e.g., a target camera module). Wherein, including one or more camera unit in the detachable camera module, a camera unit can include a camera lens.
In the camera module control method provided by the embodiment of the present invention, after the working mode of the target camera module is the first working mode and the first control information sent by the first electronic device is received, whether the first electronic device meets the first preset condition, that is, whether the first electronic device is a preset electronic device associated with the first working mode, is determined, so as to determine whether the first electronic device has the right to use the target camera module. Specifically, when the first electronic device meets a first preset condition, a target operation corresponding to the first control information may be executed; under the condition that the first electronic device does not meet the first preset condition, the first electronic device may not respond to the first control information, or send the first feedback information to the first electronic device, that is, prohibit the first electronic device from using the target camera module. And the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes. Therefore, the situation that any person or any electronic equipment is connected at will and uses the target camera module can be avoided, the target camera module can be used by the illegal user or the electronic equipment except the electronic equipment associated with the first working mode, data leakage in the camera module is avoided, and the safety of the shared camera module (such as a detachable camera module) is improved.
It should be noted that the electronic device in the embodiment of the present invention may be a mobile electronic device, and may also be a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
In the camera module control method provided by the embodiment of the present invention, the execution main body may be the camera module, or a Central Processing Unit (CPU) of the camera module, or a control module in the camera module for executing the camera module control method. In the embodiment of the present invention, a method for controlling a camera module by a camera module is taken as an example to describe the camera module control method provided in the embodiment of the present invention.
In the following embodiments, a method for executing a camera module by a target camera module is taken as an example to describe the camera module control method provided by the embodiments of the present invention.
The following describes in detail a camera module control method according to an embodiment of the present invention with reference to a flowchart of the camera module control method shown in fig. 1. Although the logic sequence of the camera module control method provided by the embodiment of the invention is shown in the method flow chart, in some cases, the steps shown or described may be executed in a different sequence from the sequence here. For example, the camera module control method illustrated in fig. 1 may include S101 to S103:
s101, under the condition that the working mode of the target camera module is the first working mode, the target camera module receives first control information sent by first electronic equipment.
Accordingly, the first electronic device may transmit the first control message to the target camera module before the target camera module performs S101.
And S102, under the condition that the first electronic equipment meets a first preset condition, the target camera module executes target operation corresponding to the first control information.
Wherein, the first preset condition comprises: the first electronic device is a preset electronic device associated with the first working mode.
Illustratively, the target operation is that the target camera module performs a photographing function or a video recording function, and at this time, the target camera module can acquire images in real time. Or, the target operation is that the target camera module accesses data stored in the target camera module, such as data of a certain picture. Of course, the target operation may also be an operation performed by any other target camera module, which is not limited in this embodiment of the present invention.
And S103, under the condition that the first electronic equipment does not meet the first preset condition, the target camera module does not respond to the first control information, or first feedback information is sent to the first electronic equipment.
The first feedback information is information indicating that the first electronic equipment prohibits using the target camera module.
Accordingly, after "sending the first feedback information to the first electronic device" in step 103, the first electronic device may receive the first feedback information sent by the target camera module.
It can be understood that after the first electronic device sends the first control information, if any message sent by the target camera module is not received (for example, within a certain time) or first feedback information sent by the target camera module is received, it can be known that the target camera module prohibits the first electronic device from using the target camera module.
Optionally, after the first electronic device learns that the target camera module prohibits the first electronic device from using the target camera module, a prompt message may be output to prompt a user of the first electronic device to prohibit the first electronic device from using the target camera module, that is, the target camera module is unavailable.
Specifically, the target camera module comprises a plurality of working modes, each working mode is associated with at least one electronic device, and the first working mode is one of the working modes.
Optionally, the camera module control method according to the embodiment of the present invention may determine, according to the user requirement of the user, parameters such as the usage right of the target camera module, the environment (such as an office or a home) where the target camera module is located, and device parameters (such as the number of lenses or pixels of the lenses) of the target camera module, as electronic devices pre-associated with different working modes of the target camera module. For example, the electronic devices associated in advance with the operation mode with the higher usage authority of the target camera module are more, and the electronic devices associated in advance with the operation mode with the lower usage authority of the target camera module are fewer. When the working mode indicates that the target camera module is located in the office of the user, the electronic equipment pre-associated with the target camera module is the electronic equipment located in the office; when the operation mode indicates that the target camera module is located at the home of the user, the electronic device associated with the target camera module in advance is an electronic device located at the home.
In the camera module control method provided by the embodiment of the present invention, after the working mode of the target camera module is the first working mode and the first control information sent by the first electronic device is received, whether the first electronic device meets the first preset condition, that is, whether the first electronic device is a preset electronic device associated with the first working mode, is determined, so as to determine whether the first electronic device has the right to use the target camera module. Specifically, when the first electronic device meets a first preset condition, a target operation corresponding to the first control information may be executed; under the condition that the first electronic device does not meet the first preset condition, the first electronic device may not respond to the first control information, or send the first feedback information to the first electronic device, that is, prohibit the first electronic device from using the target camera module. And the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes. Therefore, the situation that any person or any electronic equipment is connected at will and uses the target camera module can be avoided, the target camera module can be used by the illegal user or the electronic equipment except the electronic equipment associated with the first working mode, data leakage in the camera module is avoided, and the safety of the shared camera module (such as a detachable camera module) is improved.
Optionally, the method for controlling a camera module according to the embodiment of the present invention may further include, before the step S101, steps S104 to S107:
and S104, the second electronic equipment sends second control information to the target camera module, and the second control information is used for indicating the working mode of the target camera module to be switched from the second working mode to the first working mode.
The second electronic equipment is the same as or different from the first electronic equipment. That is, any electronic device can initiate the second control information for triggering the target camera module to switch the working mode.
And S105, the target camera module receives second control information sent by the second electronic equipment.
And S106, under the condition that the electronic equipment corresponding to the second working mode is different from the first electronic equipment, the target camera module acquires authentication image information, wherein the authentication image information has biological characteristic information.
The electronic equipment pre-associated with the first working mode is completely or partially different from the electronic equipment pre-associated with the second working mode, and the second working mode is one working mode different from the first working mode in a plurality of working modes of the target camera module.
It is understood that the authentication image information may include biometric information such as face image information or fingerprint image information.
And S107, under the condition that the biological characteristic information accords with the preset biological characteristic information, the target camera module switches the working mode of the target camera module from the second working mode to the first working mode.
For example, the preset biometric information may be face feature information, fingerprint feature information, iris feature information, or the like.
The biometric information in the authentication image information conforms to the preset biometric information, and the similarity of the two pieces of biometric information is greater than or equal to a certain threshold (for example, 70%), which indicates that the biometric information in the authentication image information and the preset biometric information are the biometric information of the same person.
Optionally, in a scenario where the target camera module controls the target camera module to obtain the authentication image information, if the target camera module is connected to the second electronic device (for example, detachably connected), the biometric information in the authentication image information is biometric information of a user using the second electronic device. At this time, the biometric information in the authentication image information acquired by the target camera module conforms to the preset biometric information, which indicates that the user currently using the second electronic device is a preset user with the right to use the target camera module.
If the target camera module is connected with other electronic equipment except the second electronic equipment (for example, detachably connected), the biological characteristic information in the authentication image information is the biological characteristic information of the user using the other electronic equipment. At this time, the biometric information in the authentication image information acquired by the target camera module conforms to the preset biometric information, which indicates that the user currently using the other electronic device is a preset user with the authority to use the target camera module.
In the embodiment of the invention, after the second electronic device initiates the second control information, the target camera module can acquire the biological characteristic information of the user by acquiring the authentication image information in real time, so that the biological characteristic information is compared with the preset biological characteristic information, and whether the second electronic device has the authority to use the target camera module is further judged. Therefore, the safety of the shared camera module is further improved.
Optionally, the second control information carries the first verification information. The camera module control method provided in the embodiment of the present invention, after S105, may further include S108:
and S108, under the condition that the first verification information is matched with the preset verification information, the target camera module switches the working mode of the target camera module from the second working mode to the first working mode.
The preset verification information is the verification information stored in the target camera module in advance.
Specifically, the second verification information is preset verification information in the target camera module, and the second preset verification information is the same as or different from the preset biological characteristic information.
For example, the second verification information may be biometric information such as fingerprint feature information and face feature information, and may also be character information or graphic information, which is not specifically limited in this embodiment of the present invention.
Therefore, after the second electronic device initiates the second control information, the target camera module can judge whether the second electronic device has the authority to trigger the target camera module to switch the working mode by comparing the first verification information in the second electronic device with the preset verification information, and therefore, the safety of sharing the camera module is further improved.
Optionally, in this embodiment of the present invention, the first operating mode and the second operating mode are respectively pre-associated with at least one electronic device, and the electronic device pre-associated with the first operating mode is not identical to the electronic device pre-associated with the second operating mode.
Illustratively, in example 1, the first operating mode is pre-associated with the at least one third electronic device and the second operating mode is pre-associated with the at least one fourth electronic device.
In example 2, the electronic device pre-associated with the first operating mode is any electronic device, and the second operating mode is pre-associated with at least one fifth electronic device. At this time, the first working mode may be a sharing mode of the target camera module, that is, the target camera module may be shared by any electronic device. The second working mode may be a private mode of the target camera module, and the number of the at least one fifth electronic device may be one, that is, the target camera module may be used by the pre-associated fifth electronic device (e.g., the electronic device that triggers the setting of the first working mode or the only fixedly-adapted electronic device).
In example 3, the first operation mode is pre-associated with at least one sixth electronic device, and the electronic device pre-associated with the second operation mode is any electronic device. At this time, the first working mode may be a private mode of the target camera module, and the second working mode may be a sharing mode of the target camera module.
Optionally, the camera module control method provided in the embodiment of the present invention may pre-associate, for a working mode (i.e., a sharing mode) in which the pre-associated electronic device is any electronic device, a usage right with a lower permission level of the target camera module, such as a right for connecting the target camera module and a right for previewing an image acquired by the target camera module. Therefore, under the condition that the target camera module is in the sharing mode, although any electronic equipment can be connected with and use the target camera module, the use permission of the target camera module is low, and the safety of the shared camera module can be improved to a certain extent.
In addition, the camera module control method provided in the embodiment of the present invention may pre-associate, for a working mode (i.e., a private mode) associated with a specific one or more electronic devices in advance, a usage right with a higher permission level of the target camera module, such as a permission to shoot or record through the target camera module. Therefore, under the condition that the target camera module is in the private mode, the user can be ensured to acquire the use permission with higher permission level of the target camera module, more functions of the target camera module are acquired, and the improvement of the use experience of the user for using the target camera module is facilitated.
Optionally, the control information carries second verification information; the first preset condition further includes: the second verification information conforms to third verification information preset in the target camera module.
The third verification information is preset verification information in the target camera module, and the third verification information is the same as or different from the preset biological characteristic information.
It is to be understood that the second authentication information may be authentication information in the first electronic device.
For example, the third verification information may be biometric information such as fingerprint feature information and face feature information, and may also be character information or graphic information.
Therefore, after the first electronic device initiates the first control information, the target camera module can judge whether the first electronic device has the authority to use the target camera module by comparing the second verification information in the first electronic device with the third verification information preset in the target camera module, and therefore the safety of sharing the camera module is further improved.
Fig. 2 is a schematic structural diagram of a camera module according to an embodiment of the present invention. The camera module 20 shown in fig. 2 is a target camera module, and the camera module 20 includes: the receiving module 21 is configured to receive first control information sent by a first electronic device when a working mode of the target camera module is a first working mode; an executing module 22, configured to execute a target operation corresponding to the first control information received by the receiving module 21 if the first electronic device satisfies a first preset condition; under the condition that the first electronic equipment does not meet the first preset condition, the first electronic equipment does not respond to the first control information, or first feedback information is sent to the first electronic equipment; the first preset condition includes: the first electronic equipment is preset electronic equipment associated with the first working mode; the first feedback information is information indicating that the first electronic equipment forbids using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes.
Optionally, with reference to fig. 2, as shown in fig. 3, the receiving module 21 is further configured to receive second control information sent by a second electronic device before receiving first control information sent by a first electronic device when the working mode of the target camera module is the first working mode, where the second control information is used to instruct the working mode of the target camera module to switch from the second working mode to the first working mode; the camera module 20 further includes: the obtaining module 23 is configured to obtain authentication image information under the condition that the electronic device corresponding to the second working mode obtained by the receiving module 21 is different from the first electronic device, where the authentication image information has biometric information; and a switching module 24, configured to switch the working mode of the target camera module from the second working mode to the first working mode when the biometric information acquired by the acquiring module 23 matches preset biometric information.
Optionally, the second control information carries the first verification information; the switching module 24 is further configured to switch the working mode of the target camera module from the second working mode to the first working mode when the first verification information matches the preset verification information after the receiving module 21 receives the second control information sent by the second electronic device; the preset verification information is the verification information stored in the target camera module in advance.
Optionally, the first operating mode and the second operating mode are respectively pre-associated with at least one electronic device, and the electronic device pre-associated with the first operating mode is not identical to the electronic device pre-associated with the second operating mode.
Optionally, the executing module 22 is further configured to, after the receiving module 21 receives the first control information sent by the first electronic device when the working mode of the target camera module is the first working mode, execute the target operation when the first electronic device is the target electronic device; wherein the target electronic device is pre-associated with each of the plurality of operating modes.
The camera module 20 provided in the embodiment of the present invention can implement each process implemented by the camera module in the above method embodiments, and is not described here again to avoid repetition.
Fig. 4 is a schematic diagram of a possible hardware structure of a camera module according to an embodiment of the present invention. Specifically, the camera module 40 (i.e., the target camera module) shown in fig. 4 includes a processor 1101, a memory 1102, a communication interface 1103, a communication bus 1104, and a processor 1105.
The communication interface 1103 is configured to receive first control information sent by the first electronic device when the working mode of the target camera module is the first working mode; a processor 1101 configured to execute a target operation corresponding to the first control information received by the communication interface 1103 if the first electronic device satisfies a first preset condition; under the condition that the first electronic equipment does not meet the first preset condition, the first electronic equipment does not respond to the first control information, or first feedback information is sent to the first electronic equipment; the first preset condition includes: the first electronic equipment is preset electronic equipment associated with the first working mode; the first feedback information is information indicating that the first electronic equipment forbids using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes.
According to the camera module provided by the embodiment of the invention, after the working mode of the target camera module is the first working mode and the first control information sent by the first electronic device is received, whether the first electronic device meets the first preset condition or not, namely whether the first electronic device is the preset electronic device associated with the first working mode or not, can be judged, and whether the first electronic device has the authority to use the target camera module or not can be judged. Specifically, when the first electronic device meets a first preset condition, a target operation corresponding to the first control information may be executed; under the condition that the first electronic device does not meet the first preset condition, the first electronic device may not respond to the first control information, or send the first feedback information to the first electronic device, that is, prohibit the first electronic device from using the target camera module. And the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one working mode in the plurality of working modes. Therefore, the situation that any person or any electronic equipment is connected at will and uses the target camera module can be avoided, the target camera module can be used by the illegal user or the electronic equipment except the electronic equipment associated with the first working mode, data leakage in the camera module is avoided, and the safety of the shared camera module (such as a detachable camera module) is improved.
Specifically, the processing module may be one or more processors such as the processor 1101 and the processor 1105 shown in fig. 4. The storage module may be the memory 1102 shown in fig. 4. Forwarding module 403 may be implemented by communication interface 1103. The processor 1101 is a control center of the camera module 40, and may be a single processor or a collective term for multiple processing elements. For example, the processor 1101 may be a CPU, may be a specific ASIC, or may be one or more integrated circuits configured to implement embodiments of the present invention, such as: one or more DSPs, or one or more FPGAs.
The processor 1101 may perform various functions of the device by running or executing software programs stored in the memory 1102, and calling data stored in the memory 1102, among other things. For example, the processor 1101 may be used to determine a target path.
In particular implementations, processor 1101 may include one or more CPUs, such as CPU0 and CPU1 shown in fig. 4, for example, as an example.
In a specific implementation, as an embodiment, the camera module may include a plurality of processors, such as the processor 1101 and the processor 1105 shown in fig. 4. Each of these processors may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Memory 1102 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 1102, which may be separate, is coupled to the processor 1101 by a communication bus 1104. The memory 1102 may also be integrated with the processor 1101. The memory 1102 is used for storing software programs for implementing the schemes provided by the embodiments of the present invention, and is controlled by the processor 1101 for execution.
The communication interface 1103 may include two communication interfaces, a sending interface for sending data to an external device and a receiving interface for receiving data from the external device, that is, the camera module may respectively implement receiving of data (such as data packets and protocol packets) and sending of data through two different communication interfaces.
The communication bus 1104 may be a PCI bus, an EISA bus, or the like. The communication bus 1104 may be divided into an address bus, a data bus, a control bus, and the like, which is not limited in the embodiment of the present invention.
The configuration of the camera module shown in fig. 4 does not constitute a limitation of the camera module, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The detailed description of each module in the camera module 40 and the technical effects of each module after executing the related method steps in the above embodiments provided by the embodiments of the present invention may refer to the related description in the embodiments of the method of the present invention, and are not repeated herein.
Optionally, an embodiment of the present invention further provides a camera module, which includes a processor 1101, a memory 1102, and a computer program stored in the memory 1102 and capable of running on the processor 1101, where the computer program is executed by the processor 1101 to implement each process of the foregoing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated 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.
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 application 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 a device (such as a mobile phone, a computer, a server, an air conditioner, or a network device or a camera module) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (8)

1. A camera module control method is applied to a target camera module and is characterized by comprising the following steps:
receiving first control information sent by first electronic equipment under the condition that the working mode of the target camera module is a first working mode;
executing target operation corresponding to the first control information under the condition that the first electronic equipment meets a first preset condition;
under the condition that the first electronic equipment does not meet the first preset condition, the first electronic equipment does not respond to the first control information, or first feedback information is sent to the first electronic equipment;
the first preset condition includes: the first electronic equipment is preset electronic equipment associated with the first working mode;
the first feedback information is information indicating that the first electronic equipment prohibits using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one of the working modes;
before receiving first control information sent by first electronic equipment, the method further includes, when the working mode of the target camera module is a first working mode:
receiving second control information sent by second electronic equipment, wherein the second control information is used for indicating that the working mode of the target camera module is switched from a second working mode to the first working mode;
acquiring authentication image information under the condition that the electronic equipment corresponding to the second working mode is different from the first electronic equipment, wherein the authentication image information has biological characteristic information;
and under the condition that the biological characteristic information accords with preset biological characteristic information, switching the working mode of the target camera module from the second working mode to the first working mode.
2. The method of claim 1, wherein the second control information carries first authentication information;
after receiving the second control information sent by the second electronic device, the method further includes:
under the condition that the first verification information is matched with preset verification information, switching the working mode of the target camera module from the second working mode to the first working mode;
the preset verification information is verification information pre-stored in the target camera module.
3. The method according to claim 1 or 2,
the first working mode and the second working mode are respectively pre-associated with at least one electronic device, and the electronic device pre-associated with the first working mode is not identical to the electronic device pre-associated with the second working mode.
4. The method according to claim 1, wherein after receiving the first control information sent by the first electronic device when the operation mode of the target camera module is the first operation mode, the method further comprises:
executing the target operation under the condition that the first electronic equipment is target electronic equipment;
wherein the target electronic device is pre-associated with each of the plurality of operating modes.
5. The utility model provides a camera module, camera module is target camera module, its characterized in that, camera module includes:
the receiving module is used for receiving first control information sent by first electronic equipment under the condition that the working mode of the target camera module is a first working mode;
the execution module is used for executing target operation corresponding to the first control information received by the receiving module under the condition that the first electronic equipment meets a first preset condition; under the condition that the first electronic equipment does not meet the first preset condition, the first electronic equipment does not respond to the first control information, or first feedback information is sent to the first electronic equipment;
the first preset condition includes: the first electronic equipment is preset electronic equipment associated with the first working mode;
the first feedback information is information indicating that the first electronic equipment prohibits using the target camera module; the target camera module comprises a plurality of working modes, each working mode is at least associated with one electronic device, and the first working mode is one of the working modes;
the receiving module is further configured to receive second control information sent by a second electronic device before receiving the first control information sent by the first electronic device when the working mode of the target camera module is the first working mode, where the second control information is used to instruct the working mode of the target camera module to be switched from the second working mode to the first working mode;
the camera module further comprises:
the acquisition module is used for acquiring authentication image information under the condition that the electronic equipment corresponding to the second working mode obtained by the receiving module is different from the first electronic equipment, wherein the authentication image information has biological characteristic information;
and the switching module is used for switching the working mode of the target camera module from the second working mode to the first working mode under the condition that the biological characteristic information acquired by the acquisition module conforms to preset biological characteristic information.
6. The camera module according to claim 5, wherein the second control information carries first verification information;
the switching module is further configured to switch the working mode of the target camera module from the second working mode to the first working mode when the first verification information matches preset verification information after the receiving module receives the second control information sent by the second electronic device;
the preset verification information is verification information pre-stored in the target camera module.
7. The camera module of claim 5 or 6,
the first working mode and the second working mode are respectively pre-associated with at least one electronic device, and the electronic device pre-associated with the first working mode is not identical to the electronic device pre-associated with the second working mode.
8. The camera module of claim 5,
the executing module is further configured to, after the receiving module receives the first control information sent by the first electronic device when the working mode of the target camera module is the first working mode, execute the target operation when the first electronic device is a target electronic device;
wherein the target electronic device is pre-associated with each of the plurality of operating modes.
CN202010371205.6A 2020-05-06 2020-05-06 Camera module control method and camera module Active CN111510634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010371205.6A CN111510634B (en) 2020-05-06 2020-05-06 Camera module control method and camera module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010371205.6A CN111510634B (en) 2020-05-06 2020-05-06 Camera module control method and camera module

Publications (2)

Publication Number Publication Date
CN111510634A CN111510634A (en) 2020-08-07
CN111510634B true CN111510634B (en) 2021-07-23

Family

ID=71876687

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010371205.6A Active CN111510634B (en) 2020-05-06 2020-05-06 Camera module control method and camera module

Country Status (1)

Country Link
CN (1) CN111510634B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318199A (en) * 2004-04-28 2005-11-10 Kyocera Corp Portable terminal device and camera unit
JP2016006952A (en) * 2014-05-27 2016-01-14 パナソニックIpマネジメント株式会社 Remote imaging method and remote imaging control device
CN105718036A (en) * 2014-12-04 2016-06-29 中芯国际集成电路制造(上海)有限公司 Information interaction methods and systems of wearable device
CN107948592A (en) * 2017-11-22 2018-04-20 珠海格力电器股份有限公司 A kind of method, apparatus and intelligent terminal of shared camera
JP2019507996A (en) * 2015-12-14 2019-03-22 レッド.コム,エルエルシー Modular digital camera and mobile phone
CN110086634A (en) * 2019-05-16 2019-08-02 济南浪潮高新科技投资发展有限公司 A kind of system and method for intelligent video camera head safety certification and access
CN110798622A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Shared shooting method and electronic equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10532268B2 (en) * 2016-05-02 2020-01-14 Bao Tran Smart device
JP7086571B2 (en) * 2017-11-16 2022-06-20 キヤノン株式会社 Image pickup device, lens device and control method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005318199A (en) * 2004-04-28 2005-11-10 Kyocera Corp Portable terminal device and camera unit
JP2016006952A (en) * 2014-05-27 2016-01-14 パナソニックIpマネジメント株式会社 Remote imaging method and remote imaging control device
CN105718036A (en) * 2014-12-04 2016-06-29 中芯国际集成电路制造(上海)有限公司 Information interaction methods and systems of wearable device
JP2019507996A (en) * 2015-12-14 2019-03-22 レッド.コム,エルエルシー Modular digital camera and mobile phone
CN107948592A (en) * 2017-11-22 2018-04-20 珠海格力电器股份有限公司 A kind of method, apparatus and intelligent terminal of shared camera
CN110086634A (en) * 2019-05-16 2019-08-02 济南浪潮高新科技投资发展有限公司 A kind of system and method for intelligent video camera head safety certification and access
CN110798622A (en) * 2019-11-29 2020-02-14 维沃移动通信有限公司 Shared shooting method and electronic equipment

Also Published As

Publication number Publication date
CN111510634A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
CN105224838B (en) A kind of user authority control method and system based on recognition of face
JP5478777B2 (en) Optimize presence information refresh for wireless devices
KR101713305B1 (en) Method, apparatus, system, program and recording medium for smart device to access router
AU2018303085B2 (en) Electronic device and method for recognizing real face and storage medium
CN105635084A (en) Apparatus and method for authenticating terminal
US11109222B2 (en) Information processing method and device, computer-readable storage medium and electronic device
US11321280B2 (en) Multimedia file sharing method and terminal device
EP3163968B1 (en) Trunking communication service processing method, core network device, ue and storage medium
US20220322088A1 (en) Network roaming method, terminal device, and computer readable storage medium
EP3860300A1 (en) Call method, device and system
CN110291801B (en) Time domain configuration method, device, system and storage medium
CN105722065A (en) Communication method, no-card wearable device and mobile terminal
WO2020248120A1 (en) Cell reselection method and device
CN111510634B (en) Camera module control method and camera module
CN112256424A (en) Virtual resource processing method, device and system, electronic equipment and storage medium
US10205686B2 (en) Communication terminal, communication system, and output method
CN103188084A (en) Method, system and broadcasting server for broadcasting user pictures
CN112464208B (en) File access method, mobile terminal and computer readable storage medium
CN111314976B (en) Network residence mode determining method and device, terminal and storage medium
US20230292365A1 (en) Method for random access communication device, and storage medium
WO2019199016A1 (en) Method for controlling video sharing through rich communication suite service and electronic device therefor
CN108712280B (en) Network function management method and device, storage medium and intelligent terminal
CN114501490A (en) Service transfer method, terminal and network side equipment
CN104853321A (en) Speaking right processing method and device in cluster communication
CN114585054B (en) WIFI connection control method, device 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