[go: up one dir, main page]

CN109729270A - A kind of control method, device and electronic equipment - Google Patents

A kind of control method, device and electronic equipment Download PDF

Info

Publication number
CN109729270A
CN109729270A CN201811648583.3A CN201811648583A CN109729270A CN 109729270 A CN109729270 A CN 109729270A CN 201811648583 A CN201811648583 A CN 201811648583A CN 109729270 A CN109729270 A CN 109729270A
Authority
CN
China
Prior art keywords
functional module
module
image acquisition
acquisition device
application
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.)
Pending
Application number
CN201811648583.3A
Other languages
Chinese (zh)
Inventor
杨双新
赵婷婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811648583.3A priority Critical patent/CN109729270A/en
Publication of CN109729270A publication Critical patent/CN109729270A/en
Priority to US16/730,515 priority patent/US11153473B2/en
Pending legal-status Critical Current

Links

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/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/66Remote control of cameras or camera parts, e.g. by remote control devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • 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
    • 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
    • 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/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • 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/698Control of cameras or camera modules for achieving an enlarged field of view, e.g. panoramic image capture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)
  • Studio Devices (AREA)

Abstract

This application provides a kind of control method, device and electronic equipment, the available first triggering command of the embodiment of the present application responds first triggering command, runs the first functional module, and the first functional module calls at least one first image collecting device;During the operation of the first functional module, the second triggering command is obtained;The second triggering command is responded, the second functional module is run, the second functional module calls at least one second image collecting device;First functional module is different from the second functional module.Using control method provided by the embodiments of the present application, at least two functional modules can be run in synchronization, different function module can call different image acquisition device images;Compared with current synchronization is only capable of one functional module calling image acquisition device image of operation, the mode of another acquisition image is provided, so that not single with the mode that image collecting function obtains image.

Description

Control method and device and electronic equipment
Technical Field
The present application relates to the field of image processing technologies, and in particular, to a control method, an apparatus, and an electronic device.
Background
Many electronic devices currently have image capture capabilities, such as single lens reflex cameras, smart phones, and the like. The user may acquire an image using an image capture function in the electronic device.
At present, the mode of acquiring images by using an image acquisition function is single.
Disclosure of Invention
In view of this, the present application provides a control method, a control device, and an electronic device, and the embodiments of the present application provide the following technical solutions:
in a first aspect, a control method includes:
obtaining a first trigger instruction;
responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module;
obtaining a second trigger instruction during the operation of the first functional module;
responding to the second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
Optionally, the first functional module and the second functional module belong to different functional modules of the same application program;
or,
the first function module belongs to a first application program; the second functional module belongs to a second application program; the first application is different from the second application.
Optionally, the method further includes:
calling an application program, wherein the application program at least comprises the first functional module and the second functional module;
the first trigger instruction is a trigger instruction determined based on an obtained first input operation, and the first input operation is used for selecting the first function module of the application program;
the second trigger instruction is a trigger instruction determined based on an obtained second input operation, and the second input operation is used for selecting the second function module of the application program.
Optionally, the application program includes a multitask management module;
the responding to the first trigger instruction, operating a first function module, wherein the first function module calls at least one first image acquisition device and comprises the following steps:
the multitask management module creates a first task for the first functional module based on the first trigger instruction so as to enable the first functional module to run;
the first functional module is in a running state, and the at least one first image acquisition device is called;
the responding to the second trigger instruction, operating a second function module, and the second function module calling at least one second image acquisition device comprises:
the multitask management module creates a second task for the second functional module based on the second trigger instruction so as to enable the second functional module to run;
and the second functional module is in a running state and calls the at least one second image acquisition device.
Alternatively to this, the first and second parts may,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
determining the at least one second image acquisition device to be called by the second function module;
creating a second task for the second functional module if the at least one second image capturing device does not conflict with the at least one first image capturing device;
or,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
if the second functional module and the first functional module meet the coexistence condition, creating a second task for the second functional module;
or,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
determining the at least one second image acquisition device to be called by the second function module;
if the at least one second image acquisition device conflicts with the at least one first image acquisition device, determining a conflicting target image acquisition device;
and if the function of the target image acquisition device set by the second function module is consistent with the function of the target image acquisition device set by the first function module, creating a second task for the second function module.
Optionally, the method further includes:
and if the multitask management module obtains a switching instruction, the multitask management module switches the first task and the second task.
Optionally, the application is any application related to a camera,
the method comprises the following steps:
storing the image obtained by the first functional module through the at least one first image acquisition device;
storing the image obtained by the second functional module through the at least one second image acquisition device; so that the user can browse separately.
Optionally, the executing the first functional module in response to the first trigger instruction includes:
responding to the first trigger instruction, a first application program runs the first functional module, and the first application program calls the at least one first image acquisition device;
wherein the first application program invoking the at least one first image capture device comprises:
the first application program calls the at least one first image acquisition device through an operating system request;
the first application program obtains acquired data acquired by the at least one first image acquisition device based on the feedback for the request;
the responding to the second trigger instruction, the operating the second functional module comprises:
responding to the second trigger instruction, a second application program runs the second functional module, and the second application program calls the at least one second image acquisition device;
wherein the second application invoking the at least one second image capture device comprises:
the second application program calls the at least one second image acquisition device through an operating system request;
the second application determines whether to obtain acquisition data acquired by the at least one second image acquisition device based on the feedback for the request.
In a second aspect, a control apparatus includes:
the first acquisition module is used for acquiring a first trigger instruction;
the first operation module is used for responding to the first trigger instruction and operating a first function module, and the first function module calls at least one first image acquisition device;
the second acquisition module is used for acquiring a second trigger instruction during the operation of the first functional module;
the second operation module is used for responding to the second trigger instruction and operating a second functional module, and the second functional module calls at least one second image acquisition device; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
In a third aspect, an electronic device includes:
a memory for storing a program;
a processor for executing the program, the program specifically for:
obtaining a first trigger instruction;
responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module;
obtaining a second trigger instruction during the operation of the first functional module;
responding to the second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the electronic equipment.
As can be seen from the foregoing technical solutions, compared with the prior art, the embodiment of the present application provides a control method, which includes obtaining a first trigger instruction, responding to the first trigger instruction, and operating a first function module, where the first function module calls at least one first image acquisition device; during the operation of the first functional module, obtaining a second trigger instruction; responding to a second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module. By adopting the control method provided by the embodiment of the application, at least two functional modules can be operated at the same time, and different image acquisition devices can be called by different functional modules to acquire images; compared with the prior art that only one functional module can be operated at the same time to call the image acquisition device to acquire images, the other image acquisition mode is provided, so that the image acquisition mode by using the image acquisition function is not single.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIGS. 1a-1b are schematic diagrams illustrating a single-process and single-task process performed by a current image capturing device;
fig. 2 is a flowchart of an implementation manner of a control method provided in an embodiment of the present application;
FIG. 3 illustrates a process diagram of a user triggering a photo function module of a camera application by touching a corresponding key;
fig. 4 is a flowchart of another implementation manner of a control method provided in an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a camera application to which the control method according to the embodiment of the present application is applied;
6a-6d illustrate a process diagram for switching between a first task and a second task;
FIGS. 7a-7c illustrate another process diagram for switching between a first task and a second task;
fig. 8 is a signaling diagram of another implementation manner of the control method according to the embodiment of the present application;
9a-9c illustrate a process for running a first application and a second application in an unlocked state;
10a-10e illustrate a process for running a first application and a second application in an unlocked state;
fig. 11 is a schematic structural diagram of a control device according to an embodiment of the present disclosure;
fig. 12 is a block diagram of a hardware structure of a control device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Currently, for an application, only a single process and a single task can be executed, where a single process means that an electronic device (e.g., a smart phone) can run an application (e.g., a camera application or an instant messaging application) in the foreground; a single task means that the electronic device can create a task at a function module in an application running in the foreground (e.g., create a photo task at a photo function module).
In the embodiment of the application, a module which can call at least one image acquisition device in an application program is called a functional module; in the embodiment of the present application, modules that are not completely the same as image capturing devices that can be called are referred to as different functional modules, and/or in the embodiment of the present application, functional modules that are completely the same as image capturing devices that can be called but have different functions of at least one image capturing device that is called are referred to as different functional modules.
The foreground mentioned in the embodiment of the application refers to a platform for visual and basic operations that the electronic device can present to a user, and an application program running on the foreground can be called foreground application; the user can directly watch the foreground application and can directly operate the foreground application.
An application running in the background is called a background application, which is a program that the user cannot directly touch.
In an alternative embodiment, the background application may be switched to the foreground application, or the foreground application may be switched to the background application.
Taking the application as a camera application as an example, the camera application may include: the device comprises a delayed photographing function module, a video function module, a photo function module, a beauty function module and a panoramic function module; if the camera application is foreground application, any one of the function modules can be run, for example, if a user touches a key corresponding to a photo function module of the camera application, the photo function module can be run to execute a photographing function; in the process of executing the photographing function, if the user touches the key corresponding to the video function module, the camera application program exits from the photo function module, and then the video function module is operated to execute the function of photographing the video.
The current image acquisition method can only execute single-process single task for a plurality of application programs.
For example, if a video function module in a camera application is running and an instant messaging application is started by a user in the process of shooting a video, at this time, the camera application is switched from foreground application to background application, and the instant messaging application is foreground application; after the camera application program is switched from the foreground application to the background application, resources, such as an image acquisition device, are released. I.e. the video function module stops running. If the instant messaging application needs to perform a video chat, the instant messaging application may occupy resources, such as resources of an image capture device.
In summary, the image capturing method can only execute a single process and a single task, so that the image capturing manner using the image capturing function is single.
Taking an application program as a camera application program as an example, reference may be made to fig. 1a-1b, which illustrate a process diagram of executing a single process and a single task by the above-mentioned image capturing method. The camera application may include a video function module and a photo function module. In a photographing scene, the camera application may run the photo function module, and assume that the photo function module may call the first camera to capture an image as shown in fig. 1 a; if a video needs to be shot in the process of operating the photo function module, that is, the camera application program is in a video shooting scene as shown in fig. 1b, the video function module can be operated, and at this time, the photo function module releases the resource of the first camera, so that the photo function module does not acquire an image through the first camera any longer; the video function module can call a second camera and acquire images through the second camera. The camera application program cannot simultaneously run the photo function module and the video function module, namely, the first camera and the second camera cannot be simultaneously called.
In view of the above, an embodiment of the present application provides a control method, a control device, and an electronic device.
The electronic device may be an electronic device such as a desktop, a mobile terminal (e.g., a smartphone), an ipad, or the like.
Optionally, the control device may be a client running on the electronic device, and the client may be an application client or a web client. Optionally, the control device may be a plug-in running on the client.
Optionally, the control method provided in the embodiment of the present application may be applied to various application scenarios, and the embodiment of the present application provides, but is not limited to, the following application scenarios.
In a first application scenario, the control method provided in the embodiment of the present application may be applied to a single-process multi-task application scenario.
The control method provided by the embodiment of the application can execute single-process multitask for one application program, that is, multiple function modules in the same application program can be simultaneously operated, and the situation that the first function module exits or the second function module cannot be called due to the fact that the second function module needs to be operated in the process of operating the first function module can be avoided. In the embodiment of the application, a plurality of functional modules can be operated simultaneously, and the first functional module and the second functional module are any two functional modules in the plurality of functional modules.
Taking the application as a camera application as an example, the camera application may include a video function module and a photo function module. The camera application program can run the photo function module, and assume that the photo function module can call the first camera to acquire an image; if the video needs to be shot in the process of operating the photo function module, the video function module can also be operated, and at the moment, the photo function module cannot release the resource of the first camera, so that the photo function module can also continue to acquire images through the first camera; the video function module can call a second camera and acquire images through the second camera. The camera application can run the photo function module and the video function module simultaneously, that is, the first camera and the second camera can be called simultaneously.
In a second application scenario, the control method provided in the embodiment of the present application may be applied to an application scenario of a multi-process single task.
The control method provided by the embodiment of the application can execute a multi-process single task, and the multi-process single task mentioned in the embodiment of the application refers to: the electronic device can simultaneously run a plurality of application programs, and the plurality of application programs can comprise a foreground application and at least one background application. Wherein each application may run a functional module. Each application program occupies resources such as a corresponding image acquisition device, and the background application cannot release the resources such as the image acquisition device occupied by the background application, namely, the background application can still acquire images through the image acquisition device occupied by the background application.
Taking the first application program as a camera application program and the second application program as an instant messaging application program as an example, if the camera application program runs a video function module, the video function module may call a corresponding image acquisition device (such as a camera) to acquire an image; in the process of running the video function module by the camera application program, if a video call request of the instant messaging application program is received, and if a user determines to answer the video call request, the instant messaging application program can run the video communication function module, and the video communication function module can call a corresponding image acquisition device (such as a camera) to acquire an image; at the moment, the camera application program is changed into background application, the video function module can continuously occupy resources such as a corresponding image acquisition device and the like, and images can be acquired through the corresponding image acquisition device; in summary, the video function module of the camera application and the video communication function module of the instant messaging application can be operated simultaneously, and images are obtained through the corresponding image acquisition devices.
In a third application scenario, the control method provided in the embodiment of the present application may be applied to a multi-process and multi-task application scenario.
The control method provided by the embodiment of the application can execute multiprocess and multitask, and the multiprocess and multitask mentioned in the embodiment of the application refers to: the electronic device can simultaneously run a plurality of application programs, and the plurality of application programs can comprise a foreground application and at least one background application. Wherein each application may run a plurality of functional modules. Each functional module of each application program occupies resources such as a corresponding image acquisition device, and each functional module of the background application cannot release the resources such as the image acquisition device occupied by the background application, namely, the background application still can acquire images through the image acquisition device occupied by the background application.
Taking the first application program as a camera application program and the second application program as an instant messaging application program as an example, the camera application program can run a photo function module and a video function module of the camera application program and a video communication function module and a front shooting function module of the instant messaging application program at the same time.
The following describes a control method provided in the embodiment of the present application with reference to the above three application scenarios. Referring to fig. 2, a flowchart of an implementation manner of a control method provided in an embodiment of the present application is shown, where the method includes:
and step S200, obtaining a first trigger instruction.
Step S210, responding to the first trigger instruction, operating a first functional module, where the first functional module calls at least one first image capturing device.
In the embodiment of the application, a module which can call at least one image acquisition device in an application program is called a functional module; in the embodiment of the present application, modules that are not completely the same as image capturing devices that can be called are referred to as different functional modules, and/or in the embodiment of the present application, functional modules that are completely the same as image capturing devices that can be called but have different functions of at least one image capturing device that is called are referred to as different functional modules.
Optionally, the functions of one image capturing device include any one of the following functions:
the system is used for calculating the depth of field of the acquired image;
the method is used for realizing background blurring of the acquired image.
Taking a camera application as an example, the functional modules in the camera application include: at least one of a panoramic function module, a beauty function module, a photo function module, a video function module and a time-delay video function module.
Optionally, the first functional module is different from the functional module represented by the different application programs. For example, for a camera application, the first functional module may be a photo functional module; for an instant messaging application, the first functional module may be a video communication functional module. Optionally, the second functional module is a functional module different from the first functional module.
Step S200 may obtain a first trigger instruction. Optionally, the embodiment of the present application provides, but is not limited to, the following manner for obtaining the first trigger instruction:
firstly, a user touches and presses a key corresponding to a first functional module, and the electronic equipment generates a first trigger instruction; secondly, the user sends out first voice information, and the electronic equipment takes the first voice information as a first trigger instruction; thirdly, the user outputs a first preset gesture, and after the electronic equipment captures the first preset gesture, a first trigger instruction can be generated; fourthly, if the detected first touch information of the user meets a first preset condition, a first trigger instruction is obtained. The first touch information may include: the touch duration, the touch force and the touch track are one or more of.
Referring to fig. 3, a schematic diagram illustrating a process of triggering a photo function module of a camera application by a user pressing a corresponding key is shown.
As shown in the right diagram of fig. 3, the photo function module corresponds to a "photo" virtual key, the panorama function module corresponds to a "panorama" key, the beauty function module corresponds to a "beauty" virtual key, the video function module corresponds to a "video" virtual key, and the delayed photography function module corresponds to a "delayed photography" key.
If the first functional module is a video functional module, and the user clicks the "video" virtual key, the electronic device may obtain the first trigger instruction.
The user may touch a "video" virtual key of the camera application, see fig. 3, left, and may run the first functional module, which may invoke at least one first image capture device to obtain the image shown in fig. 3, left.
The image acquisition device mentioned in the embodiment of the application is used for acquiring images. Optionally, the image acquisition device may be a camera; alternatively, the image capturing device may be an image capturing component, such as a CMOS component, for example, which may illuminate the 3D structured light onto the real object, and the image capturing component may capture the contour of the real object based on the 3D structured light.
Optionally, the image captured by the first image capturing device may include one or more of a picture and a video.
Step S220, during the operation of the first functional module, obtaining a second trigger instruction.
Step S220 may obtain a second trigger instruction. Optionally, the embodiment of the present application provides, but is not limited to, the following manner for obtaining the second trigger instruction:
firstly, a user touches and presses a key corresponding to the second functional module, and the electronic equipment generates a second trigger instruction; secondly, the user sends out second voice information, and the electronic equipment takes the second voice information as a second trigger instruction; thirdly, the user outputs a second preset gesture, and after the electronic device captures the second preset gesture, a second trigger instruction can be generated; and fourthly, if the detected second touch information of the user meets a second preset condition, obtaining a second trigger instruction. The second touch information may include: the touch duration, the touch force and the touch track are one or more of.
Wherein the first voice information and the second voice information are different; the second preset gesture is different from the first preset gesture; the first preset condition and the second preset condition are different.
Step S230, responding to the second trigger instruction, operating a second functional module, where the second functional module calls at least one second image capturing device; the first functional module is different from the second functional module.
The at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
Optionally, the first functional module is different from the second functional module.
For example, in the process of recording a video through a video function module in a camera application program, a user a receives and accepts a video call request sent by a user B; the video communication function module in the instant communication application program can be operated under the condition that the video function module continues to record videos.
Optionally, the image captured by the second image capturing device may include any one of a picture and a video.
It should be noted that, in the embodiment of the present application, connecting the first image capturing device and the second image capturing device to the same electronic device may include the following several cases:
in the first case, one or more of the first image capturing device and the second image capturing device may be integrated into the same electronic device.
For example, the first image capturing device and the second image capturing device may be directly connected to a processor or a motherboard of the electronic device.
In the second case: one or more of the first image capturing device and the second image capturing device may be connected to the same electronic device through a data line (e.g., a USB data line).
In the third case: one or more of the first image acquisition device and the second image acquisition device can be connected to the same electronic equipment through wireless communication.
Wherein, the wireless communication may be: any one of bluetooth, NFC (Near Field Communication), and WIFI.
In summary, the embodiment of the present application does not specifically limit the specific connection manner between the image capturing device and the electronic device.
The embodiment of the application provides a control method, which comprises the steps of obtaining a first trigger instruction, responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module; during the operation of the first functional module, obtaining a second trigger instruction; responding to a second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module. By adopting the control method provided by the embodiment of the application, at least two functional modules can be operated at the same time, and different image acquisition devices can be called by different functional modules to acquire images; compared with the prior art that only one functional module can be operated at the same time to call the image acquisition device to acquire images, the other image acquisition mode is provided, so that the image acquisition mode by using the image acquisition function is not single.
In the above embodiment of the control method, in an optional embodiment, the first functional module and the second functional module may belong to different functional modules of the same application program.
For example, the application may be a camera application, and the first function module may be a photo function module of the camera application and the second function module may be a video function module of the camera application.
In another alternative embodiment, the first functional module and the second functional module may belong to different applications, for example, the first functional module may belong to a first application, the second functional module may belong to a second application, and the first application is different from the second application. Optionally, if the first functional module and the second functional module belong to different application programs, the first functional module and the second functional module may be the same or different.
For example, the first application may be a camera application, the first function module may be a photo function module of the camera application, the second application may be an instant messaging application, and the second function module may be a photo function module of the instant messaging application.
For another example, the first application may be a camera application, the first function module may be a photo function module of the camera application, the second application may be an instant messaging application, and the second function module may be a video communication function module of the instant messaging application. In summary, if the first functional module and the second functional module belong to different application programs, the first functional module and the second functional module may be different.
The following describes a control method provided in the embodiment of the present application with respect to "a first functional module and a second functional module may belong to different functional modules of the same application program".
In a case that the first functional module and the second functional module may belong to different functional modules of the same application program, the embodiment of the control method may further include:
calling an application program, wherein the application program at least comprises the first functional module and the second functional module;
the first trigger instruction is a trigger instruction determined based on an obtained first input operation, and the first input operation is used for selecting the first function module of the application program;
the second trigger instruction is a trigger instruction determined based on an obtained second input operation, and the second input operation is used for selecting the second function module of the application program.
Optionally, the first input operation may be an operation of touching and pressing a key corresponding to the first function module; or the first voice information received by the electronic equipment is a first input operation; or the first preset gesture is a first input operation; or the first touch information is a first input operation.
Optionally, the second input operation may be an operation of touching and pressing a key corresponding to the second function module; or the second voice information received by the electronic equipment is a second input operation; or the second preset gesture is a second input operation; or the second touch information is a second input operation.
In order to realize that a plurality of functional modules can be run in the same application program. In an alternative embodiment, the application may also include a multitasking management module that may create different tasks for different functional modules. As shown in fig. 4, which is a flowchart of another implementation manner of the control method provided in the embodiment of the present application, the method includes:
step S401: and calling an application program, wherein the application program at least comprises the first functional module and the second functional module.
Optionally, the invoking the application program may mean that the user inputs third voice information, a third preset gesture, or third touch and press information to start the application program, so that the application program is in an operating state.
Step S402: a first trigger instruction is obtained.
See the explanation of step S200, which is not described herein.
Step S403: and the multitask management module creates a first task for the first functional module based on the first trigger instruction so as to enable the first functional module to run.
Step S404: and the first functional module is in a running state and calls the at least one first image acquisition device.
In an optional embodiment, the first functional module is in a running state, and may initiate a request for invoking the at least one first image capturing device to an operating system of the electronic device. After receiving the request, the operating system may detect whether the at least one first image capturing device to be called by the operating system is idle, and if the at least one first image capturing device is idle, the operating system may allocate the at least one first image capturing device to the first functional module; that is, the first functional module may obtain an image by the at least one first image capture device.
Or, the operating system sends the request to the hardware resource management module, and the hardware resource management module may detect whether the at least one first image capturing device to be called by the hardware resource management module is idle.
Step S405: and obtaining a second trigger instruction during the operation of the first functional module.
See step S220 for details, which are not described herein.
Step S406: and the multitask management module creates a second task for the second functional module based on the second trigger instruction so as to enable the second functional module to operate.
In an alternative embodiment, at least one first image capturing device called by the first function module may have a conflict or no conflict with at least one second image capturing device called by the second function module.
For example, the image capturing device may be a camera in a smart phone, and it is assumed that the smart phone includes three cameras, namely a first camera, a second camera, and a third camera. Assuming that a plurality of first image acquisition devices called by a first function module are respectively a first camera and a second camera, if a second function module also needs to call two second image acquisition devices, and assuming that the first function module is a third camera and a second camera, then the camera called by the first function module and the camera called by the second function module both comprise the second camera; if the second function module also needs to call two second image acquisition devices, if the first camera and the second camera are assumed, the camera called by the first function module is completely the same as the camera called by the second function module.
In summary, at least one first image capturing device called by the first function module is the same as at least one second image capturing device called by the second function module, and there is a conflict.
Still taking the above as an example, if the second image acquisition device that the second function module needs to call is the third camera, then the camera that the first function module has called is completely different from the camera that the second function module needs to call, and then there is no conflict.
In summary, at least one first image capturing device called by the first function module is completely different from at least one second image capturing device called by the second function module, and thus there is no conflict.
Based on the above problem, according to whether at least one first image capturing device called by the first function module conflicts with at least one second image capturing device called by the second function module, the embodiment of the present application may determine whether to call the at least one second image capturing device. Therefore, in another embodiment of the present application, a process of the multitask management module creating the second task for the second functional module based on the second trigger instruction is described.
The process of creating, by the multitask management module, the second task for the second functional module based on the second trigger instruction may include various optional embodiments, and the embodiments of the present application provide but are not limited to the following embodiments.
The first method comprises the following steps: creating a second task for the second functional module if the at least one second image capturing device does not conflict with the at least one first image capturing device.
Optionally, the process may specifically include:
c1, determining the at least one second image acquisition device to be called by the second function module.
Optionally, this step may determine a specific one or more second image capturing devices to be called by the second function module. In a subsequent step, it can then be determined whether the at least one second image acquisition device to be called conflicts with the first image acquisition device to be called, based on the determination.
Optionally, the correspondence between each functional module and the image capturing device may be preset, such as the correspondence between the functional modules and the image capturing devices shown in table 1.
TABLE 1 correspondence between each functional module and image acquisition device
Optionally, the second image capturing device corresponding to the second functional module may be determined according to the corresponding relationship between each functional module and the image capturing device. Taking table 1 as an example, assuming that the second function module is a panoramic function module, the second image acquisition device may be determined to be the first camera based on the corresponding relationship between the panoramic function module and the camera in table 1.
It should be noted that table 1 is only an exemplary description of a corresponding relationship between the functional module and the image capturing device, and table 1 may be adjusted according to practical applications in the embodiment of the present application. For example, the correspondence in table 1 is increased or decreased; and adjusting the corresponding relation between the functional modules and the image acquisition devices in the table 1.
C2, if the at least one second image capturing device does not conflict with the at least one first image capturing device, creating a second task for the second functional module.
Optionally, if it is determined that the at least one second image capturing device does not conflict with the at least one first image capturing device, a second task may be created for the second functional module. Here, the non-conflict means that the at least one first image capturing device and the at least one second image capturing device that are invoked are all different.
Optionally, if it is determined that the at least one second image capturing device conflicts with the at least one first image capturing device, feedback information may be given indicating that the second image capturing device conflicts with the first image capturing device.
Still taking table 1 as an example for explanation, assuming that the first function module is a beauty function module, the called first image acquisition devices can be determined to be the second camera and the third camera according to the corresponding relationship in table 1; assuming that the second function module is a photo function module, the called second image acquisition devices can be determined to be a third camera, a fourth camera and a fifth camera according to the corresponding relationship in table 1. Since the two first image capturing devices called up and the three second image capturing devices called up include the same third camera, there is a conflict.
Assuming that the first function module is a beauty function module, the called first image acquisition devices can be determined to be a second camera and a third camera according to the corresponding relation in table 1; assuming that the second function module is a video function module, the called second image acquisition device can be determined to be a fourth camera according to the corresponding relationship in table 1. Since the two first image capturing devices invoked and the one second image capturing device invoked comprise completely different cameras, there is no conflict. In this case, the second task may be created.
And the second method comprises the following steps:
and if the second functional module and the first functional module meet the coexistence condition, creating a second task for the second functional module.
Optionally, a coexistence relationship between different functional modules may be preset, and further, when the second functional module is operated, it may be determined whether the second functional module can coexist with the first functional module. And if the second functional module and the first functional module can coexist, namely the coexistence relation is met, a second task is created for the second functional module.
Optionally, in the embodiment of the present application, it is mentioned that the plurality of function modules satisfy the coexistence relationship, which may indicate that the image capturing devices called by the plurality of function modules are completely different.
Optionally, if the second functional module and the first functional module may not coexist, that is, the coexistence relationship is not satisfied, feedback information may be given to indicate that the second functional module and the first functional module may not coexist, and a second task may not be created for the second functional module.
Alternatively, the preset and stored coexistence relationship between different functional modules may be as shown in table 2, which illustrates the coexistence relationship between different functional modules.
TABLE 2 coexistence relations between different functional modules
Functional module Whether a coexistence relationship is present
Panoramic function module and beautifying function module Is that
Panoramic function module and photo function module Is that
Panoramic function module and video function module Is that
Beauty function module and photo function module Whether or not
Beauty function module and video function module Is that
Photo function module and video function module Whether or not
Optionally, it may be determined whether different functional modules may coexist according to a coexistence relationship between the different functional modules, and then it is determined whether a second task may be created for a second functional module.
Taking table 2 as an example, assuming that the first function module is a panoramic function module and the second function module is a video function module, it may be determined that the panoramic function module and the video function module may coexist based on the coexistence relationship between the panoramic function module and the video function module in table 2, and then a second task may be created for the second function module.
Assuming that the first function module is a photo function module and the second function module is a video function module, it may be determined that the photo function module and the video function module may not coexist based on the coexistence relationship between the photo function module and the video function module in table 2, and then a second task may not be created for the second function module.
And the third is that:
if the at least one first image capturing device and the at least one second image capturing device that are invoked conflict, it may be determined whether to create a second task for the second functional module based on whether the functionality of the conflicting image capturing devices (i.e., the at least one first image capturing device and the same image capturing device included in the at least one second image capturing device) is the same. The process may specifically include:
d1, determining the at least one second image acquisition device to be called by the second function module.
Optionally, the specific implementation process of this step corresponds to step C1 in the foregoing embodiment, and reference is made to the foregoing description for details, which are not repeated herein.
D2, if the at least one second image acquisition device conflicts with the at least one first image acquisition device, determining a conflicting target image acquisition device.
Alternatively, if it is determined that the at least one second image capturing device conflicts with the at least one first image capturing device, the conflicting target image capturing device may be determined. Here, the conflict means that all of the at least one first image capturing device and the at least one second image capturing device that are called are the same or partially the same; the target image acquisition device refers to an image acquisition device in which at least one first image acquisition device and at least one second image acquisition device are all the same or partially the same.
Optionally, if it is determined that the at least one second image capturing device conflicts with the at least one first image capturing device, feedback information may be given indicating that the second image capturing device conflicts with the first image capturing device.
Still taking table 1 as an example for explanation, assuming that the first function module is a beauty function module, the called first image acquisition devices can be determined to be the second camera and the third camera according to the corresponding relationship in table 1; assuming that the second function module is a photo function module, the called second image acquisition devices can be determined to be a third camera, a fourth camera and a fifth camera according to the corresponding relationship in table 1. Since the two called first image capturing devices and the three called second image capturing devices include the same third camera, it can be determined that the conflicting target image capturing device is the third camera.
D3, creating a second task for the second function module if the function of the target image acquisition device set by the second function module is identical to the function of the target image acquisition device set by the first function module.
Alternatively, it may be determined whether or not the second task can be created for the second function module, based on whether or not the function of the target image capturing device set by the second function module is identical to the function of the target image capturing device set by the first function module. If the function of the target image capturing device set by the second function module is identical to the function of the target image capturing device set by the first function module, a second task may be created for the second function module.
Optionally, if the function of the target image capturing device set by the second function module is inconsistent with the function of the target image capturing device set by the first function module, feedback information may be given to indicate that the function of the target image capturing device set by the second function module is inconsistent with the function of the target image capturing device set by the first function module.
Still taking table 1 as an example for explanation, assuming that the first function module is a beauty function module, the called first image acquisition devices can be determined to be the second camera and the third camera according to the corresponding relationship in table 1; assuming that the second function module is a photo function module, the called second image acquisition devices can be determined to be a third camera, a fourth camera and a fifth camera according to the corresponding relationship in table 1. Since the two called first image capturing devices and the three called second image capturing devices include the same third camera, it can be determined that the conflicting target image capturing device is the third camera.
Assuming that the function of the third camera set by the first functional module is to calculate the depth of field of the acquired image, and the function of the third camera set by the second functional module is also to calculate the depth of field of the acquired image, a second task may be created for the second functional module.
Alternatively, it is understood that if the function of the target image capturing device set by the second function block is not identical to the function of the target image capturing device set by the first function block; the second function module cannot normally call the at least one second image capturing device even if the second task is created; optionally, the second functional module may be in an operating state all the time, and in this case, even if the second functional module is in the operating state, the image cannot be obtained; optionally, if the function of the target image capturing device set by the second function module is not consistent with the function of the target image capturing device set by the first function module, a second task is not created for the second function module; alternatively, if the function of the target image capturing device set by the second function module is not identical to the function of the target image capturing device set by the first function module and a second task has been created, the second task may be closed.
Optionally, closing the second task may include at least two cases:
in a first alternative, the second task may be shut down when it is completed. For example, if the second task is a photo task, the photo task may be turned off when the photo is completed.
In a second alternative case, when the second task is an invalid task (i.e., the second task is an invalid task if the function of the target image capturing apparatus set by the second function module does not coincide with the function of the target image capturing apparatus set by the first function module), the second task may be turned off.
Step S407: and the second functional module is in a running state and calls the at least one second image acquisition device.
The at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
In an optional embodiment, the second functional module is in a running state, and may initiate a request for invoking the at least one second image capturing device to an operating system of the electronic device. After receiving the request, the operating system may detect whether the at least one second image capturing device to be called by the operating system is idle, and if the at least one second image capturing device is idle, the operating system may allocate the at least one second image capturing device to a second functional module; i.e. the second functional module may obtain images by means of the at least one second image acquisition device.
Or, the operating system sends the request to the hardware resource management module, and the hardware resource management module may detect whether the at least one second image capturing device to be called by the hardware resource management module is idle.
The control method shown in fig. 4 will be described with reference to fig. 1a to 1 b.
As shown in fig. 5, a schematic view of the control method applied to a camera application according to the embodiment of the present application is provided.
The camera application may include a video function module and a photo function module; if the user touches and presses a key corresponding to the photo function module in a photographing scene, so that the electronic device obtains a first trigger instruction, the multitask management module 51 creates a first task for the photo function module based on the first trigger instruction, so that the photo function module operates, and the first camera is called when the photo function module is in an operating state; during the operation of the photo function module, a user touches and presses a key corresponding to the video function module, so that the electronic equipment obtains a second trigger instruction; the multitask management module creates a second task for the video function module based on the second trigger instruction so that the video function module is in a running state; and during the running period of the video function module, the second camera is called all the time.
In summary, the photo function module and the video function module can respectively call the first camera and the second camera at the same time, so that the purpose of simultaneously operating a plurality of function modules in the same application program is achieved.
In an application scenario in which the same application program simultaneously runs multiple functional modules, in an optional embodiment, the multitask management module in the foregoing embodiment may further be configured to switch an instruction, and the process may specifically include: and if the multitask management module obtains a switching instruction, the multitask management module switches the first task and the second task.
Optionally, after the multitask management module creates the first task and the second task, the first task and the second task may be switched based on the obtained switching instruction.
Optionally, there are multiple ways to obtain the switching instruction, and the embodiments of the present application provide, but are not limited to, the following: firstly, a user touches and presses a corresponding key, and the electronic equipment generates a switching instruction; secondly, the user sends out fourth voice information, and the electronic equipment takes the fourth voice information as a switching instruction; thirdly, the user outputs a fourth preset gesture, and after the fourth preset gesture is captured by the electronic equipment, a switching instruction can be generated; fourthly, if the detected fourth touch information of the user meets a fourth preset condition, a switching instruction is obtained. The fourth touch information may include: the touch duration, the touch force and the touch track are one or more of.
Optionally, when the at least one second image capturing device and the at least one second image capturing device capture images respectively, a first image captured by the at least one second image capturing device may be previewed on the electronic device, and/or a second image captured by the at least one second image capturing device may be switched by the multitask management module to switch images corresponding to the first task and the second task, respectively.
Alternatively, the preview image on the electronic device may include only an image captured by the image capturing device called by one function module. Optionally, a key for switching the task may be set on the preview image, and a switching instruction may be generated by touching and pressing the key, so as to switch the first task and the second task.
Referring to fig. 6a-6d, a schematic diagram of a process for switching between a first task and a second task is illustrated. Assume that the electronic device used by the user is a smartphone, assume that the current preview image shown in fig. 6a is a first image corresponding to a first task, and further include a "task switching" virtual key in the preview image of the electronic device shown in fig. 6 a. Fig. 6a is an example, and the representation and position of the "task switching" key are not limited.
The user touches the "task switch" virtual key shown in fig. 6a, and may display a pull-down menu, which may include: a first image and a second image; if the user clicks the second image, the electronic device switches the currently displayed first image to the second image, such as the second image shown in fig. 6d, thereby completing the switching of the first task and the second task.
Optionally, the preview image on the electronic device may include both the first image captured by the at least one first image capturing device and the second image captured by the at least one second image capturing device.
Optionally, the first image is displayed in a first area of the electronic device, and the second image is displayed in a second area of the electronic device; optionally, the first region is a local region of the second region, or the second region is a local region of the first region; or, the first region is independent of the second region.
As shown in fig. 7a-7c, another process diagram for switching between a first task and a second task is illustrated.
It is assumed that fig. 7a shows a first image comprising an image of a tree and a dog, acquired by the at least one first image acquisition device; the person image is a second image acquired by the at least one second image acquisition device.
If the user needs to switch the first image and the second image, the user can click any position of the second image, as shown in fig. 7b, and then the interface can be switched from fig. 7a to the interface shown in fig. 7c, so that the switching between the first task and the second task is completed.
In an optional embodiment, the application program in the embodiment of the present application may be any application program related to a camera, and on this basis, the embodiment of the present application may further store an image, where the process may specifically include:
e1, storing the image obtained by the first functional module through the at least one first image acquisition device.
Alternatively, it will be appreciated that for any application associated with the camera, the images it captures need to be stored. If the application is any application related to the camera, the step may store the image obtained by the first functional module through the at least one first image capturing device, so that the user can browse the image.
Optionally, the storage manner of "storing the image obtained by the first functional module through the at least one first image capturing device" may include multiple manners, and the embodiments of the present application provide but are not limited to the following manners.
The first method comprises the following steps: the obtained image may be stored locally, i.e. into the electronic device.
And the second method comprises the following steps: the obtained image can be stored to the cloud end, and then the obtained image can be downloaded from the cloud end when a user needs the image.
And the third is that: the obtained image can be stored in other electronic equipment associated with the current electronic equipment, and then the image can be obtained from other electronic equipment when the user needs the image. Here, "associated" refers to other electronic devices that have a connection with the current electronic device. Optionally, the current electronic device and the other electronic devices may be connected to each other through a local area network, bluetooth, a data transmission line, and the like. Optionally, when the application program of the electronic device is an instant messaging application program, the obtained image may be stored in a server where the instant messaging application program is located.
For example, it is assumed that the beauty function module and the panorama function module can be run when the user takes a picture through the camera application. The beauty function module (first function module) can collect images through at least one first image collection device, and then the images collected by the first image collection device can be stored in a cloud or locally. Similarly, the image acquired by the panoramic function module (second function module) through the at least one second image acquisition device can also be stored in the cloud or locally.
For another example, suppose that the user a performs a video call with the user B through the instant messaging application, the video communication function module may be operated. For the user a, the video communication function module (the first function module) may collect an image through at least one first image collecting device, and then may store the image collected by the first image collecting device to the cloud, or locally, or to the electronic device of the user B.
E2, storing the image obtained by the second functional module through the at least one second image acquisition device; so that the user can browse separately.
The implementation of this step may correspond to step E1, which is described in detail with reference to E1 and is not described here again.
In another alternative embodiment, the first functional module and the second functional module may belong to different applications, for example, the first functional module may belong to a first application, the second functional module may belong to a second application, and the first application is different from the second application.
The following describes a control method provided in the embodiment of the present application with respect to "a first functional module and a second functional module may belong to different application programs".
As shown in fig. 8, a signaling diagram of another implementation manner of the control method provided in the embodiment of the present application may include:
step S801: the first application 81 is invoked.
Optionally, the invoking the first application program may mean that the user inputs fifth voice information, a fifth preset gesture, or fifth touch and press information to start the first application program, so that the first application program is in a running state.
Step S802: the first application 81 obtains a first trigger instruction.
See the explanation of step S200, which is not described herein.
Step S803: in response to the first trigger instruction, the first application 81 executes the first function module, and the first application calls the at least one first image capturing device 83.
Optionally, the first function module may send a call instruction to the first image capturing device.
Step S804: the first application 81 requests the invocation of the at least one first image capturing device via the operating system 84.
Step S805: the first application 81 obtains acquisition data acquired by the at least one first image acquisition device based on the feedback for the request.
Optionally, the at least one first image acquisition device may directly send acquired acquisition data to the first application program; optionally, the at least one first image capturing device sends the captured data to the operating system, and the operating system sends the captured data to the first application program.
It is understood that, during the process of the first application program calling the at least one first image capturing device, the at least one first image capturing device will continuously transmit the data captured by itself to the first application program, so steps S805 corresponding to different times are drawn in fig. 8.
In an alternative embodiment, the first application 81 is in a running state and may initiate a request to the operating system of the electronic device to invoke the at least one first image capturing means. After receiving the request, the operating system may detect whether the at least one first image capturing device to be called by the operating system is idle, and if the at least one first image capturing device is idle, the operating system may allocate the at least one first image capturing device to the first application program; i.e. the first application may obtain images by means of the at least one first image acquisition device.
Or, the operating system sends the request to the hardware resource management module, and the hardware resource management module may detect whether the at least one first image capturing device to be called by the hardware resource management module is idle.
If the operating system assigns the at least one first image acquisition device to the first application 81, the first application 81 may acquire data via the at least one first image acquisition device.
Step S806: the second application 82 is invoked.
Optionally, the invoking the second application program may mean that the user inputs sixth voice information, a sixth preset gesture, or sixth touch and press information to start the second application program, so that the second application program is in a running state.
Step S801 and step S806 may be executed simultaneously, step S806 may be executed first, or step S801 may be executed first.
Step S807: during the operation of the first functional module, the second application 82 obtains a second triggering instruction.
See step S220 for details, which are not described herein.
Step S808: in response to the second trigger instruction, the second application 82 executes the second function module, and the second application calls the at least one second image capturing device 85.
Optionally, the second function module may send a call instruction to the second image capturing device.
Step S809: the second application 82 requests the at least one second image capturing device to be invoked via the operating system.
Step S810: the second application determines whether to obtain acquisition data acquired by the at least one second image acquisition device based on the feedback for the request.
In an alternative embodiment, the second application 82 is in a running state, and may initiate a request to the operating system of the electronic device to invoke the at least one second image capturing device. After receiving the request, the operating system may detect whether the at least one second image capturing device to be called by the operating system is idle, and if the at least one second image capturing device is idle, the operating system may allocate the at least one second image capturing device to a second application program; i.e. the second application may obtain images by means of the at least one first image acquisition device.
Or, the operating system sends the request to the hardware resource management module, and the hardware resource management module may detect whether the at least one second image capturing device to be called by the hardware resource management module is idle.
If the operating system assigns the at least one second image capture device to the second application 82, the second application 82 may capture data via the at least one second image capture device.
The method shown in fig. 8 will be described below by taking the first application as a camera application and the second application as an instant messaging application as an example.
Referring to fig. 9a-9c, fig. 9a shows a user a capturing a video by using a video function module in a camera application, and the electronic device in fig. 9a can show an image captured by at least one first image capturing device called by the camera application, that is, an image including a tree and a dog. In fig. 9B, after the electronic device receives a video call request sent by the user B to the user a through the instant messaging application, assuming that the character image shown in fig. 9B is the character image of the user B, and the user clicks and accepts, as shown in fig. 9c, the instant messaging application calls at least one second image capturing device to capture an image, for example, a front-facing camera is used to capture a face image 91 of the user a; optionally, the face image 92 shown in fig. 9c is a video image transmitted by the electronic device of the user B in real time.
In an alternative embodiment, the electronic device may display a virtual key to return to the interface corresponding to the first application, such as the "return to camera application" virtual key shown in FIG. 9 c.
The following description will take the first application as the camera application and the second application as the face unlock application as an example.
As shown in fig. 10a to 10e, fig. 10a is a schematic view of an electronic device in an unlocked state, where the electronic device may be in a screen-off state when the electronic device is in the unlocked state, and fig. 10a is a schematic view of the electronic device in the screen-off state. The user may input a corresponding operation in the touch screen of the electronic device, for example, the touch down track shown in fig. 10b inputs a "circle" touch down track on the touch screen of the electronic device when the electronic device is in an unlocked state, so as to invoke the camera application. After the camera application is successfully invoked, an interface such as that shown in fig. 10c may be displayed.
If the user touches a "video" virtual key corresponding to the "video function module", the camera application may call at least one first image capture device using the video function module, and if the at least one first image capture device captures a face image, the electronic device may display the face image, such as the face image shown in fig. 10 d.
If the user wants to unlock the electronic device, optionally, the user may input a corresponding operation to invoke the face unlocking application, as shown in fig. 10e, and may invoke the face recognition unlocking application through an operation of sliding down the screen. The face unlock application may shine a user's face, e.g., a 3D structured light; the face unlocking application program can call at least one second image acquisition device to acquire a face structure image of the user. And if the acquired face structure image is successfully matched with the face structure image stored in advance, successfully unlocking.
In an optional embodiment, in the unlocking process of the face unlocking application program, the electronic device can always display an image acquired by the camera application program; optionally, if the face unlocking application program cannot detect the face, prompt information that the face cannot be detected can be displayed; optionally, if the face structure image acquired by the face unlocking application program is successfully matched with the face structure image stored in advance, prompt information of successful unlocking can be generated.
The method is described in detail in the above embodiments of the present application, and the method of the embodiments of the present application can be implemented by using various types of apparatuses, so that the embodiments of the present application further provide an apparatus, and specific embodiments are described in detail below.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a control device according to an embodiment of the present application.
As shown in fig. 11, the apparatus may include:
a first obtaining module 1101, configured to obtain a first trigger instruction;
a first operation module 1102, configured to respond to the first trigger instruction, and operate a first function module, where the first function module calls at least one first image capture device;
a second obtaining module 1103, configured to obtain a second trigger instruction during operation of the first functional module;
a second operation module 1104, configured to respond to the second trigger instruction, and operate a second function module, where the second function module calls at least one second image capture device; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
Optionally, a first functional module in the first running module and a second functional module in the second running module belong to different functional modules of the same application program;
or,
a first function module in the first operation module belongs to a first application program; a second functional module in the first running module belongs to a second application program; the first application is different from the second application.
Optionally, the apparatus may further include:
an application program calling unit, configured to call an application program, where the application program at least includes the first function module and the second function module;
a first trigger instruction in the first acquisition module is a trigger instruction determined based on an acquired first input operation, wherein the first input operation is used for selecting the first function module of the application program;
the second trigger instruction in the second obtaining module is a trigger instruction determined based on the obtained second input operation, and the second input operation is used for selecting the second function module of the application program.
Optionally, the application program may include a multitask management module;
the first operation module may include:
a first creating unit, configured to create, by the multitask management module, a first task for the first functional module based on the first trigger instruction, so that the first functional module operates;
the first calling unit is used for calling the at least one first image acquisition device when the first functional module is in a running state;
the second operation module may include:
a second creating unit, configured to create, by the multitask management module, a second task for the second functional module based on the second trigger instruction, so that the second functional module operates;
and the second calling unit is used for calling the at least one second image acquisition device when the second functional module is in the running state.
Alternatively to this, the first and second parts may,
the second creating unit may include:
a first device determining unit, configured to determine the at least one second image capturing device to be called by the second function module;
a first conflict reference unit for creating a second task for the second functional module if the at least one second image capturing device does not conflict with the at least one first image capturing device;
or,
the second creating unit includes:
a coexistence reference unit configured to create a second task for the second functional module if the second functional module and the first functional module satisfy a coexistence condition;
or,
the second creating unit includes:
a second device determining unit, configured to determine the at least one second image capturing device to be called by the second function module;
a second conflict reference unit for determining a conflicting target image acquisition device if the at least one second image acquisition device conflicts with the at least one first image acquisition device;
a function reference unit for creating a second task for the second function module if the function of the target image capturing device set by the second function module is identical to the function of the target image capturing device set by the first function module.
Optionally, the method may further include:
and the task switching unit is used for switching the first task and the second task by the multitask management module if the multitask management module obtains a switching instruction.
Optionally, the application is any application related to a camera,
the method may include:
the first image storage unit is used for storing the image obtained by the first functional module through the at least one first image acquisition device;
the second image storage unit is used for storing the image obtained by the second functional module through the at least one second image acquisition device; so that the user can browse separately.
Optionally, the first operation module may include:
the first running unit is used for responding to the first trigger instruction, running the first functional module by a first application program, and calling the at least one first image acquisition device by the first application program;
wherein the first operation unit includes:
the first calling subunit is used for calling the at least one first image acquisition device by the first application program through an operating system request;
a first acquisition subunit, configured to obtain, by the first application program, acquisition data acquired by the at least one first image acquisition device based on the feedback for the request;
the second operation module may include:
the first running unit is used for responding to the second trigger instruction, a second application program runs the second functional module, and the second application program calls the at least one second image acquisition device;
wherein the first operation unit may include:
the second calling subunit is used for calling the at least one second image acquisition device by the second application program through an operating system request;
a second acquisition subunit for the second application to determine whether to obtain acquisition data acquired by the at least one second image acquisition device based on the feedback for the request.
The control device provided by the embodiment of the application can be applied to control equipment, such as a mobile terminal, a PC terminal, a cloud platform, a server cluster and the like. Alternatively, fig. 12 shows a block diagram of a hardware structure of the control device, and referring to fig. 12, the hardware structure of the control device may include: at least one processor 1, at least one communication interface 2, at least one memory 3 and at least one communication bus 4;
in the embodiment of the application, the number of the processor 1, the communication interface 2, the memory 3 and the communication bus 4 is at least one, and the processor 1, the communication interface 2 and the memory 3 complete mutual communication through the communication bus 4;
the processor 1 may be a central processing unit CPU or an ASIC specific integrated circuit
(Application Specific Integrated Circuit), or one or more Integrated circuits configured to implement embodiments of the present Application, or an EC, or a processing component, or the like;
the memory 3 may include a high-speed RAM memory, and may further include a non-volatile memory (non-volatile memory) or the like, such as at least one disk memory;
wherein the memory stores a program and the processor can call the program stored in the memory, the program for:
obtaining a first trigger instruction;
responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module;
obtaining a second trigger instruction during the operation of the first functional module;
responding to the second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
Alternatively, the detailed function and the extended function of the program may be as described above.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device or system type embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
It is further noted that, in the present application, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments provided herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the provided embodiments is provided to enable any person skilled in the art to make or use the present embodiments. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the embodiments herein. Thus, the embodiments of the present application are not intended to be limited to the embodiments shown herein but are to be accorded the widest scope consistent with the principles and novel features provided herein.

Claims (10)

1. A control method, comprising:
obtaining a first trigger instruction;
responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module;
obtaining a second trigger instruction during the operation of the first functional module;
responding to the second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
2. The control method according to claim 1, wherein the first function module and the second function module belong to different function modules of the same application;
or,
the first function module belongs to a first application program; the second functional module belongs to a second application program; the first application is different from the second application.
3. The control method of claim 2, the method further comprising:
calling an application program, wherein the application program at least comprises the first functional module and the second functional module;
the first trigger instruction is a trigger instruction determined based on an obtained first input operation, and the first input operation is used for selecting the first function module of the application program;
the second trigger instruction is a trigger instruction determined based on an obtained second input operation, and the second input operation is used for selecting the second function module of the application program.
4. The control method according to claim 3, the application program including a multitask management module;
the responding to the first trigger instruction, operating a first function module, wherein the first function module calls at least one first image acquisition device and comprises the following steps:
the multitask management module creates a first task for the first functional module based on the first trigger instruction so as to enable the first functional module to run;
the first functional module is in a running state, and the at least one first image acquisition device is called;
the responding to the second trigger instruction, operating a second function module, and the second function module calling at least one second image acquisition device comprises:
the multitask management module creates a second task for the second functional module based on the second trigger instruction so as to enable the second functional module to run;
and the second functional module is in a running state and calls the at least one second image acquisition device.
5. The control method according to claim 4, wherein,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
determining the at least one second image acquisition device to be called by the second function module;
creating a second task for the second functional module if the at least one second image capturing device does not conflict with the at least one first image capturing device;
or,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
if the second functional module and the first functional module meet the coexistence condition, creating a second task for the second functional module;
or,
the multitask management module creates a second task for the second functional module based on the second trigger instruction, and the creating the second task comprises the following steps:
determining the at least one second image acquisition device to be called by the second function module;
if the at least one second image acquisition device conflicts with the at least one first image acquisition device, determining a conflicting target image acquisition device;
and if the function of the target image acquisition device set by the second function module is consistent with the function of the target image acquisition device set by the first function module, creating a second task for the second function module.
6. The control method of claim 5, the method further comprising:
and if the multitask management module obtains a switching instruction, the multitask management module switches the first task and the second task.
7. The control method according to claim 6, wherein the application is any application related to a camera,
the method comprises the following steps:
storing the image obtained by the first functional module through the at least one first image acquisition device;
storing the image obtained by the second functional module through the at least one second image acquisition device; so that the user can browse separately.
8. The control method according to claim 2, wherein the executing the first functional module in response to the first trigger instruction comprises:
responding to the first trigger instruction, a first application program runs the first functional module, and the first application program calls the at least one first image acquisition device;
wherein the first application program invoking the at least one first image capture device comprises:
the first application program calls the at least one first image acquisition device through an operating system request;
the first application program obtains acquired data acquired by the at least one first image acquisition device based on the feedback for the request;
the responding to the second trigger instruction, the operating the second functional module comprises:
responding to the second trigger instruction, a second application program runs the second functional module, and the second application program calls the at least one second image acquisition device;
wherein the second application invoking the at least one second image capture device comprises:
the second application program calls the at least one second image acquisition device through an operating system request;
the second application determines whether to obtain acquisition data acquired by the at least one second image acquisition device based on the feedback for the request.
9. A control device, comprising:
the first acquisition module is used for acquiring a first trigger instruction;
the first operation module is used for responding to the first trigger instruction and operating a first function module, and the first function module calls at least one first image acquisition device;
the second acquisition module is used for acquiring a second trigger instruction during the operation of the first functional module;
the second operation module is used for responding to the second trigger instruction and operating a second functional module, and the second functional module calls at least one second image acquisition device; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the same electronic equipment.
10. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program, the program specifically for:
obtaining a first trigger instruction;
responding to the first trigger instruction, operating a first functional module, and calling at least one first image acquisition device by the first functional module;
obtaining a second trigger instruction during the operation of the first functional module;
responding to the second trigger instruction, operating a second functional module, and calling at least one second image acquisition device by the second functional module; the first functional module is different from the second functional module;
the at least one first image acquisition device and the at least one second image acquisition device are connected to the electronic equipment.
CN201811648583.3A 2018-12-30 2018-12-30 A kind of control method, device and electronic equipment Pending CN109729270A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811648583.3A CN109729270A (en) 2018-12-30 2018-12-30 A kind of control method, device and electronic equipment
US16/730,515 US11153473B2 (en) 2018-12-30 2019-12-30 Control method, device and electronic apparatus for image acquisition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811648583.3A CN109729270A (en) 2018-12-30 2018-12-30 A kind of control method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109729270A true CN109729270A (en) 2019-05-07

Family

ID=66299586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811648583.3A Pending CN109729270A (en) 2018-12-30 2018-12-30 A kind of control method, device and electronic equipment

Country Status (2)

Country Link
US (1) US11153473B2 (en)
CN (1) CN109729270A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489898A (en) * 2021-06-29 2021-10-08 广州小鹏汽车科技有限公司 Camera calling method and device, vehicle and storage medium
CN113519151A (en) * 2020-02-12 2021-10-19 深圳元戎启行科技有限公司 Image acquisition triggering method and device, computer equipment, readable storage medium and monitoring equipment
CN116156311A (en) * 2021-11-16 2023-05-23 华为终端有限公司 Camera control method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833520A (en) * 2009-03-11 2010-09-15 凹凸电子(武汉)有限公司 Method for simultaneously utilizing one camera by computer system and a plurality of application programs
CN104333704A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Photographing scene previewing method, photographing scene previewing device and terminal
US20160142637A1 (en) * 2014-11-17 2016-05-19 Ricoh Company, Ltd. Image Acquisition and Management
CN106020909A (en) * 2016-06-01 2016-10-12 努比亚技术有限公司 Application process control device and method
CN106101525A (en) * 2016-05-31 2016-11-09 北京奇虎科技有限公司 Application call dual camera carries out the method and device shot
CN107018334A (en) * 2017-03-31 2017-08-04 努比亚技术有限公司 A kind of applied program processing method and device based on dual camera
CN107222677A (en) * 2017-05-27 2017-09-29 成都通甲优博科技有限责任公司 The method and device that multi-cam is opened simultaneously
CN108900790A (en) * 2018-06-26 2018-11-27 努比亚技术有限公司 Method of video image processing, mobile terminal and computer readable storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101691833B1 (en) * 2010-11-04 2017-01-09 엘지전자 주식회사 Mobile terminal and Method for controlling photographing image thereof
KR102076771B1 (en) * 2013-02-21 2020-02-12 삼성전자주식회사 Image capturing using multiple screen sections
KR102082661B1 (en) * 2013-07-12 2020-02-28 삼성전자주식회사 Photograph image generating method of electronic device, and apparatus thereof
US10447924B2 (en) * 2017-06-30 2019-10-15 Microsoft Technology Licensing, Llc Camera usage notification
TWI649697B (en) * 2018-03-14 2019-02-01 群光電能科技股份有限公司 Image recognition module expansion box and its expansion use method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101833520A (en) * 2009-03-11 2010-09-15 凹凸电子(武汉)有限公司 Method for simultaneously utilizing one camera by computer system and a plurality of application programs
US20160142637A1 (en) * 2014-11-17 2016-05-19 Ricoh Company, Ltd. Image Acquisition and Management
CN104333704A (en) * 2014-11-28 2015-02-04 广东欧珀移动通信有限公司 Photographing scene previewing method, photographing scene previewing device and terminal
CN106101525A (en) * 2016-05-31 2016-11-09 北京奇虎科技有限公司 Application call dual camera carries out the method and device shot
CN106020909A (en) * 2016-06-01 2016-10-12 努比亚技术有限公司 Application process control device and method
CN107018334A (en) * 2017-03-31 2017-08-04 努比亚技术有限公司 A kind of applied program processing method and device based on dual camera
CN107222677A (en) * 2017-05-27 2017-09-29 成都通甲优博科技有限责任公司 The method and device that multi-cam is opened simultaneously
CN108900790A (en) * 2018-06-26 2018-11-27 努比亚技术有限公司 Method of video image processing, mobile terminal and computer readable storage medium

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113519151A (en) * 2020-02-12 2021-10-19 深圳元戎启行科技有限公司 Image acquisition triggering method and device, computer equipment, readable storage medium and monitoring equipment
CN113519151B (en) * 2020-02-12 2023-06-20 深圳元戎启行科技有限公司 Image acquisition triggering method, device, computer equipment, readable storage medium and monitoring equipment
CN113489898A (en) * 2021-06-29 2021-10-08 广州小鹏汽车科技有限公司 Camera calling method and device, vehicle and storage medium
CN113489898B (en) * 2021-06-29 2023-10-31 广州小鹏汽车科技有限公司 Camera calling method, device, vehicle and storage medium
CN116156311A (en) * 2021-11-16 2023-05-23 华为终端有限公司 Camera control method and device
WO2023088040A1 (en) * 2021-11-16 2023-05-25 华为技术有限公司 Camera control method and apparatus
CN116156311B (en) * 2021-11-16 2025-09-09 华为终端有限公司 Camera control method and device

Also Published As

Publication number Publication date
US11153473B2 (en) 2021-10-19
US20200213505A1 (en) 2020-07-02

Similar Documents

Publication Publication Date Title
CN106951884B (en) Method, device and electronic device for collecting fingerprints
RU2589366C2 (en) Above-lock camera access
CN112905350A (en) Task scheduling method and device, electronic equipment and storage medium
CN110134532A (en) A kind of information interacting method and device, electronic equipment and storage medium
US9451159B2 (en) Photographing starting apparatus and method for built-in camera of portable data processing device
CN108965611B (en) Shooting interface switching method, device, device and storage medium
CN105554372B (en) Shooting method and device
CN109729270A (en) A kind of control method, device and electronic equipment
CN109040523A (en) Artifact eliminating method and device, storage medium and terminal
CN107566746B (en) Photographing method and user terminal
CN106412443A (en) Shooting method and mobile terminal
CN107885016B (en) Holographic projection method and device
CN107360366B (en) Photographing method, device, storage medium and electronic device
WO2024067468A1 (en) Interaction control method and apparatus based on image recognition, and device
CN109547678B (en) Processing method, device, equipment and readable storage medium
CN113268211B (en) Image acquisition method, device, electronic equipment and storage medium
CN112672046B (en) Method and device for storing continuous shooting images, electronic equipment and storage medium
CN112437235B (en) Night scene picture generation method and device and mobile terminal
CN114125226A (en) Image capturing method, apparatus, electronic device and readable storage medium
CN105677088A (en) Control method and electronic device
CN109857478B (en) Target application program running method and device and readable storage medium
CN107888820A (en) A kind of control method of camera lens, device and terminal
CN113794833B (en) Shooting method and device and electronic equipment
CN104469144A (en) Photographing method and electronic device
CN112153291B (en) Photographing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190507

RJ01 Rejection of invention patent application after publication