Control method, device and electronic apparatus for image acquisition
AssigneeLenovo (Beijing) Limited
InventorsShuangxin Yang, Tingting Zhao
Life of this patent
Estimating the term…
Abstract
The present disclosure provides a control method. The method includes acquiring a first trigger instruction; executing a first function module in response to the first trigger instruction, the first function module calling one or more first image acquisition devices; acquiring a second trigger instruction during the operation of the first function module; and executing a second function module in response to the second trigger instruction, the second function module calling one or more second image acquisition devices, and the first function module being different from the second function module. The one or more first image acquisition devices and the one or more second image acquisition devices are connected to a same electronic device.
Claims19
A control method comprising:
- calling an application including at least a first function module, a second function module, and a multitasking management module;
- acquiring a first trigger instruction;
- executing the first function module in response to the first trigger instruction, the first function module calling one or more first image acquisition devices, and executing the first function module including:
- creating a first task for the first function module by using the multitasking management module based on the first trigger instruction to execute the first function module;
- acquiring a second trigger instruction during the operation of the first function module;
- and
- executing the second function module in response to the second trigger instruction, the second function module calling one or more second image acquisition devices, and executing the second function module including:
- creating a second task for the second function module by using the multitasking management module based on the second trigger instruction to execute the second function module, including:
- determining the one or more second image acquisition devices to be called by the second function module;
- determining a conflicting target image acquisition device in response to the one or more second image acquisition devices conflicting with the one or more first image acquisition devices;
- and
- generating the second task for the second function module in response to a function of a target image acquisition device set by the second function module being consistent with a function of the target image acquisition device set by the first function module;
- wherein the first function module is different from the second function module, and the one or more first image acquisition devices and the one or more second image acquisition devices are connected to a same electronic device.
An electronic device comprising:
- a memory storing a program;
- a processor configured to execute the program to:
- call an application including at least a first function module, a second function module, and a multitasking management module;
- acquire a first trigger instruction;
- execute the first function module in response to the first trigger instruction, the first function module calling one or more first image acquisition devices, and executing the first function module including:
- creating a first task for the first function module by using the multitasking management module based on the first trigger instruction to execute the first function module;
- acquire a second trigger instruction during the operation of the first function module;
- and
- execute the second function module in response to the second trigger instruction, the second function module calling one or more second image acquisition devices, and executing the second function module including:
- creating a second task for the second function module by using the multitasking management module based on the second trigger instruction to execute the second function module, including:
- determining the one or more second image acquisition devices to be called by the second function module;
- determining a conflicting target image acquisition device in response to the one or more second image acquisition devices conflicting with the one or more first image acquisition devices;
- and
- generating the second task for the second function module in response to a function of a target image acquisition device set by the second function module being consistent with a function of the target image acquisition device set by the first function module;
- wherein the first function module is different from the second function module, and the one or more first image acquisition devices and the one or more second image acquisition device are connected to the electronic device.
Dependencies are inferred from the claim text.