US 12,219,251 B2
Camera control method and system, and electronic device
Fei Lv, Xi'an (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Appl. No. 17/921,255
Filed by Huawei Technologies Co., Ltd., Shenzhen (CN)
PCT Filed Mar. 30, 2021, PCT No. PCT/CN2021/083773
§ 371(c)(1), (2) Date Oct. 25, 2022,
PCT Pub. No. WO2021/218527, PCT Pub. Date Nov. 4, 2021.
Claims priority of application No. 202010340544.8 (CN), filed on Apr. 26, 2020; and application No. 202010690972.3 (CN), filed on Jul. 17, 2020.
Prior Publication US 2023/0164430 A1, May 25, 2023
Int. Cl. H04N 23/661 (2023.01); H04N 7/12 (2006.01); H04N 23/60 (2023.01); H04N 23/65 (2023.01); H04N 23/695 (2023.01)
CPC H04N 23/661 (2023.01) [H04N 7/12 (2013.01); H04N 23/60 (2023.01); H04N 23/65 (2023.01); H04N 23/695 (2023.01)] 18 Claims
OG exemplary drawing
 
1. A method implemented by an electronic device, wherein the method comprises:
triggering, by a first application running on the electronic device, a first stream-on instruction instructing a photographing apparatus of the electronic device to collect a first image and output the first image to the first application;
receiving, by the photographing apparatus through a first channel or a second channel, the first stream-on instruction, wherein the first channel is a persistent connection between a display apparatus of the electronic device and the photographing apparatus, and wherein the second channel is between the display apparatus and the photographing apparatus;
reporting, by the photographing apparatus based on the first stream-on instruction, a first stream-on state to a proxy device in the display apparatus through the first channel;
controlling, by the proxy device based on the first stream-on state, a lifting apparatus of the electronic device to lift or retract the photographing apparatus;
starting, by the photographing apparatus after being lifted, capturing the first image;
outputting the first image to the first application through the second channel; and
stopping, by the photographing apparatus after being retracted, capturing the first image, wherein the method further comprising:
starting a second application that needs to use the photographing apparatus, wherein the second application runs on the electronic device;
closing the first application or switching the first application to background in response to starting the second application;
triggering, by the first application, a first stream-off instruction instructing the photographing apparatus to stop collecting the first image and stop outputting the first image to the first application;
receiving, by the photographing apparatus through the first channel or the second channel, the first stream-off instruction;
reporting, by the photographing apparatus based on the first stream-off instruction, a first stream-off state to the proxy device through the first channel;
triggering, by the second application based on the first stream-off instruction, a second stream-on instruction instructing the photographing apparatus to collect a second image and output the second image to the second application;
receiving, by the photographing apparatus through the second channel within a preset redundancy time, the second stream-on instruction;
reporting, by the photographing apparatus based on the second stream-on instruction, a second stream-on state to the proxy device through the first channel;
making a determination, by the proxy device, that the first stream-off state and the second stream-on state are received successively within the preset redundancy time; and
discarding, by the proxy device in response to the determination, the first stream-off state and the second stream-on state, wherein the proxy device does not control, based on the first stream-off state and the second stream-on state, the lifting apparatus to lift or retract the photographing apparatus,
wherein the first application and the second application are non-background-resident applications, and wherein a non-background-resident application uses a third image collected by the photographing apparatus when running in foreground, and does not use a fourth image collected by the photographing apparatus when running in the background.