Icon arrangement method, electronic device and readable medium

By calculating and adjusting the main color and complexity of the icons in the electronic device display interface, the icons are arranged at intervals, which solves the problem of click delays caused by adjacent icons with similar appearances, and improves operating efficiency and user experience.

CN115033138BActive Publication Date: 2024-08-27HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110193708.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-20
Publication Date
2024-08-27
Estimated Expiration
2041-02-20

AI Technical Summary

Technical Problem

In the display interface of electronic devices, icons with similar appearances are arranged adjacently, making it difficult for users to quickly and accurately launch the required applications, affecting operating efficiency.

Method used

By calculating the main color and complexity of the icon, the icon position is determined and adjusted so that icons with similar appearance are arranged at intervals, thereby preventing users from accidentally clicking on adjacent icons.

Benefits of technology

It improves the user's operating efficiency on electronic devices, ensures that users can quickly and accurately launch required applications, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115033138B
    Figure CN115033138B
Patent Text Reader

Abstract

The present application relates to the field of communications, and discloses an icon arrangement method, an electronic device, and a readable medium. Among them, the icon arrangement method of the present application includes: the electronic device obtains the main color and complexity of the icon in the display interface, and selects adjacent icons that are adjacent in position and meet the rearrangement conditions from multiple icons in the display interface according to the main color and complexity. The electronic device adjusts the positions of adjacent icons according to the main color and complexity, so that icons with similar appearances in the display interface are arranged at intervals, thereby ensuring that adjacent icons in the display interface do not meet the rearrangement conditions. In the above method, an arrangement scheme for icons in the display interface is generated according to the main color and complexity, so that there are no other icons with similar appearances around the icons, which can prevent users from accidentally clicking on surrounding icons with similar appearances when clicking icons based on habits and memories, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communications, and in particular to an icon arrangement method, electronic equipment and a readable medium. Background Art

[0002] With the development of communication technology, electronic devices are widely used in people's lives, making people more and more dependent on electronic devices. In order to meet the needs of users, the number of applications has grown explosively, resulting in an increasing number of icons on the display interface of electronic devices.

[0003] Currently, icons in the display interface of electronic devices are mostly arranged in the order of the time they were added, or according to the user's dragging operation. This arrangement may cause icons with similar appearances to be arranged adjacent to each other. When a user wants to start an application, he will quickly select the target icon corresponding to the application based on habit and memory. However, when the adjacent icons around the target icon to be selected by the user are similar to the target icon, the user may mistakenly click on the adjacent icon, resulting in the user being unable to accurately and quickly start the required application, which cannot meet people's needs for fast and efficient operation of electronic devices. Summary of the invention

[0004] The embodiments of the present application provide an icon arrangement method, an electronic device, and a readable medium. The electronic device of the present application calculates the main color and complexity of the image file corresponding to the icon in the display interface, and then determines the icons that are adjacent in position and whose main color and complexity meet the rearrangement conditions based on the main color and complexity of the image file. The electronic device then arranges the icons with similar appearances at intervals to achieve that there are no other icons with similar appearances around any icon. The above method can prevent users from accidentally clicking on adjacent icons when clicking on the target icon based on their memory of the icon's position, color, and shape, ensuring that users can quickly and accurately drive the required applications and meet people's needs for fast and efficient operation of electronic devices.

[0005] The first aspect of the present application provides an icon arrangement method, which is applied to an electronic device, comprising: the electronic device selects a first icon and a second icon that are adjacent in position and whose main color and complexity meet a rearrangement condition from multiple icons on a display interface; the electronic device adjusts the position of at least one of the first icon and the second icon so that the first icon and the adjacent icon of the first icon do not meet the rearrangement condition, and the second icon and the adjacent icon of the second icon do not meet the rearrangement condition; the electronic device displays the first icon and the second icon after the position adjustment on the display interface. The number of the multiple icons on the display interface is two or more.

[0006] That is, in an embodiment of the present application, the electronic device obtains the main color and complexity of the icons in the display interface, and selects adjacent icons that meet the rearrangement conditions based on the main color and complexity of the icons. The electronic device obtains the arrangement conditions of the icons based on the main color and complexity of the icons. For example, adjacent icons that meet the rearrangement conditions are arranged at intervals, and other icons are arranged randomly. Then, the electronic device generates an arrangement scheme for the icons in the display interface based on the arrangement conditions, adjusts the positions of the icons based on the arrangement scheme, and then displays the icons with adjusted positions on the display interface.

[0007] The electronic device adjusting the icon position may be adjusting the position of the first icon, adjusting the position of the second icon, or adjusting the positions of the first icon and the second icon at the same time. In addition, the electronic device may also adjust other icons except the first icon and the second icon, so that there are no other icons similar in appearance to the first icon around the first icon, and there are no other icons similar in appearance to the second icon around the second icon, so that after the adjustment of the electronic device is completed, any adjacent icons in the display interface do not meet the rearrangement condition.

[0008] For example, the display interface includes a group of adjacent first icons and second icons that meet the rearrangement condition, and the electronic device rearranges the first icon and the second icon to prevent the first icon and the second icon from being accidentally clicked during use. Specifically, the electronic device swaps the first icon with other icons in the display interface. Alternatively, the electronic device moves the first icon back and forth, and drives other icons except the first icon to move back and forth. Alternatively, the electronic device simultaneously changes the positions of the first icon and the second icon. Alternatively, the electronic device sequentially arranges the first icon, other icons except the first icon and the second icon, and the second icon in the display interface.

[0009] For another example, the display interface includes a group of adjacent icons that meet the rearrangement conditions. After the electronic device rearranges the adjacent icons, new adjacent icons that meet the rearrangement conditions appear in the display interface. The above-mentioned adjustment method is used for cyclic adjustment until the adjacent icons in the display interface no longer meet the rearrangement conditions.

[0010] Among them, the main color refers to the main color of the icon. Generally, the color with the largest number of pixels in the image file corresponding to the icon is used as the main color of the icon. Complexity refers to the difficulty of discovering or extracting a real target based on the image file of the icon. Complexity represents the size and distribution state of the lines and textures in the icon. The higher the complexity, the smaller the size of the lines and textures in the image file corresponding to the icon, the more disordered the distribution, and the more complex the icon is visually. The rearrangement condition refers to the basis for judging whether adjacent icons in adjacent interfaces need to be rearranged. When the adjacent icons are icons with similar appearance, the adjacent icons meet the rearrangement condition. At this time, the two adjacent icons need to be rearranged. When the adjacent icons are icons with different appearances. The adjacent icons do not meet the rearrangement condition. At this time, the two adjacent icons do not need to be rearranged. It can be understood that if the first pair of adjacent icons does not meet the rearrangement condition, but the second pair of adjacent icons meets the rearrangement condition, and when the second pair of adjacent icons are rearranged, the first pair of adjacent icons are needed to achieve the position adjustment that does not meet the rearrangement condition. Adjacent icons include icons adjacent to each other up and down or icons adjacent to each other left and right.

[0011] The arrangement condition refers to the sorting logic used to limit the display position of the icon in the display interface, and the arrangement scheme refers to the correspondence between the icon and the display position. It is understandable that the arrangement condition can be an arrangement condition for a single icon, for example, an icon can be arbitrarily arranged in the display interface, and for another example, an icon needs to be further restricted in its relative position relationship with other icons. The arrangement condition can also be a relative arrangement condition between multiple icons, for example, the first icon and the second icon are relatively arbitrarily arranged, and for another example, the first icon and the second icon are relatively spaced. Furthermore, when the number of arrangement conditions is multiple, for example, the arrangement condition includes a first arrangement condition, a second arrangement condition, and a third arrangement condition, and the arrangement condition can also include a priority condition for limiting the priority order of the first arrangement condition, the second arrangement condition, and the third arrangement condition. Specifically, the priority condition can be that the arrangement scheme needs to first satisfy the first arrangement condition, preferably satisfy the second arrangement condition, and finally try to satisfy the third arrangement condition.

[0012] The above icon arrangement method comprehensively judges whether the icons need to be rearranged based on the main color and complexity of the icons in the display interface, and generates an arrangement scheme for the icons in the display interface based on the judgment result, so that icons with similar appearances in the display interface are arranged alternately. Therefore, the above method can prevent users from accidentally clicking on surrounding icons with similar appearances when clicking on icons based on habits and memories, thereby improving the user experience.

[0013] In a possible implementation of the first aspect above, in the above method, the rearrangement conditions include: the position of at least one of the first icon and the second icon is not fixed; the phase difference between the main color of the first icon and the main color of the second icon is less than or equal to the phase difference threshold, and the color difference is less than or equal to the color difference threshold; the complexity of the first icon and the second icon are both less than the complexity threshold, and the complexity difference between the first icon and the second icon is less than or equal to the complexity difference threshold.

[0014] Among them, the phase difference threshold is a critical value used to judge whether the main colors of two icons are close in the hue dimension, and the color difference threshold is a critical value used to judge whether the main colors of two icons are close in the saturation and brightness dimensions. The complexity threshold is a critical value used to judge whether an icon is a complex icon. If the complexity of the first icon is less than the complexity threshold, the first icon is a simple icon. If the complexity of the second icon is equal to or exceeds the complexity threshold, the second icon is a complex icon. The complexity difference refers to the degree of difference between the complexity of the first icon and the complexity of the second icon. The complexity difference can be represented by the absolute value of the difference between the complexity of the first icon and the complexity of the second icon. The complexity difference threshold is a critical value used to judge whether the first icon and the second icon are icons with a large difference in complexity.

[0015] In the above-mentioned icon arrangement method, for the purpose of preventing users from clicking accidentally during use, whether the adjacent icons meet the rearrangement conditions is judged based on whether the first icon and the second icon are movable, the main color, complexity, and complexity difference of the first icon and the second icon, which are several user intuitive perception dimensions. This method conforms to the intuitive judgment dimensions commonly used by users during use, improves the accuracy of the rearrangement condition judgment results, and then improves the accuracy of the obtained arrangement conditions, and optimizes the arrangement scheme generated according to the arrangement conditions.

[0016] In a possible implementation of the first aspect above, in the above method, the electronic device adjusts the position of at least one of the first icon and the second icon, including: the electronic device sets the first icon at a first preset position, and sets multiple icons that do not meet the rearrangement conditions relative to the first icon at multiple adjacent positions of the first preset position.

[0017] That is, in the embodiment of the present application, when the electronic device adjusts the position of at least one of the first icon and the second icon, the electronic device first sets the first icon at the first preset position in the display interface, and sets the multiple icons that do not meet the rearrangement condition relative to the first icon at the adjacent positions of the first icon. The adjacent positions include the positions adjacent to the first preset position above and below and the positions adjacent to the preset position left and right in the display interface.

[0018] It is understandable that the number of multiple icons that do not meet the re-arrangement condition relative to the first icon varies according to the first preset position. For example, when the first preset position is the top corner position of the display interface, the number of adjacent positions of the first preset position is two, and the number of multiple icons that do not meet the re-arrangement condition relative to the first icon is two. For another example, when the first preset position is the side position in the display interface, the number of adjacent positions of the first preset position is three, and the number of multiple icons that do not meet the re-arrangement condition relative to the first icon is three. For another example, when the first preset position is the middle position in the display interface, the number of adjacent positions of the first preset position is four, and the number of multiple icons that do not meet the re-arrangement condition relative to the first icon is four.

[0019] The above-mentioned icon arrangement method reduces the difficulty of generating an arrangement scheme according to the arrangement conditions by arranging the first icon, the icon that does not meet the rearrangement conditions relative to the first icon, and the second icon in sequence. At the same time, it simplifies the steps of generating the arrangement scheme and improves the efficiency of icon arrangement.

[0020] In a possible implementation of the first aspect above, in the above method, the display interface includes a first display sub-interface and a second display sub-interface adjacent to the first display sub-interface, and the first preset position is located in the first display sub-interface, and the adjacent position of the first preset position includes: a position adjacent to the first preset position in the first display sub-interface, and a position with the same interface coordinates as the adjacent position to the first preset position in the second sub-interface.

[0021] It is understandable that when there are a large number of icons in the display interface of an electronic device, a single screen of the electronic device cannot display all the icons, and the icons in the display interface need to be displayed in split screen. The display interface of the electronic device includes two or more display sub-interfaces for split-screen display. In the display sub-interface of the electronic device, if the electronic device directly enters the second display sub-interface from the first display sub-interface when the user finishes sliding once, the first display sub-interface is adjacent to the second display sub-interface.

[0022] That is, in an embodiment of the present application, when the display interface includes an adjacent first display sub-interface and a second display sub-interface, the adjacent position of the first preset position in the first display sub-interface includes not only the position adjacent to the first preset position in the first display sub-interface, but also the position in the second display sub-interface having the same interface coordinates as the adjacent position of the first preset position. The interface coordinates refer to parameters used to characterize the arrangement position of icons in the display interface. For example, the interface coordinates include the row position and column position of the icon in the display interface.

[0023] It can be understood that the adjacent position of the first preset position in the first display sub-interface may also include a position in the second display sub-interface having the same interface coordinates as the first preset position.

[0024] In the above icon arrangement method, the first display sub-interface and the second display sub-interface are adjacent, and the adjacent position of the first preset position includes a position in the first display sub-interface adjacent to the first preset position, and a position having the same interface coordinates as the position in the second sub-interface adjacent to the first preset position. The above method can effectively avoid users from accidentally clicking when switching between adjacent display sub-interfaces displayed in split screens of the display interface.

[0025] In a possible implementation of the first aspect, in the method, after the electronic device adjusts a position of at least one of the first icon and the second icon, the shortest distance between the first icon and the second icon is greater than or equal to a distance threshold.

[0026] The shortest distance refers to the minimum value of the distance between the first pixel in the first icon and the second pixel in the edge of the second icon. In order to reduce the amount of calculation and improve the efficiency of the icon arrangement method, the first pixel can be a pixel on the edge of the first icon, and the second pixel can be a pixel on the edge of the second icon.

[0027] In a possible implementation of the first aspect, in the method, a distance threshold for determining whether the first icon and the second icon need to continue to be adjusted is 10 mm.

[0028] That is, in the embodiment of the present application, since the width of the contact area between the user's finger and the electronic device touch screen is about 10 mm. At the same time, on electronic devices of different sizes, when the click accuracy reaches more than 95%, it is necessary to ensure that the size of the touch control is within the range of 8 mm to 14 mm. Therefore, the distance threshold can be 10 mm.

[0029] In the above icon arrangement method, the distance threshold is set to 10mm, so that the icons arranged at intervals match the width of the user's finger contact area and the size of the touch control of the electronic device, so that the arranged icons are ergonomic, ensuring that the icons are compact, reducing the probability of misclicks and improving the user experience.

[0030] In a possible implementation of the first aspect above, in the above method, the electronic device determines the primary color of the first icon in the following manner: the electronic device obtains the color information parameters of the first icon; the electronic device extracts the hue, saturation and brightness in the color information parameters; the electronic device classifies the pixels in the image file of the first icon according to the hue, saturation and brightness; when the category with the largest number of pixels is unique, the electronic device uses the color of the category with the largest number of pixels as the primary color of the first icon; when the category with the largest number of pixels is not unique, the electronic device determines that the first icon has no primary color. Similarly, the electronic device can also use the above method to determine whether the second icon has a primary color, and when the second icon has a primary color, the primary color of the second icon.

[0031] That is, in the embodiment of the present application, the electronic device determines the category with the largest number of pixels through the hue, saturation and brightness in the color information parameters of the icon, and then determines whether the icon has a primary color, and the primary color of the icon when it has a primary color. It can be understood that when the category with the largest number of pixels is not unique, there may be multiple groups of pixels with the largest number of hues, saturation and brightness, or there may be multiple groups of pixels with a number close to the largest number of hues, saturation and brightness.

[0032] In a possible implementation of the first aspect, the first electronic device classifies the pixels in the image file of the first icon in the following manner: the electronic device classifies the pixels with the same hue, saturation and brightness into one category to form an initial category for characterizing the same set of pixels; the electronic device merges the initial categories with a color difference lower than a color difference threshold and a phase difference lower than a phase difference threshold to form a classification category for characterizing similar and identical sets of pixels, and the hue, saturation and brightness of the classification category are the hue, saturation and brightness of the largest number of pixels in the classification category. Among them, in the initial categories with a color difference lower than the color difference threshold and a phase difference lower than the phase difference threshold, the deviation of the pixels in the two groups of initial categories is small and they are relatively similar.

[0033] That is, in an embodiment of the present application, the electronic device preliminarily divides the pixels into initial categories according to the hue, saturation and brightness of the pixels in the image file of the first icon, wherein the hue, saturation and brightness of the pixels in the initial categories are exactly the same. Then, the electronic device determines whether the pixels in the first initial category are similar to the pixels in the second initial category by the hue, saturation and brightness of the pixels in the first initial category and the hue, saturation and brightness of the pixels in the second initial category. If the judgment result is similar, the pixels in the first initial category and the pixels in the second initial category can be merged into one category of pixels, and the initial category with a relatively large number of pixels is used as the merged category. For example, if the number of pixels in the first initial category is greater than the number of pixels in the second initial category, the category after the first initial category and the second initial category are merged is the first initial category.

[0034] Among them, the initial category is the category classified according to the hue, saturation and brightness of the pixels in the image file, and represents the number of hue, saturation and brightness levels of the pixels in the image file. An initial category reflects the set of pixels with exactly the same hue, saturation and brightness in the image file. The classification category is the category after the initial categories are merged according to the hue, saturation and brightness of the pixels. A classification category includes the same pixels and similar pixels.

[0035] The above icon arrangement method combines similar initial categories to combine similar pixels into one category, thereby obtaining a smaller number of classification categories. The above method facilitates the determination of the main color of the icon according to the classification category, and at the same time, improves the authenticity of the result of the determination of the main color of the icon.

[0036] In a possible implementation of the first aspect above, the electronic device determines the complexity of the first icon in the following manner: the electronic device extracts the grayscale value in the color information parameter; the electronic device generates the grayscale co-occurrence matrix of the image file of the first icon according to the grayscale value; the electronic device calculates the complexity of the first icon according to the grayscale co-occurrence matrix through the random probability of icon texture in the image file, the number and status of icon objects, the clarity of the image file, the correlation degree of local grayscale and the consistency degree of grayscale distribution. Similarly, the electronic device can also use the above method to determine the complexity of the second icon.

[0037] The above-mentioned icon arrangement method comprehensively determines the complexity of icons from four aspects, namely, texture, object, clarity and grayscale, from five dimensions, namely, the random probability of icon texture in image files, the number and status of icon objects, the clarity of image files, the correlation of local grayscale and the consistency of grayscale distribution, thereby improving the accuracy of icon complexity.

[0038] In a possible implementation of the first aspect above, the electronic device calculates the information entropy, edge ratio, contrast, correlation and energy of the image file based on the grayscale co-occurrence matrix, and obtains the complexity of the first icon based on the information entropy, edge ratio, contrast, correlation and energy.

[0039] In a possible implementation of the first aspect above, the display interface includes a desktop of the electronic device, a display interface of a folder in the electronic device, and an application program interface of an application program installed on the electronic device.

[0040] A second aspect of the present application provides an electronic device, including:

[0041] A memory storing instructions;

[0042] The processor is coupled to the memory, and when the program instructions stored in the memory are executed by the processor, the electronic device executes any one of the above icon arrangement methods.

[0043] A third aspect of the present application provides a computer-readable medium, which, when instructions are executed on the readable medium, enables the readable medium to execute any one of the above-mentioned icon arrangement methods. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 An example scenario of icon arrangement on a display interface of an electronic device provided in an embodiment of the present application.

[0045] Figure 2 According to some embodiments of the present application, a display interface interaction diagram of an icon arrangement scheme in a normal state is shown.

[0046] Figure 3 According to some embodiments of the present application, a display interface interaction diagram of an icon arrangement scheme when adding icons is shown.

[0047] Figure 4 According to some embodiments of the present application, a display interface interaction diagram of an icon arrangement scheme when deleting an icon is shown.

[0048] Figure 5 According to some embodiments of the present application, a display interface interaction diagram of an icon arrangement scheme for filling empty spaces is shown.

[0049] Figure 6 According to some embodiments of the present application, a schematic structural diagram of an electronic device capable of implementing icon arrangement is shown.

[0050] Figure 7 According to some embodiments of the present application, an architectural diagram for implementing an icon arrangement solution is shown.

[0051] Figure 8 According to some embodiments of the present application, a schematic diagram of the values ​​of H value, S value and B value in a color information parameter is shown.

[0052] Fig. 9 According to some embodiments of the present application, a flowchart of an icon arrangement method is shown.

[0053] Fig.10 According to some embodiments of the present application, a flowchart of a method for obtaining the primary color of an icon is shown.

[0054] Fig.11 According to some embodiments of the present application, a flowchart of a method for obtaining icon complexity is shown.

[0055] Fig.12According to some embodiments of the present application, a visual comparison diagram of two groups of icons of different complexity is shown.

[0056] Fig.13 According to some embodiments of the present application, a flowchart of a method for obtaining arrangement conditions is shown.

[0057] Fig.14 According to some embodiments of the present application, a software structure block diagram of an electronic device for icon sorting is shown.

[0058] Among them, in the figure numbers, 100-mobile phone; 10-display interface; 20-icon; 21-application icon; 22-folder icon; 30-empty space; 40-add location. DETAILED DESCRIPTION

[0059] The embodiments of the present application provide an icon arrangement method, an electronic device, and a readable medium. In the technical solution of the present application, the electronic device calculates the primary color and complexity of the icons in the display interface through the image files corresponding to the icons. When it is determined that the icons are adjacent in position and the primary color and complexity meet the rearrangement conditions, the electronic device arranges the icons at intervals according to the judgment result, and then generates a single icon and arrangement conditions between icons according to the primary color and complexity of the icons in the display interface. Then, an arrangement scheme for the icons is generated according to the arrangement conditions. The technical solution of the present application obtains the icon arrangement conditions from two dimensions of primary color and complexity, which directly obtain the results through vision, effectively avoiding users from accidentally clicking adjacent icons when clicking the target icon based on the memory of the icon position, color, and shape, ensuring that users can quickly and accurately drive the required applications, and meet people's needs for fast and efficient operation of electronic devices.

[0060] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0061] In the present application, an electronic device can be any electronic device with a display screen, such as a mobile phone, a tablet computer, a laptop computer, a wearable device, a head-mounted display, a mobile email device, a portable game console, a portable music player, a reader device, a smart TV and other smart home devices, and the like.

[0062] In addition, the technical solution of the present application is applicable to any application icon in an electronic device, including third-party application icons, system application icons, and folder icons composed of third-party application icons or system application icons. Among them, third-party application icons may include but are not limited to third-party application icons such as instant messaging applications, stocks, videos, weather, maps, etc. System application icons can be window management application icons in system applications (such as icons for shopping applications and icons for banking applications), setting icons, etc. Folder icons may include but are not limited to folder-type icons such as office folder icons, shopping folder icons, entertainment folder icons, and banking folder icons.

[0063] For ease of explanation, the icon arrangement scheme of the present application will be described in detail below using mobile phone 100 as an example.

[0064] Figure 1 The following is an example of a scene in which icons 20 are arranged in the display interface 10 of a mobile phone 100 in a related technical solution. The display interface 10 includes the desktop of the electronic device, the display interface of a folder in the electronic device, and the application interface of an application installed on the electronic device, and the display interface 10 may include one display sub-interface, or may include two or more adjacent display sub-interfaces. Specifically, Figure 1 (a) shows a scene in which the icons 20 are arranged closely in the display interface 10 when the display interface 10 of the mobile phone 100 is the desktop. Figure 1 (b) shows a scene in which the icons 20 are not arranged adjacently in the display interface 10 when the display interface 10 of the mobile phone 100 is the desktop. The adjacent arrangement means that there is no space 30 between the icons 20 in the display interface 10, and the non-adjacent arrangement means that there is a space 30 between the icons 20 in the display interface 10. Figure 1 (b) The dotted frame in the display interface 10 represents the empty space 30 .

[0065] exist Figure 1 In the embodiments shown in (a) and 1(b), when the display interface 10 of the mobile phone 100 is the desktop, the icons 20 in the display interface 10 may be application icons 21 such as settings, stocks, payment, video, weather, Weibo, WeChat and map, and may also be folder-type icons 22 such as office folders, shopping folders, entertainment folders and bank folders. Among them, the application icon 21 is a picture file drawn according to a certain application, that is, the application icon displays an icon corresponding to a certain application. The folder icon 22 refers to a picture file drawn according to a folder and the application in the folder, that is, the application icon displays an icon corresponding to a group of applications, and the number of the group of applications is at least 2. A maximum of 9 small-sized application icons 21 can be displayed in the folder icon 22, and the size of the folder icon 22 is the same as the size of the normal application icon 21.

[0066] When the user clicks on the folder icon 22 in the display interface 10 of the mobile phone 100, the display interface 10 displays the application icons 21 contained in the folder icon 22. For example, when the user clicks on Figure 1 After clicking the shopping folder icon in (a), the display interface 10 of the mobile phone 100 switches from the desktop to the display interface of the shopping folder, and displays shopping application icons 21 in the display interface of the shopping folder, such as Taobao, JD.com, Vipshop, Dianping, Ele.me, Dingdong Maicai, Meituan Waimai and Hippo Fresh, etc. It can be understood that the order of the application icons 21 in the shopping folder icon can be that the mobile phone 100 arranges the application icons 21 in the order in which they are added to the shopping folder, or can arrange them by dragging by the user.

[0067] Specifically, for example, in Figure 1 In the display interface of the shopping folder shown in (c), the shopping A1 icon, shopping A2 icon, shopping E1 icon, shopping A3 icon, shopping B1 icon, shopping C1 icon and shopping D1 icon are arranged in sequence in a pattern of 3 digits per row, and an adding position 40 is provided after the shopping D1 icon at the end. Figure 1 (d) shows that Figure 1 When a shopping D2 icon is added to the shopping folder in (c), a scene in which icons 21 are arranged is applied in the display interface of the shopping folder, wherein the shopping D2 icon is displayed at the adding position 40, and a new adding position 40 is set after the shopping D2 icon at the end. Figure 1 (e) shows the arrangement of the application icons 21 in the display interface of the shopping folder when the shopping E1 icon is deleted from the shopping folder. After the shopping E1 icon is deleted, the application icons 21 after the shopping E1 icon are moved forward one by one, and a new adding position 40 is set after the shopping D1 icon at the end. In addition, the application icons 21 in the display interface of the shopping folder of the mobile phone 100 are arranged closely.

[0068] refer to Figure 1 (c) Figure 1 (d) and Figure 1(e) It is not difficult to find that the adjacent shopping A1 icon, shopping A2 icon and shopping A3 icon are similar in appearance, and the adjacent shopping D1 icon and shopping D2 icon are similar in appearance. It is understandable that the similar appearance referred to in the technical solution of the present application means that the main colors of the icons are similar and the main textures of the icons are similar. When the user wants to click on the shopping A1 icon, he may accidentally click on the similar and adjacent shopping A2 icon or shopping A3 icon. When the user wants to click on the shopping D1 icon, he may accidentally click on the similar and adjacent shopping D2 icon. Once the user clicks by mistake, he cannot quickly and accurately start the application that he actually needs. He needs to exit the missed application and restart the required application, which affects the user experience.

[0069] In order to solve the above problems, the present application provides an icon arrangement method. Specifically, the mobile phone 100 obtains the main color and complexity of the icons in the display interface 10, and determines whether the appearance of adjacent icons is similar based on the main color and complexity of the icons. If the appearance of adjacent icons is not similar, that is, the adjacent icons do not meet the rearrangement conditions, there is no need to rearrange them. If the appearance of adjacent icons is similar, the positions of adjacent icons need to be rearranged to avoid misclicks when users use them. The mobile phone 100 generates an arrangement scheme for adjacent icons in the display interface 10 based on the judgment result of the appearance. The mobile phone adjusts the positions of adjacent icons according to the arrangement scheme so that there are no other icons with similar appearance to any icon around any icon. Then, the mobile phone 100 displays the icons with adjusted positions in the display interface.

[0070] The mobile phone 100 executes the icon arrangement method provided by the present application, comprehensively determines whether the icons need to be rearranged according to the main color and complexity of the icons in the display interface 10, and generates an arrangement scheme for the icons in the display interface 10 according to the determination result, so that icons with similar appearances in the display interface are arranged alternately. Therefore, the above method can prevent users from accidentally clicking on surrounding icons with similar appearances when clicking on icons based on habits and memories, thereby improving the user experience.

[0071] Two adjacent icons that meet the re-arrangement conditions need to meet the following conditions at the same time: the position of at least one of the two icons is not fixed; the phase difference between the main colors of the two icons is less than or equal to the phase difference threshold, and the color difference between the main colors of the two icons is less than or equal to the color difference threshold; the complexity of the two icons is less than the complexity threshold, and the complexity difference between the two icons is less than or equal to the complexity difference threshold.

[0072] Two adjacent icons that do not meet the re-arrangement conditions meet at least one of the following conditions: at least one icon has no main color; the difference between the main colors of the two icons is greater than the difference threshold, or the color difference between the main colors of the two icons is greater than the color difference threshold; the complexity of at least one icon is greater than or equal to the complexity threshold; the difference in complexity between the two icons is greater than the complexity difference threshold; at least one icon is empty.

[0073] For example, Figure 2 The following is a diagram showing a display interface interaction diagram of an icon arrangement scheme in a normal state. When a user wants to rearrange the original icons in the display interface 10 of the mobile phone 100, by clicking Figure 2 In the embodiment shown in (a), the "sort" button 50 in the display interface 10 of the mobile phone 100 is triggered to start the intelligent sorting function of the icons. The mobile phone 100 then executes the icon arrangement method provided in the embodiment of the present application, so that Figure 2 In the display interface 10 shown in (a), the shopping A1 icon, the shopping A2 icon and the shopping A3 icon, which are similar in appearance, are arranged alternately with each other, as shown in FIG. Figure 2 (b) is displayed in an interleaved manner. And when the user clicks Figure 2 In the embodiment shown in (b), the "sort" button 50 in the display interface 10 of the mobile phone 100 triggers the smart sorting function of the mobile phone 100 to close the icons. The mobile phone 100 executes the icon arrangement method provided in the embodiment of the present application, so that Figure 2 (b) The display scheme of the icons in the shopping folder is switched to Figure 2 (a) is a display scheme. Figure 2 (a) and Figure 2 The changes in the icon positions in (b) are shown in Table 1 below:

[0074]

[0075] Table 1

[0076] For example, Figure 3 The interactive diagram of the display interface of an icon arrangement scheme when adding icons is shown. The user clicks the "sort" button in the display interface 10 of the mobile phone 100, triggering the mobile phone 100 to start the intelligent sorting function of icons. The mobile phone 100 executes the icon arrangement method provided in the embodiment of the application to Figure 3 The display interface 10 shown in (a) displays the icon. Then, the user wants to Figure 3 (a) shows that a shopping A3 icon is added to the display interface 10 of the mobile phone 100. However, the newly added icon is directly set to Figure 3 (a) When position 40 is added in the display interface 10, the shopping A1 icon and the shopping A3 icon are arranged adjacent to each other. The mobile phone 100 executes the icon arrangement method provided in the embodiment of the present application to arrange the shopping A1 icon and the shopping A3 icon adjacent to each other. Figure 3 (a) Displaying the existing icons and newly added icons in the interface 10, such as Figure 3 (b) is displayed in an intermittent arrangement as shown. Figure 3 (a) and Figure 3 The changes in the icon positions in (b) are shown in Table 2 below:

[0077]

[0078] Table 2

[0079] For example, Figure 4 The interactive diagram of the display interface of an icon arrangement scheme when deleting an icon is shown. The user clicks the "sort" button in the display interface 10 of the mobile phone 100, triggering the mobile phone 100 to start the intelligent sorting function of the icons. The mobile phone 100 executes the icon arrangement method provided in the embodiment of the application to Figure 4 The display interface 10 shown in (a) displays the icon. Then the user wants to delete Figure 4 (a) shows the bank B1 icon in the display interface 10 of the mobile phone 100. However, after deleting the bank B1 icon, Figure 4 (a) The bank A1 icon and the bank A2 icon are arranged adjacent to each other in the display interface 10. The mobile phone 100 executes the icon arrangement method provided in the embodiment of the present application to arrange the bank A1 icon and the bank A2 icon after deleting the bank B1 icon. Figure 4 (a) Displaying other icons in interface 10, such as Figure 4 (b) is displayed in an intermittent arrangement as shown. Figure 4 (a) and Figure 4 The changes in the icon positions in (b) are shown in Table 3 below:

[0080]

[0081] Table 3

[0082] For another example, Figure 5 A display interface interaction diagram of an icon arrangement scheme for filling empty spaces is shown. When a user wants to rearrange the original icons in the display interface 10 of the mobile phone 100, by clicking Figure 5 In the embodiment shown in (a), the "sort" button in the display interface 10 of the mobile phone 100 is pressed to trigger the mobile phone 100 to start the intelligent sorting function of icons. Then, the mobile phone 100 executes the icon arrangement method provided in the embodiment of the present application, so that Figure 5 In the display interface 10 shown in (a), the shopping A1 icon, the shopping A2 icon and the shopping A3 icon, which are similar in appearance, are arranged in a spaced relationship with each other by adding a space 30, so as to Figure 5 (b) is displayed in an interleaved manner. And when the user clicks Figure 5 In the embodiment shown in (b), the "sort" button in the display interface 10 of the mobile phone 100 is triggered to close the intelligent sorting function of the icons of the mobile phone 100, and the mobile phone 100 executes the icon arrangement method provided in the embodiment of the present application, so that Figure 5 (b) The display scheme of the icons in the shopping folder is switched to Figure 5 (a) is a display scheme. Figure 5 (a) and Figure 5 The changes in the icon positions in (b) are shown in Table 4 below:

[0083]

[0084] Table 4

[0085] according to Figures 2 to 5 It can be seen that when the mobile phone 100 displays icons in the display interface 10 according to the icon arrangement method of the present application, when all icons in the display interface 10 are mobile icons, icons with similar appearances in the display interface 10 are arranged alternately. It can be understood that the alternate arrangement means that other icons are arranged between two icons in the four directions of top, bottom, left and right.

[0086] Furthermore, when the positions of some icons in the display interface of the mobile phone 100 cannot be moved, the mobile phone 100 obtains the mobile icons of the icons in the display interface 10, and determines whether the rearrangement conditions are met between the mobile icons and between the mobile icons and the fixed icons according to the image files corresponding to the mobile icons. The mobile phone 100 generates an arrangement scheme based on the rearrangement conditions, and displays the mobile icons and the fixed icons according to the arrangement scheme, so as to achieve an interval arrangement between the mobile icons and the fixed icons with similar appearances. Among them, the mobile icon refers to an icon whose display position can be moved in the display interface 10. The mobile icon can be all the icons 20 in the display interface 10. The mobile icon can also be part of the icons 20 in the display interface 10, and the other icons in the display interface 10 are fixed icons with fixed positions. The icon 20 of the display interface 10 can be an application icon 21, a folder icon 22, or a combination of an application icon 21 and a folder icon 22.

[0087] In some embodiments, the icons 20 in the display interface 10 of the mobile phone 100 are all mobile icons.

[0088] In some embodiments, some of the icons 20 in the display interface 10 of the mobile phone 100 are mobile icons, and another part of the icons 20 in the display interface 10 are fixed icons.

[0089] In some other embodiments, the mobile phone 100 sets one of the icons at a preset position, and sets other icons that do not meet the rearrangement condition relative to the icon at multiple adjacent positions of the preset position. Among them, the other icons include application icons, folder icons and empty spaces. The adjacent positions include positions adjacent to the preset position above and below and positions adjacent to the preset position left and right in the display interface.

[0090] In some other embodiments, the mobile phone 100 categorizes the icons in the display interface according to their primary colors and complexity, wherein icons of the same category have similar appearances. The mobile phone 100 arranges the icons in the display interface in an interlaced manner.

[0091] Figure 6 According to an embodiment of the present application, a schematic diagram of the structure of a mobile phone 100 is shown. Among them, the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0092] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0093] The processor 110 may include one or more processing units, for example: the processor 110 may include an application processor (AP), a modem processor, a graphics processor (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), etc. Among them, different processing units may be independent devices or integrated into one or more processors. For example, in some embodiments, the processor 110 is used to calculate the main color and complexity of the icons in the display interface, and generate icons and arrangement conditions between icons according to the main color and complexity of the icons, and then generate an arrangement scheme of the icons according to the above arrangement conditions.

[0094] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0095] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or circulated. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. Repeated access is avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved. For example, in some embodiments, the memory is used to store image files generated according to an application or a folder and an application in the folder.

[0096] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0097] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0098] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0099] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0100] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.

[0101] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0102] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0103] The display screen 194 displays icons of the image files stored in the memory according to the arrangement scheme generated by the processor 110 .

[0104] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function, such as storing music, video and other files in the external memory card.

[0105] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 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, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0106] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A. The electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0107] The touch sensor 180K is also called a "touch device". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194. It can be understood that in some embodiments of the present application, when the user performs a touch operation on the touch screen, the mobile phone 100 can execute the technical solution of the present application after detecting the user's touch operation through the touch sensor 180K, and respond to the user's touch operation, for example, deleting icons 20, adding icons 20, and moving icons 20.

[0108] Figure 7 FIG. 1 shows a system architecture diagram of an electronic device for implementing the method for sorting icons 20 in some embodiments of the present application. Figure 7As shown, the electronic device includes an application layer 750, a framework layer 740, a system library and an Android runtime 730, a kernel layer 720, and a hardware layer 710. Among them, the hardware layer 710 includes physical devices such as a touch sensor 180K and a display screen 194, the kernel layer 720 includes a touch driver 196A and a display driver 196B, the system library and the Android runtime include a monitoring service 197A and a surface manager 197B, the framework layer 740 includes a reading unit 310, an installation package manager 198, an extraction unit 320, a parsing unit 330, a calculation unit 340, and an arrangement unit 350, and the application layer 750 includes an application launcher 199A, APP1 199B, and APP2 199C. The display unit 360 includes a display screen 194, a display driver 196B, and a surface manager 197B.

[0109] The processor 110 includes six units: a reading unit 310 , an extracting unit 320 , a parsing unit 330 , a calculating unit 340 , an arranging unit 350 and a display unit 360 .

[0110] The touch driver 196A is signal-connected to the touch sensor 180K and the monitoring service 197A respectively, and the application launcher is signal-connected to the monitoring service 197A and the reading unit 310 respectively. The reading unit 310 is signal-connected to the installation package manager 198. The extraction unit 320 is signal-connected to the reading unit 310, the parsing unit 330, and the calculation unit 340 respectively. The arrangement unit 350 is signal-connected to the parsing unit 330, the calculation unit 340, and the display unit 360 respectively.

[0111] Specifically, the touch sensor 180K receives the operation instruction input by the user through the touch screen of the mobile phone 100, and sends the operation instruction to the touch driver 196A. The touch driver 196A sends the operation instruction to the monitoring service 197A, and the monitoring service 197A monitors the icon 20 displayed in the display interface 10 according to the operation instruction. When the icon 20 does not match the operation instruction, the operation instruction is sent to the application launcher 199A, and the application launcher 199A obtains the corresponding application type according to the operation instruction, and sends the operation instruction and the application type to the reading unit 310. Among them, the operation instruction refers to the command generated by the touch screen of the electronic device according to the user's touch operation, which is used to control the electronic device to respond to the touch operation.

[0112] The operation instructions include deletion instructions and arrangement instructions. The deletion instructions specifically include deletion instructions and addition instructions. The deletion instructions are used to instruct the electronic device to delete the icon 20 in the display interface 10, and the addition instructions are used to instruct the electronic device to add the icon 20 in the display interface. The arrangement instructions include fixing instructions and adjustment instructions. The adjustment instructions are used to instruct the electronic device to intelligently arrange the icons in the display interface 10, and the fixing instructions are used to instruct the electronic device to fix the position of the fixed icons in the display interface 10, that is, to determine the mobile icons in the display interface.

[0113] For example, the user drags the icon 20 out of the folder, and the touch sensor 180K generates a deletion instruction. The user drags the icon 20 into the folder, and the touch sensor 180K generates an addition instruction. The user switches the "+" button and the "-" button on the icon 20, and the touch sensor 180K generates a fixed instruction for determining a fixed icon and a mobile icon. Alternatively, the reading unit 310 determines the fixed icon in the display interface 10 according to the frequency of use and the length of use of the application corresponding to the icon 20. The user clicks the "Sort" button, and the touch sensor 180K generates an adjustment instruction.

[0114] The reading unit 310 is used to obtain an icon according to the operation instruction, and obtain a corresponding image file from the installation package manager 198 according to the application type of the icon, and then send the image file to the extraction unit 320. The reading unit 310 is used to read an image file from the mobile phone 100, wherein the format of the image file can be any one of PNG, ICO, ICL and IP. The image file can be a picture file stored in the application installation package.

[0115] It is understandable that there are more than two icons 20 in the display interface 10 of the mobile phone 100. When there is one icon 20 in the display interface 10, there is no need to rearrange the icons 20. When there are two icons 20 in the display interface 10, and the two icons 20 have a low similarity in appearance, the two icons 20 can be arranged arbitrarily, that is, the two icons 20 can be arranged adjacent to each other, or they can be arranged at intervals by adding a space 30 between them. Therefore, the two icons 20 do not need to be rearranged. When there are two icons 20 in the display interface 10, and the two icons 20 are similar in appearance, a space 30 is set between the two icons 20 to arrange them at intervals. When there are three or more icons 20 in the display interface 10, the mobile phone 100 can achieve the interval arrangement of the icons 20 by exchanging the positions of the icons 20 or inserting spaces between the icons 20.

[0116] The extraction unit 320 is used to extract the color information parameters in the image file, and send the color information parameters to the parsing unit 330 and the calculation unit 340. The color information parameters include hue (Hues, H value), saturation / purity / color degree (Saturation, S value), brightness / brightness (B value) and gray scale (Gray Scale, GS value). For example, when the format of the image file is PNG, the extraction unit 320 is a parameter compression module. The parameter compression module is used to decompress the image file and obtain the pixel matrix in the image file. It can be understood that the pixel matrix includes the H value, S value, B value and GS value of each pixel point in the image file. The H value, S value and B value are used to characterize a color mode of a medium for the human eye, and the higher the S value and B value, the higher the saturation and brightness, the stronger and more colorful the display interface is, the faster the visual stimulation is, and the more eye-catching the display effect is. The visual similarity of image colors is usually judged from three dimensions: H value, S value, and B value. Only when the H value, S value, and B value are relatively close in these three dimensions, are the two colors visually close.

[0117] For example, Figure 8 As shown in (a), the present application refers to the PCCS color system based on the "three primary colors principle", with red, yellow and blue as the main colors, orange, green and purple as the intermediate colors, forming a 24-color hue ring. In the 24-color hue ring, hues within a spacing of 15 degrees are similar colors, such as the range from dotted line 1 to dotted line 2. Similar colors are very close in many cases and difficult to be directly distinguished. Hues within a spacing of 30 degrees are similar colors, such as the range from dotted line 1 to dotted line 3. Similar colors can be distinguished, but the contrast is not clear enough and they are easily confused in some cases. Since the value range of H is 0 to 360, when the phase difference ΔH between two colors is within 30, that is, ΔH≤30, the colors of the two pictures are considered to be similar in the hue dimension, where ΔH=|H1-H2|.

[0118] At present, S value and B value are usually divided into 8th order, 9th order, 10th order or 11th order. Figure 8 As shown in (b), the present application refers to the PCCS color system standard and divides the two dimensions of S value and B value into 9 color levels, and the color level indicates the brightness of the image. Generally speaking, when the difference between the S value and the B value is within 3 color levels, the difference in saturation and brightness is small, and it is difficult to identify the change. Since the S value and the B value range from 0 to 100, when the color difference between two colors is within 100 / 3≈33, that is, the color difference ΔSB≤33, the two colors are considered to be similar in saturation and brightness, where

[0119] The parsing unit 330 is used to generate the primary color of the icon according to the H value, S value and B value in the color information parameters. The primary color refers to the main color of the icon determined according to the image file. Generally, the H value, S value and B value with the largest number of pixels are used as the primary color of the icon.

[0120] The calculation unit 340 is used to calculate the complexity of the image file according to the grayscale distribution in the color information parameter. Complexity refers to the difficulty of finding or extracting a real target based on the image file of the icon. It represents the size and distribution of the lines and textures in the icon. The higher the complexity, the smaller the size of the lines and textures of the image file corresponding to the icon, and the more chaotic the distribution.

[0121] The arrangement unit 350 is used to generate the arrangement conditions of the icon 20 according to the main color and complexity of the icon, and then obtain the arrangement scheme of the icon according to the arrangement conditions. It can be understood that the arrangement scheme that meets all the arrangement conditions can be one, two or more. Specifically, the arrangement unit 350 generates the arrangement conditions of the icon 20 according to whether the icon has a main color, the main color, the complexity and the complexity difference. Then, the arrangement unit 350 generates the arrangement position of the icon according to the arrangement condition of the icon 20, and generates the arrangement scheme according to the arrangement position of the icon.

[0122] In some embodiments, when the icons include mobile icons and fixed icons, the arrangement unit 350 determines the position of the fixed icon, generates the arrangement position of the mobile icon according to the fixed position of the fixed icon and the arrangement condition of the icon, and generates an arrangement scheme according to the arrangement position of the mobile icon.

[0123] In some embodiments, when the arrangement unit 350 generates two or more arrangement schemes according to the arrangement conditions, the arrangement schemes are sent to the display unit 360 in sequence.

[0124] In some embodiments, when the arrangement unit 350 generates two or more arrangement schemes according to the arrangement conditions, the arrangement schemes with fixed positions of common icons are preferentially sent to the display unit 360, and further, the arrangement schemes are sent to the display unit 360 in descending order according to the number of common icons with fixed positions. Among them, the common icons can be icons with high frequency of use by users, such as icons with the top 30% of clicks in a month. Common icons can also be icons with a long user usage time, such as icons with the top 30% of usage time in a month.

[0125] For example, in Figure 3 In the embodiment shown, Figure 3 (b) for Figure 3When the shopping A3 icon is added to the display interface of the shopping folder of (a), the shopping A3 icon and the shopping C1 icon are swapped, so that the shopping A1 icon and the shopping A3 icon are arranged alternately. Among them, when performing intelligent arrangement, the positions of the commonly used icons, the shopping B1 icon, the shopping D1 icon, the shopping E1 icon and the shopping A1 icon, are not changed. On the one hand, the positions of the commonly used icons are retained, and on the other hand, the distance of the icon position movement is reduced, which reduces the difficulty for users to adapt to the new sorting method.

[0126] For example, in Figure 4 In the embodiment shown, Figure 4 (b) For deletion Figure 4 (a) When the bank B1 icon is displayed in the bank folder interface, the bank B3 icon is added to the original position of the bank B1 icon, and the bank B4 icon is added to the original position of the bank B3 icon to avoid adjacent arrangement between Class A bank icons and Class B bank icons. Among them, when performing intelligent arrangement, the positions of the commonly used icons Bank A1 icon, Bank A2 icon, Bank B2 icon, Bank A3 icon and Bank A icon remain unchanged. On the one hand, the positions of the commonly used icons are retained, and on the other hand, the distance of the icon position movement is reduced, which reduces the difficulty for users to adapt to the new sorting method.

[0127] In some embodiments, when the arrangement unit 350 generates two or more arrangement schemes according to the arrangement conditions, the arrangement scheme with the smallest total step length of the icon 20 is preferentially sent to the display unit 360. The moving step length is used to represent the moving distance of the icon 20. For example, the step length of the icon 20 moving to the adjacent position is 1.

[0128] In some embodiments, when the icons 20 in the display interface 10 cannot meet the arrangement conditions when they are arranged closely together, the arrangement scheme arranges the icons 20 in order from small to large according to the hue ΔH, and prioritizes the icons 20 with smaller ΔH to meet the arrangement conditions. If ΔH is the same, the icons 20 with smaller complexity differences are prioritized to meet the arrangement conditions.

[0129] In some embodiments, when the icons 20 in the display interface 10 cannot meet the arrangement condition when they are arranged closely together, the arrangement scheme arranges the icons 20 in order from small to large according to the color difference ΔSB, and prioritizes the icons 20 with smaller ΔSB to meet the arrangement condition. If ΔSB are the same, the icons 20 with smaller complexity differences are prioritized to meet the arrangement condition.

[0130] In some embodiments, when there is empty space in the display interface 10 and the icons 20 in the display interface 10 cannot meet the arrangement condition when they are arranged adjacent to each other, the icons 20 in the arrangement scheme are arranged non-adjacently in the display interface 10 .

[0131] For example, in Figure 5In some of the embodiments shown, the shopping display interface includes three application icons, namely, shopping A1 icon, shopping A2 icon and shopping A3 icon. It is not difficult to find that no matter how closely the shopping A1 icon, shopping A2 icon and shopping A3 icon are arranged, all the arrangement conditions cannot be met. Since there are three icons 20 in the shopping display interface, there is an empty space 30 in the display interface 10. The display interface of the shopping folder displays shopping application icons and a smart arrangement button 50 for receiving arrangement instructions. In combination with Table 4 above, it can be seen that the positions of the shopping A1 icon and the shopping A3 icon are fixed, the shopping A2 icon moves down, and an empty space 30 is added between the shopping A1 icon and the shopping A3 icon, and between the shopping A3 icon and the shopping A2 icon. Through the above method, an arrangement scheme in which the shopping A1 icon, the empty space 30, the shopping A3 icon, the empty space 30, and the shopping A2 icon are arranged in sequence is realized.

[0132] The display unit 360 is used to display the icons 20 in the display interface 10 according to the arrangement scheme. Specifically, the display unit 360 obtains the icons 20 corresponding to the application programs, and displays the icons 20 in the display interface 10 according to the position distribution of the arrangement scheme.

[0133] The following will be combined Figures 6 to 13 , introduce the technical solution of this application in detail.

[0134] The icon arrangement scheme in this application is an arrangement condition obtained by combining the main color and complexity of the icon, and the icon arrangement scheme generated according to the arrangement condition makes the icons with similar appearance arranged at intervals in the display interface, thereby preventing the user from accidentally clicking the surrounding adjacent icons when clicking the icon according to habit and memory, thereby improving the user's experience. Specifically, Fig. 9 As shown, the icon arrangement scheme provided by this application includes the following steps:

[0135] Step 901: The touch sensor in the mobile phone 100 receives an operation instruction for the display interface. The operation instruction is generated by the touch sensor 180K in the mobile phone 100 according to the user's touch operation, and is used to instruct the mobile phone 100 to redisplay and rearrange the icons in the display interface 10.

[0136] Step 902 : the reading unit 310 in the mobile phone 100 extracts the mobile icons and fixed icons in the arrangement instruction, and reads the image file of the icon 20 in the display interface 10 .

[0137] In some embodiments, the reading unit 310 reads all icons 20 in the display interface 10 to confirm the arrangement conditions of all icons 20 in the display interface 10 and between icons 20 to meet the interval arrangement of icons 20 with similar appearance in the display interface 10.

[0138] In other embodiments, the reading unit 320 reads the image files of the icons on the display interface 10 to confirm the arrangement conditions between the icons, thereby ensuring that icons with similar appearances are arranged at intervals.

[0139] In some other embodiments, the reading unit 320 reads image files of icons in the display interface 10, as well as image files of fixed icons with adjustable adjacent positions, to meet the requirement of spaced arrangement of icons 20 with similar appearance, while reducing the amount of data processing and improving reading and computing efficiency.

[0140] Step 903: The extraction unit 320 in the mobile phone 100 extracts color information parameters from the image file.

[0141] The color information parameters include the H value, S value, B value and gray value of each pixel in the image file.

[0142] Step 904: the parsing unit 330 in the mobile phone 100 obtains the main color of the icon according to the H value, S value and B value in the color information parameter.

[0143] Specifically, see Fig.10 , obtaining the main color of the icon according to the H value, S value and B value in the color information parameter specifically includes the following steps:

[0144] Step 904a: The parsing unit 330 receives the H value, S value, and B value of the pixel points in the image file extracted by the extracting unit 320, and classifies the pixel points with the same H value, S value, and B value as the same type of pixel points.

[0145] Step 904b: The analysis unit 330 compares the H value, S value and B value of any two types of pixel points to determine whether the phase difference ΔH of the two types of pixel points does not exceed the phase difference threshold, and the color difference ΔSB value does not exceed the color difference threshold. If yes, it means that the phase difference and color difference of the two types of pixel points are not much different, that is, the two types of pixel points are similar pixels, and the process goes to step 904c. If no, it means that the phase difference and / or color difference of the two types of pixel points are large, that is, the two types of pixel points are not similar pixels, and the process goes to step 904f.

[0146] In some embodiments, the phase difference threshold is 30, and the color difference threshold is 33. Since the value range of H is 0 to 360, when the phase difference between the two colors is within 30, that is, ΔH≤30, it is determined that the colors of the two pictures are similar in the hue dimension, where ΔH=|H1-H2|. Since the value range of S and B is 0 to 100, when the phase difference between the two colors is within 100 / 3≈33, that is, ΔSB≤33, it is determined that the two colors are similar in the saturation and brightness dimensions, where It can be understood that the value corresponding to the phase difference threshold can be adjusted according to the needs, and the value of the phase difference threshold of this application is not specifically limited. Any phase difference threshold that can meet the difference in hue dimension of the two icons is within the protection scope of this application. At the same time, the value corresponding to the color difference threshold can be adjusted according to the needs, and the value of the color difference threshold is not specifically limited in this application. Any color difference threshold that can meet the difference in saturation and brightness of the two icons is within the protection scope of this application.

[0147] Step 904c: The parsing unit 330 determines whether the number of the first type of pixel points is greater than or equal to the number of the second type of pixel points. If yes, it means that the number of the first type of pixel points is larger, and the process goes to step 904d. If no, it means that the number of the second type of pixel points is larger, and the process goes to step 904e. The first type of pixel points is a set of pixel points with the same H value, S value and B value, and the second type of pixel points is another set of pixel points with the same H value, S value and B value. For example, the H value of the first type of pixel points is H1, the S value is S1, and the B value is B1, and the H value of the second type of pixel points is H2, the S value is S2, and the B value is B2.

[0148] Step 904d: The parsing unit 330 classifies the second-category pixels into the first-category pixels, that is, the number of the first-category pixels is the sum of the original number of the first-category pixels and the original number of the second-category pixels, and the number of the second-category pixels is 0, and the process proceeds to step 904f. For example, the H value of the pixel point after the merge is H1, the S value is S1, and the B value is B1.

[0149] Step 904e: The parsing unit 330 classifies the first pixel into the second category of pixels, that is, the number of the first category of pixels is 0, and the number of the second category of pixels is the sum of the original number of the first category of pixels and the original number of the second category of pixels, and then proceeds to step 904f. For example, the H value of the pixel of the merged category is H2, the S value is S2, and the B value is B2.

[0150] Step 904f: the parsing unit 330 sorts all the pixels on the image file until the number of pixel categories is the least, and counts the number of pixels in each category.

[0151] Step 904g: The parsing unit 330 determines whether the number of pixels has a unique maximum value. If so, it means that the pixels of the image file have a unique classification category with the largest number, that is, a certain color in the image file accounts for a large proportion, and the process proceeds to step 904h. If not, it means that there are many colors in the image file, and the proportions of multiple colors are relatively uniform, and the process proceeds to step 904i. It can be understood that when the category with the largest number of pixels is not unique, there may be multiple groups of pixels with the largest number of hues, saturation, and brightness, or there may be multiple groups of pixels with a number close to the largest number of hues, saturation, and brightness.

[0152] Step 904h: the parsing unit 330 uses the H value, S value, and B value corresponding to the classification category with the largest number as the main color of the icon, and ends the process.

[0153] Step 904i: the analysis unit 330 determines that the icon has no primary color, and the process ends.

[0154] Step 905: The calculation unit 340 in the mobile phone 100 obtains the complexity of the icon according to the GS value in the color information parameter. The complexity is used to characterize the characteristic difference of the pixel points in the icon. When the complexity is large, the pixel points in the image file of the icon are large in difference. On the contrary, when the complexity is small, the pixel points in the image file of the icon are small in difference. When the pixel points in the image file of the icon are exactly the same, the complexity of the icon is 0. For example, the complexity of the icon can be described by the dimensions of the appearance of grayscale, the spatial distribution of grayscale, and the appearance of pixel points.

[0155] Specifically, see Fig.11 The calculation unit 340 obtains the complexity of the icon according to the GS value in the color information parameter, and specifically includes the following steps:

[0156] Step 905a: The calculation unit 340 obtains the GS value in the color information parameter, and generates a grayscale co-occurrence matrix according to the GS value. Among them, the grayscale co-occurrence matrix is ​​an N-order matrix used to describe the image texture of the image file. Image texture is used to characterize the spatial distribution of grayscale. Image texture is expressed by the grayscale distribution of pixels and their surrounding spatial neighborhoods, that is, local texture information. In addition, the repeatability of local texture information to varying degrees is global texture information. The grayscale co-occurrence matrix is ​​composed of elements p(i, j), where p(i, j) represents the element value of the i-th row and j-th column in the matrix, and the value of p(i, j) is the number of pixel pairs in the image file where the grayscale of one pixel is i, the grayscale of another pixel is j, and the distance between the two pixels is d. It can be understood that a grayscale co-occurrence matrix only involves the number of pixel pairs in one direction, such as horizontal, vertical or 45 degrees. d is a preset value, for example, d is 2 pixels. Where N is the grayscale of the image file. Grayscale refers to the difference in brightness of pixels displayed on a black and white display. The more grayscales there are, the clearer and more realistic the image layers are. Grayscale can reflect the number of grayscales in the image and the appearance of each grayscale pixel. Grayscales are usually merged from 256 to a few, such as 8, and similar grayscales can be used as one level.

[0157] Step 905b: The calculation unit 340 calculates the information entropy of the image file according to the grayscale distribution of the pixels of the image file. The information entropy represents the randomness of the image texture. The information entropy is used to measure the number of grayscale levels of the image file as a whole. The larger the information entropy, the higher the randomness of the image texture, the less chance the image texture appears, and the more complex the image file. Specifically, the calculation formula of the information entropy is as follows:

[0158]

[0159] Among them, H' represents the information entropy of the image file, N' represents the number of gray levels of the image file, ranging from 1 to 255, and p i Indicates the ratio of the number of pixels of each gray level to the total number of pixels.

[0160] Step 905c: The calculation unit 340 calculates the edge ratio of the image file based on the grayscale distribution of the pixels in the image file. The edge of the target in the image is manifested as the place where the grayscale of the image changes significantly. Generally, the number of edge pixels in the image can be calculated by an edge detection operator, for example, the canny edge algorithm. The edge ratio is used to describe the appearance of objects in the image. The size of the edge ratio can be directly used to reflect the number and complexity of the target objects in the image. The larger the edge ratio, the larger the ratio of the pixels at the edge in the image file, the more objects there are in the image or the more complex the objects are. Specifically, the calculation formula of the edge ratio is as follows:

[0161] R=P edge / (M×N”),

[0162] Where R represents the edge ratio, P edge It represents the number of pixels at the edge of the image file, M represents the number of rows of pixels in the image file, and N" represents the number of columns of pixels in the image file.

[0163] Step 905d: The calculation unit 340 calculates the contrast of the image file based on the grayscale co-occurrence matrix. Contrast is the contrast that describes the texture, that is, the statistic of the coarseness of the image texture in the image file, and the contrast is used to reflect the clarity of the image texture of the image file. It can be understood that when the grayscale distribution of the image file is relatively uniform, the texture in the image file is a coarse texture, and the large values ​​of p(i,j) are concentrated near the diagonal of the grayscale co-occurrence matrix. At this time, the value of ij is small, and the contrast G of the image file is also small. Therefore, the greater the contrast, the clearer the image texture of the image file, and the lower the complexity of the image file. Specifically, the calculation formula of the contrast is as follows:

[0164]

[0165] Among them, G represents contrast, N represents the order of the gray-level co-occurrence matrix, p(i,j) represents the element value of the i-th row and j-th column in the gray-level co-occurrence matrix, i represents the i-th row in the gray-level co-occurrence matrix, and j represents the j-th column in the gray-level co-occurrence matrix.

[0166] Step 905e: The calculation unit 340 calculates the correlation of the image file based on the gray level co-occurrence matrix. The correlation is used to describe the similarity of the elements in the gray level co-occurrence matrix in the row or column direction, that is, the correlation is used to describe the correlation of the local grayscale in the image. The correlation can reflect the length of a grayscale value along a certain extension direction. The longer the extension length, the higher the correlation of the pixels in the image file, and the lower the complexity of the image file. The specific calculation formula is as follows:

[0167]

[0168] Where COV represents the correlation, N represents the order of the gray-level co-occurrence matrix, p(i,j) represents the element value of the i-th row and j-th column in the gray-level co-occurrence matrix, i represents the i-th row in the gray-level co-occurrence matrix, j represents the j-th column in the gray-level co-occurrence matrix, μ x Indicates p x The mean value, μ y Indicates p y The mean value, σ x Indicates p x The standard deviation, σ y Indicates p y The standard deviation, p x represents the sum of the elements in the xth row, p y Represents the sum of the elements in the y-th column.

[0169] Step 905f: The calculation unit 340 calculates the energy of the image file based on the grayscale co-occurrence matrix. Among them, energy is a statistic that represents the consistency of grayscale distribution and is a measure of the uniformity of grayscale distribution. Energy is used to measure the stability of grayscale changes in image texture of image files. The larger the energy, the more regular the changes in the pixels of the image file and the more stable the image texture. When the distribution of elements p(i,j) in the grayscale co-occurrence matrix is ​​concentrated near the main diagonal of the grayscale co-occurrence matrix, it means that the grayscale distribution of the image file is relatively uniform, the texture of the entire image file is coarser, and the changes in the pixels of the image file are more irregular. Therefore, the energy of the image file is smaller and the complexity of the image file is lower. Specifically, the calculation formula is as follows:

[0170]

[0171] Among them, J represents energy, N represents the order of the gray-level co-occurrence matrix, p(i,j) represents the element value of the i-th row and j-th column in the gray-level co-occurrence matrix, i represents the i-th row in the gray-level co-occurrence matrix, and j represents the j-th column of the gray-level co-occurrence matrix.

[0172] Step 905g: The calculation unit 340 calculates the complexity of the icon according to the information entropy, edge ratio, contrast, correlation and energy of the icon image file. Specifically, the calculation formula is as follows:

[0173] C=H'+R+G-COV-J,

[0174] Among them, C represents the complexity of the icon, H' represents the information entropy of the icon's image file, R represents the edge ratio, G represents the contrast, COV represents the correlation, and J represents the energy.

[0175] like Fig.12 As shown, the icons 20 in the left column correspond to icons with greater complexity, while the icons 20 in the right column correspond to icons with less complexity.

[0176] Step 906: The arrangement unit 350 in the mobile phone 100 generates arrangement conditions according to the main color and complexity of the icons, and generates an arrangement scheme for the mobile icons according to the arrangement conditions.

[0177] Specifically, see Fig.13 The arrangement unit 350 in the mobile phone 100 generates arrangement conditions according to the main color and complexity of the icons, specifically including the following steps:

[0178] Step 906a: The arrangement unit 350 determines whether the icon has a main color and the complexity is less than the complexity threshold. If yes, it means that the main color of the icon is single, and the lines of the icon are relatively simple, the complexity is low, and the probability of this icon being similar to other icons is high. Therefore, when arranging the icon in the display interface, the relative arrangement relationship between the icon and other icons needs to be considered, and the process goes to step 906b. If no, it means that the main color of the icon is two or more, or the lines of the icon are relatively complex, and the probability of this icon being similar to other icons is low. Therefore, the icon can be arranged arbitrarily in the display interface, and the process goes to step 906e.

[0179] In some embodiments, the complexity threshold is 8, and icons without a primary color are usually rich in color and not easily mistaken for other icons. However, currently icons usually have a primary color, and there are very few icons without a primary color. Icons with a complexity greater than or equal to 8 have sufficiently rich details, and users can more easily identify the key features of the icons, and are not easily mistaken for other icons. It is understandable that the complexity threshold can be adjusted according to demand, and the present application does not impose specific restrictions on the value of the complexity threshold. Any complexity threshold that can meet the characterization of icon details is within the scope of protection of the present application.

[0180] Step 906b: the arrangement unit 350 compares the main colors of the icons in the display interface 10 in pairs. Specifically, the arrangement unit 350 calculates the phase difference ΔH and the color difference ΔSB between the two icons.

[0181] Step 906c: The arrangement unit 350 determines whether the phase difference ΔH of the two icons does not exceed the phase difference threshold, and whether the color difference ΔSB does not exceed the color difference threshold. If yes, it means that the phase difference between the main colors of the two icons is less than or equal to the phase difference threshold, and the color difference between the main colors of the two icons is less than or equal to the color difference threshold, that is, the main colors of the two icons are the same or close, and the process proceeds to step 906d. If no, it means that the phase difference ΔH of the two icons is much different, or the color difference ΔSB is much different, that is, the main colors are not close, and the process proceeds to step 906h.

[0182] Step 906d: The arrangement unit 350 compares the complexity of the icons in the display interface in pairs, calculates the complexity difference ΔC between the icons, and enters step 906f, where ΔC = |C1-C2|, C1 is the complexity of the first icon, C2 is the complexity of the second icon, and ΔC is the difference between the complexity of the first icon and the complexity of the second icon.

[0183] Step 906e: The arrangement condition for generating icons by the arrangement unit 350 is any arrangement, and the process goes to step 906f.

[0184] Step 906f: The arrangement unit 350 determines whether the complexity difference ΔC is greater than the complexity difference threshold. If yes, it means that although the difference between the main colors of the two icons is small and the color difference is also small, the complexity difference is large, that is, the two icons have different appearances, which reduces the probability of misclicking the two icons, and the process goes to step 906h. If no, it means that the difference between the main colors of the two icons is not only small, but also the color difference is small, and the complexity is not much different, and thus the probability of the two icons being similar in appearance is high, which is easy to cause misclicking of the two icons, and the process goes to step 906g.

[0185] For example, when the complexity difference threshold is 7, when the complexity difference ΔC corresponding to the two icons is greater than 7, it means that the complexity difference between the two icons is large enough, and the appearances of the two icons are obviously different. When the complexity difference ΔC corresponding to the two icons is less than or equal to 7, it means that the complexity difference between the two icons is not large enough. When the difference between the main colors of the two icons is small and the color difference is also small, the appearance of the two icons is not obviously different. It can be understood that the complexity difference threshold can be adjusted according to demand. The present application does not impose specific restrictions on the value of the complexity difference threshold. Any complexity difference threshold that can satisfy the obvious difference in appearance of the two icons is within the scope of protection of the present application.

[0186] Step 906g: the arrangement unit 350 generates an arrangement condition for the two icons to be arranged with an interval between them, and the process ends.

[0187] Step 906h: the arrangement unit 350 generates an arrangement condition for the two icons as any arrangement relative to each other, and the process ends.

[0188] Specifically, the mutually spaced arrangement means that the shortest distance D between the two icons is greater than or equal to the distance threshold. The shortest distance D refers to the minimum distance between any pixel on one icon and any pixel on another icon. Specifically, it can be calculated by the following formula:

[0189]

[0190] Where D is the shortest distance, (x 1i ,y 1i ) is the coordinate of any pixel point on the first icon, (x 2j ,y 2j ) are the coordinates of any pixel point on the second icon.

[0191] Specifically, it can be understood that the shortest distance between the first icon and the second icon is the minimum distance between a pixel point on the edge of the first icon and a pixel point on the edge of the second icon. 1i ,y 1i ) is the coordinate of any pixel point on the edge of the first icon, (x 2j ,y 2j ) are the coordinates of any pixel point on the edge of the second icon.

[0192] At the same time, since the width of the contact area between the user's finger and the touch screen of the electronic device is about 10mm. At the same time, on electronic devices of different sizes, when the click accuracy reaches more than 95%, it is necessary to ensure that the size of the touch control is in the range of 8mm to 14mm. Therefore, in some embodiments, the distance threshold is 10mm, that is, the shortest distance is greater than or equal to 10mm. It can be understood that the distance threshold can be adjusted according to demand, and the present application does not impose specific restrictions on the value of the distance threshold. Any distance threshold that can meet the touch requirements is within the protection scope of the present application.

[0193] It can be understood that after the arrangement unit 350 generates the arrangement conditions of the icons according to the main color and the complexity, it generates a sorting scheme of the icons according to the arrangement conditions.

[0194] Step 907: The display unit 360 in the mobile phone 100 generates and displays an icon at a corresponding position according to the arrangement scheme.

[0195] In some embodiments, the mobile phone 100 display interface is a folder display interface with a smart arrangement button. The user clicks the smart arrangement button to send an arrangement instruction, and the icons 20 in the folder display interface are automatically arranged, and a "icons have been smartly arranged" message box pops up. If the user clicks the smart arrangement button again to send a cancel instruction, the icons 20 in the folder display interface automatically return to the initial arrangement state, and a "smart arrangement has been canceled" message box pops up.

[0196] In some embodiments, when the mobile phone 100 receives the user's instruction to add or remove icons 20 in the display interface 10, the step of obtaining the color information parameters of the icon's image file specifically includes: the touch sensor 180K in the mobile phone 100 receives the touch operation and generates a touch instruction according to the touch operation. The reading unit 310 in the mobile phone 100 obtains the image file corresponding to the icon 20 in the display interface 10 from the installation package manager 198 according to the operation instruction. The extraction unit 320 in the mobile phone 100 obtains the color information parameters of the image file.

[0197] In some embodiments, after the step of acquiring the color information parameters of the image file, the method further includes: the touch sensor 180K in the mobile phone 100 generates a cancel instruction for displaying the interface 10 according to the user's touch operation. The arrangement unit 350 in the mobile phone 100 acquires the preset conditions set according to the clock according to the cancel instruction, and generates a preset scheme according to the preset conditions. The display unit 360 in the mobile phone 100 displays the icon 20 on the display interface 10 according to the preset scheme.

[0198] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.

[0199] Fig.14 1 is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.

[0200] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.

[0201] The application layer can include a series of application packages.

[0202] like Fig.14 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0203] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0204] like Fig.14 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0205] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.

[0206] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0207] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0208] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0209] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0210] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.

[0211] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0212] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0213] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.

[0214] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0215] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0216] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0217] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0218] A 2D graphics engine is a drawing engine for 2D drawings.

[0219] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.

[0220] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0221] When the touch sensor 180K receives an instruction, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into raw input events (including touch coordinates, instruction type, icon timestamp and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events from the kernel layer and identifies the controls corresponding to the input events. For example, if the instruction is an arrangement instruction and the control corresponding to the arrangement instruction is a smart arrangement button control, the smart arrangement calls the interface of the application framework layer, starts the application launcher 199A, and then starts the display driver 196B by calling the kernel layer, and displays the icon 20 through the display interface 10 in the display screen 194.

[0222] References in the specification to "some embodiments" or "embodiments" mean that a particular feature, structure, or characteristic described in conjunction with the embodiments is included in at least one exemplary implementation or technique according to the present disclosure. The appearances of the phrase "in one embodiment" in various places in the specification do not necessarily all refer to the same embodiment.

[0223] The present disclosure also relates to an operating device for performing the text. The device can be constructed specifically for the required purpose or it can include a general-purpose computer selectively activated or reconfigured by a computer program stored in the computer. Such a computer program can be stored in a computer-readable medium, such as, but not limited to, any type of disk, including a floppy disk, an optical disk, a CD-ROM, a magneto-optical disk, a read-only memory (ROM), a random access memory (RAM), an EPROM, an EEPROM, a magnetic or optical card, an application-specific integrated circuit (ASIC) or any type of medium suitable for storing electronic instructions, and each can be coupled to a computer system bus. In addition, the computer mentioned in the specification may include a single processor or may be an architecture involving multiple processors for increased computing power.

[0224] The process and display proposed herein do not inherently relate to any specific computer or other device. Various general purpose systems may also be used together with the program according to the teachings herein, or it may prove convenient to construct more special purpose devices to perform one or more method steps. The structure for various these systems is discussed in the following description. In addition, any specific programming language sufficient to implement the technology and embodiments of the present disclosure may be used. Various programming languages ​​may be used to implement the present disclosure, as discussed herein.

[0225] Additionally, the language used in this specification has been primarily selected for readability and instructional purposes and may not have been selected to delineate or limit the disclosed subject matter.Thus, this disclosure is intended to illustrate but not to limit the scope of the concepts discussed herein.

Claims

1. A method for arranging icons, characterized in that: include: The electronic device selects, from a plurality of icons on the display interface, a first icon and a second icon that are adjacent in position and whose main color and complexity meet a rearrangement condition; The electronic device generates an arrangement condition according to the main color and complexity of the icons in the display interface, wherein the arrangement condition is a sorting logic for limiting display positions of the icons in the display interface; The electronic device generates a plurality of arrangement schemes for the first icon and the second icon according to the arrangement condition, wherein, corresponding to the icons in the display interface being closely arranged and failing to meet the arrangement condition, the first icon and the second icon are two adjacent icons with the smallest phase difference or color difference of main colors among the multiple icons; corresponding to the icons in the display interface being closely arranged and failing to meet the arrangement condition, and the phase difference or color difference of main colors of each group of adjacent icons among the multiple icons being the same, the first icon and the second icon are two adjacent icons with the smallest complexity difference among the multiple icons; The electronic device adjusts the position of at least one of the first icon and the second icon according to a first arrangement scheme among the multiple arrangement schemes, so that the first icon and the second icon meet the arrangement condition, so that the first icon and the adjacent icon of the first icon do not meet the rearrangement condition, and the second icon and the adjacent icon of the second icon do not meet the rearrangement condition; wherein the first arrangement scheme is an arrangement scheme with the smallest total step length of icon movement among the multiple arrangement schemes, and the movement step length is used to represent the movement distance of the icon; The electronic device displays the first icon and the second icon after the positions are adjusted on the display interface.

2. The method according to claim 1, characterized in that The rearrangement conditions include: The position of at least one of the first icon and the second icon is not fixed; The difference between the primary color of the first icon and the primary color of the second icon is less than or equal to a difference threshold, and the color difference is less than or equal to a color difference threshold; The complexity of the first icon and the second icon are both less than a complexity threshold, and the complexity difference between the first icon and the second icon is less than or equal to a complexity difference threshold.

3. The method according to claim 1, characterized in that The electronic device adjusting a position of at least one of the first icon and the second icon includes: The electronic device places the first icon at a first preset position, and places a plurality of icons that do not satisfy a rearrangement condition relative to the first icon at a plurality of adjacent positions of the first preset position.

4. The method according to claim 3, characterized in that: The display interface includes a first display sub-interface and a second display sub-interface adjacent to the first display sub-interface, and The first preset position is located in the first display sub-interface, and the adjacent position of the first preset position includes: a position adjacent to the first preset position in the first display sub-interface, and a position with the same interface coordinates as the adjacent position of the first preset position in the second display sub-interface.

5. The method according to claim 1, characterized in that After the electronic device adjusts the position of at least one of the first icon and the second icon, the shortest distance between the first icon and the second icon is greater than or equal to a distance threshold.

6. The method according to claim 5, characterized in that The distance threshold is 10 mm.

7. The method according to claim 1, characterized in that The electronic device determines the primary color of the first icon in the following manner: The electronic device obtains a color information parameter of the first icon; The electronic device extracts hue, saturation and brightness from the color information parameters; The electronic device classifies the pixels in the image file of the first icon according to the hue, the saturation and the brightness; When the category with the largest number of pixels is unique, the electronic device uses the color of the category with the largest number of pixels as the main color of the first icon; When the category with the largest number of pixels is not unique, the electronic device determines that the first icon has no main color.

8. The method according to claim 7, characterized in that The electronic device classifies the pixels in the image file of the first icon in the following manner: The electronic device classifies the pixels having the same hue, saturation and brightness into one category to form an initial category for representing a set of identical pixels; The electronic device merges initial categories whose color difference is lower than a color difference threshold and whose phase difference is lower than a phase difference threshold to form classification categories for characterizing similar and identical pixel point sets.

9. The method according to claim 7, characterized in that: The electronic device determines the complexity of the first icon in the following manner: The electronic device extracts the grayscale value in the color information parameter; The electronic device generates a grayscale co-occurrence matrix of the image file of the first icon according to the grayscale value; The electronic device calculates the complexity of the first icon according to the grayscale co-occurrence matrix through the random probability of icon texture in the image file, the number and status of icon objects, the clarity of the image file, the correlation of local grayscale and the consistency of grayscale distribution.

10. The method according to claim 9, characterized in that The electronic device calculates the information entropy, edge ratio, contrast, correlation and energy of the image file according to the gray level co-occurrence matrix, and obtains the complexity of the first icon according to the information entropy, the edge ratio, the contrast, the correlation and the energy.

11. The method according to claim 1, characterized in that: The display interface includes the desktop of the electronic device, the display interface of a folder in the electronic device, and an application program interface of an application program installed on the electronic device.

12. An electronic device, characterized in that: include: A memory storing instructions; A processor is coupled to a memory, and when the program instructions stored in the memory are executed by the processor, the electronic device executes the icon arrangement method according to any one of claims 1 to 11.

13. A readable medium having instructions stored therein, characterized in that: When the instructions are executed on the readable medium, the readable medium is caused to execute the icon arrangement method according to any one of claims 1 to 11.