PHOTOGRAPHING METHOD AND ELECTRONIC DEVICE - Patent application

By separating video and photography streams through distinct USB channels, smart screens can achieve ultra-high definition photography without degrading video stream smoothness, addressing resolution limitations and resource constraints.

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

Patent Information

Application Number
JP2023501316
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-10
Filing Date
2021-07-08
Publication Date
2024-10-11
Estimated Expiration
2041-07-08

AI Technical Summary

Technical Problem

Smart screens face challenges in capturing ultra-high definition photos due to limitations in video stream resolution, which is typically 1920×1080, failing to meet user demands for 24 megapixel images, and this is exacerbated by system memory, power consumption, and latency issues.

Method used

The method involves transmitting video and photography streams through separate USB channels, allowing for higher resolution photography streams without compromising the smoothness of the video stream by using different transmission channels for each.

Benefits of technology

This approach enables the capture of ultra-high definition photos while maintaining smooth video previews, reducing hardware costs and power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566124000001
    Figure 0007566124000001
  • Figure 0007566124000002
    Figure 0007566124000002
  • Figure 0007566124000003
    Figure 0007566124000003
Patent Text Reader

Abstract

[0003] The present application discloses a photography method and an electronic device, which relate to the field of terminal technology. The electronic device includes a device body and a camera connected to the device body, the device body including a display. The camera collects video images, obtains a video stream with a first resolution based on the video images, and further obtains a photography stream with a second resolution based on the video images. The video stream and the photography stream are transmitted to the device body via different transmission channels. In this way, to obtain ultra-high-definition photos and ensure clear and smooth preview videos, the video stream can be transmitted at a low resolution and a high transmission rate, and the photography stream can be transmitted at a high resolution and a low transmission rate.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202010664485.X, entitled “PHOTOGRAPHY METHOD AND ELECTRONIC DEVICE,” filed with the State Intellectual Property Office of the People's Republic of China on July 10, 2020, the entire contents of which are incorporated herein by reference.

[0002] The present application relates to the field of terminal technology, and in particular to a photography method and electronic device. [Background technology]

[0003] With the progress of science and technology, smart screens are gradually entering people's lives. Smart screens can also be called smart TVs. In addition to watching various TV programs and videos on the smart screen, users can also take photos, shoot videos, and make video calls on the smart screen. Usually, smart screens include a camera and a device body with a screen. During photo taking, video shooting, video calling, etc., the camera collects images, transmits images to the device body, and presents images to the user on the screen. The single-chip solution used by mobile phones cannot meet the requirements of high-definition decoding and high-quality image processing of smart screens. Therefore, smart screens use a dual-chip architecture. In addition to the master chip, a video processing chip is further disposed, which is used separately for image processing. Usually, the master chip is disposed in the device body, and the video processing chip is disposed in the camera. The video processing chip and the master chip complete data exchange by using a universal serial bus (USB) channel.

[0004] In the prior art, the video processing chip and the master chip exchange data by using a USB video class (UVC) channel. For example, as shown in FIG. 1, during photo-taking preview, the video processing chip obtains images collected by a camera sensor to form a video stream, and transmits the video stream to the master chip via a UVC channel. After rendering the video stream, the master chip may present a photo-taking preview interface on the display. During photo-taking, frames of images are directly captured from the video stream and saved as photos. The resolution of the video stream is the same as the resolution of the photo. Currently, the resolution of the video stream is usually 1920×1080, and the maximum resolution of the saved photo is 1920×1080 (2 megapixels), which cannot meet the user's demand for ultra-high definition photos. In order to obtain a 24 megapixel ultra-high definition photo, the resolution of the video stream transmitted through the UVC channel needs to reach at least 5632×4224, which increases system memory, power consumption, delay, etc., and further increases hardware costs or reduces user experience. Summary of the Invention

[0005] The embodiments of the present application provide a photography method and electronic device, in which the video stream and the photography stream are transmitted separately through different USB channels, so that super-high resolution photos can be obtained, and the real-time performance and smoothness of the video stream can be fully guaranteed. [Means for solving the problem]

[0006] According to a first aspect, an embodiment of the present application provides a photography method applied to an electronic device, the electronic device includes a device body and a camera connected to the device body, the device body includes a display. The method includes: the camera collects a video image, and obtains a video stream of a first resolution based on the video image; the camera transmits the video stream to the device body through a first transmission channel; the device body displays the video stream by using the display; the camera obtains a photography stream of a second resolution based on the collected video image according to the fact that the device body receives a photography command; the camera transmits the photography stream to the device body through a second transmission channel; and the device body obtains a photo based on the photography stream. The second resolution is greater than the first resolution, and the second transmission channel is different from the first transmission channel.

[0007] In a specific embodiment, the device body may include a main processor and a display. The camera may include a sensor and a video processor. Specifically, with respect to the aforementioned units, the method may include: the sensor collects a video image, transmits the video image to the video processor; the video processor obtains a video stream of a first resolution based on the video image, and transmits the video stream to the main processor via a first transmission channel; the main processor displays the video stream by using the display; and in response to the fact that the main processor receives a photographing command, the video processor obtains a photographing stream of a second resolution based on the video image collected by the camera sensor, and transmits the photographing stream to the main processor via a second transmission channel; and the main processor obtains a photograph based on the photographing stream.

[0008] In this method, the video stream and the photo-taking stream are transmitted through different transmission channels, and the resolution of the photo is not limited by the resolution of the preview video. In this way, high-resolution ultra-high definition photos can be obtained and low-resolution preview video is maintained to ensure the smoothness of the preview video.

[0009] Referring to the first aspect, in a possible design method, the camera collecting video images, and obtaining a video stream at a first resolution based on the video images includes the camera collecting a first video image at a second resolution and processing the first video image to obtain a video stream at the first resolution, and the camera obtaining a photography stream at a second resolution based on the collected video images includes the camera obtaining a photography stream at the second resolution based on the first video image.

[0010] In certain embodiments, the method may include a camera sensor collecting a first video image at a second resolution and transmitting the first video image to a video processor, the video processor processing the first video image to obtain a video stream at the first resolution, and the video processor further obtaining a photography stream at the second resolution based on the first video image.

[0011] In this method, the camera collects a video image in high resolution, and obtains a low-resolution video stream and a high-resolution photography stream based on the high-resolution video image.

[0012] Referring to the first aspect, in a possible design method, the camera collecting video images and obtaining a video stream at a first resolution based on the video images includes the camera collecting a second video image at the first resolution and obtaining a video stream at the first resolution based on the second video image. The camera obtaining a photo-taking stream at a second resolution based on the collected video images in response to the device body receiving a photo-taking command includes the camera collecting a first video image at a second resolution and obtaining a photo-taking stream at a second resolution based on the first video image in response to the device body receiving a photo-taking command.

[0013] In certain embodiments, the method may include the camera sensor collecting a second video image at a first resolution and transmitting the second video image to a video processor, the video processor obtaining a video stream at the first resolution based on the second video image, and in response to the main processor receiving a photo capture command, the camera sensor collecting a first video image at the second resolution and transmitting the first video image to the video processor, and the video processor obtaining a photo capture stream at the second resolution based on the first video image.

[0014] In this method, during photo-taking preview, the camera collects video images at a low resolution and obtains a low-resolution video stream based on the video images, and during photo-taking, the camera collects video images at a high resolution and obtains a high-resolution photo-taking stream based on the video images.

[0015] Referring to the first aspect, in a possible design method, the camera acquiring the second resolution photography stream based on the first video image includes the camera capturing images of one or more frames of the first video image to form the photography stream. In a particular implementation, this step may be completed by a video processor of the camera.

[0016] Referring to the first aspect, in a possible design method, the camera transmits a video stream to the device body through a first transmission channel at a first transmission rate, and the camera transmits a photo-taking stream to the device body through a second transmission channel at a second transmission rate, the second transmission rate being smaller than the first transmission rate. In this way, the smoothness of the preview interface can be guaranteed. In a specific implementation, this step can be completed by the video processor of the camera.

[0017] Referring to the first aspect, in a possible design method, the method further includes the camera acquiring an artificial intelligence AI stream at a third resolution based on the collected video images, the third resolution being smaller than the first resolution, and the camera performing image enhancement processing on the collected video images based on the AI ​​stream. In a particular embodiment, the video images may be collected by a camera sensor. The video processor acquires an AI stream at the third resolution based on the video images collected by the camera sensor, and performs image enhancement processing on the video images collected by the camera sensor based on the AI ​​stream.

[0018] The low-resolution AI stream can be transmitted at a high transmission rate, which allows AI computing to be performed quickly, and image enhancement processing can be performed on the video image to improve the preview interface and photo quality.

[0019] Referring to the first aspect, in a possible design method, the camera and the device body are connected to each other by using a universal serial bus USB. Specifically, the video processor of the camera is connected to the main processor of the device body by using the universal serial bus USB.

[0020] According to a second aspect, an embodiment of the present application provides a photography method applied to an electronic device. The electronic device includes a display, a camera sensor, a video processor, and a main processor. The method includes: the camera sensor collects a video image, transmits the video image to the video processor; the video processor obtains a video stream of a first resolution based on the video image, and transmits the video stream to the main processor through a first transmission channel; the main processor displays the video stream by using the display; and in response to the fact that the main processor receives a photography command, the video processor obtains a photography stream of a second resolution based on the video image collected by the camera sensor, and transmits the photography stream to the main processor through a second transmission channel; and the main processor obtains a photo based on the photography stream. The second resolution is greater than the first resolution.

[0021] In this method, the video stream and the photo capture stream are transmitted through different transmission channels, and the resolution of the photo is not limited by the resolution of the preview video. In this way, high-resolution ultra-high definition photos can be obtained and low-resolution preview videos can be maintained to ensure the smoothness of the preview video.

[0022] Referring to the second aspect, in a possible design method, the camera sensor collects a first video image at a second resolution, transmits the first video image to a video processor, and the video processor processes the first video image to obtain a video stream at the first resolution, and the video processor further obtains a photography stream at the second resolution based on the first video image. In this method, the camera sensor obtains a video image at a high resolution. The video processor obtains a low-resolution video stream and a high-resolution photography stream based on the high-resolution video image.

[0023] Referring to the second aspect, in a possible design method, the camera sensor collects a second video image with a first resolution, and the video processor obtains a video stream with the first resolution based on the second video image, and in response to the fact that the main processor receives a photography command, the camera sensor collects a first video image with a second resolution, transmits the first video image to the video processor, and the video processor obtains a photography stream with the second resolution based on the first video image. In this method, during photography preview, the camera sensor collects a video image with a low resolution, and the video processor obtains a video stream with the low resolution based on the video image. During photography, the camera collects a video image with a high resolution, and the video processor obtains a photography stream with the high resolution based on the video image.

[0024] Referring to the second aspect, in a possible design approach, a video processor captures images of one or more frames of a first video image to form a photography stream.

[0025] Referring to the second aspect, in a possible design method, the video processor transmits a video stream to the main processor through a first transmission channel at a first transmission rate, and the video processor transmits a photo-taking stream to the main processor through a second transmission channel at a second transmission rate, the second transmission rate being smaller than the first transmission rate. In this way, the smoothness of the preview interface can be guaranteed.

[0026] Referring to the second aspect, in a possible design method, the video processor obtains an artificial intelligence AI stream of a third resolution based on the video image collected by the camera sensor, the third resolution is smaller than the first resolution, and the video processor performs image enhancement processing on the collected video image based on the AI ​​stream. The low-resolution AI stream can be transmitted at a high transmission rate, so that AI computing can be performed quickly, and image enhancement processing can be performed on the video image to improve the quality of the preview interface and photos.

[0027] According to a third aspect, an embodiment of the present application provides a photography method. The method may include: an electronic device displays a photography preview interface in a first resolution; and the electronic device acquires a photo of a second resolution in response to receiving a photography command from a user. The second resolution is greater than the first resolution. In the method, the resolution of the photo acquired by the electronic device is greater than the resolution of the preview video. In order to ensure the smoothness of the preview video, a low-resolution preview video may be maintained while a high-definition photo is acquired.

[0028] Referring to a third aspect, in a possible design method, an electronic device collects a first video image in a second resolution, compresses the first video to the first resolution to obtain a video stream, and the electronic device displays the video stream in a photo-taking preview interface, and the electronic device obtains a photo-taking stream based on the first video image, and the electronic device obtains a photo based on the photo-taking stream. In this way, a video stream of the first resolution and a photo-taking stream of the second resolution are obtained.

[0029] Referring to a third aspect, in a possible design method, the electronic device collects a second video image at a first resolution, the electronic device acquires a video stream based on the second video stream, the electronic device displays the video stream in a photo-taking preview interface, and in response to receiving a photo-taking command from a user, the electronic device collects a first video image at a second resolution, the electronic device acquires a photo-taking stream based on the first video image, and the electronic device acquires a photo based on the photo-taking stream. In this way, a video stream at a first resolution and a photo-taking stream at a second resolution are acquired.

[0030] Referring to a third aspect, in a possible design method, the electronic device captures images of one or more frames of a first video image to form a photography stream.

[0031] Referring to the third embodiment, in a possible design method, the video stream and the photo stream are transmitted through different transmission channels. In this way, the video stream and the photo stream can be transmitted at different resolutions and different transmission rates.

[0032] Referring to the third aspect, in a possible design method, the transmission rate of the video stream is greater than the transmission rate of the photography stream, which ensures the smoothness of the video stream.

[0033] Referring to the third aspect, in a possible design method, the method further includes: the electronic device obtains an artificial intelligence AI stream of a third resolution based on the collected video image, the third resolution being smaller than the first resolution; and the electronic device performs image enhancement processing on the collected video image based on the AI ​​stream. The low-resolution AI stream can be transmitted at a high transmission rate, so that AI computing can be performed quickly, and image enhancement processing can be performed on the video image to improve the quality of the preview interface and photos.

[0034] According to a fourth aspect, an embodiment of the present application provides an electronic device. The electronic device includes a device body and a camera connected to the device body, the device body including a display. The camera is configured to collect video images and obtain a video stream of a first resolution based on the video images, and is further configured to transmit the video stream to the device body via a first transmission channel. The device body is configured to display the video stream by using the display, and is further configured to receive a picture-taking command. The camera is further configured to obtain a picture-taking stream of a second resolution based on the collected video images, the second resolution being greater than the first resolution, in response to the fact that the device body has received the picture-taking command. The camera is further configured to transmit the picture-taking stream to the device body via a second transmission channel, the second transmission channel being different from the first transmission channel. The device body is further configured to obtain a picture based on the picture-taking stream.

[0035] Referring to a fourth aspect, in a possible design method, the camera is specifically configured to collect a first video image at a second resolution, the camera is specifically further configured to process the first video image to obtain a video stream at the first resolution, and the camera is specifically further configured to obtain a photography stream at the second resolution based on the first video image.

[0036] Referring to a fourth aspect, in a possible design method, the camera is specifically configured to collect a second video image at a first resolution and obtain a video stream at the first resolution based on the second video image, and the camera is specifically further configured to collect a first video image at the second resolution and obtain a photo capture stream at the second resolution based on the first video image in response to the fact that the device body has received a photo capture command.

[0037] Referring to a fourth aspect, in a possible design method, the camera acquiring a photography stream at a second resolution based on a first video image includes the camera capturing images of one or more frames of the first video image to form the photography stream.

[0038] Referring to a fourth aspect, in a possible design method, the camera is specifically configured to transmit a video stream to the device body at a first transmission rate via a first transmission channel, and the camera is specifically further configured to transmit a photo capture stream to the device body at a second transmission rate via a second transmission channel, the second transmission rate being smaller than the first transmission rate.

[0039] Referring to a fourth aspect, in a possible design method, the camera is further configured to obtain an artificial intelligence AI stream of a third resolution based on the collected video images, and perform image enhancement processing on the collected video images based on the AI ​​stream, the third resolution being smaller than the first resolution.

[0040] Referring to the fourth embodiment, in a possible design method, the camera and the device body are connected to each other by using a Universal Serial Bus USB.

[0041] According to a fifth aspect, an embodiment of the present application provides an electronic device. The electronic device includes a display, a camera sensor, a video processor, and a main processor. The camera sensor is configured to collect video images. The camera sensor is further configured to transmit the video images to the video processor. The video processor is configured to obtain a video stream of a first resolution based on the video images, and is further configured to transmit the video stream to the main processor via a first transmission channel. The display is configured to display the video stream. The main processor is further configured to receive a picture taking command. The video processor is configured to obtain a picture taking stream of a second resolution based on the video images collected by the camera sensor, in response to the fact that the main processor has received the picture taking command, the second resolution being greater than the first resolution. The video processor is further configured to transmit the picture taking stream to the main processor via the second transmission channel. The main processor is further configured to obtain a picture based on the picture taking stream. The second transmission channel is different from the first transmission channel.

[0042] Referring to a fifth aspect, in a possible design method, the camera sensor is specifically configured to collect a first video image at a second resolution, the video processor is specifically configured to process the first video image to obtain a video stream at the first resolution, and the video processor is specifically further configured to obtain a photography stream at the second resolution based on the first video image.

[0043] Referring to the fifth aspect, in a possible design method, the camera sensor is specifically configured to collect a second video image at a first resolution, and the video processor is specifically configured to acquire a video stream at the first resolution based on the second video image, and the camera sensor is specifically further configured to collect the first video image at the second resolution and transmit the first video image to the video processor in response to the fact that the main processor has received a photo capture command, and the video processor is specifically configured to acquire a photo capture stream at the second resolution based on the first video image.

[0044] Referring to a fifth aspect, in a possible design method, the video processor obtaining a photography stream at a second resolution based on a first video image specifically includes the video processor capturing images of one or more frames of the first video image to form the photography stream.

[0045] Referring to the fifth aspect, in a possible design method, the video processor is specifically configured to transmit the video stream to the main processor at a first transmission rate via a first transmission channel, and the video processor is specifically further configured to transmit the photo capture stream to the main processor at a second transmission via a second transmission channel, the second transmission rate being smaller than the first transmission rate.

[0046] Referring to a fifth aspect, in a possible design method, the video processor is further configured to obtain an artificial intelligence AI stream of a third resolution based on video images collected by the camera sensor, the third resolution being smaller than the first resolution, and the video processor is further configured to perform image enhancement processing on the video images collected by the camera sensor based on the AI ​​stream.

[0047] Referring to the fifth embodiment, in a possible design method, the video processor and the main processor are connected to each other by using a universal serial bus USB.

[0048] According to a sixth aspect, an embodiment of the present application provides an electronic device. The electronic device may implement the photography method according to the first aspect, the second aspect, or the third aspect, and possible designs of the first aspect, the second aspect, or the third aspect. The electronic device may implement the method by using software, hardware, or hardware executing corresponding software. In a possible design, the electronic device may include a processor and a memory. The processor is configured to support the electronic device in performing corresponding functions in the method of the first aspect, the second aspect, or the third aspect. The memory is coupled to the processor and configured to store program instructions and data required for the electronic device.

[0049] According to a seventh aspect, an embodiment of the present application provides a computer readable storage medium. The computer readable storage medium includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device is capable of performing a photography method according to the first aspect, the second aspect, or the third aspect, and possible designs of the first aspect, the second aspect, or the third aspect.

[0050] According to an eighth aspect, an embodiment of the present application provides a computer program product, which when executed on a computer enables the computer to perform a photography method according to the first aspect, the second aspect or the third aspect and possible designs of the first aspect, the second aspect or the third aspect.

[0051] For technical effects provided by the electronic device according to the fourth aspect, the electronic device according to the fifth aspect, the electronic device according to the sixth aspect, the computer-readable storage medium according to the seventh aspect, and the computer program product according to the eighth aspect, please refer to the technical effects provided by the corresponding methods described above, and details will not be described again here. [Brief description of the drawings]

[0052] [Figure 1] FIG. 1 is a schematic diagram of a photography method in the prior art. [Diagram 2] FIG. 2 is a schematic diagram of a hardware structure configuration of an electronic device according to an embodiment of the present application. [Diagram 3] FIG. 1 is a schematic diagram of a photography method according to an embodiment of the present application. [Figure 4] FIG. 2 is a schematic diagram of a photography method according to an embodiment of the present application. [Figure 5A-1] 1 is a flowchart 1 of a photography method according to an embodiment of the present application. [Figure 5A-2] 1 is a flowchart 1 of a photography method according to an embodiment of the present application. [Figure 5A-3] 1 is a flowchart 1 of a photography method according to an embodiment of the present application. [Figure 5B-1] 2 is a flow chart 2 of a photography method according to an embodiment of the present application. [Figure 5B-2] 2 is a flow chart 2 of a photography method according to an embodiment of the present application. [Figure 5B-3] 2 is a flow chart 2 of a photography method according to an embodiment of the present application. [Figure 6A] 1 is a schematic diagram of an example of a display interface of an electronic device according to an embodiment of the present application. [Figure 6B] 1 is a schematic diagram of an example of a display interface of an electronic device according to an embodiment of the present application. [Figure 7A] 2 is a schematic diagram of an example of a display interface of an electronic device according to an embodiment of the present application. [Figure 7B] 2 is a schematic diagram of an example of a display interface of an electronic device according to an embodiment of the present application. [Figure 7C] 2 is a schematic diagram of an example of a display interface of an electronic device according to an embodiment of the present application. [Figure 8] FIG. 1 is a schematic diagram of a structural configuration of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0053] The photographing method provided in the embodiment of the present application, which is transmitted between any camera and device body based on the USB dual stack architecture, can be applied to an electronic device. For example, the electronic device may be a smart screen (also called a big screen or smart TV), a personal computer (PC), a notebook computer, or a smart home appliance. The specific form of the electronic device 100 is not specifically limited in the embodiment of the present application.

[0054] 2 is a schematic diagram of the structure of an electronic device 100 according to an embodiment of the present application. The electronic device 100 may include a device body 110 and a camera 120. The device body 110 includes a main processor 111, a video processor 122, a memory 112, an audio module 113, a speaker 113A, a display 114, a wireless communication module 115, an interface module 116, a power module 117, and a camera 120, etc. The camera 120 includes a sensor 121 and a video processor 122.

[0055] In some embodiments, camera 120 may pop up. Camera 120 may pop up away from device body 110, or camera 120 may retract into device body 110. Optionally, video processor 122 may be located within camera 120 and may move away from device body 110 when camera 120 pops up. Optionally, video processor 122 may be located within device body 110 and does not pop up or retract with camera 120, i.e., the pop-up and retraction of camera 120 are synonymous with the pop-up and retraction of sensor 121.

[0056] It may be understood that the structure shown in this embodiment of the invention does not constitute a particular limitation on the electronic device 100. In some other embodiments of the present application, the electronic device 100 may include more or fewer components than those shown in the figures, or some components may be combined, or some components may be divided, or a different arrangement of components may be used. The components shown in the figures may be implemented using hardware, software, or a combination of software and hardware.

[0057] The main processor 111 may include one or more processors. For example, the main processor 111 may include an application processor, a graphics processing unit (GPU), a controller, a video codec, and / or a digital signal processor (DSP), etc. The different processors may be independent components or may be integrated into one or more processors. For example, the functions of the main processor 111 may be implemented by an integrated main chip.

[0058] The controller may be the brain and command center of the electronic device 100. The controller may generate operation control signals based on the instruction operation codes and time series signals to complete the control of instruction fetching and instruction execution.

[0059] The operating system of the electronic device 100 may be installed on an application processor and configured to manage the hardware and software resources of the electronic device 100, for example, managing and configuring memory, prioritizing the supply and request of system resources, managing the file system, and managing drivers. The operating system may also be configured to provide an operating interface for a user to interact with the system. Various types of software, such as drivers and applications (Apps), may be installed on the operating system. For example, Apps such as "Camera", "Clock", "Fitness", and "Video" may be installed on the operating system.

[0060] The digital signal processor is configured to process digital signals, and may process other digital signals in addition to digital image signals.

[0061] A video codec is configured to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this manner, electronic device 100 may play video in multiple encoding formats.

[0062] The graphics processing unit is used to perform image and graphics related operations.

[0063] The memory 112 is configured to store instructions and data. In some embodiments, the memory 112 is a cache memory. The memory may store instructions or data that have just been used or are used periodically by the main processor 111. When the main processor 111 needs to use the instructions or data again, the main processor may retrieve the instructions or data directly from the memory 112. This avoids repeated accesses, reduces the latency of the main processor 111, and improves system efficiency.

[0064] In some embodiments, memory 112 may alternatively be located within main processor 111, i.e., main processor 111 includes memory 112. This is not a limitation in this embodiment of the present application.

[0065] The audio module 113 is configured to convert digital audio information to analog audio signals for output, and is also configured to convert analog audio input to digital audio signals. The audio module 113 may be further configured to encode and decode audio signals. In some embodiments, the audio module 113 may be located within the main processor 111, or some functional modules within the audio module 113 are located within the main processor 111.

[0066] Speaker 113A, also referred to as a "loudspeaker," is configured to convert audio electrical signals into speech signals.

[0067] The electronic device 100 may implement audio functions, such as by using an audio module 113, a speaker 113A, and an application processor for sound reproduction.

[0068] The electronic device 100 may perform display functions by a GPU, a display 114, an application processor, etc. The GPU is a microprocessor for image processing and is connected to the display 114 and the application processor. The GPU is configured to perform mathematical and geometric operations and render images. The main processor 111 may include one or more GPUs that execute program instructions to generate or modify display information.

[0069] The display 114 is configured to display images, videos, and the like. The display 114 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, MicroLed, Micro-oLed, or a quantum dot light emitting diode (QLED), and the like. In this embodiment of the present application, the display 114 may be configured to display an App interface, a photo-taking preview interface, and a photo, and the like.

[0070] The electronic device 100 may implement the picture-taking function by using a video processor 122, a camera 120, a video codec, a GPU, a display 114, an application processor, and the like.

[0071] The wireless communication module 115 may provide solutions applied to the electronic device 100, including wireless communication such as wireless local area network (WLAN) (e.g., wireless fidelity (WiFi) network), Bluetooth (BT), frequency modulation (FM), and infrared (IR) technology. The wireless communication module 115 may be one or more components incorporating at least one communication processing module. The wireless communication module 115 receives electromagnetic waves through an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the main processor 111.

[0072] The interface module 116 may include a network cable interface, a USB interface, an audio output interface, a high definition multimedia interface (HDMI), and a memory card interface, etc. A network cable can be inserted into the network cable interface. One end of the network cable is inserted into the network cable interface of the electronic device 100, and the other end is inserted into the wired network interface, that is, the electronic device 100 accesses the wired network. The USB interface is an interface that complies with the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, or a USB Type C interface, etc. The USB interface may be configured to transmit data between the electronic device 100 and a peripheral device. For example, the electronic device 100 may be connected to an external storage device, an external camera, a game console, etc. through the USB interface. The audio output interface of the device is configured to connect to an external audio device, for example to connect to a speaker. HDMI is a full digital video and audio transmission interface, and may transmit uncompressed audio and video signals simultaneously. For example, electronic device 100 may be connected to a device, such as a wired set-top box, a network set-top box, or a speaker, via the HDMI interface. The memory card interface is configured to connect to an external memory card, such as a Micro SD card, to expand the storage capabilities of electronic device 100.

[0073] The power module 117 may be configured to provide power to each of the components included in the electronic device 100 .

[0074] The camera 120 may be configured to capture still images or videos. An optical image of an object is generated through a lens and projected onto the sensor 121. The sensor 121 may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The sensor 121 converts an optical signal into an electrical signal, which then transmits the electrical signal to the video processor 122 for converting the electrical signal into a digital image signal. The video processor 122 outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, such as RGB or YUV. The video processor 122 is configured to process the data fed back by the sensor 121. For example, during photography, a shutter is pressed and light is transmitted to the sensor 121 through a lens. The optical signal is converted into an electrical signal, which the sensor 121 transmits to the video processor 122 for processing to convert the electrical signal into a visible image. The video processor 122 may further perform algorithmic optimizations for image noise, brightness, and color tone. The video processor 122 may further optimize parameters such as exposure and color temperature for the photography scenario.

[0075] Typically, the electronic device 100 includes a remote control. The remote control is used to control the electronic device 100. For example, as shown in FIG. 2, the remote control 200 may include multiple buttons, such as an up button 201, a down button 202, a left button 203, a right button 204, an OK button 205, a menu button 206, and a power button 207. The buttons of the remote control 200 may be mechanical buttons or touch buttons. The remote control 200 may receive button inputs, generate button signal inputs related to user settings and function control of the electronic device 100, and transmit corresponding signals to the electronic device 100 to control the electronic device 100. For example, when a user presses the up button 201, the down button 202, the left button 203, the right button 204, the OK button 205, the menu button 206, or the power button 207, the buttons may transmit corresponding signals to the electronic device 100 in a manner such as Bluetooth or infrared. When the electronic device 100 receives a signal corresponding to a button by using the wireless communication module 115 (e.g., Bluetooth or IR), the electronic device 100 may perform a corresponding operation based on the signal. For example, when the electronic device 100 receives a signal corresponding to the up button 201, the focus of the display interface of the electronic device 100 may be triggered to move in an upward direction. When the electronic device 100 receives a signal corresponding to the down button 202, the focus of the display interface of the electronic device 100 may be triggered to move in a downward direction. When the electronic device 100 receives a signal corresponding to the left button 203, the focus of the display interface of the electronic device 100 may be triggered to move in a left direction. When the electronic device 100 receives a signal corresponding to the right button 204, the focus of the display interface of the electronic device 100 may be triggered to move in a right direction. When the electronic device 100 receives a signal corresponding to the OK button 205, the focus of the display interface of the electronic device 100 may be triggered to be selected.When electronic device 100 receives a signal corresponding to menu button 206, electronic device 100 may be triggered to display a menu page (e.g., display a home camera settings interface). When electronic device 100 receives a signal corresponding to power button 207, electronic device 100 may be triggered to power on or power off.

[0076] It can be understood that the remote control 200 may further include other buttons and components, such as a home button, a volume button, a back button, a Bluetooth interface, an infrared interface, and a battery storage cavity (used to install a battery and power the remote control), etc. In this embodiment of the present application, details will not be described.

[0077] In some embodiments, the camera 120 is connected to the device body 110 via a USB interface. In one example, the video processor 122 of the camera 120 and the main processor 111 of the device body 110 are connected via a USB interface. In some embodiments, as shown in FIG. 3, the USB transmission channel between the video processor 122 and the main processor 111 adopts a dual-stack architecture. For example, there are two transmission channels between the video processor 122 and the main processor 111. One transmission channel is based on the UVC protocol, and the other transmission channel is based on the remote network driver interface specification (RNDIS). In one implementation, during photo-taking preview, the camera 120 transmits a preview video stream to the main processor 111 via a first transmission channel (e.g., UVC channel) for rendering. During photo-taking, the photo-taking stream is transmitted to the main processor 111 via a second transmission channel (e.g., RNDIS channel) for storage. For example, the UVC channel transmits a low-resolution video stream to reduce delay and obtain a better real-time experience. The RNDIS channel carries a high-resolution photography stream to obtain high-resolution photos.

[0078] According to the photographing method provided in this embodiment of the present application, the video stream and the photographing stream are transmitted through different transmission channels of the USB interface.In this way, the video stream can be transmitted at low resolution and high transmission rate, and the photographing stream can be transmitted at high resolution and low transmission rate.Under the condition of not increasing hardware cost, the super high definition photograph can be obtained with low memory and power consumption without affecting the frame rate and real-time performance of the video stream.

[0079] In some embodiments, as shown in FIG. 4, the video processor 122 includes a video input (VI) processing unit 401, a video process subsystem (VPSS) 402, an enhancement algorithm unit 403, and an artificial intelligence (AI) processing unit 404.

[0080] The camera sensor 121 collects video images to form preview image data. The VI processing unit 401 pre-processes the preview image data to obtain a preview video stream. For example, the pre-processing may include processes such as filtering and noise reduction, target enhancement, and image segmentation.

[0081] The VPSS 402 obtains a video stream and a photography stream based on the preview video stream. Optionally, an AI stream may be further obtained based on the preview video stream. The video stream is used for photography preview. The photography stream is used for acquiring photos. The AI ​​stream is used for artificial intelligence computing, such as face recognition. For example, the electronic device may perform face recognition based on the AI ​​stream, and then perform skin beautification, face beautification, or other image processing on the face in the video stream based on the result of the face recognition. The resolutions and transmission rates of the video stream, the photography stream, and the AI ​​stream are separately configured by the VPSS 402. In one example, the video stream uses a first resolution and a first transmission rate, the photography stream uses a second resolution and a second transmission rate, and the AI ​​stream uses a third resolution and a third transmission rate. In one embodiment, the first resolution is smaller than the second resolution and larger than the third resolution, and the first transmission rate is equal to the third transmission rate and larger than the second transmission rate. For example, the first resolution is 2560×1920, the first transmission rate is 30 fps (frames per second), the second resolution is 5632×4224, the second transmission rate is 2 fps, the third resolution is 1920×1080, and the third transmission rate is 30 fps.

[0082] In one embodiment, during photo-taking preview, the camera sensor collects video images at a second resolution to obtain a preview video stream. The VPSS 402 compresses the resolution of the preview video stream to a first resolution to form a video stream, encodes the video stream by using a video encoding method, and sends the video stream to the main processor at a first transmission rate through a first transmission channel (e.g., UVC channel). The main processor renders the decoded video stream to complete the photo-taking preview. For example, the video encoding method may include H265 and H264, etc. In this way, the video stream is transmitted at a low resolution and a high transmission rate to ensure the clarity and smoothness of the video stream.

[0083] In one embodiment, during taking a picture, the VPSS 402 captures images of one or more frames in the preview video stream to form a photography stream. The enhancement algorithm unit 403 performs image enhancement processing on the photography stream by using an image enhancement algorithm, encodes the photography stream obtained after the image enhancement processing by using an image encoding method, and sends the photography stream to the main processor at a second transmission rate through a second transmission channel (e.g., an RNDIS channel). The main processor stores the decoded photography stream to complete the photography. For example, the image enhancement algorithm may include a histogram equalization algorithm, a grayscale conversion algorithm, an image smoothing algorithm, and an image sharpening algorithm, etc. The image encoding method may include motion joint photographic experts group (MJPEG) and joint photographic experts group (JPEG), etc. In this way, a high resolution is used for the photography stream, so that an ultra-high definition photograph can be obtained. In addition, the photography stream is only obtained during photography to save memory and reduce power consumption.

[0084] In one embodiment, the VPSS 402 captures an image of one or more frames of the preview video stream and compresses the resolution of the image to a third resolution to form an AI stream. The AI ​​processing unit 404 performs AI processing (e.g., face recognition) based on the AI ​​stream. In one embodiment, the VI processing unit 401 pre-processes the preview image data based on the calculation result of the AI ​​processing unit 404. For example, the VI processing unit 401 adjusts the overall exposure of the image based on the face data calculated by the AI ​​processing unit 404 to improve the brightness of the face. Pre-processing the preview image data based on the calculation result of the AI ​​processing unit 404 improves the impression of the preview video and photo and improves the user experience. The AI ​​stream is transmitted at a low resolution and a high transmission rate, which can improve the AI ​​computing speed and real-time performance.

[0085] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, the photography method and electronic device provided in the embodiments of the present application will be described in detail with reference to the accompanying drawings.

[0086] An embodiment of the present application provides a photography method. As shown in Figures 5A-1 to 5A-3, the method may include the following steps:

[0087] S501: Receive a command from the user to open the camera app.

[0088] In one embodiment, an electronic device (e.g., a smart screen) receives an operation by a user to open a camera app. For example, a user opens a "Family Camera" app on the smart screen. As shown in FIG. 6A and FIG. 6B, the smart screen displays an "All Apps" interface 601. The "All Apps" interface 601 includes a "Family Camera" icon 602, and a user may select the "Family Camera" icon 602 to open the "Family Camera" app. The smart screen may receive a selection operation performed by the user on the "Family Camera" icon 602. The smart screen receiving a selection operation performed by the user on the "Family Camera" icon 602 means receiving an operation by the user to open the camera app.

[0089] In one example, the smart screen displays an "All Apps" interface 601, and the focus is on the first icon "AI Fitness". The user may move the focus to the right by pressing the right button (e.g., the right button 204 shown in FIG. 2) of the remote control (e.g., the remote control 200 shown in FIG. 2). When the focus is on the "Family Camera" icon 602, the user presses the OK button (e.g., the OK button 205 shown in FIG. 2) of the remote control (e.g., the remote control 200 shown in FIG. 2). The smart screen receives a signal corresponding to the OK button 205, i.e., a selection operation made by the user on the "Family Camera" icon 602, by using the wireless communication module 115 (e.g., Bluetooth).

[0090] In response to receiving a selection operation made by a user on the "Family Camera" icon 602, the smart screen displays a "Photo Capture Preview" interface 603. The "Photo Capture Preview" interface 603 may include, but is not limited to, a "Photo" option 604, a "Video" option 605, and a "Photo Frame" option 606, etc. The "Photo" option 604 is used to start taking a photo, the "Video" option 605 is used to start recording a video, and the "Photo Frame" option 606 is used to switch between photo frames.

[0091] In one example, the "All Apps" interface 601 further includes a "Family Album" icon 607. A user may select the "Family Album" icon 607 to open the family album and view photos stored on the smart screen. For example, a user may select the "Photo" option 604 to start taking a photo, and the smart screen takes a photo and saves the photo. A user may open the family album to view the photos taken.

[0092] It should be noted that in this embodiment of the present application, an example of a remote control controlling a smart screen is used for explanation. In this embodiment of the present application, it can be understood that the electronic device may be controlled in other ways. For example, a mobile phone App may be used to open a camera App of the electronic device, start taking pictures, and move the focus on the display. Alternatively, the camera App of the electronic device may be opened by voice control to start taking pictures, etc. The specific way of controlling the electronic device (e.g., opening a camera App and starting taking pictures) is not limited in this embodiment of the present application.

[0093] S502: In response to receiving an instruction to open the camera app by the user, the camera app sends a first preview instruction to the UVC channel and sends a second preview instruction to the RNDIS channel.

[0094] In one embodiment, the camera app transmits a first preview command to the UVC channel in response to receiving an operation of opening the camera app by a user, and the first preview command is used to command the camera app to start a photo-taking preview. In one embodiment, the first preview command includes a first resolution. The camera app transmits a second preview command to the RNDIS channel, and the second preview command is used to command the camera app to start a photo-taking preview. In one embodiment, the second preview command includes a second resolution. It may be understood that the camera app is installed in the operating system of the main processor. The camera app transmits the first preview command to the UVC channel, which means that the main processor transmits the first preview command to the UVC channel. The camera app transmits the second preview command to the RNDIS channel, which means that the main processor transmits the second preview command to the RNDIS channel.

[0095] In one embodiment, the first resolution and the second resolution are default values, for example, the first resolution is a first default value (e.g., 2560×1440) and the second resolution is a second default value (e.g., 5632×3168).

[0096] In one embodiment, the values ​​of the first resolution and the second resolution may be changed based on a selection by a user. In one example, as shown in FIG. 7A-7C, the smart screen displays a "take photo preview" interface 603. In this interface, a signal corresponding to a user pressing a menu button (e.g., menu button 206 shown in FIG. 2) of a remote control (e.g., remote control 200 shown in FIG. 2) is received. In response to receiving the signal corresponding to the menu button, the smart screen displays a "family camera settings" interface 701. The "family camera settings" interface 701 may include a "photo resolution" option 702, which is used to set a resolution at which a photo is taken by the camera. The smart screen may receive a selection operation by a user on the "photo resolution" option 702, and in response to a selection operation by a user on the "photo resolution" option 702, display a "photo resolution" interface 703. The "photo resolution" interface 703 may include multiple resolution options. For example, the "Photo Resolution" interface 703 may include an "18MP" option 704, a "4MP" option 705, a "24MP" option 706, and a "6MP" option 707, which correspond to 18 megapixels, 4 megapixels, 24 megapixels, and 6 megapixels, respectively. In one example, the default option of the smart screen is the "18MP" option 704, which indicates that the photo is taken by using 18 megapixels with an aspect ratio of 16:9. The corresponding second resolution may be 5632×3168, and the corresponding first resolution may be 2560×1440. For example, the smart screen receives a selection operation made by a user for the "24MP" option 706, which indicates that the photo is taken by using 24 megapixels with an aspect ratio of 4:3, and the corresponding second resolution is 5632×4224. In response to receiving a user selection operation for the "24MP" option 706, the smart screen determines that the second resolution is 5632x4224.The smart screen determines a value of a first resolution, the first resolution being smaller than the second resolution, for example, the first resolution may be 2560×1980.

[0097] S503: The UVC channel sends a first preview command to the VI processing unit, and the RNDIS channel sends a second preview command to the VI processing unit.

[0098] S504: The VI processing unit sends a third preview command to the camera sensor.

[0099] The VI processing unit receives a first preview instruction and obtains a first resolution based on the first preview instruction, and the VI processing unit receives a second preview instruction and obtains a second resolution based on the second preview instruction.

[0100] The VI processing unit sends a third preview instruction to the camera sensor, the third preview instruction is used to instruct the camera sensor to start a picture taking preview. In one embodiment, the third preview instruction includes a second resolution.

[0101] S505: The camera sensor starts a photo capture preview and collects video images.

[0102] The camera sensor receives a third preview command to initiate a preview photograph.In one embodiment, the camera sensor collects video images at a second resolution to form preview image data.

[0103] S506: The camera sensor sends preview image data to the VI processing unit.

[0104] S507: The VI processing unit obtains a preview video stream based on the preview image data.

[0105] The VI processing unit receives the preview image data and pre-processes the preview image data to obtain a preview video stream. For example, the VI processing unit may perform processing on the preview image data, such as filtering and noise reduction, target enhancement, and image segmentation. For example, the VI processing unit adjusts the overall exposure of the preview image data based on the face data calculated by the AI ​​processing unit to improve the brightness of faces in the image.

[0106] S508: The VI processing unit sends a fourth preview command to the VPSS.

[0107] The fourth preview instruction is used to instruct to start a picture taking preview. In one embodiment, the fourth preview instruction includes a first resolution and a second resolution.

[0108] S509: The VI processing unit sends the preview video stream to the VPSS.

[0109] S50a: The VPSS obtains a video stream based on the preview video stream, and sends the video stream to a UVC channel.

[0110] In one embodiment, the VPSS receives a preview video stream, where the preview video stream has a resolution of a second resolution, the VPSS compresses the resolution of the preview video stream to a first resolution to form a video stream, and transmits the video stream to a UVC channel.

[0111] S50b: The video stream is sent to the Camera App via the UVC channel.

[0112] The video stream has a first resolution. In one embodiment, the video stream is transmitted to the camera App via a UVC channel at a first transmission rate.

[0113] S50c: The Camera App renders and plays the video stream.

[0114] The camera App receives the video stream, and the main processor renders the video stream. The main processor uses the display to play the rendered video stream, i.e., displays a photo-taking preview interface. The resolution of the photo-taking preview interface is a first resolution.

[0115] S50d: A user's command to take a picture is received.

[0116] In one embodiment, the smart screen receives a user's photo taking operation. For example, the smart screen displays a "photo taking preview" interface 603 shown in FIG. 6A and FIG. 6B. The "photo taking preview" interface 603 includes a "photo" option 604, and a user may select the "photo" option 604 to start taking a photo. The smart screen may receive a selection operation performed by the user on the "photo" option 604. The smart screen receiving a selection operation performed by the user on the "photo" option 604 means receiving a user's photo taking operation.

[0117] It can be understood that the user can also send the photo taking command by a method such as a mobile phone App or voice, which is not limited in this embodiment of the present application.

[0118] S50e: In response to receiving the user's command to take a picture, the camera App transmits the command to take a picture to the RNDIS channel.

[0119] In one embodiment, the camera App (main processor) transmits a picture taking command to the RNDIS channel in response to receiving a user's picture taking operation. In one embodiment, the picture taking command includes a second resolution.

[0120] S50f: The RNDIS channel transmits a photo taking command to the VPSS.

[0121] S50g: The VPSS obtains a photography stream based on the preview video stream.

[0122] After receiving the photo-taking command, the VPSS captures images of one or more frames of the preview video stream to form a photo-taking stream. The resolution of the preview video stream and the resolution of the photo-taking stream are a second resolution. It can be understood that the camera sensor continuously collects images during the preview to form the preview video stream. After receiving the photo-taking command, the VPSS captures images of one or more frames of the current preview video stream to form a photo-taking stream.

[0123] S50h: VPSS transmits the picture taking stream to the RNDIS channel.

[0124] In one embodiment, after image enhancement processing is performed on the photography stream captured by the VPSS, the photography stream is transmitted to the RNDIS channel.

[0125] S50i: The photo capture stream is sent to the Camera App via the RNDIS channel.

[0126] The picture taking stream is sent to the Camera App via the RNDIS channel at the second transmission rate.

[0127] S50j: The camera app saves the photos.

[0128] The camera app receives the photo capture stream and saves the photo capture stream as a photo, the resolution of the photo being a second resolution. For example, a user may open a family album to view the saved photos.

[0129] It should be noted that the order of the above steps is not limited in this embodiment of the present application. For example, the VI processing unit may first perform S504 to send the third command to the camera sensor, and then perform S508 to send the fourth command to the VPSS. Alternatively, the VI processing unit may first perform S508 to send the fourth command to the VPSS, and then perform S504 to send the third command to the camera sensor. The order of the above steps does not affect the effect of this embodiment of the present application.

[0130] An embodiment of the present application provides a photography method. After collecting an image based on the high resolution of the photo, the camera transmits a video stream to a main processor through a first transmission channel with a low resolution and a high transmission rate, and transmits a photography stream to a main processor through a second transmission channel with a high resolution and a low transmission rate. The resolution of the photo is not limited by the resolution of the preview video. In this way, an ultra-high definition photo can be obtained, and a clear and smooth preview video can be guaranteed.

[0131] An embodiment of the present application further provides a photography method. As shown in Figures 5B-1 to 5B-3, the method may include the following steps:

[0132] S511: A command from the user to open the camera app is received.

[0133] For the specific steps of S511, please refer to S501, and the details will not be described again here.

[0134] S512: In response to receiving an instruction from the user to open the camera app, the camera app transmits a first preview instruction to the UVC channel.

[0135] In one embodiment, the camera app transmits a first preview command to the UVC channel in response to receiving an operation of opening the camera app by the user, and the first preview command is used to command the camera app to start a photo capture preview. It can be understood that the camera app is installed in the operating system of the main processor. The camera app transmits the first preview command to the UVC channel, which means that the main processor transmits the first preview command to the UVC channel. In one embodiment, the first preview command includes a first resolution. In one embodiment, the first resolution is a default value. For example, the first resolution is a first default value (e.g., 2560×1440). In another embodiment, the value of the first resolution is determined based on a selection by the user. For example, see FIG. 7A to FIG. 7C. The “Photo Resolution” interface 703 includes multiple resolution options. The user may select one option as the photo resolution. For example, the "Photo Resolution" interface 703 may include an "18MP" option 704, a "4MP" option 705, a "24MP" option 706, and a "6MP" option 707, which correspond to 18 megapixels, 4 megapixels, 24 megapixels, and 6 megapixels, respectively. In one example, the "18MP" option 704 indicates that the photo is taken by using 18 megapixels with an aspect ratio of 16:9. The corresponding photo resolution is 5632x3168, and the corresponding first resolution is 2560x1440.

[0136] S513: The UVC channel sends a first preview command to the VI processing unit.

[0137] S514: The VI processing unit sends a first preview command to the camera sensor.

[0138] S515: The camera sensor starts a picture taking preview and collects a video image at a first resolution.

[0139] The camera sensor receives a first preview command, obtains a first resolution based on the first preview command, and collects video images at the first resolution to form preview image data.

[0140] S516: The camera sensor sends preview image data to the VI processing unit.

[0141] S517: The VI processing unit obtains a preview video stream based on the preview image data.

[0142] For the specific steps of S517, please refer to S507, and the details will not be described again here.

[0143] S518: The VI processing unit sends the preview video stream to the VPSS.

[0144] S519: The VPSS sends the preview video stream to the UVC channel.

[0145] S51a: The preview video stream is sent to the Camera App via UVC channel.

[0146] The resolution of the video stream is a first resolution. In one embodiment, the video stream is transmitted to the camera App via a UVC channel at a first transmission rate (eg, 30 fps).

[0147] S51b: The camera app renders and plays the video stream.

[0148] S51c: A user's command to take a picture is received.

[0149] For the specific steps of S51b and S51c, please refer to S50c and S50d, and the details will not be described again here.

[0150] S51d: In response to receiving the user's command to take a picture, the camera App transmits the command to take a picture to the RNDIS channel.

[0151] In one embodiment, the camera app transmits a photo-taking command to the RNDIS channel in response to receiving a user's photo-taking command. In one embodiment, the photo-taking command includes a second resolution, and the second resolution is greater than the first resolution. For example, the second resolution is 5632×3168. It can be understood that the camera app is installed in the operating system of the main processor. The camera app transmits a photo-taking command to the RNDIS channel, which means that the main processor transmits a photo-taking command to the RNDIS channel.

[0152] S51e: The RNDIS channel sends a picture taking command to the VI processing unit.

[0153] In one embodiment, the picture taking instructions include a second resolution.

[0154] S51f: The VI processing unit sends a picture taking command to the camera sensor.

[0155] S51g: The camera sensor collects video images at a second resolution.

[0156] The camera sensor receives a picture taking command, obtains a second resolution based on the picture taking command, and collects video images at the second resolution to form second preview image data.

[0157] S51h: The camera sensor sends the second preview image data to the VI processing unit.

[0158] The S51i:VI processing unit obtains a second preview video stream based on the second preview image data.

[0159] The VI processing unit receives the second preview image data and pre-processes the second preview image data to obtain a second preview video stream. For example, the VI processing unit may perform processing on the second preview image data, such as filtering and noise reduction, target enhancement, and image segmentation.

[0160] S51j: The VI processing unit sends a photo taking command to the VPSS.

[0161] The S51k:VI processing unit sends a second preview video stream to the VPSS.

[0162] S51m: The VPSS obtains a photography stream based on the second preview video stream.

[0163] After receiving the picture taking command, the VPSS captures an image of one or more frames of the second preview video stream to form a picture taking stream, the resolution of the second preview video stream and the resolution of the picture taking stream being a second resolution.

[0164] Optionally, the VPSS compresses the resolution of the second preview video stream to the first resolution to form a second video stream, and sends the second video stream to the UVC channel. The second video stream is sent to the camera App through the UVC channel. The camera App receives the second video stream and renders the second video stream. The smart screen plays the rendered second video stream by using a display, i.e., displays a photo-taking preview interface. The resolution of the photo-taking preview interface is the first resolution.

[0165] S51n: The VPSS transmits the picture taking stream to the RNDIS channel.

[0166] In one embodiment, after image enhancement processing is performed on the photography stream captured by the VPSS, the photography stream is transmitted to the RNDIS channel.

[0167] S51p: The photo capture stream is sent to the Camera App via the RNDIS channel.

[0168] In one embodiment, the photo-taking stream is sent to the camera App through the RNDIS channel at a second transmission rate. The second transmission rate is smaller than the first transmission rate. For example, the second transmission rate is 2 fps. In this way, the photo-taking stream is sent through the RNDIS channel at a high resolution and a low transmission rate to obtain high-definition photos.

[0169] S51q: The camera app saves the photo.

[0170] The camera app receives the photo capture stream and saves the photo capture stream as a photo, the resolution of the photo being a second resolution. For example, a user may open a family album to view the saved photos.

[0171] An embodiment of the present application provides a photography method. During photography preview, the camera collects images at low resolution, and transmits the video stream to the main processor through a first transmission channel at low resolution and high transmission rate to ensure the smoothness of the video stream. During photography, the camera collects images at high resolution, and transmits the photography stream to the main processor through a second transmission channel at high resolution and low transmission rate to obtain high definition photos. In this way, super high definition photos can be obtained, and a clear and smooth preview video can be guaranteed.

[0172] It can be understood that to implement the aforementioned functions, the electronic device includes corresponding hardware structures and / or software modules for performing each of the functions. With reference to the example units and algorithm steps described in the embodiments disclosed herein, it can be understood that the embodiments of the present application can be implemented by hardware or a combination of hardware and computer software. Whether the functions are performed by hardware or by hardware driven by computer software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but the implementation should not be considered to go beyond the scope of the embodiments of the present application.

[0173] In the embodiment of the present application, the electronic device may be divided into functional modules based on the above-mentioned method examples. For example, each functional module may be obtained by division based on the corresponding functions, or two or more functions may be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of a software function module. It should be noted that in the embodiment of the present application, the division of modules is an example and is merely a logical division of functions. In actual implementation, other division methods may be used.

[0174] When an integrated unit is used, FIG. 8 is a possible schematic diagram of the structure of the electronic device in the aforementioned embodiment. The electronic device 800 includes a camera 810 and a device body 820. The camera 810 includes a sensor 811 and a first processing unit 812. The device body 820 includes a second processing unit 821 and a display unit 822. The camera 810 and the device body 820 may exchange data via a first channel 831 or a second channel 832. Specifically, the first processing unit 812 and the second processing unit 821 exchange data via the first channel 831 or the second channel 832.

[0175] Sensor 811 is configured to collect images and may be configured to perform, for example, processing steps S505 and S506 of Figures 5A-1 to 5A-3, or processing steps S515, S516, S51g, and S51h of Figures 5B-1 to 5B-3, and / or other processes of the techniques described herein.

[0176] The first processing unit 812 is configured to perform image processing, and may be configured to perform, for example, processing steps S504, S507 to S50a, S50g, and S50h of Figures 5A-1 to 5A-3, or processing steps S514, S517 to S519, S51f, and S51i to S51n of Figures 5B-1 to 5B-3, and / or other processes of the techniques described in this specification.

[0177] The first channel 831 is used for transmitting the video stream and instructions related to the video stream, and may be used, for example, to perform processing steps S503 and S115b of Figures 5A-1 to 5A-3, or processing steps S513 and S51a of Figures 5B-1 to 5B-3, and / or other processes of the techniques described in this specification.

[0178] The second channel 832 is used for transmitting the photo shooting stream and instructions related to the photo shooting stream, and may be used, for example, to perform processing steps S503, S50f, and S50i of Figures 5A-1 to 5A-3, or processing steps S51e and S51p of Figures 5B-1 to 5B-3, and / or other processes of the techniques described in this specification.

[0179] The second processing unit 821 is configured to control and manage the operation of the electronic device 800 and interact with a user (e.g., receive user instructions) and may be configured, for example, to perform processing steps S501, S502, S50c to S50e, and S50j of Figures 5A-1 to 5A-3, or processing steps S511, S512, S51b to S51d, and S51q of Figures 5B-1 to 5B-3, and / or other processes of the techniques described in this specification.

[0180] The display unit 822 is configured to display a display interface of the electronic device 800, and may be configured to display, for example, a photo-taking preview interface, a settings interface, photos, and the like.

[0181] Of course, the units and modules in the electronic device 800 include, but are not limited to, the sensor 811, the first processing unit 812, the first channel 831, the second channel 832, the second processing unit 821, and the display unit 822. For example, the electronic device 800 may further include a storage unit, a communication unit, an audio unit, and the like. The storage unit is configured to store program codes and data of the electronic device 800. The communication unit is configured to support communication between the electronic device 800 and other devices, and may be configured to receive control signals of a remote control, for example. The audio unit is configured to play sounds, and the like.

[0182] The sensor 811 may be a camera sensor. The first processing unit 812 may be a video processor or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The first processing unit 812 may implement or execute various exemplary logic blocks, modules, and circuits described with reference to the contents disclosed in this application. The first channel 831 and the second channel 832 may be USB channels. The second processing unit 821 may be a processor or controller, such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. The storage unit may be a memory. The communication unit may be a transceiver, a transceiver circuit, a communication interface, or the like. The display unit 822 may be a display. The audio unit may include a speaker and a receiver, or the like.

[0183] For example, the sensor 811 may be an image acquisition sensor (e.g., the sensor 121 shown in FIG. 2), the first processing unit 812 may be a processor (e.g., the video processor 122 shown in FIG. 2), the second processing unit 821 may be a processor (e.g., the main processor 111 shown in FIG. 2), the storage unit may be a memory (e.g., the memory 112 shown in FIG. 2), the communication unit may be a wireless communication module (e.g., the wireless communication module 115 shown in FIG. 2), the display unit 822 may be a display (e.g., the display 114 shown in FIG. 2), and the audio unit may include a speaker (e.g., the speaker 113A shown in FIG. 2). The electronic device 800 provided in this embodiment of the present application may be the electronic device 100 shown in FIG. 2. The processor, the memory, and the communication module, etc. may be coupled to each other, for example, connected via a bus.

[0184] An embodiment of the present application further provides a computer-readable storage medium, which stores computer program code, and when a processor executes the computer program code, the electronic device executes the relevant method steps of Figures 5A-1 to 5A-3 or Figures 5B-1 to 5B-3 to implement the method of the aforementioned embodiment.

[0185] An embodiment of the present application further provides a computer program product, which, when executed on a computer, enables the computer to perform the relevant method steps of Figures 5A-1 to 5A-3 or Figures 5B-1 to 5B-3 to implement the method of the aforementioned embodiment.

[0186] The electronic device 800, the computer-readable storage medium, and the computer program product provided in the embodiments of the present application are respectively configured to perform the corresponding methods provided above. Therefore, for the beneficial effects that can be achieved by the electronic device 800, the computer-readable storage medium, and the computer program product, please refer to the beneficial effects in the corresponding methods provided above. Details will not be described again here.

[0187] The above description of the embodiments allows those skilled in the art to understand that the above division into functional modules is used as an example for illustration for the sake of convenience. During actual application, the above functions can be allocated and implemented into different modules as required, that is, the internal structure of the device is divided into different functional modules to implement all or part of the above-described functions.

[0188] In some embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the described apparatus embodiments are merely examples. For example, the division into modules or units is merely a division of logical functions, and may be other divisions in actual implementation. For example, multiple units or components may be combined or integrated into other systems, or some functions may be ignored or not performed. In addition, the shown or described mutual couplings or direct couplings or communication connections may be implemented through some interfaces. Indirect couplings or communication connections between apparatuses or units may be implemented in electrical, mechanical, or other forms.

[0189] The units described as separate parts may or may not be physically separate, and the parts shown as units may be one or more physical units, may be located in one place or may be distributed in different places. Some or all of the units may be selected according to actual requirements to achieve the purpose of the solution of the embodiment.

[0190] In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0191] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such understanding, the technical solution of the present application may be essentially implemented in the form of a software product, or the part that contributes to the prior art, or all or part of the technical solution. The software product is stored in a storage medium and includes some instructions for instructing a device (which may be a single-chip microcomputer or chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0192] The above description is only a specific embodiment of the present application, and is not intended to limit the protection scope of the present application. Any variation or replacement within the technical scope disclosed in the present application shall be within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. [Explanation of symbols]

[0193] 100 Electronic Devices 110 Device body 111 Main Processor 112 Memory 113 Audio Module 113A Speaker 114 Display 115 Wireless Communication Module 116 Interface Module 117 Power Module 120 Camera 121 Camera Sensor 122 Video Processor 200 Remote Control 201 Up button 202 Down button 203 Left Button 204 Right button 205 OK button 206 Menu button 207 Power button 401 Video Input Processing Unit 402 Video Processing Subsystem 403 Enhancement Algorithm Unit 404 Artificial Intelligence Processing Unit 601 "All Apps" Interface 602 "Family Camera" Icon 603 'Photo capture preview' interface 604 "Photo" option 605 "Video" options 606 "Photo Frame" Options 607 "Family Album" Icon 701 "Family Camera Settings" interface 702 "Photo Resolution" options 703 "Photo Resolution" Interface 704 "18MP" option 705 "4MP" option 706 "24MP" option 707 "6MP" option 800 Electronic Devices 810 Camera 811 Sensors 812 first processing unit 820 Device body 821 Second Processing Unit 822 Display unit 831 First Channel 832 Second Channel

Claims

1. A photographing method applied to an electronic device, the electronic device comprising a device body and a camera connected to the device body, the device body comprising a display, the method comprising: said camera acquiring video images and obtaining a video stream at a first resolution based on said video images; the camera transmitting the video stream to the device body via a first transmission channel; displaying the video stream by using the display on the device body; The camera acquires a second resolution photo-taking stream based on the collected video images in response to a fact that the device body receives a first photo-taking command, the second resolution being greater than the first resolution; the camera transmitting the photographing stream to the device body via a second transmission channel, the second transmission channel being different from the first transmission channel; the device body acquiring a photo based on the photo-taking stream; Including, The step of the camera acquiring the photo-taking stream at the second resolution based on the collected video images in response to the fact that the device body has received the first photo-taking command includes: receiving, by the camera, a second picture-taking command, the second picture-taking command being sent by the device body to the camera in response to the fact that the device body has received the first picture-taking command, the second picture-taking command including the second resolution value; and in response to the camera receiving the second picture-taking command, the camera obtaining the picture-taking stream in the second resolution based on the collected video images. How to take a photo.

2. The step of the camera acquiring a video image and obtaining a video stream at a first resolution based on the video image includes the step of the camera acquiring a first video image at the second resolution and processing the first video image to obtain the video stream at the first resolution; the step of the camera acquiring a photography stream at a second resolution based on the collected video images includes the step of the camera acquiring the photography stream at the second resolution based on the first video images; The method of claim 1.

3. the step of the camera acquiring a video image and obtaining a video stream at a first resolution based on the video image includes the step of the camera acquiring a second video image at the first resolution and obtaining the video stream at the first resolution based on the second video image; The step of the camera acquiring a photo-taking stream at a second resolution based on the collected video images in response to the fact that the device body has received a photo-taking command includes the step of the camera acquiring a first video image at the second resolution in response to the fact that the device body has received the photo-taking command, and acquiring the photo-taking stream at the second resolution based on the first video image. The method of claim 1.

4. The step of the camera acquiring the photographic stream at the second resolution based on the first video image includes: The camera captures images of one or more frames of the first video image to form the photography stream.

4. The method of claim 2 or 3, comprising:

5. the step of the camera transmitting the video stream to the device body via a first transmission channel includes the step of the camera transmitting the video stream to the device body via the first transmission channel at a first transmission rate; The step of transmitting the photo-taking stream to the device body via a second transmission channel by the camera includes a step of transmitting the photo-taking stream to the device body via the second transmission channel at a second transmission rate by the camera, the second transmission rate being lower than the first transmission rate.

5. The method according to any one of claims 1 to 4.

6. The method comprises: The camera acquiring an artificial intelligence AI stream at a third resolution based on the collected video images, the third resolution being smaller than the first resolution; performing image enhancement processing on the collected video images based on the AI ​​stream by the camera; 6. The method of claim 1, further comprising:

7. 7. The method according to claim 1, wherein the camera and the device body are connected to each other by using a Universal Serial Bus USB.

8. 1. An electronic device comprising: a device body; and a camera connected to the device body, the device body comprising a display; the camera is configured to collect video images and obtain a video stream at a first resolution based on the video images; the camera is further configured to transmit the video stream to the device body via a first transmission channel; the device body is configured to display the video stream using the display; The device body is further configured to receive a first photograph taking command; the camera is configured to receive a second picture-taking command in response to the fact that the device body has received the first picture-taking command, the second picture-taking command being sent by the device body to the camera in response to the fact that the device body has received the first picture-taking command, the second picture-taking command including a second resolution value; The camera is further configured to, in response to receiving the second picture-taking command, obtain a picture-taking stream at the second resolution based on the video images collected by the camera, the second resolution being greater than the first resolution; the camera is further configured to transmit the photographing stream to the device body via a second transmission channel, the second transmission channel being different from the first transmission channel; The device body is further configured to acquire a photograph based on the photo-taking stream. Electronic devices.

9. the camera is configured to collect a first video image at the second resolution; the camera is further configured to process the first video image to obtain the video stream at the first resolution; The camera is further configured to obtain the photography stream at the second resolution based on the first video image.

9. The electronic device according to claim 8.

10. the camera is configured to collect a second video image at the first resolution and obtain the video stream at the first resolution based on the second video image; The camera is further configured to, in response to the fact that the device body has received the picture-taking command, collect a first video image at the second resolution and obtain the picture-taking stream at the second resolution based on the first video image.

9. The electronic device according to claim 8.

11. The camera acquiring the photographic stream at the second resolution based on the first video image, the camera capturing images of one or more frames of the first video image to form the photography stream; 11. The electronic device of claim 9 or 10, comprising:

12. the camera is configured to transmit the video stream to the device body at a first transmission rate via the first transmission channel; The camera is further configured to transmit the picture-taking stream to the device body via the second transmission channel at a second transmission rate, the second transmission rate being less than the first transmission rate.

12. An electronic device according to any one of claims 8 to 11.

13. The camera is further configured to obtain an artificial intelligence AI stream at a third resolution based on the collected video images, the third resolution being less than the first resolution; The camera is further configured to perform image enhancement processing on the collected video images based on the AI ​​stream.

13. An electronic device according to any one of claims 8 to 12.

14. 14. The electronic device according to claim 8, wherein the camera and the device body are connected to each other by using a Universal Serial Bus USB.

15. 8. A computer-readable storage medium comprising computer instructions, the computer-readable storage medium comprising: a first input / output port for receiving a first signal from a first input / output port; a second input / output port for receiving a second signal from a first input / output port;

16. A program, which when executed on a computer enables the computer to carry out the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Camera chip for mobile terminal, mobile terminal with image pick-up function, shooting method for mobile terminal and shooting device for mobile terminal

    CN103402055A

  • Method, system and apparatus for imaging

    JP2006325150A

  • Electronic apparatus and program

    JP2013090006A

  • Imaging apparatus and image transfer method

    JP2015095799A

  • Information processor, information processing method and imaging apparatus

    JP2019186961A