Image shooting method, electronic equipment and system

By calling the remote camera function on tablets, laptops and other devices, and using mobile phones to capture images, the problem of poor device shooting flexibility is solved, and a convenient and comfortable image capturing experience and high-quality image acquisition are achieved.

CN118741301AActive Publication Date: 2024-10-01HONOR DEVICE CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310344514.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-28
Publication Date
2024-10-01
Estimated Expiration
2043-03-28

AI Technical Summary

Technical Problem

Electronic devices such as tablets and laptops have poor flexibility when taking pictures or videos. Their cameras have limited capabilities and cannot easily capture ideal pictures, which limits the user's shooting experience.

Method used

By calling the remote camera function in the first device (such as tablet, laptop), using the second device (such as mobile phone) to capture images, and synchronizing the remote camera's capabilities and image data through near field communication or the Internet, it breaks the local camera Or obtain images from the local gallery to provide a convenient image shooting experience.

Benefits of technology

It achieves a convenient and comfortable image shooting experience on tablets, laptops and other devices, improves shooting flexibility and quality, and meets users' needs for images. Especially for devices with poor shooting flexibility, the remote camera function can be used Get high quality images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118741301A_ABST
    Figure CN118741301A_ABST
Patent Text Reader

Abstract

The invention discloses an image shooting method, electronic equipment and a system, and relates to the technical field of terminals. Wherein under the condition that the first equipment needs to acquire the image, the second equipment can be called to shoot the image. And then, the second equipment returns the shot image to the first equipment. Therefore, the limitation that the image can only be acquired from the local image library of the first equipment or the image can be shot by using the local camera of the first equipment can be broken through.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to an image capturing method, electronic equipment and system. Background Art

[0002] When using some applications in electronic devices such as tablets and laptops, the application may need to call the camera to take pictures or videos at any time. For example, when editing a document on a tablet or laptop, the user may need to insert pictures of the surrounding objects. However, due to the large size or limited camera capabilities of electronic devices such as tablets and laptops, the flexibility of taking pictures is usually low or the quality is poor, and it is not easy to take ideal pictures. Summary of the invention

[0003] The present application provides an image capturing method, electronic device and system, which can provide users with a convenient and comfortable picture or video capturing experience.

[0004] In a first aspect, the present application provides an image capture method, which is applied to a first device. The first device displays a first interface of a first application. In response to a user's first operation on the first interface (such as an operation of inserting a picture), the first device displays a first option, and the first operation is used to obtain an image (including a picture or a video). In response to the user's selection operation on the first option, the first device sends a first request to the second device indicated by the first option. The first request includes device information and a request type of the first device. The device information of the first device is used for the remote camera of the second device to distribute the image captured by the system camera of the second device to the first device according to the device information of the first device. The remote camera is an application with the following capabilities: calling the system camera to capture an image and distributing the image captured by the system camera. The request type is used to indicate that the first request calls a remote camera. The first device receives the image captured by the second device and an application identifier. The first device displays the image captured by the second device on the first interface based on the application identifier.

[0005] In summary, by using this application, when the first device needs to obtain an image, it can request the second device to capture the image. In this way, the limitation of only being able to obtain images from the local (including the local camera or the local gallery) can be broken. Especially for the first device with poor shooting flexibility such as tablets and laptops, the second device (such as a mobile phone) can be called to shoot, which can provide users with a convenient and comfortable image shooting experience.

[0006] In a possible design of the first aspect, the method further includes: the first device receives first information from the second device, the first information indicating that the second device has a remote camera capability. In response to the first information, the first device records information that the second device has a remote camera capability. Accordingly, the first device displays a first option, including: if the first device records information that the second device has a remote camera capability, the first device displays the first option.

[0007] The second device can only take pictures for other devices (such as the first device) if it has the function of a remote camera, such as being equipped with a remote camera and allowing the remote camera to be used to take pictures for other devices. Therefore, before displaying the first option, the first device needs to determine whether the second device has the function of a remote camera, so as to accurately call the device with the remote camera capability to take pictures.

[0008] In a possible design of the first aspect, the status of whether the remote camera is occupied or not can be synchronized in real time between devices with the same account. Accordingly, the above method also includes: the first device receives second information from the second device, and the second information indicates that the remote camera is occupied. In response to the second information, the first device updates the status of the remote camera to an occupied state. And / or, the first device receives third information from the second device, and the third information indicates that the remote camera is not occupied. In response to the third information, the first device updates the status of the remote camera to an unoccupied state. The first device displays a first option, including: if the status of the remote camera is an unoccupied state, the first device displays the first option.

[0009] In this way, the first device can accurately call an unoccupied remote camera to avoid calling conflicts.

[0010] In a possible design manner of the first aspect, the first option is an option for a device within a near field communication range of the first device and / or a device with the same user account logged in as the first device.

[0011] If the second device is within the near field communication range of the first device, it indicates that the first device and the second device can transmit call requests, images and other data through the near field. And if the first device and the second device log in to the same user account, it indicates that the first device and the second device can trust each other.

[0012] In this way, call requests, image data, etc. can be transmitted between mutually trusted devices via near-field communication.

[0013] In a possible design of the first aspect, the first device includes a device management service. The first device receives the first information from the second device, including: the device management service receives the first information synchronized by the second device. The first device records the information that the second device has the capability of a remote camera, including: the device management service records the information that the second device has the capability of a remote camera.

[0014] In another possible design of the first aspect, the first device may further include a communication service. The method further includes: the communication service discovers that the second device is within the near field communication range of the first device, and / or that the second device and the first device are logged in with the same user account. The communication service updates the second device to the device management service as an online device.

[0015] That is, the device management service of the first device can maintain devices that support the remote camera function and devices with the same account within the near field communication range.

[0016] In another possible design of the first aspect, the first device also includes a continuation service, and before the first device displays the first option, the method also includes: the first application sends a query request to the continuation service. The continuation service forwards the query request to the device management service. In response to the query request, if the device management service includes information that the second device has remote camera capabilities and the second device is an online device, the device management service returns the device information of the second device to the continuation service. The continuation service returns the device information of the second device to the first application. The first device displays the first option, including: the first application displays the first option corresponding to the second device based on the device information of the second device.

[0017] In this way, the first device can determine the available devices that support remote cameras, are within the near field communication range and have the same user account by querying the device management service, and provide options of the available devices to the user for selection.

[0018] In a possible design of the first aspect, the device information of the second device includes the user name of the user account (such as Tom, Jenny), the device model of the second device (such as model A, model B) and / or the device type of the second device (such as mobile phone, tablet), and the first option includes the user name, device model and / or device type.

[0019] In this way, the first option can indicate the corresponding available device. At the same time, the user name, device model, and device type are all information that does not have unique directionality, and multiple devices may have the same user name, device model, and device type, which will not leak too much information about available devices.

[0020] In a possible design of the first aspect, after the communication service discovers that the second device is within the near field communication range of the first device, and / or the second device is logged into the same user account as the first device, the method further includes: the communication service assigns a temporary ID to the second device, and the device information of the second device includes the temporary ID. Accordingly, the first device sends a first request to the second device indicated by the first option, including: the first application sends the first request to the second device indicated by the temporary ID.

[0021] In this way, privacy leakage caused by sending fixed identification information such as the MAC address of the available device and the device serial number to the target application can be avoided.

[0022] In a possible design of the first aspect, the method further includes: if the second device meets a preset condition, in response to the user's selection operation of the first option, the first device sends a first prompt message, and the first prompt message is used to prompt that the second device is shooting. Wherein, satisfying the preset condition indicates that the second device can shoot images for the first device. For example, the preset condition includes that the system camera is in an idle state and / or the second device is in a powered-on state. Thereby providing a clear instruction to the user.

[0023] In a possible design of the first aspect, the first device includes a continuation service and a communication service. Accordingly, in response to the user's selection operation on the first option, the first device sends a first request to the second device indicated by the first option, including: in response to the user's selection operation on the first option, the first application sends a second request to the continuation service, the second request includes device information of the second device and a request type, and the device information of the second device is used to indicate a device for taking images. In response to the second request, the continuation service sends a third request to the communication service, the third request includes device information of the first device, device information of the second device, an application identifier, and a request type. In response to the third request, the communication service sends the first request to the second device indicated by the device information of the second device in the third request.

[0024] In this way, the first request can be sent to the second device through the connection service and the communication service.

[0025] In a possible design of the first aspect, the first device includes a communication service and a connection service. Accordingly, the first device receives an image captured by the second device and an application identifier of the first application, including: the communication service receives the image captured by the second device and the application identifier of the first application. The communication service sends the image and the application identifier to the connection service. In this way, the image captured by the second device can be received through the communication service and the connection service.

[0026] Furthermore, the first device displays the image captured by the second device on the first interface based on the application identifier, including: the connection service sends the image to the first application indicated by the application identifier. The first application displays the image. In this way, the first device can accurately return the image to the first application indicated by the application identifier.

[0027] In a second aspect, the present application provides an image capture method, which is applied to a second device. The second device receives a first request, which includes device information of the first device, an application identifier of the first application, and a request type, and the request type is used to indicate that the first request calls a remote camera, which is an application in the second device. In response to the first request, the second device starts the remote camera and records the device information and application identifier of the first device in the remote camera. In response to starting the remote camera, the second device displays a second interface, which is a shooting preview interface of the system camera in the second device. In response to the user's shooting operation, the second device captures an image. The second device sends an image to the first device indicated by the device information of the first device in the remote camera, as well as the application identifier in the remote camera.

[0028] In summary, by using the present application, the second device can start the remote camera to call the system camera to shoot images, and distribute the images shot by the system camera to the first device, thereby providing the first device with a remote shooting capability.

[0029] In a possible design of the second aspect, the method further includes: the second device sends a second prompt message, the second prompt message is used to prompt the first device to request to call the present device (i.e., the second device) to capture an image. The second device starts the remote camera, including: in response to a user's confirmation operation on the second prompt message, the second device starts the remote camera.

[0030] In this way, the remote camera can be started only after the user confirms, thus avoiding affecting the normal use of the second device.

[0031] In a possible design of the second aspect, the second device includes a communication service and a connection service. Accordingly, the second device receives the first request, including: the communication service receives the first request. And, in response to the first request, the second device starts the remote camera and records the device information of the first device and the application identifier of the first application in the remote camera, including: in response to receiving the first request, the communication service sends a fourth request to the connection service, and the fourth request includes the device information of the first device, the application identifier of the first application, and the request type. In response to receiving the fourth request, the connection service starts the remote camera and sends the device information of the first device and the application identifier of the first application to the remote camera. The remote camera records the device information of the first device and the application identifier of the first application.

[0032] In this way, the application identifier of the first application and the device information of the first device can be accurately transmitted to the remote camera through the communication service and the connection service, so that the remote camera can clearly understand the reason for starting up and facilitate the subsequent distribution of images.

[0033] In a possible design of the second aspect, the second device further includes a system camera. The second device displays the second interface, including: the remote camera calls the system camera in the second device, and the system camera displays the second interface. The second device captures an image, including: the system camera captures the image.

[0034] In a possible design of the second aspect, the second device sends an image to the first device indicated by the device information of the first device recorded in the remote camera, and sends an application identifier of the first application recorded in the remote camera, including: the remote camera sends the image, the device information of the first device, and the application identifier of the first application to the connection service. The connection service sends the image, the device information of the first device, and the application identifier of the first application to the communication service. The communication service sends the image and the application identifier of the first application to the first device indicated by the device information of the first device.

[0035] When the second device transmits the image to the first device, it will also send the application identifier of the first application recorded in the remote camera to the first device through the connection service and the communication service in sequence, so that the first device can clearly know that the application receiving the image is the first application.

[0036] In a possible design manner of the second aspect, before the second device receives the first request, the method further includes: the second device synchronizing first information to the first device, the first information indicating that the second device has remote camera capability.

[0037] When the second device is equipped with a remote camera and allows the remote camera to be used to capture images for other devices, it can synchronize its remote camera capabilities with the account device, so that the same account device knows that the second device has the remote camera capability. Thus, the remote camera capability of the second device can be called when needed.

[0038] In a possible design of the second aspect, after the second device starts capturing images and before the second device finishes capturing images, the method further includes: the second device synchronizing second information to the first device, the second information indicating that the remote camera of the second device is occupied. After the second device finishes capturing images, the method further includes: the second device synchronizing third information to the first device, the third information indicating that the remote camera of the second device is not occupied.

[0039] In this way, the second device can synchronize the working status (occupied or unoccupied) of its remote camera to the device with the same account in real time, so that the device with the same account can know the working status of the remote camera of the second device to avoid call conflicts.

[0040] In a possible design of the second aspect, the second device includes a device management service, and the method further includes: the device management service synchronizes to the first device information that the second device has remote camera capability and / or that the remote camera of the second device is occupied or unoccupied.

[0041] In a third aspect, the present application provides an image shooting method. In which, a first device displays a first interface of a first application. In response to a first operation of a user on the first interface, the first device displays a first option, and the first operation is used to obtain an image. In response to a user's selection operation of the first option, the first device sends a first request to a second device indicated by the first option, wherein the first request includes device information of the first device, an application identifier of the first application, and a request type, and the request type is used to indicate that the first request calls a remote camera, and the remote camera is an application in the second device. The second device receives the first request. In response to the first request, the second device starts the remote camera and records the device information of the first device and the application identifier of the first application in the remote camera. In response to starting the remote camera, the second device displays a second interface, and the second interface is a viewfinder interface of a system camera in the second device. In response to the user's shooting operation, the second device shoots an image. The second device sends an image to the first device indicated by the device information of the first device in the remote camera, and the application identifier in the remote camera.

[0042] In summary, by using this application, when the first device needs to obtain an image, it can request the second device to capture the image. In this way, the limitation of only being able to obtain images from the local (including the local camera or the local gallery) can be broken. Especially for the first device with poor shooting flexibility such as tablets and laptops, the second device (such as a mobile phone) can be called to shoot, which can provide users with a convenient and comfortable image shooting experience.

[0043] In a fourth aspect, the present application further provides an electronic device, which is a first device or a second device, and includes: a memory and one or more processors, and the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code includes computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method in the above-mentioned first aspect, second aspect and any possible design method thereof.

[0044] In the fifth aspect, the present application also provides a chip system, which is applied to an electronic device including a processor and a memory. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected through lines. The interface circuit is used to receive signals from the memory of the electronic device and send signals to the processor. The signals include computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device executes the methods in the above-mentioned first aspect, second aspect and any possible design method thereof.

[0045] In a sixth aspect, the present application also provides a computer-readable storage medium, comprising computer instructions, which, when executed on an electronic device, enable a server to execute the methods in the first aspect, the second aspect and any possible design thereof.

[0046] In a seventh aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the method of the first aspect, the second aspect, and any possible design thereof.

[0047] It can be understood that the beneficial effects that can be achieved by the above-mentioned server, electronic device, chip system, computer storage medium, and computer program product can refer to the beneficial effects in the first aspect, the second aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 One of the interface diagrams of a laptop computer provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of the composition of a communication system provided in an embodiment of the present application;

[0050] Figure 3 A hardware structure diagram of an electronic device provided in an embodiment of the present application;

[0051] Figure 4A A software architecture diagram of a first device provided in an embodiment of the present application;

[0052] Figure 4B A software architecture diagram of a second device provided in an embodiment of the present application;

[0053] Figure 5 One of the interactive flow charts of the image capturing method provided in the embodiment of the present application;

[0054] Fig. 6A A schematic diagram of the principle of the capability of synchronizing remote cameras provided by an embodiment of the present application;

[0055] Figure 6BA schematic diagram of the principle of an online discovery device provided in an embodiment of the present application;

[0056] Fig. 7A The second interface diagram of the laptop computer provided in the embodiment of the present application;

[0057] Figure 7B The third interface diagram of the laptop computer provided in the embodiment of the present application;

[0058] Figure 7C The fourth interface diagram of the laptop computer provided in the embodiment of the present application;

[0059] Fig. 8A One of the interface diagrams of the mobile phone provided in the embodiment of the present application;

[0060] Figure 8B The second interface diagram of the mobile phone provided in the embodiment of the present application;

[0061] Figure 8C The third interface diagram of the mobile phone provided in the embodiment of the present application;

[0062] Fig. 9 The fifth interface diagram of the laptop computer provided in the embodiment of the present application;

[0063] Fig.10 A schematic diagram of multiple devices successively calling remote cameras of the same device provided in an embodiment of the present application;

[0064] Fig.11 The second interactive flow chart of the image capturing method provided in the embodiment of the present application;

[0065] Fig.12 The third interactive flow chart of the image capturing method provided in the embodiment of the present application;

[0066] Fig.13 The fourth interface diagram of the mobile phone provided in the embodiment of the present application;

[0067] Fig.14 A structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and the appended claims of the present application, the singular expressions "a", "said", "above", "the" and "this" are intended to also include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two). The term "and / or" is used to describe the association relationship of associated objects, indicating that three relationships can exist; for example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in a "or" relationship.

[0069] References to "one embodiment" or "some embodiments" etc. described in this specification mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Thus, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways. The term "connection" includes direct connection and indirect connection, unless otherwise specified. "First" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0070] In the embodiments of the present application, the words "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0071] The image capture method provided in the embodiment of the present application can be applied to the scene of obtaining pictures / videos when running some applications in electronic devices such as tablets and laptops. It should be understood that a video is usually composed of multiple image frames, and each image frame is an image. Therefore, for the sake of convenience, in the following, pictures / videos are referred to as images.

[0072] Taking the acquisition of pictures as an example, the above-mentioned applications may be any application with functions such as inserting pictures, editing pictures, sending pictures, scanning pictures, etc. During the operation of these applications, pictures may be acquired and inserted, edited, sent, scanned, etc.

[0073] For example, document editing applications such as word processing system (WPS), office, memo, etc. all have the function of inserting pictures, so some of the above applications may be document editing applications such as WPS, office, memo, etc.

[0074] As another example, a shopping application has a function of scanning product images, and a banking application has a function of scanning ID images, so some of the above applications may be shopping applications and banking applications.

[0075] As another example, a video editing application and a picture processing application both have the function of editing pictures, so some of the above applications may be video editing applications and picture processing applications.

[0076] Also exemplarily, if a chat application has a function of sending pictures, some of the above applications may be chat applications.

[0077] In the following, for the sake of convenience, the above applications are collectively referred to as target applications (also referred to as first applications).

[0078] The following uses the target application, which is a document editing application, as an example to illustrate the application scenario of this application:

[0079] See also Figure 1 , while the laptop is running a document editing application, it can display Figure 1 The interface 101 shown includes the edited document content, such as "travel diary...", and also includes a control 102 for inserting a picture. The laptop computer can receive a user's click operation on the control 102. In response to the user's click operation on the control 102, the laptop computer obtains the picture and inserts it into the document content. The image shooting method provided in the embodiment of the present application can be applied to the scenario where a user clicks the control 102 to obtain a picture.

[0080] In some conventional technologies, in the above-mentioned scenario of obtaining pictures, the electronic device can only obtain pictures that have been stored locally. Figure 1 The click operation of the control 102 in the interface 101 shown in FIG. 1 can display Figure 1 The interface 103 shown includes a dialog box 104. In the dialog box 104, the user can select a picture from the pictures stored locally on the notebook computer and insert it into the document being edited.

[0081] However, in some cases, the electronic device currently running the target application (such as Figure 1 The laptop computer in the computer does not store the pictures required by the user, so the user's need to obtain pictures cannot be met.

[0082] In other conventional technologies, the electronic device can support taking pictures directly by calling a local camera, and then obtaining the pictures taken by the local camera. Figure 1 The click operation of the control 102 in the interface 101 shown can display Figure 1 The interface 103 shown in the figure includes a dialog box 104. At this time, the user can first use the camera in the notebook computer to take a picture, and then find the corresponding picture in the dialog box 104 and insert it into the document being edited.

[0083] However, in some cases, the electronic device currently running the target application may not be able to conveniently take suitable pictures. A typical possibility is that the electronic devices such as tablets and laptops are large in size or have limited camera capabilities, which will result in low flexibility or poor quality of taking pictures, and it is not possible to conveniently take ideal pictures.

[0084] It can be seen that if in the above-mentioned image acquisition scenario, the electronic device can only use the local camera to capture images, or obtain images that have been stored locally, it is very likely that the image requirements of the target application cannot be met.

[0085] Based on this, an embodiment of the present application provides an image capture method that can be applied to the above-mentioned scene of acquiring images. Among them, when an electronic device acquires an image, other devices can be called to capture the image. Then, the other devices return the captured image to the electronic device. In this way, the method can not only break the limitation of only being able to acquire images locally (including local cameras or local galleries). Especially for electronic devices with poor shooting flexibility such as tablets and laptops, other electronic devices can be called to shoot, which can provide users with a convenient and comfortable image capture experience.

[0086] The present application also provides a communication system. Figure 2 , the communication system includes a first device (such as Figure 2 The laptop computer 210 shown) and at least one second device (such as Figure 2 The mobile phone 220 and tablet 230 are shown).

[0087] The first device has a target application installed in it, and when the first device runs the target application, it may need to obtain an image. The second device includes an application that implements remote shooting call and image distribution functions (referred to as a remote camera for short), and the remote camera can receive the call request of the first device and distribute the image captured by the system camera of the second device to the first device.

[0088] The first device and the second device can be communicatively connected. The communication connection includes an Internet connection. Through the Internet connection, the second device can synchronize (i.e. send) its support for remote camera functions to the first device, so that the first device can discover and call the remote camera of the second device. In addition, the communication connection also includes a near field communication connection. Through the near field communication connection, the first device can send a call request to the second device point-to-point, and the second device can transmit the captured image to the first device. Among them, near field communication includes Bluetooth, Wireless Fidelity (Wireless Fidelity, WIFI), Near Field Communication (Near Field Communication, NFC), etc.

[0089] It should be noted that, in the embodiments of the present application, compared with Internet connection: transmitting call requests and image data through near-field communication, on the one hand, can transmit information in a point-to-point manner, which is more conducive to ensuring information security. On the other hand, if near-field communication technologies such as Bluetooth or NFC that do not rely on the network are used, the information transmission rate will not be affected by network factors, and information can be transmitted more stably and quickly; moreover, even if the first device and / or the second device are not connected to the network, the remote camera call and image data transmission can be realized.

[0090] It should be noted that the first device and the second device may not establish an Internet connection and a near field communication connection at the same time. For example, in the process of calling a remote camera, only a near field communication connection may be established without establishing an Internet connection.

[0091] In some examples, the first device and the second device may have the same system-level user account logged in, such as the same Account number, same Accounts, etc. It should be understood that devices with the same account (such as the first device and the second device) that log in to the same user account can be added to the same trust ring through identity authentication. Therefore, information interaction can be performed only within the trust ring, such as synchronizing the capabilities of remote cameras, transmitting call requests, transmitting images, etc., to ensure device security.

[0092] The first device and the second device are merely divided based on the different functional roles played by the electronic device in the scene of acquiring the picture. The first device is the image demanding device, and the second device is the image providing device. It should be understood that the same electronic device can be used as the first device in some scenes and as the second device in other scenes. For example, if the above Figure 2 The mobile phone 220 or tablet 230 in the embodiment obtains the image from other devices, that is, the image requesting device, which can also be used as the first device. Figure 2 The laptop computer 210 has a remote camera capability, which can also serve as an image providing device, ie, as a second device.

[0093] Exemplarily, the first device / second device may be a handheld device, a vehicle-mounted device, etc., such as a mobile phone, a tablet, a laptop computer, a PDA, a mobile internet device (MID), a virtual reality (VR) device, an augmented reality (AR) device, a wireless device in industrial control, a wireless device in self-driving, a wireless device in remote medical surgery, a wireless device in a smart grid, a wireless device in transportation safety, a wireless device in a smart city, a wireless device in a smart home, a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with a wireless communication function, a personal computer (PC), a wireless communication device, ... Computer, PC), computing device or other processing device connected to a wireless modem, vehicle-mounted device, wearable device, terminal device in a 5G network, or terminal device in a future evolved public land mobile communication network (public landmobile network, PLMN), etc., the embodiments of the present application are not limited to this.

[0094] The first device / second device may also be a wearable device, such as a smart watch or smart glasses, and may focus on a certain type of application function and be used in conjunction with other devices such as smart phones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0095] The first device / second device mentioned above may also be a terminal device in an Internet of Things (IoT) system.

[0096] See also Figure 3 , is a hardware structure diagram of an electronic device (such as a first device / a second device) provided in an embodiment of the present application. Figure 3 As shown, taking the electronic device as a mobile phone as an example, it may include: a processor 310, an external memory interface 320, an internal memory 321, a universal serial bus (USB) interface 330, a charging management module 340, a power management module 341, a battery 342, an antenna 1, an antenna 2, a mobile communication module 350, a wireless communication module 360, an audio module 370, a speaker 370A, a receiver 370B, a microphone 370C, an earphone interface 370D, a sensor module 380, a button 390, a motor 391, an indicator 392, a camera 393, a display screen 394, and a subscriber identification module (SIM) card interface 395, etc.

[0097] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0098] The processor 310 may include one or more processing units, for example, the processor 310 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0099] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0100] The charging management module 340 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. While the charging management module 340 charges the battery 342, it can also power the electronic device through the power management module 341.

[0101] The power management module 341 is used to connect the battery 342, the charging management module 340 and the processor 310. The power management module 341 receives input from the battery 342 and / or the charging management module 340, and supplies power to the processor 310, the internal memory 321, the external memory, the display screen 394, the camera 393, and the wireless communication module 360. The power management module 341 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.

[0102] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 350, wireless communication module 360, modem processor and baseband processor.

[0103] The electronic device implements the display function through a GPU, a display screen 394, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 394 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 310 may include one or more GPUs that execute program instructions to generate or change display information.

[0104] The electronic device can realize the shooting function through ISP, camera 393, video codec, GPU, display screen 394 and application processor.

[0105] In some embodiments, when the electronic device acts as a second device, it can call the camera 393 to capture an image based on a request from the first device and return the image to the first device.

[0106] The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 310 through the external memory interface 320 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0107] The internal memory 321 can be used to store computer executable program codes, which include instructions. The processor 310 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 321. The internal memory 321 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the internal memory 321 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0108] The electronic device can implement audio functions such as music playing and recording through the audio module 370, the speaker 370A, the receiver 370B, the microphone 370C, the headphone jack 370D, and the application processor.

[0109] The key 390 includes a power key, a volume key, etc. The key 390 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.

[0110] Motor 391 can generate vibration prompts. Motor 391 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 394, motor 391 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0111] Indicator 392 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0112] The SIM card interface 395 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device by inserting the SIM card interface 395 or pulling the SIM card out of the SIM card interface 395. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 395 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.

[0113] In the embodiment of the present application, the software system of the electronic device (such as the first device / the second device) can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the system as an example, the software structures of the first device and the second device are exemplified.

[0114] See also Figure 4A , is a software architecture diagram of the first device provided in the embodiment of the present application. Figure 4B , is a software architecture diagram of the second device provided in the embodiment of the present application. Figure 4A and Figure 4B As shown in FIG. 1 , the layered architecture divides the software into several layers, each with a clear role and division of labor. Data is transmitted and communicated between layers through software interfaces. In some embodiments, The system is divided into five layers, from top to bottom: application layer, application framework layer, Runtime( runtime) and system libraries, hardware abstraction layer (HAL), and kernel layer.

[0115] The application layer can include a series of application packages, which can include applications such as memo, calculator, call, browser, etc.

[0116] In an embodiment of the present application, the application layer of the first device also includes target applications, such as document editing applications such as WPS, office, memo, shopping applications, banking applications, video editing applications, image processing applications, social applications, etc.

[0117] The application layer of the second device also includes a remote camera, which is used to receive the call from the first device and call the system camera of the second device to take an image and then transmit it back to the first device. In other words, compared with the system camera, the remote camera supports the caller's orchestration transmission and can decide to whom to transmit the image.

[0118] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0119] The application framework layer may include a notification manager, a window manager, a resource manager, a content provider, and a view system, etc.

[0120] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, prompting text information in the status bar, issuing a prompt sound, terminal device vibration, indicator light flashing, etc. The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc. The resource manager provides various resources for applications, such as localized strings, icons, pictures, layout files, video files, etc. The content provider is used to implement data sharing between different applications, allowing one program to access data in another program while ensuring the security of the accessed data. The view system can be responsible for the interface drawing and event processing of the application.

[0121] Furthermore, the application framework layer may also include connection services, application authentication services, communication services, and device management services (Profile).

[0122] The connection service provides the target application with near-field device discovery awareness and the ability to send data and files. For example, the connection service can be responsible for accessing the target application. And, after the target application accesses the connection service, the connection service can also be responsible for querying the target application for devices that can be called and shot (i.e., available devices below), and transmitting call requests, images and other data across devices.

[0123] The application authentication service can be responsible for checking the legitimacy of the application, such as checking the identity and permissions of the application. For example, the application authentication module can be responsible for checking the legitimacy of the target application requesting access to the continuation service. Only when the target application is confirmed to be legitimate, the target application is allowed to access the continuation service. This avoids providing illegal applications with the service of calling the remote camera for shooting.

[0124] Communication services such as The smart interconnection service (Magic Link) can be used to realize data transmission across devices, security authentication and account authentication of devices with the same account, self-discovery and self-organizing network of devices, etc. For example, through the communication service, the first device can discover the second device in the near field and verify the identity of the second device, and after verifying that the second device is a trusted device (i.e., a device logged in with the same user account), transmit call requests and images between the first device and the second device.

[0125] The device management service can be regarded as a database for synchronizing data between devices, and the database can record the capabilities of devices with the same account, the situation in which the capabilities are occupied, information about near-field devices, etc. For example, the device management service of the first device can record information such as the remote camera capability of the second device, the situation in which the remote camera capability is occupied, and the devices within the near-field communication range.

[0126] The runtime includes the core library and the virtual machine. The runtime is responsible for Scheduling and management of the system.

[0127] The core library consists of two parts: one is the function called by Java language, and the other is the core library of Android.

[0128] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0129] The system library may include multiple functional modules, such as media libraries, function libraries, graphics processing libraries (such as OpenGL ES), etc.

[0130] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0131] The function library provides developers with API interfaces for multiple services, making it easy for developers to quickly integrate and implement various functions.

[0132] The graphics processing library is used to implement graphics drawing, image rendering, synthesis and layer processing.

[0133] The hardware abstraction layer is an abstracted structure between the kernel layer and the Android runtime. The hardware abstraction layer can be a package of the hardware driver, providing a unified interface for the call of the upper layer application. The hardware abstraction layer can include a Bluetooth module, a WIFI module, etc. Exemplarily, the Bluetooth module and the WIFI module can shield the specific hardware implementation details of the Bluetooth driver and the WIFI driver in the kernel layer, and the upper layer application can implement the Bluetooth function and the WIFI function by calling the interface without having to know the specific implementation method of the kernel layer hardware driver.

[0134] The kernel layer is the layer between hardware and software. The kernel layer may include display drivers, camera drivers, audio drivers, Bluetooth drivers, WiFi drivers, Universal Serial Bus (USB) drivers, CPU drivers, etc.

[0135] In some embodiments, communication services (such as Magic Link) can connect across devices through relevant near-field communication modules such as Bluetooth drivers and WiFi drivers, thereby achieving self-discovery and self-organizing networking of devices.

[0136] The present application embodiment will be combined with Figure 4A and Figure 4B The software architecture of the present invention is used to illustrate the implementation of the image shooting method: after the target application of the first device accesses the connection service, if the target application needs to obtain an image, the target application can query the available devices through the connection service and device management service of the first device in sequence, and the available devices include the second device. Then, the target application sends a call request to the second device in the available devices through the connection service and communication service of the first device in sequence, requesting to call the remote camera of the second device. After passing through the communication service and connection service of the second device in sequence, the connection service of the second device receives the call request. The connection service of the second device starts the remote camera of the second device to call the system camera of the second device to shoot an image. After the system camera of the second device shoots the image, it can be transmitted to the target application of the first device through the remote camera, connection service, communication service of the second device, and the communication service and connection service of the first device. In this way, the target application of the first device obtains the image shot by the second device, breaking the limitation of only being able to obtain images from the local (including the local camera or the local gallery), and more flexibly meeting the image needs of the electronic device.

[0137] At this point, it should be noted that the above Figure 4A and Figure 4B All based on Android TM The system is taken as an example to illustrate the software architecture of the first device and the second device. In practice, the operating system of the first device and / or the second device may also be Windows TM System. In Windows TM In the operating system, the application layer (such as the PC manager application) can also integrate the connection service, application authentication service, communication service, device management service in the application framework layer, and the functions of the Bluetooth module and WIFI module in the hardware abstraction layer. The application layer completes near-field communication with the other end by calling the Bluetooth driver or WIFI driver to realize data transmission between devices.

[0138] The image capturing method provided in the embodiment of the present application can be implemented in a communication system composed of a first device and a second device having the above-mentioned software and hardware structure. The image capturing method provided in the embodiment of the present application will be described in detail below in conjunction with the accompanying drawings, taking the first device being a laptop computer 210 and the second device being a mobile phone 220 as an example.

[0139] See also Figure 5 The image capturing method provided in the embodiment of the present application comprises the following steps:

[0140] S501. The notebook computer 210 discovers (the mobile phone 220 is) a device supporting a remote camera and an online device.

[0141] The laptop computer 210 can determine an available device that supports a remote camera and can transmit images using near field communication, and then call the remote camera of the available device to capture images. Then, the laptop computer 210 can discover devices that support remote cameras and online devices within the near field communication range.

[0142] In some embodiments, the process of the laptop 210 discovering a device that supports a remote camera may include:

[0143] For any device, if the same user account is logged in to the device and the laptop 210, and the device supports remote camera, the device can synchronize its remote camera capability to the laptop 210 via the Internet. Accordingly, the laptop 210 can record the device as a device that supports remote camera.

[0144] For example, see Fig. 6A , the user accounts logged in on the laptop 210, the mobile phone 220 and the tablet 230 are all Account a belongs to the same account device, and both the mobile phone 220 and the tablet 230 support remote cameras. Then, the mobile phone 220 and the tablet 230 can report the information that they have the ability of remote cameras to the cloud through the Internet. The cloud can send the information that the mobile phone 220 and the tablet 230 have the ability of remote cameras to all the devices with the same account, such as sending the information that the mobile phone 220 has the ability of remote cameras to the laptop 210 and the tablet 230, and sending the information that the tablet 230 has the ability of remote cameras to the laptop 210 and the mobile phone 220. In this way, the laptop 210 can obtain the information that the mobile phone 220 and the tablet 230 have the ability of remote cameras, and can record the following information "Tablet 230, supports remote cameras; mobile phone 220, supports remote cameras". For example, the laptop 210 can record "Tablet 230, supports remote cameras; mobile phone 220, supports remote cameras" in the form of an array or matrix, etc., and the embodiments of the present application do not specifically limit this.

[0145] And, the process of the laptop computer 210 discovering the online device may include:

[0146] For any device, if the laptop 210 detects that the device is within the near field communication range of the laptop 210 and verifies that the user account logged in to the device is the same as the user account logged in to the laptop 210, the laptop 210 can mark the device as an online device. For example, if the laptop 210 and the device both have Bluetooth turned on, and the laptop 210 scans the device through Bluetooth, or the device and the laptop 210 are connected to the same Wifi, it can be determined that the device is within the near field communication range of the laptop 210. On this basis, the laptop 210 and the device exchange identity information through near field to verify that both are logged in with the same user account, and the device can be determined to be an online device.

[0147] Take Bluetooth communication as an example, see Figure 6B , the laptop computer 210 scans the mobile phone 220, the tablet computer 230 and the mobile phone 610 via Bluetooth, and the laptop computer 210, the mobile phone 220, the tablet computer 230 and the mobile phone 610 are all logged in with the user account a, and the laptop computer 210 can mark the mobile phone 220, the tablet computer 230 and the mobile phone 610 as online devices.

[0148] After S501, the notebook computer 210 finds the device supporting the remote camera and the online device, in response to the user's operation of obtaining a picture (such as clicking Fig. 7A The laptop computer 210 may determine an online device that supports a remote camera as an available device for capturing an image. Fig. 6A In the example, the devices supporting the remote camera are the mobile phone 220 and the tablet 230. Figure 6B In the example, the online devices are the mobile phone 220, the tablet 230 and the mobile phone 610. Then, the laptop computer 210 may determine the mobile phone 220 and the tablet 230 as available devices for capturing images.

[0149] It should be noted that the above S501 is continuous. After booting, the laptop 210 will continuously discover devices and online devices that support remote cameras. For example, if a new device logs in to the same user account as the laptop 210 and supports remote cameras, the new device will be discovered by the laptop 210 as a device that supports remote cameras. For another example, if a device that has been discovered to support remote cameras no longer provides the ability of remote cameras, the laptop 210 will remove the device from the devices that support remote cameras. For another example, if a new device enters the near-field communication range of the laptop 210, and the new device logs in to the same user account as the laptop 210, the new device will be discovered by the laptop 210 as an online device. For another example, if a device that has been discovered to be an online device exceeds the near-field communication range of the laptop 210, or switches the logged-in user account, the laptop 210 will remove the device from the online devices.

[0150] S502: The notebook computer 210 receives an image acquisition operation (also referred to as a first operation).

[0151] In some embodiments, an acquisition control is provided in the application interface (also referred to as the first interface) of the target application for acquiring an image. The acquisition operation may be a preset operation of the acquisition control by the user, such as click, long press, and the like.

[0152] For example, see Fig. 7A , get the control as Fig. 7A As shown in the interface 701 , the acquisition operation of “Picture” 702 may be a click operation of the user on “Picture” 702 in the interface 701 .

[0153] Another example, participate Figure 7B , get the control including Figure 7B In the “picture” 702 in the interface 701, the acquisition operation includes a user clicking on the “picture” 702 in the interface 701. In response to the user clicking on the “picture” 702 in the interface 701, the laptop computer 210 may display Figure 7B The interface 706 shown in the figure includes two options: "Local Gallery" and "Remote Camera" 707. "Local Gallery" can be used to trigger the acquisition of images from the local gallery of the laptop computer 210. "Remote Camera" 707 can be used to trigger the call of the remote camera of other devices (such as the mobile phone 220) to capture images. In this example, the acquisition control also includes Figure 7B In the “remote camera” 707 in the interface 706 shown, the acquisition operation also includes a user clicking operation on the “remote camera” 707 in the interface 706. That is, the acquisition operation includes multiple operations of the user.

[0154] Of course, the acquisition operation is not limited to this. In other embodiments, the acquisition operation may also be a preset gesture of the user on the application interface of the target application, such as sliding, long pressing, etc. Alternatively, the acquisition operation may also be an operation of the user inputting a preset voice, such as inputting the voice of "insert picture".

[0155] S503 . In response to the acquisition operation, the notebook computer 210 displays options of available devices, where the available devices are online devices that support remote cameras.

[0156] If there are multiple available devices, multiple options corresponding to the multiple available devices may be displayed, and the option of each available device is used to trigger the remote camera of the corresponding available device to capture an image.

[0157] In addition, the options for available devices include at least one of the user name of the user account logged in to the available device (such as Tom, Jenny), the device model of the available device (such as model A, model B, etc.), and the device type (such as mobile phone, tablet, etc.), which is used to indicate the available devices corresponding to each option.

[0158] The acquisition operation is the user's Fig. 7A Taking the click operation of "picture" 702 in the interface 701 as an example, the laptop computer 210 responds to the user's click Fig. 7A Clicking the "Picture" 702 in the interface 701 can display Fig. 7A Interface 703 is shown. Compared with interface 103, interface 703 includes not only the option of obtaining images from the local gallery, i.e., the "local gallery" in interface 703, but also the options of available devices, such as "Camera of Tom's Model A mobile phone" 704 and "Camera of Tom's Model B tablet" 705. Among them, "Tom" is the user name of the user account, "Model A" and "Model B" are device models, and "mobile phone" and "tablet" are device types. "Camera of Tom's Model A mobile phone" can be used to trigger the remote camera of Tom's Model A mobile phone (such as mobile phone 220) to capture images, and "Camera of Tom's Model B tablet" can be used to trigger the remote camera of Tom's Model B tablet (such as tablet 230) to capture images.

[0159] To obtain the operation including the user Figure 7B The click operation of "Picture" 702 in the interface 701 and the user's Figure 7B Taking the click operation of "remote camera" 707 in the interface 706 as an example, the laptop computer 210 responds to the user's click. Figure 7B Clicking the "remote camera" 707 in the interface 706 can display Figure 7BInterface 708 is shown. Similar to interface 703, interface 708 also includes options for available devices, such as “camera of Tom’s model A mobile phone” 704 and “camera of Tom’s model B tablet” 705.

[0160] S504 , the notebook computer 210 receives the user's selection operation of the mobile phone 220 option among the available device options.

[0161] The option of the mobile phone 220 may also be referred to as the first option. The selection operation may be a click operation, a long press operation, a slide operation, etc. The following mainly takes the click operation as an example for explanation.

[0162] The options for mobile phone 220 are Fig. 7A Taking “Camera of Tom’s Model A Mobile Phone” 704 in the interface 703 as an example, the selection operation on the option of the mobile phone 220 may be a click operation on “Camera of Tom’s Model A Mobile Phone” 704 in the interface 703 .

[0163] It should be noted that, in the aforementioned S503 and S504, the user manually selects the mobile phone 220 for illustration. In practice, in response to the acquisition operation, the laptop computer 210 may also automatically select the mobile phone 220.

[0164] Exemplarily, the laptop 210 may automatically select the mobile phone 220 based on the priority of the available devices. For example, according to the shooting flexibility, the priority from high to low is: mobile phone, tablet and laptop computer. Then, when the available devices include the mobile phone 220 and the tablet 230, the laptop 210 may automatically select the mobile phone 220 to call the remote camera. For another example, the more times it is a called device, the higher the priority, and the fewer times it is a called device, the lower the priority. If the available devices include the mobile phone 220 and the tablet 230, and the number of times the mobile phone 220 is called is more than the number of times the tablet 230 is called, the laptop 210 may automatically select the mobile phone 220 to call the remote camera.

[0165] As another example, the laptop computer 210 may record the information of the selected available device each time after selecting an available device, and automatically select the previously selected available device based on the recorded available device information in response to the acquisition operation this time. In some scenarios, in response to the acquisition operation, the available devices determined by the laptop computer 210 may not include the previously selected available device. If the previously selected available device is not included in the available devices, the laptop computer 210 may automatically select based on the priority, or the user may select manually. In this way, it is ensured that an available device is selected.

[0166] S505 , in response to the selection operation, the notebook computer 210 sends a remote camera calling request to the mobile phone 220 .

[0167] The calling request (also referred to as the first request) is used to request to call the remote camera.

[0168] Exemplarily, in response to a user's Fig. 7A By selecting the “camera of Tom's model A mobile phone” 704 in the interface 703 , the notebook computer can send a remote camera call request to the mobile phone 220 to request to call the remote camera of the mobile phone 220 to realize shooting.

[0169] Among them, the call request includes the capability information of the remote camera (the capability information of the remote camera can indicate the capability called by the call request, that is, the call type of this call, so the capability information of the remote camera can also be called the request type), the device information of the laptop computer 210 and the application identifier of the target application. The capability information of the remote camera, such as the identifiers "remote camera", "remote camera", etc., is used to indicate that the capability called is the capability of the remote camera. The device information of the laptop computer 210, such as the Media Access Control Address (MAC), the device serial number, etc., can uniquely indicate the information of the laptop computer 210, which is used to indicate that the device requesting the call is the laptop computer 210; and the application identifier of the target application is used to indicate that the application requesting the call is the target application. The above-mentioned device information and application identifier are mainly used for the mobile phone 220 to determine the receiving object of the image after capturing the image, that is, the receiving object is the target application in the laptop computer 210.

[0170] In some embodiments, if the mobile phone 220 meets the preset conditions for taking images, in response to the selection operation, the laptop computer 210 may also issue a prompt (also referred to as first prompt information) that the mobile phone 220 is taking pictures. If the preset conditions are met, it means that the mobile phone 220 has the conditions for taking pictures. In a specific implementation, the preset conditions include: the second device is in a powered-on state, the system camera of the mobile phone 220 is in an idle state, etc. The idle state means that the system camera is not running in the foreground, for example, the mobile phone 220 currently does not display the shooting viewfinder interface.

[0171] For example, if the system camera of the mobile phone 220 is in an idle state and the mobile phone 220 is in a powered-on state, then in response to the user's Fig. 7A The interface 703 or Figure 7B When selecting "Tom's Model A mobile phone camera" 704 in the interface 708, the laptop computer 210 may display Figure 7CThe interface 709 shown includes a prompt "Tom's A-type mobile phone camera is shooting" 710, thereby prompting that the mobile phone 220 is shooting. The prompt may automatically disappear after being displayed for a preset time. Alternatively, after displaying the prompt, the laptop computer 210 will cancel the display of the prompt in response to a user's cancel operation to cancel the display of the prompt. For example, the cancel operation may be a user clicking the "Cancel" button in the interface 706. If no cancel operation is received, the laptop computer 210 will continue to display the prompt.

[0172] On the contrary, if the mobile phone 220 does not meet the preset conditions for shooting an image, such as the mobile phone 220 is displaying a shooting view interface or the mobile phone 220 is turned off, the laptop computer 210 may also issue a prompt that the mobile phone 220 cannot shoot. In this case, in response to the user's preset operation (such as a return operation, an operation to close the prompt, etc.), the laptop computer 210 may continue to display the options of available devices. In this way, the user can reselect an available device and call it.

[0173] It should be understood that in response to the selection operation, the laptop computer 210 can send a remote camera call request to the mobile phone 220, that is, at this time, the laptop computer 210 can interact with the mobile phone 220. Then, the laptop computer 210 can obtain information about whether the system camera of the mobile phone 220 is in an idle state and whether the mobile phone 220 is in a powered-on state by interacting with the mobile phone 220, so as to determine whether the mobile phone 220 meets the preset conditions for capturing an image.

[0174] S506 . In response to the calling request, the mobile phone 220 starts the remote camera to call the system camera to capture an image.

[0175] After the mobile phone 220 starts the remote camera, the remote camera can call the system camera to capture images. For example, after receiving the call request, the mobile phone 220 can display Fig. 8A The interface 801 shown is a shooting and framing interface of the system camera (also referred to as a second interface). In response to the user clicking the shooting button 802 in the interface 801, the mobile phone 220 can complete the shooting of a picture.

[0176] Furthermore, when the mobile phone 220 starts the remote camera, it will also record the device information in the calling request in the remote camera, which is used to instruct the notebook computer 210 to call the remote camera so that the remote camera can clearly know the recipient of the image.

[0177] It should be understood that the system camera only has the ability to shoot, but does not have the business function of remote distribution. In the embodiment of the present application, a remote camera is deployed on the system camera. The remote camera can call the system camera to shoot. In addition, the remote camera can also perform remote distribution based on the device information in the call request. In this way, the image captured by the system camera is distributed to the laptop computer 210.

[0178] In some scenarios, when the mobile phone 220 receives the call request, it may be in use, such as using the mobile phone 220 to make a call, play a game, etc. At this time, if the remote camera is directly called to further call the system camera to take pictures, the use of the mobile phone 220 may be affected.

[0179] Based on this, in some embodiments, the mobile phone 220 can send a prompt (also called second prompt information) to the laptop computer 210 to call the remote camera in response to the call request, and start the remote camera only after receiving a confirmation event to confirm starting the remote camera. In this way, the use of the mobile phone 220 can be avoided from being affected.

[0180] Exemplarily, the mobile phone 220 may display, in response to the call request, Figure 8B The interface 803 shown in the figure includes a prompt "Laptop 210 wants to turn on the remote camera, do you want to turn it on now?", and the interface 803 also includes two options "Yes" and "No". The mobile phone 220 will start the remote camera only when the user selects the "Yes" option in the interface 803. That is, the confirmation event includes the user's selection operation of the "Yes" option in the interface 803. For example, in response to the user's selection operation of the "Yes" option in the interface 803, the mobile phone 220 will display Figure 8B Interface 801 is shown.

[0181] On the contrary, in response to the user's selection operation of the "No" option in the interface 803, the mobile phone 220 can restore the interface before displaying the prompt of the laptop computer 210 calling the remote camera, such as displaying Figure 8B Interface 804 shown continues to play the video.

[0182] In another exemplary embodiment, the mobile phone 220 may display a Figure 8C The interface 805 shown in the figure includes a prompt "Laptop 210 wants to turn on the remote camera, do you want to turn it on now?", and the interface 805 also includes two options "Yes" and "No, turn it on later". In response to the user's selection operation of the "Yes" option in the interface 805, the mobile phone 220 can start the remote camera. That is, the confirmation event includes the user's selection operation of the "Yes" option in the interface 805. For example, in response to the user's selection operation of the "Yes" option in the interface 805, the mobile phone 220 will display Figure 8CInterface 801 is shown.

[0183] On the contrary, in response to the user's selection of the "No, open later" option in the interface 805, the mobile phone 220 may display Figure 8C The interface 806 shown in the figure includes multiple delay time lengths, such as 1 minute, 2 minutes, 3 minutes, etc. The user can select a target time length from the multiple delay time lengths. In response to the user's selection operation on the target time length (such as 5 minutes), the mobile phone 220 can start timing (such as starting at 9:00) and after the timing reaches the target time length (such as reaching 5 minutes at 9:05), the remote camera is started, such as after the interface 807 is displayed. That is, the confirmation event includes the user's selection operation on the target time length in the interface 806 and the timing reaching the target time length. For example, in response to the user's selection operation on the target time length in the interface 805 and the timing reaches the target time length, the mobile phone 220 will display Figure 8C Interface 801 is shown.

[0184] In addition, in response to the rejection event of rejecting the remote camera startup, the mobile phone 220 does not need to start the remote camera, and returns the feedback information of rejecting the call to the laptop 210. Exemplarily, the prompt of the laptop 210 to call the remote camera includes a rejection control, such as Figure 8B In the "No" option in the interface 803 shown, the rejection event may be a user's click, long press, or other operation on the rejection control. In another exemplary embodiment, the rejection event may be an event that the mobile phone 220 is displaying a preset interface. The preset interface may be an application interface of a high-authority application, such as a call interface of a call application. Thus, the operation of the high-authority application may be interrupted. The preset interface may be an interface for using a system camera, such as a photo taking interface, a video call interface, etc. Thus, interruption of the operation of the system camera may be avoided.

[0185] S507 , after completing the shooting, the mobile phone 220 transmits the image to the notebook computer 210 .

[0186] In the mobile phone 220 , after the system camera captures an image, the mobile phone 220 may transmit the image to the laptop computer 210 based on the device information of the laptop computer 210 recorded by the remote camera.

[0187] In some scenarios, multiple applications in the laptop computer 210 may call remote cameras of different devices in a short time interval. For example, application 1 in the laptop computer 210 calls the remote camera of the mobile phone 220, and then application 2 in the laptop computer 210 calls the remote camera of the tablet 230. Then, the mobile phone 220 and the tablet 230 may transmit the captured images to the laptop computer 210 almost at the same time. At this time, the laptop computer 210 may find it difficult to decide which application in the laptop computer 210 to feed the images from the mobile phone 220 and the images from the tablet 230 respectively.

[0188] In view of the above problem, in some embodiments, in the above S505, the laptop computer 210 can further carry the application identifier of the target application in the call request. Then, the application identifier of the target application is also transmitted to the mobile phone 220. Correspondingly, in S506, when the mobile phone 220 starts the remote camera, it will not only record the device information in the call request in the remote camera, but also record the application identifier to instruct the target application in the laptop computer 210 to call the remote camera to further clarify the receiving object of the image. And, in S507, when the mobile phone 220 transmits the image to the laptop computer 210, it will also transmit the application identifier of the target application recorded in the remote camera to instruct the laptop computer 210 to feed back the image to the target application. In this way, by feeding back the image and the application identifier to the laptop computer 210 together, the laptop computer 210 can clarify the receiving application of the image while receiving the image, so that the image can be accurately fed back to the corresponding application.

[0189] S508 : The notebook computer 210 displays the image captured by the mobile phone 220 .

[0190] For example, after receiving the picture, the laptop computer 210 may display Fig. 9 The interface 901 shown in FIG. 1 includes a picture 902. In addition, the interface 901 also includes a prompt “Tom’s A-model phone camera is shooting” 903 and a “Cancel” button 904. In response to the user clicking the “Cancel” button 904, the laptop computer 210 may display a Fig. 9 Interface 905 is shown. The prompt “Tom’s A-model phone camera is shooting” 903 is no longer displayed in interface 905, and the user can continue to edit the document.

[0191] In some scenarios, multiple devices may call the remote camera of the same device in a short time interval. Fig.10 At 8:30, the laptop computer 210 calls the remote camera of the mobile phone 220 to take pictures, and between 8:30 and 8:32, the tablet computer 230 calls the remote camera of the mobile phone 220 to take pictures.

[0192] However, at the same time, the remote camera of the same device can only be called by one device. In other words, at the same time, the remote camera of the same device can only be occupied by one device. Fig.10After the laptop 210 calls the remote camera of the mobile phone 220, the remote camera of the mobile phone 220 is always in the working state occupied by the laptop 210 during the period from 8:30 to 8:32. Therefore, between 8:30 and 8:32, the tablet 230 will not be able to successfully call the remote camera of the mobile phone 220, and can only wait until the remote camera of the mobile phone 220 is unoccupied before the tablet 230 can successfully call the remote camera of the mobile phone 220, which will lead to low calling efficiency.

[0193] Regarding the above Fig.10 For a similar scenario, see Fig.11 In some embodiments, after the laptop computer 210 sends the call request to the mobile phone 220, such as after S505, the following steps are further included:

[0194] S1101. In response to starting the remote camera, the mobile phone 220 synchronizes the working status of its remote camera as occupied (also referred to as second information) to the device with the same account (such as the laptop computer 210).

[0195] Exemplarily, the user accounts logged in to the laptop computer 210, the mobile phone 220 and the tablet 230 are all Honor account a. Then, in response to the call request from the laptop computer 210, after starting the remote camera, the mobile phone 220 can synchronize the working status of its remote camera to the laptop computer 210 and the tablet 230 as occupied.

[0196] After executing S1101 , the same account device (such as the laptop computer 210 ) may determine that the remote camera in the mobile phone 220 is being occupied.

[0197] And, in this embodiment, after the shooting is completed, such as after S507, the following steps are further included:

[0198] S1102 . In response to completing the shooting, the mobile phone 220 synchronizes the working state of the remote camera of the mobile phone 220 to the device with the same account (such as the laptop computer 210 ) as unoccupied (also referred to as the third information).

[0199] After executing S1102 , the device with the same account may determine that the remote camera in the mobile phone 220 is not occupied.

[0200] In this embodiment, the available device is an online device that supports a remote camera and whose remote camera is not occupied. For example, if the mobile phone 220 is an online device that supports a remote camera, but its remote camera is occupied, it will not be determined as an available device. Then, after S1101 and before S1102, if the device with the same account (such as the tablet 230) receives an image acquisition operation, the online device that supports a remote camera but whose remote camera is occupied (such as the mobile phone 220) will not be determined as an available device, and the option of the mobile phone 220 will not be displayed subsequently, or the option of the mobile phone 220 in an inoperable state (such as a grayed-out state) will be displayed. As a result, the remote camera of the mobile phone 220 cannot be called, and conflicts in calls can be avoided.

[0201] Previous Figure 5-Figure 11 The image capturing method provided by the embodiment of the present application is mainly described with the laptop computer 210 and the mobile phone 220 as the execution body. The image capturing method provided by the embodiment of the present application will be further described below in combination with the software modules of the laptop computer 210 and the mobile phone 220. Among them, for the various software modules in the laptop computer 210 and the mobile phone 220 and their respective hierarchies, please refer to the above Figure 4A and Figure 4B The description is not repeated here.

[0202] For details, see Fig.12 , before S501, also includes S1201-S1203:

[0203] S1201 . The remote camera of the mobile phone 220 registers the remote camera capability with the device management service of the mobile phone 220 .

[0204] Registering the remote camera capability means that the remote camera informs the device management service of its remote camera capability (capability to capture images for devices with the same account and transmit them back).

[0205] In some embodiments, when the mobile phone 220 is powered on for the first time, the mobile phone 220 may prompt the user to enable the remote camera in the user guide. If the user initiates the remote camera operation, the remote camera will be triggered to register its capabilities with the device management service. Fig.13 Interface 1301 is an interface of the user guide, and includes language options such as "Simplified Chinese", "Traditional Chinese", "English", "Japanese", etc. In response to the user's selection of "Simplified Chinese" in interface 1301, mobile phone 220 may display Fig.13Interface 1302 is another interface of the user guide. Interface 1302 includes a prompt "After turning on the remote camera, other devices are allowed to call this device to take images. Do you want to turn it on!" to prompt the activation of the remote camera. In addition, interface 1302 also includes two options "Yes" and "No". The operation of turning on the remote camera can be a selection operation of "No" in interface 1302. Then, in response to the user's selection operation of "No" in interface 1302, the remote camera in mobile phone 220 will be triggered to register its capabilities with the device management service.

[0206] It should be noted that Fig.13 In the example, after the user selects a language in interface 1301, interface 1302 is displayed. In actual implementation, after the user selects a language in interface 1301, mobile phone 220 may first display other guide interfaces, such as a guide interface for setting fingerprint, face, password, or a guide interface for data import, and after completing the settings in these other guide interfaces, mobile phone 220 jumps to interface 1302.

[0207] In other embodiments, when the mobile phone 220 is turned on for the first time, the user does not perform the operation of enabling the remote camera, but during the subsequent use of the mobile phone 220, receiving the user's operation of enabling the remote camera can also trigger the remote camera to register its capabilities with the device management service.

[0208] When registering its capabilities, the remote camera may send the application identifier of the remote camera to the device management service, such as sending the APP package name of the remote camera, to indicate that the registered application is the remote camera. In addition, the remote camera may also send the capability information of its capabilities to the device management service to indicate that the registered capabilities are the capabilities of the remote camera.

[0209] S1202 . The device management service of the mobile phone 220 records the remote camera and its registered capabilities.

[0210] For example, the device management service records the application identifier of the remote camera and capability information of the capabilities of the remote camera.

[0211] S1203 . The device management service of the mobile phone 220 feeds back a registration success message to the remote camera of the mobile phone 220 .

[0212] At this point, the remote camera capability registration is completed.

[0213] In some embodiments, after registering the remote camera capability, if the user does not want to continue using the mobile phone 220 to capture images for other devices with the same account, the remote camera can also be disabled in the mobile phone 220. In response to the user's operation of disabling the remote camera, the remote camera will request the device management service to deregister its capability. After receiving the deregistration request from the remote camera, the device management service will delete the registration information of the remote camera, such as deleting the application identifier of the remote camera and the capability information of the remote camera.

[0214] Continue to see Fig.12 , in the notebook computer 210, S501 further includes the following S5011-S5013:

[0215] S5011. The device management service of the mobile phone 220 synchronizes the remote camera capability with the device management service of the same account device (such as the laptop computer 210) via the Internet.

[0216] If the mobile phone 220 and the laptop computer 210 log in to the same user account, the device management services of the two can synchronize the support status of the remote camera capability through the Internet (i.e., the cloud). Of course, if there are other devices with the same account, the device management service of the mobile phone 220 can also synchronize its remote camera capability with the device management services of other devices with the same account.

[0217] When synchronizing the capabilities of the remote camera (i.e., synchronizing the first information), the device management service of the mobile phone 220 can synchronize the device information of the mobile phone 220 (such as the name of the mobile phone 220) and the capability information of the remote camera capabilities to the device management service of the laptop computer 210 to indicate that the mobile phone 220 supports the remote camera.

[0218] It should be understood that if the remote camera in the mobile phone 220 unregisters the remote camera capability to the device management service, then the device management service of the mobile phone 220 will also synchronously unregister the remote camera capability to the device management service of the laptop computer 210. Correspondingly, the device management service of the laptop computer 210 will delete the information that the mobile phone 220 supports the remote camera, such as deleting the device information of the mobile phone 220 and the capability information of the remote camera capability.

[0219] S5012. The communication service of the notebook computer 210 discovers an online device (the mobile phone 220) within the near field communication range.

[0220] The communication service (eg, Magic Link) of the laptop computer 210 may periodically scan and discover devices within the near field communication range of the laptop computer 210 .

[0221] After the laptop computer 210 discovers the mobile phone 220, the laptop computer 210 and the mobile phone 220 may transmit data, such as transmission of call requests, images, etc., through a communication service (such as Magic Link).

[0222] S5013. The communication service of the notebook computer 210 updates the online device (the mobile phone 220) to the device management service of the notebook computer 210.

[0223] In this way, the device management service of the laptop computer 210 can determine that the mobile phone 220 is an online device.

[0224] In some embodiments, in the laptop computer 210, the target application can only access the connection service if the connection service provides the target application with services such as querying available devices, transmitting call requests and data such as images across devices.

[0225] Based on this, continue to see Fig.12 , in the laptop computer 210, the following S1204-S1208 are also included. It should be noted that there is no strict order restriction between S1204-S1208 and the aforementioned S1201-S5013. In practice, as long as the target application is cold-started, the following S1204-S1208 will be executed in the laptop computer 210.

[0226] S1204 : In response to the target application of the notebook computer 210 being cold started, sending an access request to the connection service of the notebook computer 210 .

[0227] The access request is used to request the access to the continuation service. The access request includes an application identifier of the target application, which is used to indicate that the target application wants to access the continuation service.

[0228] In the notebook computer 210, the target application can send an access request to the connection service during the cold start process. The cold start means that before the target application is started, there is no process of the target application in the system of the notebook computer 210. During the cold start process, the target application sends an access request to the connection service, and the connection between the process of the target application and the process of the connection service can be re-established, which is convenient for the subsequent call of the remote camera.

[0229] S1205 . The connection service of the notebook computer 210 sends an authentication request to the application authentication service of the notebook computer 210 .

[0230] The authentication request is used to request authentication of the application. The authentication request includes an application identifier of the target application, which is used to instruct authentication of the target application.

[0231] S1206. The application authentication service of the notebook computer 210 authenticates the target application.

[0232] Before the target application accesses the subsequent service, the legitimacy of the target application is first verified, such as verifying the identity and authority of the target application.

[0233] S1207 . The application authentication service of the notebook computer 210 feeds back a message of successful authentication to the connection service of the notebook computer 210 .

[0234] The authentication success message carries the application identifier of the target application that has been successfully authenticated, which is used to indicate that the authentication of the target application has been successful.

[0235] S1208 . The connection service of the notebook computer 210 returns a message of successful access to the target application of the notebook computer 210 .

[0236] Only when the target application is confirmed to be legitimate, the connection service returns a successful access message to the target application, that is, the target application is allowed to access the connection service. This avoids providing services such as querying available devices, transmitting call requests across devices, and image data to illegal applications.

[0237] Continue to see Fig.12 In the notebook computer 210, the user can perform an image acquisition operation in the target application. Accordingly, S502 is specifically S5021:

[0238] S5021. The target application of the notebook computer 210 receives an acquisition operation of acquiring an image.

[0239] Exemplarily, the acquisition operation is a user's Fig. 7A The click operation of “Picture” 702 in the interface 701 is shown.

[0240] Continue to see Fig.12 , in the notebook computer 210, S503 further includes S5031-S5036:

[0241] S5031 . In response to the acquisition operation, the target application of the notebook computer 210 queries the connection service of the notebook computer 210 for available devices.

[0242] Among them, available devices refer to online devices that support remote cameras. In some embodiments, the device management services of the same account devices will not only synchronize the capabilities of the remote cameras, but also synchronize the occupancy status of the remote cameras, such as whether they are occupied or not. For details, please refer to the previous Fig.10 In this embodiment, the available device refers to an online device that supports the remote camera and the remote camera is not occupied.

[0243] Since the target application in the notebook computer 210 has obtained the calling information of the connection service, the target application can call the connection service to query the available devices.

[0244] S5032 , the connection service of the notebook computer 210 queries the device management service of the notebook computer 210 for available devices, and the available devices include the mobile phone 220 .

[0245] S5033. The device management service of the notebook computer 210 determines available devices.

[0246] The device management service of the notebook computer 210 records the devices supporting the remote camera and the online devices. Therefore, the device management service of the notebook computer 210 can determine the devices that are both the devices supporting the remote camera and the online devices as available devices.

[0247] Exemplarily, the devices supporting the remote camera include a mobile phone 220 and a tablet 230 , and if the online device is the mobile phone 220 , then it can be determined that the available device is the mobile phone 220 .

[0248] S5034. The device management service of the notebook computer 210 returns the device information of the available devices to the connection service of the notebook computer 210.

[0249] S5035 . The connection service of the notebook computer 210 returns the device information of the available devices to the target application of the notebook computer 210 .

[0250] In this way, the target application obtains the device information that can be used to call the available devices.

[0251] Typically, the device information of an available device includes information such as a MAC address of the available device and a device serial number that can uniquely identify each available device.

[0252] In some embodiments, in order to avoid privacy leakage, the device information of the available device may be represented by a temporary identity (identification, ID) of the available device.

[0253] For example, the mobile phone 220 not only provides the remote camera capability, but also provides other remote capabilities (such as remote translation capability, remote search capability, etc.) for invocation. Then, when one or more applications in the laptop 210 invoke these capabilities, they will find that the mobile phone 220 has installed a camera application, a translation application, and a search application at the same time, causing privacy leakage. For example, if the one or more applications are from the same developer, the developer can build a portrait of the mobile phone 220 through big data analysis.

[0254] Specifically, in this embodiment, after the laptop computer 210 discovers that (the mobile phone 220 is) an online device (such as S5012), the communication service of the laptop computer 210 and the communication service of each online device (such as the mobile phone 220) negotiate the temporary ID of each device (such as the laptop computer 210 and the mobile phone 220). For example, the temporary ID of the laptop computer 210 is negotiated to be 111, and the temporary ID of the mobile phone 220 is 222. In addition, the communication service of the laptop computer 210 can also send the temporary ID of each online device to the device management service of the laptop computer 210. Then, when returning the device information of the available device to the target application (such as S5034 and S5035), the temporary ID of the available device can be returned. In this way, it is possible to avoid privacy leakage caused by sending fixed identification information such as the MAC address and device serial number of the available device to the target application.

[0255] S5036. The target application of the notebook computer 210 displays options of available devices.

[0256] The device information of the available devices may also include the user name of the user account logged in to the available device (such as Tom, Jenny), the device model of the available device (such as Model A, Model B, etc.) and / or the device type (such as mobile phone, tablet, etc.). Accordingly, the target application may display the user name, the device model of the available device and / or the device type of the available device in the options of the available devices to indicate the available devices corresponding to each option.

[0257] For example, the laptop computer 210 may display Fig. 7A Interface 703 is shown, and includes two available device options: "Camera of Tom's Model A mobile phone" and "Camera of Tom's Model B tablet".

[0258] Continue to see Fig.12 , in the notebook computer 210, S504 is specifically S5041:

[0259] S5041 . The target application of the notebook computer 210 receives the user's selection operation on the option of the mobile phone 220 .

[0260] For example, Tom's model A mobile phone is the mobile phone 220, and the selection operation can be the user's Fig. 7A The click operation of “Tom’s Model A mobile phone” in the interface 703 is shown.

[0261] It should be understood that when the user performs a selection operation on an option of the mobile phone 220 , it means selecting the remote camera of the mobile phone 220 to capture an image.

[0262] Continue to see Fig.12 , S505 further includes S5051-S5054:

[0263] S5051 . The target application of the notebook computer 210 sends a call request for calling the remote camera of the mobile phone 220 to the connection service of the notebook computer 210 .

[0264] Since the target application in the notebook computer 210 has successfully registered with the connection service, the target application can call the connection service to send a remote camera call request (also referred to as a second request) to the mobile phone 220 .

[0265] In the laptop computer 210, when the target application requests the connection service to call the remote camera, it needs to carry the device information of the mobile phone 220 (such as the temporary ID of the mobile phone 220) and the capability information of the remote camera, which is used to indicate that the calling object is the capability of the remote camera in the mobile phone 220.

[0266] Exemplarily, the call request sent by the target application to the connection service includes the following content:

[0267]

[0268]

[0269] In this way, it can be instructed to call the remote camera of the mobile phone 220.

[0270] S5052 . The connection service of the notebook computer 210 sends a request for the target application of the notebook computer 210 to call the remote camera of the mobile phone 220 to the communication service of the notebook computer 210 .

[0271] In the laptop computer 210, when the connection service sends a request (also called the third request) to the communication service, it can carry the device information of the mobile phone 220 and the capability information of the remote camera, which is used to indicate that the calling object is the capability of the remote camera in the mobile phone 220; and it can also carry the device information of the laptop computer 210 (such as the temporary ID of the laptop computer 210) to indicate that the requesting party is the laptop computer 210.

[0272] In addition, after receiving the call request from the target application, the connection service of the notebook computer 210 can obtain the application identifier of the target application through parsing, and carry the application identifier in the request sent to the communication service to further indicate that the requester is the target application.

[0273] That is, based on the calling request in the aforementioned S5051, the device information of the notebook computer 210 and the application identifier of the target application are added.

[0274] S5053 . The communication service of the notebook computer 210 sends a request to the communication service of the mobile phone 220 for the target application of the notebook computer 210 to invoke the remote camera of the mobile phone 220 .

[0275] In some embodiments, compared with S5052 , the request in S5053 (ie, the first request) may be device information of the laptop computer 210 .

[0276] S5054 . The communication service of the mobile phone 220 sends a request for the target application of the notebook computer 210 to call the remote camera to the connection service of the mobile phone 220 .

[0277] In the mobile phone 220, when the communication service sends a request (also referred to as the fourth request) to the connection service, the capability information of the remote camera capability may be carried to indicate that the called capability is the capability of the remote camera; and the device information of the laptop computer 210 and the application identifier of the target application may be carried to indicate that the requesting party is the target application in the laptop computer 210. That is, based on the calling request in S5053, the device information of the mobile phone 220 may be reduced.

[0278] Continue to see Fig.12 In the mobile phone 220, S506 is specifically S5061:

[0279] S5061. The connection service of the mobile phone 220 starts the remote camera and sends the device information of the notebook computer 210 and the application identifier of the target application to the remote camera.

[0280] In the mobile phone 220, the connection service starts the remote camera based on the capability information in the received request. After starting the remote camera, the remote camera can call the system camera to capture an image. After starting the system camera, the system camera can display a viewfinder interface, such as displaying Fig. 8A Interface 801 is shown.

[0281] The device information of the laptop computer 210 recorded in the remote camera is used for the remote camera to distribute the image captured by the system camera to the laptop computer 210. And the application identifier of the target application recorded in the remote camera is used for the laptop computer 210 to determine the target application for acquiring the image.

[0282] In some embodiments, see Fig.12 , S1101 after starting the remote camera further includes S11011-S11012:

[0283] S11011. The remote camera of the mobile phone 220 updates the working status to the device management service as occupied.

[0284] The working status includes occupied and unoccupied, and two tags can be used to indicate the two statuses. For example, a first tag, such as 1, indicates unoccupied, and a second tag, such as 0, indicates occupied. In the mobile phone 220, the remote camera can send the first tag or the second tag to the device management service to instruct the device management service to update the status.

[0285] S11012. The device management service of the mobile phone 220 synchronizes the remote camera capability of the device with the same account (such as the laptop computer 210) through the Internet, and the working status is occupied.

[0286] When the state of the remote camera in the mobile phone 220 changes, it will be synchronized to the same account device, such as the laptop 210. Later, when the same account device calls the remote camera, it may not call the remote camera in the occupied state, such as the remote camera in the mobile phone 220, to avoid conflicts.

[0287] And, after the remote camera calls the system camera to complete the image capture, S1102 further includes S11021-S11022:

[0288] S11021. The remote camera of the mobile phone 220 updates the working status to the device management service as unoccupied.

[0289] S11022. The device management service of the mobile phone 220 synchronizes the remote camera capability of the device management service of the same account device (such as the laptop computer 210) via the Internet, and the working status is unoccupied.

[0290] Subsequently, when the device with the same account calls a remote camera, it can continue to call a remote camera that is not occupied, such as the remote camera in the mobile phone 220 .

[0291] Continue to see Fig.12 In the mobile phone 220, S507 further includes S5071-S5075:

[0292] S5071 . The remote camera of the mobile phone 220 sends an image to the connection service of the mobile phone 220 , and transmits the target application whose receiving object is the notebook computer 210 .

[0293] In the mobile phone 220, when the remote camera sends an image to the connection service, the device information of the laptop computer 210 and the application identifier of the target application recorded by the remote camera can be synchronously transmitted, so that the connection service can clearly identify the transmission path.

[0294] S5072 , the connection service of the mobile phone 220 sends the image to the communication service of the mobile phone 220 , and transmits the target application whose receiving object is the notebook computer 210 .

[0295] S5073. The communication service of the mobile phone 220 sends the image to the communication service of the notebook computer 210 based on the receiving object, and transmits the receiving object as a target application (such as transmitting an application identifier of the target application).

[0296] In the mobile phone 220 , the receiving object received by the communication service is the target application of the laptop computer 210 , so the communication service can send the image to the laptop computer 210 based on the device information in the receiving object, that is, the device information of the laptop computer 210 .

[0297] S5074. The communication service of the notebook computer 210 sends the image to the connection service of the notebook computer 210, and the transmission receiving object is the target application.

[0298] S5075 . The connection service of the notebook computer 210 sends the image to the target application of the notebook computer 210 based on the receiving object.

[0299] In the notebook computer 210 , the receiving object received by the connection service is the target application. Therefore, the connection service can send the image to the target application based on the application identifier in the receiving object, that is, the application identifier of the target application.

[0300] Continue to see Fig.12 , in the notebook computer 210, S508 is specifically S5081:

[0301] S5081 . The target application of the notebook computer 210 displays an image.

[0302] Taking a picture as an example, after receiving the picture, the laptop computer 210 can display Fig. 9 The interface 901 shown includes a picture 902 .

[0303] The present application also provides an electronic device, which may include: a memory and one or more processors. The memory and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device can execute the various functions or steps executed by the mobile phone in the above method embodiment.

[0304] The present application also provides a chip system, such as Fig.14As shown, the chip system 1400 includes at least one processor 1401 and at least one interface circuit 1402. The processor 1401 and the interface circuit 1402 can be interconnected via lines. For example, the interface circuit 1402 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 1402 can be used to send signals to other devices (such as processor 1401). Exemplarily, the interface circuit 1402 can read instructions stored in the memory and send the instructions to the processor 1401. When the instructions are executed by the processor 1401, the electronic device can execute the various steps in the above embodiments. Of course, the chip system can also include other discrete devices, which are not specifically limited in the embodiments of the present application.

[0305] This embodiment further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes each function or step executed by the mobile phone in the above method embodiment.

[0306] This embodiment further provides a computer program product. When the computer program product is run on a computer, the computer executes each function or step executed by the mobile phone in the above method embodiment.

[0307] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes each function or step performed by the mobile phone in the above method embodiment.

[0308] Among them, the electronic device, communication system, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

[0309] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0310] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0311] The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.

[0312] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0313] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program code.

[0314] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application and are not intended to limit it. Although the present application has been described in detail with reference to the preferred embodiments, a person of ordinary skill in the art should understand that the technical solution of the present application may be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present application.

Claims

1. An image capturing method, characterized in that: Applied to a first device, the method includes: The first device displays a first interface of a first application; In response to a first operation of the user on the first interface, the first device displays a first option, wherein the first operation is for acquiring an image; In response to a user's selection operation of the first option, the first device sends a first request to a second device indicated by the first option, wherein the first request includes device information of the first device, an application identifier of the first application, and a request type, wherein the device information of the first device is used for a remote camera of the second device to distribute an image captured by a system camera of the second device to the first device according to the device information of the first device; the request type is used to indicate that the first request calls the remote camera; and the remote camera is an application with the following capabilities: calling the system camera to capture an image, and distributing the image captured by the system camera; The first device receives the image captured by the second device and the application identifier; The first device displays the image captured by the second device on the first interface based on the application identifier.

2. The method according to claim 1, characterized in that The method further comprises: The first device receives first information from the second device, the first information indicating that the second device has the capability of the remote camera; In response to the first information, the first device records information that the second device has the capability of the remote camera; The first device displays a first option, including: If the first device records information that the second device has the capability of the remote camera, the first device displays the first option.

3. The method according to claim 2, characterized in that The method further comprises: The first device receives second information from the second device, the second information indicating that the remote camera is occupied; in response to the second information, the first device updates the state of the remote camera to an occupied state; and / or, The first device receives third information from the second device, the third information indicating that the remote camera is not occupied; in response to the third information, the first device updates the state of the remote camera to an unoccupied state; The first device displays a first option, including: If the state of the remote camera is unoccupied, the first device displays the first option.

4. The method according to claim 2 or 3, characterized in that: The first option is an option of a device within the near field communication range of the first device and / or a device with the same user account logged in as the first device.

5. The method according to claim 4, characterized in that The first device includes a device management service; The first device receives first information from the second device, including: The device management service receives first information from the second device; The first device records information that the second device has the capability of the remote camera, including: The device management service records information that the second device has the capability of the remote camera.

6. The method according to claim 5, characterized in that The first device also includes a communication service, and the method further includes: The communication service finds that the second device is within the near field communication range of the first device, and / or the second device and the first device are logged in with the same user account; The communication service updates the second device as an online device to the device management service.

7. The method according to claim 6, characterized in that The first device also includes a connection service. Before the first device displays the first option, the method further includes: The first application sends a query request to the connection service; The connection service forwards the query request to the device management service; In response to the query request, if the device management service includes information that the second device has the capability of the remote camera and the second device is the online device, the device management service returns the device information of the second device to the connection service; The connection service returns the device information of the second device to the first application; The first device displays a first option, including: The first application displays the first option corresponding to the second device based on the device information of the second device.

8. The method according to claim 7, characterized in that The device information of the second device includes the user name of the user account, the device model of the second device and / or the device type of the second device, and the first option includes the user name, the device model and / or the device type.

9. The method according to claim 7 or 8, characterized in that: After the communication service finds that the second device is within the near field communication range of the first device, and / or the second device and the first device are logged in with the same user account, the method further includes: The communication service allocates a temporary ID to the second device, and the device information of the second device includes the temporary ID; The first device sending a first request to the second device indicated by the first option includes: The first application sends a first request to the second device corresponding to the temporary ID.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: If the second device meets the preset condition, in response to the user's selection operation of the first option, the first device sends a first prompt message, where the first prompt message is used to prompt that the second device is shooting; The preset condition includes that the system camera is in an idle state and / or the second device is in a powered-on state.

11. The method according to any one of claims 1 to 10, characterized in that The first device includes a connection service and a communication service; In response to the user's selection operation of the first option, the first device sending a first request to the second device indicated by the first option includes: In response to a user's selection operation of the first option, the first application sends a second request to the connection service, where the second request includes device information of the second device and the request type, where the device information of the second device is used to indicate a device for capturing images; In response to the second request, the connection service sends a third request to the communication service, wherein the third request includes device information of the first device, device information of the second device, the application identifier, and the request type; In response to the third request, the communication service sends the first request to the second device indicated by the device information of the second device in the third request.

12. The method according to any one of claims 1 to 11, characterized in that The first device includes a communication service and a connection service; The first device receiving the image captured by the second device and the application identifier of the first application includes: The communication service receives the image captured by the second device and the application identifier of the first application; The communication service sends the image and the application identifier to the connection service; The first device displays the image captured by the second device on the first interface based on the application identifier, including: The connection service sends the image to the first application indicated by the application identifier; The first application displays the image.

13. An image capturing method, characterized in that: Applied to the second device, the method includes: The second device receives a first request, where the first request includes device information of the first device, an application identifier of the first application, and a request type, where the request type is used to indicate that the first request calls a remote camera, and the remote camera is an application in the second device; In response to the first request, the second device starts the remote camera and records the device information of the first device and the application identifier in the remote camera; In response to starting the remote camera, the second device displays a second interface, where the second interface is a shooting preview interface of the system camera in the second device; In response to a shooting operation of the user, the second device shoots an image; The second device sends the image and the application identifier in the remote camera to the first device indicated by the device information of the first device in the remote camera.

14. The method according to claim 13, characterized in that The method further comprises: The second device sends a second prompt message, where the second prompt message is used to prompt the first device to request to call the present device to capture an image; The second device starts the remote camera, including: In response to a user confirmation operation on the second prompt information, the second device starts the remote camera.

15. The method according to claim 13 or 14, characterized in that The second device includes communication services and connection services; The second device receives the first request, including: The communication service receives the first request; The step of, in response to the first request, the second device starting the remote camera and recording the device information and the application identifier of the first device in the remote camera, comprises: In response to receiving the first request, the communication service sends a fourth request to the connection service, wherein the fourth request includes device information of the first device, the application identifier, and the request type; In response to receiving the fourth request, the connection service starts the remote camera and sends the device information of the first device and the application identifier to the remote camera; The remote camera records the device information of the first device and the application identifier.

16. The method according to claim 15, characterized in that The second device also includes a system camera; The second device displays a second interface, including: The remote camera calls the system camera, and the system camera displays the second interface; The second device captures an image, comprising: The system camera captures images.

17. The method according to claim 15 or 16, characterized in that The second device sends the image to the first device indicated by the device information of the first device in the remote camera, and sends the application identifier in the remote camera, including: The remote camera sends the image, the device information of the first device and the application identifier to the connection service; The connection service sends the image, the device information of the first device and the application identifier to the communication service; The communication service sends the image and the application identifier to the first device indicated by the device information of the first device.

18. The method according to any one of claims 13 to 17, characterized in that: Before the second device receives the first request, the method further includes: The second device synchronizes first information to the first device, wherein the first information indicates that the second device has a capability of the remote camera.

19. The method according to claim 18, characterized in that After the second device starts capturing images and before the second device ends capturing images, the method further includes: The second device synchronizes second information to the first device, the second information indicating that the remote camera of the second device is occupied; After the second device finishes capturing the image, the method further includes: The second device synchronizes third information to the first device, where the third information indicates that the remote camera of the second device is not occupied.

20. The method according to claim 18 or 19, characterized in that The second device includes a device management service, and the method further includes: The device management service synchronizes, to the first device, information that the second device has the capability of the remote camera and / or that the remote camera of the second device is occupied or unoccupied.

21. An image capturing method, characterized in that: include: The first device displays a first interface of a first application; In response to a first operation of the user on the first interface, the first device displays a first option, wherein the first operation is for acquiring an image; In response to a user selecting the first option, the first device sends a first request to a second device indicated by the first option, wherein the first request includes device information of the first device, an application identifier of the first application, and a request type, wherein the request type is used to indicate that the first request calls a remote camera, and the remote camera is an application in the second device; The second device receives the first request; In response to the first request, the second device starts the remote camera and records the device information of the first device and the application identifier of the first application in the remote camera; In response to starting the remote camera, the second device displays a second interface, where the second interface is a viewfinder interface of a system camera in the second device; In response to a shooting operation of the user, the second device shoots an image; The second device sends the image and the application identifier in the remote camera to the first device indicated by the device information of the first device in the remote camera.

22. An electronic device, characterized in that: The electronic device comprises the first device or the second device described in claims 1-21, and the electronic device comprises a memory and one or more processors, and the memory is coupled to the processor; wherein a computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes the method described in any one of claims 1-21.

23. A communication system, characterized in that: The communication system comprises the first device and the second device as claimed in claims 1-21.

24. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 21.

25. A chip system, characterized in that: The chip system is applied to an electronic device including a processor and a memory. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected through lines. The interface circuit is used to receive a signal from the memory of the electronic device and send the signal to the processor. The signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the electronic device executes the method as described in any one of claims 1 to 21.

Citation Information

Patent Citations

  • Method and device for checking remote camera in photo album

    CN110781330A

  • Camera calling method, electronic equipment and camera

    CN112969024A

  • Data sharing and instruction operation control method and system

    CN113453203A

  • Camera control method and device and storage medium

    CN114615362A

  • Shooting method and system and electronic equipment

    CN114697527A