CN106874021B - Automatic switching method and device for visual interface of terminal - Google Patents

Automatic switching method and device for visual interface of terminal Download PDF

Info

Publication number
CN106874021B
CN106874021B CN201510923727.1A CN201510923727A CN106874021B CN 106874021 B CN106874021 B CN 106874021B CN 201510923727 A CN201510923727 A CN 201510923727A CN 106874021 B CN106874021 B CN 106874021B
Authority
CN
China
Prior art keywords
terminal
time
visual interface
desktop
picture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510923727.1A
Other languages
Chinese (zh)
Other versions
CN106874021A (en
Inventor
张兴华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201510923727.1A priority Critical patent/CN106874021B/en
Publication of CN106874021A publication Critical patent/CN106874021A/en
Application granted granted Critical
Publication of CN106874021B publication Critical patent/CN106874021B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention relates to a method and a device for automatically switching a visual interface of a terminal. The method comprises the following steps: detecting environment information of a terminal, wherein the environment information comprises a geographical position and time; comparing the environment information of the terminal in the current detection with the environment information of the terminal in the previous detection adjacent to the current detection; and judging whether the environmental information of the terminal is changed, if so, adjusting the visual interface of the terminal according to the geographical position and time of the detected terminal, and if not, returning to the step of detecting the environmental information of the terminal. According to the method and the device for automatically switching the visual interfaces of the terminal, the geographical position and the time in the environment information of the terminal are detected, whether the environment of the terminal is changed or not is judged according to the geographical position and the time, if the environment of the terminal is changed, the visual interfaces of the terminal are automatically adjusted according to the geographical position and the time, the visual interfaces are switched without manual operation of a user, and automatic switching can be carried out according to the environment.

Description

Automatic switching method and device for visual interface of terminal
Technical Field
The invention relates to the field of electronic equipment, in particular to a method and a device for automatically switching a visual interface of a terminal.
Background
With the generation of various electronic devices, users have increasingly demanded higher use of electronic devices. The user can adjust the visual interface according to different requirements, and the visual interface can be a desktop or a standby screen. For example, users may often use different applications and preferred desktop themes in different environments and scenarios, such as companies that may often use some office, note, dictionary, etc. tools and more formal themes; at home, there may be preferences for video, game-like applications, and leisure themes; the bus is more favorable for reading, novels, games and other applications. However, the traditional desktop implementation does not distinguish scenes, the desktop is fixed and unchangeable in any situation, and when the desktop needs to be changed, the user needs to manually operate to switch the desktop, so that the operation is complicated.
Disclosure of Invention
Therefore, it is necessary to provide an automatic switching method for a terminal visual interface, which can automatically switch the visual interface according to the environment, aiming at the problems that the conventional visual interface needs to be manually switched by a user and the operation is complicated.
In addition, it is also necessary to provide an automatic switching device for a terminal visual interface, which can automatically switch the visual interface according to the environment.
A terminal visual interface automatic switching method comprises the following steps:
detecting environment information of a terminal, wherein the environment information comprises a geographical position and time;
comparing the environment information of the terminal in the current detection with the environment information of the terminal in the previous detection adjacent to the current detection;
and judging whether the environmental information of the terminal is changed, if so, adjusting the visual interface of the terminal according to the geographical position and time of the detected terminal, and if not, returning to the step of detecting the environmental information of the terminal.
An automatic switching device for a terminal visual interface comprises:
the terminal comprises a detection module, a processing module and a processing module, wherein the detection module is used for detecting environmental information of the terminal, and the environmental information comprises a geographical position and time;
the comparison module is used for comparing the environmental information of the terminal in the current detection with the environmental information of the terminal in the previous detection adjacent to the current detection;
the judging module is used for judging whether the environmental information of the terminal changes;
the switching module is used for adjusting a visual interface of the terminal according to the detected geographic position and time of the terminal when the change of the environmental information of the terminal is judged;
the detection module is further used for continuously detecting the environmental information of the terminal when the environmental information of the terminal is judged not to change.
According to the method and the device for automatically switching the visual interfaces of the terminal, the geographical position and the time in the environment information of the terminal are detected, whether the environment of the terminal is changed or not is judged according to the geographical position and the time, if the environment of the terminal is changed, the visual interfaces of the terminal are automatically adjusted according to the geographical position and the time, the visual interfaces are switched without manual operation of a user, and automatic switching can be carried out according to the environment.
Drawings
Fig. 1 is a schematic diagram of an internal structure of a terminal in one embodiment;
FIG. 2 is a flowchart illustrating a method for automatically switching visual interfaces of a terminal according to an embodiment;
FIG. 3 is a diagram of different scenes in a scene picture library;
FIG. 4 is a flowchart illustrating a method for automatically switching visual interfaces of a terminal according to another embodiment;
FIG. 5 is a schematic diagram of a desktop in an office scenario;
FIG. 6 is a schematic diagram of a desktop in a home scenario;
FIG. 7 is a schematic structural diagram of an automatic switching apparatus for a visual interface of a terminal according to an embodiment;
FIG. 8 is a schematic structural diagram of an automatic switching apparatus for a visual interface of a terminal according to another embodiment;
FIG. 9 is a schematic structural diagram of an automatic switching apparatus for a visual interface of a terminal according to another embodiment;
fig. 10 is a schematic structural diagram of an automatic switching device for a visual interface of a terminal in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic diagram of an internal structure of a terminal in one embodiment. As shown in fig. 1, the terminal includes a processor, a storage medium, a memory, a network interface, a display screen, and an input device, which are connected through a system bus. The terminal comprises a storage medium and an automatic switching device of the terminal visual interface, wherein the storage medium of the terminal stores an operating system, and the automatic switching device of the terminal visual interface is used for realizing an automatic switching method of the terminal visual interface. The processor is used for providing calculation and control capability and supporting the operation of the whole terminal. The internal memory in the terminal provides an environment for the operation of the terminal visual interface automatic switching device in the storage medium, and the network interface is used for carrying out network communication with the server, such as sending data to the server, receiving data returned by the server and the like. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the terminal, or an external keyboard, a touch pad or a mouse. The terminal can be a mobile phone, a tablet computer or a personal digital assistant and the like. Those skilled in the art will appreciate that the configuration shown in fig. 1 is a block diagram of only a portion of the configuration relevant to the present application, and does not constitute a limitation on the terminal to which the present application is applied, and that a particular terminal may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
Fig. 2 is a flowchart of a method for automatically switching a visual interface of a terminal in one embodiment. As shown in fig. 2, a method for automatically switching a visual interface of a terminal, which is executed on the terminal in fig. 1, includes the following steps:
step 202, detecting the environment information of the terminal, wherein the environment information comprises the geographic position and the time.
In this embodiment, the step of detecting the geographic position in the environmental information where the terminal is located includes: and detecting the geographic position of the terminal through a global satellite positioning system or WiFi or base station positioning.
Specifically, the terminal may be located by a GPS (global Positioning System) installed on the terminal, so as to detect a geographic location of the terminal. The geographical position of the network node can also be used as the geographical position of the terminal through the geographical position of the network node where the WiFi network connected with the terminal is located. Or detecting the geographical position of a base station of a 2G, 3G or 4G network used by the terminal, and taking the geographical position of the base station as the geographical position of the terminal.
In other embodiments, the step of detecting the geographic location in the environment information where the terminal is located includes: the method comprises the steps of obtaining an environment picture of a terminal, comparing the obtained environment picture with a pre-established scene picture, identifying the scene of the terminal, and taking the scene of the terminal as the geographic position of the terminal.
Specifically, since different scenes have respective distinctive features, a scene picture library may be established in advance, and pictures of a plurality of scenes are stored in the scene picture library. As shown in fig. 3, the scene picture library may store pictures of offices, homes, buses, roads, supermarkets, outdoor pictures, and the like. Such as office pictures including desks and computers. The pictures of the home include a television cabinet, a television, a bed and the like. The pictures of the bus comprise bus seats, handrails and the like. The pictures of the road include zebra crossings, cars and the like. The pictures of the supermarket comprise goods shelves, commodities and the like. Outdoor pictures include trees, mountains, and the like. The obtained environmental picture and the scene picture may be compared by using a picture similarity recognition algorithm, such as a discrete hash algorithm. The discrete hash algorithm maps an arbitrary length binary value to a shorter fixed length binary value, this small binary value being referred to as a hash value. Hash values are a unique and extremely compact representation of a piece of data as a value. If a piece of plaintext is hashed and even if only one letter of the piece is altered, the subsequent hash will produce a different value. It is computationally infeasible to find two different inputs whose hash is the same value, so the hash value of the data can verify the integrity of the data.
The time may be determined by the network time or the time of the terminal's own clock or the clock of the server, etc.
And 204, comparing the environment information of the terminal in the current detection with the environment information of the terminal in the previous detection adjacent to the current detection.
Specifically, the environment information where the terminal is located may be periodically detected. And comparing the environment information of the terminal detected this time with the environment information of the terminal detected in the previous time adjacent to the detection this time, so as to obtain whether the environment information of the terminal is changed. The environmental information includes a geographic location and a time.
For example, the geographic location of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position of the adjacent previous detection terminal is Beijing, and the time is 20 minutes and 20 seconds at 11, 16 and 22 days of 2015. And comparing the geographical positions and the time of the two detections to obtain the change of the environmental information of the terminal.
For another example, the geographic position of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position where the adjacent previous detection terminal is located at this time is Shenzhen, and the time is 20 minutes and 20 seconds at 11, 16 and 16 days in 2015. And comparing the geographical position and the time detected twice to obtain that the geographical position in the environmental information of the terminal is not changed, the time is in the working day time of the same day, and the time is not changed, so that the environmental information of the terminal is not changed.
Step 206, determining whether the environment information of the terminal is changed, if yes, executing step 208, and if not, executing step 202.
And 208, adjusting a visual interface of the terminal according to the detected geographic position and time of the terminal.
In this embodiment, the step of adjusting the visual interface of the terminal according to the geographical location and the time of the terminal detected this time includes: and acquiring a visual interface corresponding to the geographical position and time of the terminal to be detected according to the geographical position and time of the terminal to be detected from a mapping relation between the geographical position and time and a desktop of the terminal, wherein the mapping relation is established in advance, and the visual interface is used as a visual interface to which the terminal is switched after the terminal is detected.
Specifically, the visual interface may be a desktop or a standby screen, etc. If the visual interface is a desktop, firstly, a mapping relation between the geographic position and time and the desktop of the terminal is established. The mapping may include presetting a variety of desktops based on frequented times and geographic locations. The system can also comprise various common desktops preset by the system, such as corresponding desktops of a home (all day), a company (daytime), a supermarket (all day), a bus (all day), and the like. The elements of the desktop include the style, display position, desktop theme, etc. of the desktop icon and shortcut. The establishment of the mapping relation between the geographical position and time and the desktop refers to the establishment of icons, shortcuts, desktop themes and the like to be displayed on the desktop corresponding to the geographical position and time. The desktop icon refers to an application icon. A shortcut refers to a shortcut to an application or file.
The established mapping relation between the geographic position and the desktop and the time can comprise that the geographic position is at home, the time is a working day, and the corresponding desktop is an office desktop; the geographical position is an office, and the time is a working day, the corresponding desktop is an office desktop; the geographic position is at home, the time is on holidays, and the corresponding desktop is a leisure desktop and the like. Arranging icons such as e-mails and office software on a home page in an office desktop; icons such as shopping websites, instant messaging software, air ticket software, game software and the like are arranged on a home page in the leisure desktop.
In addition, the icons on the desktop can be arranged by the user, and the desktop theme can be selected by the user.
And if the visual interface is the standby screen, pre-establishing a mapping relation between the geographical position and time and the standby screen. For example, if the geographical position is an office and the time is a working day, the standby screen can be an office standby screen; the geographical location is at home, and the time is holiday, then the standby screen can be a leisure standby screen. The office standby screen can be natural wind and light or a planet. The leisure standby screen can be a cartoon character and the like.
According to the method for automatically switching the visual interfaces of the terminal, the geographical position and the time in the environment information of the terminal are detected, whether the environment of the terminal is changed or not is judged according to the geographical position and the time, if the environment of the terminal is changed, the visual interfaces of the terminal are automatically adjusted according to the geographical position and the time, the visual interfaces are switched without manual operation of a user, and automatic switching can be carried out according to the environment.
In one embodiment, when the visual interface is a desktop, the method for automatically switching the visual interface of the terminal further includes: counting the use habit data of the user to the application program; and sequencing the desktop icons according to the use habit data of the user to the application programs.
Specifically, the statistical user usage habit data of the application program may include one or more of frequency of use of the application program, installation order of the application, classification of the application, and the like. And then, the desktop icons are sorted according to the use habit data of the application programs. For example, desktop icons are sorted by frequency of use of the application. The desktop icon is an application icon. The desktop icons are sorted according to the use habit data of the user to the application programs, so that the convenience of the user operation can be improved.
In one embodiment, the visual interface is a desktop, the environment information further includes light and color, and the terminal visual interface automatic switching method further includes: and adjusting the theme of the desktop of the terminal according to the light brightness value and the color value.
Specifically, the light intensity and color of the environment where the terminal is located are obtained through the light sensor. The colors may include the color of the surrounding environment and the color of the end user's apparel, among others. The color of the surrounding environment may include beach, grass, building, room walls, etc. One or more pictures of the surrounding environment can be shot through the camera, and the color values of the pictures are extracted by using a picture color value extraction algorithm. The color value is the value of the color. And adjusting the theme of the desktop of the terminal according to the brightness value of the light and the color value of the color. The picture color value extraction algorithm may include an octree algorithm, a minimum difference method, and the like. And adjusting the theme of the desktop of the terminal according to the light and the color, so that the light brightness and the color value of the switched desktop theme can be adjusted.
In one embodiment, the visual interface is a desktop, and the method for automatically switching the visual interface of the terminal further includes: and receiving the message which is acquired from the pre-established corresponding relation between the geographic position and the message and pushed to the user by the server according to the geographic position of the terminal.
Specifically, the corresponding relationship between the geographic location and the message is pre-established, for example, if the geographic location is an office, the message may be a job cheer and a careful job. The geographic location is home, the message may be that the break, etc. And the server searches the corresponding message according to the geographical position uploaded by the terminal and pushes the message to the user.
Fig. 4 is a flowchart of a method for automatically switching a visual interface of a terminal in another embodiment. As shown in fig. 4, a method for automatically switching a visual interface of a terminal includes the following steps:
step 402, a snoop turn-on instruction is obtained.
Specifically, a monitoring start instruction generated by a user triggering a monitoring program through a keyboard, a touch screen, or the like is acquired.
And step 404, starting the environment information of the monitoring terminal according to the monitoring starting instruction.
Specifically, the listener is started to monitor the environment information where the terminal is located.
In step 406, environment information of the terminal is detected, wherein the environment information comprises a geographical position and time.
In this embodiment, the step of detecting the geographic position in the environmental information where the terminal is located includes: and detecting the geographic position of the terminal through a global satellite positioning system or WiFi or base station positioning.
Specifically, the terminal can be located by a GPS installed on the terminal, so that the geographical position of the terminal is detected. The geographical position of the network node can also be used as the geographical position of the terminal through the geographical position of the network node where the WiFi network connected with the terminal is located. Or detecting the geographical position of a base station of a 2G, 3G or 4G network used by the terminal, and taking the geographical position of the base station as the geographical position of the terminal.
In other embodiments, the step of detecting the geographic location in the environment information where the terminal is located includes: the method comprises the steps of obtaining an environment picture of a terminal, comparing the obtained environment picture with a pre-established scene picture, identifying the scene of the terminal, and taking the scene of the terminal as the geographic position of the terminal.
Specifically, since different scenes have respective distinctive features, a scene picture library may be established in advance, and pictures of a plurality of scenes are stored in the scene picture library.
And step 408, comparing the environment information of the terminal detected this time with the environment information of the terminal detected in the previous time adjacent to the detection this time.
Specifically, the environment information where the terminal is located may be periodically detected. And comparing the environment information of the terminal detected this time with the environment information of the terminal detected in the previous time adjacent to the detection this time, so as to obtain whether the environment information of the terminal is changed. The environmental information includes a geographic location and a time.
For example, the geographic location of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position of the adjacent previous detection terminal is Beijing, and the time is 20 minutes and 20 seconds at 11, 16 and 22 days of 2015. And comparing the geographical positions and the time of the two detections to obtain the change of the environmental information of the terminal.
For another example, the geographic position of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position where the adjacent previous detection terminal is located at this time is Shenzhen, and the time is 20 minutes and 20 seconds at 11, 16 and 16 days in 2015. And comparing the geographical position and the time detected twice to obtain that the geographical position in the environmental information of the terminal is not changed, the time is in the working day time of the same day, and the time is not changed, so that the environmental information of the terminal is not changed.
Step 410, determining whether the environment information of the terminal is changed, if yes, executing step 412, and if not, executing step 406.
And step 412, adjusting the visual interface of the terminal according to the detected geographic position and time of the terminal.
In this embodiment, the step of adjusting the visual interface of the terminal according to the geographical location and the time of the terminal detected this time includes: and acquiring a visual interface corresponding to the geographical position and time of the terminal to be detected according to the geographical position and time of the terminal to be detected from a mapping relation between the geographical position and time and a desktop of the terminal, wherein the mapping relation is established in advance, and the visual interface is used as a visual interface to which the terminal is switched after the terminal is detected.
Step 414, obtain a snoop close command.
And step 416, closing the service of the environment information where the monitoring terminal is located according to the monitoring closing instruction.
Specifically, the listening program is closed according to the listening closing instruction, that is, the service of the environment information where the listening terminal is located is closed.
According to the method for automatically switching the visual interfaces of the terminal, the geographical position and the time in the environment information of the terminal are detected, whether the environment of the terminal is changed or not is judged according to the geographical position and the time, if the environment of the terminal is changed, the visual interfaces of the terminal are automatically adjusted according to the geographical position and the time, the visual interfaces are switched without manual operation of a user, and automatic switching can be carried out according to the environment; and the realization of the monitoring function can be effectively controlled by monitoring the starting instruction and the stopping instruction.
The following describes an implementation process of the method for automatically switching the visual interface of the terminal in combination with a specific application scenario. Take the visual interface as the desktop of the mobile phone as an example. As shown in fig. 5, the geographical location of the mobile phone of the user is an office, the time is a working day, the corresponding office desktop is found according to the geographical location and the time, the office-related application is expanded on the office desktop and is placed in an area convenient for operation, for example, outlook mailboxes, microsoft words, microsoft powers, clouds, emails and the like are arranged in an area 510 in fig. 5. Practical tools, travel and traffic, life, books and reading, instant messaging application, weather and the like are also arranged on the desktop. The shortcut bar comprises a dial, a contact person, a short message, a browser and the like. When it is detected that the user goes home from work, the corresponding leisure desktop is found according to the geographic position and the time, and the leisure-related applications are expanded on the leisure desktop and placed in an area convenient to operate, such as an area 610 in fig. 6, in which shopping applications, game applications, group purchase applications, instant communication applications, and the like are arranged. Practical tools, travel and traffic, life, books and reading, weather and the like are arranged on the desktop.
Fig. 7 is a schematic structural diagram of an automatic switching device of a terminal visual interface in one embodiment. As shown in fig. 7, an automatic switching apparatus for a terminal visual interface includes a detection module 702, a comparison module 704, a determination module 706, and a switching module 708.
The detecting module 702 is configured to detect environment information where the terminal is located, where the environment information includes a geographic location and a time.
In this embodiment, the detection module 702 is further configured to detect the geographic location of the terminal through global satellite positioning or WiFi or base station positioning.
Specifically, the terminal can be located by a GPS installed on the terminal, so that the geographical position of the terminal is detected. The geographical position of the network node can also be used as the geographical position of the terminal through the geographical position of the network node where the WiFi network connected with the terminal is located. Or detecting the geographical position of a base station of a 2G, 3G or 4G network used by the terminal, and taking the geographical position of the base station as the geographical position of the terminal.
In other embodiments, the detection module 702 is further configured to obtain an environment picture in which the terminal is located, compare the obtained environment picture with a pre-established scene picture, identify a scene in which the terminal is located, and use the scene in which the terminal is located as the geographic location of the terminal.
Specifically, since different scenes have respective distinctive features, a scene picture library may be established in advance, and pictures of a plurality of scenes are stored in the scene picture library. The obtained environmental picture and the scene picture may be compared by using a picture similarity recognition algorithm, such as a discrete hash algorithm.
The comparing module 704 is configured to compare the environmental information of the terminal in the current detection with the environmental information of the terminal in the previous detection adjacent to the current detection.
Specifically, the environment information where the terminal is located may be periodically detected. And comparing the environment information of the terminal detected this time with the environment information of the terminal detected in the previous time adjacent to the detection this time, so as to obtain whether the environment information of the terminal is changed. The environmental information includes a geographic location and a time.
For example, the geographic location of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position of the adjacent previous detection terminal is Beijing, and the time is 20 minutes and 20 seconds at 11, 16 and 22 days of 2015. And comparing the geographical positions and the time of the two detections to obtain the change of the environmental information of the terminal.
For another example, the geographic position of the terminal detected this time is Shenzhen, and the time is 10 minutes and 10 seconds at 11, 16, 15 and 2015. The geographic position where the adjacent previous detection terminal is located at this time is Shenzhen, and the time is 20 minutes and 20 seconds at 11, 16 and 16 days in 2015. And comparing the geographical position and the time detected twice to obtain that the geographical position in the environmental information of the terminal is not changed, the time is in the working day time of the same day, and the time is not changed, so that the environmental information of the terminal is not changed.
The determining module 706 is configured to determine whether the environment information of the terminal changes.
The switching module 708 is configured to, after determining that the environmental information of the terminal changes, adjust the visual interface of the terminal according to the detected geographic location and time of the terminal.
The detecting module 702 is further configured to continue to detect the environmental information of the terminal when it is determined that the environmental information of the terminal does not change.
In this embodiment, the switching module 708 is further configured to obtain, according to the geographic position and the time of the terminal detected this time, a visual interface corresponding to the geographic position and the time of the terminal detected this time from a mapping relationship between the geographic position and the time that are established in advance and a desktop of the terminal, and use the visual interface as the visual interface to which the terminal is to be switched after the terminal is detected this time.
Specifically, the visual interface may be a desktop or a standby screen, etc. If the visual interface is a desktop, firstly, a mapping relation between the geographic position and time and the desktop of the terminal is established. The mapping may include presetting a variety of desktops based on frequented times and geographic locations. The system can also comprise various common desktops preset by the system, such as corresponding desktops of a home (all day), a company (daytime), a supermarket (all day), a bus (all day), and the like. The elements of the desktop include the style, display position, desktop theme, etc. of the desktop icon and shortcut. The establishment of the mapping relation between the geographical position and time and the desktop refers to the establishment of icons, shortcuts, desktop themes and the like to be displayed on the desktop corresponding to the geographical position and time. The desktop icon refers to an application icon. A shortcut refers to a shortcut to an application or file.
The established mapping relation between the geographic position and the desktop and the time can comprise that the geographic position is at home, the time is a working day, and the corresponding desktop is an office desktop; the geographical position is an office, and the time is a working day, the corresponding desktop is an office desktop; the geographic position is at home, the time is on holidays, and the corresponding desktop is a leisure desktop and the like. Arranging icons such as e-mails and office software on a home page in an office desktop; icons such as shopping websites, instant messaging software, air ticket software, game software and the like are arranged on a home page in the leisure desktop.
In addition, the icons on the desktop can be arranged by the user, and the desktop theme can be selected by the user.
And if the visual interface is the standby screen, pre-establishing a mapping relation between the geographical position and time and the standby screen. For example, if the geographical position is an office and the time is a working day, the standby screen can be an office standby screen; the geographical location is at home, and the time is holiday, then the standby screen can be a leisure standby screen. The office standby screen can be natural wind and light or a planet. The leisure standby screen can be a cartoon character and the like.
According to the automatic switching device for the visual interface of the terminal, whether the environment where the terminal is located changes or not is judged according to the geographical position and the time by detecting the geographical position and the time in the environment information where the terminal is located, if the environment where the terminal is located changes, the visual interface of the terminal is automatically adjusted according to the geographical position and the time, the visual interface is switched without manual operation of a user, and automatic switching can be performed according to the environment.
Fig. 8 is a schematic structural diagram of an automatic switching device for a visual interface of a terminal in another embodiment. As shown in fig. 8, an automatic switching apparatus for a terminal visual interface, which is a desktop, includes a counting module 710 and a sorting module 712 in addition to a detecting module 702, a comparing module 704, a determining module 706 and a switching module 708.
The statistic module 710 is used for counting the usage habit data of the application program by the user.
The sorting module 712 is used for sorting the desktop icons according to the usage habit data of the application program by the user.
Specifically, the statistical user usage habit data of the application program may include one or more of frequency of use of the application program, installation order of the application, classification of the application, and the like. And then, the desktop icons are sorted according to the use habit data of the application programs. For example, desktop icons are sorted by frequency of use of the application. The desktop icon is an application icon. The desktop icons are sorted according to the use habit data of the user to the application programs, so that the convenience of the user operation can be improved.
In one embodiment, the visual interface is a desktop, the environment information further includes a light brightness value and a color value, and the switching module 708 is further configured to adjust a theme of the desktop of the terminal according to the light brightness value and the color value.
Specifically, the light intensity and color of the environment where the terminal is located are obtained through the light sensor. The colors may include the color of the surrounding environment and the color of the end user's apparel, among others. The color of the surrounding environment may include beach, grass, building, room walls, etc. One or more pictures of the surrounding environment can be shot through the camera, and the color values of the pictures are extracted by using a picture color value extraction algorithm. The color value is the value of the color. And adjusting the theme of the desktop of the terminal according to the brightness value of the light and the color value of the color. The picture color value extraction algorithm may include an octree algorithm, a minimum difference method, and the like. And adjusting the theme of the desktop of the terminal according to the light and the color, so that the light brightness and the color value of the switched desktop theme can be adjusted.
Fig. 9 is a schematic structural diagram of an automatic switching device for a visual interface of a terminal in another embodiment. As shown in fig. 9, an automatic switching apparatus for a terminal visual interface, which is a desktop, includes an opening instruction obtaining module 714, an activating module 716, a closing instruction obtaining module 718, and a closing module 720 in addition to a detecting module 702, a comparing module 704, a determining module 706, and a switching module 708.
The start instruction obtaining module 714 is configured to obtain a monitoring start instruction before the environment information of the detection terminal. Specifically, a monitoring start instruction generated by a user triggering a monitoring program through a keyboard, a touch screen, or the like is acquired.
The starting module 716 is configured to start the environment information where the monitoring terminal is located according to the monitoring start instruction.
The closing instruction obtaining module 718 is configured to obtain a monitoring closing instruction after adjusting the visual interface of the terminal according to the detected geographic location and time of the terminal.
The closing module 720 is configured to close the service of the environment information where the listening terminal is located according to the listening closing instruction. Specifically, the listening program is closed according to the listening closing instruction, that is, the service of the environment information where the listening terminal is located is closed.
According to the automatic switching device for the visual interface of the terminal, whether the environment of the terminal changes or not is judged according to the geographical position and the time by detecting the geographical position and the time in the environment information of the terminal, if the environment of the terminal changes, the visual interface of the terminal is automatically adjusted according to the geographical position and the time, the visual interface is switched without manual operation of a user, and automatic switching can be performed according to the environment; and the realization of the monitoring function can be effectively controlled by monitoring the starting instruction and the stopping instruction.
Fig. 10 is a schematic structural diagram of an automatic switching device for a visual interface of a terminal in another embodiment. As shown in fig. 10, an automatic switching apparatus for a terminal visual interface, which is a desktop, includes a receiving module 722 in addition to a detecting module 702, a comparing module 704, a determining module 706, and a switching module 708.
The receiving module 722 is configured to receive a message that is obtained by the server from a pre-established correspondence between a geographic location and a message according to the geographic location of the terminal and is pushed to the user.
Specifically, the corresponding relationship between the geographic location and the message is pre-established, for example, if the geographic location is an office, the message may be a job cheer and a careful job. The geographic location is home, the message may be that the break, etc.
In other embodiments, an automatic switching apparatus for a visual interface of a terminal, where the visual interface is a desktop, may include any possible combination of the detection module 702, the comparison module 704, the determination module 706, the switching module 708, the statistics module 710, the sorting module 712, the opening instruction obtaining module 714, the starting module 716, the closing instruction obtaining module 718, the closing module 720, and the receiving module 722.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or the like.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (16)

1. A terminal visual interface automatic switching method comprises the following steps:
acquiring an environmental picture and time of a terminal;
determining the similarity between the acquired environment picture and a pre-established scene picture, identifying the scene where the terminal is located according to the similarity, and taking the scene where the terminal is located as the geographic position of the terminal;
taking the geographic position and the time of the terminal as environmental information of the terminal;
comparing the environment information of the terminal in the current detection with the environment information of the terminal in the previous detection adjacent to the current detection;
judging whether the environmental information of the terminal is changed, if so, adjusting a visual interface of the terminal according to the geographical position and time of the detected terminal, and if not, returning to the step of detecting the environmental information of the terminal;
when the visual interface is a desktop, acquiring the light brightness value of the environment where the terminal is located through an optical sensor;
extracting a color brightness value of the environment picture through a picture color value extraction algorithm;
and adjusting the theme of the desktop after the terminal is adjusted according to the light brightness value and the color brightness value.
2. The method according to claim 1, wherein the step of adjusting the visual interface of the terminal according to the detected geographic location and time of the terminal comprises:
and acquiring a visual interface corresponding to the geographical position and time of the terminal to be detected according to the geographical position and time of the terminal to be detected from a mapping relation between the geographical position and time and a desktop of the terminal, wherein the mapping relation is established in advance, and the visual interface is used as a visual interface to which the terminal is switched after the terminal is detected.
3. The method according to claim 1 or 2, wherein the step of determining the similarity between the acquired environmental picture and the pre-established scene picture comprises:
determining the hash value of the acquired environment picture, and determining the hash value of a pre-established scene picture;
and determining the similarity between the acquired environment picture and the pre-established scene picture according to the hash value of the acquired environment picture and the hash value of the pre-established scene picture.
4. The method of claim 1, wherein the visual interface is a desktop or a standby screen.
5. The method of claim 4, wherein the visual interface is a desktop, the method further comprising:
counting the use habit data of the user to the application program;
and sequencing the desktop icons according to the use habit data of the user to the application programs.
6. The method according to claim 1, wherein before the step of obtaining the environmental picture and the time of the terminal, the method further comprises:
acquiring a monitoring starting instruction, and starting the environmental information of the monitoring terminal according to the monitoring starting instruction;
after the step of adjusting the visual interface of the terminal according to the detected geographic position and time of the terminal, the method further includes:
and acquiring a monitoring closing instruction, and closing the service of the environmental information of the monitoring terminal according to the monitoring closing instruction.
7. The method of claim 1, further comprising:
and receiving the message which is acquired from the pre-established corresponding relation between the geographic position and the message and pushed to the user by the server according to the geographic position of the terminal.
8. An automatic switching device for a visual interface of a terminal is characterized by comprising:
the detection module is used for acquiring the environmental picture and time of the terminal; determining the similarity between the acquired environment picture and a pre-established scene picture, identifying the scene where the terminal is located according to the similarity, and taking the scene where the terminal is located as the geographic position of the terminal; taking the geographic position and the time of the terminal as environmental information of the terminal;
the comparison module is used for comparing the environmental information of the terminal in the current detection with the environmental information of the terminal in the previous detection adjacent to the current detection;
the judging module is used for judging whether the environmental information of the terminal changes;
the switching module is used for adjusting a visual interface of the terminal according to the detected geographic position and time of the terminal when the change of the environmental information of the terminal is judged;
the detection module is further used for continuously detecting the environmental information of the terminal when the environmental information of the terminal is judged not to change;
the switching module is further used for acquiring the light brightness value of the environment where the terminal is located through the optical sensor when the visual interface is a desktop; extracting a color brightness value of the environment picture through a picture color value extraction algorithm; and adjusting the theme of the desktop after the terminal is adjusted according to the light brightness value and the color brightness value.
9. The apparatus according to claim 8, wherein the switching module is further configured to obtain a visual interface corresponding to the geographical location and the time of the terminal detected this time from a mapping relationship between the geographical location and the time that are pre-established and a desktop of the terminal according to the geographical location and the time of the terminal detected this time, and use the visual interface as the visual interface to which the terminal is to be switched after the terminal detected this time.
10. The apparatus according to claim 8 or 9, wherein the detection module is further configured to determine a hash value of the obtained environment picture, and determine a hash value of a pre-established scene picture; and determining the similarity between the acquired environment picture and the pre-established scene picture according to the hash value of the acquired environment picture and the hash value of the pre-established scene picture.
11. The apparatus of claim 8, wherein the visual interface is a desktop or a standby screen.
12. The apparatus of claim 11, wherein when the visual interface is a desktop, the apparatus further comprises:
the statistical module is used for counting the use habit data of the user to the application program;
and the sequencing module is used for sequencing the desktop icons according to the use habit data of the user to the application program.
13. The apparatus of claim 8, further comprising:
the starting instruction acquisition module is used for acquiring a monitoring starting instruction before the environmental picture and time of the acquisition terminal;
the starting module is used for starting the environmental information of the monitoring terminal according to the monitoring starting instruction;
the closing instruction acquisition module is used for acquiring a monitoring closing instruction after the visual interface of the terminal is adjusted according to the geographical position and time of the detected terminal;
and the closing module is used for closing the service of the environmental information of the monitoring terminal according to the monitoring closing instruction.
14. The apparatus of claim 8, further comprising:
and the receiving module is used for receiving the message which is acquired by the server from the pre-established corresponding relation between the geographic position and the message according to the geographic position of the terminal and pushed to the user.
15. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
16. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN201510923727.1A 2015-12-11 2015-12-11 Automatic switching method and device for visual interface of terminal Active CN106874021B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510923727.1A CN106874021B (en) 2015-12-11 2015-12-11 Automatic switching method and device for visual interface of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510923727.1A CN106874021B (en) 2015-12-11 2015-12-11 Automatic switching method and device for visual interface of terminal

Publications (2)

Publication Number Publication Date
CN106874021A CN106874021A (en) 2017-06-20
CN106874021B true CN106874021B (en) 2020-12-15

Family

ID=59177644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510923727.1A Active CN106874021B (en) 2015-12-11 2015-12-11 Automatic switching method and device for visual interface of terminal

Country Status (1)

Country Link
CN (1) CN106874021B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105897851A (en) * 2015-12-21 2016-08-24 乐视致新电子科技(天津)有限公司 Service area switching method, device and system for terminal device
CN109426531A (en) * 2017-08-18 2019-03-05 蒋龙友 A kind of conversion method of the hybrid electric vehicle APP system page
CN108491244A (en) * 2018-03-20 2018-09-04 深圳市万普拉斯科技有限公司 A kind of Desktop-scene switching method, device and user terminal
CN108874497B (en) * 2018-06-28 2021-09-07 南京阿凡达机器人科技有限公司 Image display method and device based on illumination analysis
CN108924357A (en) * 2018-07-03 2018-11-30 佛山市影腾科技有限公司 A kind of method, apparatus and terminal that adjustment terminal desktop is shown
CN109151186B (en) * 2018-08-01 2021-05-11 Oppo广东移动通信有限公司 Theme switching method and device, electronic equipment and computer readable storage medium
CN109947331A (en) * 2019-03-28 2019-06-28 北京小米移动软件有限公司 Indicative information display method, device and storage medium
CN112395026B (en) * 2019-08-14 2022-09-23 腾讯科技(深圳)有限公司 Theme state adjusting method, device, equipment and storage medium
CN110920540B (en) * 2019-11-19 2022-07-29 博泰车联网科技(上海)股份有限公司 Vehicle, vehicle equipment and vehicle equipment theme automatic adjusting method thereof
CN111755115A (en) * 2020-06-24 2020-10-09 上海联影医疗科技有限公司 Medical equipment control method and medical equipment control system
CN112685125B (en) * 2021-01-08 2021-11-26 腾讯科技(深圳)有限公司 Theme switching method and device of application program and computer readable storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8515397B2 (en) * 2007-12-24 2013-08-20 Qualcomm Incorporation Time and location based theme of mobile telephones
JP2010122928A (en) * 2008-11-20 2010-06-03 Toshiba Corp Portable terminal
US20120078953A1 (en) * 2010-09-24 2012-03-29 Rovi Technologies Corporation Browsing hierarchies with social recommendations
CN101976191A (en) * 2010-10-15 2011-02-16 无敌科技(西安)有限公司 Method and device for changing user interface theme along with outside change
CN102981722A (en) * 2012-11-05 2013-03-20 广东欧珀移动通信有限公司 Method and device for scene switching
KR20140068410A (en) * 2012-11-28 2014-06-09 삼성전자주식회사 Method for providing user interface based on physical engine and an electronic device thereof
US10545628B2 (en) * 2013-01-31 2020-01-28 Samsung Electronics Co., Ltd. Method of and device for managing applications
CN104268154A (en) * 2014-09-02 2015-01-07 百度在线网络技术(北京)有限公司 Recommended information providing method and device
CN104461281B (en) * 2014-11-07 2018-01-19 广东欧珀移动通信有限公司 Management method, management server and the mobile terminal of mobile terminal desktop icon

Also Published As

Publication number Publication date
CN106874021A (en) 2017-06-20

Similar Documents

Publication Publication Date Title
CN106874021B (en) Automatic switching method and device for visual interface of terminal
KR101536972B1 (en) Information Presentation Method, System, Client and/or Server
KR101357260B1 (en) Apparatus and Method for Providing Augmented Reality User Interface
US11886495B2 (en) Predictively presenting search capabilities
CN113114841B (en) Dynamic wallpaper acquisition method and device
EP2657856A1 (en) Contact search method, device and mobile terminal applying same
CN112269798B (en) Information display method and device and electronic equipment
CN106851026A (en) Inactive phone number is recognized and method for cleaning, device and mobile terminal
CN106250421A (en) A kind of method shooting process and terminal
CN106611065B (en) Searching method and device
CN106406880B (en) Advertisement information pushing method and terminal
CN110140117B (en) Terminal automatically cleans personal files of users based on user habits
CN106657653A (en) Information processing method and device
CN104932784A (en) Picture display method and terminal
CN109302523A (en) A kind of mobile phone games stage division
CN109992339A (en) A kind of processing method and mobile terminal of application icon
CN102970410B (en) Terminal and display method for contact names
CN109657441B (en) Application opening method and related device
CN110297575A (en) A kind of webpage representation method, apparatus, terminal device and storage medium
CN116095234A (en) Image generation method, device, electronic equipment and storage medium
CN104750792A (en) User feature obtaining method and device
CN108132746B (en) Picture display method, device and equipment
CN107179914A (en) Application processing method and device
CN105630333B (en) Display device and display methods
CN104298707A (en) Information processing method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant