Image display method, device, electronic device and storage medium

By changing the pixel values ​​of pixel points in the image to achieve weathering effect, the problem of lack of sensory and visual perception of time information display in the prior art is solved, and the user's perception effect of time information is improved.

CN113888396BActive Publication Date: 2025-04-22VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111163168.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-04-22
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

The methods of reflecting time in the prior art lack sensory and visual perception effects, making it difficult for users to intuitively perceive the time information in the electronic device.

Method used

By obtaining the target duration associated with the displayed image, the pixel values ​​of the target number of pixels in the image are changed according to the time period to achieve the weathering effect of the image, and the weathering effect performed by natural years over time is simulated.

Benefits of technology

The sensoryness of the duration display method and the user's visual perception of the duration information are improved, so that the user can naturally perceive the duration information in the electronic device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113888396B_ABST
    Figure CN113888396B_ABST
Patent Text Reader

Abstract

The present application discloses an image display method, device, equipment and storage medium, which belongs to the field of image processing. The image display method includes: displaying a first image; obtaining a target duration; wherein the target duration includes at least one of the usage duration of an electronic device, the usage duration of a target application in the electronic device, and the existence duration of a target object in the electronic device; according to the target duration, changing the pixel values ​​of a target number of pixels in the first image to achieve a weathering effect of the first image; wherein the target duration corresponds to the target number.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and specifically relates to an image display method, device, equipment and storage medium. Background Art

[0002] With the popularity of electronic devices, people are increasingly inclined to use electronic devices, such as mobile phones or computers, to meet various needs of life, such as working, entertainment or storing photos, etc. During the operation of electronic devices, users often need to know some duration information, such as the usage time of the device, the usage time of the application, the storage time of the photos, etc. How to intuitively reflect the duration information has become a problem that needs to be solved.

[0003] At present, the way to reflect duration information in electronic devices is often to display the corresponding duration numbers or time numbers on the screen, and the user then calculates the duration based on the time numbers. However, the method of reflecting duration through digital display lacks sensory and visual perception effects. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an image display method, device, equipment and storage medium, which can solve the problem that the way of reflecting time length in the prior art lacks sensory and visual perception effects.

[0005] In a first aspect, an embodiment of the present application provides an image display method, the method comprising:

[0006] displaying a first image;

[0007] Acquire a target duration; wherein the target duration includes at least one of a usage duration of the electronic device, a usage duration of a target application in the electronic device, and a presence duration of a target object in the electronic device;

[0008] According to the target duration, pixel values ​​of a target number of pixel points in the first image are changed to achieve a weathering effect of the first image; wherein the target duration corresponds to the target number.

[0009] In a second aspect, an embodiment of the present application provides an image display device, the device comprising:

[0010] A display module, configured to display a first image;

[0011] An acquisition module, configured to acquire a target duration; wherein the target duration includes at least one of a usage duration of the electronic device, a usage duration of a target application in the electronic device, and an existence duration of a target object in the electronic device;

[0012] A processing module is used to change the pixel values ​​of a target number of pixel points in the first image according to the target duration to achieve a weathering effect of the first image; wherein the target duration corresponds to the target number.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the method of the first aspect.

[0016] In the embodiment of the present application, by obtaining the target duration associated with the displayed first image, and then changing the pixel values ​​of the target number of pixels in the first image according to the target duration, the pixel values ​​of different numbers of pixels in the first image can be changed based on different duration values ​​to achieve the weathering effect of the first image. Therefore, the embodiment of the present application can simulate the weathering effect of natural years over time through the degree of change of the pixel value of the second image, so that the user can naturally perceive the duration information in the electronic device, thereby improving the sensory nature of the duration display method and the user's visual perception effect of the duration information. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is one of the flowcharts of an image display method according to an exemplary embodiment;

[0018] Figure 2 is a second flowchart of an image display method according to an exemplary embodiment;

[0019] Figure 3 is a schematic diagram of image edge detection according to an exemplary embodiment;

[0020] Figure 4 A third flowchart of an image display method according to an exemplary embodiment;

[0021] Figure 5 is a schematic diagram showing weathering points of each pixel row according to an exemplary embodiment;

[0022] Figure 6A fourth flowchart of an image display method according to an exemplary embodiment;

[0023] Figure 7a is a schematic diagram showing a change in pixel value of a pixel point according to an exemplary embodiment;

[0024] Figure 7b is a schematic diagram showing a weathering effect of a desktop wallpaper according to an exemplary embodiment;

[0025] Figure 8 is a structural block diagram of an image display device according to an exemplary embodiment;

[0026] Fig. 9 is a structural block diagram of an electronic device according to an exemplary embodiment;

[0027] Fig.10 It is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application. DETAILED DESCRIPTION

[0028] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0029] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0030] The image display provided by the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0031] The image display method provided in the present application can be applied to a scenario where the image displayed in an electronic device is optimized to achieve an intuitive representation of time. In addition, the image display method provided in the embodiment of the present application can be executed by an image display device or a control module in the image display device for executing the image display method. In the embodiment of the present application, the image display method provided in the embodiment of the present application is described by taking the image display device executing the image display method as an example.

[0032] Figure 1 The figure is a flow chart showing an image display method according to an exemplary embodiment.

[0033] like Figure 1 As shown, the image display method may include the following steps:

[0034] Step 110: display the first image.

[0035] The first image in the embodiment of the present application may be a desktop wallpaper currently displayed in the electronic device, an icon of an application in the electronic device, or an image stored in the electronic device.

[0036] Step 120, obtaining the target duration.

[0037] Here, the target duration includes at least one of the usage duration of the electronic device, the usage duration of the target application in the electronic device, and the existence duration of the target object in the electronic device. The target object may include stored images, files, applications, etc. In addition, the electronic device may be, for example, a mobile phone, a tablet computer, or other device that has the function of displaying or storing images.

[0038] In an optional embodiment, after the above step 110 and before the above step 120, the image display method provided in the embodiment of the present application may further include:

[0039] Receiving a first input for enabling an image weathering mode;

[0040] In response to the first input, an association relationship between the first image and the target duration is established.

[0041] Here, the user can turn on the image weathering mode in the system settings through a preset operation when the first image is displayed in the electronic device, and adaptively select the required bound data and the corresponding time unit, or after turning on the image weathering mode, the image display device automatically assigns pre-set data and the corresponding time unit to the corresponding first image, and then determines the duration corresponding to the bound data as the target duration, and determines the corresponding time unit as the weathering period.

[0042] In a specific example, the user can enter the desktop wallpaper settings, choose to turn on the "wallpaper weathering mode", and check the data and time units to be bound. For example, if you check "mobile phone usage time", the target time is the usage time of the mobile phone, and the time unit is "one day", the preset weathering period is 24 hours.

[0043] Therefore, by pre-operating to turn on the image weathering mode, an association relationship between the first image and the target duration is established, which facilitates subsequent pixel value change processing of the first image based on the target duration, thereby improving the user's selectivity of the duration information bound to the first image.

[0044] Step 130 : changing the pixel values ​​of a target number of pixels in the first image according to the target duration, so as to achieve a weathering effect of the first image.

[0045] The target duration corresponds to the target number. That is, as the target duration increases, the number of pixels processed by pixel value change increases, thereby achieving an effect similar to image weathering through the dynamic change of the pixel values ​​of the pixels in the first image. The image obtained after the pixel value change process can intuitively display the size of the target duration compared to the original first image, allowing the user to naturally perceive the current corresponding duration.

[0046] In this way, by obtaining the target duration associated with the displayed first image, and then changing the pixel values ​​of the target number of pixels in the first image according to the target duration, the pixel values ​​of different numbers of pixels in the first image can be changed based on different duration values ​​to achieve the weathering effect of the first image. Therefore, the embodiment of the present application can simulate the weathering effect of natural years over time through the degree of change of the pixel value of the second image, so that the user can naturally perceive the duration information in the electronic device, thereby improving the sensory nature of the duration display method and the user's visual perception effect of the duration information.

[0047] In an optional embodiment, before step 130, Figure 2 As shown, the above-mentioned image display method may also include:

[0048] Step 210: Acquire a closed area in the first image, and use the closed area as a weathered area of ​​the first image.

[0049] The closed area may be a closed area obtained by performing edge detection and segmentation on the first image. In a specific example, when the first image is a desktop wallpaper, such as Figure 3 As shown, the desktop wallpaper may include closed area 31, closed area 32, closed area 33 and other closed areas. In addition, in the embodiment of the present application, the closed area can be used as the weathered area of ​​the first image, so that the pixel value of the first image can be changed in units of the weathered area.

[0050] Specifically, edge segmentation points can be screened out through the differences between the grayscale values ​​of each pixel in the first image, and the first image can be segmented based on the edge segmentation points to obtain at least one closed area as a weathered area; edge detection can also be performed through a preset edge detection algorithm to identify more significant edge segmentation points in the first image, and the first image can be segmented based on the edge segmentation points to obtain at least one closed area as a weathered area.

[0051] In a specific example, taking the first image as a desktop wallpaper, the information contained in the desktop wallpaper can be converted into grayscale values, and the grayscale average value P of the entire desktop wallpaper can be calculated through the grayscale values ​​of all pixels in the desktop wallpaper. In some embodiments, the traversal can be performed in units of pixel rows or pixel columns, which is not limited here. Assuming that in units of pixel rows, there are adjacent pixel a and pixel b in the same row of pixels, if the grayscale difference between the two is greater than or equal to P, then mark the pixel a and pixel b with the smaller gray value as the segmentation point. Based on this, mark all the segmentation points in the desktop wallpaper, connect the segmentation points in sequence, and then you can get the following: Figure 3 A plurality of closed areas are shown including closed area 31 , closed area 32 and closed area 33 .

[0052] In one embodiment, if there are scattered segmentation points in the closed area, they can be eliminated to ensure that at least one closed area is accurately obtained. Figure 3 As shown, the partial area 34 in the closed area 31 includes a plurality of scattered segmentation points, which may be eliminated or ignored to ensure the integrity of the determined closed area 31 .

[0053] Accordingly, continue as Figure 2 As shown, the above step 130 may also include step 220 and step 230, which are specifically as follows:

[0054] Step 220: determining a regional weathering rate corresponding to the weathered area according to the number of pixels in the weathered area.

[0055] The weathering rate may be the speed of performing pixel value change processing, that is, the execution interval of each pixel point performing the pixel value change operation. In the case where there are multiple weathering areas, each weathering area may correspond to a weathering rate, and the weathering rates of different weathering areas may be the same or different, which is not limited here. The greater the weathering rate, the more pixel points perform the pixel value change operation per unit time, and vice versa, the fewer pixel points perform the pixel value change operation per unit time.

[0056] Here, the weathering rate corresponding to each weathering area can be marked by pre-operation, or the weathering rate corresponding to each weathering area can be obtained by calculation based on the weathering cycle corresponding to the target duration. The specific method of determining the weathering rate is not limited here.

[0057] Step 230 , changing the pixel values ​​of a target number of pixel points in the weathering area according to the target duration and the regional weathering rate, so as to achieve the weathering effect of the first image.

[0058] In the embodiment of the present application, the pixel points to be subjected to the pixel value change operation corresponding to the target duration can be determined according to the weathering rate corresponding to each weathering area, and then the weathering effect of the first image can be achieved by changing the pixel values ​​of these pixel points. Here, the target number is the number of pixel points whose pixel values ​​corresponding to the weathering area are changed, and the target number corresponds to the target duration. The longer the target duration, the greater the target number.

[0059] In an optional implementation, the weathering area includes multiple weathering areas, and the target duration is the usage duration corresponding to multiple application programs in the electronic device, wherein different weathering areas correspond to the usage duration of different application programs.

[0060] For example, when a pixel value change process is performed on a weathered area in the first image, the pixel value change process can be performed on the pixels in the weathered area in sequence based on the usage time of the application corresponding to the weathered area and the corresponding regional weathering rate. Based on this, by performing different speed processing on multiple weathered areas in the first image according to different reference time lengths, a first image with a weathering effect can be obtained.

[0061] In a specific example, it is assumed that the weathering rates of the weathering areas A, B and C included in the desktop wallpaper are V A 、V B 、V C , the applications corresponding to the three weathered areas are x, y, and z respectively, then the pixel values ​​of the weathered area A, the weathered area B, and the weathered area C are changed according to the usage time corresponding to the application x, y, and z, respectively, so as to obtain the first image with weathering effect.

[0062] In this way, by corresponding different weathering areas to different application usage durations, users can more intuitively feel the usage of each application, thereby improving user experience.

[0063] Thus, after determining at least one weathered region in the first image, the weathered regions in the first image can be processed according to the regional weathering rates corresponding to each weathered region, thereby obtaining a second image. In this way, different weathered regions can present different degrees of weathering effects based on different weathering rates, making the sensory experience stronger and improving the visual perception of the user.

[0064] Based on this, in another optional implementation, the above-mentioned step 130 may specifically include:

[0065] Determine the row weathering rate corresponding to each pixel row in the weathering area according to the preset weathering period and the number of pixel points corresponding to each pixel row in the weathering area;

[0066] According to the target duration and the row weathering rate, the pixel values ​​of a target number of pixels in each pixel row are changed to achieve the weathering effect of the first image.

[0067] Here, in each weathering area, different pixel rows may correspond to different processing rates, which can be specifically determined according to the preset weathering cycle and the number of pixels in the pixel row. Among them, the preset weathering cycle can be a weathering cycle pre-set based on actual needs, which can be a bound time unit, such as 24 hours or 30 days. Specifically, different weathering areas can correspond to the same preset weathering cycle or different preset weathering cycles, which is not limited here. In addition, the target number here can be the number of pixel points whose pixel values ​​corresponding to each pixel row in the weathering area have changed. The target number corresponds to the target duration. The longer the target duration, the greater the target number.

[0068] Exemplarily, when the target duration includes the usage duration of the electronic device and the usage duration of an application in the electronic device, the preset weathering period can be set to 24 hours; when the target duration includes the existence duration of the target object in the electronic device, the preset weathering period can be set to 30 days.

[0069] In a specific example, assuming that the preset weathering cycle is one day, i.e. 24 hours, and a pixel row in a weathering area in the desktop wallpaper includes 50 pixels, the weathering rate corresponding to the pixel row is one pixel every 0.48 hours. It can also be understood that the pixel value of the pixel row will change by one pixel every 0.48 hours of using the mobile phone or using the application corresponding to the weathering area for 0.48 hours. In other words, the binding time of each pixel in the pixel row is 0.48 hours.

[0070] In addition, in one embodiment, the corresponding image will restart weathering every preset weathering period. Alternatively, when the duration reaches the preset weathering period, the corresponding image or application program may be deleted.

[0071] In a specific example, suppose that the desktop wallpaper is processed by changing the pixel value based on the length of time the phone is used, and the preset weathering cycle is set to one day, then the desktop wallpaper will weather from zero every day. Suppose that the application is processed by changing the pixel value based on the length of time it has not been used in the phone, and the preset weathering cycle is set to one month, then during the weathering process, the application will be continuously eroded until it is uninstalled. Suppose that the images stored in the album are processed by changing the pixel value based on the length of time they have been in the phone, and the preset weathering cycle is set to one month, then during the weathering process, the image will be continuously eroded until it is deleted.

[0072] Thus, by presetting the weathering cycle and the number of pixels corresponding to each pixel row in the weathering area, the weathering rate of each pixel row is determined, so that the pixel value change processing can be performed on the same weathering area at different weathering rates, and then the pixel value change processing can be performed on at least one weathering area included in the first image to achieve the weathering effect of the first image. In this way, by sequentially changing the pixel values ​​of the pixels in each pixel row in units of pixel rows, the weathering effect of natural years over time can be simulated more meticulously, thereby improving the sensory nature of the duration display method and the visual perception effect of the user on the duration information.

[0073] Based on the above embodiments, in one possible embodiment, as Figure 4 As shown, the above step of changing the pixel values ​​of the target number of pixels in each pixel row according to the target duration and the row weathering rate to achieve the weathering effect of the first image may specifically include steps 410-430, which are specifically as follows:

[0074] Step 410: determine the weathering points corresponding to the respective pixel rows in the weathering area.

[0075] The weathering point is the first pixel point in each pixel row that starts weathering, and each pixel row in each weathering area has a corresponding weathering point. Figure 5 As shown, the blank squares in the figure are weathering points corresponding to certain pixel rows in the corresponding weathering area, and the weathering points of other pixel rows are not shown here.

[0076] In an optional implementation, each pixel row can be traversed from a preset direction, for example, from left to right, or from right to left, and the grayscale value of each pixel in the pixel row can be arranged in a preset order, for example, the traversed pixels are arranged from large to small according to the grayscale value, and then the pixel arranged in the middle position is selected as the weathering point. If there are multiple pixels with the same grayscale value in the middle position, the pixel closest to the edge of the screen can be selected as the weathering point.

[0077] Based on this, steps 420 and 430 are performed on each pixel row in each weathered area to achieve the weathering effect of the first image, as shown below:

[0078] Step 420 , taking the target weathering point as the starting pixel point, and determining the target pixel point whose pixel value is to be changed in the target pixel row according to the target duration and the target row weathering rate.

[0079] Here, the target weathering point in each target pixel row can be used as the starting pixel point, and based on the target duration and the target row weathering rate corresponding to the target pixel row, the target pixel point whose pixel value needs to be changed in the target pixel row is determined, and the pixel value of the target pixel point is changed to achieve the weathering effect of the weathering area.

[0080] Step 430 : changing the pixel value of the target pixel point according to the pixel value of the target pixel point and the pixel values ​​of the adjacent pixels corresponding to the target pixel point.

[0081] Specifically, after determining the target pixel point, the pixel value of the target pixel point after the pixel value is changed can be calculated based on the pixel value of the target pixel point and the pixel value of the adjacent pixel point corresponding to the target pixel point, and then the pixel value of the target pixel point is changed, so that the user can intuitively feel the change of time through the change of the pixel value. Among them, the adjacent pixel point can be a pixel point adjacent to the target pixel point and whose pixel value has been changed, of course, it can also be one or more other adjacent pixel points, which is not limited here.

[0082] In order to better achieve the weathering effect of the first image, in an optional implementation, the above step 430 may specifically include:

[0083] The chromaticity value of the target pixel is changed to the average value of the chromaticity value and the chromaticity value of the adjacent pixel points;

[0084] The saturation value of the target pixel is changed to the average value of the saturation value and the saturation value of the adjacent pixel points;

[0085] When the brightness value of the target pixel is less than 100%, the brightness value of the target pixel is changed to the sum of the brightness value and the average value of the brightness values ​​of adjacent pixels and a preset value.

[0086] Here, the pixel value of the target pixel point can be changed in the HSB color mode, where "H" represents the chromaticity value, "S" represents the saturation value, and "B" represents the brightness value.

[0087] Specifically, after determining the target pixel, it is necessary to calculate the average chromaticity value between the target pixel and the adjacent pixels as the chromaticity value of the target pixel after the change; and, calculate the average saturation value between the target pixel and the adjacent pixels as the saturation value of the target pixel after the change; and, when the brightness value of the target pixel is less than 100%, that is, when the brightness value of the target pixel has not reached the maximum value, calculate the average brightness value between the target pixel and the adjacent pixels, and use the sum of the average brightness value and the preset value as the brightness value of the target pixel after the change.

[0088] In a specific example, suppose Figure 7a The pixel value of pixel A1 in is (H1, S1, B1), and the pixel value of pixel A0 adjacent to it and subjected to pixel value change processing is (H0, S0, B0). Then the pixel value of pixel A1 after change includes: chromaticity value (H1+H0) / 2, saturation value (S1+S0) / 2, brightness value (B1+B0) / 2+5%. In this way, the pixel value of pixel A1 can be obtained. And so on, until the brightness value of the pixel reaches 100%, the brightness value of the pixel will no longer be changed, but the chromaticity value and saturation value of the pixel can continue to change, which will not be repeated here.

[0089] In this way, by updating the pixel value of the target pixel to be changed according to the average chromaticity value, average saturation value and average brightness value of the target pixel to be changed and adjacent pixels, the weathering effect of the image can be improved.

[0090] Therefore, by finding the weathering points corresponding to each pixel row, and then taking the weathering points of each pixel row as the starting point, determining the current target pixel points to be changed in each pixel row according to the row weathering rates corresponding to each pixel row, and updating the pixel values ​​of the current target pixel points to be changed according to the pixel values ​​of the adjacent pixels, the effect of real weathering can be closer, the authenticity of the image weathering effect can be improved, and the user's sensory experience can be enhanced.

[0091] In addition, in an optional embodiment, Figure 6 As shown, the above step 420 may specifically include steps 610-630, which are specifically as follows:

[0092] Step 610: Obtain the first duration of the last pixel value changing operation performed in the target pixel row and the first pixel point at which the pixel value changing operation is performed.

[0093] Here, the first duration of the last pixel value change operation in each pixel row and the corresponding pixel point for performing the pixel value change operation can be obtained in real time. The first duration is characterized by a duration value such as a usage duration or an existence duration corresponding to the last pixel value change operation. The first pixel point is a pixel point for which the pixel value is changed when the usage or existence duration is the first duration.

[0094] Step 620: Determine a second time duration according to the first time duration and the target row weathering rate.

[0095] The second duration is a duration value such as the usage duration or the existence duration corresponding to the next pixel value change operation. For example, assuming that the first duration is 0.48 hours and the target row weathering rate is to process one pixel every 0.24 hours, it can be calculated that the duration corresponding to the next pixel value change operation is 0.72 hours, i.e., the second duration.

[0096] Step 630: When the currently acquired target duration is the second duration, a second pixel is determined according to the relative position relationship between the first pixel and the target weathering point, and the second pixel is used as the target pixel.

[0097] Among them, the first pixel point and the second pixel point in the target pixel row are respectively located on both sides of the target weathering point, and the second pixel point is the pixel point on the current side that has not performed the pixel value change operation and is closest to the target weathering point.

[0098] Specifically, when the currently acquired target duration is the second duration value, based on the relative position relationship between the first pixel point and the target weathering point, if the first pixel point is located on the left side of the target weathering point, then on the right side of the target weathering point, a second pixel point that has not performed a pixel value change operation and is closest to the target weathering point is selected, and the second pixel point is used as the target pixel point.

[0099] In a specific example, Figure 7aAs shown, if pixel A0 is a weathered point, and pixel A1 has already performed a pixel value change operation, and assuming that the last pixel point that performed a pixel value change operation was pixel A2, then when the cumulative usage time of the current application reaches the point where the pixel value change operation can be performed, it can be determined that the pixel point to be changed is A3. Similarly, the next time it can be determined that the pixel point to be changed is A4, until all the pixels included in the pixel row within the weathered area have performed a pixel value change operation. In the case where the first image is a desktop wallpaper, the effect diagram obtained after all pixels have performed a pixel value change operation can be shown as follows: Figure 7b shown.

[0100] Therefore, by taking the weathering point as the symmetrical point and selecting the target pixel points to be changed on both sides of the weathering point in turn to perform the pixel value changing operation, the image pixel value changing processing process can be made more in line with the actual weathering process, thereby further improving the weathering effect of the image.

[0101] In addition, in an optional implementation, the pixel value of the image stored in the electronic device can also be changed to achieve the weathering effect of the image. Of course, based on the image display method provided in the embodiment of the present application, the pixel value of the icon of the application in the electronic device can also be changed. When the application is not used for 30 consecutive days, the corresponding icon can be gradually eroded by the pixel value change process until the application is uninstalled. In this way, the memory pressure of the electronic device is alleviated.

[0102] In summary, based on the same inventive concept, the present application also provides an image display device. Figure 8 The image display device provided in the embodiment of the present application is described in detail.

[0103] Figure 8 The figure is a structural block diagram of an image display device according to an exemplary embodiment.

[0104] like Figure 8 As shown, the image display device 800 includes:

[0105] A display module 810, configured to display a first image;

[0106] The acquisition module 820 is used to acquire the target duration; wherein the target duration includes at least one of the usage duration of the electronic device, the usage duration of the target application in the electronic device, and the existence duration of the target object in the electronic device;

[0107] The processing module 830 is used to change the pixel values ​​of a target number of pixel points in the first image according to the target duration to achieve a weathering effect of the first image; wherein the target duration corresponds to the target number.

[0108] The image display device 800 is described in detail below, as follows:

[0109] In one embodiment, the image display device 800 further includes:

[0110] A region acquisition module, used for acquiring a closed region in the first image before changing the pixel values ​​of a target number of pixel points in the first image according to a target duration to achieve a weathering effect of the first image, and using the closed region as the weathering region of the first image;

[0111] The processing modules include:

[0112] A first determination submodule is used to determine a regional weathering rate corresponding to the weathering area according to the number of pixels in the weathering area;

[0113] The first processing submodule is used to change the pixel values ​​of a target number of pixel points in the weathering area according to the target duration and the regional weathering rate, so as to achieve the weathering effect of the first image.

[0114] In one embodiment, the processing module 830 includes:

[0115] A second determination submodule is used to determine the row weathering rate corresponding to each pixel row in the weathering area according to a preset weathering period and the number of pixel points in each pixel row in the weathering area;

[0116] The second processing submodule is used to change the pixel values ​​of a target number of pixel points in each pixel row according to the target duration and the row weathering rate, so as to achieve the weathering effect of the first image.

[0117] In one embodiment, the second processing submodule includes:

[0118] A weathering point determination unit, used to determine the weathering points corresponding to each pixel row in the weathering area;

[0119] A pixel value processing unit, configured to perform the following steps on each pixel in the weathered area to achieve a weathering effect of the first image;

[0120] Wherein, the pixel value processing unit includes:

[0121] The pixel point determination subunit is used to determine the target pixel point whose pixel value is to be changed in the target pixel row based on the target duration and the target row weathering rate, taking the target weathering point as the starting pixel point; wherein the target pixel row is any pixel row in the target weathering area in the first image, the target weathering area is any weathering area in the first image, the target weathering point is the weathering point corresponding to the target pixel row, and the target row weathering rate is the row weathering rate corresponding to the target pixel row;

[0122] The pixel value changing subunit is used to change the pixel value of the target pixel point according to the pixel value of the target pixel point and the pixel values ​​of the adjacent pixels corresponding to the target pixel point.

[0123] In one embodiment, the pixel value changing subunit is specifically used for:

[0124] The chromaticity value of the target pixel is changed to the average value of the chromaticity value and the chromaticity value of the adjacent pixel points;

[0125] The saturation value of the target pixel is changed to the average value of the saturation value and the saturation value of the adjacent pixel points;

[0126] When the brightness value of the target pixel is less than 100%, the brightness value of the target pixel is changed to the sum of the brightness value and the average value of the brightness values ​​of adjacent pixels and a preset value.

[0127] In one embodiment, the pixel point determination subunit is specifically used for:

[0128] Obtaining the first duration value of the last pixel value change operation performed in the target pixel row and the first pixel point where the pixel value change operation was performed;

[0129] Determine a second time duration according to the first time duration and the target row weathering rate;

[0130] When the currently acquired target duration is the second duration, the second pixel point is determined according to the relative position relationship between the first pixel point and the target weathering point, and the second pixel point is used as the target pixel point; wherein the first pixel point and the second pixel point in the target pixel row are respectively located on both sides of the target weathering point, and the second pixel point is the pixel point on the current side that has not performed a pixel value changing operation and is closest to the target weathering point.

[0131] In one of the embodiments, the weathering areas involved above include multiple ones, and the target duration is the usage duration corresponding to multiple applications in the electronic device, wherein different weathering areas correspond to the usage duration of different applications.

[0132] In one embodiment, the image display device 800 further includes:

[0133] A receiving module, used for receiving a first input for starting an image weathering mode before displaying the first image;

[0134] The establishing module is used to establish an association relationship between the first image and the target duration in response to the first input.

[0135] Thus, by obtaining the target duration associated with the displayed first image, and then changing the pixel values ​​of the target number of pixels in the first image according to the target duration, the pixel values ​​of different numbers of pixels in the first image can be changed based on different duration values ​​to achieve the weathering effect of the first image. Thus, the embodiment of the present application can simulate the weathering effect of natural years over time through the degree of change of the pixel value of the second image, so that the user can naturally perceive the duration information in the electronic device, thereby improving the sensory nature of the duration display method and the user's visual perception effect of the duration information.

[0136] The image display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device can be a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0137] The image display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0138] The image display device provided in the embodiment of the present application can achieve Figure 1 To avoid repetition, the various processes implemented in the method embodiment of FIG. 7 are not described again here.

[0139] Alternatively, if Fig. 9 As shown, an embodiment of the present application also provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the above-mentioned image display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0140] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0141] Fig.10 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0142] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0143] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0144] Wherein, the display unit 1006 is used to display the first image;

[0145] Processor 1010 is used to obtain a target duration; and, according to the target duration, change the pixel values ​​of a target number of pixel points in the first image to achieve a weathering effect of the first image.

[0146] Thus, by obtaining the target duration associated with the displayed first image, and then changing the pixel values ​​of the target number of pixels in the first image according to the target duration, the pixel values ​​of different numbers of pixels in the first image can be changed based on different duration values ​​to achieve the weathering effect of the first image. Thus, the embodiment of the present application can simulate the weathering effect of natural years over time through the degree of change of the pixel value of the second image, so that the user can naturally perceive the duration information in the electronic device, thereby improving the sensory nature of the duration display method and the user's visual perception effect of the duration information.

[0147] Optionally, the processor 1010 is also used to obtain a closed area in the first image and use the closed area as a weathered area of ​​the first image; and determine a regional weathering rate corresponding to the weathered area based on the number of pixels in the weathered area; and change the pixel values ​​of a target number of pixels in the weathered area based on the target duration and the regional weathering rate to achieve the weathering effect of the first image.

[0148] Optionally, the processor 1010 is also used to determine the row weathering rate corresponding to each pixel row in the weathering area according to a preset weathering cycle and the number of pixel points in each pixel row in the weathering area; and change the pixel values ​​of a target number of pixel points in each pixel row according to the target duration and the row weathering rate to achieve the weathering effect of the first image.

[0149] Optionally, the processor 1010 is also used to determine the weathering points corresponding to each pixel row in the weathering area; perform the following steps on each pixel row in the weathering area to achieve the weathering effect of the first image: take the target weathering point as the starting pixel point, and determine the target pixel point whose pixel value is to be changed in the target pixel row according to the target duration and the target row weathering rate; wherein the target pixel row is any pixel row in the target weathering area in the first image, the target weathering area is any weathering area in the first image, the target weathering point is the weathering point corresponding to the target pixel row, and the target row weathering rate is the row weathering rate corresponding to the target pixel row; change the pixel value of the target pixel point according to the pixel value of the target pixel point and the pixel values ​​of the adjacent pixel points corresponding to the target pixel point.

[0150] Optionally, processor 1010 is also used to change the chromaticity value of the target pixel point to the average of the chromaticity value and the chromaticity value of the adjacent pixel points; and, to change the saturation value of the target pixel point to the average of the saturation value and the saturation value of the adjacent pixel points; and, when the brightness value of the target pixel point is less than 100%, to change the brightness value of the target pixel point to the sum of the average of the brightness value and the brightness values ​​of the adjacent pixel points and a preset value.

[0151] Optionally, processor 1010 is further used to obtain a first duration value when a pixel value changing operation was last performed in the target pixel row and a first pixel point on which the pixel value changing operation was performed; determine a second duration based on the first duration and the weathering rate of the target row; when the currently acquired target duration is the second duration, determine a second pixel point based on a relative position relationship between the first pixel point and the target weathering point, and use the second pixel point as the target pixel point; wherein the first pixel point and the second pixel point in the target pixel row are respectively located on both sides of the target weathering point, and the second pixel point is a pixel point on the current side pixel point that has not performed a pixel value changing operation and is closest to the target weathering point.

[0152] Therefore, the embodiment of the present application can simulate the weathering effect of nature over time, and based on the target duration, change the pixel value of the pixel point in the first image, so that the user can naturally perceive the duration information of the target duration in the electronic device, thereby improving the sensory nature of the duration display method and the user's visual perception effect of the duration information.

[0153] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0154] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned image display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0155] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. The present application embodiment further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run a program or instruction, implement the various processes of the above-mentioned image display method embodiment, and can achieve the same technical effect, to avoid repetition, it will not be repeated here.

[0156] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0157] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0158] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0159] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. An image display method, characterized in that: include: displaying a first image; Acquire a target duration; wherein the target duration includes at least one of a usage duration of the electronic device, a usage duration of a target application in the electronic device, and an existence duration of a target object in the electronic device; Acquire a closed area in the first image, and use the closed area as a weathered area of ​​the first image; Determining a regional weathering rate corresponding to the weathered area according to the number of pixels in the weathered area; According to the target duration and the regional weathering rate, pixel values ​​of a target number of pixel points in the weathering area are changed to achieve a weathering effect of the first image; wherein the target duration corresponds to the target number.

2. The method according to claim 1, characterized in that: The step of changing the pixel values ​​of a target number of pixel points in the weathering area according to the target duration and the regional weathering rate to achieve the weathering effect of the first image includes: Determining row weathering rates corresponding to respective pixel rows in the weathering area according to a preset weathering period and the number of pixel points in each pixel row in the weathering area; According to the target duration and the row weathering rate, pixel values ​​of a target number of pixels in each pixel row are changed to achieve a weathering effect of the first image.

3. The method according to claim 2, characterized in that The step of changing the pixel values ​​of a target number of pixel points in each pixel row according to the target duration and the row weathering rate to achieve the weathering effect of the first image includes: Determine the weathering points corresponding to each pixel row in the weathering area; Perform the following steps on each pixel row in the weathered area to achieve the weathering effect of the first image: Taking the target weathering point as the starting pixel point, determining the target pixel point in the target pixel row whose pixel value is to be changed according to the target duration and the target row weathering rate; wherein the target pixel row is any pixel row in the target weathering area in the first image, the target weathering area is any weathering area in the first image, the target weathering point is the weathering point corresponding to the target pixel row, and the target row weathering rate is the row weathering rate corresponding to the target pixel row; The pixel value of the target pixel point is changed according to the pixel value of the target pixel point and the pixel values ​​of adjacent pixels corresponding to the target pixel point.

4. The method according to claim 3, characterized in that The step of determining a target pixel point in a target pixel row whose pixel value is to be changed according to the target duration and the target row weathering rate includes: Acquire a first duration of the last pixel value changing operation performed in the target pixel row and a first pixel point at which the pixel value changing operation is performed; Determining a second duration according to the first duration and the target row weathering rate; When the target duration currently acquired is the second duration, a second pixel point is determined based on the relative position relationship between the first pixel point and the target weathering point, and the second pixel point is used as the target pixel point; wherein the first pixel point and the second pixel point in the target pixel row are respectively located on both sides of the target weathering point, and the second pixel point is the pixel point on the current side that has not performed a pixel value change operation and is closest to the target weathering point.

5. The method according to claim 1, characterized in that The weathering areas include a plurality of areas, and the target duration is the usage duration corresponding to the plurality of applications in the electronic device, wherein different weathering areas correspond to the usage duration of different applications.

6. An image display device, characterized in that: include: A display module, configured to display a first image; An acquisition module, configured to acquire a target duration; wherein the target duration includes at least one of a usage duration of the electronic device, a usage duration of a target application in the electronic device, and an existence duration of a target object in the electronic device; A region acquisition module, used for acquiring a closed region in the first image, and taking the closed region as a weathered region of the first image; A first determination submodule, configured to determine a regional weathering rate corresponding to the weathered area according to the number of pixels in the weathered area; The first processing submodule is used to change the pixel values ​​of a target number of pixel points in the weathering area according to the target duration and the regional weathering rate to achieve the weathering effect of the first image; wherein the target duration corresponds to the target number.

7. The device according to claim 6, characterized in that The first processing submodule includes: A second determination submodule is used to determine the row weathering rate corresponding to each pixel row in the weathering area according to a preset weathering period and the number of pixel points in each pixel row in the weathering area; The second processing submodule is used to change the pixel values ​​of a target number of pixel points in each pixel row according to the target duration and the row weathering rate, so as to achieve the weathering effect of the first image.

8. The device according to claim 7, characterized in that The second processing submodule includes: A weathering point determination unit, used to determine the weathering points corresponding to each pixel row in the weathering area; A pixel value processing unit, configured to perform the following steps on each pixel in the weathered area to achieve a weathering effect of the first image; Wherein, the pixel value processing unit includes: a pixel point determination subunit, configured to determine a target pixel point whose pixel value is to be changed in a target pixel row, taking a target weathering point as a starting pixel point, and according to the target duration and the target row weathering rate; wherein the target pixel row is any pixel row in a target weathering area in the first image, the target weathering area is any weathering area in the first image, the target weathering point is a weathering point corresponding to the target pixel row, and the target row weathering rate is a row weathering rate corresponding to the target pixel row; The pixel value changing subunit is used to change the pixel value of the target pixel point according to the pixel value of the target pixel point and the pixel values ​​of the adjacent pixels corresponding to the target pixel point.

9. The device according to claim 8, characterized in that The pixel point determination subunit is specifically used for: Acquire a first duration value when a pixel value changing operation was last performed in a target pixel row and a first pixel point at which the pixel value changing operation was performed; Determining a second duration according to the first duration and the target row weathering rate; When the target duration currently acquired is the second duration, a second pixel point is determined based on the relative position relationship between the first pixel point and the target weathering point, and the second pixel point is used as the target pixel point; wherein the first pixel point and the second pixel point in the target pixel row are respectively located on both sides of the target weathering point, and the second pixel point is the pixel point on the current side that has not performed a pixel value change operation and is closest to the target weathering point.

10. The device according to claim 6, characterized in that The weathering areas include a plurality of areas, and the target duration is the usage duration corresponding to the plurality of applications in the electronic device, wherein different weathering areas correspond to the usage duration of different applications.

11. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the image display method according to any one of claims 1 to 5.

12. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the image display method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Display adjusting method, mobile terminal and computer readable storage medium

    CN110381202A

  • Image adjustment method, electronic equipment and storage medium

    CN113467735A