Content sharing method, electronic device and storage medium

By automatically identifying and connecting real devices, it simplifies the content sharing process between AR/VR devices and real devices, solves the problem of cumbersome user operations, and improves efficiency and user experience.

CN114610193BActive Publication Date: 2024-10-11HUAWEI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202011411232.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-04
Publication Date
2024-10-11
Estimated Expiration
2040-12-04

AI Technical Summary

Technical Problem

During the content sharing process between AR/VR devices and real devices, users need cumbersome operations, resulting in low efficiency and poor user experience.

Method used

By detecting the user's drag operation, it automatically identifies and connects the real device, uses the camera to scan the QR code or ultrasound pre-made audio to determine the device location, and realizes automatic connection and content sharing between the virtual device and the real device.

Benefits of technology

It simplifies user operations, improves content sharing efficiency and user experience, and reduces the complexity of connecting virtual devices to real devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114610193B_ABST
    Figure CN114610193B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a content sharing method, an electronic device and a storage medium, which relates to the field of communication technology. The method includes: detecting a first operation of a user for content sharing; determining one or more shared files in response to the first operation detected; detecting a second operation of a user for selecting a second electronic device; determining the second electronic device in response to the second operation detected; sending a connection request to the second electronic device, the connection request is used to establish a connection with the second electronic device; receiving a connection confirmation message sent by the second electronic device, and sending one or more shared files to the second electronic device. The method provided by the embodiment of the present application can project the display content in a virtual device onto the screen of a real device, thereby improving the efficiency of content sharing and the user's operating experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a content sharing method, an electronic device, and a storage medium. Background Art

[0002] With the rapid development of virtual reality technology, augmented reality (AR) and virtual reality (VR) have achieved remarkable results in the fields of games, news, filmmaking, education, sports, and music. With the commercial support of 5G technology, AR / VR products will become more and more popular among mass users. The connection and collaboration between AR / VR devices and real devices has become an inevitable problem. For example, when users share content to real devices in the above-mentioned virtual devices such as AR / VR, they cannot quickly select real devices, which requires cumbersome operations by users, reduces the efficiency of content sharing, and reduces the user experience. Summary of the invention

[0003] The embodiments of the present application provide a content sharing method, an electronic device, and a storage medium to provide a way to project the content of a virtual device to a real device.

[0004] In a first aspect, an embodiment of the present application provides a content sharing method, which is applied to a first electronic device, where the first electronic device displays a first image, where the first image includes one or more shared files, including:

[0005] A first operation of a user for content sharing is detected; specifically, the first operation may be dragging a shared file by the user.

[0006] In response to the detected first operation, one or more shared files are determined; specifically, the user may drag one shared file, or may drag multiple shared files at the same time.

[0007] A second operation of the user for selecting a second electronic device is detected; specifically, the second operation may be that the user stops dragging the shared file after dragging it for a certain distance, thereby triggering a process of selecting the second electronic device.

[0008] In response to the detected second operation, a second electronic device is determined; specifically, the second electronic device may be automatically selected by the first electronic device, or may be manually selected by the user.

[0009] A connection request is sent to the second electronic device, where the connection request is used to establish a connection with the second electronic device; specifically, the connection can be a data transmission channel, which can be used to transmit shared files to complete the screen projection of the first electronic device on the second electronic device.

[0010] A connection confirmation message sent by the second electronic device is received, and one or more shared files are sent to the second electronic device.

[0011] In one possible implementation, after responding to the detected first operation, a connection instruction is sent to one or more second electronic devices, where the connection instruction is used to instruct the one or more second electronic devices to open a connection entrance, and the determining the second electronic device in response to the detected second operation includes:

[0012] In response to the detected second operation, the connection entry of the second electronic device is identified; specifically, the connection entry is used to identify the identity of the second electronic device. Exemplarily, the connection entry can be in the form of a QR code or other forms, which are not limited in the embodiments of the present application. Further, the second operation can be that the first electronic device turns on a camera to scan the QR code, identifies the QR code, and initiates a connection with the second electronic device.

[0013] The second electronic device is determined based on the recognition result.

[0014] In one possible implementation, in response to the detected second operation, determining the second electronic device includes:

[0015] In response to the detected second operation, a second image is acquired; specifically, the second operation may be that the user stops dragging the shared file for a certain distance, at which time the first electronic device may use a camera to acquire a second image, which may be an image of the environment acquired by the camera.

[0016] The second image is recognized to obtain a target area; specifically, the image recognition can be performed by a preset image recognition model. The target area can include an area of ​​a target object.

[0017] Determine whether the location of the shared file is in the target area; specifically, after the user drags the shared file to any location, the coordinates of the location can be obtained, and whether the location of the shared file is in the target area can be determined based on the coordinates.

[0018] If the location of the shared file is in the target area, the target area is identified and the second electronic device in the target area is determined.

[0019] In one possible implementation, the first electronic device includes a plurality of preset target areas, each preset target area corresponds to each second electronic device one by one, the target area is identified, and the second electronic device in the target area is determined to include:

[0020] The target area is matched with each preset target area to obtain a preset target area that matches the target area; specifically, the target area can be matched with each preset target area through image recognition.

[0021] The preset target area is queried to determine the second electronic device corresponding to the preset target area.

[0022] In one possible implementation, the first electronic device includes preset location information of a plurality of second electronic devices, and in response to the detected second operation, determines that the second electronic device includes:

[0023] In response to the detected second operation, a second image is acquired; specifically, the second operation may be that the user stops dragging the shared file for a certain distance, at which time the first electronic device may use a camera to acquire a second image, which may be an image of the environment acquired by the camera.

[0024] The second image is recognized to obtain a target area; specifically, the image recognition can be performed by a preset image recognition model. The target area can include an area of ​​a target object.

[0025] Determine whether the location of the shared file is in the target area; specifically, after the user drags the shared file to any location, the coordinates of the location can be obtained, and whether the location of the shared file is in the target area can be determined based on the coordinates.

[0026] If the location of the shared file is in the target area, the positioning information of the target object in the target area is obtained; specifically, the positioning information may include the distance and direction of the target object.

[0027] The positioning information of the target object in the target area is compared with the preset positioning information of each second electronic device. If the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, the target object is determined to be the second electronic device.

[0028] In one possible implementation manner, the positioning information of the second electronic device is determined based on ultrasonic pre-produced audio emitted by the second electronic device.

[0029] In a second aspect, an embodiment of the present application provides a content sharing device, which is applied to a first electronic device, where the first electronic device displays a first image, where the first image includes one or more shared files, including:

[0030] A first determination module is configured to detect a first operation of a user for content sharing; and determine one or more shared files in response to the detected first operation;

[0031] A second determination module is used to detect a second operation of a user for selecting a second electronic device; and determine the second electronic device in response to the detected second operation;

[0032] A connection module, used to send a connection request to the second electronic device, where the connection request is used to establish a connection with the second electronic device;

[0033] The sending module is used to receive a connection confirmation message sent by the second electronic device and send one or more shared files to the second electronic device.

[0034] In one possible implementation, the device further includes:

[0035] an instruction module, used to send a connection instruction to one or more second electronic devices, where the connection instruction is used to instruct the one or more second electronic devices to open a connection entrance;

[0036] The second determination module is further configured to identify a connection entry of a second electronic device in response to the detected second operation; and determine the second electronic device based on the identification result.

[0037] In one possible implementation, the second determining module includes:

[0038] A first acquisition unit, configured to acquire a second image in response to a detected second operation;

[0039] A first recognition unit is used to recognize the second image and obtain a target area;

[0040] A first determination unit, configured to determine whether the location of the shared file is located in a target area;

[0041] The first determining unit is configured to identify the target area if the location of the shared file is in the target area, and determine the second electronic device in the target area.

[0042] In one possible implementation, the first electronic device includes multiple preset target areas, each preset target area corresponds to each second electronic device one by one, and the above-mentioned first determination unit is also used to match the target area with each preset target area to obtain a preset target area matching the target area; query the preset target area to determine the second electronic device corresponding to the preset target area.

[0043] In one possible implementation, the first electronic device includes preset location information of multiple second electronic devices, and the second determining module includes:

[0044] A second acquisition unit, configured to acquire a second image in response to a detected second operation;

[0045] A second recognition unit, used to recognize the second image to obtain a target area;

[0046] A second determination unit, configured to determine whether the location of the shared file is located in the target area;

[0047] The second determination unit is used to obtain the positioning information of the target object in the target area if the location of the shared file is in the target area; compare the positioning information of the target object in the target area with the preset positioning information of each second electronic device, and if the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, determine that the target object is the second electronic device.

[0048] In one possible implementation manner, the positioning information of the second electronic device is determined based on ultrasonic pre-produced audio emitted by the second electronic device.

[0049] In a third aspect, an embodiment of the present application provides a first electronic device, where the first electronic device displays a first image, where the first image includes one or more shared files, including:

[0050] A memory, the memory is used to store computer program codes, the computer program codes include instructions, when the first electronic device reads the instructions from the memory, the first electronic device performs the following steps:

[0051] detecting a first operation of a user for content sharing;

[0052] In response to the detected first operation, determining one or more shared files;

[0053] detecting a second operation of the user for selecting a second electronic device;

[0054] In response to the detected second operation, determining a second electronic device;

[0055] Sending a connection request to the second electronic device, where the connection request is used to establish a connection with the second electronic device;

[0056] A connection confirmation message sent by the second electronic device is received, and one or more shared files are sent to the second electronic device.

[0057] In one possible implementation, after responding to the detected first operation, a connection instruction is sent to one or more second electronic devices, the connection instruction is used to instruct the one or more second electronic devices to open a connection entrance, and when the instruction is executed by the first electronic device, the first electronic device executes the second operation in response to the detection, and the step of determining the second electronic device includes:

[0058] In response to the detected second operation, identifying a connection entry of the second electronic device;

[0059] The second electronic device is determined based on the recognition result.

[0060] In one possible implementation manner, when the instruction is executed by the first electronic device, the first electronic device performs a step of determining the second electronic device in response to the detected second operation, including:

[0061] In response to the detected second operation, acquiring a second image;

[0062] Recognize the second image to obtain a target area;

[0063] Determine whether the shared file is located in the target area;

[0064] If the location of the shared file is in the target area, the target area is identified and the second electronic device in the target area is determined.

[0065] In one possible implementation, the first electronic device includes a plurality of preset target areas, each preset target area corresponds to each second electronic device one by one, and when the instruction is executed by the first electronic device, the first electronic device identifies the target area, and the step of determining the second electronic device in the target area includes:

[0066] Matching the target area with a plurality of preset target areas to obtain a preset target area that matches the target area;

[0067] The preset target area is queried to determine the second electronic device corresponding to the preset target area.

[0068] In one possible implementation, the first electronic device includes preset location information of multiple second electronic devices, and when the instruction is executed by the first electronic device, the first electronic device executes in response to the detected second operation, and the step of determining the second electronic device includes:

[0069] In response to the detected second operation, acquiring a second image;

[0070] Recognize the second image to obtain a target area;

[0071] Determine whether the shared file is located in the target area;

[0072] If the location of the shared file is in the target area, obtaining the location information of the target object in the target area;

[0073] The positioning information of the target object in the target area is compared with the preset positioning information of multiple second electronic devices. If the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, the target object is determined to be the second electronic device.

[0074] In one possible implementation manner, the positioning information of the second electronic device is determined based on ultrasonic pre-produced audio emitted by the second electronic device.

[0075] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer-readable storage medium is run on a computer, the computer executes the method described in the first aspect.

[0076] In a fifth aspect, an embodiment of the present application provides a computer program, which, when executed by a computer, is used to execute the method described in the first aspect.

[0077] In one possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged together with the processor, or may be stored in whole or in part on a memory not packaged together with the processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0078] Figure 1 A schematic diagram of an application scenario of content sharing provided in an embodiment of the present application;

[0079] Figure 2 A flowchart of an embodiment of the content sharing method provided by the present application;

[0080] Figure 3 A schematic diagram of a virtual desktop provided in an embodiment of the present application;

[0081] Figure 4 A schematic diagram of a user operating a shared file provided in an embodiment of the present application;

[0082] Figure 5 A flowchart of another embodiment of the content sharing method provided by the present application;

[0083] Figure 6 A schematic diagram of an embodiment of determining a target area provided in the present application;

[0084] Figure 7 A schematic diagram of another embodiment of determining a target area provided by the present application;

[0085] Figure 8 A schematic diagram of an interface for binding a target area with a real device provided in an embodiment of the present application;

[0086] Fig. 9A schematic diagram of determining the location of a shared file and a target area provided in an embodiment of the present application;

[0087] Fig.10 A flowchart of another embodiment of the content sharing method provided by the present application;

[0088] Fig.11 A schematic diagram of the structure of a content sharing device provided in an embodiment of the present application;

[0089] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] The technical solution in the embodiment of the present application will be described below in conjunction with the drawings in the embodiment of the present application. In the description of the embodiment of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0091] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0092] Currently, when sharing content in virtual devices such as AR / VR to real devices, users need to enter the real device list page of the virtual device and select the real device that needs to share content, which brings inconvenience to the user's operation and reduces the efficiency of content sharing.

[0093] Based on the above problems, an embodiment of the present application proposes a content sharing method.

[0094] Now combined Figure 1-Figure 10 The content sharing method provided in the embodiment of the present application is described as follows: Figure 1 The following is an application scenario provided by the embodiment of the present application. Figure 1 , the above application scenario includes a virtual device 100 and a real device 200.

[0095] The virtual device 100 may include electronic devices such as VR head-mounted devices and AR glasses. The real device 200 may include electronic devices with display screens, such as televisions, computers, tablets, and mobile phones.

[0096] Figure 2 A flowchart of an embodiment of a content sharing method provided in an embodiment of the present application includes:

[0097] Step 101: the virtual device 100 displays a virtual desktop.

[0098] Specifically, the virtual desktop may include one or more files, and the types of the files may include pictures, videos, audios, and texts, etc., which are not particularly limited in the embodiments of the present application.

[0099] Figure 3 A schematic diagram of the effect of a virtual desktop is shown in FIG. Figure 3 As shown, the virtual desktop 300 may include files 310 of various types, and the user may operate the files 310 in the virtual desktop 300 , for example, by clicking or dragging.

[0100] Step 102 , detecting an operation of a user dragging a desktop file, and in response to the operation, searching for nearby real devices 200 .

[0101] Specifically, the user can operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing the desktop file. Exemplarily, the user can drag any file in the virtual desktop 300 for a distance and then release it. In response to the user's operation of dragging the file, the virtual device 100 starts searching for the surrounding real devices 200, wherein the search method can be through a local area network scanning method. Exemplarily, the local area network can be a combination of one or more types of bus, ring, star and tree. The above-mentioned virtual device 100 can be in the same local area network as the above-mentioned real device 200, so the virtual device 100 in the same local area network can discover each other with the upper real device 200. In addition, the local area network can be networked through WIFI, or it can be networked through a self-organizing network between devices (for example, Bluetooth or hotspots, etc.), and the embodiment of the present application does not specifically limit this. It can be understood that other forms of operation can also be used, and the embodiment of the present application does not specifically limit this.

[0102] Optionally, the user may also drag and drop multiple files to trigger file sharing, which is not particularly limited in the embodiments of the present application.

[0103] Figure 4 The following is a schematic diagram of the operation of users dragging files, such as Figure 4 As shown, the user can drag the file 310 and then release it, for example, drag the file 310 out of the virtual desktop 300 and then release it.

[0104] Step 103 : If one or more real devices 200 are found, a sharing instruction is sent to the one or more real devices 200 .

[0105] Specifically, after searching for the surrounding real devices 200, if one or more real devices 200 are found, the virtual device 100 can send a sharing instruction to the one or more real devices 200, wherein the sharing instruction is used to instruct the real device 200 to start a connection application.

[0106] Step 104 , the real device 200 receives the sharing instruction sent by the virtual device 100 and starts the connection application.

[0107] Specifically, when the real device 200 receives the sharing instruction sent by the virtual device 100, the corresponding connection application can be started, wherein the connection application can be used to establish a connection between the virtual device 100 and the real device 200. Exemplarily, after the real device 200 starts the connection application, a connection entry can be displayed on the display interface of the real device 200, and the connection entry is used to identify the entry for establishing the connection. In specific implementation, the connection entry can be in the form of a QR code or other forms, and the embodiments of the present application do not specifically limit this.

[0108] Step 105 , detecting an operation of a user using a camera of the virtual device 100 to scan a QR code on a display interface of the real device 200 , and in response to the operation, the virtual device 100 initiates a connection request to the real device 200 .

[0109] Specifically, the user can perform an operation in the virtual device 100 to initiate a connection with the real device 200. Exemplarily, the user can open a camera in the virtual device 100 and scan a QR code on the display interface of the real device 200. In response to the operation, the virtual device 100 initiates a connection request to the real device 200, and the connection request is used to request to establish a connection with the real device 200. The connection request may carry the device number of the virtual device 100, and the device number may be used to identify the identity of the virtual device 100.

[0110] Step 106 , the real device 200 receives the connection request sent by the virtual device 100 , establishes a connection with the virtual device 100 , and sends a connection confirmation message to the virtual device 100 .

[0111] Specifically, after receiving the connection request from the virtual device 100, the real device 200 can establish a connection with the virtual device 100. The connection can be used to transmit shared content between the virtual device 100 and the real device 200. The shared content may include file contents such as pictures, videos, audio and text.

[0112] Step 107 , the virtual device 100 receives the connection confirmation message sent by the real device 200 , and sends the shared content to the real device 200 .

[0113] Specifically, after the virtual device 100 receives the connection confirmation message sent by the real device 200 , the shared content may be sent to the real device 200 , wherein the shared content may be the file dragged by the user in step 102 .

[0114] Step 108 , the real device 200 receives the shared content sent by the virtual device 100 , and plays the shared content on a display screen to complete content sharing.

[0115] Specifically, after the real device 200 receives the shared content sent by the virtual device 100, the shared content can be played on the display screen to complete content sharing.

[0116] It is understandable that if the real device 200 receives multiple files sent by the virtual device 100, the multiple files can be played sequentially, wherein the order of playback can be random playback or can be played in the order of reception, and the embodiment of the present application does not make any special limitation on this.

[0117] In this embodiment, the connection with the real device is triggered by the user's dragging operation on the virtual device, and the user uses the camera to scan the connection application of the real device, so that the virtual device and the real device are connected. This can achieve content sharing between the virtual device and the real device, improve the efficiency of content sharing, facilitate user operations, and improve the user's operating experience.

[0118] Figure 5 A flowchart of another embodiment of the content sharing method provided in the embodiment of the present application includes:

[0119] Step 201: the virtual device 100 acquires a real-time image and recognizes the real-time image.

[0120] Specifically, the user can operate in the virtual device 100 to obtain real-time images. For example, the user can turn on the camera in the virtual device 100, and in response to the user's operation, the virtual device 100 can obtain real-time images. Then, the virtual device 100 can identify the real-time image obtained by the camera to determine whether the current image contains the real device 200.

[0121] Step 202 : The virtual device 100 acquires a target area of ​​the real device 200 .

[0122] Specifically, if the virtual device 100 recognizes that there is a real device 200 in the current image, the target area corresponding to the real device 200 can be obtained. Among them, the target area can be used to identify the area where the real device 200 is located, and the target area includes the area size and the image corresponding to the area. In a specific implementation, the current image can be intercepted to obtain the target area, and the target area contains the identified real device 200. Preferably, the display device 200 can be located at the center of the target area, or at other positions in the target area, and the embodiment of the present application does not specifically limit this.

[0123] It is understandable that the size of the target area can be preset. Since the TV product is a larger product in real devices, the size of the target area can be set according to the maximum size of the TV product. For example, the size of the target area can be set to be larger than the maximum size of the TV product.

[0124] Now combined Figure 6 To explain, Figure 6 As shown, the virtual device 100 obtains the image 610 and the image 620 through the camera respectively, and determines that the real device 200 exists in the first area 611 and the second area 621 by recognizing the image 610 and the image 620, wherein the first area 611 is larger than the second area 621. At this time, the first target area 612 of the real device 200 in the first area 611 and the second target area 622 of the real device 200 in the second area 621 can be determined according to the preset size, wherein the size of the first target area 612 is equal to the size of the second target area 622.

[0125] Optionally, the size of the target area can also be set dynamically. Since the size of the real device 200 recognized each time is not necessarily the same, the size of the target area can be determined according to the size of the real device 200 recognized each time. Exemplarily, after the virtual device 100 recognizes the real device 200, the area of ​​the real device 200 can be obtained, and then a preset area is added to the area of ​​the real device 200 to obtain the target area, wherein the preset area can be a ring area of ​​a preset width.

[0126] Now combined Figure 7 To explain, Figure 7As shown, the virtual device 100 obtains the image 710 and the image 720 through the camera respectively, and determines that the real device 200 exists in the first area 711 and the second area 721 by recognizing the image 710 and the image 720, wherein the first area 711 is larger than the second area 721. At this time, the preset area 730 can be added outside the first area 711, thereby obtaining the first target area 712; and the preset area 730 can be added outside the second area 721, thereby obtaining the second target area 722. Among them, the first target area 712 is larger than the second target area 722.

[0127] Step 203 : The virtual device 100 obtains a list of real devices 200 .

[0128] Specifically, after the virtual device 100 obtains the target area of ​​the real device 200, the identity of the real device 200 can also be identified. In a specific implementation, the virtual device 100 can obtain a list of real devices 200 under the same local area network, and can display the list on the display interface of the virtual device 100 for the user to select. The way to obtain the above-mentioned list of real devices 200 can be through the way that the virtual device 100 searches for the display device in the same local area network. The way that the virtual device 100 discovers the real device 200 through the search can refer to step 102, which will not be repeated here. Among them, the list may include information of one or more real devices 200, and the information of the real device 200 may include the device number of the real device 200, and the device number is used to identify the identity of the real device 200, so as to facilitate the virtual device 100 to establish a connection with the real device 200.

[0129] Figure 8 The screen 800 is a real device list selection screen, such as Figure 8 As shown, the interface 800 includes a target area 810 and a list 820 , wherein the target area 810 is used to identify the area where the reality device 200 is located, and the list 820 includes options of one or more local reality devices 200 .

[0130] Step 204 , detecting the user's operation of selecting the real device 200 , and in response to the operation, the virtual device 100 binds the real device 200 selected by the user to the target area.

[0131] Specifically, the user can operate on the display interface of the virtual device 100 to select the real device 200. Exemplarily, the user can click on the option of any real device 200 in the above list to select the real device 200. In response to the user's operation, the virtual device 100 determines the real device 200, obtains the information of the real device 200, and binds the information of the real device 200 with the target area and stores it, thereby obtaining a mapping table between the target area and the real device 200 as shown in Table 1, the mapping table can include a mapping relationship between each real device 200 and the target area, the target area can be used to identify a scene, for example, the scene can be an object, a bedroom light.

[0132] Table 1

[0133] Scenario Reality Device 200 Target Area 1 Device 1 Target Area 2 Device 2 Target Area 3 Device 3

[0134] Step 205: The virtual device 100 displays the virtual desktop.

[0135] Step 206: Detecting the user's operation of dragging a desktop file, and acquiring an image in real time in response to the operation.

[0136] Specifically, the user can operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing the desktop file. Exemplarily, the user can drag one or more files in the virtual desktop 300, and in response to the user's operation of dragging the above files, the virtual device 100 can start the camera, thereby obtaining images in real time through the camera.

[0137] Step 207: the virtual device 100 acquires the current image and identifies the target area in the image.

[0138] Specifically, the user can stop dragging after dragging the file and can stay at the current position. The virtual device can obtain the current image and obtain the information of the current position of the file. Exemplarily, the position information may include the coordinates of the file in the current image. Then, the virtual device 100 can also identify the target area in the current image. The identification process of the target area can refer to step 202 and will not be repeated here. And thus, the coordinate range of the target area in the current image can be obtained.

[0139] Step 208 , the virtual device 100 determines whether the current location of the file is located in the target area.

[0140] Specifically, after the virtual device 100 obtains the current position and target area of ​​the above-mentioned file, it can be determined whether the current position of the file is located in the target area. Exemplarily, in the current image, the current image can be used as a reference system and a coordinate system can be established. Therefore, the coordinates of the above-mentioned file and the coordinate range of the target area are both coordinates in the current image. By determining whether the coordinates of the file are within the coordinate range of the target area, it can be determined whether the current position of the file is located in the target area.

[0141] Now combined Fig. 9 To explain, Fig. 9 As shown, the virtual device 100 displays an interface 900, and the interface 900 is used to display a desktop 9000, which includes a file 9010. When the user drags the file 9010, the virtual device 100 can open the camera to obtain an interface 910, which includes the desktop 9000 and the real environment image 9100, wherein the real environment image 9100 includes a target area 9110. When the user stops dragging the file 9010, the virtual device 100 determines whether the location of the file 9010 is within the target area 9110. Exemplarily, the virtual device 100 can obtain the coordinates of the file 9010 in the real environment image 9100 and the coordinates of the target area 9110 in the real environment image 9100, and based on the above coordinates, it can be determined whether the file 9010 is within the target area.

[0142] In step 209 , the virtual device 100 compares the currently identified target area with the target areas pre-stored in the above mapping table, and finds a target area consistent with the current target area in the mapping table.

[0143] Specifically, if the current location of the file is located in the current target area, the current target area can be compared with all the target areas in the mapping table pre-stored in step 204, wherein the comparison method can be image comparison to determine which target area in the mapping table has the same scene as the current target area. It is understandable that the comparison can also be performed in other ways, which is not limited in the embodiments of the present application.

[0144] In step 210 , the virtual device 100 obtains the real device 200 in the target area based on the mapping relationship.

[0145] Specifically, after the virtual device 100 determines the target area, it can query and obtain information of the real device 200 corresponding to the target area based on the mapping relationship in the above mapping table. For example, the device number of the real device 200 corresponding to the determined target area can be obtained.

[0146] Step 211 : The virtual device 100 sends a connection request to the real device 200 based on the information of the real device 200 .

[0147] Step 212 , the real device 200 receives the connection request sent by the virtual device 100 , establishes a connection with the virtual device, and sends a connection confirmation message to the virtual device 100 .

[0148] Specifically, after receiving the connection request from the virtual device 100, the real device 200 can establish a connection with the virtual device 100. The connection can be used to transmit shared content between the virtual device 100 and the real device 200. The shared content may include file contents such as pictures, videos, audio and text.

[0149] Step 213 : The virtual device 100 receives the connection confirmation message sent by the real device 200 , and sends the shared content to the real device 200 .

[0150] Specifically, after the virtual device 100 receives the connection confirmation message sent by the real device 200 , the shared content may be sent to the real device 200 , wherein the shared content may be the file dragged by the user in step 206 .

[0151] In step 214 , the real device 200 receives the shared content sent by the virtual device 100 and plays the shared content on a display screen to complete content sharing.

[0152] Specifically, after the real device 200 receives the shared content sent by the virtual device 100, the shared content can be played on the display screen to complete content sharing.

[0153] It is understandable that if the real device 200 receives multiple files sent by the virtual device 100, the multiple files can be played sequentially, wherein the order of playback can be random playback or can be played in the order of reception, and the embodiment of the present application does not make any special limitation on this.

[0154] In this embodiment, by pre-binding the scene with the real device, when the user drags the file to the target location, the real device can be found by identifying the real scene, thereby establishing a connection between the virtual device and the real device, and then realizing content sharing between the virtual device and the real device, thereby improving the efficiency of content sharing, facilitating user operations, and improving the user's operating experience.

[0155] Fig.10 A flowchart of another embodiment of the content sharing method provided in the embodiment of the present application includes:

[0156] Step 301: The virtual device 100 displays a virtual desktop.

[0157] Step 302 , detecting the user's operation of dragging a desktop file, in response to which the virtual device 100 turns on a time-of-flight (TOF) camera, acquires images in real time, and sends an ultrasonic pre-produced audio request to one or more real devices 200 .

[0158] Specifically, the user can operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing the desktop file. Exemplarily, the user can drag any file in the virtual desktop 300. In response to the user's operation of dragging the file, the virtual device 100 turns on the Time-of-Flight (TOF) camera, acquires images in real time, and sends an ultrasonic pre-produced audio request to one or more real devices 200. The ultrasonic pre-produced audio request is used to request the real device 200 to send ultrasonic pre-produced audio. Among them, the ultrasonic pre-produced audio can be an ultrasonic wave, through which the virtual device 100 can determine the distance and direction between the real device 200 and the virtual device 100.

[0159] Step 303 : The real device 200 receives the ultrasonic pre-produced audio request sent by the virtual device 100 , and transmits the ultrasonic pre-produced audio to the virtual device 100 .

[0160] Specifically, the ultrasonic prefabricated audio can be a prefabricated ultrasonic wave, for example, an ultrasonic wave of a preset frequency and a preset band. It is understandable that the ultrasonic prefabricated audio can be generated in advance, or it can be generated in real time according to the above ultrasonic prefabricated audio request, and the embodiment of the present application does not specifically limit this. In addition, the ultrasonic prefabricated audio can also include device information of the real device 200 (for example, the IP address of the real device 200), and the device information is used to determine the network address of the real device 200, so that the virtual device 100 can initiate a connection with the real device 200. It is understandable that the above only exemplifies the determination of the network address of the real device 200 by the IP address, and the network address of the real device 200 can also be determined by other means, and the embodiment of the present application does not specifically limit this.

[0161] In step 304 , the virtual device 100 receives ultrasonic pre-produced audio emitted by one or more real devices 200 , and obtains positioning information and device information of each real device 200 based on the ultrasonic pre-produced audio.

[0162] Specifically, after the virtual device 100 receives the ultrasonic preproduced audio emitted by one or more real devices 200, it can identify the direction and distance of the ultrasonic preproduced audio through a multi-array microphone, thereby obtaining the positioning information of each real device 200, wherein the positioning information may include distance and direction, and the device information of the real device 200 can be obtained based on the ultrasonic preproduced audio, and the device information corresponds to the distance and direction.

[0163] Furthermore, the virtual device 100 may also store the distance, direction and device information of each of the above-mentioned real devices 200, thereby obtaining Table 2.

[0164] Table 2

[0165] Device information of the real device 200 Positioning information of the real device 200 Device 1 (IP address 1) Distance, direction Device 2 (IP address 2) Distance, direction Device 3 (IP address 3) Distance, direction

[0166] Step 305: the virtual device 100 acquires the current image and identifies the target area in the image.

[0167] Specifically, the user can stop dragging after dragging the above file, and can stay at the current position. The virtual device can obtain the current image through the TOF camera and obtain the information of the current position of the file. Exemplarily, the position information may include the coordinates of the file in the current image. Then, the virtual device 100 can also identify the target area in the current image. Among them, the identification process of the target area can refer to step 202, which will not be repeated here. And thus, the coordinate range of the target area in the current image can be obtained.

[0168] Step 306 : The virtual device 100 determines whether the current location of the file is located in the target area.

[0169] Specifically, after the virtual device 100 obtains the current position and target area of ​​the above-mentioned file, it can be determined whether the current position of the file is located in the target area. Exemplarily, in the current image, the current image can be used as a reference system and a coordinate system can be established. Therefore, the coordinates of the above-mentioned file and the coordinate range of the target area are both coordinates in the current image. By determining whether the coordinates of the file are within the coordinate range of the target area, it can be determined whether the current position of the file is located in the target area.

[0170] Step 307: The virtual device 100 obtains the distance and direction of the target object in the target area.

[0171] Specifically, if the current location of the file is in the target area, the virtual device 100 can further obtain the distance and direction of the target object in the target area. In specific implementation, the virtual device 200 can also locate the position of the target object in the target area through a TOF camera to obtain the distance and direction of the target object.

[0172] In step 308, the virtual device 100 matches the distance and direction of each real device 200 obtained through the ultrasonic pre-produced audio in step 304 with the distance and direction of the target object obtained through the TOF camera. If the two are consistent, it is determined that the target object is the real device 200, and the information of the real device 200 is obtained.

[0173] Specifically, after the virtual device 100 obtains the distance and direction of the target object measured by the TOF camera, the distance and direction of each real device 200 obtained through the ultrasonic pre-produced audio can be matched with the distance and direction obtained through the TOF camera. If the distance and direction obtained by any real device 200 through the ultrasonic pre-produced audio are consistent with the distance and direction obtained by the TOF camera, it can be considered that there is a real device 200 at this distance and direction. Therefore, the virtual device 100 can obtain the information of the corresponding real device 200 based on the distance and direction query. For example, the information of the real device 200 can be obtained by querying the distance, direction and device information stored in step 304, thereby determining the real device 200.

[0174] Step 309: The virtual device 100 sends a connection request to the real device 200 based on the above device information.

[0175] In step 310 , the real device 200 receives the connection request sent by the virtual device 100 , establishes a connection with the virtual device, and sends a connection confirmation message to the virtual device 100 .

[0176] Specifically, after receiving the connection request from the virtual device 100, the real device 200 can establish a connection with the virtual device 100. The connection can be used to transmit shared content between the virtual device 100 and the real device 200. The shared content may include file contents such as pictures, videos, audio and text.

[0177] Step 311 : The virtual device 100 receives a connection confirmation message sent by the real device 200 , and sends shared content to the real device 200 .

[0178] Specifically, after the virtual device 100 receives the connection confirmation message sent by the real device 200 , the shared content may be sent to the real device 200 , wherein the shared content may be the file dragged by the user in step 302 .

[0179] In step 312 , the real device 200 receives the shared content sent by the virtual device 100 and plays the shared content on a display screen to complete content sharing.

[0180] Specifically, after the real device 200 receives the shared content sent by the virtual device 100, the shared content can be played on the display screen to complete content sharing.

[0181] In this embodiment, ultrasonic pre-produced audio is sent by the real device to obtain the distance, direction and device information of the real device, and the distance, direction and device information of the real device is obtained by the TOF camera. The above two distances and directions are compared to determine the real device, and a connection is established with the real device, which can facilitate user operation, improve the efficiency of content sharing, and enhance the user's operating experience.

[0182] It should be noted that the embodiment of the present application only shows a scenario where a virtual device sends a file to a real device for sharing, but does not exclude the scenario where a virtual device sends a file to multiple real devices for sharing. The process of a virtual device sending a file to multiple real devices is similar to the process of a virtual device sending a file to a real device. For details, please refer to the above embodiment and will not be repeated here.

[0183] Fig.11 This is a structural diagram of an embodiment of the content sharing device of the present application. Fig.11 As shown, the above-mentioned content sharing device 1100 may include: a first determination module 1110, a second determination module 1120, a connection module 1130 and a sending module 1140;

[0184] A first determining module 1110 is configured to detect a first operation of a user for content sharing; and determine one or more shared files in response to the detected first operation;

[0185] The second determination module 1120 is configured to detect a second operation of the user for selecting a second electronic device; and determine the second electronic device in response to the detected second operation;

[0186] The connection module 1130 is used to send a connection request to the second electronic device, where the connection request is used to establish a connection with the second electronic device;

[0187] The sending module 1140 is configured to receive a connection confirmation message sent by the second electronic device, and send one or more shared files to the second electronic device.

[0188] In one possible implementation, the apparatus 1100 may further include: an indication module 1150;

[0189] The instruction module 1150 is used to send a connection instruction to one or more second electronic devices, where the connection instruction is used to instruct the one or more second electronic devices to open a connection entrance;

[0190] The second determination module 1120 is further configured to identify a connection entry of a second electronic device in response to the detected second operation; and determine the second electronic device based on the identification result.

[0191] In one possible implementation, the second determination module 1120 includes: a first acquisition unit 1121, a first identification unit 1122, a first judgment unit 1123 and a first determination unit 1124;

[0192] A first acquiring unit 1121 is configured to acquire a second image in response to a detected second operation;

[0193] The first recognition unit 1122 is used to recognize the second image and obtain a target area;

[0194] The first determination unit 1123 is used to determine whether the location of the shared file is located in the target area;

[0195] The first determining unit 1024 is configured to identify the target area and determine a second electronic device in the target area if the location of the shared file is in the target area.

[0196] In one possible implementation, the first electronic device includes multiple preset target areas, each preset target area corresponds to each second electronic device one by one, and the above-mentioned first determination unit 1124 is also used to match the target area with each preset target area to obtain a preset target area matching the target area; query the preset target area to determine the second electronic device corresponding to the preset target area.

[0197] In one possible implementation, the first electronic device includes preset location information of multiple second electronic devices, and the second determining module 1120 includes:

[0198] A second acquiring unit 1125, configured to acquire a second image in response to a detected second operation;

[0199] A second recognition unit 1126 is used to recognize the second image to obtain a target area;

[0200] A second determination unit 1127, configured to determine whether the location of the shared file is located in the target area;

[0201] The second determination unit 1128 is used to obtain the positioning information of the target object in the target area if the location of the shared file is in the target area; compare the positioning information of the target object in the target area with the preset positioning information of each second electronic device, and if the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, determine that the target object is the second electronic device.

[0202] In one possible implementation manner, the positioning information of the second electronic device is determined based on ultrasonic pre-produced audio emitted by the second electronic device.

[0203] It should be understood that the above Fig.11 The division of the various modules of the content sharing device shown is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. In the implementation process, each step of the above method or each of the above modules can be completed by the hardware integrated logic circuit in the processor element or the instructions in the form of software.

[0204] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital singnal processors (DSP), or one or more field programmable gate arrays (FPGA). For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0205] Fig.12 A schematic structural diagram of an electronic device 100 is shown, wherein the electronic device 100 may be the virtual device 100 described above.

[0206] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0207] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate 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.

[0208] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, 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.

[0209] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0210] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0211] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0212] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0213] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.

[0214] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0215] The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.

[0216] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0217] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0218] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0219] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0220] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0221] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0222] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0223] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0224] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0225] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0226] The wireless communication module 160 can provide wireless communication solutions 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., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0227] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).

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

[0229] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0230] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0231] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0232] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0233] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.

[0234] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0235] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0236] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0237] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 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 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 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. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

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

[0239] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.

[0240] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0241] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0242] Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.

[0243] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0244] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0245] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. The gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.

[0246] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0247] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.

[0248] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0249] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.

[0250] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.

[0251] The ambient light sensor 180L is used to sense the ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.

[0252] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.

[0253] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0254] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0255] The bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone. The audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function. The application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.

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

[0257] Motor 191 can generate vibration prompts. Motor 191 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 194, motor 191 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.

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

[0259] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0260] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0261] It is understandable that, in order to realize the above functions, the above-mentioned electronic devices, etc. include hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments of the present application.

[0262] The embodiment of the present application can divide the functional modules of the above-mentioned electronic device etc. according to the above-mentioned method example. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

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

[0264] Each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0265] 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 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, and the computer software product is stored in a storage medium, including a number of instructions to enable 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 of the present application. The aforementioned storage medium includes: various media that can store program codes, such as flash memory, mobile hard disk, read-only memory, random access memory, disk or optical disk.

[0266] 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 should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A content sharing method, applied to a first electronic device, wherein the first electronic device displays a first image, wherein the first image includes one or more shared files, It is characterized in that The first electronic device is a virtual device, and the method includes: detecting a first operation of a user for content sharing; In response to detecting the first operation, determining one or more of the shared files; detecting a second operation of the user for selecting a second electronic device; In response to the detected second operation, determining a second electronic device, the second electronic device being a real device; Sending a connection request to the second electronic device, wherein the connection request is used to establish a connection with the second electronic device; receiving a connection confirmation message sent by the second electronic device, and sending one or more of the shared files to the second electronic device; In response to the detected second operation, determining the second electronic device comprises: In response to the detected second operation, acquiring a second image; Recognizing the second image to obtain a target area; Determining whether the location of the shared file is located in the target area; If the location of the shared file is located in the target area, the target area is identified to determine the second electronic device in the target area.

2. The method according to claim 1, It is characterized in that After the first operation is detected, a connection instruction is sent to one or more second electronic devices, wherein the connection instruction is used to instruct the one or more second electronic devices to open a connection entrance, and the second electronic device is determined in response to the second operation detected, including: In response to the detected second operation, identifying a connection entry of the second electronic device; The second electronic device is determined based on the recognition result.

3. The method according to claim 1, It is characterized in that The first electronic device includes a plurality of preset target areas, each of the preset target areas corresponds to each second electronic device one by one, and the identifying the target area and determining the second electronic device in the target area includes: Matching the target area with each preset target area to obtain a preset target area matching the target area; The preset target area is queried to determine a second electronic device corresponding to the preset target area.

4. A content sharing method, applied to a first electronic device, wherein the first electronic device displays a first image, the first image includes one or more shared files, It is characterized in that The first electronic device is a virtual device, the first electronic device includes preset location information of a plurality of second electronic devices, and the method includes: detecting a first operation of a user for content sharing; In response to detecting the first operation, determining one or more of the shared files; detecting a second operation of the user for selecting a second electronic device; In response to the detected second operation, determining a second electronic device, the second electronic device being a real device; Sending a connection request to the second electronic device, wherein the connection request is used to establish a connection with the second electronic device; receiving a connection confirmation message sent by the second electronic device, and sending one or more of the shared files to the second electronic device; In response to the detected second operation, determining the second electronic device comprises: In response to the detected second operation, acquiring a second image; Recognizing the second image to obtain a target area; Determining whether the location of the shared file is located in the target area; If the location of the shared file is in the target area, obtaining location information of the target object in the target area; The positioning information of the target object in the target area is compared with the preset positioning information of each second electronic device. If the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, the target object is determined to be a second electronic device.

5. The method according to claim 4, It is characterized in that The positioning information of the second electronic device is determined based on the ultrasonic pre-produced audio emitted by the second electronic device.

6. A first electronic device, wherein the first electronic device displays a first image, wherein the first image includes one or more shared files. It is characterized in that The first electronic device is a virtual device, comprising: a memory, the memory is used to store computer program code, the computer program code includes instructions, when the first electronic device reads the instructions from the memory, so that the first electronic device performs the following steps: detecting a first operation of a user for content sharing; In response to detecting the first operation, determining one or more of the shared files; detecting a second operation of the user for selecting a second electronic device; In response to the detected second operation, determining a second electronic device, the second electronic device being a real device; Sending a connection request to the second electronic device, wherein the connection request is used to establish a connection with the second electronic device; receiving a connection confirmation message sent by the second electronic device, and sending one or more of the shared files to the second electronic device; In response to the detected second operation, determining the second electronic device comprises: In response to the detected second operation, acquiring a second image; Recognizing the second image to obtain a target area; Determining whether the location of the shared file is located in the target area; If the location of the shared file is located in the target area, the target area is identified to determine the second electronic device in the target area.

7. The first electronic device according to claim 6, It is characterized in that After responding to the detected first operation, a connection instruction is sent to one or more second electronic devices, the connection instruction is used to instruct one or more second electronic devices to open a connection entrance, and when the instruction is executed by the first electronic device, the first electronic device executes the second operation in response to the detection. The step of determining the second electronic device includes: In response to the detected second operation, identifying a connection entry of the second electronic device; The second electronic device is determined based on the recognition result.

8. The first electronic device according to claim 6, It is characterized in that The first electronic device includes a plurality of preset target areas, each of the preset target areas corresponds to each second electronic device one by one, and when the instruction is executed by the first electronic device, the first electronic device identifies the target area, and the step of determining the second electronic device in the target area includes: Matching the target area with a plurality of preset target areas to obtain a preset target area matching the target area; The preset target area is queried to determine a second electronic device corresponding to the preset target area.

9. A first electronic device, wherein the first electronic device displays a first image, the first image includes one or more shared files, and the first electronic device includes preset location information of a plurality of second electronic devices, It is characterized in that The first electronic device is a virtual device, comprising: a memory, the memory is used to store computer program code, the computer program code includes instructions, when the first electronic device reads the instructions from the memory, so that the first electronic device performs the following steps: detecting a first operation of a user for content sharing; In response to detecting the first operation, determining one or more of the shared files; detecting a second operation of the user for selecting a second electronic device; In response to the detected second operation, determining a second electronic device, the second electronic device being a real device; Sending a connection request to the second electronic device, wherein the connection request is used to establish a connection with the second electronic device; receiving a connection confirmation message sent by the second electronic device, and sending one or more of the shared files to the second electronic device; In response to the detected second operation, determining the second electronic device comprises: In response to the detected second operation, acquiring a second image; Recognizing the second image to obtain a target area; Determining whether the location of the shared file is located in the target area; If the location of the shared file is in the target area, obtaining location information of the target object in the target area; The positioning information of the target object in the target area is compared with the preset positioning information of multiple second electronic devices. If the positioning information of the target object in the target area is consistent with the positioning information of any second electronic device, the target object is determined to be a second electronic device.

10. The first electronic device according to claim 9, It is characterized in that The positioning information of the second electronic device is determined based on the ultrasonic pre-produced audio emitted by the second electronic device.

11. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, and when the computer instructions are executed on the first electronic device, the first electronic device executes the content sharing method as claimed in any one of claims 1 to 5.

12. A computer program product, It is characterized in that When the computer program product is executed on a computer, the computer is enabled to execute the content sharing method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Content sharing method, electronic device, and storage medium

    WO2022116930A1