Image processing method and electronic device

By adaptively adjusting the resolution of image processing and selecting the appropriate resolution for image processing based on the user's sliding speed, the lag problem caused by high-resolution image processing is solved, and image processing efficiency and user experience are improved.

WO2025200616A1PCT designated stage Publication Date: 2025-10-02HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/139685
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-03-29
Filing Date
2024-12-16
Publication Date
2025-10-02

AI Technical Summary

Technical Problem

When processing high-resolution images, existing technologies lead to a decline in the performance of electronic devices, resulting in image rendering jams, affecting image processing efficiency and user experience.

Method used

The electronic device adjusts the sliding speed of the image attributes according to the user, adaptively selects different resolutions to process the image, uses high resolution to process image details when sliding slowly, and uses low resolution to process the image when sliding quickly, to improve performance and smoothness.

Benefits of technology

It achieves the goal of retaining image details and improving processing efficiency under different user intentions, enhancing user experience and image frame rate, and avoiding lag.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024139685_02102025_PF_FP_ABST
    Figure CN2024139685_02102025_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of terminals, and provides an image processing method and an electronic device, for use in solving the problem that image rendering lag affects processing efficiency and user experience. The method is applied to a first electronic device, and comprises: displaying a first interface, wherein the first interface is used for displaying a first image; when a sliding operation of a user on the first interface is detected, obtaining a first speed of the sliding operation, wherein the sliding operation is used for changing the attribute of the first image; when the first speed meets a preset condition, processing the first image by using first resolution; and when the first speed does not meet the preset condition, processing the first image by using second resolution, wherein the first resolution is different from the second resolution.
Need to check novelty before this filing date? Find Prior Art

Description

Image processing method and electronic device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on March 29, 2024, with application number 202410384847.8 and application name “Image Processing Method and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of terminal technology, and in particular to an image processing method and electronic device. Background Art

[0003] With the development of terminal technology, the image resolution in electronic devices such as mobile phones and tablets is getting higher and higher. High-resolution images can present clearer and richer image details, as well as true and natural colors, thus improving the visual experience.

[0004] When users process high-resolution images, they often need to adjust or edit the image content to achieve a better display. However, due to the high image resolution, processing the image content can impact the performance of electronic devices, causing image rendering to stall, affecting image processing efficiency and user experience. Summary of the Invention

[0005] This application provides an image processing method and electronic device that can adaptively adjust the resolution of image processing based on the speed at which the user adjusts image attributes. This allows for both fine-tuning of image details and observation of overall image trends, thereby meeting the diverse image processing needs of users, improving image processing efficiency, and enhancing the user experience.

[0006] To achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides an image processing method, applied to an electronic device, the method comprising: displaying a first interface, the first interface being used to display a first image; detecting a user's sliding operation on the first interface, obtaining a first speed of the sliding operation, the sliding operation being used to change an attribute of the first image; processing the first image through a first resolution when the first speed meets a preset condition; processing the first image through a second resolution when the first speed does not meet the preset condition, the first resolution being different from the second resolution.

[0008] In this application, when an electronic device detects that a user is adjusting the properties of an image, it adaptively selects a processing method based on the user's sliding speed to process the image. When the user slides slowly, the image is processed at a first resolution, displaying image details in real time and enriching the detail display effect, thereby increasing the user's control over the image details and improving the user experience. When the user slides quickly, the image is processed at a second resolution, which is lower than the first resolution, to realistically, quickly and smoothly display the image changes, reducing the amount of data, improving the image frame rate and processing effect, eliminating lags, and improving the user experience.

[0009] In some embodiments, the first image can be an image captured by a user using an electronic device, an image drawn by a user on the electronic device, an image obtained by the user via a network or an external storage device, an image captured by the user while browsing a video or document, or an image stored in the electronic device itself. The first image can be an image with a resolution greater than or equal to a preset threshold, or an image with a resolution less than a preset threshold. The first image can be the entire image before enlargement or reduction, an enlarged partial image, or a reduced image.

[0010] According to the first aspect, or any implementation of the first aspect, the first resolution is a resolution of the first image, and the second resolution is smaller than the first resolution.

[0011] In some embodiments, the first resolution is a resolution of an image currently displayed by the electronic device, and the second resolution is lower than a resolution of an image currently displayed by the electronic device.

[0012] In this application, the resolution of image processing is determined based on the resolution of the currently displayed image. When the electronic device subsequently processes the image at the first resolution, it can retain more and richer image details, improving the image display effect so that the user can observe clearer and more realistic image content. When the electronic device subsequently processes the image at the second resolution, it can save computing resources, speed up processing, and improve image processing efficiency, so that the user can realistically, quickly and smoothly display the changing effects of the image.

[0013] According to the first aspect, or any implementation of the first aspect above, the preset condition includes a sliding speed less than a preset speed, and the preset speed is a predetermined minimum threshold value for a user to quickly adjust image properties; when the first speed meets the preset condition, processing the first image through the first resolution includes: when the first speed is less than the preset speed, determining that the user's intention is to slowly adjust the image properties, and processing the first image through the first resolution.

[0014] In some embodiments, the electronic device provides an interactive control for the user to adjust the properties of the image, such as a sliding control. The user changes the properties of the image by moving the sliding control left or right.

[0015] In this application, the electronic device determines the user's adjustment intention based on the first speed. When the user intends to adjust the image slowly, the image is processed using the first resolution, which can more accurately capture details and changes, meet the user's needs for fine-tuning image attributes, and improve the user's controllability of local details.

[0016] According to the first aspect, or any implementation of the first aspect above, the preset condition includes a sliding speed less than a preset speed, and the preset speed is a predetermined minimum threshold value for a user to quickly adjust image properties; when the first speed does not meet the preset condition, processing the first image through a second resolution includes: when the first speed is greater than or equal to the preset speed, determining that the user's intention is to quickly adjust image properties, and processing the first image through the second resolution.

[0017] In this application, the electronic device determines the user's adjustment intention based on the first speed. When the user intends to quickly adjust the image, the electronic device processes the image at the second resolution, which can improve system performance, increase the image frame rate, and increase image processing efficiency. It can also respond quickly, realistically and smoothly display the changing trend of the image without lag, and improve the user's viewing experience.

[0018] According to the first aspect, or any implementation of the first aspect above, when the first speed does not meet the preset conditions, the first image is processed through the second resolution, including: when the first speed does not meet the preset conditions, obtaining a preset rule; determining the second resolution based on the preset rule and the first resolution; processing the first image through the second resolution.

[0019] According to the first aspect, or any implementation of the first aspect above, the preset rule is to process the first resolution according to a preset ratio to obtain the second resolution, and the preset ratio is a value greater than 0 and less than 1.

[0020] According to the first aspect, or any implementation of the first aspect above, obtaining the first speed of the sliding operation includes: determining the first speed based on the sliding distance per unit time; or determining the first speed based on the number of pixels slid per unit time; or determining the first speed based on the sliding distance and sliding time.

[0021] In some embodiments, the electronic device obtains the starting position of the user when sliding and the moving position per unit time, and calculates the first speed based on the starting position, the moving position and the unit time.

[0022] In other embodiments, the electronic device obtains the starting position of the user's sliding and the moving position per unit time, determines the sliding distance based on the starting position and the moving position; determines the number of pixels slid per unit time based on the sliding distance and the pixel density; and calculates the first speed based on the number of pixels slid per unit time and the unit time.

[0023] In this application, the electronic device can accurately adjust the image processing method at each moment according to the movement speed at each moment, making the image processing process more flexible and accurate, so that the user can accurately observe the adjustment effect at each moment and improve the user experience.

[0024] In other embodiments, the electronic device obtains the starting position, end position and sliding time of the user's sliding, determines the sliding distance according to the starting position and end position, and determines the first speed according to the sliding distance and sliding time.

[0025] In this application, the electronic device can perform smoothing based on the overall situation of the user's sliding operation, reduce mutations and fluctuations, and make the processing effect more stable.

[0026] According to the first aspect, or any implementation of the first aspect above, the attributes of the first image include: contrast, brightness, saturation, hue, color balance, blur, sharpness, exposure, color temperature, highlights, and shadows.

[0027] In this application, electronic devices can adjust image properties to optimize visual effects.

[0028] In a second aspect, the present application provides an image processing device, which includes: a processor and a memory, the memory being coupled to the processor, the memory being used to store computer-readable instructions, and when the processor reads the computer-readable instructions from the memory, the image processing device executes the method as in the first aspect and any one of the embodiments of the first aspect.

[0029] In a third aspect, the present application provides an image processing system, which includes: a processor and a memory, the memory being coupled to the processor, the memory being used to store computer-readable instructions, and when the processor reads the computer-readable instructions from the memory, the image processing system executes the method as in the first aspect and any one of the embodiments of the first aspect.

[0030] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory, the memory being coupled to the processor, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method as in the first aspect and any one of the embodiments of the first aspect.

[0031] In a fifth aspect, the present application provides a chip system comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, the at least one processor executes instructions, and the at least one processor executes the method as in the first aspect and any one of the embodiments of the first aspect.

[0032] In a sixth aspect, the present application provides a computer-readable storage medium, which includes a computer program or instructions. When the computer program or instructions are run on a computer, the computer executes the method as in the first aspect and any one of the embodiments of the first aspect.

[0033] In a seventh aspect, the present application provides a computer program product, which includes: a computer program or instructions, which, when the computer program or instructions are run on a computer, enables the computer to execute the method of the first aspect and any one of the embodiments of the first aspect.

[0034] The technical effects corresponding to the second to seventh aspects and any implementation method of each aspect can be referred to the technical effects corresponding to the above-mentioned first aspect and any implementation method of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] FIG1 is a schematic diagram of an image editing interface provided in an embodiment of the present application;

[0036] FIG2 is a second schematic diagram of an image editing interface provided in an embodiment of the present application;

[0037] FIG3 is a third schematic diagram of an image editing interface provided in an embodiment of the present application;

[0038] FIG4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;

[0039] FIG5 is a schematic diagram of the architecture of an image processing system provided in an embodiment of the present application;

[0040] FIG6 is a flowchart of an image processing method according to an embodiment of the present application;

[0041] FIG7 is a schematic diagram of image processing results provided by an embodiment of the present application;

[0042] FIG8 is a second flow chart of the image processing method provided in an embodiment of the present application;

[0043] FIG9 is a schematic structural diagram of an image processing device provided in an embodiment of the present application;

[0044] FIG10 is a schematic structural diagram of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The technical solutions in the embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing specific embodiments, and are not intended to be used as limitations on the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to include expressions such as "one or more", unless there is a clear indication to the contrary in the context. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" refer to one or more (including two).

[0046] References to "one embodiment" or "some embodiments" etc. described in this specification mean that the specific features, structures or characteristics described in conjunction with the embodiment are included in one or more embodiments of the present application. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in another way. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in another way. The term "connected" includes direct and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated.

[0047] In the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0048] In some examples, when users adjust or edit image content, they typically use interactive controls to adjust the image content. For example, as shown in Figure 1, users adjust the blurriness of an image using a slider (the slider can be displayed within the image content or hidden). The electronic device responds to the user's action (e.g., moving the slider left or right to change the blurriness value) by blurring the image (e.g., Gaussian blur) based on the user's adjusted blurriness value. Figure 1 (a) shows a high-resolution image before blurring. When the user adjusts the blurriness, due to the high image resolution, the electronic device must process a large amount of data, which in turn affects system performance, leading to image rendering issues and a lack of synchronization between user actions and the displayed interface content. As shown in Figure 1 (b), a user touches the electronic device's display screen with their finger, sliding their finger from left to right to touch point 11. However, the electronic device's performance is insufficient, and the slider only moves to position 12. The actual display of the slider is out of sync with the user's action, resulting in choppy user operation and a poor visual experience, severely impacting the user experience. Moreover, insufficient performance of electronic devices can also cause image rendering to freeze and a drop in frame rate (frames per second, FPS) (e.g., less than 55 FPS), which affects both image processing efficiency and the smoothness of image display and user experience.

[0049] In other examples, when processing a high-resolution image, the electronic device lowers the resolution and adjusts the high-resolution image accordingly based on the adjustment results of the low-resolution image. Specifically, the electronic device displays the corresponding low-resolution image in a small window, allowing the user to adjust the low-resolution image in the small window and preview the adjustment results. In response to user operations, the electronic device displays the adjustment results of the low-resolution image in the small window. Based on the adjustment results of the low-resolution image confirmed by the user, the electronic device adjusts the high-resolution image accordingly. For example, as shown in Figure 2, the high-resolution image is displayed in window 201, and a preview box 203 in window 202 displays the corresponding low-resolution image. Window 202 also includes functional controls such as a slider, confirmation control, and cancel control. When the user blurs the high-resolution image, the electronic device adds a new window 202, displays the low-resolution image in preview box 203, and allows the user to adjust the blur of the low-resolution image in window 202 and preview the adjustment results. If the user is satisfied with the adjustment results in window 202, they can click the confirmation control in window 202. In response to the user's confirmation operation, the electronic device processes the high-resolution image in a high-resolution processing manner according to the adjustment result of the low-resolution image (such as the blur value of the current low-resolution image).

[0050] It is understandable that the above examples preview the image processing effect by reducing the resolution, but the image is still processed at a high resolution when it is actually processed.

[0051] In the above example, when processing a high-resolution image by reducing its resolution, the processing effect on the low-resolution image cannot truly reflect the processing effect on the high-resolution image. Furthermore, the operation is complicated, requiring the user to adjust the low-resolution image in a small window and then click a confirmation control before the electronic device adjusts the high-resolution image accordingly. This increases the number of steps, makes the process cumbersome, and creates an unfriendly interface.

[0052] Furthermore, the aforementioned adjustment method can only adjust the entire image; local details cannot be adjusted or observed. Specifically, the size of the small window preview box remains unchanged. Even when a user zooms in on a high-resolution image to view local details, the low-resolution image displayed in the preview box is only the entire image; the preview box cannot display the low-resolution image corresponding to the zoomed-in portion of the high-resolution image. For example, as shown in Figure 3, window 301 displays the user's zoomed-in high-resolution head image, while preview box 303 in window 302 displays the image corresponding to the entire high-resolution image, rather than the low-resolution image corresponding to the head image.

[0053] In order to improve the technical problems mentioned above, an embodiment of the present application provides an image processing method, which includes: the electronic device obtains a first speed, which is the sliding speed when the user adjusts the attributes of the image; the electronic device determines the user intention based on the above-mentioned first speed; when the above-mentioned user intention is the first intention, the electronic device processes the image according to the first resolution; when the above-mentioned user intention is the second intention, the image is processed according to the second resolution, and the first resolution is different from the second resolution. In the technical solution of the present application, the electronic device analyzes the user intention based on the sliding speed of the user adjusting the attributes of the image, and automatically selects the appropriate resolution to process the image according to the user intention, which can achieve both fine-tuning of the image details and observation of the overall change trend of the image, so as to meet the different needs of users for image processing, optimize the image processing process, improve the image processing efficiency, and provide users with a smoother and more intelligent image processing experience.

[0054] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0055] The image processing method provided in the embodiments of the present application can be applied to electronic devices with display screens. Electronic devices may also be referred to as terminal equipment, terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc.

[0056] Illustratively, the electronic device in the embodiments of the present application may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, a smart drawing board, a smart TV, an ultra-mobile personal computer (UMPC), a netbook, a personal computer (PC), and a personal digital assistant (PDA) device, etc. The embodiments of the present application do not impose any special restrictions on the specific form of the electronic device.

[0057] 4 shows a schematic diagram of the hardware structure of an electronic device 400. The electronic device 400 may include a processor 410, an external memory interface 420, an internal memory 421, a universal serial bus (USB) interface 430, a charging management module 440, a power management module 441, a battery 442, an antenna 1, an antenna 2, a radio frequency module 450, a communication module 460, an audio module 470, a sensor module 480, a display driver 491, a camera 493, a display screen 494, and the like.

[0058] The structure shown in the embodiment of the present invention does not limit the electronic device 400. The electronic device 400 may include more or fewer components than shown, or some components may be combined or separated, or arranged differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0059] The processor 410 may include one or more processing units. For example, the processor 410 may include an application processor (AP), a system on chip (SoC), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0060] The controller may be the nerve center and command center of the electronic device 400. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0061] Processor 410 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor is a high-speed cache memory that can store instructions or data that the processor has just used or is reusing. If the processor needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated accesses, reduces processor latency, and thus improves system efficiency.

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

[0063] The MIPI interface can be used to connect the processor 410 to peripheral devices such as the display screen 494 and the camera 493. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 410 and the camera 493 communicate via the CSI interface to implement the camera function of the electronic device 400. The processor 410 and the display screen 494 communicate via the DSI interface to implement the display function of the electronic device 400.

[0064] The external memory interface 420 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 400. The external memory card communicates with the processor via the external memory interface to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.

[0065] The internal memory 421 can be used to store computer executable program codes, which include instructions. The processor 410 executes various functional applications and data processing of the electronic device 400 by running the instructions stored in the internal memory 421. The memory 421 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function, etc. The data storage area can store data created during the use of the electronic device 400, etc. In addition, the memory 421 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, other volatile solid-state storage devices, a universal flash storage (UFS), etc.

[0066] USB interface 430 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface can be used to connect a charger to charge electronic device 400, or to transfer data between electronic device 400 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as AR devices.

[0067] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is for illustrative purposes only and does not constitute a structural limitation on the electronic device 400. In other embodiments of the present application, the electronic device 400 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.

[0068] The charging management module 440 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 440 can receive charging input from the wired charger via the USB interface 430. In some wireless charging embodiments, the charging management module 440 can receive wireless charging input via the wireless charging coil of the electronic device 400. While charging the battery 442, the charging management module 440 can also provide power to the electronic device via the power management module 441.

[0069] The power management module 441 is used to connect the battery 442, the charging management module 440, and the processor 410. The power management module receives input from the battery and / or the charging management module and provides power to the processor, internal memory, external memory, and display screen. The power management module can also be used to monitor parameters such as battery capacity and battery health (leakage, impedance). In some other embodiments, the power management module 441 can also be provided in the processor 410. In other embodiments, the power management module 441 and the charging management module 440 can also be provided in the same device.

[0070] The wireless communication function of the electronic device 400 can be implemented through antenna 1, antenna 2, radio frequency module 450, communication module 460, modem processor and baseband processor.

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

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

[0073] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium- or high-frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor displays images or videos via the display screen 494. In some embodiments, the modem processor may be a standalone device. In other embodiments, the modem processor may be independent of the processor 410 and be provided in the same device as the RF module 450 or other functional modules.

[0074] The communication module 460 can provide a communication processing module for wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc., which are applied to the electronic device 400. The communication module 460 can be one or more devices that integrate at least one communication processing module. The communication module receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor. The communication module 460 can also receive the signal to be sent from the processor 410, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

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

[0076] The audio module 470 is used to convert digital audio information into analog audio signal output, and also to convert analog audio input into digital audio signal. The audio module can also be used to encode and decode audio signals.

[0077] The sensor module 480 of the electronic device 400 may specifically include: a gyroscope sensor, an acceleration sensor, a pressure sensor, an air pressure sensor, a magnetic sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0078] The display driver 491 is the control center of the display screen 494 and can control the display screen 494 to display various image data. For example, the display driver 491 can be a chip with a memory, for example, a display driver chip. The function of the display driver chip is to provide various display screen information to the display screen 494 after power is applied.

[0079] Camera 493 is used to capture still images or videos. An object is projected through the lens into a photosensitive element, which can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. In some embodiments, electronic device 400 may include one or N cameras, where N is a positive integer greater than one.

[0080] Electronic device 400 implements display functionality through a graphics processing unit (GPU), display screen 494, and an application processor. A GPU is a microprocessor for image processing that connects display screen 494 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 410 may include one or more GPUs that execute program instructions to generate or modify display information.

[0081] Display screen 494 is used to display images, videos, and the like. The display screen includes a display panel. The display panel can be an LCD (liquid crystal display), an OLED (organic light-emitting diode), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED). In some embodiments, electronic device 400 can include one or N display screens, where N is a positive integer greater than one.

[0082] The electronic device 400 may further include components such as a battery 442 , and this embodiment of the present application does not impose any limitation on this.

[0083] The following uses a mobile phone as an example to illustrate the above-mentioned electronic device. The display control method of the embodiment of the present application is described in detail below through specific embodiments and drawings. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0084] The image processing methods in the embodiments of the present application can be applied to any image processing scenario, such as painting creation, image editing, medical image processing, digital art, etc. The embodiments of the present application do not limit the image processing scenario.

[0085] As shown in Figure 5, an image processing system provided by an embodiment of the present application includes an acquisition module, an intention decision module, and an image processing module. The acquisition module, the intention decision module, and the image processing module are connected and communicated with each other.

[0086] The acquisition module is used to acquire a first speed, which is the sliding speed when the user adjusts the attributes of the image. The acquisition module is also used to send the first speed to the intention decision module.

[0087] The intention determination module is configured to determine the user's intention based on the first speed. The intention determination module is further configured to send the user's intention to the image processing module. The user's intention includes a first intention and a second intention. The first intention indicates that the user is swiping slowly, indicating that the user wishes to adjust the image slowly. The second intention indicates that the user is swiping quickly, indicating that the user wishes to adjust the image quickly.

[0088] The image processing module is configured to process the image according to a first resolution when the user's intent is a first intent. The image processing module is further configured to process the image according to a second resolution when the user's intent is a second intent. The first resolution is different from the second resolution. For example, the first resolution is a high resolution, and the second resolution is a low resolution.

[0089] It will be understood that the system architecture diagram shown in FIG5 is only an example. In actual applications, the image processing system may include more or fewer modules, and the embodiments of the present application do not limit the division of modules in the image processing system. For example, the intention decision module and the image processing module may be integrated into one module. For another example, the image processing module may include a resolution determination unit and an image processing unit. Specifically, the resolution processing unit is used to determine the resolution corresponding to the user's intention, and the resolution processing unit is also used to send the resolution corresponding to the user's intention to the image processing unit, and the image processing unit is used to process the image according to the resolution corresponding to the user's intention.

[0090] It is understood that in the above examples, each module in the image processing system is an independent component, and each module exchanges data to complete image processing. In actual applications, multiple modules in the image processing system can be deployed on the same component to jointly implement image processing.

[0091] The modules in the above-mentioned image processing system are divided according to functional logic, and other division methods are actually possible. In addition, the above-mentioned modules can be named by other names. In addition, each module can be implemented by hardware, software, or a combination of hardware and software. Whether a specific module is implemented by hardware, software, or a combination of hardware and software depends on the specific application and design constraints of the technical solution. Different modules can be implemented by different hardware, and multiple modules can also be implemented by the same hardware. The embodiments of this application do not specifically limit this.

[0092] It can be understood that the system architecture and business scenarios described in this application are intended to more clearly illustrate the technical solutions of this application, and do not constitute the sole limitation on the technical solutions provided by this application. Ordinary technicians in this field can know that with the evolution of the system architecture and the emergence of new business scenarios, the technical solutions provided by this application are also applicable to similar technical problems.

[0093] FIG6 is a flow chart of an image processing method provided in an embodiment of the present application. It should be noted that the method is not limited to FIG6 and the specific sequence described below. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:

[0094] S601: The electronic device obtains a first speed, where the first speed is a sliding speed when a user adjusts attributes of an image.

[0095] In the embodiment of the present application, the electronic device is an electronic device with image processing functions. For example, the electronic device includes an application (APP) that implements image display and editing functions, and a user can display, edit or adjust an image through the application.

[0096] It is understandable that the application that implements the image editing function can be a system application and / or a third-party application that comes with the electronic device system. The system application and / or the third-party application are applications related to image processing. Among them, the system application can also be called an embedded application, and the embedded application is an application that implements the image processing function as an electronic device. The third-party application can also be called a downloadable application. A downloadable application is an application that can provide its own Internet Protocol Multimedia Subsystem (IMS) connection. The downloadable application can be an application pre-installed in the electronic device or can be an application downloaded and installed in the electronic device by the user.

[0097] In the embodiment of the present application, the image adjusted by the user can be a high-resolution image or a low-resolution image. The display interface of the electronic device can display the entire image without enlargement or reduction, or an enlarged partial image, or a reduced image.

[0098] The high-resolution image is an image with a resolution greater than or equal to a preset threshold, and the low-resolution image is an image with a resolution less than a preset threshold.

[0099] The preset threshold is a pre-set resolution of the electronic device, used to classify images into high-resolution and low-resolution images. The preset threshold is determined by the performance parameters of the electronic device, application requirements, and other factors. It is understood that different electronic devices may have different preset thresholds for distinguishing between high-resolution and low-resolution images.

[0100] For example, the resolution of an image is typically expressed in terms of horizontal and vertical pixel counts. A preset threshold value may be 1024*1024. The electronic device determines images with a resolution greater than or equal to 1024*1024 as high-resolution images, and images with a resolution less than 1024*1024 as low-resolution images. For example, an image with a resolution of 1920*1080 is considered a high-resolution image, while an image with a resolution of 1024*768 is considered a low-resolution image.

[0101] In the embodiment of the present application, the first speed is the sliding speed of the user when adjusting the attributes of the image on the display interface of the electronic device.

[0102] In some embodiments, the electronic device provides an interactive control for the user to adjust the properties of the image. For example, the electronic device includes a sliding control, and the first speed is the speed at which the user slides the sliding control.

[0103] For example, the slide bar shown in FIG1 above, the electronic device provides a slide bar, and the user can change the properties of the image by moving the sliding control in the slide bar left or right.

[0104] It is understandable that the slider provided by the electronic device can be displayed in a visible state in the user interface, or hidden in an invisible state. Based on the example described in (a) of Figure 1 above, the slider is displayed in the display interface, and the user can adjust the properties of the image in the displayed slider. When the slider is hidden in an invisible state, the Gaussian blur window shown in (a) of Figure 1 is not displayed, and the electronic device only displays the image. The user can slide near the undisplayed slider, and the electronic device does not display the slider, but only displays the changed value.

[0105] In the embodiments of the present application, image attributes are parameters that describe image characteristics and features, including but not limited to contrast, brightness, saturation, hue, color balance, blur, sharpness, exposure, color temperature, highlights, shadows, and other attributes.

[0106] In some embodiments, when a user adjusts an image, the electronic device provides a sliding bar so that the user can adjust a specific value of a certain attribute of the image, and the electronic device determines the first speed according to the user's sliding operation.

[0107] In one possible implementation, the electronic device determines the first speed based on the sliding distance per unit time. For example, the electronic device obtains the starting position of the user's sliding (e.g., the coordinates corresponding to the starting position are A(x1, y1)) and the moving position per unit time (e.g., the coordinates corresponding to the moving position are B(x2, y2)), and calculates the first speed (e.g., dist(A, B) / t1, where dist() is a distance formula) based on the starting position, the moving position, and the unit time (e.g., t1).

[0108] For example, if the unit time is 1 millisecond (ms) and the unit of the moving distance is inch (inch), the unit of the first speed should be (inch / ms).

[0109] In another possible implementation, the electronic device determines the first speed based on the number of pixels slid over per unit time. For example, the electronic device obtains the starting position of the user's slide (e.g., the coordinates corresponding to the starting position are A(x1, y1)) and the moving position per unit time (e.g., the coordinates corresponding to the moving position are B(x2, y2)), and determines the sliding distance (e.g., dist(A, B)) based on the starting position and the moving position; determines the number of pixels slid over per unit time (e.g., dist(A, B)*p) based on the sliding distance and the pixel density (e.g., p), and calculates the first speed (e.g., dist(A, B)*p / t1) based on the number of pixels slid over per unit time and the unit time (e.g., t1).

[0110] It is understandable that pixel density refers to the number of physical pixels per inch on a display device (such as a mobile phone, computer monitor, etc.). The higher the pixel density, the clearer and more detailed the image displayed on the screen will be.

[0111] For example, the unit of pixel is pixel (pixel), and the unit time is 1 millisecond, then the unit of the first speed should be (pixel / ms).

[0112] In the possible implementations described above, the first speed is an instantaneous speed, which can reflect the user's motion speed at each moment. This allows the electronic device to accurately adjust the image processing method at each moment based on the motion speed, making the image processing process more flexible and accurate. Furthermore, the speed can respond in real time based on the user's actual sliding speed, changing in real time as the user slides, allowing the user to accurately observe the adjustment effect at each moment, thereby improving the user experience.

[0113] It can be understood that in the above possible implementation, the first speed is an instantaneous speed, and the electronic device needs to collect the first speed when the user slides at every moment until the user stops sliding.

[0114] In another possible implementation, the electronic device determines the first speed based on the sliding distance and sliding time. For example, the electronic device obtains the starting position (e.g., the coordinates corresponding to the starting position are A(x1, y1)), the end position (e.g., the coordinates corresponding to the end position are C(x3, y3)), and the sliding time (e.g., t2) of the user's sliding, determines the sliding distance based on the starting position and the end position, and determines the first speed (e.g., dist(A, C) / t2) based on the sliding distance and the sliding time.

[0115] In the above possible implementation, the first speed is an average speed, which can reflect the overall situation when the user moves the sliding control. Smoothing is performed based on the overall situation to reduce mutations and fluctuations, making the processing effect more stable.

[0116] It is understandable that the embodiment of the present application does not limit the method for obtaining the first speed.

[0117] S602: The electronic device determines the user intention based on the first speed.

[0118] In the embodiments of the present application, user intent refers to the user's purpose for adjusting image attributes. User intent includes a first intent and a second intent. The first intent indicates that the user is swiping slowly, indicating that the user wants to adjust the image slowly. The second intent indicates that the user is swiping quickly, indicating that the user wants to adjust the image quickly.

[0119] It is understandable that the first intention indicates that the user wants to adjust the image attributes in detail and slowly preview the adjustment details of the image. The second intention indicates that the user wants to quickly change the image attributes and quickly preview the overall change effect and change trend of the image.

[0120] In some embodiments, when the first speed is less than a preset speed, the electronic device determines that the user intention is the first intention.

[0121] In other embodiments, when the first speed is greater than or equal to the preset speed, the electronic device determines that the user intention is the second intention.

[0122] The preset speed is a predetermined minimum threshold value for a user to quickly adjust the properties of an image.

[0123] For example, if the preset speed stored in the electronic device is V and the first speed obtained by the electronic device is S, if S is less than V, the electronic device determines that the user's intention is the first intention, that is, the image is adjusted slowly, and the user wants to carefully observe or adjust the image details. If S is greater than or equal to V, the electronic device determines that the user's intention is the second intention, that is, the image is adjusted quickly, and the user wants to see the overall change trend or change effect of the image in real time.

[0124] S603: When the user intention is the first intention, the electronic device processes the image according to the first resolution.

[0125] In the embodiments of the present application, the first resolution is the resolution of the image currently displayed by the electronic device. The first resolution is the resolution that the electronic device should use when processing the image if the user's intention is the first intention. The first resolution can be understood as the full resolution of the currently displayed image.

[0126] For example, based on the example of step S601 above, when the user's intention is the first intention and the image resolution is 1920*1080, the first resolution is determined to be 1920*1080. For another example, when the user's intention is the first intention and the image resolution is 1024*768, the first resolution is determined to be 1024*768.

[0127] It is understandable that resolution is an inherent property of an image, and enlarging or reducing an image will not change its resolution.

[0128] In an embodiment of the present application, the electronic device stores a correspondence between user intention and resolution. When the user intention is the first intention, the electronic device determines the first resolution corresponding to the slow adjustment based on the above correspondence, and the electronic device processes the image according to the first resolution.

[0129] Exemplarily, as shown in Table 1, the correspondence between user intent and resolution provided in an embodiment of the present application is provided.

[0130] Table 1

[0131] It is understandable that when the user intention is the first intention, the user hopes to slowly adjust or observe the details of the image. In order to meet this demand of the user, the electronic device uses the image's own resolution to process the image to improve the image detail quality and the user's controllability of the image details, helping the user to adjust the image details and improve the user experience.

[0132] Exemplarily, when the user's intention is the first intention, the electronic device processes the image according to the image's own resolution. For example, if the electronic device currently displays the entire image that has not been enlarged or reduced, the electronic device processes the entire image according to the image's own resolution. For another example, if the electronic device currently displays an enlarged or reduced partial image, the electronic device processes the original image (i.e., the entire image) that has not been enlarged or reduced according to the image's own resolution to obtain a first processed image. The electronic device then processes the first processed image according to the currently displayed image state (such as the enlargement ratio or reduction ratio, etc.) to obtain a second processed image, and the electronic device displays the second processed image.

[0133] In some embodiments, the technical solution of this application can achieve real-time local adjustment of an image compared to existing technologies. When the user slides slowly, the electronic device determines that the user intends to adjust the image slowly and renders the image according to the first resolution, allowing the user to accurately adjust the image details, improving the controllability of local details, making the adjusted image more in line with the user's needs, and improving the user experience.

[0134] Optionally, after the electronic device processes the image according to the first resolution, the electronic device displays the image processed according to the first resolution.

[0135] It is understandable that the technical solution of this application, when processing images at the first resolution, does not reduce the data volume or optimize system performance, but it does add real-time adjustment and observation of image details, improving the user's controllability over local details and enhancing the user experience.

[0136] S604: When the user intention is the second intention, the electronic device processes the image according to the second resolution; the first resolution is different from the second resolution.

[0137] In the embodiment of the present application, the second resolution is a resolution lower than the first resolution, and the first resolution is the resolution that the electronic device should adopt when processing an image when the user's intention is the second intention.

[0138] In some embodiments, when the user's intention is the second intention, the electronic device obtains a preset rule and determines the second resolution based on the preset rule and the first resolution. The preset rule may be to process the first resolution according to a preset ratio to obtain the second resolution.

[0139] Exemplarily, the second resolution is a preset ratio of the first resolution, where the preset ratio is a value greater than 0 and less than 1. For example, if the preset ratio is 0.5 and the first resolution is 1920*1080, the second resolution is 960*540. For another example, if the preset ratio is 0.25 and the first resolution is 1024*768, the second resolution is 256*192.

[0140] In an embodiment of the present application, when the user intention is the second intention, the electronic device determines the second resolution corresponding to the second intention according to the above mapping table, and processes the image according to the second resolution.

[0141] It is understandable that when the user's intention is the second intention, the user hopes to quickly adjust or view the overall change effect of the image. In order to meet this demand of the user, the electronic device uses low resolution to process the image. On the one hand, it can reduce the amount of data when processing the image, reduce the computing resources occupied when processing the image, improve the system performance, and improve the image frame rate and image processing efficiency; on the other hand, it can respond quickly, show the changing trend of the image realistically and smoothly, and display the processing effect of the image. There is no lag during the image processing process, and the user has a better viewing experience.

[0142] In some embodiments, when the user's intention is the second intention, the electronic device processes the image according to a resolution lower than the image's own resolution (i.e., the second resolution). For example, if the electronic device currently displays the entire image that has not been enlarged or reduced, the electronic device processes the entire image according to the second resolution. For another example, if the electronic device currently displays an enlarged or reduced partial image, the electronic device processes the original image (i.e., the entire image) that has not been enlarged or reduced according to the second resolution to obtain a third processed image; the electronic device processes the third processed image according to the currently displayed image state (e.g., the magnification ratio or reduction ratio, etc.) to obtain a fourth processed image, and the electronic device displays the fourth processed image.

[0143] In some embodiments, when the user slides at a faster speed, the electronic device determines that the user intends to quickly adjust the image and renders the image according to the second resolution so that the user can view the image change effect in real time.

[0144] Optionally, after the electronic device processes the image according to the second resolution, the electronic device displays the image processed according to the second resolution.

[0145] For example, if an electronic device takes 160ms to process an image with a resolution of 4000*4000, and 1 second = 1000ms, then the frame rate in the prior art should be 1000 / 160 = 6.25 frames per second. In the technical solution of the present application, when it is determined that the user intends to quickly adjust the image, a resolution lower than 4000*4000 (such as 1000*1000) is used to process the image. If an electronic device takes 10ms to process an image with a resolution of 1000*1000, then the frame rate of the present application when quickly adjusting the image should be 1000 / 10 = 100 frames per second. That is, when a lower resolution is used to process images in the technical solution of the present application, more image frames are processed per second and the frame rate is higher.

[0146] For example, as shown in Table 2, when an electronic device processes a high-resolution image, the frame rate corresponding to the existing processing method (i.e., the frame rate before optimization) and the frame rate corresponding to the low-resolution processing method adopted in this application (i.e., the frame rate after optimization) are shown.

[0147] Table 2

[0148] As shown in Table 2, the frame rates corresponding to the low-resolution processing method adopted in this application are higher than the frame rates corresponding to the processing methods of the prior art.

[0149] For example, taking an enlarged high-resolution image as an example, FIG7(a) is a schematic diagram of an interface for an electronic device displaying an image processed according to a first resolution. FIG7(b) is a schematic diagram of an interface for an electronic device displaying an image processed according to a second resolution.

[0150] Through the above technical solution, the electronic device in the embodiment of the present application judges the user's intention based on the rate at which the user adjusts the attributes of the image, and determines the resolution to be used in the subsequent image processing process based on the user's intention. Specifically, when the user slides at a low speed, it is determined that the user's intention is a low-speed adjustment, and the electronic device selects the image's own resolution to process the image to achieve fine-tuning of the local details of the image, thereby improving the user's controllability over the image details, making the adjusted image more in line with user needs, and improving the user experience. When the user slides quickly, it is determined that the user's intention is a fast adjustment, and the electronic device selects a resolution lower than the image's own resolution to achieve actual adjustment of the overall image effect, thereby reducing the amount of data, optimizing system performance, improving the overall frame rate and processing effect of the image, avoiding problems such as image freezes, stuttering, or asynchrony, and improving the user experience.

[0151] It is understandable that for high-resolution images, the existing technology previews the image processing effect by lowering the resolution first, but the resolution used when processing the image is still high-resolution, and the image details cannot be observed or adjusted. However, in this application, when the electronic device determines that the user intends to adjust the image at a low speed based on the sliding speed, it uses the image's own resolution to process the image, displays the image detail processing effect, and adds the function of controlling the image details. When the electronic device determines that the user intends to adjust the image quickly based on the sliding speed, it uses a resolution lower than the image's own resolution to process the image, which can reduce the amount of data and calculation, thereby reducing the system load, improving system performance, and optimizing the frame rate.

[0152] As shown in FIG8 , a flow chart of another image processing method provided in an embodiment of the present application is applied to an electronic device. The method includes the following steps:

[0153] S801: The electronic device displays a first interface, where the first interface is used to display a first image.

[0154] In the embodiment of the present application, the first interface is an interface for displaying the first image in the electronic device.

[0155] The first image may be an image taken by the user through the electronic device, the first image may also be an image drawn by the user in the electronic device, the first image may also be an image obtained by the user through the network or an external storage device, the first image may also be an image captured by the user when browsing videos, documents, etc., or the first image may also be an image stored in the electronic device itself.

[0156] The first image may be an image with a resolution greater than or equal to a preset threshold, or may be an image with a resolution less than a preset threshold.

[0157] The first image may be a whole image that has not been enlarged or reduced, an enlarged partial image, or a reduced image.

[0158] S802: The electronic device detects a sliding operation of the user on the first interface and obtains a first speed of the sliding operation, where the sliding operation is used to change an attribute of the first image.

[0159] In an embodiment of the present application, the electronic device detects a user operation, and if a sliding operation is detected when the user changes the attribute of the first image, a first speed of the sliding operation is obtained.

[0160] In some examples, obtaining the first speed of the sliding operation includes: determining the first speed based on the sliding distance per unit time; or determining the first speed based on the number of pixels slid per unit time; or determining the first speed based on the sliding distance and sliding time.

[0161] In some examples, the properties of the first image include: contrast, brightness, saturation, hue, color balance, blur, sharpness, exposure, color temperature, highlights, and shadows.

[0162] It is understandable that the specific implementation of S802 is as described in S601 above, which will not be repeated here.

[0163] S803: When the first speed meets a preset condition, the electronic device processes the first image at a first resolution.

[0164] In an embodiment of the present application, the preset condition includes a sliding speed being less than a preset speed, where the preset speed is a predetermined minimum threshold for a user to quickly adjust image attributes. The first resolution is a resolution of the first image.

[0165] In some embodiments, when the first speed is less than a preset speed, the electronic device determines that the first speed meets a preset condition and determines that the user's intention is to quickly adjust image attributes, and then the electronic device processes the first image at the first resolution.

[0166] It is understandable that the specific implementation of S803 is as described in S602 above, which will not be repeated here.

[0167] S804: When the first speed does not meet a preset condition, the electronic device processes the first image using a second resolution, where the first resolution is different from the second resolution.

[0168] In the embodiment of the present application, the second resolution is smaller than the first resolution.

[0169] In some embodiments, when the first speed is greater than or equal to the preset speed, the electronic device determines that the first speed does not meet the preset conditions and determines that the user's intention is to quickly adjust the image attributes, and the electronic device processes the first image at the second resolution.

[0170] In some embodiments, when the first speed does not meet a preset condition, the electronic device obtains a preset rule and determines a second resolution based on the preset rule and the first resolution. The preset rule may be to process the first resolution according to a preset ratio to obtain the second resolution, where the preset ratio is a value greater than 0 and less than 1.

[0171] It is understandable that the specific implementation of S804 is as described in S603 above, which will not be repeated here.

[0172] In this way, when the electronic device detects that the user is adjusting the properties of an image, it selects different processing methods based on the user's sliding speed to process the image. When the user slides slowly, the image is processed at the first resolution, showing image details in real time and enriching the display effect. This improves the user's control over image details and enhances the user experience. When the user slides quickly, the image is processed at a second resolution lower than the first resolution, showing the image changes realistically, quickly and smoothly, reducing the amount of data, improving the image frame rate and processing effect, eliminating lags, and improving the user experience.

[0173] The above mainly introduces the solution provided by the embodiment of the present application from the perspective of method. In order to realize the above functions, it includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily appreciate that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in a hardware or computer software driven hardware manner depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

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

[0175] Based on the same inventive concept, an embodiment of the present application provides an image processing device. The image processing device provided in the embodiment of the present application is applied to the electronic device shown in Figure 4. Figure 9 is a schematic diagram of the structure of an image processing device provided in an embodiment of the present application. The image processing device can be used to implement the methods described in the above method embodiments. Exemplarily, the image processing device may include: a processing module 901, an acquisition module 902, and a display module 903.

[0176] The processing module 901 is configured to execute processing functions that support the image processing apparatus in executing any of the items in Figures 6-8. In an embodiment of the present application, the image processing module is configured to process the first image at a first resolution when the first speed satisfies a preset condition. The image processing module is further configured to process the first image at a second resolution when the first speed does not satisfy the preset condition, where the first resolution is different from the second resolution.

[0177] The acquisition module 902 is configured to execute an acquisition function that supports the image processing apparatus in executing any of the items in Figures 6 to 8. In an embodiment of the present application, the acquisition module 902 is configured to detect a user's sliding operation on the first interface and acquire a first speed of the sliding operation, where the sliding operation is used to change the attributes of the first image.

[0178] The display module 903 is used to perform the display function of supporting the image processing apparatus to perform any one of Figures 6 to 8. In the embodiment of the present application, the display module 903 is used to display a first interface, and the first interface is used to display a first image.

[0179] The technical effects of the image processing device shown in FIG9 can be referenced to the technical effects of the method described in the above method embodiment, and will not be repeated here. The processing module 901 involved in the image processing device shown in FIG9 can be implemented by a processor or processor-related circuit components, and can be a processor or processing module. The display module 903 can be implemented by display-related components.

[0180] An embodiment of the present application also provides a chip system, as shown in Figure 10, the chip system 1000 includes at least one processor 1001 and at least one interface circuit 1002. As an example, when the chip system 1000 includes a processor and an interface circuit, the processor may be the processor 1001 shown in the solid box in Figure 10 (or the processor 1001 shown in the dotted box), and the interface circuit may be the interface circuit 1002 shown in the solid box in Figure 10 (or the interface circuit 1002 shown in the dotted box). When the chip system 1000 includes two processors and two interface circuits, the two processors include the processor 1001 shown in the solid box in Figure 10 and the processor 1001 shown in the dotted box, and the two interface circuits include the interface circuit 1002 shown in the solid box in Figure 10 and the interface circuit 1002 shown in the dotted box. This is not limited.

[0181] The processor 1001 and the interface circuit 1002 can be interconnected via a line. For example, the interface circuit 1002 can be used to receive signals. For another example, the interface circuit 1002 can be used to send signals to other devices (such as the processor 1001). Exemplarily, the interface circuit 1002 can read instructions stored in the memory and send the instructions to the processor 1001. When the instructions are executed by the processor 1001, the various steps in the above embodiment can be performed. Of course, the chip system can also include other discrete devices, which is not specifically limited in the embodiments of the present application.

[0182] Optionally, there may be one or more processors in the chip system. The processor may be implemented in hardware or software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, etc. When implemented in software, the processor may be a general-purpose processor that is implemented by reading software code stored in a memory.

[0183] Optionally, the chip system may further include a memory (as shown in FIG10 ), which may be one or more memories. The memory may be integrated with the processor or may be separately provided with the processor, which is not limited in this application. Exemplarily, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or may be provided on different chips. This application does not specifically limit the type of memory or the arrangement of the memory and the processor.

[0184] Exemplarily, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a microcontroller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0185] It should be understood that each step in the above method embodiment can be completed by hardware integrated logic circuits in a processor or by software instructions. The method steps disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware processor, or by a combination of hardware and software modules in a processor.

[0186] An embodiment of the present application further provides a computer storage medium, in which computer instructions are stored. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the above method embodiment.

[0187] Computer-readable storage media include, but are not limited to, any of the following: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and other media that can store program code.

[0188] An embodiment of the present application provides a computer program product, which includes: a computer program or instructions, which, when executed on a computer, enables the computer to execute the method described in the above method embodiment.

[0189] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the device to execute the methods in the above-mentioned method embodiments.

[0190] In addition, an embodiment of the present application also provides a system, which can specifically be a chip, component or module, and the system may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the system is running, the processor can execute the computer-executable instructions stored in the memory to enable the system to execute the methods in the above-mentioned method embodiments.

[0191] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0192] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner or can be implemented by a processor executing software instructions. The software instructions can be composed of corresponding software modules, and the software modules can be stored in a random access memory (RAM), a flash memory, a read-only memory, an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a register, a hard disk, a mobile hard disk, a compact disc read-only memory (CD-ROM) or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC).

[0193] Through the description of the above embodiments, those skilled in the art will clearly understand that for the sake of convenience and brevity, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working processes of the above-mentioned systems, devices, and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0194] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The various embodiments can be combined with each other or referenced to each other without conflict. The device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0195] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

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

[0197] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0198] The above content is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. An image processing method, characterized in that: Applied to electronic equipment, the method includes: Displaying a first interface, where the first interface is used to display a first image; detecting a sliding operation of a user on the first interface, and obtaining a first speed of the sliding operation, wherein the sliding operation is used to change an attribute of the first image; When the first speed satisfies a preset condition, processing the first image at a first resolution; In a case where the first speed does not satisfy a preset condition, the first image is processed with a second resolution, the first resolution being different from the second resolution.

2. The method according to claim 1, characterized in that The first resolution is a resolution of the first image, and the second resolution is smaller than the first resolution.

3. The method according to claim 1 or 2, characterized in that The preset condition includes a sliding speed being less than a preset speed, where the preset speed is a predetermined minimum threshold value for the user to quickly adjust image attributes; The step of processing the first image at a first resolution when the first speed satisfies a preset condition includes: When the first speed is less than the preset speed, it is determined that the user intends to adjust image attributes slowly, and the first image is processed using the first resolution.

4. The method according to claim 1 or 2, characterized in that The preset condition includes a sliding speed being less than a preset speed, where the preset speed is a predetermined minimum threshold value for the user to quickly adjust image attributes; The step of processing the first image at a second resolution when the first speed does not meet a preset condition includes: When the first speed is greater than or equal to the preset speed, it is determined that the user intends to quickly adjust image attributes, and the first image is processed using the second resolution.

5. The method according to any one of claims 1 to 4, characterized in that The step of processing the first image at a second resolution when the first speed does not meet a preset condition includes: When the first speed does not meet the preset condition, obtaining a preset rule; determining the second resolution based on the preset rule and the first resolution; The first image is processed through the second resolution.

6. The method according to claim 5, characterized in that The preset rule is to process the first resolution according to a preset ratio to obtain the second resolution, and the preset ratio is a value greater than 0 and less than 1.

7. The method according to any one of claims 1 to 6, characterized in that The obtaining the first speed of the sliding operation includes: determining the first speed according to the sliding distance per unit time; or, Determining the first speed according to the number of pixels sliding over the unit time; or, The first speed is determined according to the sliding distance and the sliding time.

8. The method according to any one of claims 1 to 7, characterized in that The attributes of the first image include: contrast, brightness, saturation, hue, color balance, blur, sharpness, exposure, color temperature, highlights, and shadows.

9. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method according to any one of claims 1 to 8.

10. A chip system, characterized in that: The method comprises at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and the at least one processor executes the instructions, and the at least one processor executes the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is caused to perform the method according to any one of claims 1 to 8.

12. A computer program product, characterized in that The computer program product comprises: a computer program or instructions, and when the computer program or instructions are run on a computer, the computer is caused to perform the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Image processing method and electronic equipment

    CN120723122A

  • Direct multi-exposure fusion parallel acceleration method based on OpenCL

    CN107292804A

  • User sliders for simplified adjustment of images

    CN107408401A

  • Video enhancement method, device, electronic device and storage medium

    CN109168065A

  • Systems for visualizing images using explicit quality prioritization of a feature(s) in multidimensional image data sets, related methods and computer products

    US20080150937A1