Interface theme generation method for mobile electronic device and mobile electronic device
By analyzing the color information of image files in mobile electronic devices, the interface theme is dynamically generated, which solves the problem of monotonous interface colors in the existing technology and achieves an intelligent user experience that matches the scene.
Patent Information
- Application Number
- CN202011302161.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-19
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2040-11-19
AI Technical Summary
The operation interface of existing mobile electronic devices has monotonous colors, lacks personalization, and cannot dynamically adjust the interface theme according to the scene in which the user is located.
By accessing the image files stored in the mobile electronic device, the shooting location and time information is obtained, the most recent image file is determined, the color information is extracted, the comprehensive color value is calculated, and the interface theme is generated based on the color value, and the interface color scheme and light are dynamically adjusted. Effect.
It achieves a match between the interface theme and the user's scenario, improves the intelligence and personalization of the user experience, and increases user stickiness and business conversion rate.
Smart Images

Figure CN114520851B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to a method for generating an interface theme for a mobile electronic device and the mobile electronic device. Background Art
[0002] The operating interface of mobile electronic devices in the prior art (such as smart phones, notebook computers, laptop computers, tablet computers such as iPads, mobile readers, etc.) is monotonous in color and lacks "personalization". Common theme color schemes for mobile electronic devices include: 1. In the operating system of the mobile electronic device, the theme background image is randomly and dynamically set, or the background image is actively set by the current user, or the background image is dynamically set according to the color of the current desktop image; 2. In the application or website of the mobile electronic device, the color scheme of the same style is basically used, or it is uniformly adjusted to a holiday theme or color scheme during a certain holiday, without the user's personalized color scheme. Summary of the invention
[0003] A brief overview of the disclosure is given below in order to provide a basic understanding of some aspects of the disclosure. However, it should be understood that this overview is not an exhaustive overview of the disclosure. It is not intended to identify the key or important parts of the disclosure, nor is it intended to limit the scope of the disclosure. Its purpose is simply to give some concepts of the disclosure in a simplified form as a prelude to a more detailed description given later.
[0004] According to one aspect of the present disclosure, a method for generating an interface theme for a mobile electronic device is provided, comprising: accessing one or more image files stored in the mobile electronic device to obtain shooting location information and shooting time information for each image file, the image files including still image files and moving image files; obtaining the device location of the mobile electronic device; determining whether there are one or more recent image files among the one or more image files whose shooting locations are at a distance from the device location that is less than a predetermined distance threshold; if the one or more recent image files exist, extracting color information from the one or more recent image files and calculating a comprehensive color value based on the color information; and generating an interface theme for the mobile electronic device based on the comprehensive color value.
[0005] According to another aspect of the present disclosure, a mobile electronic device is provided, comprising: a memory having instructions stored thereon; and a processor configured to execute the instructions stored on the memory to execute the interface theme generating method of the mobile electronic device as described above.
[0006] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which includes computer-executable instructions. When the computer-executable instructions are executed by one or more processors, the one or more processors execute the method according to the above aspects of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0008] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings, in which:
[0009] Figure 1 A flow chart of a method for generating an interface theme for a mobile electronic device according to an embodiment of the present disclosure is shown.
[0010] Figure 2 An example of a process of recognizing an image to extract a plurality of main objects and their colors according to an embodiment of the present disclosure is shown.
[0011] Figure 3 An exemplary configuration of a computing device that can implement an embodiment according to the present disclosure is shown. DETAILED DESCRIPTION
[0012] The following detailed description is made with reference to the accompanying drawings, and the following detailed description is provided to assist in a comprehensive understanding of the various exemplary embodiments of the present disclosure. The following description includes various details to assist in understanding, but these details are considered to be examples only and not to limit the present disclosure, which is defined by the appended claims and their equivalents. The words and phrases used in the following description are only used to enable a clear and consistent understanding of the present disclosure. In addition, for the sake of clarity and brevity, descriptions of well-known structures, functions, and configurations may be omitted. Those of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.
[0013] In order to solve one or more technical problems in the prior art, the inventor of the present application proposes to determine the comprehensive color of the scene in which the mobile electronic device is located according to the image file stored in the mobile electronic device, and generate an interface theme of the mobile electronic device according to the comprehensive color.
[0014] Figure 1 FIG. 1 is a flow chart showing a method 100 for generating an interface theme for a mobile electronic device according to an embodiment of the present disclosure. Figure 1As shown, the method 100 includes: accessing one or more image files stored in a mobile electronic device to obtain shooting location information and shooting time information of each image file, wherein the image files include still image files and moving image files (101); obtaining the device location of the mobile electronic device (102); determining whether there are one or more recent image files among the one or more image files whose shooting locations are at a distance from the device location that is less than a predetermined distance threshold (103); if the one or more recent image files exist, extracting color information from the one or more recent image files and calculating a comprehensive color value based on the color information (104); and generating an interface theme of the mobile electronic device based on the comprehensive color value (105).
[0015] In the present disclosure, the interface theme may be any one or more of the interface theme of the operating system of the mobile electronic device, the interface theme in an application or app (e.g., an app in a smart phone), and the interface theme of a web browser opened in the mobile electronic device. In addition, the interface theme includes one or more of the color scheme of the interface, the light effect, the shape and color of the cursor, the shape and color of the mouse, etc. In addition, the color scheme includes gradient colors and dynamically changing colors, and the shapes and colors of the cursor and mouse include dynamically changing shapes, gradient colors, and dynamically changing colors.
[0016] In the art, interface themes are sometimes referred to as "filters" or "theme filters." That is, these three terms are equivalent, and they all represent the style or mood of the interface.
[0017] Still image files refer to image files such as photos. Moving image files refer to non-still image files of any format such as videos. These image files may be included in an album in a mobile electronic device, or in any other directory or location. These image files may be stored in any internal and external volatile and non-volatile memory and storage device of the mobile electronic device, including RAM, ROM, hard disk, externally connected mobile hard disk, USB storage device, etc.
[0018] In one embodiment, in step 101 , the location information of the image file may include, for example, longitude and latitude coordinates.
[0019] In one embodiment, in step 102, the current device location may be obtained through a positioning function of the mobile electronic device. For example, the positioning function may include a global positioning system. In addition, the current device location may be obtained through wired or wireless communication performed by the mobile electronic device. For example, the current device location may be obtained through an IP address or a base station, access point (AP) connected to, etc.
[0020] In one embodiment, in step 103, the number of the determined one or more recent image files may be changed by changing the predetermined distance threshold. For example, if the number of the obtained recent image files is too large, the predetermined distance threshold may be reduced to reduce the number of recent image files. For example, the number of recent image files may be controlled to any number between 1 and 3.
[0021] In one embodiment, if it can be determined that the mobile electronic device is currently located outdoors, the predetermined distance threshold can be set to a larger value, for example, 100 meters, 1000 meters, 10 kilometers, etc. This is because outdoor scenes may be similar within a larger range. On the contrary, if it can be determined that the mobile electronic device is currently located indoors, the predetermined distance threshold can be set to a smaller value, for example, between 1 meter and 100 meters.
[0022] In one embodiment, in step 104, extracting the color information in the one or more recent image files may include calculating or estimating the main color or average color in each recent image file, and then calculating the average color of the multiple recent image files. In the case of only one recent image file, the average color of all pixels of the image may be calculated, or the average color of the main part of the image (for example, excluding the area of the predetermined edge part) may be calculated.
[0023] In one embodiment, in step 104, multiple main objects and the color of each main object in the one or more recent image files may be identified and extracted, and the comprehensive color value may be calculated according to the size and color of each main object. Figure 2 As shown, by recognizing the indoor photo shown in the figure, multiple main objects can be extracted: computer desk, chair, computer case, monitor, potted plant, desk lamp, book, keyboard, pillow, etc. The comprehensive color value can be calculated by calculating the size, color and area ratio of these main objects in the image. For example, the comprehensive color value can be calculated by weighted averaging the colors according to the area ratio.
[0024] The composite color value is a color value that is likely to represent the scene, atmosphere or mood of the one or more recent image files.
[0025] In one embodiment, in step 105 , the interface theme of the mobile electronic device may be set to match the calculated integrated color value, or to be the same as or close to the calculated integrated color value.
[0026] Through the above method 100, the color that can represent the scene in which the mobile electronic device is located can be determined according to the image file stored in the mobile electronic device, and the interface theme can be generated according to the color, so that the interface theme is adapted to the current scene, atmosphere, mood or environment. In this way, a "chameleon"-like intelligent experience can be provided to the user, which adds mystery to the business, thereby improving user stickiness and promoting business conversion rate.
[0027] In one embodiment, the most recent image file can be determined not only in space but also in time. For example, method 100 may further include: after step 103, if there are multiple most recent image files, then determining whether there are one or more most recent image files in the multiple most recent image files whose time difference between the shooting time and the current time is less than a predetermined time threshold. Thus, in the subsequent step 104, if the one or more most recent image files exist, then extracting the color information in the one or more most recent image files, and calculating the comprehensive color value based on the color information.
[0028] In one embodiment, the predetermined time threshold may be 1 hour, 1 day, 1 week, 1 month, 3 months, etc.
[0029] In one embodiment, the shooting time of the image file and the current time can be simplified to the time expressed in a 24-hour manner arranged on a circle without considering the date, wherein the time difference between 0:00 and 24:00 is regarded as 0.
[0030] In this embodiment, since the difference in date is not considered, only the difference in time of the day is considered, and 24 hours are arranged on a circle, it is possible to find the latest image file with a sunlight condition or a darkness condition close to the current time. For example, since the time difference between 1:00 and 24:00 will be regarded as 1 hour, and the difference in date is not considered, these two time points are easily determined to be close in time, and the darkness conditions of these two time points are also very close.
[0031] In this embodiment, the predetermined time threshold may be a value between 0.5 and 4 hours.
[0032] In one embodiment, method 100 may further include: determining a current scene according to the one or more recent image files, and determining a light effect corresponding to the current scene. In this embodiment, step 105 may include: generating an interface theme of the mobile electronic device according to the integrated color value and the light effect.
[0033] For example, the current scene can be determined to be any one of a study, a living room, a conference room, an office, a field, a gym, a court, a stadium, etc., based on the main objects identified in the most recent image file. Thus, a suitable light effect can be determined according to the scene, and the light effect and the comprehensive color value are combined to determine the interface theme. Thus, an interface theme that is more suitable for the current scene can be generated.
[0034] In one embodiment, in addition to or instead of determining based on the most recent image file, the scene of the current location can also be determined through a map based on the device location of the mobile electronic device. For example, the current location can be determined based on the device location to determine whether it is located in the wild, a tourist attraction, an office area, an industrial park, or a residential area, thereby determining the current scene or environment.
[0035] In one embodiment, in step 104, if there are multiple recent image files and the number of the multiple recent image files is greater than a predetermined number threshold, the multiple recent image files may be sorted according to the distance between the shooting position and the device position, and the recent image files with a smaller distance to the predetermined number threshold are selected as the one or more recent image files. For example, the predetermined number threshold may be any number from 1 to 3, or a larger number. Thus, the number of recent image files may be limited.
[0036] In one embodiment, in step 104, if there are multiple recent image files whose time difference between the shooting time and the current time is less than a predetermined time threshold and the number of the multiple recent image files is greater than a predetermined number threshold, the multiple recent image files are sorted according to the time difference, and the recent image files with a smaller time difference than the predetermined number threshold are selected as the one or more recent image files. For example, the predetermined number threshold can be any number from 1 to 3, or a larger number. In this way, the number of recent image files can be limited.
[0037] The technical solution disclosed in the present invention can analyze the main elements and colors of the image of the scene in which the user is located, and then generate a corresponding filter color scheme and apply it to the device operation interface.
[0038] Through the technical solution disclosed in the present invention, the mobile electronic device can extract the main objects of the scene (for example, objects, facilities, scenery, etc.), main colors, etc. through the image file of the scene where the user is located, and generate filters through these contents to be applied to the theme of the mobile electronic device, APP theme, main color of the website, etc., as if the mobile electronic device has an intelligent theme color matching like a "chameleon", which is more "technological" in user experience, creating a "you understand me better" user experience for users.
[0039] Figure 3 An exemplary configuration of a computing device 1200 capable of implementing embodiments according to the present disclosure is shown.
[0040] The computing device 1200 is an example of a hardware device to which the above aspects of the present disclosure can be applied. The computing device 1200 can be any machine configured to perform processing and / or computing. The computing device 1200 can be, but is not limited to, a workstation, a server, a desktop computer, a laptop computer, a tablet computer, a personal data assistant (PDA), a smart phone, a vehicle-mounted computer, or a combination thereof.
[0041] like Figure 3 As shown, the computing device 1200 may include one or more elements that can be connected or communicated with the bus 1202 via one or more interfaces. The bus 1202 may include, but is not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an Enhanced ISA (EISA) bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus, etc. The computing device 1200 may include, for example, one or more processors 1204, one or more input devices 1206, and one or more output devices 1208. The one or more processors 1204 may be any kind of processor, and may include, but is not limited to, one or more general-purpose processors or special-purpose processors (such as special-purpose processing chips). The processor 1204 may be configured to implement the interface theme generation method of the mobile electronic device as described above. The input device 1206 may be any type of input device capable of inputting information to the computing device, and may include, but is not limited to, a mouse, a keyboard, a touch screen, a microphone, and / or a remote controller. The output device 1208 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer.
[0042] The computing device 1200 may also include or be connected to a non-transitory storage device 1214, which may be any non-transitory storage device that can implement data storage, and may include, but is not limited to, a disk drive, an optical storage device, a solid-state memory, a floppy disk, a flexible disk, a hard disk, a tape, or any other magnetic medium, a compressed disk or any other optical medium, a cache memory, and / or any other storage chip or module, and / or any other medium from which a computer can read data, instructions, and / or code. The computing device 1200 may also include a random access memory (RAM) 1210 and a read-only memory (ROM) 1212. The ROM 1212 may store programs, utilities, or processes to be executed in a non-volatile manner. The RAM 1210 may provide volatile data storage and store instructions related to the operation of the computing device 1200. The computing device 1200 may also include a network / bus interface 1216 coupled to a data link 1218. The network / bus interface 1216 may be any type of device or system capable of enabling communication with an external device and / or a network, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication device, and / or a chipset (such as a Bluetooth TM equipment, 802.11 equipment, WiFi equipment, WiMax equipment, cellular communication facilities, etc.).
[0043] The present disclosure may be implemented as any combination of an apparatus, a system, an integrated circuit, and a computer program on a non-transitory computer-readable medium. One or more processors may be implemented as an integrated circuit (IC), an application specific integrated circuit (ASIC), or a large scale integrated circuit (LSI), a system LSI, a super LSI, or a super LSI component that performs some or all of the functions described in the present disclosure.
[0044] The present disclosure includes the use of software, applications, computer programs, or algorithms. The software, applications, computer programs, or algorithms may be stored on a non-transitory computer-readable medium to enable a computer such as one or more processors to perform the above steps and the steps described in the accompanying drawings. For example, one or more memories store the software or algorithm in executable instructions, and one or more processors may associate a set of instructions to execute the software or algorithm to provide various functions according to the embodiments described in the present disclosure.
[0045] Software and computer programs (which may also be referred to as programs, software applications, applications, components or code) include machine instructions for a programmable processor and may be implemented in a high-level procedural language, an object-oriented programming language, a functional programming language, a logic programming language, or an assembly language or a machine language. The term "computer-readable medium" refers to any computer program product, apparatus or device for providing machine instructions or data to a programmable data processor, such as magnetic disks, optical disks, solid-state storage devices, memories and programmable logic devices (PLDs), including computer-readable media that receive machine instructions as computer-readable signals.
[0046] For example, computer readable media may include dynamic random access memory (DRAM), random access memory (RAM), read-only memory (ROM), electrically erasable read-only memory (EEPROM), compact disk read-only memory (CD-ROM) or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, or any other medium that can be used to carry or store the desired computer readable program code in the form of instructions or data structures and can be accessed by a general or special purpose computer or a general or special purpose processor. As used herein, disk or disc includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while discs reproduce data optically by laser. Combinations of the above are also included in the scope of computer readable media.
[0047] The subject matter of the present disclosure is provided as an example of devices, systems, methods and programs for performing the features described in the present disclosure. However, in addition to the above-mentioned features, other features or variations may also be expected. It is expected that the implementation of the components and functions of the present disclosure may be completed with any emerging technology that may replace any of the above-mentioned implementation technologies.
[0048] In addition, the above description provides examples without limiting the scope, applicability or configuration set forth in the claims. Without departing from the spirit and scope of the present disclosure, the functions and arrangements of the elements discussed may be changed. Various embodiments may appropriately omit, replace or add various processes or components. For example, features described with respect to certain embodiments may be combined in other embodiments.
[0049] In addition, in the description of the present disclosure, the terms “first”, “second”, “third”, etc. are used for descriptive purposes only and cannot be understood as indicating or implying relative importance and order.
[0050] Similarly, while operations are depicted in a particular order in the drawings, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed to achieve desired results. In certain circumstances, multitasking and parallel processing can be advantageous.
Claims
1. A method for generating an interface theme for a mobile electronic device, include: Accessing one or more image files stored in the mobile electronic device to obtain shooting location information and shooting time information of each image file, wherein the image files include still image files and moving image files; obtaining a device location of a mobile electronic device; determining whether there are one or more recent image files among the one or more image files whose distance between a shooting location and the device location is less than a predetermined distance threshold; If the one or more recent image files exist, extracting main objects and colors of each main object in the one or more recent image files, and calculating a comprehensive color value according to the size and color of each main object; and An interface theme of the mobile electronic device is generated according to the comprehensive color value.
2. The method according to claim 1, further comprising: include: If there are a plurality of recent image files, determining whether there are one or more recent image files among the plurality of recent image files whose time difference between the shooting time and the current time is less than a predetermined time threshold, and If the one or more recent image files exist, then color information in the one or more recent image files is extracted, and the integrated color value is calculated based on the color information.
3. The method according to claim 1 or 2, further comprising: include: determining a current scene based on the one or more recent image files, and determining a lighting effect corresponding to the current scene, and Generating the interface theme of the mobile electronic device according to the comprehensive color value includes: An interface theme of the mobile electronic device is generated according to the comprehensive color value and the light effect.
4. The method according to claim 2, wherein the photographing time and the current time are times expressed in a 24-hour format arranged on a circle regardless of date, wherein a time difference between 0:00 and 24:00 is regarded as 0.
5. The method according to claim 1, in, If there are multiple recent image files and the number of the multiple recent image files is greater than a predetermined number threshold, the multiple recent image files are sorted according to the distance between the shooting location and the device location, and the recent image file with a smaller distance to the predetermined number threshold is selected as the one or more recent image files.
6. The method according to claim 2, in, If there are multiple recent image files whose time difference between the shooting time and the current time is less than a predetermined time threshold and the number of the multiple recent image files is greater than a predetermined number threshold, then the multiple recent image files are sorted according to the time difference, and the recent image files with a smaller time difference than the predetermined number threshold are selected as the one or more recent image files.
7. A mobile electronic device, include: a memory having instructions stored therein; as well as A processor configured to execute instructions stored on the memory to perform the method according to any one of claims 1 to 6.
8. A computer-readable storage medium comprising computer-executable instructions, which, when executed by one or more processors, cause the one or more processors to perform the method according to any one of claims 1 to 6.
