Cross-device collaborative shooting method, electronic device and storage medium

By performing owner identification and distance judgment in cross-device collaborative shooting scenarios, the problem of privacy security risks is solved, ensuring the safety of using cameras in different rooms and preventing privacy leaks.

CN117714585BActive Publication Date: 2024-09-27HONOR DEVICE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202310962132.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-31
Publication Date
2024-09-27
Estimated Expiration
2043-07-31

AI Technical Summary

Technical Problem

In cross-device collaborative shooting scenarios, existing technology has privacy security risks. Especially after selecting "Don't prompt again after agreeing" when the computer calls the mobile phone camera for the first time, the mobile phone camera can be directly called without authorization, leading to the risk of privacy leakage.

Method used

Through the owner identification on the computer, if the identification is successful, the phone camera will be directly pulled up; if the identification fails, the distance between the phone and the computer will be measured. If the distance is greater than or equal to the preset distance, a prompt will be displayed to indicate whether to agree to use the camera. A pop-up window will appear, and the camera will be activated for shooting only after the user agrees, ensuring that it can be used directly in the same room to avoid privacy leakage.

Benefits of technology

It improves the privacy security of cross-device collaborative shooting, prevents unauthorized camera calls, and ensures the security of user privacy in different rooms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117714585B
    Figure CN117714585B
Patent Text Reader

Abstract

The present application provides a method and apparatus for cross-device collaborative shooting. When a computer calls a mobile phone camera, the computer first identifies whether the current user is the owner of the device. If the computer user is not the owner, a second shared camera call instruction containing the result of failed owner identification is sent to the mobile phone. After the mobile phone receives the second shared camera call instruction, when it is determined that the screen is currently locked / off, and the mobile phone camera is not the first time to be called by the computer and no prompt will be given after the previous consent is chosen, the distance between the mobile phone and the computer is measured to be greater than or equal to the preset distance, and the mobile phone displays a pop-up window prompting whether to agree to use the shared camera. In this solution, when the mobile phone is not in use and the mobile phone and the computer are in different rooms, the mobile phone displays a pop-up window to remind the mobile phone user that the mobile phone camera is being called. In the case where there is a risk of privacy leakage for the mobile phone user, the call request is directly rejected, thereby improving the privacy security of cross-device collaborative shooting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer and communication technology, and in particular to a method and apparatus for cross-device collaborative shooting. Background Art

[0002] With the development of smart terminals, distributed scenarios where multiple electronic devices are interconnected are gradually being realized. For example, mobile phones, tablets, laptops, PCs, smart TVs, routers, smart wearable devices, etc. in the same local area network can be interconnected. In distributed scenarios, applications (APPs) of different devices can call each other and share resources, which will become a future trend.

[0003] In a cross-device collaborative shooting scenario, for example, a first electronic device can pull up the camera of a second electronic device to shoot when the second electronic device's screen is on, locked, or turned off, which poses a privacy and security risk. Summary of the invention

[0004] In view of this, the present application provides a cross-device collaborative shooting method and apparatus to solve at least part of the above problems, and the disclosed technical solution is as follows:

[0005] In the first aspect, the present application provides a cross-device collaborative shooting method, which is applied to a second electronic device, and the method includes: the second electronic device (such as a mobile phone) establishes a communication connection with the first electronic device (such as a computer); in response to a first shared camera call instruction sent by the first electronic device, the distance between the second electronic device and the first electronic device is obtained, the first shared camera call instruction includes a shared camera call request and a failed machine owner identification result, and the failed machine owner identification result is generated when the first electronic device identifies that the current user of the first electronic device is not the machine owner; when the distance is greater than or equal to the preset distance, a prompt message of whether to agree to use the shared camera is displayed; when the distance is less than the preset distance, the shared camera of the second electronic device is started to shoot, and the image data shot is transmitted to the first electronic device. It can be seen that when the computer in this scheme calls the camera of the mobile phone across devices, the computer first identifies the machine owner, and when it is identified that the current user is not the machine owner, it further determines whether the mobile phone and the computer are in the same room based on the distance between the mobile phone and the computer. If it is identified that the mobile phone and the computer are in different rooms, the mobile phone will display a prompt pop-up window of whether to agree to use the shared camera, reminding the mobile phone user that the mobile phone camera is being called. When there is a risk of privacy leakage for mobile phone users, the caller's request to call the mobile phone camera is directly rejected, thereby improving the privacy security of cross-device collaborative shooting.

[0006] In a possible implementation of the first aspect, in response to a first shared camera call instruction sent by the first electronic device, the distance between the first electronic device and the second electronic device is obtained, including: when the second electronic device is in a locked screen or off-screen state, in response to the first shared camera call instruction sent by the first electronic device, determine whether the shared camera of the second electronic device is called by the first electronic device for the first time; when it is determined that it is not the first time to be called by the first electronic device, determine whether it has been selected not to prompt; when it is determined that it has been selected not to prompt, obtain the distance between the first electronic device. It can be seen that after the computer recognizes that the current user on the computer side is not the owner, when the mobile phone determines that the mobile phone screen is in a locked screen or off-screen state, further, when it is determined that the shared camera of the mobile phone is not the first time to be called by the computer and has previously chosen not to prompt, obtain the distance between the mobile phone and the computer, and further display the prompt pop-up window based on the distance decision. The intelligence of the prompt information is improved, which is more in line with the actual application needs of users.

[0007] In a possible implementation of the first aspect, determining whether a shared camera of a second electronic device is called for the first time by a first electronic device includes: based on a unique device identifier of the first electronic device, querying the shared camera calling information recorded by the second electronic device to obtain first calling information corresponding to the first electronic device; if the first calling information is first preset information, determining that the shared camera is called for the first time by the first electronic device; if the first calling information is second preset information, determining that it is not the first time that the shared camera is called by the first electronic device.

[0008] In a possible implementation of the first aspect, in response to a first shared camera call instruction sent by the first electronic device, obtaining the distance between the second electronic device and the first electronic device includes: when the second electronic device is in a screen-on state, in response to the first shared camera call instruction sent by the first electronic device, obtaining the distance between the second electronic device and the first electronic device.

[0009] In a possible implementation manner of the first aspect, acquiring the distance to the first electronic device includes: sending a distance measurement request to the first electronic device; and receiving the distance between the first electronic device and the second electronic device sent by the first electronic device.

[0010] In a possible implementation of the first aspect, after the second electronic device establishes a communication connection with the first electronic device, the method further includes: sending the first facial image of the owner recorded by the second electronic device to the first electronic device through the communication connection, so that the first electronic device identifies the owner based on the first facial image. For example, after the mobile phone is connected to the computer, the mobile phone can synchronize the locally stored facial image of the owner to the computer, so that when the computer calls the camera of other electronic devices across devices, the owner can be identified first, which improves the privacy security of cross-device collaborative shooting.

[0011] In a possible implementation of the first aspect, the method also includes: in response to a second shared camera calling instruction sent by the first electronic device, starting the shared camera of the second electronic device to shoot, and transmitting the shot image data to the first electronic device, the second shared camera calling instruction includes a shared camera calling request and a successful owner identification result, and the successful owner identification result is generated when the first electronic device recognizes that the current user of the first electronic device is the owner.

[0012] In a possible implementation manner of the first aspect, the method further includes: when it is determined that it is the first time to be called by the first electronic device, or it is not the first time to be called by the first electronic device and no selection has been made, displaying a prompt message asking whether to agree to use the shared camera.

[0013] In the second aspect, the present application also provides a cross-device collaborative shooting method, which is applied to a first electronic device, and the method includes: the first electronic device establishes a communication connection with the second electronic device; in response to the start-up operation of the virtual camera, identifies whether the current user is the owner; in the case of identifying that the current user is not the owner, sends a first shared camera call instruction to the second electronic device, the first shared camera call instruction includes a shared camera call request and the owner recognition failure result, and the first shared camera call instruction is used to enable the second electronic device to obtain the distance between the second electronic device and the first electronic device, and display a prompt message whether to agree to use the shared camera when the distance is greater than or equal to the preset distance; receive the captured image data transmitted by the second electronic device, and the image data is obtained by the second electronic device after detecting the operation of agreeing to use the shared camera, and starting the camera to shoot. For example, when the computer calls the mobile phone camera, the computer first identifies whether the current user is the owner, and sends the owner recognition result to the mobile phone, so that the mobile phone further decides whether to start the shared camera based on the owner recognition result, thereby improving the privacy security of the cross-device collaborative shooting scene.

[0014] In a possible implementation of the second aspect, in response to a startup operation of a virtual camera, identifying whether the current user is the owner of the device includes: in response to the startup operation of the virtual camera, starting the camera of the first electronic device to capture a facial image of the current user; comparing a first facial image of the owner obtained in advance by the first electronic device with a second facial image of the current user to see if they are the same person; if the second facial image and the first facial image are the same person, determining that the current user is the owner of the device; if the second facial image and the first facial image are not the same person, determining that the current user is not the owner of the device.

[0015] In a possible implementation manner of the second aspect, the method further includes: in response to a distance measurement request sent by the second electronic device, obtaining a distance between the first electronic device and the second electronic device, and sending the distance to the second electronic device.

[0016] In a possible implementation of the second aspect, the method also includes: when it is identified that the current user is the owner of the device, sending a second shared camera calling instruction to the second electronic device, the second shared camera calling instruction including a shared camera calling request and a successful owner identification result, the second shared camera calling instruction is used to enable the second electronic device to start the shared camera for shooting; receiving the captured image data transmitted by the second electronic device.

[0017] In a third aspect, the present application also provides an electronic device, comprising: one or more processors, a memory and a touch screen; the memory is used to store program code; the processor is used to run the program code, so that the electronic device implements the cross-device collaborative shooting method as any one of the first aspects.

[0018] In a fourth aspect, the present application further provides a computer-readable storage medium having instructions stored thereon, which, when the instructions are executed on an electronic device, enables the electronic device to execute a cross-device collaborative shooting method as described in any one of the first aspects.

[0019] In a fifth aspect, the present application further provides a computer program product having an executable program stored thereon. When the computer program product is run on an electronic device, the electronic device implements any one of the cross-device collaborative shooting methods of the first aspect.

[0020] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be realized in any single embodiment. On the contrary, it is understood that the description of features or beneficial effects means that specific technical features, technical solutions or beneficial effects are included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and beneficial effects described in the present embodiment can also be combined in any appropriate manner. Those skilled in the art will understand that the embodiment can be realized without one or more specific technical features, technical solutions or beneficial effects of a specific embodiment. In other embodiments, additional technical features and beneficial effects can also be identified in a specific embodiment that does not embody all embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0022] Figure 1 is a schematic diagram of a cross-device collaborative shooting scenario provided by an embodiment of the present application;

[0023] Figure 2 It is a schematic diagram of a software framework structure of a first electronic device and a second electronic device provided in an embodiment of the present application;

[0024] Figure 3 is a flow chart of a cross-device collaborative shooting method provided by an embodiment of the present application;

[0025] Figure 4 is a flow chart of another cross-device collaborative shooting method provided by an embodiment of the present application;

[0026] Figure 5 is a flowchart of another cross-device collaborative shooting method provided in an embodiment of the present application;

[0027] Figure 6 This is a schematic diagram of an interface for turning on a camera sharing switch provided in an embodiment of the present application;

[0028] Figure 7 This is a schematic diagram of an interface for turning on an owner identification switch provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] The terms "first", "second", "third", etc. in the specification, claims and drawings of this application are used to distinguish different objects rather than to limit a specific order.

[0030] In the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" 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 "exemplary" or "for example" is intended to present related concepts in a specific way.

[0031] Figure 1 1 is a schematic diagram of a cross-device collaborative shooting scenario provided by an embodiment of the present application. The example of the computer calling the camera of the mobile phone to shoot after the computer and the mobile phone are connected across devices is used for explanation.

[0032] For example, the video calling application of the computer calls the camera of the connected mobile phone, such as Figure 1 As shown in (1), after starting the video call application of computer 2, a video call with a contact is initiated, and an interface 20 for video call with the contact is displayed. The interface 20 includes the name and avatar picture of the contact, and shortcut function buttons such as mute, camera, speaker, hang up, etc. After clicking the camera button 21, a pop-up window 22 for selecting a camera is displayed. In this example, the pop-up window 22 includes the camera 23 of computer 2 and the camera 24 of mobile phone 1.

[0033] When the computer uses the phone's camera to take pictures for the first time, Figure 1 As shown in (2), after the computer 2 chooses to use the camera of the mobile phone 1, the interface of the mobile phone 1 displays a pop-up window 11, which is used to remind the mobile phone user that the electronic device connected to the mobile phone 1 is using the smart interconnection service sharing function to call the camera of the local device. The pop-up window 11 includes text prompt information, an agree button 12, a cancel button 13, and an option 14 to agree not to prompt again. Among them, the cancel button 13 can display a countdown information, such as 15 seconds. After the countdown ends, it is assumed that the click operation of the agree button 12 is received.

[0034] However, the inventor discovered during the research process that: in the scenario where the computer calls the camera of the mobile phone for the first time, if the user chooses "Do not prompt again after agreeing", when the computer 2 calls the camera of the mobile phone 1 again, the camera of the mobile phone can be directly called when the mobile phone is unlocked, locked, or off, that is, the camera of the mobile phone can be directly called for shooting without the authorization of the mobile phone user, which poses a privacy and security risk.

[0035] In order to solve the problem of privacy and security risks in traditional cross-device collaborative shooting methods, the present application provides a cross-device collaborative shooting method. After selecting "Do not prompt again after agreeing" when the computer calls the camera of the mobile phone for the first time, when the computer calls the camera of the mobile phone 1 again, the computer side will identify the owner of the machine. If the identification is successful (that is, the current user on the computer side is the owner), the camera on the mobile phone side will be directly pulled up. If the identification fails (that is, the current user on the computer side), the distance between the computer and the mobile phone is measured. If the distance is greater than or equal to the preset distance, a pop-up window will be displayed on the mobile phone side. After the mobile phone receives the consent operation, it will pull up the camera to shoot. If the distance is less than the preset distance, the camera on the mobile phone side will be directly pulled up.

[0036] For example, Figure 1As shown in (3) and (4), in the scenario where the computer is not calling the camera on the mobile phone side for the first time, the computer 2 and the mobile phone 1 are in different rooms. For example, the computer 2 is in the study, and the user and the mobile phone 1 are in the bedroom. At this time, when other people in the study use the computer 2 to call the camera of the mobile phone 1, the computer will identify whether the current user is the owner of the phone. If not, the distance between the computer and the mobile phone is measured. In this scenario, if the distance between the two is greater than or equal to the preset distance, the mobile phone 1 is triggered to display a pop-up window 11. If the mobile phone user clicks the "Agree" button, the camera is pulled up for shooting. If the mobile phone user clicks the "Cancel" button, the camera is refused to be pulled up.

[0037] like Figure 1 As shown in (5) and (6), the computer 2 and the mobile phone 1 are in the same room. In this scenario, the distance between the computer and the mobile phone is less than the preset distance, and the camera on the mobile phone is directly pulled up to shoot and transmit it to the computer 2 for display.

[0038] In this application, the party that calls the camera of other electronic devices is called the first electronic device, and the party that is called is called the second electronic device.

[0039] In some embodiments, the first electronic device or the second electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, a smart watch, etc. In this application, the first electronic device is a computer and the second electronic device is a mobile phone.

[0040] In an exemplary embodiment, the first and second electronic devices may include a processor, an internal memory, a display screen, a camera, an antenna, a wireless communication module, an audio module, and the like.

[0041] 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.

[0042] A processor may include one or more processing units. Different processing units may be independent devices or integrated into one or more processors.

[0043] The internal memory can be used to store computer executable program codes, which include instructions. The processor executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory.

[0044] The display screen is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens, where N is a positive integer greater than 1.

[0045] The camera is used to capture still images or videos. The audio module may include a speaker and a microphone, etc.

[0046] The wireless communication module can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module can be one or more devices that integrate at least one communication processing module.

[0047] The software framework is run in the electronic device to implement the camera control method provided in the embodiment of the present application. Taking the first electronic device as a computer and the second electronic device as an example, the software frameworks run in the first electronic device and the second electronic device are as follows: Figure 2 shown.

[0048] The software framework related to the cross-device collaborative shooting method provided in the embodiment of the present application and running in the computer includes: an application layer, a business middle platform, an interconnection middle platform, a security middle platform, Windows OS, and a driver layer.

[0049] The application layer runs various applications, for example, Figure 2 As shown, the applications include notes, instant messaging, and camera, etc. These applications all have the function of supporting video services.

[0050] The business platform includes virtualized shared services. Virtualized shared services include scheduling management, state management, and settings management. Applications can schedule and interact with modules in the interconnected platform through virtualized shared services.

[0051] In some implementations, the scheduling management is used to start or stop a virtual camera, which can be understood as a camera of other electronic devices connected to the current device, such as a camera of a mobile phone.

[0052] State management is used to monitor the state of the Android camera. For example, the state of the Android camera can include occupied or idle.

[0053] The settings management is used to enable or disable whether the current device can support the camera sharing service. For example, after enabling the camera sharing service, a virtual camera can be displayed on the interface of the current device. After disabling the camera sharing service, the interface of the current device no longer displays the virtual camera.

[0054] The interconnection center runs device management middleware, MagicLink, decision engine services, and hardware virtualization services.

[0055] Device management middleware includes service management and device management. Service management is used for service registration and mutual scheduling. Device management is used for device discovery (i.e., device online or offline).

[0056] MagicLink can be understood as a physical channel protocol layer. Based on the pre-configured physical channel protocol, a physical channel is established with the peer device (such as a mobile phone). In this example, the physical channel takes peer to peer (P2P), wireless local area network (WLAN), and Bluetooth (BT) as examples. In some implementations, device discovery is used to provide the function of discovering peer devices and being discovered by peer devices. Device connection is used to establish a physical channel with the peer device. Data transmission is used to transmit data with the peer device based on the physical channel.

[0057] Hardware virtualization services include video virtualization and audio virtualization. Video virtualization is used to provide the function of calling virtualized hardware (such as a virtual camera) to obtain video data. Audio virtualization is used to provide the function of calling virtualized hardware (such as a virtualized microphone) to obtain audio data.

[0058] In an embodiment of the present application, the decision engine service includes a functional module for measuring the distance between the local device and the opposite device.

[0059] The security middle platform includes services related to device security. For example, in this embodiment, the security middle platform includes device authentication and identity authentication. In this embodiment, device authentication is used to identify the device identity of the peer device during the connection process of the peer device. Identity authentication is used to identify the user identity of the current device.

[0060] Windows OS is the Windows operating system (OS) running on the computer, and the modules related to cross-device collaborative shooting include audio and video codec, camera, Transmission Control Protocol (TCP) / Internet Protocol (IP), and graphic display. The specific functions of each module will not be repeated here.

[0061] The driver layer runs various hardware drivers, such as Figure 2 As shown, this embodiment takes a virtual camera (Camera) driver, a Bluetooth (BT) driver, and a wireless LAN (Wireless Fidelity, WIFI) driver as examples.

[0062] The software framework related to the method provided in the embodiment of the present application and running in the mobile phone includes: a business middle platform, an interconnection middle platform, a security middle platform, an Android OS, and a driver layer.

[0063] In this embodiment, the business center runs a virtualized shared service, which includes scheduling management and state management.

[0064] The scheduling management is used to start or stop the virtual camera (i.e., the mobile phone camera). The state management is used to monitor the state of the mobile phone camera, which may include occupied or idle. In other embodiments, the virtualized sharing service of the mobile phone may also include setting management, which is used to enable or disable whether the current device can support the camera sharing service.

[0065] The interconnection platform runs device management middleware, MagicLink, decision engine services, and hardware virtualization services. The functions of each module in the interconnection platform can be found in the functions of the interconnection platform in the computer, and will not be repeated here.

[0066] The security center includes services related to device security, such as the security center of this embodiment including device authentication and identity authentication. The functions of each module in the security center can refer to the functions of the computer's security center, which will not be repeated here.

[0067] Android OS is the Android operating system (OS) running in mobile phones, in which modules related to cross-device collaborative shooting include audio and video codec, camera, TCP / IP, and graphic display.

[0068] The driver layer includes drivers for various hardware. This embodiment takes virtual Camera driver, BT driver and WIFI driver as examples.

[0069] When the called device (the second electronic device) is in different states (such as locked screen / off screen, bright screen), the corresponding cross-device camera calling process is also different.

[0070] Combine the following Figure 3 The process of the cross-device collaborative shooting method corresponding to the called device is in the screen-off or screen-locked state. The method is applied to a distributed system, which includes a first electronic device (i.e., a computer in the figure) and a second electronic device (i.e., a mobile phone in the figure). Figure 3 As shown, the method may include the following steps:

[0071] S101, the computer and the mobile phone are discovered and establish a communication connection through the device.

[0072] For example, computers and mobile phones can Figure 2 The MagicLink service shown in the figure performs device discovery and connection. After the two are connected, cross-device application calling can be realized. For example, the computer side can call the application program and service of the mobile phone side. This embodiment is explained by taking the computer side calling the camera of the mobile phone side for shooting as an example.

[0073] S102, the computer receives an operation to start a virtual camera.

[0074] After the computer enables the virtual camera sharing service, it displays the available virtual cameras (i.e., the cameras of the electronic devices connected to the computer, also known as shared cameras). In this example, the camera of the mobile phone is displayed. The user can choose to use the virtual camera to take pictures.

[0075] For example, Figure 1 As shown in (1), the computer's video call application interface displays a virtual camera, and the user clicks the virtual camera option to start the virtual camera.

[0076] S103, the computer identifies whether the current user is the machine owner (ie, machine owner identification); if not, execute S104b; if yes, execute S104a.

[0077] The computer can synchronize and save the owner's facial image (which may be called the first facial image) from the mobile phone. When the mobile phone camera is activated, the computer takes a facial image of the current user and performs facial recognition based on the saved first facial image to determine whether the current user is the owner.

[0078] S104a, the computer sends a second shared camera calling instruction to the mobile phone.

[0079] If the computer recognizes that the current user is the owner, a second shared camera call instruction is generated, which includes the device ID of the caller device, the shared camera call request and the owner identification success result.

[0080] After the mobile phone receives the second shared camera calling instruction, it executes S112 to start the shared camera (ie, the mobile phone camera).

[0081] S104b, the computer sends a first shared camera calling instruction to the mobile phone. The first shared camera calling instruction includes the device ID of the calling device, the shared camera calling request and the owner recognition failure result.

[0082] S105, the mobile phone responds to the first shared camera calling instruction and determines the state of the mobile phone screen. If the mobile phone screen is in a locked screen or off screen state, then continue to execute S106.

[0083] Execute when the phone screen is on Figure 4 The process shown.

[0084] S106, the mobile phone determines whether the shared camera is called by the computer for the first time; if it is not the first time, execute S107; if it is the first time, execute S111.

[0085] In this application, the first call refers to the first time that the camera of a mobile phone is called by the electronic device. For example, if the camera of mobile phone A is called by another electronic device such as computer B for the first time, then this call is the first call by computer B. After that, if the camera of mobile phone A is called by computer B again, it is not the first call by computer B.

[0086] In an exemplary embodiment, the database corresponding to the virtualized sharing service of the mobile phone stores the device ID of the connected electronic device and information on whether it is the first call. For example, a flag bit for whether it is the first call can be set, and the flag bit is "true" to indicate that the device is calling the shared camera for the first time, and the flag bit is "false" to indicate that it is not the first time for the device to call the shared camera.

[0087] After receiving the instruction, the mobile phone parses and obtains the device ID of the computer, and queries the database corresponding to the virtual sharing service of the mobile phone to determine whether the computer calls the shared camera of the mobile phone for the first time.

[0088] S107, the mobile phone determines whether the user has previously chosen to agree not to be prompted again; if yes, execute S108; if not, execute S111.

[0089] When the mobile phone camera is used by other electronic devices for the first time, the mobile phone will display the following Figure 1 In the pop-up window shown in (2), after the mobile phone receives the user's selection of "Agree and do not prompt again", the mobile phone will record the selection information of not prompting again. When the mobile phone receives a request to call a shared camera again, it will query whether the recorded information of not prompting again contains the information of the shared camera. If it contains, it is determined that the user has chosen to agree and not prompt again for the shared camera.

[0090] In the traditional solution, after you choose to agree and not prompt again, when the mobile phone camera is called again, the pop-up window prompting whether to agree to use the shared camera will not be displayed. However, the solution provided by this application further determines whether to display the pop-up window prompting whether to agree to use the shared camera based on the distance between the mobile phone and the computer after you have chosen to agree and not prompt again.

[0091] S108, the mobile phone sends a request to the computer to measure the distance between the two.

[0092] After confirming that the computer user is not the owner and the phone is in the screen-off or locked state, and the phone has previously agreed to not prompt again, the distance between the phone and the computer is further used to determine whether the two are in the same room. If they are in the same room, it is considered that there is no risk of privacy leakage, and the camera is directly pulled up to shoot. If the phone and computer are in different rooms, it is considered that there is a risk of privacy leakage.

[0093] S109, the computer sends the distance between the computer and the mobile phone.

[0094] After receiving the distance measurement request from the mobile phone, the computer responds to the request to obtain the straight-line distance between the mobile phone and the computer and sends it to the mobile phone.

[0095] S110, the mobile phone determines whether the distance between the two is greater than or equal to a preset distance; if so, execute S111; if not, execute S112.

[0096] After the mobile phone receives the distance between the two sent by the computer, it determines whether the distance is greater than or equal to the preset distance. The preset distance can be set according to actual conditions, such as 2m.

[0097] S111, the mobile phone displays a pop-up window asking whether to agree to use the shared camera.

[0098] If the distance between the phone and the computer is greater than or equal to the preset distance, it is determined that the two are in different rooms. For example, in one scenario, the computer is in the study, and the user takes the phone to a relatively private room such as the bedroom. At this time, if someone else in the study uses the phone's camera to take a photo on the computer, the phone will display the following Figure 1 The pop-up window 11 shown in (2).

[0099] S112, the mobile phone starts the shared camera to take pictures.

[0100] In one application scenario, the mobile phone starts the shared camera for shooting only after receiving an operation of agreeing to use the shared camera.

[0101] In another application scenario, after the mobile phone receives the second shared camera instruction, it starts the mobile phone camera, that is, the shared camera.

[0102] In other embodiments, if the mobile phone receives an operation to cancel the use of a shared camera, the camera will not be started, thereby avoiding leakage of user privacy.

[0103] S113, the mobile phone transmits the captured image data stream to the computer. The mobile phone transmits the image data stream to the computer through a communication connection with the computer.

[0104] In the cross-device collaborative shooting method provided by this embodiment, when the computer side calls the mobile phone side camera, the computer side first identifies whether the current user is the owner. If the computer side user is not the owner, a second shared camera call instruction containing the result of the owner identification failure is sent to the mobile phone. After the mobile phone receives the second shared camera call instruction, it is determined that it is currently in the locked screen / off screen state, and the mobile phone camera is not called by the computer for the first time and no prompt is given after the previous choice of consent. The distance between the mobile phone and the computer is measured. If the distance is greater than or equal to the preset distance, the mobile phone side displays a pop-up window prompting whether to agree to use the shared camera. In this way, the mobile phone camera will be started for shooting only after the mobile phone user chooses to agree. It can be seen that when the scheme identifies that the mobile phone and the computer are in different rooms and the mobile phone is in an unused state (locked screen or off screen), the mobile phone will display a pop-up window prompting whether to agree to use the shared camera, reminding the mobile phone user that the mobile phone camera is being called. In the case of a risk of privacy leakage for the mobile phone user, the caller's request to call the mobile phone camera is directly rejected, thereby improving the privacy security of cross-device collaborative shooting.

[0105] Combine the following Figure 4 This section describes the process of cross-device collaborative shooting when the phone screen is on, i.e. the user is using the phone.

[0106] See also Figure 4 , shows a flowchart of another cross-device collaborative shooting method provided by an embodiment of the present application, such as Figure 4 As shown, the method may include the following steps:

[0107] S201, the computer and the mobile phone are connected via device discovery.

[0108] S202, the computer receives an operation to start a virtual camera (i.e., a camera shared by a mobile phone).

[0109] S203, the computer determines whether the current user is the owner of the machine; if the current user is the owner of the machine, S204a is executed; if the current user is not the owner of the machine, S204b is executed.

[0110] S204a, sending a second shared camera calling instruction, which includes the device ID of the calling device, the shared camera calling request, and the owner recognition success result.

[0111] S204b, sending a first shared camera calling instruction, which includes the device ID of the calling device, the shared camera calling request, and the owner recognition failure result.

[0112] S205, the mobile phone determines the current state of the mobile phone screen; if the screen is on, execute S206.

[0113] S206, the mobile phone sends a request to the computer to measure the distance between the mobile phone and the computer.

[0114] In this implementation, after the mobile phone receives the recognition result from the computer that the current user is not the owner of the phone, it directly initiates a request to measure the distance between itself and the computer, and further decides whether to display a pop-up window based on the distance between the two.

[0115] S207, the computer returns the distance between the computer and the mobile phone to the mobile phone.

[0116] S208, the mobile phone determines whether the distance between the two is greater than or equal to a preset distance; if so, execute S209; if not, execute S210.

[0117] S209, the mobile phone displays a pop-up window prompting whether to agree to use the shared camera.

[0118] S210, the mobile phone starts the shared camera to take pictures.

[0119] S211, the mobile phone transmits image data to the computer.

[0120] In the cross-device collaborative shooting method provided in this embodiment, when the computer calls the mobile phone camera, the computer determines whether the computer user is the owner of the machine. If not, the computer sends a second shared camera call instruction including the owner recognition failure result to the mobile phone. When the mobile phone is in the bright screen state, after receiving the second shared camera call instruction sent by the computer, it directly measures the distance between the mobile phone and the computer. When the distance between the two is greater than or equal to the preset distance, the mobile phone displays a pop-up window prompting whether to agree to use the shared camera. The mobile phone camera will be started for shooting only after the user chooses to agree. It can be seen that in the scenario where the mobile phone is in the bright screen state (that is, the mobile phone is in use), when the computer calls the mobile phone camera for shooting, if the computer user is not the owner, and the mobile phone and the computer are in different rooms, the mobile phone displays a pop-up window prompting whether to agree to use the shared camera. If the mobile phone user is at risk of privacy leakage, the caller can be refused to use the shared camera, thereby improving the privacy security of cross-device collaborative shooting.

[0121] Combine the following Figure 5 , based on the interaction of various modules of a computer and a mobile phone, this application provides a cross-device collaborative shooting method. Figure 5 As shown, the method may include the following steps:

[0122] S301, the setting APP of the mobile phone turns on the camera sharing service in response to the operation of turning on the camera sharing switch.

[0123] To ensure that the computer can use the mobile phone's camera, the camera sharing service needs to be enabled on the mobile phone.

[0124] S302, setting the APP to send the camera sharing switch status to the device management, and the device management sends the device information of the mobile phone to the cloud server.

[0125] In an exemplary embodiment, after the device management receives the status of the camera sharing switch sent by the device APP, it uploads information such as the device ID, service ID and switch status to the cloud.

[0126] The device ID is the unique identification information of the mobile device. For example, the device ID can be the device's product serial number (SN), mobile equipment identifier (MEID), international mobile equipment identity (IMEI), medium access control (MAC) address, etc.

[0127] The service ID is a unique identifier of a virtualized shared service and is used to identify different services.

[0128] The switch status is used to identify the status of the camera sharing switch, for example, the camera sharing switch includes states such as on, off, and not supported. Exemplarily, "1" indicates the off state, "2" indicates the on state, and "0" indicates not supported.

[0129] In an exemplary embodiment, click the smart interconnection setting item in the setting APP interface of the mobile phone, and the following is displayed: Figure 6 The smart interconnection interface 31 shown in (1) includes switch settings for multiple services and "My Device". The switch settings for services may include switch settings for application connection services, call sharing, notification sharing, keyboard and mouse sharing, camera sharing, extended services, and other services. "My Device" includes setting items 33 for other electronic devices that the current electronic device is connected to. For example, the electronic device connected to the current mobile phone is a laptop.

[0130] like Figure 6 As shown in (1), in this example, the camera sharing switch is in the off state. After the mobile phone receives a click operation on the camera sharing switch setting item 32, it displays Figure 6The interface 41 shown in (2) includes a camera sharing service switch item 42, and the camera sharing service switch item 42 includes a button 43. The camera sharing service is turned on or off by clicking the button 43. Figure 6 The state of button 43 shown in (2) is off. In this scenario, after the mobile phone receives a click operation on button 43, the camera sharing service is switched to on state, and button 43 is switched to display Figure 6 The state shown in (3).

[0131] S303, setting the APP to turn on the owner identification service in response to the operation of turning on the owner identification switch.

[0132] In order to ensure the privacy and security of cross-device collaborative shooting, the phone needs to turn on the owner recognition service. In this way, when the phone is connected to the computer, the phone will synchronize the owner's face image to the computer. When the computer calls the phone's camera across devices, it will recognize the owner based on the received owner's face image.

[0133] In an exemplary embodiment, if Figure 7 As shown in (1), after the mobile phone receives the click operation on the extended service setting item 34 in the smart interconnection interface 31, it displays Figure 7 The extended service interface 51 shown in (2) of FIG. 51 includes an owner identification switch setting item 52, which includes a button 53. By clicking the button 53, the owner identification service can be turned on or off. Figure 7 The state of the button 53 shown in (2) is the on state.

[0134] S304, setting the APP to notify the device owner recognition service to obtain the face image of the device owner.

[0135] The APP is configured to send a notification message for obtaining a facial image to the owner identification service after receiving the operation of turning on the owner identification switch, so that the owner identification service obtains the owner's facial image.

[0136] S305, the device owner identification service calls the camera to capture the face image of the device owner.

[0137] After receiving the notification message from the setting APP, the owner recognition service pulls up the camera to capture the owner's face image.

[0138] S301 to S305 are pre-processing steps before cross-device collaborative shooting. Among them, the process of obtaining the face image of the owner of the phone only needs to be performed once, and the captured face image of the owner of the phone is stored in the mobile phone and can be used directly later.

[0139] In addition, it is sufficient to ensure that the camera sharing switch is turned on before cross-device collaborative shooting. If the sharing switch is not turned off after being turned on, there is no need to repeatedly turn on the sharing switch.

[0140] As for the owner identification switch, it only needs to be turned on when the mobile phone is connected to another electronic device for the first time across devices to ensure that the mobile phone can synchronize the owner's facial image to the electronic device.

[0141] S306, the mobile phone sends the first face image to the computer.

[0142] In this example, after the mobile phone and the computer are connected through the MagicLink service, the mobile phone sends the facial image of the owner recorded on the mobile phone (ie, the first facial image) to the computer so that the computer can identify the owner.

[0143] S307, the computer stores the received facial image of the owner in a database.

[0144] In an exemplary embodiment, the computer and the mobile phone belong to the same user, and the computer is only connected to the electronic device of the owner. In this scenario, the computer only needs to store the facial image of the owner, that is, only needs to store the facial image of one owner.

[0145] In another exemplary embodiment, the computer may be connected to multiple electronic devices. In this scenario, the computer can store the facial images of the owners of multiple electronic devices, and the computer can store the received facial images of the owners and the device IDs of the electronic devices in correspondence. In this way, when the computer calls an application or other resource of the electronic device, the corresponding facial image of the owner can be queried from the database based on the device ID of the electronic device.

[0146] S308a, after the computer is connected to the mobile phone, the hardware virtualization service reads the device information of the mobile phone from the cloud server.

[0147] After the computer is connected to the mobile phone, the device information corresponding to the mobile phone is read from the cloud server based on the device ID of the mobile phone, such as the service ID of the virtualized sharing service and the status of the camera sharing switch.

[0148] S308b, the computer's hardware virtualization service sends the obtained device information of the mobile phone to the virtualization sharing service.

[0149] S308c, when the camera sharing switch is in the on state, the virtualized sharing service of the computer enables the camera sharing service, and after enabling, the virtual camera is displayed.

[0150] If the camera sharing switch on the mobile phone is turned on (such as the switch state is "2"), the virtualized sharing service on the computer enables the camera sharing service. Enabling the camera sharing service is equivalent to turning on the camera sharing service, so that the computer can display the virtual camera (that is, the camera connected to the electronic device).

[0151] Figure 5 The execution order of S308a to S308c is only an example, and it can be executed immediately after the computer and the mobile phone are connected. For example, S308a can be executed before S301 to S307. This application does not limit the execution order of S308a to S308c.

[0152] S309, after receiving the message for starting the virtual camera, the hardware virtualization service of the computer sends the message to the virtualization sharing service.

[0153] For example, Figure 1 As shown in (1), after the mobile phone receives the user's operation of selecting the mobile phone camera 24 in the video call application, the video call application sends a message to the hardware virtualization service to start the virtual camera, and further, the hardware virtualization service sends the message to the virtualization sharing service.

[0154] S310, the computer's virtualization sharing service sends an owner identification request to the owner identification service in response to the message of starting the virtual camera.

[0155] S311, the computer owner identification service calls the computer camera to capture the face image of the current user.

[0156] S312, the computer's owner identification service obtains an owner identification result based on the current user's face image and the locally stored face image of the owner of the mobile phone.

[0157] S313, the computer's owner identification service returns the owner identification result to the virtualization sharing service.

[0158] The process shown in S310 to S313 of this embodiment is the computer-side owner identification process.

[0159] If the owner identification result is that the owner identification is successful, then S314 to S316 are executed. If the owner identification result is that the owner identification is unsuccessful, then S317 to S332 are executed.

[0160] S314, the virtualization sharing service of the computer sends a camera start request to the virtualization sharing service of the mobile phone.

[0161] S315, the virtualization sharing service on the mobile phone sends a camera start request to the hardware virtualization service.

[0162] S316, the mobile phone camera starts shooting, and the mobile phone hardware virtualization service transmits the image data stream to the computer hardware virtualization service. That is, the mobile phone transmits the image data stream to the computer.

[0163] The process shown in S314 to S316 is the process of pulling up the camera to shoot and transmit the image data stream to the computer after the computer owner has been successfully identified.

[0164] In an exemplary embodiment, when the mobile phone virtualization sharing service receives the first shared camera call instruction from the computer virtualization sharing service, it parses the instruction to obtain the result of failed owner recognition. The mobile phone virtualization sharing service can obtain the screen status of the mobile phone, such as locked screen / off screen, bright screen, etc. Get the current status of the phone screen in the system.

[0165] S317, the computer virtualization sharing service sends a first shared camera calling instruction to the mobile phone virtualization sharing service, wherein the instruction includes the device ID of the calling device, the shared camera calling request and the result of the failed machine owner identification.

[0166] S318, the virtualized sharing service of the mobile phone obtains the status of the mobile phone screen, and if the mobile phone screen is in the locked screen or off screen state, S319 is executed. That is, if the mobile phone screen is in the locked screen or off screen state, first determine whether the mobile phone is called by the computer for the first time, and if it is not the first time to be called, continue to determine whether the user has chosen not to be prompted before.

[0167] If the mobile phone screen is in the on-screen state, S321 to S332 are executed, that is, the distance between the mobile phone and the computer is directly measured when the mobile phone screen is in the on-screen state.

[0168] S319, the mobile phone virtualization sharing service determines whether the mobile phone camera is called by the computer for the first time; if it is not called for the first time, execute S320; if it is called for the first time, execute S328.

[0169] S320, the mobile terminal virtualized sharing service determines whether the user has chosen to agree and not prompt again before; case 1: if the user did not choose to agree and not prompt again when the pop-up window for agreeing to use the shared camera was called before, the pop-up window will be pulled up, that is, the mobile terminal will display a pop-up window for agreeing to use the shared camera. Further, if the user chooses to agree, S328 will be executed, and if the user chooses to refuse, S331 will be executed. Case 2: If the user chose to agree and not prompt again when the pop-up window was called before, S321 to S327 will be executed.

[0170] S321, the mobile phone virtualization sharing service sends a ranging request to the mobile phone decision engine.

[0171] S322, the mobile phone decision engine sends a ranging request to the computer decision engine.

[0172] S323, the computer-side decision engine sends the distance between the computer and the mobile phone to the mobile-side decision engine.

[0173] S324, the mobile phone decision engine returns the distance between the computer and the mobile phone to the virtualized sharing service.

[0174] S325, the virtualized sharing service of the mobile phone determines that the distance between the mobile phone and the computer is less than the preset distance, and starts the shared camera to shoot through the hardware virtualization service.

[0175] S326, the hardware virtualization service of the mobile phone transmits the image data captured by the shared camera to the hardware virtualization service on the computer.

[0176] S327, the virtual sharing service of the mobile phone determines that the distance between the mobile phone and the computer is greater than or equal to the preset distance, and pulls up a pop-up window to ask whether to agree to use the shared camera.

[0177] S328, the virtual sharing service of the mobile phone directly pulls up a pop-up window asking whether to agree to use the shared camera.

[0178] If the mobile phone camera is used by other electronic devices for the first time, the mobile phone will directly display a pop-up window asking whether to agree to use the shared camera.

[0179] S329, after the virtualized sharing service of the mobile phone receives the operation of agreeing to use the shared camera, it starts the shared camera for shooting through the hardware virtualization service.

[0180] S330, the hardware virtualization sharing service of the mobile phone transmits the captured image data stream to the hardware virtualization sharing service of the computer.

[0181] S331, the virtualized sharing service of the mobile phone receives an operation of not agreeing to use the shared camera.

[0182] S332, the virtualized sharing service of the mobile phone responds to the operation of not agreeing to use the shared camera and sends a call rejection result to the virtualized sharing service on the computer.

[0183] The cross-device collaborative shooting method provided in this embodiment, after the computer-side owner recognizes, the mobile phone is in the screen-off or lock screen state and the mobile phone camera is not called for the first time and has previously chosen to agree and no more prompts, the mobile phone virtualization sharing service determines whether to display a pop-up window for using the shared camera by measuring the distance between the mobile phone and the computer. If the distance between the mobile phone and the computer is less than the preset distance, the pop-up window will not be displayed and the camera will be directly pulled up for shooting. If the distance between the two is greater than or equal to the preset distance, a pop-up window will be displayed to remind the mobile phone user that the computer requests to call the mobile phone camera for shooting. At this time, if the mobile phone user is at risk of privacy leakage, the computer call can be rejected, which improves the privacy security of the cross-device collaborative shooting scene.

[0184] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0185] In the several embodiments provided in this embodiment, it should be understood that the disclosed systems, 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 system, 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 an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0186] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0187] In addition, each functional unit in each embodiment of the present embodiment 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 integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0188] 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 computer-readable storage medium. Based on this understanding, the technical solution of this embodiment 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, and the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment. The aforementioned storage medium includes: flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk and other media that can store program codes.

[0189] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A cross-device collaborative shooting method, characterized in that: Applied to a second electronic device, the method includes: The second electronic device establishes a communication connection with the first electronic device; In response to a first shared camera call instruction sent by the first electronic device, obtaining a distance to the first electronic device, wherein the first shared camera call instruction includes a shared camera call request and an owner recognition failure result, wherein the owner recognition failure result is generated when the first electronic device recognizes that a current user of the first electronic device is not an owner of the second electronic device; When the distance is greater than or equal to the preset distance, display a prompt message asking whether to agree to use the shared camera; When the distance is less than the preset distance, the shared camera of the second electronic device is started to take pictures, and the taken image data is transmitted to the first electronic device.

2. The method according to claim 1, characterized in that The acquiring the distance between the first electronic device and the first electronic device in response to the first shared camera calling instruction sent by the first electronic device includes: When the second electronic device is in a locked screen or off screen state, in response to the first shared camera calling instruction sent by the first electronic device, determining whether the shared camera of the second electronic device is called by the first electronic device for the first time; If it is determined that it is not the first time that the first electronic device has called, determining whether a choice has been made not to prompt again; When it is determined that no more prompting has been selected, the distance between the first electronic device and the first electronic device is obtained.

3. The method according to claim 2, characterized in that The determining whether the shared camera of the second electronic device is called by the first electronic device for the first time includes: Based on the unique device identifier of the first electronic device, query the shared camera calling information recorded by the second electronic device to obtain the first calling information corresponding to the first electronic device; In a case where the first calling information is the first preset information, determining that the shared camera is called by the first electronic device for the first time; In a case where the first calling information is the second preset information, it is determined that the shared camera is not called by the first electronic device for the first time.

4. The method according to claim 1, characterized in that: The acquiring the distance between the first electronic device and the first electronic device in response to the first shared camera calling instruction sent by the first electronic device includes: When the second electronic device is in a screen-on state, in response to a first shared camera calling instruction sent by the first electronic device, the distance between the second electronic device and the first electronic device is obtained.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining the distance between the first electronic device and the first electronic device includes: Sending a ranging request to the first electronic device; Receive the distance between the first electronic device and the second electronic device sent by the first electronic device.

6. The method according to any one of claims 1 to 4, characterized in that: After the second electronic device establishes a communication connection with the first electronic device, the method further includes: The first facial image of the owner recorded in the second electronic device is sent to the first electronic device through the communication connection, so that the first electronic device recognizes the owner based on the first facial image.

7. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In response to a second shared camera calling instruction sent by the first electronic device, the shared camera of the second electronic device is started to shoot, and the shot image data is transmitted to the first electronic device. The second shared camera calling instruction includes a shared camera calling request and a successful owner identification result. The successful owner identification result is generated when the first electronic device recognizes that the current user of the first electronic device is the owner of the second electronic device.

8. The method according to claim 2, characterized in that: The method further comprises: When it is determined that the user is called by the first electronic device for the first time, or when it is not the first time the user is called by the first electronic device and no further prompt is chosen, a prompt message is displayed asking whether the user agrees to use the shared camera.

9. A cross-device collaborative shooting method, characterized in that: Applied to a first electronic device, the method includes: The first electronic device establishes a communication connection with the second electronic device; In response to the start-up operation of the virtual camera, identifying whether the current user is the owner of the second electronic device; When it is identified that the current user is not the owner, a first shared camera calling instruction is sent to the second electronic device, the first shared camera calling instruction including a shared camera calling request and a result of failure to identify the owner, the first shared camera calling instruction is used to enable the second electronic device to obtain the distance between the second electronic device and the first electronic device, and display a prompt message of whether to agree to use the shared camera when the distance is greater than or equal to a preset distance; The captured image data transmitted by the second electronic device is received, where the image data is obtained by the second electronic device starting the camera to capture the image after detecting an operation of agreeing to use the shared camera.

10. The method according to claim 9, characterized in that The step of identifying whether the current user is the camera owner in response to the start-up operation of the virtual camera includes: In response to the start-up operation of the virtual camera, start the camera of the first electronic device to capture the facial image of the current user; comparing a first facial image of the owner obtained in advance by the first electronic device with a second facial image of the current user to determine whether they are the same person; If the second facial image and the first facial image are of the same person, determining that the current user is the device owner; When the second facial image and the first facial image are not of the same person, it is determined that the current user is not the owner of the device.

11. The method according to claim 9 or 10, characterized in that: The method further comprises: In response to the distance measurement request sent by the second electronic device, the distance between the first electronic device and the second electronic device is obtained, and the distance is sent to the second electronic device.

12. The method according to any one of claims 9 to 10, characterized in that: The method further comprises: When the current user is identified as the owner, a second shared camera calling instruction is sent to the second electronic device, where the second shared camera calling instruction includes a shared camera calling request and a successful owner identification result, and the second shared camera calling instruction is used to enable the second electronic device to start the shared camera for shooting; Receive the captured image data transmitted by the second electronic device.

13. An electronic device, characterized in that: The electronic device includes: one or more processors, a memory and a touch screen; the memory is used to store program code; the processor is used to run the program code, so that the electronic device implements the cross-device collaborative shooting method as described in any one of claims 1 to 12.

14. A computer-readable storage medium, characterized in that: Instructions are stored thereon, and when the instructions are executed on the electronic device, the electronic device executes the cross-device collaborative shooting method as described in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Method and device for sharing mobile terminal camera

    CN105357498A

  • Camera sharing method and apparatus

    CN106412483A

  • Camera sharing method and apparatus, and intelligent terminal

    CN107948592A

  • Monitoring video sharing method and device and storage medium

    CN111193900A

  • Camera sharing method and device, and computer readable storage medium

    CN111970468A