WO2022152174A9 - 一种投屏的方法和电子设备 - Google Patents
一种投屏的方法和电子设备 Download PDFInfo
- Publication number
- WO2022152174A9 WO2022152174A9 PCT/CN2022/071643 CN2022071643W WO2022152174A9 WO 2022152174 A9 WO2022152174 A9 WO 2022152174A9 CN 2022071643 W CN2022071643 W CN 2022071643W WO 2022152174 A9 WO2022152174 A9 WO 2022152174A9
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- electronic device
- camera
- preset
- image
- processor
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000013507 mapping Methods 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 30
- 238000004891 communication Methods 0.000 description 22
- 238000007726 management method Methods 0.000 description 22
- 238000010586 diagram Methods 0.000 description 20
- 238000012545 processing Methods 0.000 description 18
- 238000005516 engineering process Methods 0.000 description 17
- 238000013528 artificial neural network Methods 0.000 description 16
- 230000008569 process Effects 0.000 description 13
- 238000010295 mobile communication Methods 0.000 description 11
- 230000005236 sound signal Effects 0.000 description 11
- 210000000988 bone and bone Anatomy 0.000 description 10
- 230000000694 effects Effects 0.000 description 10
- 238000004422 calculation algorithm Methods 0.000 description 9
- 238000005266 casting Methods 0.000 description 9
- 238000001514 detection method Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 5
- 238000012546 transfer Methods 0.000 description 5
- 230000003190 augmentative effect Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 4
- 229920001621 AMOLED Polymers 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000036772 blood pressure Effects 0.000 description 2
- 210000004027 cell Anatomy 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000013527 convolutional neural network Methods 0.000 description 2
- 238000013135 deep learning Methods 0.000 description 2
- 230000001976 improved effect Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 239000002096 quantum dot Substances 0.000 description 2
- 230000005855 radiation Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 230000003238 somatosensory effect Effects 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 101000941170 Homo sapiens U6 snRNA phosphodiesterase 1 Proteins 0.000 description 1
- 102100031314 U6 snRNA phosphodiesterase 1 Human genes 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000003416 augmentation Effects 0.000 description 1
- 238000010009 beating Methods 0.000 description 1
- 238000013529 biological neural network Methods 0.000 description 1
- 230000037237 body shape Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000019771 cognition Effects 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 239000004020 conductor Substances 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 230000001939 inductive effect Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 239000010985 leather Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003062 neural network model Methods 0.000 description 1
- 210000002569 neuron Anatomy 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000035755 proliferation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3206—Monitoring of events, devices or parameters that trigger a change in power modality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3293—Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
Definitions
- the present application relates to the field of electronic devices, and more particularly, to a screen projection method and electronic device.
- the phone can play videos, as well as display documents, pictures, application interfaces or web pages. Due to the small display screen of the mobile phone, when the content displayed on the mobile phone needs to be shown to others, the content displayed on the mobile phone can be projected to other electronic devices (such as a TV, computer, or another mobile phone) through screen projection technology. For example, Users can cast a video from their mobile phone to a TV, or cast a song to a speaker.
- the present application provides a screen projection method and electronic device, which help improve user experience.
- a method for projecting a screen comprising: a first electronic device playing multimedia content, and a camera of the first electronic device operates in a low power consumption mode; a camera of the first electronic device Collect at least one first image frame in a low-power operation mode; when detecting that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one first image frame Two image frames; when it is detected that the preset object is a preset second electronic device, the first electronic device establishes a connection with the second electronic device, and sends the multimedia content to the second electronic device device, so that the second electronic device plays the multimedia content.
- the first electronic device uses a low-power camera to capture an image and detects that the image contains a preset electronic device, thereby triggering screen projection.
- the user can directly interact with the shared device, which solves the problem.
- the problem that users cannot find the shared device without knowing the device name makes sharing content across devices more direct and natural.
- it solves the problem of being able to share in one step regardless of whether it is close or far away, and content sharing can be achieved without walking in front of the shared device.
- the camera is a front-facing camera.
- the front camera is used to capture images in low power mode, and the camera used for face recognition can be reused; Since the environmental images captured by the rear camera are switched too fast, the first electronic device needs to continuously capture different images and detect whether a preset electronic device is included, which will cause too much computational pressure to the first electronic device. Therefore, using the front camera to capture images can improve user experience and save power consumption.
- the camera of the first electronic device operates in a normal working mode, including: the camera of the first electronic device captures image frames in a high-resolution mode .
- switching the high-resolution mode to capture the image can improve the success rate of image recognition.
- the camera of the first electronic device captures at least one first image frame in a low-power operation mode, including: the camera is in a low-power operation mode
- the frame rate at which at least one first image frame is acquired is not more than 10 frames per second.
- the camera of the first electronic device captures at least one first image frame at a frame rate of not more than 10 frames per second in the low-power operation mode, which can reduce power consumption.
- the detecting that the preset object is a preset second electronic device includes: performing image recognition on the collected image, The object in the captured image is a preset second electronic device.
- Detecting the collected images through an image recognition algorithm can improve the efficiency of image detection.
- image recognition may be performed on an image collected by a camera through a neural network computing processor of the first electronic device.
- the image captured by the camera can be quickly processed for image recognition, and image recognition can be performed in real time. Image recognition can also be performed when there is no network, which can improve the recognition efficiency.
- the collected image may be uploaded to a server for image recognition, where the server may recognize the image through a neural network computing processor.
- performing image recognition on the collected image and identifying the object in the collected image as a preset second electronic device may further include:
- the electronic device mapping table includes:
- Recording the device information of the preset second electronic device in the electronic device mapping table can facilitate the establishment of a connection between the electronic device and the preset electronic device.
- the electronic device mapping table may be preset by the user in advance, or may be generated by the electronic device according to the user's screen projection usage habits, or It is set by the electronic device manufacturer before the electronic device leaves the factory.
- the method before the camera of the first electronic device captures at least one first image frame in a low-power operation mode, the method further includes:
- the second processor of the local machine sends a first message to the first processor of the local machine to control the camera to capture images.
- the first electronic device processor may include a first processor and a second processor, and the first processor may be an auxiliary computing chip, or may be a co-processor or an auxiliary processor.
- the load of the application processor of the first electronic device can be reduced, so as to reduce the load of the main processor, thereby prolonging the battery life, and the low power consumption mode image can be performed at any time with lower power consumption reception and identification.
- the method before the first electronic device establishes a connection with the second electronic device, the method further includes: the first electronic device searches for a discovery the second electronic device.
- the first electronic device searches for and discovers the second electronic device, including one or more combinations of the following manners: discovering the second electronic equipment through broadcasting in a local area network a third electronic device, and compare the device information of the second electronic device with the device information of the third electronic device, or discover the third electronic device through Bluetooth, and compare the device information of the second electronic device Device information and device information of the third electronic device, or discover the third electronic device through WIFI direct connection, and compare the device information of the second electronic device with the device information of the third electronic device;
- the first electronic device can dynamically select different ways to search and discover the preset electronic device, which can enhance the stability of data transmission and improve the search efficiency.
- establishing a connection between the first electronic device and the second electronic device includes: establishing the first electronic device and the second electronic device P2P connection.
- the anti-interference ability can be enhanced and the screen projection experience can be improved.
- the multimedia content includes: at least one of video, audio or picture;
- an electronic device comprising: a camera, wherein the camera includes a low power consumption mode and a normal working mode; at least one processor; and a memory storing instructions, when the instructions are executed by the at least one When executed by the processor, the electronic device is caused to execute the above-mentioned first aspect and the method for projecting a screen in a possible implementation direction of the first aspect.
- a method for projecting a screen comprising: a camera of a first electronic device operates in a low power consumption mode; the camera of the first electronic device captures at least one first image in a low power consumption operation mode image frame; when it is detected that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one second image frame; the preset object is detected as When the second electronic device is preset, the first electronic device establishes a connection with the second electronic device; the first electronic device receives the multimedia file sent by the second electronic device, wherein the content of the multimedia file is all the multimedia content being played by the second electronic device; the first electronic device plays the multimedia file.
- an electronic device comprising: a camera, wherein the camera includes a low power consumption mode and a normal working mode; at least one processor; and a memory storing instructions, when the instructions are executed by the at least one When executed by the processor, the electronic device is caused to execute the screen projection method of the third aspect.
- a screen projection system including a first electronic device and a second electronic device; the camera of the first electronic device operates in a low power consumption mode; the camera of the first electronic device operates in a low power consumption mode collecting at least one first image frame in the mode; when detecting that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one second image frame; detecting When the preset object is a preset second electronic device, the first electronic device establishes a connection with the second electronic device; the second electronic device sends the multimedia content being played to the first electronic device device; the first electronic device plays the multimedia content.
- a computer storage medium comprising computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform the method for screen projection in any of the possible designs of any of the above aspects .
- a seventh aspect provides a computer program product that, when the computer program product runs on a computer, causes the computer to execute the method for enabling the electronic device to perform screen projection in any of the possible designs of any of the above aspects .
- FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
- FIG. 2 is a block diagram of a software structure of an electronic device provided by an embodiment of the present application.
- FIG. 3 is a schematic system block diagram provided by an embodiment of the present application.
- FIG. 4A is a schematic diagram of a graphical user interface provided by an embodiment of the present application.
- FIG. 4B is a schematic diagram of a graphical user interface provided by an embodiment of the present application.
- FIG. 4C is a schematic diagram of a graphical user interface provided by an embodiment of the present application.
- FIG. 5 is a schematic diagram of a graphical user interface provided by an embodiment of the present application.
- FIG. 6 is a schematic diagram of a graphical user interface provided by an embodiment of the present application.
- FIGS. 7A-7C are schematic diagrams of a screen projection method provided by an embodiment of the present application.
- FIG. 8 is a schematic diagram of a screen projection method provided by an embodiment of the present application.
- FIG. 9 is a schematic diagram of a screen projection method provided by an embodiment of the present application.
- 10-11 are schematic diagrams of graphical user interfaces provided by embodiments 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.
- FIG. 1 is a schematic structural diagram of an electronic device 100 having a display screen and at least one camera (eg, a front camera and/or a rear camera).
- a camera eg, a front camera and/or a rear camera.
- Electronic device 100 may include cell phones, foldable electronic devices, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks, cell phones, personal computers Digital assistant (personal digital assistant, PDA), augmented reality (augmented reality, AR) device, virtual reality (virtual reality, VR) device, artificial intelligence (artificial intelligence, AI) device, wearable device, vehicle-mounted device, smart home equipment, or at least one of smart city equipment.
- PDA personal digital assistant
- augmented reality augmented reality, AR
- VR virtual reality
- AI artificial intelligence
- wearable device wearable device
- vehicle-mounted device smart home equipment
- smart home equipment smart home equipment
- smart home equipment smart home equipment
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) connector 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 application 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.
- the processor may include a first processor 1101 (eg, a co-processor), a second processor 1102 (eg, an application processor).
- the processor 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 the processor 110 may be a cache memory.
- the memory may store instructions or data that are used by the processor 110 or are frequently used. If the processor 110 needs to use the instructions or data, it can be called directly from this 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.
- the processor 110 may be connected to modules such as a touch sensor, an audio module, a wireless communication module, a display, a camera, and the like through at least one of the above interfaces.
- 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 USB connector 130 is an interface conforming to the USB standard specification, which can be used to connect the electronic device 100 and peripheral devices, and specifically can be a Mini USB connector, a Micro USB connector, a USB Type C connector, and the like.
- the USB connector 130 can be used to connect to a charger, so that the charger can charge the electronic device 100, and can also be used to connect to other electronic devices, so as to transmit data between the electronic device 100 and other electronic devices. It can also be used to connect headphones to output audio stored in electronic devices through the headphones.
- This connector can also be used to connect other electronic devices, such as VR devices, etc.
- the standard specifications of the Universal Serial Bus may be USB1.x, USB2.0, USB3.x, and USB4.
- the charging management module 140 is used for receiving 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), bluetooth low power power consumption (bluetooth low energy, BLE), ultra wide band (UWB), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
- 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 an electromagnetic wave 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 electronic devices through wireless communication technology.
- the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
- the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi- zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
- GPS global positioning system
- GLONASS global navigation satellite system
- BDS Beidou navigation satellite system
- QZSS quasi-zenith satellite system
- SBAS satellite based augmentation systems
- the electronic device 100 may implement 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.
- electronic device 100 may include one or more display screens 194 .
- the electronic device 100 may implement a camera function through a camera module 193, an ISP, a video codec, a GPU, a display screen 194, an application processor AP, a neural network processor NPU, and the like.
- the camera module 193 can be used to collect color image data and depth data of the photographed object.
- the ISP can be used to process the color image data collected by the camera module 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 module 193 .
- the camera module 193 may be composed of a color camera module and a 3D sensing module.
- the photosensitive element of the camera of the color camera module may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CCD charge coupled device
- 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 3D sensing module may be a time of flight (TOF) 3D sensing module or a structured light (structured light) 3D sensing module.
- the structured light 3D sensing is an active depth sensing technology, and the basic components of the structured light 3D sensing module may include an infrared (Infrared) emitter, an IR camera module, and the like.
- the working principle of the structured light 3D sensing module is to first emit a light spot of a specific pattern on the object to be photographed, and then receive the light coding of the light spot pattern on the surface of the object, and then compare the similarities and differences with the original projected light spot. And use the principle of trigonometry to calculate the three-dimensional coordinates of the object.
- the three-dimensional coordinates include the distance between the electronic device 100 and the object to be photographed.
- the TOF 3D sensing can be an active depth sensing technology, and the basic components of the TOF 3D sensing module can include an infrared (Infrared) transmitter, an IR camera module, and the like.
- the working principle of the TOF 3D sensing module is to calculate the distance (ie depth) between the TOF 3D sensing module and the object to be photographed through the time of infrared reentry to obtain a 3D depth map.
- Structured light 3D sensing modules can also be used in face recognition, somatosensory game consoles, industrial machine vision detection and other fields.
- TOF 3D sensing modules can also be applied to game consoles, augmented reality (AR)/virtual reality (VR) and other fields.
- AR augmented reality
- VR virtual reality
- the camera module 193 may also be composed of two or more cameras.
- the two or more cameras may include color cameras, and the color cameras may be used to collect color image data of the photographed object.
- the two or more cameras may use stereo vision technology to collect depth data of the photographed object.
- Stereoscopic vision technology is based on the principle of human eye parallax. Under natural light sources, two or more cameras are used to capture images of the same object from different angles, and then operations such as triangulation are performed to obtain the electronic device 100 and the object. The distance information between the objects, that is, the depth information.
- the electronic device 100 may include one or more camera modules 193 .
- the electronic device 100 may include a front camera module 193 and a rear camera module 193 .
- the front camera module 193 can usually be used to collect the color image data and depth data of the photographer facing the display screen 194, and the rear camera module can be used to collect the shooting objects (such as people, landscapes, etc.) that the photographer faces. etc.) color image data and depth data.
- the CPU, GPU or NPU in the processor 110 may process the color image data and depth data collected by the camera module 193 .
- the NPU can recognize the color image data collected by the camera module 193 (specifically, the color camera module) through a neural network algorithm based on the skeleton point recognition technology, such as a convolutional neural network algorithm (CNN). , to determine the skeleton point of the person being photographed.
- CNN convolutional neural network algorithm
- the CPU or GPU can also run the neural network algorithm to realize the determination of the skeletal points of the photographed person according to the color image data.
- the CPU, GPU or NPU can also be used to confirm the figure (such as the body of the person being photographed) according to the depth data collected by the camera module 193 (which may be a 3D sensing module) and the identified skeletal points. ratio, the fatness and thinness of the body parts between the skeletal points), and can further determine the body beautification parameters for the photographed person, and finally process the photographed image of the photographed person according to the body beautification parameters, so that the photographed image
- the body shape of the person to be photographed is beautified. Subsequent embodiments will introduce in detail how to perform body beautification processing on the image of the person being photographed based on the color image data and depth data collected by the camera module 193 , which will not be described here.
- Digital signal processors are used to process digital signals and 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 a Fourier transform on the frequency point energy, and the like.
- 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 implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, and the like.
- 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. Or transfer music, video and other files from electronic devices to external memory cards.
- 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 methods or 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 may listen to music through the speaker 170A, or output an audio signal for 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 some 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 gyroscope sensor 180B detects the shaking angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and controls the reverse movement of the lens to offset the shaking of the electronic device 100 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 based on 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 magnetic sensor 180D can be used to detect the folding or unfolding of the electronic device, or the folding angle.
- the electronic device 100 when the electronic device 100 is a flip machine, 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 light emitting diodes.
- Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When the intensity of the detected reflected light is greater than the threshold, it may be determined that there is an object near the electronic device 100 . When the intensity of the detected reflected light is less than the threshold, 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 may be 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 may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is blocked, eg, the electronic device is in a pocket. When it is detected that the electronic device is blocked or in a pocket, some functions (such as touch functions) can be disabled to prevent misuse.
- 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 detected by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in the performance of the processor in order to reduce the power consumption of the electronic device to implement thermal protection.
- the electronic device 100 heats the battery 142 when the temperature detected by the temperature sensor 180J is below another threshold. In other embodiments, the electronic device 100 may boost the output voltage of the battery 142 when the temperature is below yet another threshold.
- 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, and 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 may 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, game, 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 one or more SIM card interfaces.
- 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. Multiple cards can be of the same type 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 software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
- FIG. 2 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
- the Android system is divided into five layers, from top to bottom, the application layer, the application framework layer, the Android runtime (Android runtime, ART) and the native C/C++ library, and the hardware abstraction layer (Hardware abstraction layer). Abstract Layer, HAL) and kernel layer.
- the application layer can include a series of application packages.
- the application package can include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and so on.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include window managers, content providers, view systems, resource managers, notification managers, activity managers, input managers, and so on.
- the window manager provides window management services (Window Manager Service, WMS), WMS can be used for window management, window animation management, surface management and as a transfer station for the input system.
- WMS Window Manager Service
- Content providers are used to store and retrieve data and make these data accessible to applications.
- This data can include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
- a display interface can consist of one or more views.
- the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
- the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files and so on.
- the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages, and can disappear automatically after a brief pause without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
- the notification manager can also display notifications in the status bar at the top of the system in the form of graphs or scroll bar text, such as notifications of applications running in the background, and notifications on the screen in the form of dialog windows. For example, text information is prompted in the status bar, a prompt sound is issued, the electronic device vibrates, and the indicator light flashes.
- Activity Manager can provide activity management services (Activity Manager Service, AMS), AMS can be used for system components (such as activities, services, content providers, broadcast receivers) startup, switching, scheduling and application process management and scheduling work .
- AMS Activity Manager Service
- system components such as activities, services, content providers, broadcast receivers
- the input manager can provide an input management service (Input Manager Service, IMS), and the IMS can be used to manage the input of the system, such as touch screen input, key input, sensor input and so on.
- IMS Input Manager Service
- IMS fetches events from input device nodes, and distributes events to appropriate windows through interaction with WMS.
- the Android runtime includes the core library and the Android runtime.
- the Android runtime is responsible for converting source code to machine code.
- the Android runtime mainly includes the use of ahead or time (AOT) compilation technology and just in time (JIT) compilation technology.
- the core library is mainly used to provide the functions of basic Java class libraries, such as basic data structures, mathematics, IO, tools, databases, networks and other libraries.
- the core library provides an API for users to develop Android applications. .
- a native C/C++ library can include multiple functional modules. For example: surface manager, Media Framework, libc, OpenGL ES, SQLite, Webkit, etc.
- the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
- the media framework supports playback and recording of many common audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- OpenGL ES provides the drawing and manipulation of 2D graphics and 3D graphics in applications. SQLite provides a lightweight relational database for applications of the electronic device 100 .
- the hardware abstraction layer runs in user space, encapsulates the kernel layer driver, and provides a calling interface to the upper layer.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display drivers, camera drivers, audio drivers, and sensor drivers.
- the workflow of the software and hardware of the electronic device 100 is exemplarily described below in conjunction with the scene of capturing a photo with the front camera.
- a corresponding hardware interrupt is sent to the kernel layer.
- the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, etc.). Raw input events are stored at the kernel layer.
- the application framework layer obtains the original input event from the kernel layer, and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and the control corresponding to the click operation is the control of the camera application icon, for example, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer.
- the camera 193 captures still images or video.
- a user can project a video from a mobile phone to a TV, and can also project audio to a speaker, so that different user experiences can be obtained.
- Source side and sink side For example, projecting the resources on the mobile phone to the TV involves two electronic devices, one is the mobile phone and the other is the TV. In this process, the initiating end (mobile phone) of the projection can be called the source end, and the TV can be called the sink end.
- Homologous screencasting The interface on the Source side is exactly the same as the screencasting method on the Sink side.
- the source interface is different from the sink interface.
- Mirror projection A method of homologous projection, which projects the screen on the Source side to the Sink side like a mirror.
- the specific method can include recording the screen on the Source side, and then sending the recording result to the Sink side in real time, and then playing it on the Sink side.
- Resource projection A method of heterogeneous projection.
- the source side (for example, a mobile phone) transmits the local resources (audio, video, pictures and other media resources) to the sink side in the form of files or streams, and then passes the sink's player through the sink. After playing, it can be divided into online resource projection and local resource projection.
- online resource projection is that the source end sends the URL of the online resource to the sink end, and the sink end obtains the content of the media resource according to the URL and plays it in the sink segment;
- local resource projection is the source end sending the local resource To the sink side, it is played by the sink side.
- the source side can control and adjust the sink side, such as play/pause, volume adjustment, brightness adjustment, language adjustment, etc.
- Play control refers to controlling the playback status of the sink end through the source end (for example, mobile phone) in the way of resource projection.
- the source (for example, mobile phone) screen is projected to the sink, and the projected source (for example, mobile phone) screen can be directly operated on the sink through the mouse, keyboard, or touch screen , to achieve the effect of operating the Source side.
- Local area network connection A connection method for screen projection, which requires the Source and Sink terminals to be connected to the same local area network.
- the local area network can be a wired local area network or a wireless local area network.
- P2P (Peer-To-Peer) connection It can also be called device direct connection.
- Source and Sink directly establish WIFI (Wireless Fidelity) direct connection data exchange without router connection.
- WIFI Wireless Fidelity
- Commonly used screencasting protocols include Miracast, DLNA, Cast+, AirPlay, Chromecast, etc.
- the screen projection method described in this application can be applied to large screen projection (for example, a mobile phone is projected to a TV, a projector, and a set-top box), PC (Personal computer) collaboration (for example, a mobile phone discovers a device through near field communication. After that, establish a P2P connection with the PC, and then project the mobile phone screen mirror image, and support reverse control, that is, control the mobile phone through the PC), Pad (Portable android device) collaboration, car screen projection, etc.
- PC Personal computer
- Pad Portable android device
- System 30 may include electronic device 100 , electronic device 102 , electronic device 103 , electronic device 104 . It should be understood that in some embodiments, system 30 may also include more or less electronic devices. It should be understood that, in some embodiments, the electronic device 104 can be a wireless router, or a customer terminal equipment CPE (Customer Premise Equipment) that can provide wireless network access, or can be any other wireless access point WAP (wireless access point). point) or a wired network access point. In some embodiments, the electronic device 100 , the electronic device 102 , and the electronic device 103 may be connected to the same local area network (wired local area network or wireless local area network) through the electronic device 104 .
- CPE Customer Premise Equipment
- WAP wireless access point
- the electronic device 100 , the electronic device 102 , and the electronic device 103 may be connected to the same local area network (wired local area network or wireless local area network) through the electronic device 104 .
- the screen projection method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, augmented reality (AR)/virtual reality (VR) devices, notebook computers, and super mobile personal computers including cameras.
- AR augmented reality
- VR virtual reality
- UMPC ultra-mobile personal computer
- netbook personal digital assistant
- PDA personal digital assistant
- FIGS. 4A , 4B, 4C and 5 are exemplary graphical user interfaces in which the user manually clicks the screen-casting control, thereby triggering the screen-casting.
- GUI Graphical User Interface
- the GUI can be an application interface of a certain application (for example, Huawei Music as shown in FIG. 4B , or Huawei Video as shown in FIG. 4C ), or an electronic device 100 as shown in FIG. 4A .
- the term "drop-down menu bar" described here is illustrative, and does not represent a specific definition of the name of the graphical user page).
- the content displayed by the GUI 4002 includes a video 402 (the video may be in a paused playing state or a playing state).
- GUI 4002 may also include controls 404 (eg, controls for adjusting volume, play/pause controls, fast forward controls, rewind controls), video titles 406, video lists 408, and the like. It should be understood that the content on GUI 4002 is illustrative.
- the electronic device 100 detects that the screen-casting control is activated (for example, the user clicks the screen-casting control), the electronic device 100 detects that the local machine is in the network, and searches the local area network for screen-casting electronic devices in the local area network.
- the screen projection controls may be different on different GUIs (for example, the screen projection controls may be the “multi-screen interaction” control 412 shown in FIG. 4B , the “wireless screen projection” shown in FIG. 4A . , or control 406 as shown in FIG. 4C ).
- the electronic device 100, the electronic device 102, and the electronic device 103 are in the same local area network.
- the electronic device 100 can search for the electronic device 102 and the electronic device 103 in the same local area network, and obtain the device information of the electronic device 102 and the electronic device 103. Displayed on the electronic device 100 (for example, in GUI 4004 in FIG. 4B , the electronic device 100 displays the device information of the electronic device 102 and the electronic device 103 in the local area network in a list form), wherein the device information may include the name of the device.
- the electronic device 100 When the electronic device 100 detects that the user selects the electronic device 102, the electronic device 100 establishes a connection with the electronic device 102, and the electronic device 100 transmits the content (at least one of video, text or picture) displayed on the machine to the electronic device 102 for display, Or the electronic device 100 transmits the audio played locally to the electronic device 102 for playback.
- the electronic device 100 When the electronic device 100 detects that the user selects the electronic device 102, the electronic device 100 establishes a connection with the electronic device 102, and the electronic device 100 transmits the content (at least one of video, text or picture) displayed on the machine to the electronic device 102 for display, Or the electronic device 100 transmits the audio played locally to the electronic device 102 for playback.
- the electronic device 102 may receive a connection request sent by the electronic device 100, and the electronic device 102 may pop up a window requesting whether to agree to establish a connection.
- the electronic device 102 may only display part of the content displayed by the electronic device 100 (for example, the screen projection mode may be a resource projection mode).
- the image user interface displayed by the electronic device 100 includes a video 402 (the video may be in a paused state or a playing state).
- the electronic device 102 can Only the video 402 is displayed (the video can be in a paused or playing state).
- the electronic device 102 may only display the video 402 , and the electronic device 100 stops displaying the video 402 . Further, after the electronic device 100 stops displaying the video 402 , the user can control the video 402 played on the electronic device 102 through the electronic device 100 .
- the electronic device 100 may stop playing the audio. Further, after the electronic device 100 can stop playing the audio, the user can control the audio played by the electronic device 102 on the electronic device 100 .
- the electronic device 100 may transmit a mirror image of the graphical user interface displayed locally to the electronic device 102, and the graphical user interface displayed by the electronic device 102 is the same as that of the electronic device 100 (for example, the screen projection mode may be a mirror projection mode).
- the electronic device 100 switches to display the second graphical user interface
- the electronic device 102 receives the data sent by the electronic device 100, and switches the displayed third graphical user interface, wherein The second graphical user interface is the same as the third graphical user interface.
- the electronic device 100 switches to display the local desktop, and the electronic device 102 also switches to display the desktop of the electronic device 100 .
- triggering screen projection by clicking on the control and manually selecting other electronic devices to perform screen projection will cause inconvenience to the user, and the user needs to perform multi-step operations to share the content on the electronic device 100 to other electronic devices.
- the user needs to click the screen-casting icon first, and then needs to search for the electronic device to be screen-casted in the list of screen-castable electronic devices.
- a problem that bothers users is that due to the large number of screen-casting electronic devices, it is difficult for users to find the device that they want to screen-cast in the list of screen-castable electronic devices, because it is difficult to distinguish different electronic devices just by name. In other words, when similar devices In many cases, users may not know the name of the device that needs to be screened.
- FIG. 6 it is a schematic diagram that the electronic device 100 is connected with other electronic devices through the near field, thereby triggering screen projection.
- the electronic device 100 may establish a near-field connection with a near-field tag of the electronic device 102 (eg, the electronic device 102 is a TV, and the near-field tag is placed in the remote control), thereby enabling screen projection.
- a near-field tag of the electronic device 102 eg, the electronic device 102 is a TV, and the near-field tag is placed in the remote control
- the electronic device 100 After the electronic device 100 establishes a connection with the electronic device 102 , the electronic device 100 transmits the locally displayed content (video, text, picture, etc.) or the locally played audio to the electronic device 102 .
- the electronic device 102 before receiving the content, the electronic device 102 may receive a connection request sent by the electronic device 100, and the electronic device 102 may pop up a window to request whether to agree to establish a connection.
- the display mode of the electronic device 100 is the same as the display mode of the electronic device 102 that receives the projected content.
- near-field interaction is more suitable for close-range application scenarios, such as mobile phone projection of laptops, but it is not suitable for long-distance interaction between mobile phones and electronic devices such as TVs and speakers.
- mobile phones such as mobile phone projection of laptops
- TVs and speakers For example, if you want to cast a TV screen, you need to find the TV remote control or walk in front of the TV to establish a near-field connection. Similarly, if you want to synchronize the audio on the phone to the speaker, you also need to walk in front of the speaker to establish a near-field connection.
- FIGS. 7A-7C are a set of schematic diagrams in which the electronic device 100 collects images through a camera (for example, a front-facing camera or a rear-facing camera), performs image recognition on the collected images, and triggers screen projection after identifying a preset electronic device .
- a camera for example, a front-facing camera or a rear-facing camera
- Image recognition is a technology based on deep learning and big data, which uses computers to analyze and understand images to identify targets and objects in various patterns. Based on deep learning technology, it can accurately identify the visual content in the image, and can provide a variety of object, scene and concept labels, with the ability of target detection and attribute recognition, accurately identify and understand the image content, build an intelligent system, and improve business efficiency.
- the preset electronic device described herein may be an electronic device in an electronic device mapping table pre-established by a user.
- the preset electronic device may also be an electronic device in the electronic device mapping table preset in the factory of the electronic device 100 .
- the electronic device mapping table may also be statistically generated by the electronic device 100 or the server according to the user's screen projection usage habits.
- users can customize the electronic devices that they want to project. For example, users can create an electronic device mapping table for electronic devices such as TV A, computer B, stereo C, and computer D in the office. Then the electronic device maps The electronic devices in the table are all preset electronic devices.
- the user may create an electronic device mapping table by taking a picture of the electronic device. Users can take pictures of different electronic devices and save the taken pictures in the machine. In some embodiments, the user can also input the model of the electronic device, download the picture of the electronic device from the server, and establish the electronic device mapping table. In other embodiments, the electronic device mapping table may be obtained by training a neural network model.
- the electronic device 100 When the electronic device 100 turns on the camera (front camera or rear camera) and points the camera at an object, the electronic device 100 recognizes that the object belongs to the preset electronic device in the electronic device mapping table pre-established by the user through image recognition technology. device, the electronic device 100 initiates further verification (for example, detecting whether the electronic device 100 and the identified electronic device are in the same local area network). It should be noted that, when the camera of the electronic device 100 faces an object, images can be continuously captured without the need for the user to take pictures of the object. At this time, the electronic device 100 may extract one or more image frames containing the object from the cache, and use the image frames to perform image recognition.
- the electronic device 100 does not recognize the electronic device by recognizing the image captured by the camera, or the recognized electronic device does not belong to the preset electronic device, the electronic device 100 does not start the verification.
- the electronic device 100 is taken as an example for schematic illustration.
- the electronic device 100 may use the camera of the device to capture images of objects (including electronic devices, tables, chairs, faces, etc.) in the environment.
- Step 1 The electronic device 100 captures an image through a camera.
- the electronic device 100 may continuously (eg, periodically) capture images using the local front-facing camera.
- the front-facing camera may be an ultra-low-power camera mounted on the electronic device 100 (the camera works in a low-power mode), where the ultra-low power consumption means that its power consumption is much lower than Conventional front-facing cameras and rear-facing cameras (such as 1, 5, or 10-megapixel cameras) on current electronic devices (eg, mobile phones) can usually capture image frames at very low resolutions. to save power consumption. Since the resolution of the ultra-low-power camera is low, it will not affect the user's privacy. It should be understood that the ultra-low power consumption camera can be switched between a low power consumption mode (eg, the captured images are of low resolution) and a normal mode (eg, of the captured images of high resolution).
- a low power consumption mode eg, the captured images are of low resolution
- a normal mode eg, of the captured images of high resolution
- the processor 110 of the electronic device 100 may include a first processor 1101 and a second processor 1102 .
- the first processor 1101 may be an auxiliary computing chip, which may be a co-processor or an auxiliary processor, for reducing the burden of the application processor of the electronic device 100 and performing preset processing tasks, such as processing images or videos data, or sense and measure motion data, etc., to reduce the load on the main processor, thereby extending battery life.
- the coprocessor in the embodiment of the present invention can receive and identify images in a low power consumption mode at any time with low power consumption.
- the first processor 1101 and the second processor 1102 may be both ARM architecture processors or both X86 architecture processors. Or other architecture processors, further, the first processor 1101 and the second processor 1102 can also be processing units with different performance and functions integrated on the same processor component, that is, the combination of different types of processors.
- the embodiments of the invention are not specifically limited.
- the second processor 1102 can be an application processor (which can be integrated with an image information processor or include an image information processing unit), and is used as the main processor of the electronic device 100 to be responsible for the display of the screen 193, the playback of audio and video, and various functions.
- the second processor 1102 When the user presses the power button to start the terminal, the second processor 1102 starts to run, so that the electronic device 100 can be used normally; when the user turns off the power button, in order to reduce the second processing power consumption of the processor 1102, the second processor 1102 will enter a sleep state at this time, and in this embodiment of the present invention, only the first processor 1101 with lower power consumption can work normally at this time.
- the screen projection method can be applied to the electronic device 100 including the first processor, the second processor and the front camera 1931, wherein the first processor 1101 and the second processor 1102 communicate with the front camera through the front camera interface respectively.
- the camera 1931 is connected to each other, and the first processor 1101 and the second processor 1102 and the screen 193 are electrically connected to each other.
- the second processor may send the first message to the first processor.
- the low power consumption mode described in the embodiments of the present application means that the front camera is in a mode in which the normal photographing or photographing function is not enabled, that is, the user does not enter the normal photographing mode of the front camera through a photographing-related application at this time.
- the non-low power consumption mode may refer to a mode in which the user enables the normal shooting function of the front camera through a relevant camera application, or the front camera may use a high-resolution mode to capture images. It is understandable that when the electronic device 100 is turned off to on, obviously the front camera is still in a low power consumption mode (because it must be turned on first, and then the normal shooting function of the camera can be turned on).
- the second processor when it detects that the front camera is in the low power consumption mode when it detects that the state is switched from off to on When the low power consumption mode is reached (the normal working mode is not turned on), the second processor will send a first message to the first processor to indicate that the front camera is in the low power consumption mode.
- the first processor may be started together with the second processor when the first processor is turned off to a power-on state, or may be started when the second processor sends the first message to the first processor.
- the second processor may send the first message to the first processor.
- the second processor may send the first message to the first processor.
- the second processor may send a message to the first processor. Send the first message.
- a multimedia file eg, video, audio, picture, etc.
- the second processor may send the first message to the first processor.
- the first processor controls the front camera to continuously capture images.
- the second processor may periodically send the first message to the first processor to control the front camera to continuously collect images.
- FIG. 7A there is a video being played in the application interface displayed by the electronic device 100 , and the electronic device 100 is playing the video in GUI 4002 in FIG. 4 .
- the second processor may send the first message to the first processor.
- the first processor controls the front camera to continuously capture images. The user points the front camera of the electronic device 100 toward the electronic device 102 , and the image captured by the front camera includes the image of the electronic device 102 .
- the front camera may capture images at a certain frame rate (for example, no more than 10 frames per second (fps)).
- the front camera collects images at a low frame rate, which can reduce power consumption, because the purpose of the coprocessor to receive images in the low-power mode is to determine whether the currently collected image contains preset electronic devices according to the image collected in the low-power mode. Therefore, there is no need for a clearer or higher frame rate image, and it is only necessary to be able to determine whether there is preset feature information, so as to avoid wasting image resources and causing wasted system power consumption.
- fps frames per second
- the electronic device 100 may enable the high-resolution mode of the ultra-low power consumption camera to capture images, or enable the conventional camera to capture high-resolution images, thereby facilitating image recognition and analysis by the electronic device.
- the electronic device 100 may only be equipped with a conventional front camera and a rear camera.
- the electronic device 100 may judge the posture of the electronic device 100 through the gyroscope and/or accelerometer in the device. When it is detected that the posture of the electronic device 100 presents a specific posture, for example, the electronic device 100 presents a nearly vertical posture (eg, FIG. 7A ), it is speculated that the electronic device may perform screen projection. At this time, the electronic device 100 determines whether to turn on the front camera or the rear camera according to the posture of the device. Optionally, the electronic device 100 may use a front camera to capture image frames.
- the electronic device 100 may also display the application interface of the camera application, detect a predefined gesture input by the user (eg, the user activates the "photograph” control to take a photo), ) to capture the image.
- a predefined gesture input by the user eg, the user activates the "photograph” control to take a photo
- the electronic device 100 may provide a control for selecting to enable or disable the teleportation function on the setting page. As shown in FIG. 10 , the user can choose to click on the control 711 to enable or disable the teleportation function of the electronic device. It should be understood that the "intelligent screen projection" is a schematic name for the screen projection method in the embodiments described in FIG. 7 to FIG. 9 in this application. Further, the electronic device 100 can also provide different ways of image acquisition. Illustratively, the user may click the control 712 in FIG. 10 to enter the setting page of the image capture mode, as shown in FIG. 11 . In FIG.
- the user can click the control 811 to enable or disable the low-power camera capture image mode, or click the control 812 to enable or disable the camera application photographing mode.
- the elements on the graphical user interfaces of FIGS. 10 and 11 are illustrative, and in other embodiments, the graphical user interfaces of FIGS. 10 and 11 may contain more or fewer elements.
- Step 2 The electronic device 100 performs image recognition through the recognition algorithm
- the image recognition algorithm can be used for image recognition.
- the electronic device 100 can quickly process the image captured by the camera through a local neural-network (neural-network, NN) computing processor to perform image recognition.
- a local neural-network neural-network, NN
- the electronic device 100 may upload the captured image to a server for image recognition, wherein the server may recognize the image through a neural-network (NN) computing processor.
- NN neural-network
- the electronic device 100 may send a request to request whether to perform image recognition.
- the electronic device 100 can send a request to request whether to perform image recognition"
- the user can set a control (for example, the control 812 shown in FIG. 11 ) in the electronic device settings 100.
- the control When the control is in an on state, the electronic device 100 automatically detects that the user opens the camera application to take a photo. Perform image recognition.
- Step 3 The electronic device 100 determines whether the electronic device in the captured image is a preset electronic device according to the image recognition result. For example, if an electronic device is identified, the identification result may include device information (including device name, model, etc.) of the identified electronic device.
- the electronic device 100 may first determine whether the recognition result is an electronic device according to the image recognition result, and if so, further determine whether the electronic device in the recognition result is a preset electronic device.
- the electronic device 100 When the electronic device 100 recognizes that the captured image does not contain an electronic device, it can prompt "no electronic device is recognized";
- the electronic device 100 After the electronic device 100 recognizes the electronic device in the image, it can be matched with a preset electronic device mapping table in the database.
- the preset electronic device mapping relationship of the database may be preset in advance, or may be generated by the electronic device 100 or the server according to the user's screen projection usage habits.
- the database may contain images of preset electronic devices and device information thereof (eg, names, models, etc. of the electronic devices).
- the electronic device 100 may upload the image to the server, and perform matching with the database in the server, and the electronic device 100 receives the matching result from the server.
- the electronic device 100 may also match the image with a database in the local machine to determine whether the electronic device in the image is a preset electronic device.
- device information eg, the name of the electronic device
- the preset electronic device mapping table After database matching, after the preset electronic device is found in the preset electronic device mapping table, device information (eg, the name of the electronic device) of the preset electronic device can be acquired.
- the electronic device 100 is playing a video
- the user points the front camera of the electronic device 100 towards the electronic device 102
- the front camera of the electronic device 100 captures the image of the electronic device 102
- the image is recognized by the recognition algorithm , to determine whether the electronic device 102 is a preset electronic device.
- the electronic device 100 may identify whether the object in the captured image is a preset electronic device. For example, the electronic device 100 recognizes the object in the image as a preset electronic device through image recognition, and outputs a recognition result, which may include device information (including device name, model, etc.) of the recognized electronic device. There is no need to first determine whether the object in the image is an electronic device and then match it with the database.
- a recognition result which may include device information (including device name, model, etc.) of the recognized electronic device.
- the electronic device 100 determines whether the object in the captured image is a preset electronic device through image recognition without matching with the database, and then determines whether to trigger the next screen projection operation, which can improve the recognition efficiency.
- Step 3 The electronic device 100 searches and discovers the preset electronic device.
- the electronic device 100 determines that the electronic device in the captured image is a preset electronic device according to the image recognition result.
- the electronic device 100 may discover electronic devices that can accept screen projection through a transmission protocol, and search for the preset electronic device in the electronic devices that can accept screen projection.
- the transfer protocol includes but is not limited to Alljoyn protocol, DLNA protocol (Digital Living Network Alliance), Airplay protocol and miracst protocol, HTTP (Hypertext transfer protocol, ChromeCast, Cast+ protocol, etc.).
- the electronic device 100 may discover the electronic device acceptable for screen projection through the broadcast of the local area network.
- the electronic device 100 may be referred to as the source end, and the electronic device that accepts screen projection may be referred to as the sink end.
- the sink device registers its device information with the soft bus.
- the source end starts the device search, it will send a broadcast message to the local area network through a fixed port (for example, 5684).
- the device in the local area network receives the broadcast message, if it meets the requirements, It will reply the message to the source end through unicast.
- the source end receives the message, it parses the message and displays the electronic device of the sink end on the interface of the source end device.
- the electronic device 100 may discover an electronic device that accepts screen projection through Bluetooth.
- the device discovery may be completed by accepting monitoring by the screen-casting electronic device, sending a broadcast by the electronic device 100, and replying a message by the screen-casting electronic device.
- the electronic device 100 may discover an electronic device that accepts screen projection through a direct connection via WIFI (Wireless Fidelity).
- WIFI Wireless Fidelity
- the electronic device 100 may dynamically select the way of WIFI (Wireless Fidelity) direct connection, Bluetooth or local area network to discover the electronic device that can accept screen projection.
- WIFI Wireless Fidelity
- the electronic device 100 searches for a preset electronic device in the list of electronic devices that can accept screen projection.
- the electronic device 100 may search for a preset electronic device in the list of electronic devices that can be screencasted by using the electronic device information (eg, the name of the electronic device).
- the electronic device information eg, the name of the electronic device.
- the electronic device 100 finds the preset electronic device, the electronic device 100 can establish a connection with the preset electronic device; if the electronic device 100 fails to find the preset electronic device, it can prompt the user that the search failed.
- Step 4 The electronic device 100 establishes a connection with a preset electronic device.
- the electronic device 100 may establish a connection with a preset electronic device through a local area network.
- the electronic device 100 may establish a connection with a preset electronic device through P2P.
- the anti-interference ability can be enhanced and the screen projection experience can be improved;
- Step 5 Data transmission between the electronic device 100 and the preset electronic device
- the electronic device 100 may transmit the entire contents of the picture displayed on the machine to a preset electronic device for display (for example, the screen projection mode may be a mirror screen projection mode).
- a preset electronic device for display for example, the screen projection mode may be a mirror screen projection mode.
- the graphical user interface displayed by the electronic device 102 is the same as the graphical user interface displayed on the display screen of the electronic device 100 .
- the electronic device 100 switches pages, and at the same time, the electronic device 102 also switches the displayed screen.
- the electronic device 100 may transmit part of the content (eg, video, picture) of the screen displayed on the machine to a preset electronic device (eg, the screen projection mode is resource projection mode).
- the electronic device 100 may only transmit the local display video to the electronic device 102 .
- the electronic device 100 can detect whether the local machine is playing a video, playing an audio or displaying a picture, and the screen projection mode can automatically select the resource projection mode and the mirror projection mode. switch between modes.
- the preset electronic device may display part of the content of the graphical user interface displayed by the electronic device 100 (for example, the screen projection mode may be a resource projection mode).
- the electronic device 100 displays the GUI 4002.
- the electronic device 102 only displays the video played on the GUI 4002 of the electronic device 100, as shown in FIG. 7B.
- the preset electronic device displays part of the content of the graphical user interface of the electronic device 100 (for example, the screen projection mode may be a resource projection mode) or the whole content (for example, screen projection mode)
- the mode may be a mirror screen mode
- the electronic device 100 may enter the remote control mode.
- the remote control mode refers to that the user can control the electronic device 102 through the electronic device 100, as shown in FIG. 7C .
- a user may control play/pause of a video played by the electronic device 102 through controls (eg, play/pause) on a virtual remote control of the electronic device 100 .
- FIG. 8 is an exemplary diagram in which the camera of the electronic device 100 captures an image, recognizes the electronic device 102 , and puts the audio played by the electronic device 100 on the electronic device 102 for playback.
- the process of collecting images by the electronic device 100 and identifying the electronic device 102 can refer to the technical solutions of the embodiments shown in FIGS. 7A-7C , and the process of establishing a connection between the electronic device 100 and the electronic device 102 can also refer to the technologies of the embodiments shown in FIGS. 7A-7C . scheme, which will not be repeated here.
- the audio can be transmitted to the electronic device 102.
- the electronic device 100 can stop playing the audio and audio to save power consumption, As shown in Figure 8.
- the electronic device 100 may display audio controls (eg, fast-forward controls, fast-rewind controls, play/pause controls, adjust volume controls) on the screen, and the user may control the audio on the electronic device 102 through the electronic device 100 Play/Pause etc.
- the screen projection is triggered, so that when the user shares content between different electronic devices, the user can directly interact with the shared device.
- the problem of sharing devices makes sharing content across devices more direct and natural. In addition, it solves the problem of being able to share in one step regardless of whether it is close or far away, and content sharing can be achieved without walking in front of the shared device.
- FIG. 9 is a schematic diagram in which the electronic device 100 collects and recognizes an image of the electronic device 102 through a camera (eg, a rear camera), thereby receiving a screen projected from the electronic device 102 .
- a camera eg, a rear camera
- the electronic device 102 is playing a video.
- the electronic device 100 can capture and identify the image of the electronic device 102 through a camera (eg, a rear camera), search and discover the electronic device 102 and establish a connection, and project the content of the electronic device 102 to the local display.
- a camera eg, a rear camera
- the projection method may refer to the relevant content of FIGS. 7A-7C, which will not be repeated here.
- FIG. 12 is a schematic flowchart of a screen projection method in some embodiments.
- the first electronic device plays multimedia content, and the camera of the first electronic device operates in a low power consumption mode;
- the mobile phone is playing a video
- the ultra-low power consumption camera mounted on the mobile phone operates in a low power consumption mode.
- the video of the video being played on the mobile phone may be a locally stored video file or a video played online.
- the camera is a front camera.
- the camera may collect images periodically.
- the frame rate of the image captured by the camera is not greater than 10 frames.
- the camera of the first electronic device captures at least one first image frame in a low-power operation mode
- the camera of the mobile phone can collect low-resolution images in a low-power mode.
- the first image frame captured at this time may include a human face.
- the camera of the first electronic device When detecting that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one second image frame;
- the mobile phone uses the camera to capture images of the television.
- the mobile phone can perform image recognition in the collected image to determine whether the collected image is a preset object (for example, the user can set the preset object as an electronic device).
- the mobile phone detects that the image contains a preset object, Turn on the normal mode to capture the second image frame.
- the normal mode may be that the camera of the mobile phone uses a high frame rate to capture images, wherein the high frame rate is greater than the image sampling frame rate in the low power consumption mode.
- the normal mode may be a high-resolution image capture mode of a mobile phone camera.
- the camera of the mobile phone can be turned on in a high-resolution mode to collect at least one second image frame, wherein the resolution of the second image frame is higher than that of the first image frame.
- the mobile phone detects that the television set in the image is a preset electronic device, and establishes a connection with the television set.
- the mobile phone may recognize that the television in the image is a preset electronic device through an image recognition algorithm.
- the mobile phone can establish a connection with the TV through protocols such as Miracast, DLNA, Cast+, AirPlay, and Chromecast.
- protocols such as Miracast, DLNA, Cast+, AirPlay, and Chromecast.
- the mobile phone may search to find an electronic device that can accept screen projection, and then search for the TV set in the electronic device that can accept screen projection.
- the mobile phone can search for an electronic device that can accept screen projection, and then pass the device information (for example, device name, device identification, etc.) in the electronic device that can accept screen projection. to find the TV.
- the device information for example, device name, device identification, etc.
- the mobile phone can be connected to the TV through a local area network
- the mobile phone can be directly connected to the TV through WiFi;
- the mobile phone can be connected to the TV via Bluetooth;
- a connection request may be sent to the TV
- the mobile phone after the mobile phone and the TV set are connected, the mobile phone sends the video played locally to the TV, and the TV plays the video.
- the screen projection method can be mirror projection.
- the screen displayed on the mobile phone and the TV is the same, and the TV plays the video.
- the screen projection method can be resource projection.
- the mobile phone after the mobile phone is connected to the TV, after the mobile phone sends the video played by the device to the TV, the TV plays the video, but the mobile phone does not play the video, the mobile phone is in remote control mode, and the user can control the TV through the mobile phone Pause of the video being played, etc.
- the screen projection mode can be dynamically switched between resource projection and mirror projection.
- FIG. 13 is a schematic flowchart of another screen projection method in some embodiments.
- the camera of the first electronic device operates in a low power consumption mode
- the camera of the first electronic device operates in a low power consumption mode, and the content of 1201 in FIG. 12 can be cited, which will not be repeated here.
- the camera of the first electronic device captures at least one first image frame in a low-power operation mode
- the camera of the first electronic device when detecting that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one second image frame;
- the first electronic device receives a multimedia file sent by the second electronic device, wherein the multimedia file content is the multimedia content being played by the second electronic device;
- the mobile phone may send a request to the TV set to request to send the multimedia content being played by the TV set. After receiving the request, the TV can send the multimedia content being played to the mobile phone.
- the first electronic device plays the multimedia file.
- the mobile phone plays the multimedia file
- the mobile phone can play the multimedia file frame while receiving the multimedia file frame sent by the TV;
- Figure 14 is a schematic flow chart of a screen projection system in some embodiments
- the camera of the first electronic device operates in a low power consumption mode
- the camera of the first electronic device captures at least one first image frame in a low-power operation mode
- the camera of the first electronic device When detecting that the at least one first image frame includes a preset object, the camera of the first electronic device operates in a normal mode, and collects at least one second image frame;
- the second electronic device sends the multimedia content being played to the first electronic device
- the first electronic device plays the multimedia content.
- An embodiment of the present invention further provides a computer storage medium, where computer instructions are stored in the computer storage medium, and when the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the screen projection method in the above-mentioned embodiment. .
- Embodiments of the present invention also provide a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the above-mentioned relevant method steps, so as to implement the screen projection method in the above-mentioned embodiment.
- an embodiment of the present invention also provides an apparatus, which may specifically be a chip, a component or a module, and the apparatus may include a connected processor and a memory; wherein, the memory is used for storing computer execution instructions, and when the apparatus is running, The processor can execute the computer-executed instructions stored in the memory, so that the chip executes the screen projection method in the foregoing method embodiments.
- the electronic equipment, computer storage medium, computer program product or chip provided by the embodiments of the present invention are all used to execute the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved, reference may be made to the corresponding methods provided above. The beneficial effects of the method are not repeated here.
- the disclosed apparatus and method may be implemented in other manners.
- the apparatus embodiments described above are only illustrative.
- the division of modules or units is only a logical function division. In actual implementation, there may be other division methods.
- multiple units or components may be combined or May be integrated into another device, or some features may be omitted, or not implemented.
- the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
- Units described as separate components may or may not be physically separated, and components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
- each functional unit in each embodiment of the present invention 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 a stand-alone product, may be stored in a readable storage medium.
- the technical solutions of the embodiments of the present invention are essentially or contribute to the prior art, or all or part of the technical solutions may be embodied in the form of software products, and the software products are stored in a storage medium Among them, several instructions are included to cause a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present invention.
- the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Multimedia (AREA)
- Studio Devices (AREA)
Abstract
本申请提供了一种投屏的方法,其特征在于,所述方法包括:第一电子设备播放多媒体内容,且所述第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常工作模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子设备建立连接,并将所述多媒体内容发送给所述第二电子设备,以使所述第二电子设备播放所述多媒体内容。本申请实施例的投屏的方法,有助提高用户体验。
Description
本申请要求在2021年1月18日提交中国国家知识产权局、申请号为202110061435.7的中国专利申请的优先权,发明名称为“一种投屏的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及电子设备领域,并且更具体地,涉及一种投屏的方法和电子设备。
随着用户电子设备的增多,在设备间的数据分享已变得越来越频繁。手机可以播放视频,也可以显示文档、图片、应用界面或网页。由于手机的显示屏较小,在需要将手机显示的内容给别人看时,可以将手机显示的内容通过投屏技术投射到其他电子设备上(例如电视、计算机、或另一个手机),例如,用户可以将手机上的一段视频投屏到电视上,又比如将歌曲投屏到音箱上。
发明内容
本申请提供一种投屏的方法和电子设备,有助提高用户体验。
第一方面,提供了一种投屏的方法,所述方法包括:第一电子设备播放多媒体内容,且所述第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子设备建立连接,并将所述多媒体内容发送给所述第二电子设备,以使所述第二电子设备播放所述多媒体内容。
第一电子设备使用低功耗摄像头采集图像并检测到图像中含有预设电子设备,从而触发投屏,当用户在不同的电子设备间分享内容时,用户可以直接与被分享设备交互,解决了用户不知道设备名称而找不到被分享设备的问题,使得跨设备间的内容分享更加直接自然。另外,解决无论在近距还是远距离都能一步分享问题,无需走到被分享设备面前就能实现内容的分享。
结合第一方面,在第一方面的某些可能的实现方式中,所述摄像头为前置摄像头。
考虑到大多数场景下,用户的前置摄像头是对着用户人脸的,采用前置摄像头在低功耗模式下采集图像,可以复用人脸识别所用的摄像头;另一方面,如果采用后置摄像头,由于后置摄像头所采集的环境图像切换太快,第一电子设备要持续采集不同的图像并检测是否含有预设电子设备,这样会给第一电子设备造成 太大的计算压力。因此,采用前置摄像头进行采集图像的可以提高用户体验,节省功耗。
结合第一方面,在第一方面的某些可能的实现方式中,所述第一电子设备的摄像头以正常工作模式运行,包括:所述第一电子设备的摄像头采用高分辨率模式采集图像帧。
在检测到采集的图像中包含预设电子设备后,切换高分辨率模式采集图像,可以提高图像识别的成功率。
结合第一方面,在第一方面的某些可能的实现方式中,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧,包括:摄像头在低功耗运行模式下采集至少一个第一图像帧的帧率不超过10帧每秒。
第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧的帧率不超过10帧每秒,可以降低功耗。
结合第一方面,在第一方面的某些可能的实现方式中,所述检测到所述预设物体为预设的第二电子设备,包括:对所采集的图像进行图像识别,识别到所采集图像中的物体为预设的第二电子设备。
通过图像识别算法对所采集的图像进行检测,可以提高图像检测的的效率。
结合第一方面,在第一方面的某些可能的实现方式中,可以通过第一电子设备的神经网络计算处理器,对摄像头采集的图像进行图像识别。
通过本机的神经网络计算处理器,对摄像头拍摄的图像快速处理进行图像识别,可以实时进行图像识别,在无网络的时候也可以进行图像识别,可以提高识别效率。
结合第一方面,在第一方面的某些可能的实现方式中,可以将所采集的图像上传至服务器进行图像识别,其中所述服务器可以通过神经网络计算处理器对所述图像进行识别。
通过服务器的神经网络计算处理器,对摄像头采集的图像进行图像识别,可以综合发挥服务器的计算优势,减轻本机的计算压力。
结合第一方面,在第一方面的某些可能的实现方式中,所述对所采集的图像进行图像识别,识别到所采集图像中的物体为预设的第二电子设备,还可以包括:
将图像识别结果与电子设备映射表匹配,并匹配到预设的第二电子设备
通过建立电子设备映射表,并将图像识别结果与电子设备映射表匹配,可以降低因为图像识别误差导致误判的概率。
结合第一方面,在第一方面的某些可能的实现方式中,所述电子设备映射表包括:
所述预设的第二电子设备的图像和所述预设的第二电子设备的设备信息,其中所述设备信息包括第二电子设备的名称或者设备型号。
在电子设备映射表中记录预设的第二电子设备的设备信息,可以便于电子设备与所述预设电子设备建立连接。
结合第一方面,在第一方面的某些可能的实现方式中,所述电子设备映射表 可以是用户提前预置好的,也可以是电子设备根据用户的投屏使用习惯生成的,也可以是所述电子设备产商在所述电子设备出厂前设置好的。
结合第一方面,在第一方面的某些可能的实现方式中,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧之前,所述方法还包括:
本机的第二处理器向本机的第一处理器发送第一消息,控制所述摄像头采集图像。
第一电子设备处理器可以包括第一处理器和第二处理器,所述第一处理器可以是一个辅助运算芯片,也可以为协处理器或辅助处理器。通过采用协处理器执行不同的任务,可以减轻第一电子设备的应用处理器的负担,以降低主处理器的负荷,进而延长续航时间,可以随时以较低的功耗进行低功耗模式图像的接收和识别。
结合第一方面,在第一方面的某些可能的实现方式中,在所述第一电子设备与所述第二电子设备建立连接之前,所述方法还包括:所述第一电子设备搜索发现所述第二电子设备。
结合第一方面,在第一方面的某些可能的实现方式中,所述第一电子设备搜索发现所述第二电子设备,包括以下方式的一种或者多种组合:通过局域网的广播来发现第三电子设备,并比对所述第二电子设备的设备信息与所述第三电子设备的设备信息,或者通过蓝牙来发现所述第三电子设备,并比对所述第二电子设备的设备信息与所述第三电子设备的设备信息,或者通过WIFI直连来发现所述第三电子设备,并比对所述第二电子设备的设备信息与所述第三电子设备的设备信息;
通过场景的不同,第一电子设备可以动态选择不同的方式来搜索发现预设电子设备,这样可以增强数据传输稳定性,提高搜索效率。
结合第一方面,在第一方面的某些可能的实现方式中,所述第一电子设备与所述第二电子设备建立连接,包括:所述第一电子设备与所述第二电子设备建立P2P连接。
通过建立P2P链路,在P2P信道上进行投屏业务,可以增强抗干扰能力,提升投屏体验。
结合第一方面,在第一方面的某些可能的实现方式中,所述多媒体内容包括:视频、音频或图片的至少一种;
第二方面,提供了一种电子设备,包括:摄像头,其中,所述摄像头包括低功耗模式和正常工作模式;至少一个处理器;存储器,存储有指令,当所述指令被所述至少一个处理器执行时,使得所述电子设备执行上述第一方面及第一方面的可能的实现方向的投屏的方法。
第三方面,提供一种投屏的方法,所述方法包括:第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物 体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;所述第一电子设备接收所述第二电子设备发送的多媒体文件,其中所述多媒体文件内容是所述第二电子设备正在播放的多媒体内容;所述第一电子设备播放所述多媒体文件。
第四方面,提供了一种电子设备,包括:摄像头,其中,所述摄像头包括低功耗模式和正常工作模式;至少一个处理器;存储器,存储有指令,当所述指令被所述至少一个处理器执行时,使得所述电子设备执行上述第三方面的投屏的方法。
第五方面,提供一种投屏系统,包括第一电子设备和第二电子设备;所述第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;所述第二电子设备将正在播放的多媒体内容发送给所述第一电子设备;所述第一电子设备播放所述多媒体内容。
第六方面,提供了一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述任一方面任一项可能的设计中的投屏的方法。
第七方面,提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行使得所述电子设备执行上述任一方面任一项可能的设计中的投屏的方法。
图1是本申请实施例提供的电子设备的结构示意图。
图2是本申请实施例提供的电子设备的软件结构框图。
图3是本申请实施例提供的示意性系统框图
图4A是本申请实施例提供的图形用户界面的示意图。
图4B是本申请实施例提供的图形用户界面的示意图。
图4C是本申请实施例提供的图形用户界面的示意图。
图5是本申请实施例提供的图形用户界面的示意图。
图6是本申请实施例提供的图形用户界面的示意图。
图7A-7C是本申请实施例提供的投屏方法的示意图。
图8是本申请实施例提供的投屏方法的示意图。
图9是本申请实施例提供的投屏方法的示意图。
图10-图11是本申请实施例提供的图形用户界面的示意图。
图12-图14是本申请实施例提供的示意性流程图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本文中对发明的描述中所使用的术语只是为了描述特定实施例的目的,而非旨在作为对本发明的限制。
图1示意了一种具有显示屏和至少一个摄像头(例如,前置摄像头和/或后置摄像头)的电子设备100的结构示意图。
电子设备100可以包括手机、可折叠电子设备、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备、或智慧城市设备中的至少一种。本申请实施例对该电子设备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)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。在一些实施例中,处理器可以包括第一处理器1101(例如协作处理器)、第二处理器1102(例如应用处理器)。
处理器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器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)接口等。处理器110可以通过以上至少一种接口连接触摸传感器、音频模块、无线通信模块、显示器、摄像头等模块。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
USB接头130是一种符合USB标准规范的接口,可以用于连接电子设备100和外围设备,具体可以是Mini USB接头,Micro USB接头,USB Type C接头等。USB接头130可以用于连接充电器,实现充电器为该电子设备100充电,也可以用于连接其他电子设备,实现电子设备100与其他电子设备之间传输数据。也可以用于连接耳机,通过耳机输出电子设备中存储的音频。该接头还可以用于连接其他电子设备,例如VR设备等。在一些实施例中,通用串行总线的标准规范可以为USB1.x、USB2.0、USB3.x和USB4。
充电管理模块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),蓝牙低功耗(bluetooth low energy,BLE),超宽带(ultra wide band,UWB),全球导航卫星系统(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),码分多址接入(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,和/或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个或多个显示屏194。
电子设备100可以通过摄像模组193,ISP,视频编解码器,GPU,显示屏194以及应用处理器AP、神经网络处理器NPU等实现摄像功能。
摄像模组193可用于采集拍摄对象的彩色图像数据以及深度数据。ISP可用于处理摄像模组193采集的彩色图像数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将该电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像模组193中。
在一些实施例中,摄像模组193可以由彩色摄像模组和3D感测模组组成。
在一些实施例中,彩色摄像模组的摄像头的感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到 DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。
在一些实施例中,3D感测模组可以是(time of flight,TOF)3D感测模块或结构光(structured light)3D感测模块。其中,结构光3D感测是一种主动式深度感测技术,结构光3D感测模组的基本零组件可包括红外线(Infrared)发射器、IR相机模等。结构光3D感测模组的工作原理是先对被拍摄物体发射特定图案的光斑(pattern),再接收该物体表面上的光斑图案编码(light coding),进而比对与原始投射光斑的异同,并利用三角原理计算出物体的三维坐标。该三维坐标中就包括电子设备100距离被拍摄物体的距离。其中,TOF 3D感测可以是主动式深度感测技术,TOF 3D感测模组的基本组件可包括红外线(Infrared)发射器、IR相机模等。TOF 3D感测模组的工作原理是通过红外线折返的时间去计算TOF 3D感测模组跟被拍摄物体之间的距离(即深度),以得到3D景深图。
结构光3D感测模组还可应用于人脸识别、体感游戏机、工业用机器视觉检测等领域。TOF 3D感测模组还可应用于游戏机、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)等领域。
在另一些实施例中,摄像模组193还可以由两个或更多个摄像头构成。这两个或更多个摄像头可包括彩色摄像头,彩色摄像头可用于采集被拍摄物体的彩色图像数据。这两个或更多个摄像头可采用立体视觉(stereo vision)技术来采集被拍摄物体的深度数据。立体视觉技术是基于人眼视差的原理,在自然光源下,透过两个或两个以上的摄像头从不同的角度对同一物体拍摄影像,再进行三角测量法等运算来得到电子设备100与被拍摄物之间的距离信息,即深度信息。
在一些实施例中,电子设备100可以包括1个或多个摄像模组193。具体的,电子设备100可以包括1个前置摄像模组193以及1个后置摄像模组193。其中,前置摄像模组193通常可用于采集面对显示屏194的拍摄者自己的彩色图像数据以及深度数据,后置摄像模组可用于采集拍摄者所面对的拍摄对象(如人物、风景等)的彩色图像数据以及深度数据。
在一些实施例中,处理器110中的CPU或GPU或NPU可以对摄像模组193所采集的彩色图像数据和深度数据进行处理。在一些实施例中,NPU可以通过骨骼点识别技术所基于的神经网络算法,例如卷积神经网络算法(CNN),来识别摄像模组193(具体是彩色摄像模组)所采集的彩色图像数据,以确定被拍摄人物的骨骼点。CPU或GPU也可来运行神经网络算法以实现根据彩色图像数据确定被拍摄人物的骨骼点。在一些实施例中,CPU或GPU或NPU还可用于根据摄像模组193(可以是3D感测模组)所采集的深度数据和已识别出的骨骼点来确认被拍摄人物的身材(如身体比例、骨骼点之间的身体部位的胖瘦情况),并可以进一步确定针对该被拍摄人物的身体美化参数,最终根据该身体美化参数对被拍摄人物的拍摄图像进行处理,以使得该拍摄图像中该被拍摄人物的体型被美化。后续实施例中会详细介绍如何基于摄像模组193所采集的彩色图像数据和深度数据对被拍摄人物的图像进行美体处理,这里先不赘述。
数字信号处理器用于处理数字信号,还可以处理其他数字信号。例如,当电 子设备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的开放移动电子设备平台(open mobile 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检测翻盖皮套的开合。当电子设备为可折叠电子设备,磁传感器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可以对电池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个或多个SIM卡接口。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为五层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime,ART)和原生C/C++库,硬件抽象层(Hardware Abstract Layer,HAL)以及内核层。
应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,资源管理器,通知管理器,活动管理器,输入管理器等。
窗口管理器提供窗口管理服务(Window Manager Service,WMS),WMS可以用于窗口管理、窗口动画管理、surface管理以及作为输入系统的中转站。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。该数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类 型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
活动管理器可以提供活动管理服务(Activity Manager Service,AMS),AMS可以用于系统组件(例如活动、服务、内容提供者、广播接收器)的启动、切换、调度以及应用进程的管理和调度工作。
输入管理器可以提供输入管理服务(Input Manager Service,IMS),IMS可以用于管理系统的输入,例如触摸屏输入、按键输入、传感器输入等。IMS从输入设备节点取出事件,通过和WMS的交互,将事件分配至合适的窗口。
安卓运行时包括核心库和安卓运行时。安卓运行时负责将源代码转换为机器码。安卓运行时主要包括采用提前(ahead or time,AOT)编译技术和及时(just in time,JIT)编译技术。
核心库主要用于提供基本的Java类库的功能,例如基础数据结构、数学、IO、工具、数据库、网络等库。核心库为用户进行安卓应用开发提供了API。。
原生C/C++库可以包括多个功能模块。例如:表面管理器(surface manager),媒体框架(Media Framework),libc,OpenGL ES、SQLite、Webkit等。
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体框架支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。OpenGL ES提供应用程序中2D图形和3D图形的绘制和操作。SQLite为电子设备100的应用程序提供轻量级关系型数据库。
硬件抽象层运行于用户空间(user space),对内核层驱动进行封装,向上层提供调用接口。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
下面结合捕获前置摄像头拍照的场景,示例性说明电子设备100软件以及硬件的工作流程。
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。应用程序框架层从内核层获取原始输入事件,识别该输入事件所对应的控件。以该触摸操作是触摸单击操作,该单击操作所对应的控件为相机应用图标的控件为例,相机应用调用应用框架层的接口,启动相机应用,进而通过调用内核层启动摄像头驱动,通过摄像头193捕获静态图像或视频。
随着用户电子设备的增多,在电子设备间的数据分享已变得越来越频繁。例如,用户可以将手机上的一段视频投屏到电视上,也可以将音频投放到音箱上, 这样可以获得不同的用户体验。
在进行实施例的讲解之前,先介绍与投屏相关的名词。
Source端和Sink端:例如,把手机上的资源投射到电视机,这里涉及到两个电子设备,一个是手机,另一个是电视机。在这个过程中,投射的发起端(手机)可以被称为Source端,电视机可以被称为Sink端。
同源投屏:Source端的界面和Sink端的界面完全一样的投屏方式。
异源投屏:Source端界面和Sink端界面不一样的投屏方式。
镜像投射:一种同源投射的方式,把Source端的屏幕像镜子一样投射到Sink端。具体方式可以包括Source端进行录屏,然后把录制结果实时发送到Sink端,然后在Sink端进行播放。
资源投射:一种异源投射的方式,Source端(例如,手机)将本机的资源(音频,视频,图片等媒体资源)以文件或者流的方式传到Sink端,然后通过Sink的播放器播放出来,可以分为在线资源投射和本地资源投射。具体而言,在线资源投射为Source端将在线资源的URL发送给到Sink端,由Sink端根据URL的指向去获取媒体资源的内容并在Sink段播放;本地资源投射是Source端把本地资源发送到Sink端,由Sink端播放,在投射过程中,Source端可以对Sink端进行控制和调整,例如播放/暂停、音量调整、亮度调整、语言调整等
播控:播控是指在资源投射的方式下,通过Source端(例如,手机)控制Sink端的播放状态。
反向控制:在镜像投屏的场景下,把Source端(例如,手机)屏幕投射到了Sink端,可以在Sink端通过鼠标、键盘,或者触摸屏直接操作投射过去的Source端(例如,手机)屏幕,达到操作Source端的效果。
局域网连接:投屏的一种连接方式,需要Source端和Sink端接入同一个局域网,所述局域网可以是有线局域网,也可以是无线局域网。
P2P(Peer-To-Peer)连接:又可以被称为设备直连,Source和Sink直接建立WIFI(Wireless Fidelity)直连数据交换不经过路由器的连接方式。
常用的投屏协议包括Miracast、DLNA、Cast+、AirPlay、Chromecast等。
应理解,本申请所述的投屏方法可以应用于大屏投屏(例如,手机投射到电视机、投影仪、机顶盒)、PC(Personal computer)协同(例如,手机通过近场通信方式发现设备之后,和PC建立P2P的连接,然后把手机屏幕镜像投射过去,并且支持反向控制,即通过PC控制手机)、Pad(Portable android device)协同、车载投屏等。
图3所示是一些实施例的示例性的系统图。系统30可以包括电子设备100、电子设备102、电子设备103、电子设备104。应理解,在一些实施例中,系统30还可以包括更多或者更少的电子设备。应理解,在一些实施例中,电子设备104可以是无线路由器,或者是可提供无线网络接入的客户终端设备CPE(Customer Premise Equipment),也可以是其他任何一个无线接入点WAP(wireless access point)或者有线网络接入点。在一些实施例中,电子设备100、 电子设备102、电子设备103可以通过电子设备104连接到同一个局域网络(有线局域网或者无线局域网)中。
本申请实施例提供的投屏方法可以应用于包含摄像头的手机、平板电脑、可穿戴设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备,本申请实施例对电子设备的具体类型不作任何限制。
图4A、图4B、图4C与图5所示的是用户手动点击投屏控件,从而触发投屏的示例性图形用户界面。
电子设备100屏幕上显示图形用户界面(Graphical User Interface,GUI),其中所述图形用户界面包括投屏控件。应理解所述图形用户界面可以为某个应用的应用界面(例如,如图4B所示的华为音乐,或者如图4C所示的华为视频),也可以为例如图4A所示的电子设备100的下拉菜单栏(应理解,此处所述的术语“下拉菜单栏”是示意性的,不代表对该图形用户页面名称的具体限定)。示意性的,在图4C中,GUI4002显示的内容有视频402(视频可以处于暂停播放状态的或者正在播放状态)。应理解,GUI4002上显示的内容还可以包括控件404(例如调节音量的控件、播放/暂停控件、快进控件、快退控件)、视频标题406、视频列表408等。应理解,GUI 4002上的内容是示意性的。
电子设备100检测到投屏控件被激活(例如,用户点击投屏控件),电子设备100检测到本机处于网络中,在局域网络中搜索局域网中的可投屏电子设备。应理解,所述投屏控件在不同的图形用户界面上可以不同(例如,投屏控件可以为如图4B所示的“多屏互动”控件412、如图4A所示的“无线投屏”,或者如图4C所示的控件406)。示意性的,电子设备100与电子设备102、电子设备103在同一局域网内,电子设备100在同一局域网可以搜索到电子设备102、电子设备103,并获取电子设备102、电子设备103的设备信息在电子设备100上显示(例如,图4B中的GUI4004中,电子设备100上以列表形式显示局域网中的电子设备102、电子设备103的设备信息),其中所述设备信息可以包括设备的名称。
当电子设备100检测到用户选择电子设备102后,电子设备100与电子设备102建立连接,电子设备100将本机显示的内容(视频、文字或图片的至少一种)传输到电子设备102显示,或者电子设备100将本机播放的音频传输到电子设备102播放。
在一些实施例中,电子设备102在接收到电子设备100本机显示的内容之前,可以接收电子设备100发出的连接请求,电子设备102可以弹出窗口请求是否同意建立连接。
可选的,电子设备100与电子设备102建立连接后,电子设备102可以只显示电子设备100显示的部分内容(例如,投屏方式可以是资源投射方式)。示意性的,如图5所示,电子设备100显示的图像用户界面包括视频402(视频可以 处于暂停播放状态的或者正在播放状态),电子设备100与电子设备102建立连接后,电子设备102可以只显示视频402(视频可以处于暂停播放状态的或者正在播放状态)。进一步的,电子设备100与电子设备102建立连接后,电子设备102可以只显示视频402,电子设备100停止显示所述视频402。进一步的,电子设备100停止显示所述视频402后,用户可以通过在电子设备100上控制电子设备102上播放的视频402。
可选的,电子设备100将本机播放的音频传输到电子设备102播放后,电子设备100可以停止播放音频。进一步的,电子设备100可以停止播放音频后,用户可以通过在电子设备100上控制电子设备102播放的音频。
可选的,电子设备100可以将本机显示的图形用户界面镜像传输到电子设备102,电子设备102显示的图形用户界面与电子设备100相同(例如,投屏方式可以是镜像投射方式)。进一步的,用户在电子设备100上做出切换页面的指令后,电子设备100切换显示第二图形用户界面,电子设备102接收到电子设备100发送的数据,切换显示的第三图形用户界面,其中所述第二图形用户界面与第三图形用户界面相同。例如,电子设备100切换显示本机桌面,电子设备102也切换显示电子设备100的桌面。
但是,通过点击控件触发投屏,手动选择其他电子设备进行投屏会对用户造成不便,用户需要进行多步操作才可以将电子设备100上的内容分享到其他电子设备上。例如,用户需要首先点击投屏图标,然后需要在可投屏电子设备列表里查找所要投屏的电子设备。一个很困扰用户的问题是,由于可投屏电子设备很多,用户难以在可投屏电子设备列表里找到想要投屏的设备,因为仅仅通过名称难以区分不同的电子设备,换言之,当相似设备较多时,用户可能不清楚需要投屏的设备名称是哪个。
其次,对于一些在应用程序应用界面上的投屏,由于需要在应用界面上设置额外的按钮图标,而在有限的屏幕空间内,内容之间往往布局紧密,在如此有限的空间设置的投屏图标难以被用户发觉,这会给用户造成负担,另外,在应用程序应用界面上设置太多的图标不适合沉浸型页面,影响用户体验。
如图6所示是电子设备100与其他电子设备通过近场连接,从而触发投屏的示意性图。电子设备100可以与电子设备102的近场标签(例如,电子设备102为电视,近场标签置于遥控器内)建立近场连接,从而启动投屏。
电子设备100与电子设备102建立连接后,电子设备100将本机显示的内容(视频、文字、图片等)或者本机播放的音频传输到电子设备102。在一些实施例中,电子设备102在接收到所述内容之前,可以接收电子设备100发出的连接请求,电子设备102可以弹出窗口请求是否同意建立连接。
电子设备100检测到近场连接,将本机显示的内容(视频、音频、文字、图片等)传输到电子设备102后,电子设备100的显示方式与接收投屏内容的电子设备102的显示方式可以援引图4A、图4B、图4C与图5所述实施例的内容。
但是,近场交互更适用于近距离的应用场景,比如手机投屏笔记本电脑,但 不太适合手机与电视、音箱等电子设备进行远距离交互时的场景。比如想要投屏电视的话,需要先找到电视遥控器或者走到电视面前才能建立近场连接。类似的,想要将手机上的音频同步到音箱播放,也需要用户走到音箱前面才能建立近场连接。
图7A-7C是电子设备100通过摄像头(例如,前置摄像头或者后置摄像头)采集图像,并且对所采集图像进行图像识别,识别到了预设电子设备后从而触发投屏的一组示意性图。
图像识别(Image Recognition)是基于深度学习和大数据,利用计算机对图像进行分析和理解,以识别各种不同模式的目标和对象的技术。基于深度学习技术,可准确识别图像中的视觉内容,可以提供多种物体、场景和概念标签,具备目标检测和属性识别等能力,准确识别和理解图像内容,构建智能化系统,提升业务效率。
应理解,此处所述的预设电子设备可以是用户预先建立的电子设备映射表里的电子设备。在一些实施例中,所述预设电子设备也可以是电子设备100出厂时预设好的电子设备映射表里的电子设备。所述电子设备映射表还可以是电子设备100或者服务器根据用户的投屏使用习惯统计生成的。
用户在投屏实现内容分享时候,会考虑到隐私是否会被泄露的问题。例如,用户在家里或者办公区更有投屏进行内容分享的意愿,但在商场、车站等其他公共场合,用户并不希望进行投屏分享。
因此,用户可以自定义可想要投屏的电子设备,比如,用户可以把家里的电视机A、电脑B、音响C、办公室的电脑D等电子设备建立一个电子设备映射表,那么电子设备映射表里的电子设备都是预设电子设备。
示意性的,用户可以通过给电子设备拍照的方式建立电子设备映射表。用户可以对不同的电子设备进行拍照,并将所拍摄的照片保存在本机中。在一些实施例中,用户还可以输入电子设备的型号,从服务器下载电子设备的图片,建立电子设备映射表。在另外一些实施例中,所述电子设备映射表可以是通过神经网络模型训练得到的。
当电子设备100开启摄像头(前置摄像头或后置摄像头),将摄像头对着某个物体,电子设备100通过图像识别技术,识别到该物体属于用户预先建立的电子设备映射表里的预设电子设备,则电子设备100启动进一步的校验(例如,检测电子设备100与被识别出的电子设备是否在同一局域网)。需要说明的是,当电子设备100的摄像头对着某个物体时,可以连续的采集画面,无需用户拍摄该物体的照片。此时,电子设备100可以从缓存中提取包含该物体的一个或多个图像帧,使用该图像帧进行图像识别。
当电子设备100通过识别摄像头采集的图像,未识别到电子设备,或者所识别的电子设备不属于预设电子设备,电子设备100不启动校验。以电子设备100为例进行示意性说明。电子设备100可以采用本机的摄像头对环境中的物体(包括电子设备、桌子、椅子、人脸等)采集图像。
步骤1:电子设备100通过摄像头采集图像。
在一些实施例中,电子设备100可以采用本机的前置摄像头持续性(例如,周期性)的采集图像。可选的,所述前置摄像头可以是电子设备100搭载的超低功耗摄像头(摄像头工作在低功耗模式下),其中所述超低功耗指的是它的功耗要远低于目前电子设备(例如,手机)上的常规的前置摄像头和后置摄像头(比如100万像素,500万像素,或者1000万像素的摄像头),且平时可以以非常低的分辨率采集图像帧,以节省功耗。由于超低功耗摄像头的分辨率很低,所以不会影响用户的隐私。应理解,所述超低功耗摄像头可以在低功耗模式(例如,采集的图像为低分辨率)和正常模式(例如,采集的图像为高分辨率)之间切换。
如图1所示的电子设备100的硬件结构图,电子设备100的处理器110可以包括第一处理器1101、第二处理器1102。所述第一处理器1101可以是一个辅助运算芯片,可以为协处理器或辅助处理器,用于减轻电子设备100的应用处理器的负担,执行预设的处理任务,如,处理图像或视频数据,或者感应和测量运动数据等,以降低主处理器的负荷,进而延长续航时间。本发明实施例中的协处理器则可以随时以较低的功耗进行低功耗模式图像的接收和识别。可以理解的是,此处仅仅为实例性描述,根据电子设备100的具体类型不同,实际上第一处理器1101和第二处理器1102可以均为ARM架构处理器或均为X86架构处理器,或为其他架构处理器,进一步地,第一处理器1101和第二处理器1102还可以是集成在同一个处理器组件上的性能和功能不同的处理单元,即对不同种类处理器的组合本发明实施例不做具体限定。所述第二处理器1102可以为应用处理器(可集成图像信息处理器或包含有图像信息处理单元),并作为电子设备100的主要处理器用于负责屏幕193的显示、音视频的播放、各类应用、语音通话以及数据传输等等,当用户按压电源键启动终端时,第二处理器1102启动运行,以使得电子设备100能够正常被使用;当用户关闭电源键时,为了降低第二处理器1102的功耗,此时第二处理器1102将进入到休眠状态,并且在本发明实施例中,此时只有功耗较低的第一处理器1101可以正常工作。
所述投屏方法可以应用于包括第一处理器、第二处理器和前置摄像头1931的电子设备100中,其中,第一处理器1101和第二处理器1102分别通过前置摄像头接口与前置摄像头1931连接,且第一处理器1101和第二处理器1102之间以及分别与屏幕193之间均相互电连接。
可选的,第二处理器在检测出所述电子设备100的前置摄像头处于低功耗模式时,可以向所述第一处理器发送第一消息。
应理解,本申请实施例中所述的低功耗模式是指前置摄像头处于没有开启正常拍照或者拍摄功能的模式,即用户此时没有通过拍照相关的应用进入该前置摄像头的正常拍摄模式。而非低功耗模式可以是指用户通过相关拍照应用开启该前置摄像头的正常拍摄功能的模式,也可以是前置摄像头采用高分辨率模式进行图像采集。可以理解的是,当电子设备100从关机到开机状态,显然此时前置摄像头还处于低功耗模式(因为必然是先开机,之后才有可能打开摄像头的正常拍摄 功能)。
因此,当第二处理器在检测出从关机到开机状态时,获知前置摄像头处于低功耗模式时;或者,第二处理检测出前置摄像头从非低功耗模式(正常工作模式)退出到低功耗模式(未开启正常工作模式)时,第二处理器都会向第一处理器发送第一消息表明前置摄像头处于低功耗模式。还可以理解的是,第一处理器可以是关机到开机状态时和第二处理器一起启动的,也可以是第二处理器在向第一处理器发送第一消息时启动的。
可选的,当电子设备100显示某些应用(例如,浏览器应用,视频通话应用,游戏应用等)的应用界面时候,第二处理器可以向所述第一处理器发送第一消息。例如,电子设备100检测到本机显示的应用界面为即时通讯应用的视频聊天界面,第二处理器可以向所述第一处理器发送第一消息。
可选的,电子设备100在播放多媒体文件(例如,视频、音频、图片等)时候,且电子设备100的前置摄像头处于低功耗模式时,第二处理器可以向所述第一处理器发送第一消息。
可选的,电子设备100处于运行状态,第二处理器可以向所述第一处理器发送第一消息。
所述第一处理器接收所述第一消息后,控制所述前置摄像头持续性采集图像。
应理解,第二处理器可以周期性向所述第一处理器发送第一消息,控制所述前置摄像头持续性采集图像。
例如,在图7A中,电子设备100显示的应用界面存在正在播放的视频,电子设备100在播放如图4中GUI4002中的视频。第二处理器可以向所述第一处理器发送第一消息。所述第一处理器接收所述第一消息后,控制所述前置摄像头持续性采集图像。用户将电子设备100的前置摄像头朝向电子设备102,前置摄像头采集的图像包括电子设备102图像。
可选的,所述前置摄像头可以以一定的帧率(例如,不大于10帧每秒(fps))采集图像。前置摄像头以低帧率采集图像,可以减少功耗,因为协处理器接收低功耗模式图像的目的在于根据该低功耗模式采集的图像判断当前采集的图像中是否含有预设电子设备,因此无需更清晰或帧率更高的图像,只需要能判断出是否有预设特征信息即可,从而可以避免浪费图像资源导致浪费系统功耗。当所述前置摄像头是超低功耗摄像头(摄像头工作在低功耗模式下)时,在超低功耗摄像头所采集的图像帧中,电子设备100检测到有类似电子设备的物体时,电子设备100可以开启超低功耗摄像头的高分辨率模式采集图像,也可以启用常规摄像头采集高分辨率的图像,进而方便电子设备进行图像识别和分析。
在一些实施例中,电子设备100可以只搭载常规的前置摄像头和后置摄像头。电子设备100可以通过本机中的陀螺仪和/或加速度计,判断电子设备100的姿态。当检测到电子设备100的姿态呈现特定姿态时,比如电子设备100呈现近乎垂直的姿态(比如图7A),推测电子设备可能要进行投屏。此时,电子设备100根据本机的姿态,确定开启前置摄像头还是后置摄像头。可选的,电子设备100可以使用 前置摄像头采集图像帧。
在一些实施例中,电子设备100也可以显示相机应用的应用界面,检测到用户输入的预定义手势(例如,用户激活“拍照”控件,进行拍照),通过摄像头(前置摄像头或者后置摄像头)拍摄图像。
在一些实施例中,电子设备100可以在设置页面提供选择开启或者关闭智感投屏功能的控件。如图10所示,用户可以选择点击控件711,从而打开或者关闭电子设备的智感投屏功能。应理解,所述“智感投屏”是对本申请中图7到图9所述实施例中投屏方法的一个示意性名称。进一步的,电子设备100还可以提供图像采集的不同方式。示意性的,用户可点击图10中的控件712进入图像采集方式的设置页面,如图11所示。在图11,用户可以通过点击控件811来开启或者关闭低功耗摄像头采集图像模式,也可以点击控件812开启或者关闭相机应用拍照模式。应理解,图10和图11图形用户界面上的元素是示意性的,在其他实施例中,图10和图11图形用户界面可以包含更多或者更少的元素。
步骤2:电子设备100通过识别算法进行图像识别
电子设备100通过摄像头采集到图像(例如,前置摄像头采集的图像或者用户开启相机应用后拍摄的图像)后,可以通过识别算法进行图像识别。
可选的,电子设备100可以通过本机的神经网络(neural-network,NN)计算处理器,对摄像头拍摄的图像快速处理,进行图像识别。
可选的,在一些实施例中,电子设备100可以将所拍摄的图像上传至服务器进行图像识别,其中所述服务器可以通过神经网络(neural-network,NN)计算处理器对所述图形进行识别。
可选的,用户打开电子设备100的相机应用,对环境中的电子设备102采集图像后,电子设备100可以发出请求,请求是否要进行图像识别。
因为用户打开相机应用拍照的目的不一定是为了投屏。通过设置“电子设备100可以发出请求,请求是否进行图像识别”这一步骤,可以结合用户需求以判断是否要进行投屏,可以提升用户体验,增加用户信赖感。可选的,用户可以在电子设备设置100中设定一个控件(例如,图11所示的控件812),当所述控件处于开启的状态,电子设备100检测到用户打开相机应用拍照后,自动进行图像识别。
步骤3:电子设备100根据图像识别结果,判断所采集图像中的电子设备是否为预设电子设备。例如,如果识别到了电子设备,则所述识别结果可以包括被识别出的电子设备的设备信息(包括设备名称、型号等)。
在一些实施例中,电子设备100可以根据图像识别结果,先判断识别的结果是否为电子设备,如果是,进一步判断识别结果中的电子设备是否为预设电子设备。
电子设备100识别到所采集图像里不含有电子设备,可以提示“未识别到电子设备”;
电子设备100在所述图像中识别到电子设备后,可以与数据库里的预设电子 设备映射表进行匹配。应理解,所述数据库的预设电子设备映射关系可以是提前预置好的,也可以是电子设备100或者服务器根据用户的投屏使用习惯生成的。应理解,所述数据库里可以含有预设电子设备的图像及其设备信息(例如,电子设备的名称、型号等)。
可选的,电子设备100可以将所述图像上传至服务器,与服务器中的数据库做匹配,电子设备100接收来自服务器的匹配结果。
可选的,电子设备100也可以将所述图像与本机中的数据库做匹配,判断所述图像中的电子设备是否为预设电子设备。
经过数据库匹配,在预设电子设备映射表查找到预设电子设备后,可以获取所述预设电子设备的设备信息(例如,电子设备的名称)。
经过数据库匹配,在预设电子设备映射表未查找到预设电子设备后,可以请求是否启动投屏分享操作,将选择权交给用户,避免图像识别错误导致无法启动投屏,可以增强用户的信赖,提升用户体验。
例如,图7A中,电子设备100正在播放视频,用户将电子设备100的前置摄像头朝向电子设备102,电子设备100的前置摄像头采集到电子设备102的图像后,通过识别算法对图像进行识别,判断电子设备102是否为预设电子设备。
在另外一些实施例中,电子设备100可以通过识别所采集图像中的物体是否为预设电子设备。例如,电子设备100通过图像识别,识别出图像中的物体为预设电子设备,输出识别结果,所述识别结果可以包括被识别出的电子设备的设备信息(包括设备名称、型号等)。而不需要先判定图像中的物体是否为电子设备后再与数据库做匹配。
电子设备100通过图像识别确定所采集图像中的物体是否为预设电子设备,而无需与数据库做匹配,进而判断是否触发下一步投屏操作,这样可以提高识别效率。
步骤3:电子设备100搜索发现所述预设电子设备。
电子设备100根据图像识别结果,判断所采集图像中的电子设备为预设电子设备。
在一些实施例中,电子设备100可以通过传输协议发现可接受投屏的电子设备,在可接受投屏电子设备里查找所述预设电子设备。其中所述传输协议包括但不限于Alljoyn协议、DLNA协议(Digital Living NetworkAllance)、Airplay协议和miracst协议、HTTP(Hypertext transferprotocol、ChromeCast、Cast+协议等。
可选的,电子设备100可以通过局域网的广播来发现可接受投屏电子设备。例如,在一些实施例中,可以把电子设备100称为Source端,可以把可接受投屏的电子设备称为Sink端。Sink端设备启动之后,向软总线注册其设备信息,Source端开启设备搜索之后,会通过固定端口(例如,5684)向局域网发广播消息,局域网中的设备收到广播消息之后,如果满足要求,会通过单播回复消息给Source端,Source端收到消息后,解析所述消息并将Sink端电子设备展示 在Source端设备的界面上。
可选的,电子设备100可以通过蓝牙来发现可接受投屏电子设备。例如,可以通过可接受投屏电子设备的监听,电子设备100发送广播,可接受投屏的电子设备回复消息的方式完成设备发现。
可选的,电子设备100可以通过WIFI(Wireless Fidelity)直连来发现可接受投屏的电子设备。
可选的,电子设备100可以动态选择WIFI(Wireless Fidelity)直连、蓝牙或者局域网的方式来发现可接受投屏的电子设备。
电子设备100在可接受投屏的电子设备列表里查找预设电子设备。
可选的,电子设备100可以通过电子设备信息(例如,电子设备名称)在可接受投屏的电子设备列表里查找预设电子设备。
如果电子设备100搜索发现到了所述预设电子设备,电子设备100可以与所述预设电子设备建立连接;如果电子设备100搜索发现所述预设电子设备失败,可以提示用户查找失败。
步骤4:电子设备100与预设电子设备建立连接。
可选的,电子设备100可以通过局域网与预设电子设备建立连接。
可选的,电子设备100可以通过P2P与预设电子设备建立连接。
通过建立P2P链路,在P2P信道上进行投屏业务,可以增强抗干扰能力,提升投屏体验;
步骤5:电子设备100与预设电子设备进行数据传输
电子设备100与所述预设电子设备建立连接后,进行数据传输。
可选的,电子设备100可以将本机显示的画面的全部内容传输至预设电子设备显示(例如,投屏方式可以为镜像投屏方式)。示意性的,如图7A所示,电子设备100与预置电子设备102建立连接后,电子设备102显示的图形用户界面与电子设备100显示屏显示的图形用户界面相同。进一步的,用户在电子设备100上做出切换页面的指令后,电子设备100切换页面,同时电子设备102也切换所显示的画面。
可选的,电子设备100可以将本机显示的画面的部分内容(例如,视频、图片)传输至预置电子设备(例如,投屏方式为资源投射方式)。示意性的,电子设备100正在播放视频、电子设备100可以只将本机显示视频传输至电子设备102。
可选的,电子设备100在与所述预置电子设备建立连接后,电子设备100可以检测到本机是否处于播放视频、播放音频或者显示图片,投屏方式可以自动在资源投射方式和镜像投射方式之间切换。
可选的,电子设备100与预置电子设备建立连接后,预置电子设备可以显示电子设备100显示的图形用户界面的部分内容(例如,投屏方式可以是资源投射方式)。示意性的,电子设备100显示GUI4002,电子设备100与电子设备102建立连接后,电子设备102只显示电子设备100GUI4002上播放的视频,如图7B 所示。
可选的,电子设备100与预置电子设备建立连接后,预置电子设备显示电子设备100图形用户界面的部分内容(例如,投屏方式可以是资源投射方式)或者全部内容(例如,投屏方式可以为镜像投屏方式),电子设备100可以进入遥控器模式。应理解其中所述遥控器模式指的是用户可以通过电子设备100对电子设备102进行控制,如图7C所示。例如,用户可以通过电子设备100的虚拟遥控器上的控件(例如播放/暂停)控制电子设备102所播放视频的播放/暂停。
图8所示是电子设备100摄像头采集图像并识别电子设备102,并将电子设备100播放的音频投放到电子设备102上播放的示例性图。
电子设备100采集图像并识别电子设备102的过程可以援引图7A-7C所示实施例的技术方案,电子设备100与电子设备102建立连接的过程也可以援引图7A-7C所示实施例的技术方案,此处不再赘述。
可选的,电子设备100与电子设备102建立连接后,可以将音频传输到电子设备102,电子设备100将音频传输到电子设备102后,电子设备100可以停止继续播放音音频以节省功耗,如图8所示。在一些实施例中,电子设备100可以在屏幕上显示音频控件(例如,快进控件、快退控件、播放/暂停控件、调节音量控件),用户可以通过电子设备100控制电子设备102上音频的播放/暂停等操作。
通过使用电子设备摄像头采集图像并识别电子设备,从而触发投屏,实现用户在不同的电子设备间分享内容时,用户可以直接与被分享设备交互,解决了用户不知道设备名称而找不到被分享设备的问题,使得跨设备间的内容分享更加直接自然。另外,解决无论在近距还是远距离都能一步分享问题,无需走到被分享设备面前就能实现内容的分享。
图9所示实施例是电子设备100通过摄像头(例如,后置摄像头)采集电子设备102的图像并且识别,从而接收电子设备102投屏的示意性图。
例如,电子设备102正在播放视频。电子设备100可以通过摄像头(例如,后置摄像头)采集电子设备102的图像并且识别,搜索发现电子设备102并建立连接,将电子设备102的内容投屏到本机显示。
应理解,此处所述的识别电子设备102的方法、搜索电子设备102的方法、与电子设备102建立连接的方法可以援引图7A-7C的相关内容,此处不再赘述。
还应理解,电子设备102的内容投屏到电子设备100后,投屏方式可以援引图7A-7C的相关内容,此处不再赘述。
图12所示是一些实施例中的一种投屏方法的示意性流程图。
1201,第一电子设备播放多媒体内容,且所述第一电子设备的摄像头以低功耗模式运行;
示例性的,如图7A所示,手机正在播放视频,且手机搭载的超低功耗摄像头以低功耗模式运行。
可选的,手机正在播放视频的视频可以是本地存储的视频文件,也可以是在 线播放的视频。
可选的,所述摄像头为前置摄像头。
可选的,所述摄像头可以周期性的采集图像。
可选的,所述摄像头采集图像的帧率不大于10帧。
1202,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;
示例性的,如图7A所示,手机的摄像头可以在低功耗模式下采集低分辨率图像。例如,当用户拿着手机看视频时候,此时采集的第一图像帧可以包括人脸。
1203,检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;
例如,如图7A所示,手机通过摄像头对电视机进行图像采集。手机可以在采集到的图像里进行图像识别,判断所采集的图像中是否为预设物体(例如,用户可以把预设物体设置为电子设备),当手机检测到图像中包含预设物体时,开启正常模式采集第二图像帧。
可选的,所述正常模式可以是手机的摄像头采用高帧率采集图像,其中所述高帧率大于低功耗模式下的图像采样帧率。
可选的,所述正常模式可以为手机摄像头的高分辨率采集图像模式。手机的摄像头可以开启高分辨率模式,采集至少一个第二图像帧,其中第二图像帧的分辨率高于第一图像帧。
1204,检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子设备建立连接;
示例性的,如图7A所示,手机检测到图像中的电视机是预设的电子设备,与电视机建立连接。
可选的,手机可以通过图像识别算法,识别到图像中的电视机是预设电子设备。
可选的,手机可以通过Miracast、DLNA、Cast+、AirPlay、Chromecast等协议与电视机建立连接。
可选的,手机在与电视机建立连接之前,可以搜索发现可接受投屏的电子设备,然后在所述可接受投屏的电子设备里查找电视机。
可选的,手机在与电视机建立连接之前,可以在搜索发现可接受投屏的电子设备,然后在所述可接受投屏的电子设备里通过设备信息(例如,设备名称、设备标识等)来查找电视机。
可选的,手机可以与电视机通过局域网的方式连接;
可选的,手机可以与电视机通过WiFi直连的方式连接;
可选的,手机可以与电视机通过蓝牙的方式连接;
可选的,手机与电视机连接之前,可以向电视机发出连接请求;
1205,将所述多媒体文件发送给所述第二电子设备,以使所述第二电子设备播放所述多媒体内容。
示例性的,如图7A-7C所示,手机与电视机建立连接后,手机将本机播放的视频发送给电视机,电视机播放所述视频。
可选的,手机与电视机建立连接后,投屏方式可以为镜像投屏。例如,手机将本机播放的视频发送给电视机后,手机和电视机显示的画面相同,电视机播放所述视频。
可选的,手机与电视机建立连接后,投屏方式可以为资源投屏。例如,手机与电视机建立连接后,手机将本机播放的视频发送给电视机后,电视机播放所述视频,手机不播放所述视频,手机为遥控器模式,用户可以通过手机来控制电视所播放视频的暂停等。
可选的,手机与电视机建立连接后,投屏方式可以在资源投屏和镜像投屏之间动态切换。
图13所示是在一些实施例中的另外一种投屏方法的示意性流程图。
1301,第一电子设备的摄像头以低功耗模式运行;
第一电子设备的摄像头以低功耗模式运行,可援引图12中1201的内容,此处不再赘述。
1302,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;
具体的内容可援引图12实施例中1202的内容,此处不再赘述。
1303,检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;
具体内容可援引图12实施例中1203的内容,此处不再赘述。
1304,检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;
具体内容可援引图12实施例中1204的内容,此处不再赘述。
1305,所述第一电子设备接收所述第二电子设备发送的多媒体文件,其中所述多媒体文件内容是所述第二电子设备正在播放的多媒体内容;
示例性的,手机可以向电视机发出请求,请求发送电视机正在播放的多媒体内容。电视机收到请求后可以将正在播放的多媒体内容发送给手机。
1306,所述第一电子设备播放所述多媒体文件。
示例性的,手机接收到电视机发来的多媒体文件后,手机播放所述多媒体文件;
可选的,手机可以在接收到电视机发来的多媒体文件帧的同时,手机播放所述多媒体文件帧;
图14所示是在一些实施例中的一种投屏系统的示意性流程图
1401,所述第一电子设备的摄像头以低功耗模式运行;
具体内容可援引图12实施例中1201内容,此处不再赘述。
1402,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;
具体内容可援引图12实施例中1202内容,此处不再赘述。
1403,检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;
具体内容可援引图12实施例中1203内容,此处不再赘述。
1404,检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;
具体内容可援引图12实施例中1204内容,此处不再赘述。
1405,所述第二电子设备将正在播放的多媒体内容发送给所述第一电子设备;
具体内容可援引图12实施例中1205内容,此处不再赘述。
1406,所述第一电子设备播放所述多媒体内容。
具体内容可援引图12实施例中1206内容,此处不再赘述。
本发明实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,该电子设备执行上述相关方法步骤实现上述实施例中的投屏方法。
本发明实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关方法步骤,以实现上述实施例中的投屏方法。
另外,本发明的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的投屏方法。
其中,本发明实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本发明所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。
Claims (27)
- 一种投屏的方法,其特征在于,所述方法包括:第一电子设备播放多媒体内容,且所述第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常工作模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子设备建立连接,并将所述多媒体内容发送给所述第二电子设备,以使所述第二电子设备播放所述多媒体内容。
- 根据权利要求1所述的方法,其特征在于,所述第一电子设备的摄像头包括:前置摄像头。
- 根据权利要求1或者2所述的方法,其特征在于,所述第一电子设备的摄像头以正常工作模式运行,包括:所述第一电子设备的摄像头采用高分辨率模式采集图像帧。
- 根据权利要求1至3任一所述的方法,其特征在于,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧,包括:摄像头在低功耗运行模式下采集至少一个第一图像帧的帧率不超过10帧每秒。
- 根据权利要求1-4任一所述的方法,其特征在于,所述检测到所述预设物体为预设的第二电子设备,包括:对所采集的图像进行图像识别,识别到所采集图像中的物体为预设的第二电子设备。
- 根据权利要求5所述的方法,其特征在于,所述对所采集的图像进行图像识别,识别到所采集图像中的物体为预设的第二电子设备,还可以包括:将图像识别结果与电子设备映射表匹配,并匹配到预设的第二电子设备
- 根据权利要求6所述的方法,其特征在于,所述电子设备映射表包括:所述预设的第二电子设备的图像和所述预设的第二电子设备的设备信息,其中所述设备信息包括第二电子设备的名称。
- 根据权利要求1-7任一所述的方法,其特征在于,所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧之前,所述方法还包括:本机的第二处理器向本机的第一处理器发送第一消息,控制所述摄像头采集图像。
- 根据权利要求1-8任一所述的方法,其特征在于,在所述第一电子设备与所述第二电子设备建立连接之前,所述方法还包括:所述第一电子设备搜索发现所述第二电子设备。
- 根据权利要求9所述的方法,其特征在于,所述第一电子设备搜索发现所述第二电子设备,包括以下方式的一种或者多种组合:通过局域网的广播来发现第三电子设备,并比对所述第二电子设备与所述第三电子设备的设备信息,或者通过蓝牙来发现所述第三电子设备,并比对所述第二电子设备与所述第三电子设备的设备信息,或者通过WIFI直连来发现所述第三电子设备,并比对所述第二电子设备与所述第三电子设备的设备信息;
- 根据权利要求1-10所述的方法,其特征在于,所述第一电子设备与所述第二电子设备建立连接,包括:所述第一电子设备与所述第二电子设备建立P2P连接。
- 根据权利要求1-11任一所述的方法,其特征在于,所述多媒体内容包括:视频、音频或图片的至少一种;
- 一种支持投屏的电子设备,其特征在于,所述电子设备包括:摄像头,其中,所述摄像头包括低功耗模式和正常工作模式;至少一个处理器;存储器,存储有指令,当所述指令被所述至少一个处理器执行时,所述电子设备用于执行以下操作:播放多媒体内容;控制所述摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,控制所述摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设设备时,与所述预设设备建立连接,并将所述多媒体文件发送给所述预设设备,以使所述预设设备播放所述多媒体内容。
- 根据权利要求13所述的电子设备,其特征在于,所述摄像头为所述电子设备的前置摄像头。
- 根据权利要求13或者14所述的电子设备,其特征在于,所述电子设备控制所述摄像头以正常工作模式运行,包括所述电子设备执行以下步骤:所述电子设备控制本机的摄像头采用高分辨率模式采集图像帧。
- 根据权利要求13至15任一所述的电子设备,其特征在于,所述电子设备控制所述摄像头在低功耗运行模式下采集至少一个第一图像帧,包括所述电子设备执行以下步骤:所述电子设备控制摄像头在低功耗运行模式下采集至少一个第一图像帧的帧率不超过10帧每秒。
- 根据权利要求13-16任一所述的电子设备,其特征在于,所述电子设备检测到所述预设物体为预设设备,包括所述电子设备执行以下步骤:所述电子设备对所采集的图像进行图像识别,识别到所采集图像中的物体为预设设备。
- 根据权利要求17所述的电子设备,其特征在于,所述电子设备对所采集的图像进行图像识别,识别到所采集图像中的物体为预设电子设备, 所述电子设备还执行以下步骤:所述电子设备将图像识别结果与电子设备映射表匹配,并匹配到预设设备。
- 根据权利要求18所述的电子设备,其特征在于,所述电子设备映射表包括:预设设备的图像和预设设备的设备信息,其中所述设备信息包括预设设备的名称。
- 根据权利要求13-19所述的电子设备,其特征在于,所述第一电子设备控制摄像头在低功耗运行模式下采集至少一个第一图像帧之前,所述电子设备执行以下步骤:所述电子设备的第二处理器可以向本机的第一处理器发送第一消息,控制所述摄像头采集图像。
- 根据权利要求13-20所述的电子设备,其特征在于,在所述第一电子设备与所述预设设备建立连接之前,所述电子设备还执行以下步骤:所述第一电子设备搜索发现所述预设设备。
- 根据权利要求13-21所述的电子设备,,其特征在于,电子设备与所述预设设备建立连接,包括所述电子设备执行以下步骤:所述电子设备与所述预设设备建立P2P连接。
- 根据权利要求13-22所述的电子设备,其特征在于,所述电子设备播放多媒体内容包括:所述电子设备播放视频、音频或图片的至少一种。
- 一种投屏的方法,其特征在于,所述方法包括:第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;所述第一电子设备接收所述第二电子设备发送的多媒体文件,其中所述多媒体文件内容是所述第二电子设备正在播放的多媒体内容;所述第一电子设备播放所述多媒体文件。
- 一种投屏系统,其特征在于,包括第一电子设备和第二电子设备;所述第一电子设备的摄像头以低功耗模式运行;所述第一电子设备的摄像头在低功耗运行模式下采集至少一个第一图像帧;检测到所述至少一个第一图像帧中包括预设物体时,所述第一电子设备的摄像头以正常模式运行,并采集至少一个第二图像帧;检测到所述预设物体为预设的第二电子设备时,所述第一电子设备与所述第二电子建立连接;所述第二电子设备将正在播放的多媒体内容发送给所述第一电子设备;所述第一电子设备播放所述多媒体内容。
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12或者24中任 一项所述的投屏的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-12或者24中任一项所述的投屏的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110061435.7A CN114860178A (zh) | 2021-01-18 | 2021-01-18 | 一种投屏的方法和电子设备 |
CN202110061435.7 | 2021-01-18 |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2022152174A1 WO2022152174A1 (zh) | 2022-07-21 |
WO2022152174A9 true WO2022152174A9 (zh) | 2022-10-20 |
Family
ID=82446935
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2022/071643 WO2022152174A1 (zh) | 2021-01-18 | 2022-01-12 | 一种投屏的方法和电子设备 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114860178A (zh) |
WO (1) | WO2022152174A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116048245A (zh) * | 2022-08-09 | 2023-05-02 | 荣耀终端有限公司 | 控制方法及装置 |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5766625B2 (ja) * | 2012-01-16 | 2015-08-19 | 株式会社東芝 | カメラ装置 |
JP6304145B2 (ja) * | 2015-06-30 | 2018-04-04 | 京セラドキュメントソリューションズ株式会社 | 情報処理装置、画像形成装置の設定条件指定方法 |
CN110517034A (zh) * | 2018-05-22 | 2019-11-29 | 维沃移动通信有限公司 | 一种对象识别方法及移动终端 |
JP2020008750A (ja) * | 2018-07-10 | 2020-01-16 | セイコーエプソン株式会社 | 表示装置および表示処理方法 |
CN110109636B (zh) * | 2019-04-28 | 2022-04-05 | 华为技术有限公司 | 投屏方法、电子设备以及系统 |
CN110378145B (zh) * | 2019-06-10 | 2022-04-22 | 华为技术有限公司 | 一种分享内容的方法和电子设备 |
CN111447487B (zh) * | 2020-04-02 | 2021-11-12 | 深圳创维-Rgb电子有限公司 | 智慧屏反向投屏方法、系统、智慧屏和可读存储介质 |
CN111901896A (zh) * | 2020-07-14 | 2020-11-06 | 维沃移动通信有限公司 | 信息分享方法、信息分享装置、电子设备及存储介质 |
CN117319369A (zh) * | 2022-06-21 | 2023-12-29 | 华为技术有限公司 | 文件投送方法、电子设备及存储介质 |
-
2021
- 2021-01-18 CN CN202110061435.7A patent/CN114860178A/zh active Pending
-
2022
- 2022-01-12 WO PCT/CN2022/071643 patent/WO2022152174A1/zh active Application Filing
Also Published As
Publication number | Publication date |
---|---|
CN114860178A (zh) | 2022-08-05 |
WO2022152174A1 (zh) | 2022-07-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020259452A1 (zh) | 一种移动终端的全屏显示方法及设备 | |
WO2021000807A1 (zh) | 一种应用程序中等待场景的处理方法和装置 | |
WO2022257977A1 (zh) | 电子设备的投屏方法和电子设备 | |
CN113691842B (zh) | 一种跨设备的内容投射方法及电子设备 | |
WO2022033320A1 (zh) | 蓝牙通信方法、终端设备及计算机可读存储介质 | |
WO2022017393A1 (zh) | 显示交互系统、显示方法及设备 | |
WO2022127632A1 (zh) | 一种资源管控方法及设备 | |
WO2022042770A1 (zh) | 控制通信服务状态的方法、终端设备和可读存储介质 | |
CN113923230A (zh) | 数据同步方法、电子设备和计算机可读存储介质 | |
CN112130788A (zh) | 一种内容分享方法及其装置 | |
WO2022170856A1 (zh) | 建立连接的方法与电子设备 | |
WO2022206764A1 (zh) | 一种显示方法、电子设备和系统 | |
WO2022063159A1 (zh) | 一种文件传输的方法及相关设备 | |
WO2021218544A1 (zh) | 一种提供无线上网的系统、方法及电子设备 | |
WO2022170854A1 (zh) | 视频通话的方法与相关设备 | |
WO2021197071A1 (zh) | 无线通信系统及方法 | |
WO2022206494A1 (zh) | 目标跟踪方法及其装置 | |
WO2022135157A1 (zh) | 页面显示的方法、装置、电子设备以及可读存储介质 | |
WO2022206763A1 (zh) | 一种显示方法、电子设备和系统 | |
WO2022095820A1 (zh) | 一种文本输入的方法、电子设备和系统 | |
WO2022143310A1 (zh) | 一种双路投屏的方法及电子设备 | |
WO2022048453A1 (zh) | 解锁方法及电子设备 | |
WO2022152174A9 (zh) | 一种投屏的方法和电子设备 | |
WO2022062902A1 (zh) | 一种文件传输方法和电子设备 | |
WO2022206762A1 (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: 22739052 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22739052 Country of ref document: EP Kind code of ref document: A1 |