CN111601034A - Camera module control method and electronic equipment - Google Patents

Camera module control method and electronic equipment Download PDF

Info

Publication number
CN111601034A
CN111601034A CN202010371222.XA CN202010371222A CN111601034A CN 111601034 A CN111601034 A CN 111601034A CN 202010371222 A CN202010371222 A CN 202010371222A CN 111601034 A CN111601034 A CN 111601034A
Authority
CN
China
Prior art keywords
target
camera module
electronic device
connection mode
sub
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.)
Granted
Application number
CN202010371222.XA
Other languages
Chinese (zh)
Other versions
CN111601034B (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 CN202010371222.XA priority Critical patent/CN111601034B/en
Publication of CN111601034A publication Critical patent/CN111601034A/en
Application granted granted Critical
Publication of CN111601034B publication Critical patent/CN111601034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control 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/62Control of parameters via user interfaces
    • 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/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

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

Abstract

The embodiment of the invention provides a camera module control method and electronic equipment, which are applied to the field of communication and aim to solve the problem of low security of sharing a camera among different electronic equipment. The method is applied to first electronic equipment and comprises the following steps: under the condition that a target camera module in first electronic equipment and second electronic equipment are connected in a first connection mode, determining a first use permission of the target camera module according to target parameters; controlling the target camera module to work according to the first use authority; the target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. The method is particularly applied to a scene that one electronic device is connected with and uses a camera module of another electronic device.

Description

Camera module control method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a camera module control method and electronic equipment.
Background
With the development of communication technology, the intelligent degree of electronic devices such as mobile phones and tablet computers is continuously improved to meet various requirements of users. For example, there is an increasing demand from users to share cameras between different electronic devices.
Specifically, one electronic device can be connected with the cameras of other electronic devices in a wireless connection manner to control the cameras of the other electronic devices, so that the cameras can be shared among different electronic devices. At this time, the camera in one electronic device may be controlled by others to be connected and used to other electronic devices without limitation, that is, others may illegally acquire data of the camera or a photographed image. Therefore, safety risks are caused to the camera, and further safety risks are caused to the electronic equipment. Thus, the problem of low security of sharing the camera among different electronic devices is caused.
Disclosure of Invention
The embodiment of the invention provides a camera module control method and electronic equipment, and aims to solve the problem of low security of sharing a camera among different electronic equipment.
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 first electronic device, and the method includes: under the condition that a target camera module in first electronic equipment and second electronic equipment are connected in a first connection mode, determining a first use permission of the target camera module according to target parameters; controlling the target camera module to work according to the first use authority; the target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device is a first electronic device, and the electronic device includes: the determining module is used for determining a first use permission of a target camera module according to a target parameter under the condition that the first electronic device is connected with the target camera module in the second electronic device in a first connection mode; the control module is used for controlling the target camera module to work according to the first use permission determined by the determination module; the target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes 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, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the camera module control method according to the first aspect.
In the embodiment of the present invention, under the condition that the first electronic device and the target camera module in the second electronic device are connected in the first connection manner, the first usage right of the target camera module may be determined according to the target parameter, and the target camera module may be controlled to operate according to the first usage right. The target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. Specifically, the first usage right is a right corresponding to at least one of the first connection method and the first identification information, and is not necessarily all rights of the camera unit in the target camera module. For example, the first usage right corresponding to the target camera module by the second electronic device may be a lower-level usage right, for example, the first usage right can only preview a picture collected by the camera unit in the target camera module, but cannot shoot or record the picture collected by the camera unit in the target camera module. Therefore, the camera unit in the camera module (such as the target camera module) of the electronic equipment can be prevented from being connected and used by anyone without limit by other electronic equipment to a certain extent by corresponding the target camera module in the second electronic equipment to a specific first use permission, and the safety of sharing the camera unit among different electronic equipment can be further improved.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a camera module control method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a possible electronic device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device 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 a correspondence describing a corresponding object, and means that there may be three relationships, for example, 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 invention 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 are used for distinguishing different electronic devices, and are not used for describing a specific sequence of the electronic devices.
According to the camera module control method provided by the embodiment of the invention, under the condition that the first electronic device is connected with the target camera module in the second electronic device in the first connection mode, the first use authority of the target camera module can be determined according to the target parameter, and the target camera module is controlled to work according to the first use authority. The target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. Specifically, the first usage right is a right corresponding to at least one of the first connection method and the first identification information, and is not necessarily all rights of the camera unit in the target camera module. For example, the first usage right corresponding to the target camera module by the second electronic device may be a lower-level usage right, for example, the first usage right can only preview a picture collected by the camera unit in the target camera module, but cannot shoot or record the picture collected by the camera unit in the target camera module. Therefore, the camera unit in the camera module (such as the target camera module) of the electronic equipment can be prevented from being connected and used by anyone without limit by other electronic equipment to a certain extent by corresponding the target camera module in the second electronic equipment to a specific first use permission, and the safety of sharing the camera unit among different electronic equipment can be further improved.
The electronic device in the embodiment of the invention can be a mobile electronic device or 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.
It should be noted that, in the camera module control method provided in the embodiment of the present invention, the execution main body may be an electronic device (for example, a first electronic device described below), or a Central Processing Unit (CPU) of the electronic device, or a control module in the electronic device for executing the camera module control method. The embodiment of the invention takes an electronic device as an example to execute a camera module control method, and the camera module control method provided by the embodiment of the invention is explained.
The electronic device (such as the first electronic device described below) in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
Next, a software environment applied to the camera module control method provided by the embodiment of the present invention is described by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application. For example, applications such as a system setup application, a system chat application, and a system camera application. And the third-party setting application, the third-party camera application, the third-party chatting application and other application programs.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the camera module control method provided in the embodiment of the present invention based on the above system architecture of the android operating system shown in fig. 1, so that the camera module control method may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can realize the camera module control method provided by the embodiment of the invention by running the software program in the android operating system.
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. 2. 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. 2 may include S201 and S202:
s201, under the condition that the first electronic device is connected with a target camera module in the second electronic device in a first connection mode, the first electronic device determines a first use permission of the target camera module according to target parameters.
It should be noted that, in the embodiment of the present invention, the second electronic device may include one or more camera modules, where the one or more camera modules include the target camera module.
Optionally, in the embodiment of the present invention, one camera module (e.g., a target camera module) includes one or more camera units (i.e., cameras). For example, in the following embodiments, the target camera module in the second electronic device includes a plurality of cameras as an example.
Optionally, in the embodiment of the present invention, when one camera module includes a plurality of camera units, the camera module may be a module integrated by the plurality of camera units; or the camera module comprises a plurality of modules, and each module is composed of part of the camera units in the plurality of camera units.
Optionally, one or more camera modules in the second electronic device may be detachable camera modules.
It can be understood that the detachable camera module breaks the restriction of the original camera module which is matched and fixed with the electronic equipment, and reduces the maintenance cost of the electronic equipment. And the detachable camera module matched with one electronic device is detached and inserted into another electronic device, so that different electronic devices can share the same camera module. Illustratively, in the embodiment of the present invention, the target camera module is a camera module adapted and matched with 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 second electronic equipment's fuselage. The detachable camera module is an independent camera module which is provided with an energy supply unit (such as a battery) and can be in wireless data connection with the camera body in a wireless connection mode or a physical connection 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 data line connection mode, a magnetic attachment connection mode, or a slot insertion connection mode.
Furthermore, the detachable camera module (such as a target camera module) can also have functions of storage, communication, processing and the like.
In the following embodiments, a first electronic device is connected to a target camera module in a second electronic device as an example, and the camera module control method provided in the embodiments of the present invention is described. Similarly, for descriptions of other detachable camera modules in the second electronic device, reference may be made to the following description of the target camera module, which is not repeated in the embodiment of the present invention.
It is understood that an electronic device (e.g., the first electronic device or the second electronic device) may be connected to and use the target camera module. When the electronic equipment and the target camera module are detached (i.e., separated), the electronic equipment can be connected and used in a physical connection mode, i.e., any wireless connection mode or data line connection mode; under the condition that one electronic device and the target camera module are not detached, the electronic device can be connected in any wireless connection mode or any physical connection mode and use the target camera module.
Optionally, in the embodiment of the present invention, the target camera module includes M camera units, the first connection mode includes N sub-connection modes, the first identification information includes M sub-identification information, and M, N are positive integers.
It can be understood that different camera units in the M camera units are connected in the same or different manners, and in this case, N is a positive integer less than or equal to M.
For example, when the first electronic device is simultaneously connected to a plurality of camera units in the target camera module, the first electronic device may be respectively connected to the plurality of camera units according to the same connection manner, or respectively connected to each of the plurality of camera units according to different connection manners.
Optionally, in an embodiment of the present invention, the first connection manner includes at least one of a wireless connection manner, a data line connection manner, a magnetic attraction connection manner, and a plug connection manner.
When the first connection method includes a plurality of connection methods, each of the first connection methods is a connection method of a part of the camera units in the target camera module.
Specifically, under the condition that first connected mode includes magnetism and inhale connected mode, first electronic equipment and second electronic equipment all are provided with magnetism and inhale the contact, and the target camera module is connected or is separated with target electronic equipment through magnetism and inhale the contact. Wherein the target electronic device is one of the first electronic device and the second electronic device. At the moment, part or all of the camera units in the target camera module are connected with the target electronic equipment in a magnetic attraction connection mode.
In addition, under the condition that the first connection mode comprises a plug-in connection mode, the first electronic device and the second electronic device are both provided with slots, and the target camera module is connected with or separated from the target electronic device through the slots. Specifically, the second electronic device and the first electronic device are respectively provided with a slot for supporting the insertion of the target camera module. Namely, the first electronic device and the second electronic device have slots with the same specification to support the insertion of the target camera module. At the moment, part or all of the camera units in the target camera module are connected with the target electronic equipment in a plug-in connection mode.
Optionally, the slots for different camera modules (or different camera units) in the second electronic device are the same or different, which is not limited in the embodiment of the present invention.
It can be understood that, if the first electronic device does not have a slot for inserting the target camera module, the first electronic device may be connected to the target camera module in a wireless connection manner or a data line connection manner.
S202, the first electronic equipment controls the target camera module to work according to the first use authority.
It should be noted that after the first electronic device acquires the first usage right of the target camera module, the target camera module can be controlled to operate according to the first usage right, that is, the camera unit in the target camera module is controlled to operate.
It can be understood that the second electronic device may not limit the usage right of the camera unit in the target camera module for the local device, and may set the usage right corresponding to the camera unit in the target camera module for other electronic devices (such as the first electronic device) except the local device, so as to limit other users from connecting and using the camera unit in the target camera module of the second electronic device.
Optionally, in the embodiment of the present invention, a camera module (e.g., a target camera module) in the second electronic device may have at least one usage right of a right level.
Optionally, the second electronic device may preset the usage right corresponding to the camera module therein, so as to manage the usage right of the camera unit in each camera module. The usage right of the camera module (such as the target camera module) that the second electronic device can manage includes but is not limited to: connect (connect the camera module promptly), preview (preview the picture that the camera module gathered promptly), shoot (gather and shoot the picture promptly through the camera module promptly), record a video (gather and record the picture promptly through the camera module promptly), the adjustment parameter (adjust the parameter of the picture that the camera module gathered promptly, like exposure parameter etc.), the photo of obtaining oneself and shooing (the photo that the electronic equipment who connects the camera module promptly triggers the camera module and shoots at present), the photo of obtaining other people and shooing (the photo that the camera module that arbitrary electronic equipment triggered promptly shot), face identification (carry out face identification function promptly through the camera module), sweep code payment etc.. For example, the permission levels of these usage permissions increase in turn. In addition, the use authorities are the use authorities for other electronic equipment which is currently connected with the camera module of the second electronic equipment. Specifically, the use right of the target camera module refers to the use right of the camera unit in the target camera module.
Optionally, in the embodiment of the present invention, the higher usage right is downward compatible with the lower usage right, that is, the electronic device obtains the lower usage right when obtaining the higher usage right. For example, when the first electronic device acquires the "shooting" usage right with the higher authority level of the camera unit in the target camera module, two usage rights, namely "connection" and "preview", with the lower authority level of the target camera module are acquired.
Optionally, the first electronic device directly interacts with the target camera module to use the camera unit in the target camera module, or the first electronic device interacts with the second electronic device to use the camera unit in the target camera module.
For example, the usage rights corresponding to the camera module (e.g. each camera unit in the target camera module) in the second electronic device may include the following three levels of usage rights 1-3:
and using the authority 1, previewing, namely acquiring the authority of the target camera module preview picture.
For example, when the first usage right is usage right 1, the first electronic device may acquire and display a preview screen of the target camera module, where an image in the preview screen is an image captured by the target camera module.
And using the authority 2, shooting, recording and adjusting shooting parameters, namely acquiring the authority of a shooting function of the camera unit and adjusting the shooting parameters. For example, the shooting parameters may be any parameters such as shooting exposure parameters, which are not described herein again.
Illustratively, when the first usage right is usage right 2, the first electronic device displays a preview picture of the target camera module and supports adjustment of shooting parameters of the target camera module.
The method comprises the following steps of using authority 3, face recognition and code scanning payment, namely acquiring the use authority of the target camera module through acquiring a face image to realize face recognition, and acquiring the use authority of the target camera module through shooting images of two-dimensional codes and the like of merchants to realize code scanning payment.
Illustratively, the authority levels of the above-mentioned usage authority 1, usage authority 2, and usage authority 3 are sequentially increased. At this time, the usage right 1 is a right level 1 (i.e., a lower level right), the usage right 2 is a right level 2 (i.e., a middle level right), and the usage right 3 is a right level 3 (i.e., a higher level right).
Optionally, the information of the small-amount password-free payment authorization set by the second electronic device can be stored in the target camera module, and at this time, no matter which electronic device controls the camera unit in the target camera module to execute the use permission of code scanning payment, the service of the small-amount password-free payment authorization can be completed according to the information of the small-amount password-free payment authorization.
Further, optionally, the target camera module (e.g., the camera unit in the target camera module) may store the image or video shot in history. Specifically, in the embodiment of the present invention, the usage right (i.e., sub-right) of each camera unit includes but is not limited to the above example, for example, the usage right of one camera unit in the target camera module may further include a storage right, i.e., a right to store an image or a video in the camera unit.
Optionally, the first usage right includes at least two sub-rights; under the condition that the target parameter is a first connection mode, each sub-connection mode corresponds to at least one sub-authority (marked as an implementation mode 2); under the condition that the target parameter is the first identification information, each piece of sub-identification information corresponds to at least one sub-authority (marked as an implementation mode 1); under the condition that the target parameter is the first connection mode and the first identification information, each sub-connection mode corresponds to one preset authority table, and the preset authority table is a preset relation comparison table (marked as an implementation mode 3) between the sub-authority and the sub-identification information.
For convenience of description, in the following embodiments, a sub-right of one camera unit may be referred to as a usage right of the camera unit; the sub-identification information of one camera unit may be referred to as identification information of the camera, and the sub-connection mode of one camera unit may be referred to as a connection mode of the camera unit.
Optionally, the second electronic device may preset and store a corresponding relationship between each camera unit in the target camera module and the usage right, for example, sub-identification information of each camera unit in the target camera module and a corresponding sub-right in the first usage right, each sub-connection mode in the first connection mode and a corresponding sub-right in the first usage right, and the preset right table is a preset relationship comparison table between the sub-right and the sub-identification information. Namely, the embodiment of the invention provides an authority management mechanism of a camera unit, so as to manage the use authority when the camera unit is shared.
Optionally, the second electronic device and the target camera module may store first identification information of the target camera module, for example, sub-identification information used for distinguishing a camera unit in the target camera module from other camera units (for example, sub-identification information of the camera units 1 to 3 is identification information 1, identification information 2, and identification information 3, respectively). In this way, in the case where the first electronic device requests to connect to the camera unit in the target camera module, the first electronic device may interact with the second electronic device and/or the target camera module to connect to the camera unit in the target camera module.
For example, in implementation mode 1 of the embodiment of the present invention, each camera unit in the second electronic device corresponds to one usage right (i.e., one right), that is, the identification information of each camera unit corresponds to one usage right. For example, in a scenario in which the second electronic device includes three camera units 1 to 3, the identification information of each camera unit corresponds to the following usage rights (1) to (3):
(1) the camera unit 1 indicated by the identification information 1 corresponds to the usage right 1, i.e., a lower right having a right level of 1.
(2) The camera unit 2 indicated by the identification information 2 corresponds to the usage right 2, i.e., the middle-level right with the right level of 2.
(3) The camera unit 3 indicated by the identification information 3 corresponds to the usage right 3, i.e., a high-level right with a right level of 3.
It can be understood that the user can control the second electronic device to respectively correspond to the usage rights (i.e., the sub-rights) for each camera unit according to the information such as the function and the user requirement of each camera unit in the target camera module. For example, the user corresponds to the use permission with the lower permission level for using the camera unit with higher use frequency in the second electronic device, so as to avoid that the second electronic device cannot use the camera unit in time due to continuous connection and use of the camera unit by other electronic devices. For another example, the user corresponds to the use right with the lower right level for the front-facing camera unit in the second electronic device, and corresponds to the use right with the higher right level for the rear-facing camera unit, so that the user can share more use rights of the rear-facing camera unit while avoiding information leakage such as a face image of the user of the first electronic device. For another example, the user corresponds to the higher usage right of the authority level for the camera unit with better function (e.g., higher pixel) in the second electronic device, and corresponds to the lower usage right of the authority level for the camera unit with poorer function (e.g., lower pixel), so that the other devices can experience the camera module with better function in the first electronic device.
For example, in implementation 1, when the target camera module to which the first electronic device is connected is the camera module 3, the first usage right acquired by the first electronic device is a middle-level right with a right level of 2, that is, the usage right 2. At this time, the first electronic device may control the control target camera to capture an image.
Further, optionally, in implementation manner 1 above, at least one group may be preset in the second electronic device, all the camera module units in each group correspond to the same usage right (i.e., sub-right), and each camera unit in the second electronic device corresponds to one usage right. For example, in a scene that the target camera module includes three camera units, i.e., the camera units 1 to 3, the usage right corresponding to the camera units 1 to 3 may further include the following (4):
(4) the combination of the camera unit 1 and the camera unit 2 is connected by the same electronic equipment, and the camera unit 1 and the camera unit 2 both correspond to the use authority 3.
It can be understood that when other electronic devices are connected to the target camera module and the target camera module includes one camera unit, the other electronic devices acquire the usage right corresponding to the camera unit alone. When other electronic equipment is connected with the target camera module at the same time, and the target camera module comprises a plurality of camera units, if the plurality of camera units preset corresponding use authorities according to combinations, the other electronic equipment acquires that the use authorities of the plurality of camera units are the use authorities corresponding to the combinations of the plurality of camera units; if the plurality of camera modules do not preset corresponding use permission according to the combination, the use permission of the single camera unit obtained by the other electronic equipment is that: and the use permission with the highest permission level corresponding to a single camera unit in the plurality of camera units.
For example, in a case where the target camera module includes the camera unit 1 and the camera unit 2, since the combination of the camera unit 1 and the camera unit 2 corresponds to the usage right 3, the usage rights of the camera unit 1 and the camera unit 2 are both the usage right 3 corresponding to the combination, that is, the first usage right is the usage right 3.
Or, if the plurality of camera units in the target camera module are not all the camera units in any group, the use permission to each camera unit in the target camera module is the same use permission (namely, one sub-permission), and the camera module in the target camera module with the use permission corresponds to the use permission of the camera unit with the highest permission level.
For example, when the target camera module includes the camera unit 1 and the camera unit 3, since the camera unit 1 and the camera unit 3 do not set corresponding usage rights in advance as a combination, the usage rights of the camera unit 1 and the camera unit 3 are both the usage right 3 of the highest rights level, that is, the first usage right is the usage right 3.
Illustratively, in implementation mode 2 of the embodiment of the present invention, each connection mode of the camera module unit of the second electronic device corresponds to one usage right. For example, in a scenario where the connection mode of the target camera module includes a wireless connection mode, a data line connection mode, a magnetic attraction connection mode, and a slot insertion connection mode, the usage rights corresponding to different connection modes for one camera unit are as follows (a) to (c):
(a) the camera unit 1 adopting the wireless connection mode corresponds to the use authority 1, namely, the low-level authority with the authority level of 1.
(b) The camera unit 2 adopting the data line connection mode corresponds to the use permission 2, namely, the middle-level permission with the permission level of 2.
(c) The camera unit 3 adopting the plug-in connection mode corresponds to the use authority 3, namely, the high-level authority with the authority level of 3.
For example, when the first electronic device adopts one camera unit in the target camera module connected in the data line connection manner, the usage right (i.e., the corresponding sub-right in the first usage right) of the camera unit obtained by the first electronic device is a middle-level right with a right level of 2, that is, the usage right 2. At this time, the first electronic device may control the camera unit to capture an image.
Exemplarily, in implementation mode 3 of the embodiment of the present invention, each sub-connection mode corresponds to a preset authority table, and the preset authority table is a preset relationship comparison table between sub-authorities and sub-identification information. For example, the usage rights corresponding to different connection methods for one camera unit are as follows (d) to (f):
(d) the wireless connection mode corresponds to a preset authority table 1, and the preset authority table 1 comprises a use authority 1 and a use authority 2 corresponding to the identification information 1. I.e. the camera unit 1 corresponds to at least one of the usage rights 1 and 2.
(e) The data line connection mode corresponds to a preset authority table 2, and the preset authority table 2 comprises a use authority 2 and a use authority 3 corresponding to the identification information 2. I.e. the camera unit 2 corresponds to at least one of the usage rights 2 and 3.
(f) The plug-in connection mode corresponds to a preset authority table 3, and the preset authority table 3 comprises a use authority 1 and a use authority 3 corresponding to the identification information 3. I.e. the camera unit 3 corresponds to at least one of the usage rights 1 and 3.
For example, in the case that the target camera module includes the camera unit 1 and the camera unit 2, the first electronic device connects the camera unit 1 in a wireless connection manner, and connects the camera unit 2 in a data line connection manner. Specifically, the wireless connection mode is preset with a corresponding preset authority table 1, and the data line connection mode is preset with a corresponding preset authority table 2. At this time, the sub-right acquired by the first electronic device to the camera unit 1 includes at least one of a usage right 1 and a usage right 2, and the sub-right acquired by the camera unit 2 includes at least one of a usage right 2 and a usage right 3.
Optionally, the second electronic device may set whether an electronic device authentication mechanism is set for each connection mode. For example, when a first electronic device is connected to a camera unit in a target camera module in a second electronic device in a wireless connection manner or a data line connection manner, the second electronic device needs to verify the first electronic device successfully, and then the first electronic device can be successfully connected to the target camera module. In addition, when the first electronic equipment is connected with the camera unit in the target camera module in the second electronic equipment in a plug-in connection mode, the second electronic equipment does not need to verify the first electronic equipment, and the camera unit in the target camera module can be successfully connected with the first electronic equipment by inserting the first electronic equipment into the camera unit.
Optionally, in the embodiment of the present invention, when any electronic device (e.g., the first electronic device) other than the second electronic device is connected to the camera unit in any camera module (e.g., the target camera module) in the second electronic device, the second electronic device may receive the feedback information to know that the camera unit in the camera module is being connected by another device or is already connected to another electronic device. For example, in a case where a first electronic device is connected to a camera unit in a target camera module, a second electronic device may receive feedback information sent by the first electronic device or the target camera module to the first electronic device.
Optionally, in the camera module control method provided in the embodiment of the present invention, the target camera module includes at least two working modes, and each sub-right corresponds to one working mode. Specifically, the above S202 may be implemented by S202a and S202 b:
s202a, the first electronic device determines a target working mode according to the target sub-authority.
S202b, the first electronic equipment controls the target camera module to work according to the target working mode.
Wherein the target sub-right is one of at least two sub-rights.
For example, the working mode of one camera unit may be a long-Range view mode, a portrait mode, a High-Dynamic Range (HDR) mode, a macro shooting mode, and the like, which is not specifically limited in this embodiment of the present invention, and may also be other working modes.
Optionally, in the embodiment of the present invention, one connection manner and/or one identification information may correspond to at least one sub-right, and one sub-right corresponds to one working mode. For example, the wireless connection mode corresponds to the usage right 1, and the usage right 1 corresponds to the distant view mode; the plug-in connection corresponds to the usage right 3, and the usage right 3 corresponds to the HDR mode.
Illustratively, in the case that the target camera module includes the camera unit 3, if the first electronic device connects the camera unit 3 in a wireless manner, the first electronic device obtains that the usage right of the camera unit is the usage right 3, and may control the camera unit 3 to operate in the HDR mode.
Optionally, the camera module control method provided in the embodiment of the present invention may further include, before the step S201, steps S203 and S204:
s203, the first electronic device sends a connection request message to the target device, wherein the connection request message is used for requesting to connect the target camera module.
Accordingly, the target device may receive the connection request message transmitted by the first electronic device.
The target device comprises at least one of a target camera module and a second electronic device.
Optionally, in the embodiment of the present invention, connection or permission verification information preset by the second electronic device may be stored in the target camera module (e.g., the camera unit of the target camera module), and the other electronic devices may be directly connected to the camera unit in the target camera module by inputting correct verification information. For example, the connection request message carries connection or permission verification information, and when the target device determines that the verification information is correct, the first electronic device and the target camera module form a successful connection.
And S204, the first electronic equipment receives a connection response message sent by the target equipment, wherein the connection response message is used for indicating that the first electronic equipment is allowed to be connected with the target camera module.
Accordingly, the target device may send a connection response message to the first electronic device.
Therefore, the camera unit in the target camera module in the second electronic equipment can be connected and shared through the verified first electronic equipment, the safety of the electronic equipment sharing camera module can be improved, and the shared camera module is prevented from being illegally connected and used by other electronic equipment which cannot be successfully verified.
Optionally, the camera module control method provided in the embodiment of the present invention may further include, after S202, S205 and S206:
s205, the first electronic device sends an authority request message to the target device, wherein the authority request message is used for requesting to acquire the target use authority of the first camera unit in the target camera module.
The authority level of the target use authority is higher than that of a sub-authority (recorded as use authority p) corresponding to the first camera unit in the first use authority.
Accordingly, the target device may receive the permission request message transmitted by the first electronic device.
Similarly, the description of the permission request message may refer to the description of the connection request message in the above embodiment, and is not repeated here.
It can be understood that, after the first electronic device is successfully connected with the first camera unit in the target camera module, the permission level of the use permission of the first camera unit can be upgraded by inputting correct permission level verification information. For example, the usage right p is the usage right 2, and the target usage right is the usage right 3.
S206, the first electronic device receives an authority response message sent by the target device, wherein the authority response message is used for indicating that the first electronic device is allowed to control the first camera unit to work according to the target use authority.
Accordingly, the target device may transmit the permission response message to the first electronic device.
Therefore, under the condition that a user demands that the first electronic equipment upgrade the use permission of the first camera unit, the use permission of the first camera unit can be upgraded by the first electronic equipment only if the first electronic equipment is successfully verified. Therefore, the flexibility of authority management of the camera units in the electronic equipment sharing camera module can be improved, and the experience of the user sharing camera module is improved.
According to the camera module control method provided by the embodiment of the invention, under the condition that the first electronic device is connected with the target camera module in the second electronic device in the first connection mode, the first use authority of the target camera module can be determined according to the target parameter, and the target camera module is controlled to work according to the first use authority. The target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. Specifically, the first usage right is a right corresponding to at least one of the first connection method and the first identification information, and is not necessarily all rights of the camera unit in the target camera module. For example, the first usage right corresponding to the target camera module by the second electronic device may be a lower-level usage right, for example, the first usage right can only preview a picture collected by the camera unit in the target camera module, but cannot shoot or record the picture collected by the camera unit in the target camera module. Therefore, the camera unit in the camera module (such as the target camera module) of the electronic equipment can be prevented from being connected and used by anyone without limit by other electronic equipment to a certain extent by corresponding the target camera module in the second electronic equipment to a specific first use permission, and the safety of sharing the camera unit among different electronic equipment can be further improved.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 3, the electronic device 30 is a first electronic device, and the electronic device 30 includes: the determining module 31 is configured to determine a first usage right of a target camera module according to a target parameter when the first electronic device is connected to the target camera module in the second electronic device in a first connection manner; the control module 32 is used for controlling the target camera module to work according to the first use permission determined by the determination module 31; the target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
Optionally, the target camera module includes M camera units, the first connection mode includes N sub-connection modes, the first identification information includes M sub-identification information, and M, N are positive integers.
Optionally, the first connection mode includes at least one of a wireless connection mode, a data line connection mode, a magnetic attraction connection mode and a plug connection mode; under the condition that the first connection mode comprises a magnetic attraction connection mode, both the first electronic equipment and the second electronic equipment are provided with magnetic attraction contacts, and the target camera module is connected with or separated from the target electronic equipment through the magnetic attraction contacts; under the condition that the first connection mode comprises a plug-in connection mode, the first electronic equipment and the second electronic equipment are both provided with slots, and the target camera module is connected with or separated from the target electronic equipment through the slots; wherein the target electronic device is one of the first electronic device and the second electronic device.
Optionally, the first usage right includes at least two sub-rights; under the condition that the target parameter is a first connection mode, each sub-connection mode corresponds to at least one sub-authority; under the condition that the target parameter is first identification information, each piece of sub-identification information corresponds to at least one sub-authority; and under the condition that the target parameters are the first connection mode and the first identification information, each sub-connection mode corresponds to one preset authority table, and the preset authority table is a preset relation comparison table between the sub-authorities and the sub-identification information.
Optionally, the target camera includes at least two working modes, and each sub-authority corresponds to one working mode; the control module 32 is specifically used for determining a target working mode according to the target sub-authority; controlling the target camera module to work according to a target working mode; wherein the target sub-right is one of at least two sub-rights.
The electronic device 30 provided in the embodiment of the present invention can implement each process implemented by the first electronic device in the foregoing method embodiments, and for avoiding repetition, details are not described here again.
According to the electronic device provided by the embodiment of the invention, under the condition that the first electronic device is connected with the target camera module in the second electronic device in the first connection mode, the first use authority of the target camera module can be determined according to the target parameter, and the target camera module is controlled to work according to the first use authority. The target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. Specifically, the first usage right is a right corresponding to at least one of the first connection method and the first identification information, and is not necessarily all rights of the camera unit in the target camera module. For example, the first usage right corresponding to the target camera module by the second electronic device may be a lower-level usage right, for example, the first usage right can only preview a picture collected by the camera unit in the target camera module, but cannot shoot or record the picture collected by the camera unit in the target camera module. Therefore, the camera unit in the camera module (such as the target camera module) of the electronic equipment can be prevented from being connected and used by anyone without limit by other electronic equipment to a certain extent by corresponding the target camera module in the second electronic equipment to a specific first use permission, and the safety of sharing the camera unit among different electronic equipment can be further improved.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes, but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like.
Alternatively, the various modules in the electronic device 30 may be implemented by modules in the electronic device 100, for example, the determination module 31 and the control module 32 in the electronic device 30 may be implemented by the processor 110 in the electronic device 100.
The processor 110 is configured to determine a first usage right of a target camera module according to a target parameter when a first electronic device is connected with the target camera module in a second electronic device in a first connection manner; controlling the target camera module to work according to the first use authority; the target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
According to the electronic device provided by the embodiment of the invention, under the condition that the first electronic device is connected with the target camera module in the second electronic device in the first connection mode, the first use authority of the target camera module can be determined according to the target parameter, and the target camera module is controlled to work according to the first use authority. The target parameters comprise at least one of a first connection mode and first identification information, the first use permission is the use permission of the first electronic equipment to the target camera module, and the first identification information is identification information of each camera unit in the target camera module. Specifically, the first usage right is a right corresponding to at least one of the first connection method and the first identification information, and is not necessarily all rights of the camera unit in the target camera module. For example, the first usage right corresponding to the target camera module by the second electronic device may be a lower-level usage right, for example, the first usage right can only preview a picture collected by the camera unit in the target camera module, but cannot shoot or record the picture collected by the camera unit in the target camera module. Therefore, the camera unit in the camera module (such as the target camera module) of the electronic equipment can be prevented from being connected and used by anyone without limit by other electronic equipment to a certain extent by corresponding the target camera module in the second electronic equipment to a specific first use permission, and the safety of sharing the camera unit among different electronic equipment can be further improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 4, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power source 111 (such as a battery) for supplying power to each component, and preferably, the power source 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, the electronic device 100 is the first electronic device or the second electronic device.
Optionally, an electronic device (e.g., a first electronic device or a second electronic device) is further provided in an embodiment of the present invention, and includes a processor 110, a memory 109, and a computer program stored in the memory 109 and capable of running on the processor 110, where the computer program, when executed by the processor 110, implements the processes in the foregoing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Optionally, an embodiment of the present invention may further provide a camera module (e.g., a camera module), 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 processes of the foregoing method embodiments, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements 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 an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present 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 (10)

1. A camera module control method is applied to first electronic equipment, and is characterized by comprising the following steps:
under the condition that a target camera module in the first electronic device and a second electronic device are connected in a first connection mode, determining a first use permission of the target camera module according to a target parameter;
controlling the target camera module to work according to the first use authority;
the target parameter includes at least one of the first connection mode and first identification information, the first usage right is a usage right of the first electronic device to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
2. The method according to claim 1, wherein the target camera module comprises M camera units, the first connection mode comprises N sub-connection modes, the first identification information comprises M sub-identification information, and M, N are positive integers.
3. The method of claim 1, wherein the first connection mode comprises at least one of a wireless connection mode, a data line connection mode, a magnetic attraction connection mode and a plug connection mode;
under the condition that the first connection mode comprises the magnetic attraction connection mode, both the first electronic equipment and the second electronic equipment are provided with magnetic attraction contacts, and the target camera module is connected with or separated from the target electronic equipment through the magnetic attraction contacts;
under the condition that the first connection mode comprises the plug-in connection mode, the first electronic device and the second electronic device are both provided with slots, and the target camera module is connected with or separated from the target electronic device through the slots;
wherein the target electronic device is one of the first electronic device and the second electronic device.
4. The method of claim 2, wherein the first usage right comprises at least two sub-rights;
under the condition that the target parameter is the first connection mode, each sub-connection mode corresponds to at least one sub-authority;
under the condition that the target parameter is the first identification information, each piece of sub-identification information corresponds to at least one sub-authority;
and under the condition that the target parameter is the first connection mode and the first identification information, each sub-connection mode corresponds to a preset authority table, and the preset authority table is a preset relation comparison table between the sub-authority and the sub-identification information.
5. The method of claim 4, wherein the target camera module comprises at least two operating modes, one for each sub-permission;
the controlling the target camera module to work according to the first use authority comprises the following steps:
determining a target working mode according to the target sub-authority;
controlling the target camera module to work according to the target working mode;
wherein the target sub-right is one of the at least two sub-rights.
6. An electronic device, the electronic device being a first electronic device, the electronic device comprising:
the determining module is used for determining a first use permission of a target camera module according to a target parameter under the condition that the first electronic device is connected with the target camera module in the second electronic device in a first connection mode;
the control module is used for controlling the target camera module to work according to the first use permission determined by the determination module;
the target parameter includes at least one of the first connection mode and first identification information, the first usage right is a usage right of the first electronic device to the target camera module, and the first identification information is identification information of each camera unit in the target camera module.
7. The electronic device of claim 6, wherein the target camera module comprises M camera units, the first connection mode comprises N sub-connection modes, the first identification information comprises M sub-identification information, and M, N are positive integers.
8. The electronic device of claim 6, wherein the first connection mode comprises at least one of a wireless connection mode, a data line connection mode, a magnetic attraction connection mode and a plug connection mode;
under the condition that the first connection mode comprises the magnetic attraction connection mode, both the first electronic equipment and the second electronic equipment are provided with magnetic attraction contacts, and the target camera module is connected with or separated from the target electronic equipment through the magnetic attraction contacts;
under the condition that the first connection mode comprises the plug-in connection mode, the first electronic device and the second electronic device are both provided with slots, and the target camera module is connected with or separated from the target electronic device through the slots;
wherein the target electronic device is one of the first electronic device and the second electronic device.
9. The electronic device of claim 7, wherein the first usage right comprises at least two sub-rights;
under the condition that the target parameter is the first connection mode, each sub-connection mode corresponds to at least one sub-authority;
under the condition that the target parameter is the first identification information, each piece of sub-identification information corresponds to at least one sub-authority;
and under the condition that the target parameter is the first connection mode and the first identification information, each sub-connection mode corresponds to a preset authority table, and the preset authority table is a preset relation comparison table between the sub-authority and the sub-identification information.
10. The electronic device of claim 9, wherein the target camera comprises at least two operating modes, one for each sub-permission;
the control module is specifically used for determining a target working mode according to the target sub-authority;
controlling the target camera module to work according to the target working mode;
wherein the target sub-right is one of the at least two sub-rights.
CN202010371222.XA 2020-05-06 2020-05-06 Camera module control method and electronic equipment Active CN111601034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010371222.XA CN111601034B (en) 2020-05-06 2020-05-06 Camera module control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010371222.XA CN111601034B (en) 2020-05-06 2020-05-06 Camera module control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111601034A true CN111601034A (en) 2020-08-28
CN111601034B CN111601034B (en) 2021-08-24

Family

ID=72185629

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010371222.XA Active CN111601034B (en) 2020-05-06 2020-05-06 Camera module control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111601034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637508A (en) * 2020-12-31 2021-04-09 维沃移动通信有限公司 Camera control method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060028556A1 (en) * 2003-07-25 2006-02-09 Bunn Frank E Voice, lip-reading, face and emotion stress analysis, fuzzy logic intelligent camera system
CN104580176A (en) * 2014-12-26 2015-04-29 深圳市兰丁科技有限公司 Equipment sharing method and system
JP2016006952A (en) * 2014-05-27 2016-01-14 パナソニックIpマネジメント株式会社 Remote imaging method and remote imaging control device
CN105427564A (en) * 2015-12-01 2016-03-23 深圳市福云明网络科技有限公司 Outdoor shooting system and method based on WIFI (Wireless Fidelity) clone mode
JP2016092820A (en) * 2014-11-04 2016-05-23 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Remote camera control method, remote imaging system and server
CN109547722A (en) * 2018-12-10 2019-03-29 深圳市思拓通信系统有限公司 Law enforcement recording method, storage medium, control device and law-enforcing recorder
CN109857129A (en) * 2019-01-21 2019-06-07 维沃移动通信有限公司 A kind of method, apparatus of controlling electronic devices, mobile terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060028556A1 (en) * 2003-07-25 2006-02-09 Bunn Frank E Voice, lip-reading, face and emotion stress analysis, fuzzy logic intelligent camera system
JP2016006952A (en) * 2014-05-27 2016-01-14 パナソニックIpマネジメント株式会社 Remote imaging method and remote imaging control device
JP2016092820A (en) * 2014-11-04 2016-05-23 パナソニック インテレクチュアル プロパティ コーポレーション オブ アメリカPanasonic Intellectual Property Corporation of America Remote camera control method, remote imaging system and server
CN104580176A (en) * 2014-12-26 2015-04-29 深圳市兰丁科技有限公司 Equipment sharing method and system
CN105427564A (en) * 2015-12-01 2016-03-23 深圳市福云明网络科技有限公司 Outdoor shooting system and method based on WIFI (Wireless Fidelity) clone mode
CN109547722A (en) * 2018-12-10 2019-03-29 深圳市思拓通信系统有限公司 Law enforcement recording method, storage medium, control device and law-enforcing recorder
CN109857129A (en) * 2019-01-21 2019-06-07 维沃移动通信有限公司 A kind of method, apparatus of controlling electronic devices, mobile terminal and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112637508A (en) * 2020-12-31 2021-04-09 维沃移动通信有限公司 Camera control method and device and electronic equipment

Also Published As

Publication number Publication date
CN111601034B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN110971823B (en) Parameter adjusting method and terminal equipment
CN110719402B (en) Image processing method and terminal equipment
CN109194818B (en) Information processing method and terminal
CN110062105B (en) Interface display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN108595946B (en) Privacy protection method and terminal
CN110908557B (en) Information display method and terminal equipment
WO2021121265A1 (en) Camera starting method and electronic device
WO2021017785A1 (en) Data transmission method and terminal device
CN111343710B (en) Power adjustment method and electronic equipment
CN110505660B (en) Network rate adjusting method and terminal equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN111414097A (en) Interaction method, interaction system and display equipment
WO2021104265A1 (en) Electronic device and focusing method
CN111601034B (en) Camera module control method and electronic equipment
CN110677537B (en) Note information display method, note information sending method and electronic equipment
CN110929238B (en) Information processing method and device
CN111159687B (en) Account information processing method, electronic equipment and server
CN111093033B (en) Information processing method and device
CN110493451B (en) Data transmission method, electronic equipment and terminal
CN110096893B (en) Object limiting method and terminal equipment
WO2023072038A1 (en) Image data processing method and electronic device
CN108960097B (en) Method and device for obtaining face depth information
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN111178306A (en) Display control method and electronic equipment

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