WO2022116930A1 - 内容共享方法、电子设备及存储介质 - Google Patents

内容共享方法、电子设备及存储介质 Download PDF

Info

Publication number
WO2022116930A1
WO2022116930A1 PCT/CN2021/133869 CN2021133869W WO2022116930A1 WO 2022116930 A1 WO2022116930 A1 WO 2022116930A1 CN 2021133869 W CN2021133869 W CN 2021133869W WO 2022116930 A1 WO2022116930 A1 WO 2022116930A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
target area
detected
response
image
Prior art date
Application number
PCT/CN2021/133869
Other languages
English (en)
French (fr)
Inventor
王依伦
郭振宇
林尤辉
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21899962.1A priority Critical patent/EP4250075A4/en
Publication of WO2022116930A1 publication Critical patent/WO2022116930A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04815Interaction with a metaphor-based environment or interaction object displayed as three-dimensional, e.g. changing the user viewpoint with respect to the environment or object
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0486Drag-and-drop
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/20Scenes; Scene-specific elements in augmented reality scenes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2354/00Aspects of interface with display user

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a content sharing method, an electronic device, and a storage medium.
  • AR Augmented Reality
  • VR Virtual Reality
  • AR/VR products will become more and more popular for mass users.
  • the subsequent connection and collaborative work between AR/VR devices and real devices has become an inevitable problem. For example, when a user shares content to a real device in the above-mentioned AR/VR and other virtual devices, the user cannot quickly select the real device, which requires the user to perform tedious operations, reduces the efficiency of content sharing, and reduces the user experience.
  • Embodiments of the present application provide a content sharing method, an electronic device, and a storage medium, so as to provide a way of projecting the content of a virtual device to a real device.
  • an embodiment of the present application provides a content sharing method, which is applied to a first electronic device.
  • the first electronic device displays a first image, and the first image includes one or more shared files, including:
  • a first operation of the user for content sharing is detected; specifically, the first operation may be that the user drags a shared file.
  • one or more shared files are determined; specifically, the user may drag and drop one shared file, or may simultaneously drag and drop multiple shared files.
  • a second operation of the user for selecting the second electronic device is detected; specifically, the second operation may be that the user stops dragging the shared file after dragging the shared file for a certain distance, thereby triggering the process of selecting the second electronic device.
  • the 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.
  • connection request is used to establish a connection with the second electronic device;
  • the connection may be a data transmission channel, and the data transmission channel may be used to transmit shared files, so as to complete the first electronic device in Screen projection on the second electronic device.
  • a connection confirmation message sent by the second electronic device is received, and one or more of the shared files are sent to the second electronic device.
  • a connection instruction is sent to one or more second electronic devices, where the connection instruction is used to instruct one or more second electronic devices to open the connection entrance, and the above-mentioned
  • determining the second electronic device includes:
  • connection entry of the second electronic device is identified; specifically, the connection entry is used to identify the identity of the second electronic device.
  • the connection entry may be in the form of a two-dimensional code , or other forms, which are not limited in the embodiments of the present application.
  • the above-mentioned second operation may be that the first electronic device turns on the camera to scan the above-mentioned two-dimensional code, and identifies the two-dimensional code, so as to initiate a connection with the second electronic device.
  • the second electronic device is determined based on the identification result.
  • determining the second electronic device in response to the detected second operation, includes:
  • the second image is acquired; specifically, the second operation may stop the user from dragging the shared file after dragging the shared file for a certain distance, and at this time, the first electronic device may use the camera to acquire the second image , the second image may be an environment image acquired by a camera.
  • the target area may contain the area of the target object.
  • the target area is identified, and the second electronic device in the target area is determined.
  • the first electronic device includes a plurality of preset target areas, each preset target area corresponds to each second electronic device one-to-one, the target area is identified, and the first target area in the target area is determined.
  • Two electronic equipment includes:
  • the target area is matched with each preset target area to obtain a preset target area matching the target area; specifically, the target area can be matched with each preset target area through image recognition.
  • the preset target area is inquired, and the second electronic device corresponding to the preset target area is determined.
  • the first electronic device includes preset positioning information of a plurality of second electronic devices, and in response to the detected second operation, determining the second electronic device includes:
  • the second image is acquired; specifically, the second operation may stop the user from dragging the shared file after dragging the shared file for a certain distance, and at this time, the first electronic device may use the camera to acquire the second image , the second image may be an environment image acquired by a camera.
  • the target area may contain the area of the target object.
  • 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.
  • the positioning information of the second electronic device is determined based on the ultrasonic prefabricated audio emitted by the second electronic device.
  • an embodiment of the present application provides a content sharing apparatus, which is applied to a first electronic device, where the first electronic device displays a first image, and the first image includes one or more shared files, including:
  • a first determination module configured to detect a first operation used by the user for content sharing; in response to the detected first operation, determine one or more shared files;
  • a second determination module configured to detect a second operation used by the user to select the second electronic device; in response to the detected second operation, determine the second electronic device;
  • connection module configured 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
  • the sending module 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.
  • the above-mentioned device further includes:
  • an instruction module configured to send a connection instruction to one or more second electronic devices, where the connection instruction is used to instruct one or more second electronic devices to open a connection entrance;
  • the above-mentioned second determining module is further configured to identify the connection entry of the second electronic device in response to the detected second operation; and determine the second electronic device based on the identification result.
  • the above-mentioned second determining module includes:
  • a first acquiring unit configured to acquire a second image in response to the detected second operation
  • a first identification unit for identifying the second image to obtain a target area
  • a first judging unit for judging whether the location of the shared file is located in the target area
  • the first determining unit is configured to identify the target area and determine the second electronic device in the target area if the location of the shared file is located in the target area.
  • the first electronic device includes a plurality of preset target areas, and each preset target area corresponds to each second electronic device one-to-one, and the above-mentioned first determining unit is further used to determine the target area Matching with each preset target area to obtain a preset target area matching the target area; querying the preset target area to determine the second electronic device corresponding to the preset target area.
  • the first electronic device includes preset positioning information of a plurality of second electronic devices
  • the above-mentioned second determining module includes:
  • a second acquiring unit configured to acquire a second image in response to the detected second operation
  • a second identification unit configured to identify the second image to obtain a target area
  • a second judging unit for judging whether the location of the shared file is located in the target area
  • the second determining unit is configured to obtain the positioning information of the target object in the target area if the position of the shared file is located in the target area; and compare the positioning information of the target object in the target area with the preset positioning information of each second electronic device. By comparison, 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.
  • the positioning information of the second electronic device is determined based on the ultrasonic prefabricated audio emitted by the second electronic device.
  • 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:
  • above-mentioned memory is used for storing computer program code
  • above-mentioned computer program code comprises instruction, when above-mentioned first electronic equipment reads above-mentioned instruction from above-mentioned memory, so that above-mentioned first electronic equipment performs the following steps:
  • connection request is used to establish a connection with the second electronic device
  • 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.
  • a connection instruction is sent to one or more second electronic devices, where the connection instruction is used to instruct one or more second electronic devices to open the connection entrance, and the above-mentioned
  • the instruction is executed by the above-mentioned first electronic device, the above-mentioned first electronic device is caused to perform the step of determining the second electronic device in response to the detected second operation, including:
  • the second electronic device is determined based on the identification result.
  • the step of determining the second electronic device includes:
  • the target area is identified, and the second electronic device in the target area is determined.
  • the first electronic device includes a plurality of preset target areas, each preset target area corresponds to each second electronic device one-to-one, and when the above-mentioned instruction is executed by the above-mentioned first electronic device, the The first electronic device performs the identification of the target area, and the step of determining the second electronic device in the target area includes:
  • the preset target area is inquired, and the second electronic device corresponding to the preset target area is determined.
  • the first electronic device includes preset positioning information of a plurality of second electronic devices, and when the above-mentioned instruction is executed by the above-mentioned first electronic device, the above-mentioned first electronic device is made to execute in response to all the detected information.
  • the second operation, the step of determining the second electronic device includes:
  • the positioning information of the second electronic device is determined based on the ultrasonic prefabricated audio emitted by the second electronic device.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
  • an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • FIG. 1 is a schematic diagram of an application scenario of content sharing provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of an embodiment of a content sharing method provided by the present application.
  • FIG. 3 is a schematic diagram of a virtual desktop provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a user operating a shared file according to an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of another embodiment of a content sharing method provided by the present application.
  • FIG. 6 is a schematic diagram of an embodiment of determining a target area provided by the present application.
  • FIG. 7 is a schematic diagram of another embodiment of determining a target area provided by the present application.
  • FIG. 8 is a schematic diagram of an interface for binding a target area and a real device according to an embodiment of the present application
  • FIG. 9 is a schematic diagram of location determination between a shared file and a target area provided by an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another embodiment of a content sharing method provided by the present application.
  • FIG. 11 is a schematic structural diagram of a content sharing apparatus provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • an embodiment of the present application proposes a content sharing method.
  • FIG. 1 shows the application scenario provided by the embodiment of the present application. Referring to FIG. 1
  • the virtual device 100 may include electronic devices such as VR head-mounted devices, AR glasses, and the like.
  • the reality device 200 may include an electronic device with a display screen, such as a television, a computer, a tablet, a mobile phone, and other electronic devices.
  • FIG. 2 is a schematic flowchart of an embodiment of a content sharing method provided by an embodiment of the present application, including:
  • step 101 the virtual device 100 displays a virtual desktop.
  • 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 this embodiment of the present application.
  • FIG. 3 is a schematic diagram of the effect of the virtual desktop. As shown in FIG. 3 , the virtual desktop 300 may include various types of files 310 .
  • step 102 an operation of dragging and dropping a desktop file by the user is detected, and in response to the operation, a nearby real device 200 is searched.
  • the user may operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing of the desktop file.
  • the user can drag and release any file in the virtual desktop 300 for a certain distance, and in response to the user's operation of dragging the file, the virtual device 100 starts a search for the surrounding real device 200, wherein the search method can be as follows: Scanning over a local area network.
  • the local area network may be a combination of one or more of a bus type, a ring type, a star type and a tree type.
  • the above-mentioned virtual device 100 and the above-mentioned real device 200 may be located in the same local area network.
  • the virtual device 100 in the same local area network may discover each other with the above-mentioned real device 200 .
  • the local area network may be networked through WIFI, or may be networked through an inter-device ad hoc network (for example, Bluetooth or a hotspot, etc.), which is not particularly limited in this embodiment of the present application. It can be understood that other forms of operations are also possible, which are not specifically limited in this embodiment of the present application.
  • the user can also drag and release multiple files to trigger file sharing, which is not particularly limited in this embodiment of the present application.
  • FIG. 4 is a schematic diagram of a user dragging and dropping a file. As shown in FIG. 4 , the user can drag and drop the file 310 and release it, for example, drag the file 310 out of the virtual desktop 300 and release it.
  • Step 103 if one or more real devices 200 are found, send a sharing instruction to the one or more real devices 200 .
  • the virtual device 100 can send a sharing instruction to the above one or more real devices 200, wherein the sharing instruction is used for The real device 200 is instructed to start the connection application.
  • Step 104 the real device 200 receives the sharing instruction sent by the virtual device 100, and starts the connection application.
  • the real device 200 can start a corresponding connection application, where the connection application can be used to establish a connection between the virtual device 100 and the real device 200 .
  • the connection application can be used to establish a connection between the virtual device 100 and the real device 200 .
  • a connection entry may 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.
  • the connection entry may be two-dimensional.
  • the form of the code may also be other forms, which are not particularly limited in this embodiment of the present application.
  • Step 105 an operation of the user scanning the two-dimensional code on the display interface of the real device 200 using the camera of the virtual device 100 is detected, and in response to the operation, the virtual device 100 initiates a connection request to the real device 200 .
  • the user may operate in the virtual device 100 to initiate a connection with the real device 200 .
  • the user can turn on the camera in the virtual device 100, scan the two-dimensional code on the display interface of the real device 200, and in response to this operation, the virtual device 100 initiates a connection request to the real device 200, and the connection request is used to request 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 .
  • 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 .
  • the real device 200 can establish a connection with the virtual device 100, and the connection can be used to transmit shared content between the virtual device 100 and the real device 200, and the shared content can include pictures, File content such as video, audio, and text.
  • 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 .
  • the virtual device 100 may send the shared content to the real device 200 , where the shared content may be the file dragged by the user in step 102 .
  • step 108 the real device 200 receives the shared content sent by the virtual device 100, and plays the shared content on the display screen to complete the content sharing.
  • the real device 200 may play the shared content on the display screen to complete the content sharing.
  • the multiple files can be played in sequence, wherein the playing order can be random play, or can be played according to the receiving order. , which is not particularly limited in the embodiments of the present application.
  • connection with the real device is triggered by the user's drag operation on the virtual device, and the user uses the camera to scan the connection application of the real device to establish a connection between the virtual device and the real device, so that the virtual device can be connected to the real device.
  • the content sharing between real devices improves the efficiency of content sharing, facilitates the user's operation, and improves the user's operation experience.
  • FIG. 5 is a schematic flowchart of another embodiment of a content sharing method provided by an embodiment of the present application, including:
  • step 201 the virtual device 100 acquires a real-time image, and identifies the real-time image.
  • the user may operate in the virtual device 100 to obtain real-time images.
  • the user may turn on the camera in the virtual device 100, and in response to the user's operation, the virtual device 100 may acquire a real-time image.
  • the virtual device 100 may identify the real-time image obtained by the above-mentioned camera, and determine whether the current image includes the real device 200 .
  • Step 202 the virtual device 100 acquires the target area of the real device 200 .
  • the target area corresponding to the real device 200 can be acquired.
  • the target area can be used to identify the area where the real device 200 is located, and the target area includes the size of the area and the image corresponding to the area.
  • the current image may be intercepted to obtain a target area, and the target area includes the recognized real device 200 .
  • the display device 200 may be located at the center of the target area, or may be located at other positions in the target area, which is not particularly limited in this embodiment of the present application.
  • the size of the target area can be preset. Since the TV product is a product with a larger size in a real device, the size of the target area can be set according to the maximum size of the TV product. Exemplarily, the size of the target area can be set to be larger than the maximum size of the TV product. size.
  • the virtual device 100 obtains the image 610 and the image 620 respectively through the camera, and by recognizing the image 610 and the image 620 , it is determined that there are real devices in the first area 611 and the second area 621 200, wherein the first area 611 is larger than the second area 621.
  • 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 may be determined respectively according to the preset size, wherein the size of the first target area 612 The size is equal to the size of the second target area 622 .
  • the size of the target area can also be dynamically set. Since the size of the real device 200 recognized each time is not necessarily the same, the size of the target area may 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 acquired, and then a preset area is added to the area of the real device 200 to obtain the target area, wherein the preset The area can be an annular area of a preset width.
  • the virtual device 100 obtains the image 710 and the image 720 respectively through the camera, and by recognizing the image 710 and the image 720 , it is determined that there are real devices in the first area 711 and the second area 721 200, wherein the first area 711 is larger than the second area 721.
  • a preset area 730 may be added outside the first area 711, thereby obtaining a first target area 712; and a preset area 730 may be added outside the second area 721, thereby obtaining a second target area 722.
  • the first target area 712 is larger than the second target area 722 .
  • Step 203 the virtual device 100 obtains a list of the real devices 200 .
  • the identity of the real device 200 can also be identified.
  • the virtual device 100 may acquire a list of real devices 200 under the same local area network, and may display the list on the display interface of the virtual device 100 for the user to select.
  • the way to obtain the list of the real devices 200 can be through searching the display device in the virtual device 100 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.
  • the list may include information of one or more real devices 200, and the information of the real devices 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 that the virtual device 100 can communicate with the real device 200 easily.
  • Device 200 establishes a connection.
  • FIG. 8 is a real device list selection interface 800.
  • 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 real device 200 is located, and the list 820 includes one or more local Options for Reality Device 200 .
  • step 204 an operation of selecting the real device 200 by the user is detected, and in response to the operation, the virtual device 100 binds the real device 200 selected by the user to the target area.
  • the user may operate on the display interface of the virtual device 100 to select the real device 200 .
  • the user may click the option of any real device 200 in the above list to select the real device 200 .
  • the virtual device 100 determines the real device 200, obtains the information of the real device 200, binds the information of the real device 200 with the target area and stores it, so that the relationship between the target area and the real device 200 can be obtained.
  • the mapping table may include the mapping relationship between each real device 200 and the target area, and the target area may be used to identify a scene, for example, the scene may be an object, a bedroom lamp.
  • Step 205 the virtual device 100 displays the virtual desktop.
  • step 206 an operation of dragging and dropping the desktop file by the user is detected, and an image is acquired in real time in response to the operation.
  • the user may operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing of the desktop file.
  • the user may drag one or more files in the virtual desktop 300, and in response to the user dragging the above-mentioned files, the virtual device 100 may activate the camera, thereby obtaining images in real time through the camera.
  • Step 207 the virtual device 100 acquires the current image, and identifies the target area in the image.
  • the user can stop dragging the file after dragging, and can stay at the current position, and the virtual device can obtain the current image and obtain the information of the current position of the file.
  • the position information may include the file in The coordinates in the current image.
  • the virtual device 100 can also identify the target area in the current image. For the identification process of the target area, reference may be made to step 202, which will not be repeated here. From this, the coordinate range of the target area in the current image can be obtained.
  • Step 208 the virtual device 100 determines whether the current location of the file is located in the target area.
  • the virtual device 100 can determine whether the current location of the file is located in the target area.
  • 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 the coordinates in the current image. By judging 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 within the target area.
  • the virtual device 100 displays an interface 900 , and the interface 900 is used to display a desktop 9000 , and the desktop includes a file 9010 .
  • the user drags the file 9010 to enable the virtual device 100 to turn on the camera to obtain the interface 910 , the interface 910 includes the desktop 9000 and the real environment image 9100 , wherein the real environment image 9100 includes the target area 9110 .
  • the virtual device 100 determines whether the position of the file 9010 is within the target area 9110 .
  • 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 can determine whether the file 9010 is located in the target area based on the above coordinates.
  • Step 209 the virtual device 100 compares the currently identified target area with the pre-stored target area in the above-mentioned mapping table, and finds a target area consistent with the current target area in the mapping table.
  • the current target area may be compared with all target areas in the mapping table pre-stored in step 204, wherein the comparison method may be an image comparison method. Yes, to determine which scene of the target area in the mapping table is consistent with the scene of the current target area. It can be understood that the comparison may also be performed in other manners, which are not limited in the embodiments of the present application.
  • Step 210 the virtual device 100 acquires the real device 200 in the target area based on the mapping relationship.
  • the information of the real device 200 corresponding to the target area can be obtained by querying based on the mapping relationship in the above-mentioned mapping table. For example, the device number of the real device 200 corresponding to the determined target area can be acquired.
  • Step 211 the virtual device 100 sends a connection request to the real device 200 based on the information of the real device 200 .
  • 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 .
  • the real device 200 can establish a connection with the virtual device 100, and the connection can be used to transmit shared content between the virtual device 100 and the real device 200, and the shared content can include pictures, File content such as video, audio, and text.
  • 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 .
  • the virtual device 100 may send the shared content to the real device 200 , where the shared content may be the file dragged by the user in step 206 .
  • Step 214 the real device 200 receives the shared content sent by the virtual device 100, and plays the shared content on the display screen to complete the content sharing.
  • the real device 200 may play the shared content on the display screen to complete the content sharing.
  • the multiple files can be played in sequence, wherein the playing order can be random playing, or can be played according to the receiving order. , which is not particularly limited in the embodiments of the present application.
  • the user can identify the real scene and find the real device when dragging the file to the target position, so that the virtual device can be connected to the real device.
  • content sharing between the virtual device and the real device can be realized, the efficiency of content sharing is improved, the user's operation is facilitated, and the user's operation experience is improved.
  • FIG. 10 is a schematic flowchart of another embodiment of a content sharing method provided by an embodiment of the present application, including:
  • Step 301 the virtual device 100 displays a virtual desktop.
  • step 302 an operation of dragging and dropping a desktop file by the user is detected, and in response to the operation, the virtual device 100 turns on a Time-of-Flight (TOF) camera, acquires images in real time, and sends an ultrasonic prefab to one or more real devices 200. audio request.
  • TOF Time-of-Flight
  • the user may operate the desktop file in the virtual desktop 300 of the virtual device 100 to start sharing of the desktop file.
  • the user can drag any file in the virtual desktop 300, and in response to the user dragging the file, the virtual device 100 turns on a Time-of-Flight (TOF) camera, acquires an image in real time, and sends a One or more reality devices 200 send ultrasound pre-made audio requests.
  • the ultrasonic pre-made audio request is used to request the reality device 200 to send the ultrasonic pre-made audio.
  • the ultrasonic prefabricated audio may be ultrasonic waves, and through the ultrasonic waves, the virtual device 100 can determine the distance and direction between the real device 200 and the virtual device 100 .
  • Step 303 the reality device 200 receives the ultrasonic prefabricated audio request sent by the virtual device 100 , and transmits the ultrasonic prefabricated audio to the virtual device 100 .
  • the ultrasonic prefabricated audio may be prefabricated ultrasonic waves, for example, may be ultrasonic waves of a preset frequency and a preset waveband. It can be understood that, the ultrasonic prefabricated audio may be generated in advance, or may be generated in real time according to the above-mentioned ultrasonic prefabricated audio request, which is not particularly limited in this embodiment of the present application.
  • the ultrasonic prefabricated audio may further include device information of the reality device 200 (eg, the IP address of the reality device 200 ), and the device information is used to determine the network address of the reality device 200 so that the virtual device 100 can initiate communication with the reality device 200 . Connection of device 200 . It can be understood that the above only exemplifies the determination of the network address of the real device 200 by using the IP address, and the network address of the real device 200 may also be determined in other ways, which is not particularly limited in this embodiment of the present application.
  • Step 304 the virtual device 100 receives the ultrasonic prefabricated audios transmitted by one or more real devices 200 , and obtains the positioning information and device information of each real device 200 based on the ultrasonic prefabricated audios.
  • the virtual device 100 after the virtual device 100 receives the ultrasonic prefabricated audios transmitted by one or more real devices 200, it can identify the direction and distance of the ultrasonic prefabricated audio through the multi-array microphones, thereby obtaining the positioning information of each real device 200, wherein , the positioning information may include a distance and a direction, and the device information of the real device 200 may be obtained according to the ultrasonic prefabricated audio, and the device information corresponds to the distance and direction.
  • the virtual device 100 may also store the distance, direction, and device information of each of the above-mentioned real devices 200 , so that Table 2 can be obtained.
  • 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
  • Step 305 the virtual device 100 acquires the current image, and identifies the target area in the image.
  • the virtual device can obtain the current image through the TOF camera, and obtain the information of the current position of the file.
  • the position information may include The coordinates of this file in the current image.
  • the virtual device 100 can also identify the target area in the current image. For the identification process of the target area, reference may be made to step 202, which will not be repeated here. From this, the coordinate range of the target area in the current image can be obtained.
  • Step 306 the virtual device 100 determines whether the current location of the file is located in the target area.
  • the virtual device 100 can determine whether the current location of the file is located in the target area.
  • 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 the coordinates in the current image. By judging 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 within the target area.
  • Step 307 the virtual device 100 obtains the distance and direction of the target object in the target area.
  • the virtual device 100 may further acquire the distance and orientation of the target object in the target area.
  • the virtual device 200 may further locate the position of the target object in the target area through the TOF camera, so as to obtain the distance and direction of the target object.
  • the virtual device 100 matches the distance and direction of each real device 200 obtained by the ultrasonic prefabricated audio in step 304 with the distance and direction of the target object obtained by the TOF camera. If the two are consistent, the target object is determined. is the real device 200, and obtains the information of the real device 200.
  • the distance and direction of each real device 200 obtained through the ultrasonic prefabricated audio can be compared with the distance and direction obtained through the TOF camera. Matching, if the distance and direction obtained by any real device 200 through the ultrasonic prefabricated audio are consistent with the distance and direction obtained by the TOF camera, it can be considered that there is a real device 200 in the distance and direction, so the virtual device 100 can be based on the distance and direction.
  • the information of the corresponding real device 200 can be obtained by querying the distance and direction. For example, the information of the real device 200 can be obtained by querying the distance, direction and device information stored in step 304 , and thus the real device 200 can be determined.
  • Step 309 the virtual device 100 sends a connection request to the real device 200 based on the above-mentioned device information.
  • 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 .
  • the real device 200 can establish a connection with the virtual device 100, and the connection can be used to transmit shared content between the virtual device 100 and the real device 200, and the shared content can include pictures, File content such as video, audio, and text.
  • Step 311 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 .
  • the virtual device 100 may send the shared content to the real device 200 , where the shared content may be the file dragged by the user in step 302 .
  • Step 312 the real device 200 receives the shared content sent by the virtual device 100, and plays the shared content on the display screen to complete the content sharing.
  • the real device 200 may play the shared content on the display screen to complete the content sharing.
  • the distance, direction and device information of the real device are obtained by sending the ultrasonic prefabricated audio through the real device, and the distance, direction and device information of the real device are obtained through the TOF camera, and the above two distances and directions are compared to obtain Determining a real device and establishing a connection with the real device can facilitate the user's operation, improve the efficiency of content sharing, and improve the user's operation experience.
  • the embodiment of the present application only shows a scenario where the virtual device sends a file to one real device for sharing, but does not exclude the situation where the virtual device sends a file to multiple real devices for sharing.
  • the process for the virtual device to send files to multiple real devices is similar to the process for the virtual device to send files to one real device. For details, reference may be made to the above embodiments, which will not be repeated here.
  • FIG. 11 is a schematic structural diagram of an embodiment of a content sharing apparatus of the present application.
  • the above-mentioned content sharing apparatus 1100 may include: a first determination module 1110 , a second determination module 1120 , a connection module 1130 , and a sending module 1140 ;
  • a first determination module 1110 configured to detect a first operation of the user for content sharing; in response to the detected first operation, determine one or more shared files;
  • the second determination module 1120 is configured to detect the second operation used by the user to select the second electronic device; in response to the detected second operation, determine the second electronic device;
  • connection module 1130 configured 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;
  • 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.
  • the above-mentioned apparatus 1100 may further include: an indication module 1150;
  • an instruction module 1150 configured to send a connection instruction to one or more second electronic devices, where the connection instruction is used to instruct one or more second electronic devices to open a connection entrance;
  • the above-mentioned second determining module 1120 is further configured to identify the connection entry of the second electronic device in response to the detected second operation; and determine the second electronic device based on the identification result.
  • the above-mentioned second determining module 1120 includes: a first acquiring unit 1121, a first identifying unit 1122, a first determining unit 1123, and a first determining unit 1124;
  • a first acquiring unit 1121 configured to acquire a second image in response to the detected second operation
  • the first identification unit 1122 is used to identify the second image to obtain the target area
  • the first judgment unit 1123 is used to judge whether the position of the shared file is located in the target area
  • the first determining unit 1024 is configured to identify the target area if the location of the shared file is located in the target area, and determine the second electronic device in the target area.
  • the first electronic device includes a plurality of preset target areas, each preset target area corresponds to each second electronic device one-to-one, and the above-mentioned first determining unit 1124 is further configured to determine the target area Matching with each preset target area to obtain a preset target area matching the target area; querying the preset target area to determine the second electronic device corresponding to the preset target area.
  • the first electronic device includes preset positioning information of multiple second electronic devices
  • the second determining module 1120 includes:
  • a second acquiring unit 1125 configured to acquire a second image in response to the detected second operation
  • the second identifying unit 1126 is configured to identify the second image to obtain a target area
  • the second judgment unit 1127 is used for judging whether the position of the shared file is located in the target area
  • the second determining unit 1128 is configured to obtain the positioning information of the target object in the target area if the position of the shared file is located 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 By comparison, 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.
  • the positioning information of the second electronic device is determined based on the ultrasonic prefabricated audio emitted by the second electronic device.
  • each module of the content sharing apparatus shown in FIG. 11 above is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the detection module may be a separately established processing element, or may be integrated in a certain chip of the electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • Fig. 12 shows a schematic structural diagram of the electronic device 100, wherein the electronic device 100 may be the above-mentioned virtual device 100.
  • 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 charge management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM Subscriber identification module
  • 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, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or less components than shown, or combine some components, or separate some components, or arrange different components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate with each other through the I2C bus interface, so as to realize the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interface includes camera serial interface (cameraserial interface, CSI), display serial interface (display serial interface, DSI) and so on.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to realize the photographing function of the electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a MiniUSB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. 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.
  • 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 of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • 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 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting 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 times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110.
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify 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 then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellites Wireless communication solutions such as global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared technology (IR).
  • WLAN wireless local area networks
  • BT Bluetooth
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with 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 technologies 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, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • 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 (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the electronic device 100 may include one or N display screens 194 , where N is a positive integer greater than one.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, 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 the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy and so on.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device 100 can play or record videos of various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
  • 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 realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to 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 intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing 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, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization.
  • the gyro sensor 180B detects the shaking angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse motion to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can detect the opening and closing of the flip holster using the magnetic sensor 180D.
  • the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the electronic device 100 can measure the distance through 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.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the electronic device 100 emits infrared light to the outside through the light emitting diode.
  • Electronic device 100 uses photodiodes 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 may 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.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense 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, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking pictures with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • 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 value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection.
  • the electronic device 100 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 caused by the low temperature.
  • the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation 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 touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 , which is different from the location where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may 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 card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may 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 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the electronic device 100 employs an eSIM, ie: an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration, and does not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the above-mentioned electronic devices and the like include corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Experts may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the embodiments of the present application.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiments of the present application is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请实施例提供一种内容共享方法、电子设备及存储介质,涉及通信技术领域,该方法包括:检测到用户用于内容共享的第一操作;响应于检测到的所述第一操作,确定一个或多个所述共享文件;检测到用户用于选取第二电子设备的第二操作;响应于检测到的所述第二操作,确定第二电子设备;向所述第二电子设备发送连接请求,所述连接请求用于与所述第二电子设备建立连接;接收所述第二电子设备发送的连接确认消息,向所述第二电子设备发送一个或多个所述共享文件。本申请实施例提供的方法,能够将虚拟设备中的显示内容投屏在现实设备的屏幕上,提高内容共享的效率,提高用户的操作体验。

Description

内容共享方法、电子设备及存储介质
本申请要求于2020年12月04日提交中国专利局、申请号为202011411232.8、申请名称为“内容共享方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种内容共享方法、电子设备及存储介质。
背景技术
随着虚拟现实技术的迅速发展,增强现实(Augmented Reality,AR)与虚拟现实(Virtual Reality,VR)已经在游戏、新闻、电影制作、教育、体育和音乐等领域取得了显著成绩。随着5G技术的商用支撑,AR/VR产品会越来越走向大众用户。随之而来的AR/VR设备与现实设备的连接并进行协同工作成为不可避免的问题。例如,用户在上述AR/VR等虚拟设备中将内容共享至现实设备时,无法快速的选择现实设备,需要用户繁琐的操作,降低了内容共享的效率,并降低了用户的体验。
发明内容
本申请实施例提供了一种内容共享方法、电子设备及存储介质,以提供一种将虚拟设备的内容投屏至现实设备的方式。
第一方面,本申请实施例提供了一种内容共享方法,应用于第一电子设备,第一电子设备显示第一图像,第一图像包括一个或多个共享文件,包括:
检测到用户用于内容共享的第一操作;具体地,该第一操作可以是用户拖拽共享文件。
响应于检测到的第一操作,确定一个或多个共享文件;具体地,用户可以对一个共享文件进行拖拽,也可以同时对多个共享文件进行拖拽。
检测到用户用于选取第二电子设备的第二操作;具体地,该第二操作可以是用户在拖拽共享文件一段距离后停止拖拽,由此可以触发选取第二电子设备的流程。
响应于检测到的第二操作,确定第二电子设备;具体地,该第二电子设备可以由第一电子设备自动选取,也可以通过用户手动选取。
向第二电子设备发送连接请求,连接请求用于与第二电子设备建立连接;具体地,该连接可以是数据传输通道,该数据传输通道可以用于传输共享文件,以完成第一电子设备在第二电子设备上的投屏。
接收第二电子设备发送的连接确认消息,向第二电子设备发送一个或多个所述共享文件。
其中一种可能的实现方式中,响应于检测到的第一操作之后,向一个或多个第二电子设备发送连接指令,连接指令用于指示一个或多个第二电子设备开启连接入口,上述响应于检测到的第二操作,确定第二电子设备包括:
响应于检测到的第二操作,对第二电子设备的连接入口进行识别;具体地,该连接入口用于标识第二电子设备的身份,示例性的,该连接入口可以是二维码的形式,也可以是其他形式,本申请实施例对此不作限定。进一步地,上述第二操作可以是第一电子设备开启摄像头扫描上述二维码,对该二维码进行识别,以发起与第二电子设备的连接。
基于识别结果确定第二电子设备。
其中一种可能的实现方式中,响应于检测到的第二操作,确定第二电子设备包括:
响应于检测到的第二操作,获取第二图像;具体地,该第二操作可以用户在拖拽共享文件一段距离后停止拖拽,此时,第一电子设备可以使用摄像头,获取第二图像,该第二图像可以是摄像头获取的环境图像。
对第二图像进行识别,获得目标区域;具体地,该图像识别可以通过预设的图像识别模型进行。该目标区域可以包含目标对象的区域。
判断共享文件的位置是否位于目标区域;具体地,用户将共享文件拖拽到任一位置后,可以获取该位置的坐标,通过坐标判断共享文件的位置是否位于目标区域。
若共享文件的位置位于目标区域,则对目标区域进行识别,确定目标区域中的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个预设目标区域,每个预设目标区域与每个第二电子设备一一对应,对目标区域进行识别,确定目标区域中的第二电子设备包括:
将目标区域与每个预设目标区域进行匹配,获得与目标区域匹配的预设目标区域;具体地,可以通过图像识别,将目标区域与每个预设目标区域进行匹配。
对预设目标区域进行查询,确定与预设目标区域对应的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个第二电子设备的预设定位信息,响应于检测到的第二操作,确定第二电子设备包括:
响应于检测到的第二操作,获取第二图像;具体地,该第二操作可以用户在拖拽共享文件一段距离后停止拖拽,此时,第一电子设备可以使用摄像头,获取第二图像,该第二图像可以是摄像头获取的环境图像。
对第二图像进行识别,获得目标区域;具体地,该图像识别可以通过预设的图像识别模型进行。该目标区域可以包含目标对象的区域。
判断共享文件的位置是否位于目标区域;具体地,用户将共享文件拖拽到任一位置后,可以获取该位置的坐标,通过坐标判断共享文件的位置是否位于目标区域。
若共享文件的位置位于目标区域,获取目标区域中的目标对象的定位信息;具体地,该定位信息可以包括该目标对象的距离及方向。
将目标区域中的目标对象的定位信息与每个第二电子设备的预设定位信息进行比对,若目标区域中的目标对象的定位信息与任一第二电子设备的定位信息一致,则确定目标对象为第二电子设备。
其中一种可能的实现方式中,第二电子设备的定位信息基于第二电子设备发射的超声预制音频确定。
第二方面,本申请实施例提供一种内容共享装置,应用于第一电子设备,第一电 子设备显示第一图像,第一图像包括一个或多个共享文件,包括:
第一确定模块,用于检测到用户用于内容共享的第一操作;响应于检测到的第一操作,确定一个或多个共享文件;
第二确定模块,用于检测到用户用于选取第二电子设备的第二操作;响应于检测到的第二操作,确定第二电子设备;
连接模块,用于向第二电子设备发送连接请求,连接请求用于与第二电子设备建立连接;
发送模块,用于接收第二电子设备发送的连接确认消息,向第二电子设备发送一个或多个共享文件。
其中一种可能的实现方式中,上述装置还包括:
指示模块,用于向一个或多个第二电子设备发送连接指令,连接指令用于指示一个或多个第二电子设备开启连接入口;
上述第二确定模块还用于响应于检测到的第二操作,对第二电子设备的连接入口进行识别;基于识别结果确定第二电子设备。
其中一种可能的实现方式中,上述第二确定模块包括:
第一获取单元,用于响应于检测到的第二操作,获取第二图像;
第一识别单元,用于对第二图像进行识别,获得目标区域;
第一判断单元,用于判断共享文件的位置是否位于目标区域;
第一确定单元,用于若共享文件的位置位于目标区域,则对目标区域进行识别,确定目标区域中的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个预设目标区域,每个预设目标区域与每个第二电子设备一一对应,上述确第一定单元还用于将目标区域与每个预设目标区域进行匹配,获得与目标区域匹配的预设目标区域;对预设目标区域进行查询,确定与预设目标区域对应的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个第二电子设备的预设定位信息,上述第二确定模块包括:
第二获取单元,用于响应于检测到的第二操作,获取第二图像;
第二识别单元,用于对所述第二图像进行识别,获得目标区域;
第二判断单元,用于判断所述共享文件的位置是否位于所述目标区域;
第二确定单元,用于若共享文件的位置位于目标区域,获取目标区域中的目标对象的定位信息;将目标区域中的目标对象的定位信息与每个第二电子设备的预设定位信息进行比对,若目标区域中的目标对象的定位信息与任一第二电子设备的定位信息一致,则确定目标对象为第二电子设备。
其中一种可能的实现方式中,第二电子设备的定位信息基于第二电子设备发射的超声预制音频确定。
第三方面,本申请实施例提供一种第一电子设备,第一电子设备显示第一图像,第一图像包括一个或多个共享文件,包括:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述第一电子设备从上述存储器中读取上述指令,以使得上述第一电子设备执行以 下步骤:
检测到用户用于内容共享的第一操作;
响应于检测到的第一操作,确定一个或多个共享文件;
检测到用户用于选取第二电子设备的第二操作;
响应于检测到的第二操作,确定第二电子设备;
向第二电子设备发送连接请求,连接请求用于与第二电子设备建立连接;
接收第二电子设备发送的连接确认消息,向第二电子设备发送一个或多个共享文件。
其中一种可能的实现方式中,响应于检测到的第一操作之后,向一个或多个第二电子设备发送连接指令,连接指令用于指示一个或多个第二电子设备开启连接入口,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
响应于检测到的第二操作,对第二电子设备的连接入口进行识别;
基于识别结果确定第二电子设备。
其中一种可能的实现方式中,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
响应于检测到的第二操作,获取第二图像;
对第二图像进行识别,获得目标区域;
判断共享文件的位置是否位于目标区域;
若共享文件的位置位于目标区域,则对目标区域进行识别,确定目标区域中的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个预设目标区域,每个预设目标区域与每个第二电子设备一一对应,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行对所述目标区域进行识别,确定所述目标区域中的第二电子设备的步骤包括:
将目标区域与多个预设目标区域进行匹配,获得与目标区域匹配的预设目标区域;
对预设目标区域进行查询,确定与预设目标区域对应的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个第二电子设备的预设定位信息,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
响应于检测到的第二操作,获取第二图像;
对第二图像进行识别,获得目标区域;
判断共享文件的位置是否位于目标区域;
若共享文件的位置位于目标区域,获取目标区域中的目标对象的定位信息;
将目标区域中的目标对象的定位信息与多个第二电子设备的预设定位信息进行比对,若目标区域中的目标对象的定位信息与任一第二电子设备的定位信息一致,则确定目标对象为第二电子设备。
其中一种可能的实现方式中,第二电子设备的定位信息基于第二电子设备发射的超声预制音频确定。
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。
附图说明
图1为本申请实施例提供的内容共享的应用场景示意图;
图2为本申请提供的内容共享方法一个实施例的流程示意图;
图3为本申请实施例提供的虚拟桌面示意图;
图4为本申请实施例提供的用户操作共享文件的示意图;
图5为本申请提供的内容共享方法另一个实施例的流程示意图;
图6为本申请提供的确定目标区域一个实施例的示意图;
图7为本申请提供的确定目标区域另一个实施例的示意图;
图8为本申请实施例提供的目标区域与现实设备绑定的界面示意图;
图9为本申请实施例提供的共享文件与目标区域位置判定的示意图;
图10为本申请提供的内容共享方法再一个实施例的流程示意图;
图11为本申请实施例提供的内容共享装置的结构示意图;
图12为本申请实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
目前,在将AR/VR等虚拟设备中的内容共享至现实设备时,用户需要进入虚拟设备的现实设备列表页,选择需要进行内容共享的现实设备,由此给用户的操作带来了不便,降低了内容共享的效率。
基于上述问题,本申请实施例提出了一种内容共享方法。
现结合图1-图10对本申请实施例提供的内容共享方法进行说明,如图1所示为本申请实施例提供的应用场景,参考图1,上述应用场景包括虚拟设备100及现实设备200。
其中,该虚拟设备100可以包括VR头戴式设备、AR眼镜等电子设备。该现实设备200可以包括具有显示屏的电子设备,例如,电视、电脑、平板及手机等电子设备。
图2为本申请实施例提供的内容共享方法一个实施例的流程示意图,包括:
步骤101,虚拟设备100显示虚拟桌面。
具体地,该虚拟桌面可以包括一个或多个文件,该文件的类型可以包括图片、视频、音频及文本等,本申请实施例对此不作特殊限定。
图3为虚拟桌面的效果示意图,如图3所示,虚拟桌面300可以包括各类型的文件310,用户可以在虚拟桌面300中对该文件310进行操作,例如,点击或拖拽。
步骤102,检测到用户拖拽桌面文件的操作,响应于该操作,搜索附近的现实设备200。
具体地,用户可以在虚拟设备100的虚拟桌面300中对桌面文件进行操作,以启动该桌面文件的共享。示例性的,用户可以拖拽虚拟桌面300中的任一文件一段距离后释放,响应于用户拖拽该文件的操作,虚拟设备100启动对周边现实设备200的搜索,其中,该搜索的方式可以通过局域网扫描的方式。示例性的,该局域网可以是总线型、环型、星型和树型中的一种或多种的组合类型。上述虚拟设备100可以和上述现实设备200处于同一个局域网中,因此,在同一个局域网中的虚拟设备100可以和上现实设备200互相发现。此外,该局域网可以是通过WIFI组网,也可以是通过设备间自组网方式(例如,蓝牙或热点等)进行组网,本申请实施例对此不作特殊限定。可以理解的是,也可以是其他形式的操作,本申请实施例对此不作特殊限定。
可选地,用户还可以对多个文件进行拖拽并释放,以触发文件的共享,本申请实施例对此不作特殊限定。
图4为用户拖拽文件的操作示意图,如图4所示,用户可以将文件310进行拖拽后释放,例如,将该文件310拖拽出虚拟桌面300后释放。
步骤103,若搜索到一个或多个现实设备200,向该一个或多个现实设备200发送共享指令。
具体地,当通过对周边现实设备200的搜索后,若搜索到一个或多个现实设备200,则虚拟设备100可以向上述一个或多个现实设备200发送共享指令,其中,该共享指令用于指示现实设备200启动连接应用程序。
步骤104,现实设备200接收虚拟设备100发送的共享指令,启动连接应用程序。
具体地,当现实设备200接收到虚拟设备100发送的共享指令后,可以启动对应的连接应用程序,其中,该连接应用程序可以用于在虚拟设备100与现实设备200之间建立连接。示例性的,现实设备200启动该连接应用程序后,在现实设备200的显示界面上可以显示连接入口,该连接入口用于标识建立连接的入口,在具体实现时,该连接入口可以是二维码的形式,也可以是其他形式,本申请实施例对此不作特殊限定。
步骤105,检测到用户使用虚拟设备100的摄像头扫描现实设备200的显示界面上的二维码的操作,响应于该操作,虚拟设备100向现实设备200发起连接请求。
具体地,用户可以在虚拟设备100中进行操作,以发起与现实设备200的连接。示例性的,用户可以在虚拟设备100中打开摄像头,扫描现实设备200的显示界面上的二维码,响应于该操作,虚拟设备100向现实设备200发起连接请求,该连接请求用于请求与现实设备200建立连接,该连接请求可以携带虚拟设备100的设备号,该 设备号可以用于识别虚拟设备100的身份。
步骤106,现实设备200接收到虚拟设备100发送的连接请求,与该虚拟设备100建立连接,向虚拟设备100发送连接确认消息。
具体地,现实设备200接收到虚拟设备100的连接请求后,可以与虚拟设备100建立连接,该连接可以用于在虚拟设备100与现实设备200之间传输共享内容,该共享内容可以包括图片、视频、音频及文本等文件内容。
步骤107,虚拟设备100接收现实设备200发送的连接确认消息,向现实设备200发送共享内容。
具体地,当虚拟设备100接收现实设备200发送的连接确认消息后,可以将共享内容发送给现实设备200,其中,该共享内容可以是步骤102中用户拖拽的文件。
步骤108,现实设备200接收虚拟设备100发送的共享内容,在显示屏上播放该共享内容,以完成内容共享。
具体地,现实设备200接收到虚拟设备100发送的共享内容后,可以将该共享内容在显示屏上进行播放,以完成内容共享。
可以理解的是,若现实设备200接收到虚拟设备100发送的多个文件,可以对该多个文件进行依次播放,其中,该播放的顺序可以是随机播放,也可以按照接收的先后顺序进行播放,本申请实施例对此不作特殊限定。
本实施例中,通过用户在虚拟设备的拖拽操作触发与现实设备的连接,并通过用户使用摄像头扫描现实设备的连接应用程序,使得虚拟设备与现实设备建立连接,由此可以实现虚拟设备与现实设备之间的内容共享,提高内容共享的效率,并方便用户的操作,提高用户的操作体验。
图5为本申请实施例提供的内容共享方法另一个实施例的流程示意图,包括:
步骤201,虚拟设备100获取实时图像,对实时图像进行识别。
具体地,用户可以在虚拟设备100中进行操作,获取实时图像。示例性的,用户可以开启虚拟设备100中的摄像头,响应于用户的操作,虚拟设备100可以获取实时图像。接着,虚拟设备100可以对上述摄像头获取的实时图像进行识别,确定当前图像中是否包含现实设备200。
步骤202,虚拟设备100获取现实设备200的目标区域。
具体地,若虚拟设备100识别出当前图像中存在现实设备200,则可以获取与该现实设备200对应的目标区域。其中,该目标区域可以用于标识该现实设备200的所在区域,该目标区域包括区域大小及与该区域对应的图像。在具体实现时,可以对当前图像进行截取,以获取目标区域,该目标区域中包含识别出的现实设备200。优选地,该显示设备200可以位于目标区域的中心位置,也可以位于目标区域的其他位置,本申请实施例对此不作特殊限定。
可以理解的是,该目标区域的大小可以预先设置。由于电视产品是现实设备中尺寸较大的产品,因此,该目标区域的大小可以根据电视产品中的最大尺寸进行设置,示例性的,可以将该目标区域的大小设为大于上述电视产品的最大尺寸。
现结合图6进行说明,如图6所示,虚拟设备100通过摄像头分别获取到图像610和图像620,通过对图像610和图像620的识别,确定第一区域611及第二区域621 存在现实设备200,其中,第一区域611大于第二区域621。此时,可以根据预设尺寸分别确定第一区域611中的现实设备200的第一目标区域612以及第二区域621中的现实设备200的第二目标区域622,其中,第一目标区域612的大小与第二目标区域622的大小相等。
可选地,该目标区域的大小也可以动态设置。由于每次识别出的现实设备200的尺寸都不一定相同,因此,可以根据每次识别出的现实设备200的尺寸确定目标区域的大小。示例性的,当虚拟设备100识别出现实设备200后,可以获取该现实设备200的区域,接着,在该现实设备200的区域上添加一个预设区域,可以得到目标区域,其中,该预设区域可以是预设宽度的环形区域。
现结合图7进行说明,如图7所示,虚拟设备100通过摄像头分别获取到图像710和图像720,通过对图像710和图像720的识别,确定第一区域711及第二区域721存在现实设备200,其中,第一区域711大于第二区域721。此时,可以在第一区域711外添加预设区域730,由此可以得到第一目标区域712;并在第二区域721外添加预设区域730,由此可以得到第二目标区域722。其中,第一目标区域712大于第二目标区域722。
步骤203,虚拟设备100获取现实设备200列表。
具体地,当虚拟设备100获取现实设备200的目标区域后,还可以对该现实设备200的身份进行识别。在具体实现时,虚拟设备100可以获取同一局域网下的现实设备200的列表,并可以将该列表显示在虚拟设备100的显示界面上,供用户选取。获取上述现实设备200的列表的方式可以通过在同一局域网内虚拟设备100对显示设备进行搜索的方式,该虚拟设备100通过搜索发现现实设备200的方式可以参考步骤102,在此不再赘述。其中,该列表可以包括一个或多个现实设备200的信息,该现实设备200的信息可以包括现实设备200的设备号,该设备号用于识别现实设备200的身份,以便于虚拟设备100与现实设备200建立连接。
图8为现实设备列表选取界面800,如图8所示,界面800包含目标区域810及列表820,其中,目标区域810用于标识现实设备200所在的区域,列表820包括一个或多个本地的现实设备200的选项。
步骤204,检测到用户选取现实设备200的操作,响应于该操作,虚拟设备100将用户选取的现实设备200与目标区域进行绑定。
具体地,用户可以在虚拟设备100的显示界面上进行操作,以选取现实设备200。示例性的,用户可以点击上述列表中任一现实设备200的选项,以选取现实设备200。响应于用户的操作,虚拟设备100确定现实设备200,获取该现实设备200的信息,并将该现实设备200的信息与目标区域进行绑定后存储,由此可以得到目标区域与现实设备200之间的如表1所示的映射表,该映射表可以包含每个现实设备200与目标区域之间的映射关系,该目标区域可以用于识别场景,例如,该场景可以是客体、卧室灯。
表1
场景 现实设备200
目标区域1 设备1
目标区域2 设备2
目标区域3 设备3
步骤205,虚拟设备100显示虚拟桌面。
步骤206,检测到用户拖拽桌面文件的操作,响应于该操作,实时获取图像。
具体地,用户可以在虚拟设备100的虚拟桌面300中对桌面文件进行操作,以启动该桌面文件的共享。示例性的,用户可以拖拽虚拟桌面300中的一个或多个文件,响应于用户拖拽上述文件的操作,虚拟设备100可以启动摄像头,由此可以通过该摄像头实时获取图像。
步骤207,虚拟设备100获取当前图像,识别出该图像中的目标区域。
具体地,用户可以在拖拽上述文件后停止拖拽,并可以停留在当前位置,虚拟设备可以获取当前图像,并获取该文件当前位置的信息,示例性的,该位置信息可以包括该文件在当前图像中的坐标。接着,虚拟设备100还可以识别出该当前图像中的目标区域。其中,该目标区域的识别过程可以参考步骤202,在此不再赘述。并由此可以得到该目标区域在当前图像中的坐标范围。
步骤208,虚拟设备100判断文件的当前位置是否位于目标区域。
具体地,当虚拟设备100获取到上述文件的当前位置及目标区域后,可以判断该文件的当前位置是否位于目标区域。示例性的,在当前图像中,可以将当前图像作为参照系,并建立坐标系。因此,上述文件的坐标和目标区域的坐标范围都是在当前图像中的坐标,通过判断该文件的坐标是否位于目标区域的坐标范围内,由此可以判断该文件的当前位置是否位于目标区域。
现结合图9进行说明,如图9所示,虚拟设备100显示界面900,界面900用于显示桌面9000,该桌面包括文件9010。用户拖拽文件9010,可以使得虚拟设备100打开摄像头,得到界面910,该界面910包括桌面9000和现实环境图像9100,其中,现实环境图像9100包括目标区域9110。当用户停止对文件9010的拖拽后,虚拟设备100判断文件9010的位置是否位于目标区域9110内。示例性的,虚拟设备100可以获取文件9010在现实环境图像9100中的坐标,以及目标区域9110在现实环境图像9100中的坐标,基于上述坐标可以确定文件9010是否位于目标区域内。
步骤209,虚拟设备100将当前识别出的目标区域与上述映射表中预先存储的目标区域进行比对,在映射表中找出与当前目标区域一致的目标区域。
具体地,若文件的当前位置位于该当前目标区域,则可以将该当前目标区域与步骤204中预先存储的映射表中的所有目标区域进行比对,其中,该比对的方式可以是图像比对,以确定当前目标区域的场景与映射表中哪个目标区域的场景一致。可以理解的是,也可以通过其他方式进行比对,本申请实施例对此不作限定。
步骤210,虚拟设备100基于映射关系获取目标区域中的现实设备200。
具体地,虚拟设备100确定到目标区域后,可以基于上述映射表的映射关系查询获得与该目标区域对应的现实设备200的信息。例如,可以获取与该确定的目标区域对应的现实设备200的设备号。
步骤211,虚拟设备100基于上述现实设备200的信息向该现实设备200发送连接请求。
步骤212,现实设备200接收虚拟设备100发送的连接请求,与虚拟设备建立连接,并向虚拟设备100发送连接确认消息。
具体地,现实设备200接收到虚拟设备100的连接请求后,可以与虚拟设备100建立连接,该连接可以用于在虚拟设备100与现实设备200之间传输共享内容,该共享内容可以包括图片、视频、音频及文本等文件内容。
步骤213,虚拟设备100接收现实设备200发送的连接确认消息,向现实设备200发送共享内容。
具体地,当虚拟设备100接收现实设备200发送的连接确认消息后,可以将共享内容发送给现实设备200,其中,该共享内容可以是步骤206中用户拖拽的文件。
步骤214,现实设备200接收虚拟设备100发送的共享内容,在显示屏上播放该共享内容,以完成内容共享。
具体地,现实设备200接收到虚拟设备100发送的共享内容后,可以将该共享内容在显示屏上进行播放,以完成内容共享。
可以理解的是,若现实设备200接收到虚拟设备100发送的多个文件,可以对该多个文件进行依次播放,其中,该播放的顺序可以是随机播放,也可以按照接收的先后顺序进行播放,本申请实施例对此不作特殊限定。
本实施例中,通过预先将场景与现实设备进行绑定,用户在将文件拖拽至目标位置时,通过对现实场景的识别,找到现实设备,由此可以使得虚拟设备与现实设备建立连接,进而可以实现虚拟设备与现实设备之间的内容共享,提高内容共享的效率,并方便用户的操作,提高用户的操作体验。
图10为本申请实施例提供的内容共享方法再一个实施例的流程示意图,包括:
步骤301,虚拟设备100显示虚拟桌面。
步骤302,检测到用户拖拽桌面文件的操作,响应于该操作,虚拟设备100开启飞行时间(Time-of-Flight,TOF)摄像头,实时获取图像,向一个或多个现实设备200发送超声预制音频请求。
具体地,用户可以在虚拟设备100的虚拟桌面300中对桌面文件进行操作,以启动该桌面文件的共享。示例性的,用户可以拖拽虚拟桌面300中的任一文件,响应于用户拖拽该文件的操作,虚拟设备100开启飞行时间(Time-of-Flight,TOF)摄像头,实时获取图像,向一个或多个现实设备200发送超声预制音频请求。该超声预制音频请求用于请求现实设备200发送超声预制音频。其中,该超声预制音频可以是超声波,通过该超声波,虚拟设备100可以判断现实设备200与虚拟设备100之间的距离及方向。
步骤303,现实设备200接收到虚拟设备100发送的超声预制音频请求,向虚拟设备100发射超声预制音频。
具体地,该超声预制音频可以是预制的超声波,例如,可以是预设频率和预设波段的超声波。可以理解的是,该超声预制音频可以预先生成,也可以根据上述超声预制音频请求实时生成,本申请实施例对此不作特殊限定。此外,该超声预制音频还可以包括现实设备200的设备信息(例如,现实设备200的IP地址),该设备信息用于确定该现实设备200的网络地址,以便于虚拟设备100可以发起与该现实设备200的 连接。可以理解的是,以上仅示例性的举例了通过IP地址确定现实设备200的网络地址,也可以通过其他方式确定现实设备200的网络地址,本申请实施例对此不作特殊限定。
步骤304,虚拟设备100接收一个或多个现实设备200发射的超声预制音频,基于该超声预制音频获取每个现实设备200的定位信息及设备信息。
具体地,虚拟设备100接收一个或多个现实设备200发射的超声预制音频后,可以通过多阵列麦克风识别该超声预制音频的方向和远近,由此可以获得每个现实设备200的定位信息,其中,该定位信息可以包括距离及方向,并可以根据该超声预制音频获得该现实设备200的设备信息,该设备信息与该距离及方向对应。
进一步地,虚拟设备100还可以对上述每个现实设备200的距离、方向及设备信息进行存储,由此可以得到表2。
表2
现实设备200的设备信息 现实设备200的定位信息
设备1(IP地址1) 距离,方向
设备2(IP地址2) 距离,方向
设备3(IP地址3) 距离,方向
步骤305,虚拟设备100获取当前图像,识别出该图像中的目标区域。
具体地,用户可以在拖拽上述文件后停止拖拽,并可以停留在当前位置,虚拟设备可以通过TOF摄像头获取当前图像,并获取该文件当前位置的信息,示例性的,该位置信息可以包括该文件在当前图像中的坐标。接着,虚拟设备100还可以识别出该当前图像中的目标区域。其中,该目标区域的识别过程可以参考步骤202,在此不再赘述。并由此可以得到该目标区域在当前图像中的坐标范围。
步骤306,虚拟设备100判断文件的当前位置是否位于目标区域。
具体地,当虚拟设备100获取到上述文件的当前位置及目标区域后,可以判断该文件的当前位置是否位于目标区域。示例性的,在当前图像中,可以将当前图像作为参照系,并建立坐标系。因此,上述文件的坐标和目标区域的坐标范围都是在当前图像中的坐标,通过判断该文件的坐标是否位于目标区域的坐标范围内,由此可以判断该文件的当前位置是否位于目标区域。
步骤307,虚拟设备100获取该目标区域中的目标对象的距离及方向。
具体地,若文件的当前位置位于该目标区域,则虚拟设备100可以进一步获取该目标区域中的目标对象的距离及方位。在具体实现时,虚拟设备200还可以通过TOF摄像头对目标区域中的目标对象的位置进行定位,以获得该目标对象的距离及方向。
步骤308,虚拟设备100将步骤304中通过超声预制音频获得的每个现实设备200的距离及方向与通过TOF摄像头获得的目标对象的距离及方向进行匹配,若两者一致,则确定该目标对象为现实设备200,并获取该现实设备200的信息。
具体地,虚拟设备100获取到由TOF摄像头测得的目标对象的距离及方向后,可以将该通过超声预制音频获得的每个现实设备200的距离及方向与通过TOF摄像头获得的距离及方向进行匹配,若任一现实设备200通过超声预制音频获得的距离及方向与通过TOF摄像头获得的距离及方向一致,则可以认为在该距离及方向上存在现实设 备200,由此虚拟设备100可以基于该距离及方向查询获得对应的现实设备200的信息,例如,可以根据步骤304中存储的距离、方向及设备信息查询获得现实设备200的信息,由此可以确定现实设备200。
步骤309,虚拟设备100基于上述设备信息向现实设备200发送连接请求。
步骤310,现实设备200接收虚拟设备100发送的连接请求,与虚拟设备建立连接,并向虚拟设备100发送连接确认消息。
具体地,现实设备200接收到虚拟设备100的连接请求后,可以与虚拟设备100建立连接,该连接可以用于在虚拟设备100与现实设备200之间传输共享内容,该共享内容可以包括图片、视频、音频及文本等文件内容。
步骤311,虚拟设备100接收现实设备200发送的连接确认消息,向现实设备200发送共享内容。
具体地,当虚拟设备100接收现实设备200发送的连接确认消息后,可以将共享内容发送给现实设备200,其中,该共享内容可以是步骤302中用户拖拽的文件。
步骤312,现实设备200接收虚拟设备100发送的共享内容,在显示屏上播放该共享内容,以完成内容共享。
具体地,现实设备200接收到虚拟设备100发送的共享内容后,可以将该共享内容在显示屏上进行播放,以完成内容共享。
本实施例中,通过现实设备发送超声预制音频获取现实设备的距离、方向及设备信息,并通过TOF摄像头获取现实设备的距离、方向及设备信息,将上述两个距离及方向进行比对,以确定现实设备,并与该现实设备建立连接,可以方便用户的操作,提高内容共享的效率,提高用户的操作体验。
需要说明的是,本申请实施例仅示出了虚拟设备将文件发送至一个现实设备进行共享的场景,但并不排除虚拟设备将文件发送至多个现实设备进行共享的情况。虚拟设备将文件发送至多个现实设备的流程与虚拟设备将文件发送至一个现实设备的流程类似,具体可以参考以上实施例,在此不再赘述。
图11为本申请内容共享装置一个实施例的结构示意图,如图11所示,上述内容共享装置1100可以包括:第一确定模块1110、第二确定模块1120、连接模块1130及发送模块1140;
第一确定模块1110,用于检测到用户用于内容共享的第一操作;响应于检测到的第一操作,确定一个或多个共享文件;
第二确定模块1120,用于检测到用户用于选取第二电子设备的第二操作;响应于检测到的第二操作,确定第二电子设备;
连接模块1130,用于向第二电子设备发送连接请求,连接请求用于与第二电子设备建立连接;
发送模块1140,用于接收第二电子设备发送的连接确认消息,向第二电子设备发送一个或多个共享文件。
其中一种可能的实现方式中,上述装置1100还可以包括:指示模块1150;
指示模块1150,用于向一个或多个第二电子设备发送连接指令,连接指令用于指示一个或多个第二电子设备开启连接入口;
上述第二确定模块1120还用于响应于检测到的第二操作,对第二电子设备的连接入口进行识别;基于识别结果确定第二电子设备。
其中一种可能的实现方式中,上述第二确定模块1120包括:第一获取单元1121、第一识别单元1122、第一判断单元1123及第一确定单元1124;
第一获取单元1121,用于响应于检测到的第二操作,获取第二图像;
第一识别单元1122,用于对第二图像进行识别,获得目标区域;
第一判断单元1123,用于判断共享文件的位置是否位于目标区域;
第一确定单元1024,用于若共享文件的位置位于目标区域,则对目标区域进行识别,确定目标区域中的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个预设目标区域,每个预设目标区域与每个第二电子设备一一对应,上述第一确定单元1124还用于将目标区域与每个预设目标区域进行匹配,获得与目标区域匹配的预设目标区域;对预设目标区域进行查询,确定与预设目标区域对应的第二电子设备。
其中一种可能的实现方式中,第一电子设备包括多个第二电子设备的预设定位信息,上述第二确定模块1120包括:
第二获取单元1125,用于响应于检测到的第二操作,获取第二图像;
第二识别单元1126,用于对所述第二图像进行识别,获得目标区域;
第二判断单元1127,用于判断所述共享文件的位置是否位于所述目标区域;
第二确定单元1128,用于若共享文件的位置位于目标区域,获取目标区域中的目标对象的定位信息;将目标区域中的目标对象的定位信息与每个第二电子设备的预设定位信息进行比对,若目标区域中的目标对象的定位信息与任一第二电子设备的定位信息一致,则确定目标对象为第二电子设备。
其中一种可能的实现方式中,第二电子设备的定位信息基于第二电子设备发射的超声预制音频确定。
应理解以上图11所示的内容共享装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,检测模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。
图12示出了电子设备100的结构示意图,其中,电子设备100可以是上述虚拟设 备100。
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(cameraserial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是MiniUSB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施 例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(codedivision 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,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音 识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(openmobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同 触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142 加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
可以理解的是,上述电子设备等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软 件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的范围。
本申请实施例可以根据上述方法示例对上述电子设备等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (14)

  1. 一种内容共享方法,应用于第一电子设备,所述第一电子设备显示第一图像,所述第一图像包括一个或多个共享文件,其特征在于,所述方法包括:
    检测到用户用于内容共享的第一操作;
    响应于检测到的所述第一操作,确定一个或多个所述共享文件;
    检测到用户用于选取第二电子设备的第二操作;
    响应于检测到的所述第二操作,确定第二电子设备;
    向所述第二电子设备发送连接请求,所述连接请求用于与所述第二电子设备建立连接;
    接收所述第二电子设备发送的连接确认消息,向所述第二电子设备发送一个或多个所述共享文件。
  2. 根据权利要求1所述的方法,其特征在于,所述响应于检测到的所述第一操作之后,向一个或多个第二电子设备发送连接指令,所述连接指令用于指示一个或多个所述第二电子设备开启连接入口,所述响应于检测到的所述第二操作,确定第二电子设备包括:
    响应于检测到的所述第二操作,对所述第二电子设备的连接入口进行识别;
    基于识别结果确定第二电子设备。
  3. 根据权利要求1所述的方法,其特征在于,所述响应于检测到的所述第二操作,确定第二电子设备包括:
    响应于检测到的所述第二操作,获取第二图像;
    对所述第二图像进行识别,获得目标区域;
    判断所述共享文件的位置是否位于所述目标区域;
    若所述共享文件的位置位于所述目标区域,则对所述目标区域进行识别,确定所述目标区域中的第二电子设备。
  4. 根据权利要求3所述的方法,其特征在于,所述第一电子设备包括多个预设目标区域,每个所述预设目标区域与每个第二电子设备一一对应,所述对所述目标区域进行识别,确定所述目标区域中的第二电子设备包括:
    将所述目标区域与每个预设目标区域进行匹配,获得与所述目标区域匹配的预设目标区域;
    对所述预设目标区域进行查询,确定与所述预设目标区域对应的第二电子设备。
  5. 根据权利要求1所述的方法,其特征在于,所述第一电子设备包括多个第二电子设备的预设定位信息,所述响应于检测到的所述第二操作,确定第二电子设备包括:
    响应于检测到的所述第二操作,获取第二图像;
    对所述第二图像进行识别,获得目标区域;
    判断所述共享文件的位置是否位于所述目标区域;
    若所述共享文件的位置位于所述目标区域,获取所述目标区域中的目标对象的定位信息;
    将所述目标区域中的目标对象的定位信息与每个第二电子设备的预设定位信息进行比对,若所述目标区域中的目标对象的定位信息与任一所述第二电子设备的定位信 息一致,则确定所述目标对象为第二电子设备。
  6. 根据权利要求5所述的方法,其特征在于,所述第二电子设备的定位信息基于所述第二电子设备发射的超声预制音频确定。
  7. 一种第一电子设备,所述第一电子设备显示第一图像,所述第一图像包括一个或多个共享文件,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述第一电子设备从所述存储器中读取所述指令,以使得所述第一电子设备执行以下步骤:
    检测到用户用于内容共享的第一操作;
    响应于检测到的所述第一操作,确定一个或多个所述共享文件;
    检测到用户用于选取第二电子设备的第二操作;
    响应于检测到的所述第二操作,确定第二电子设备;
    向所述第二电子设备发送连接请求,所述连接请求用于与所述第二电子设备建立连接;
    接收所述第二电子设备发送的连接确认消息,向所述第二电子设备发送一个或多个所述共享文件。
  8. 根据权利要求7所述的第一电子设备,其特征在于,所述响应于检测到的所述第一操作之后,向一个或多个第二电子设备发送连接指令,所述连接指令用于指示一个或多个所述第二电子设备开启连接入口,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
    响应于检测到的所述第二操作,对所述第二电子设备的连接入口进行识别;
    基于识别结果确定第二电子设备。
  9. 根据权利要求7所述的第一电子设备,其特征在于,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
    响应于检测到的所述第二操作,获取第二图像;
    对所述第二图像进行识别,获得目标区域;
    判断所述共享文件的位置是否位于所述目标区域;
    若所述共享文件的位置位于所述目标区域,则对所述目标区域进行识别,确定所述目标区域中的第二电子设备。
  10. 根据权利要求9所述的第一电子设备,其特征在于,所述第一电子设备包括多个预设目标区域,每个所述预设目标区域与每个第二电子设备一一对应,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行对所述目标区域进行识别,确定所述目标区域中的第二电子设备的步骤包括:
    将所述目标区域与多个预设目标区域进行匹配,获得与所述目标区域匹配的预设目标区域;
    对所述预设目标区域进行查询,确定与所述预设目标区域对应的第二电子设备。
  11. 根据权利要求7所述的第一电子设备,其特征在于,所述第一电子设备包括多个第二电子设备的预设定位信息,所述指令被所述第一电子设备执行时,使得所述 第一电子设备执行响应于检测到的所述第二操作,确定第二电子设备的步骤包括:
    响应于检测到的所述第二操作,获取第二图像;
    对所述第二图像进行识别,获得目标区域;
    判断所述共享文件的位置是否位于所述目标区域;
    若所述共享文件的位置位于所述目标区域,获取所述目标区域中的目标对象的定位信息;
    将所述目标区域中的目标对象的定位信息与多个第二电子设备的预设定位信息进行比对,若所述目标区域中的目标对象的定位信息与任一所述第二电子设备的定位信息一致,则确定所述目标对象为第二电子设备。
  12. 根据权利要求11所述的第一电子设备,其特征在于,所述第二电子设备的定位信息基于所述第二电子设备发射的超声预制音频确定。
  13. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述第一电子设备上运行时,使得所述第一电子设备执行如权利要求1-6中任一项所述内容共享的方法。
  14. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-6中任一项所述内容共享的方法。
PCT/CN2021/133869 2020-12-04 2021-11-29 内容共享方法、电子设备及存储介质 WO2022116930A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP21899962.1A EP4250075A4 (en) 2020-12-04 2021-11-29 CONTENT SHARING METHOD, ELECTRONIC DEVICE AND STORAGE MEDIUM

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011411232.8A CN114610193A (zh) 2020-12-04 2020-12-04 内容共享方法、电子设备及存储介质
CN202011411232.8 2020-12-04

Publications (1)

Publication Number Publication Date
WO2022116930A1 true WO2022116930A1 (zh) 2022-06-09

Family

ID=81852932

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/133869 WO2022116930A1 (zh) 2020-12-04 2021-11-29 内容共享方法、电子设备及存储介质

Country Status (3)

Country Link
EP (1) EP4250075A4 (zh)
CN (1) CN114610193A (zh)
WO (1) WO2022116930A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114996168A (zh) * 2022-08-03 2022-09-02 荣耀终端有限公司 一种多设备协同测试方法、测试设备及可读存储介质
CN115118714A (zh) * 2022-06-24 2022-09-27 Oppo广东移动通信有限公司 数据共享方法、系统及装置、终端设备及存储介质
CN115309309A (zh) * 2022-08-17 2022-11-08 维沃移动通信有限公司 内容分享方法、装置、电子设备及介质
WO2024067110A1 (zh) * 2022-09-27 2024-04-04 华为技术有限公司 一种卡片的更新方法及相关装置

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789463A (zh) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 电子设备间数据分享方法和电子设备
CN103257813A (zh) * 2012-02-21 2013-08-21 海尔集团公司 一种共享设备的确定方法和文件传输方法以及系统
US20130222266A1 (en) * 2012-02-24 2013-08-29 Dan Zacharias GÄRDENFORS Method and apparatus for interconnected devices
CN105306870A (zh) * 2014-07-09 2016-02-03 三亚中兴软件有限责任公司 文件的处理方法及装置
CN106603609A (zh) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 文件发送、传输方法及装置
CN111107405A (zh) * 2019-12-27 2020-05-05 北京比利信息技术有限公司 投屏方法、服务器、投屏系统和存储介质
CN112165520A (zh) * 2020-09-24 2021-01-01 Tcl海外电子(惠州)有限公司 投屏控制方法、投屏接收端及存储介质
CN112437190A (zh) * 2019-08-08 2021-03-02 华为技术有限公司 数据分享的方法、图形用户界面、相关装置及系统

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101330807B1 (ko) * 2011-08-31 2013-11-18 주식회사 팬택 증강 현실을 활용한 데이터 공유 장치 및 방법
US9712948B2 (en) * 2014-04-30 2017-07-18 Avago Technologies General Ip (Singapore) Pte. Ltd. Image triggered pairing
CN104540012B (zh) * 2015-01-20 2018-09-11 三星电子(中国)研发中心 内容共享的方法、装置及终端
KR20170106090A (ko) * 2016-03-11 2017-09-20 삼성전자주식회사 콘텐츠 공유 방법 및 장치
WO2018107593A1 (zh) * 2016-12-12 2018-06-21 华为技术有限公司 一种在不同终端间共享文件的方法及设备
EP3675460B1 (en) * 2017-10-09 2022-06-22 Huawei Technologies Co., Ltd. File sharing method and terminal
CN110750197B (zh) * 2019-10-17 2021-07-23 广州视源电子科技股份有限公司 文件共享方法、装置、系统、相应设备及存储介质
CN111432331B (zh) * 2020-03-30 2021-10-15 华为技术有限公司 一种无线连接方法、装置和终端设备

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102789463A (zh) * 2011-05-16 2012-11-21 洛阳磊石软件科技有限公司 电子设备间数据分享方法和电子设备
CN103257813A (zh) * 2012-02-21 2013-08-21 海尔集团公司 一种共享设备的确定方法和文件传输方法以及系统
US20130222266A1 (en) * 2012-02-24 2013-08-29 Dan Zacharias GÄRDENFORS Method and apparatus for interconnected devices
CN105306870A (zh) * 2014-07-09 2016-02-03 三亚中兴软件有限责任公司 文件的处理方法及装置
CN106603609A (zh) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 文件发送、传输方法及装置
CN112437190A (zh) * 2019-08-08 2021-03-02 华为技术有限公司 数据分享的方法、图形用户界面、相关装置及系统
CN111107405A (zh) * 2019-12-27 2020-05-05 北京比利信息技术有限公司 投屏方法、服务器、投屏系统和存储介质
CN112165520A (zh) * 2020-09-24 2021-01-01 Tcl海外电子(惠州)有限公司 投屏控制方法、投屏接收端及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4250075A4

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118714A (zh) * 2022-06-24 2022-09-27 Oppo广东移动通信有限公司 数据共享方法、系统及装置、终端设备及存储介质
CN114996168A (zh) * 2022-08-03 2022-09-02 荣耀终端有限公司 一种多设备协同测试方法、测试设备及可读存储介质
CN115309309A (zh) * 2022-08-17 2022-11-08 维沃移动通信有限公司 内容分享方法、装置、电子设备及介质
WO2024067110A1 (zh) * 2022-09-27 2024-04-04 华为技术有限公司 一种卡片的更新方法及相关装置

Also Published As

Publication number Publication date
CN114610193A (zh) 2022-06-10
EP4250075A4 (en) 2024-05-22
EP4250075A1 (en) 2023-09-27

Similar Documents

Publication Publication Date Title
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
WO2020244623A1 (zh) 一种空鼠模式实现方法及相关设备
WO2022116930A1 (zh) 内容共享方法、电子设备及存储介质
WO2022100610A1 (zh) 投屏方法、装置、电子设备及计算机可读存储介质
WO2020062344A1 (zh) 一种数据传输方法及电子设备
WO2021023046A1 (zh) 一种电子设备控制方法及一种电子设备
WO2022033320A1 (zh) 蓝牙通信方法、终端设备及计算机可读存储介质
WO2022042326A1 (zh) 显示控制的方法及相关装置
WO2022068513A1 (zh) 无线通信方法和终端设备
WO2022042265A1 (zh) 通信方法、终端设备及存储介质
WO2021197071A1 (zh) 无线通信系统及方法
WO2022135143A1 (zh) 设备配网方法、移动终端及存储介质
WO2022156555A1 (zh) 屏幕亮度的调整方法、装置和终端设备
WO2022022319A1 (zh) 一种图像处理方法、电子设备、图像处理系统及芯片系统
WO2021027623A1 (zh) 一种设备能力发现方法及p2p设备
WO2022105674A1 (zh) 来电接听方法、电子设备及存储介质
WO2022100219A1 (zh) 数据转移方法及相关装置
CN112099741B (zh) 显示屏位置识别方法、电子设备及计算机可读存储介质
JP2022501968A (ja) ファイル転送方法および電子デバイス
WO2023005706A1 (zh) 设备控制方法、电子设备及存储介质
WO2022135144A1 (zh) 自适应显示方法、电子设备及存储介质
WO2022095752A1 (zh) 帧解复用方法、电子设备及存储介质
WO2022062902A1 (zh) 一种文件传输方法和电子设备
WO2021218544A1 (zh) 一种提供无线上网的系统、方法及电子设备
CN111885768B (zh) 调节光源的方法、电子设备和系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21899962

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021899962

Country of ref document: EP

Effective date: 20230619

NENP Non-entry into the national phase

Ref country code: DE