CN109151186B - Theme switching method and device, electronic equipment and computer readable storage medium - Google Patents

Theme switching method and device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN109151186B
CN109151186B CN201810867098.9A CN201810867098A CN109151186B CN 109151186 B CN109151186 B CN 109151186B CN 201810867098 A CN201810867098 A CN 201810867098A CN 109151186 B CN109151186 B CN 109151186B
Authority
CN
China
Prior art keywords
theme
target
electronic equipment
scene
electronic device
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
CN201810867098.9A
Other languages
Chinese (zh)
Other versions
CN109151186A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810867098.9A priority Critical patent/CN109151186B/en
Publication of CN109151186A publication Critical patent/CN109151186A/en
Application granted granted Critical
Publication of CN109151186B publication Critical patent/CN109151186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/10Details of telephonic subscriber devices including a GPS signal receiver

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Telephone Function (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a theme switching method and device, electronic equipment and a computer-readable storage medium. The method comprises the following steps: the method comprises the steps of detecting position information of the electronic equipment within preset time, generating a corresponding moving track according to the position information of the electronic equipment within the preset time, obtaining a corresponding target theme according to the moving track, and switching a current theme of the electronic equipment to the target theme. The corresponding target theme can be obtained according to the movement track generated by the position information of the electronic equipment within the preset time, and the current theme of the electronic equipment is automatically switched to the target theme, so that the theme switching process can be simplified.

Description

Theme switching method and device, electronic equipment and computer readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a theme switching method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the development of computer technology, people have increasingly high aesthetic requirements for electronic devices. People can download different types of themes through the theme application market and install the downloaded themes in proper occasions, so that the electronic equipment can display corresponding desktop wallpaper, screen locking wallpaper, application icons and the like according to the themes.
However, the conventional theme shift process is complicated.
Disclosure of Invention
The embodiment of the application provides a theme switching method and device, electronic equipment and a computer readable storage medium, which can automatically switch themes and simplify the theme switching process.
A method of theme switching, comprising:
detecting the position information of the electronic equipment within preset time, and generating a corresponding moving track according to the position information of the electronic equipment within the preset time;
acquiring a corresponding target theme according to the moving track;
and switching the current theme of the electronic equipment into the target theme.
A theme switching apparatus, comprising:
the track generation module is used for detecting the position information of the electronic equipment within the preset time and generating a corresponding moving track according to the position information of the electronic equipment within the preset time;
the theme acquisition module is used for acquiring a corresponding target theme according to the moving track;
and the switching module is used for switching the current theme of the electronic equipment into the target theme.
An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of:
detecting the position information of the electronic equipment within preset time, and generating a corresponding moving track according to the position information of the electronic equipment within the preset time;
acquiring a corresponding target theme according to the moving track;
and switching the current theme of the electronic equipment into the target theme.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
detecting the position information of the electronic equipment within preset time, and generating a corresponding moving track according to the position information of the electronic equipment within the preset time;
acquiring a corresponding target theme according to the moving track;
and switching the current theme of the electronic equipment into the target theme.
The theme switching method and device, the electronic device and the computer-readable storage medium can detect the position information of the electronic device within the preset time, generate the corresponding movement track according to the position information of the electronic device within the preset time, acquire the corresponding target theme according to the movement track, and switch the current theme of the electronic device to the target theme. The corresponding target theme can be obtained according to the movement track generated by the position information of the electronic equipment within the preset time, and the current theme of the electronic equipment is automatically switched to the target theme, so that the theme switching process can be simplified.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram showing an internal structure of an electronic apparatus according to an embodiment;
FIG. 2 is a flow diagram of a method for switching topics in one embodiment;
FIG. 3 is a flowchart of a theme switching method in another embodiment;
FIG. 4 is a diagram illustrating the generation of a movement trajectory based on location information, according to one embodiment;
FIG. 5 is a diagram illustrating an interface for a topic corresponding to a home scenario in one embodiment;
FIG. 6 is a schematic diagram of an interface of topics corresponding to an office scenario in one embodiment;
FIG. 7 is a flow diagram for determining a corresponding scene classification based on a movement trajectory in one embodiment;
FIG. 8 is a flow diagram illustrating the obtaining of corresponding target topics according to scene classification in one embodiment;
FIG. 9 is a flowchart illustrating another embodiment of retrieving corresponding target topics based on scene classification;
FIG. 10 is a flowchart of a topic switching method in one embodiment;
FIG. 11 is a block diagram showing the structure of a theme switching device according to an embodiment;
fig. 12 is a schematic structural diagram of a mobile phone in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application 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 present application and are not intended to limit the present application.
Fig. 1 is a schematic diagram of an internal structure of an electronic device in one embodiment. As shown in fig. 1, the electronic device includes a processor, a memory, and a network interface connected by a system bus. Wherein, the processor is used for providing calculation and control capability and supporting the operation of the whole electronic equipment. The memory is used for storing data, programs and the like, and at least one computer program is stored on the memory, and can be executed by the processor to realize the theme switching method suitable for the electronic device provided in the embodiment of the application. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by a processor to implement a theme switching method provided in the following embodiments. The internal memory provides a cached execution environment for the operating system computer programs in the non-volatile storage medium. The network interface may be an ethernet card or a wireless network card, etc. for communicating with an external electronic device. The electronic device may be a mobile phone, a tablet computer, or a personal digital assistant or a wearable device, etc.
Fig. 2 is a flowchart of a theme switching method in one embodiment. The theme switching method in this embodiment is described by taking the electronic device in fig. 1 as an example. As shown in fig. 2, the theme shift method includes steps 202 to 206.
Step 202, detecting the position information of the electronic device within the preset time, and generating a corresponding movement track according to the position information of the electronic device within the preset time.
The position information refers to specific information of the position of the electronic equipment. Specifically, the location information may be longitude and latitude information, and the electronic device may automatically obtain the longitude and latitude information of the electronic device through a Global Positioning System (GPS); the location information may also refer to a specific geographic location corresponding to the latitude and longitude information acquired by the electronic device. For example, when it is detected that the longitude and latitude information of the electronic device is north latitude 109.408984 and east longitude 18.294898, the location information of the electronic device may be north latitude 109.408984 and east longitude 18.294898, or may be a specific geographic location corresponding to the longitude and latitude information, that is, the hainan saintang beach.
The preset time can be set according to the requirements of practical application. Specifically, the preset time may be a specific time interval, such as 9 to 10, 17 to 17 for 30 minutes, and so on; the electronic device may also set different preset times according to different dates, for example, different preset times may be set for weekdays and weekends, respectively. The preset time may also be a time range, and for example, the preset time may be, but is not limited to, 10 minutes, 30 minutes, 1 hour, and the like, when the preset time is the time range, the electronic device may detect whether the electronic device moves according to the location information, and when the electronic device moves, the electronic device may start timing from a moment when the electronic device moves, acquire the location information of the electronic device within the preset time, and generate a corresponding movement track.
The electronic equipment can continuously detect the position information of the electronic equipment within preset time, and a track formed by the position information of the electronic equipment in the moving process within the preset time is taken as a corresponding moving track; the electronic device may also detect the position information of the electronic device once every preset interval within a preset time, and generate a corresponding movement track according to the position information detected each time, where the preset interval may be set according to actual requirements, and is not limited herein.
And step 204, acquiring a corresponding target theme according to the moving track.
The theme means that desktop pictures, screen protection pictures, operation interfaces, application icons and the like of the electronic equipment can be set, so that the electronic equipment has an attractive interface. The electronic equipment can pre-store themes corresponding to different moving tracks, so that corresponding target themes can be obtained according to the generated moving tracks. The electronic equipment can also upload the moving track to the server after generating the moving track, and the server acquires the target theme corresponding to the moving track, so that the electronic equipment can download the target theme.
And step 206, switching the current theme of the electronic equipment into the target theme.
The electronic device can automatically install the target theme after acquiring the target theme, and switch the current theme of the electronic device to the target theme. Specifically, the electronic device may detect an operating state of the electronic device, and switch a current theme of the electronic device to a target theme when the operating state of the electronic device is idle; the electronic equipment can also switch the current theme of the electronic equipment into the target theme when detecting that the electronic equipment is in a screen locking or screen extinguishing state.
When the preset time is a specific time interval, if the position information of the electronic device does not change within the preset time or the length of the moving track generated by the electronic device according to the position information within the preset time is smaller than the preset length, the electronic device may acquire the position information corresponding to the starting point of the moving track, and acquire the corresponding target theme according to the position information corresponding to the starting point of the moving track, so that when the position information of the electronic device does not change or changes less within the preset time, the corresponding target theme may also be acquired, and the current theme of the electronic device is switched to the target theme, thereby improving the accuracy of the target theme. When the preset time is within a specific time range, the electronic device can start timing when detecting that the position information moves, generate a corresponding movement track according to the position information of the electronic device within the preset time, if the length of the movement track exceeds the preset length, the electronic device can acquire a corresponding target theme according to the movement track, and switch the current theme of the electronic device, and if the length of the movement track is smaller than the preset length, the electronic device can keep the current theme without switching, so that frequency switching of the theme is avoided, and the accuracy of theme switching is improved.
According to the theme switching method in the embodiment of the application, the position information of the electronic equipment in the preset time is detected, the corresponding moving track is generated according to the position information of the electronic equipment in the preset time, the corresponding target theme is obtained according to the moving track, and the current theme of the electronic equipment is switched to the target theme. The corresponding target theme can be obtained according to the movement track generated by the position information of the electronic equipment within the preset time, and the current theme of the electronic equipment is automatically switched to the target theme, so that the theme switching process can be simplified.
As shown in fig. 3, in one embodiment, the provided theme shift method may include steps 302 to 308. Wherein:
step 302, detecting the position information of the electronic device within the preset time, and generating a corresponding movement track according to the position information of the electronic device within the preset time.
And step 304, determining corresponding scene classification according to the movement track.
The scene classification is to classify each scene in life or work. Specifically, the scene classification may include, but is not limited to, an office scene, a home scene, a travel scene, a party scene, and the like. The electronic equipment determines corresponding scene classification according to the movement track, specifically, the electronic equipment can determine the moving end point position of the electronic equipment according to the starting point of the movement track and the variation trend of the movement track, and determine corresponding scene classification according to the end point position; the electronic device may also pre-store scene classifications corresponding to different movement tracks, and determine a corresponding scene classification according to the movement track generated by the electronic device, for example, when the electronic device generates a movement track according to different scenic spot position information, the electronic device may determine that the scene corresponding to the movement track is classified as a travel scene; when the movement track generated by the electronic equipment moves from the residential area to the scientific park area, determining that the scene corresponding to the movement track is classified as an office scene; when the movement track generated by the electronic equipment is located in the commercial area, the scene corresponding to the movement track can be determined to be classified as a shopping scene and the like.
And step 306, acquiring corresponding target topics according to scene classification.
In daily life, a user can download different themes for installation according to different scenes, for example, when the scenes are classified as office scenes, the themes which are simpler and fit with the company style can be installed; when the scene is classified as a home scene, a more leisure and comfortable theme can be installed; when the scene is classified as a tourist scene, a theme and the like related to the tourist attraction can be acquired according to the position information of the movement track. Specifically, the electronic device may pre-store themes corresponding to different scene classifications, and obtain corresponding target themes according to the scene classifications after determining the scene classifications. The electronic equipment can also upload the classified scenes to the server after determining the scene classification, the server prestores themes corresponding to different scene classifications, and the server acquires target themes corresponding to the scene classification, so that the electronic equipment downloads the target themes.
And 308, switching the current theme of the electronic equipment to the target theme.
According to the theme switching method in the embodiment of the application, the position information of the electronic equipment in the preset time is detected, the corresponding moving track is generated according to the position information of the electronic equipment in the preset time, the corresponding scene classification is determined according to the moving track, the corresponding target theme is obtained according to the scene classification, and the current theme of the electronic equipment is switched to the target theme. The corresponding target theme can be obtained according to the scene classification determined by the moving track, and the current theme of the electronic equipment is automatically switched to the target theme, so that the theme switching process can be simplified.
Fig. 4 is a schematic diagram illustrating that, in an embodiment, the electronic device generates a corresponding movement track according to the position information of the electronic device within a preset time, where the preset time is from 8 to 9 am. As shown in fig. 4, when the electronic device detects that the position information starts to change from the residential area 402 and passes through the park 404 and department store 406, the electronic device may generate a corresponding movement track 408 according to the position information, that is, the residential area 402, the park 404, and the department store 406, and the electronic device may determine that the electronic device moves to the office building 410 according to the movement track 408 generated by the electronic device according to the position information within the preset time, and then the electronic device may determine that the corresponding scene is classified as an office scene according to the movement track 308, acquire a corresponding office target theme according to the office scene for downloading and installing, switch the current theme of the electronic device to the target theme, and may simplify the theme switching process.
FIG. 5 is a diagram illustrating an interface for a topic corresponding to a home scenario in one embodiment. As shown in fig. 5, the theme 500 corresponding to the home scene may be set by the desktop image 502, the application icon 504, and the time and date display mode 506, so that the theme 500 corresponding to the home scene shows a relatively comfortable and comfortable screen. FIG. 6 is an interface diagram of a topic corresponding to an office scenario in one embodiment. As shown in fig. 6, the desktop image 602, the application icon 604, and the time and date display mode 606 of the theme 600 corresponding to the office scene present a relatively simple and serious screen corresponding to the office atmosphere with respect to the theme 500 corresponding to the home scene. The electronic equipment can determine the corresponding scene classification according to the moving track, acquire the target theme corresponding to the scene classification to switch the current theme of the electronic equipment, simplify the theme switching operation, and improve the accuracy of theme switching according to the fact that the switched theme is adaptive to the current scene.
As shown in fig. 7, in an embodiment, the process of determining a corresponding scene classification according to a movement trajectory in the provided theme switching method may further include steps 702 to 706. Wherein:
step 702, obtaining a moving speed and a rising height corresponding to the moving track.
The moving speed refers to a speed at which the electronic device performs displacement change on a moving track. Specifically, the electronic device may determine the moving speed according to the moving trajectory and the detection time of each piece of position information on the moving trajectory. The electronic device can detect the average speed corresponding to the movement track as the movement speed corresponding to the movement track, and the electronic device can also detect the movement speed of each preset time length in the movement track according to the preset time length to obtain the movement speed variation trend of the movement track. The elevation height refers to the height of different position information in the movement locus. The electronic device may obtain heights corresponding to the starting point and the ending point of the moving track to determine the rising height, and may also obtain a rising height variation trend of the moving track according to the heights corresponding to the respective position information of the electronic device.
And 704, determining a corresponding moving mode according to at least one of the moving speed and the rising height.
The movement pattern is determined according to the characteristics of the electronic equipment during movement. The electronic equipment can preset moving speed and rising height corresponding to different moving modes, and the corresponding moving mode is determined according to the obtained moving speed and rising height. For example, the electronic device may prestore a moving speed of a driving moving pattern of 20km/h to 100km/h and a moving speed of a walking moving pattern of 3km/h to 5 km/h; the electronic apparatus may determine the movement mode as a driving movement mode when the movement speed is 60km/h, and may determine the movement mode as a walking movement mode when the movement speed is 4 km/h. The electronic equipment determines the movement mode according to the rising height, when the rising height of the electronic equipment is slowly rising, the movement mode can be determined to be an ascending movement mode, and when the electronic equipment is rapidly rising at any position of the movement track, the movement mode can be determined to be an elevator movement mode or other modes. The electronic device may also determine a corresponding movement pattern in conjunction with the movement speed and the elevation height. The corresponding relationship between at least one of the moving speed and the lifting height and different moving modes may be determined according to the requirements in practical application, and is not limited herein. In one embodiment, the electronic device may also determine a corresponding movement pattern based on the movement stride frequency. For example, in the walking movement mode, it may be determined that the electronic device is in the slow walking mode or the fast walking mode according to the magnitude of the step frequency.
And step 706, determining corresponding scene classification according to the moving mode and the moving track.
The electronic device can pre-store scene classifications corresponding to different movement modes and movement tracks, so that the electronic device can determine the corresponding scene classifications according to the movement modes and the movement tracks. For example, when the movement trajectory is a circular trajectory and the movement mode is a walking uphill movement mode, the electronic device may determine that the corresponding scene is classified as a mountaineering scene, obtain a corresponding mountaineering target theme according to the mountaineering scene, and switch the current theme of the electronic device.
The electronic equipment generates a moving track according to the position information, determines a moving mode according to at least one of the moving speed and the rising height, determines a corresponding scene classification according to the moving track and the moving mode, acquires a target theme corresponding to the scene classification, and replaces a current theme of the electronic equipment with the target theme, so that the theme switching process can be simplified, and the accuracy of theme switching is improved.
As shown in fig. 8, in an embodiment, the process of obtaining the corresponding target topic according to the scene classification in the provided topic switching method may further include steps 802 to 806. Wherein:
and step 802, acquiring a video acquired by a camera.
The video is composed of surrounding environment information collected by the electronic equipment through a camera. The camera may include at least one of a front camera and a rear camera. In particular, the cameras may also be dual cameras. The electronic equipment can start the camera to collect the video through the background program in the moving process, and the electronic equipment can acquire the video collected by the camera.
And step 804, analyzing the video to obtain scene information corresponding to the video.
The scene information is information contained in the video, that is, environmental information around the electronic device. The scene information includes image information and semantic information. Specifically, the image information may include image correspondence classifications, objects contained in the images, characters, and the like. For example, the image information may be blue sky, white clouds, green grass, etc. present in the image. The electronic equipment can perform scene classification or target detection on each frame of image in the video to obtain image information contained in the video, and perform semantic analysis on audio in the video to obtain semantic information contained in the video. Specifically, the electronic device may perform scene classification or target detection on an image in the video through a Neural network such as vgg (visual Geometry group), cnn (volumetric Neural network), ssd (single shot multi-box detector), Decision Tree (Decision Tree), and the like, so as to obtain image information included in the image.
And 806, acquiring a corresponding target theme according to the scene information and the scene classification.
The electronic device can further screen the target theme determined by the scene classification according to the scene information, acquire the target theme corresponding to the scene information in the scene classification, and switch the current theme of the electronic device to the target theme. For example, when a scene is classified as an office scene, the electronic device may further determine, according to the scene information, that the office scene is a conference scene, a personal work scene, or a job discussion scene, and when the scene information includes a conference table, a projector, and a ppt (powerpoint), the electronic device may determine that the office scene is a conference scene, and the electronic device may obtain a target theme corresponding to the conference scene in the office scene; when the scene is classified as a home scene, the electronic device can further determine that the home scene is an entertainment scene, a dining scene, a rest scene and the like according to the scene information, and when the semantic information in the scene information is quiet, and the image information is a person or a bed, the electronic device can determine that the home scene is the rest scene, and then the electronic device can acquire a target theme corresponding to the rest scene in the home scene and switch the current theme of the electronic device.
The electronic equipment generates a corresponding moving track according to the position information to determine scene classification, obtains corresponding scene information according to the collected video, obtains a corresponding target theme according to the scene classification and the scene information, and switches the current theme of the electronic equipment to the target theme. The target theme can be determined according to the scene classification and the scene information, and the current theme is automatically switched to the target theme, so that the theme switching process can be simplified, and the accuracy of theme switching is improved.
As shown in fig. 9, in an embodiment, the process of obtaining the corresponding target topic according to the scene classification in the provided topic switching method may include: steps 902 to 906. Wherein:
and step 902, acquiring the target face with the largest occurrence frequency in the video acquired by the camera.
The target face is the face that appears the most frequently in the video. When the electronic device collects a video in the background, the face with the largest occurrence frequency is usually the face corresponding to the holder of the electronic device, and the electronic device can acquire the face as a target face. The electronic equipment can detect each frame of image in the video and acquire the face with the largest occurrence frequency in each frame of image as a target face; or extracting a frame of image every other preset frame for detection, and acquiring the face with the largest occurrence frequency in each extracted frame of image as the target face.
And 904, detecting the facial expression corresponding to the target face, and determining the emotion type corresponding to the target face according to the facial expression.
The electronic equipment detects the facial expression corresponding to the target face, specifically, the electronic equipment trains a neural network capable of recognizing the facial expression according to neural networks such as VGG, CNN, SSD, decision trees and the like, inputs the target face into the neural network, and obtains the output facial expression; the electronic device may also prestore facial expression templates corresponding to different expressions, match the target face with the facial expression templates, and obtain the expression with the highest matching degree as the facial expression corresponding to the target face. The emotion types may include happiness, sadness, pain, anger, etc., with different emotion types having corresponding expressions. For example, a happy expression may be laugh, smile, etc.; the sad expression may be crying, etc. The electronic device can determine the corresponding emotion type according to the facial expression of the target face.
Step 906, obtaining the corresponding target theme according to the emotion type and the scene classification.
The electronic device obtains the corresponding target theme according to the emotion type and the scene classification, and specifically, the electronic device may obtain a theme corresponding to the emotion type in the theme corresponding to the scene classification as the target theme. For example, when the scene is classified as a home scene, if the emotion type is sad, the electronic device may obtain, as a target theme, a home theme including background words that encourage and soothe people's minds in the home theme corresponding to the home scene.
The electronic equipment analyzes the video acquired by the camera to obtain the emotion type corresponding to the target face in the video, acquires the corresponding target theme according to the emotion type and scene classification, and switches the current theme of the electronic equipment to the target theme, so that the theme switching process can be simplified, and the theme switching accuracy is improved.
In one embodiment, the electronic device may further obtain a corresponding target topic according to the scene classification, the scene information, and the emotion type. Specifically, the electronic device acquires a video acquired by a camera, analyzes the video to obtain scene information contained in the video, performs expression detection on a target face with the largest occurrence frequency in the video to obtain a face expression corresponding to the target face, and determines an emotion type corresponding to the face expression, so that the electronic device can acquire a corresponding target theme according to scene classification, the scene information and the emotion type, automatically switch the current theme of the electronic device to the target theme, simplify the theme switching process, and improve the theme switching accuracy.
As shown in fig. 10, in one embodiment, the provided theme switching method includes steps 1002 to 1010. Wherein:
step 1002, detecting position information of the electronic device within a preset time, and generating a corresponding movement track according to the position information of the electronic device within the preset time.
And 1004, acquiring a corresponding target theme according to the moving track.
Step 1006, switching the current theme of the electronic device to the target theme.
And step 1008, acquiring a corresponding target working mode according to the target theme.
The operating mode refers to an operating mode of the electronic device. Specifically, the configuration of the operation mode may include configuration of an incoming call alert mode, a message alert mode, a ring volume, brightness, and the like. In daily life, people can set different electronic equipment working modes according to different scenes. For example, when a meeting is opened, the incoming call or message reminding mode is set to be mute or vibration; in a noisy place, the volume of the incoming call or the message reminding ring is increased; when the electronic device is in the airplane, the electronic device is set to the flight mode. The electronic equipment can pre-store different working modes according to different themes and also can pre-store working modes of different scene classifications according to scene classifications corresponding to different themes, and the electronic equipment can acquire corresponding target working modes according to target themes.
Step 1010, configuring the electronic device according to the target working mode.
The electronic equipment can acquire and store the configuration information of the working mode of the user under different themes and acquire the configuration information of the corresponding target working mode according to the target theme; the electronic device can also receive configuration information of the user on different working modes, so that the electronic device can acquire the configuration information corresponding to the target working mode and configure the electronic device. For example, the configuration information of the office working mode pre-stored in the office theme can be that the incoming call prompt is vibration, the message prompt is mute, and the like; the pre-stored configuration information of the home working mode of the home theme can be an incoming call or a message reminder as a ring; if the current theme is a game theme in the home theme, the corresponding game working mode may be that only a ring alert is used when an incoming call or a message is received, the current game interface is not interrupted, and the like, and the electronic device may configure the electronic device according to the configuration information of the target working mode.
The electronic equipment detects position information within preset time, generates a corresponding moving track according to the position information of the electronic equipment within the preset time, acquires a corresponding target theme according to the moving track, acquires a corresponding target working mode according to the target theme after switching a current theme of the electronic equipment to the target theme, and configures the electronic equipment according to the target working mode, so that the working mode of the electronic equipment can be automatically adapted to the theme without manual switching by a user.
In one embodiment, the provided theme switching method may further include: and pushing information corresponding to the target working mode.
The information may be at least one of recommendation information, reminder information, and execution information. The electronic equipment can acquire information related to the working mode according to different working modes for pushing. For example, the information related to the office work mode may include rest time reminding information, off-duty time reminding information, and the like; the information related to the home operating mode may include comfortable music recommendation information, execution information for automatic playing of music, and the electronic device may automatically play music according to the execution information; the information related to the travel operation mode may include food recommendation information, lodging recommendation information, travel strategy recommendation information, and the like, which are near the travel region, without being limited thereto. The electronic equipment can preset different pushing information according to different working modes, and acquires corresponding information according to a target working mode to push, so that the corresponding information can be automatically pushed, and the accuracy of information pushing is improved.
It should be understood that although the various steps in the flowcharts of fig. 2, 3, 7-10 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2, 3, 7-10 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 11 is a block diagram of a theme switching apparatus according to an embodiment. As shown in fig. 11, the theme switching apparatus includes: a track generation module 1102, a topic acquisition module 1104, and a switching module 1106. Wherein:
the track generating module 1102 is configured to detect location information of the electronic device within a preset time, and generate a corresponding moving track according to the location information of the electronic device within the preset time.
And a theme obtaining module 1104, configured to obtain a corresponding target theme according to the moving track.
A switching module 1106, configured to switch the current theme of the electronic device to the target theme.
In one embodiment, the provided theme switching apparatus further includes a classification determining module 1108, where the classification determining module 1108 is configured to determine a corresponding scene classification according to the moving track; the topic retrieval module 1104 may further be configured to retrieve corresponding target topics according to the scene classification.
In one embodiment, the classification determining module 1108 may be further configured to obtain a moving speed and a rising height corresponding to the moving track, and determine a corresponding moving mode according to at least one of the moving speed and the rising height; and determining corresponding scene classification according to the moving mode and the moving track.
In an embodiment, the theme obtaining module 1104 may further be configured to obtain a video collected by the camera, analyze the video to obtain scene information corresponding to the video, and obtain a corresponding target theme according to the scene information and the scene classification.
In an embodiment, the theme obtaining module 1104 may further be configured to obtain a target face with the largest occurrence frequency in a video acquired by the camera, detect a facial expression corresponding to the target face, determine an emotion type corresponding to the target face according to the facial expression, and obtain a corresponding target theme according to the emotion type and scene classification.
In an embodiment, the switching module 1106 may be further configured to obtain a corresponding target working mode according to the target theme, and configure the electronic device according to the target working mode.
In one embodiment, the theme switching apparatus provided may further include a push module 1110. The pushing module 1110 is configured to push information corresponding to the target operating mode.
The division of each module in the theme switching device is merely used for illustration, and in other embodiments, the theme switching device may be divided into different modules as needed to complete all or part of the functions of the theme switching device.
For the specific definition of the theme switching device, reference may be made to the above definition of the theme switching method, which is not described herein again. The various modules in the subject switching apparatus described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
The implementation of the respective modules in the subject switching apparatus provided in the embodiments of the present application may be in the form of a computer program. The computer program may be run on a terminal or a server. The program modules constituted by the computer program may be stored on the memory of the terminal or the server. Which when executed by a processor, performs the steps of the method described in the embodiments of the present application.
The embodiment of the application also provides a computer readable storage medium. One or more non-transitory computer-readable storage media containing computer-executable instructions that, when executed by one or more processors, cause the processors to perform the steps of the theme switching method.
A computer program product containing instructions which, when run on a computer, cause the computer to perform a theme switching method.
The embodiment of the application also provides another electronic device. As shown in fig. 12, for convenience of explanation, only the portions related to the embodiments of the present application are shown, and details of the specific techniques are not disclosed, please refer to the method portion of the embodiments of the present application. The electronic device may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, and the like, taking the electronic device as the mobile phone as an example:
fig. 12 is a block diagram of a partial structure of a mobile phone related to an electronic device provided in an embodiment of the present application. Referring to fig. 12, the cellular phone includes: memory 1220, input unit 1230, display unit 1240, positioning module 1250, audio circuitry 1260, processor 1270, and power supply 1280. Those skilled in the art will appreciate that the handset configuration shown in fig. 12 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The memory 1220 may be used for storing software programs and modules, and the processor 1270 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1220. The memory 1220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as an application program for a sound playing function, an application program for an image playing function, and the like), and the like; the data storage area may store data (such as audio data, an address book, etc.) created according to the use of the mobile phone, and the like. Further, the memory 1220 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 1230 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 1200. Specifically, the input unit 1230 may include a touch panel 1231 and other input devices 1232. The touch panel 1231, which may also be referred to as a touch screen, may collect touch operations performed by a user on or near the touch panel 1231 (e.g., operations performed by the user on or near the touch panel 1231 using any suitable object or accessory such as a finger, a stylus, etc.), and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1231 can include two portions, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 1270, and can receive and execute commands sent by the processor 1270. In addition, the touch panel 1231 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1230 may include other input devices 1232 in addition to the touch panel 1231. In particular, other input devices 1232 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), and the like.
The display unit 1240 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. Display unit 1240 may include a display panel 1241. In one embodiment, the Display panel 1241 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. In one embodiment, touch panel 1231 can overlay display panel 1241 and, when touch panel 1231 detects a touch operation thereon or nearby, communicate to processor 1270 to determine the type of touch event, and processor 1270 can then provide corresponding visual output on display panel 1241 based on the type of touch event. Although in fig. 12, the touch panel 1231 and the display panel 1241 are implemented as two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1231 and the display panel 1241 may be integrated to implement the input and output functions of the mobile phone.
The cell phone 1200 may also include a location module 1250, where the location module 1250 may be a GPS module. The mobile phone 1200 can detect the location information of the mobile phone 1200 in real time through the positioning module 1250. After the positioning module 1250 obtains the current location information, the location information may be transmitted to the processor 1270, so that the processor 1270 of the mobile phone 1200 generates a moving track of the electronic device according to the location information or performs other processing.
Audio circuit 1260, speaker 1261, and microphone 1262 can provide an audio interface between a user and a cell phone. The audio circuit 1260 can transmit the received electrical signal converted from the audio data to the speaker 1261, and the audio signal is converted into a sound signal by the speaker 1261 and output; on the other hand, the microphone 1262 converts the collected sound signal into an electric signal, receives the electric signal by the audio circuit 1260, converts the electric signal into audio data, and outputs the audio data to the memory 1220 for subsequent processing.
The processor 1270 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1220 and calling data stored in the memory 1220, thereby integrally monitoring the mobile phone. In one embodiment, processor 1270 may include one or more processing units. In one embodiment, processor 1270 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, application programs, and the like; the modem processor handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1270.
The mobile phone 1200 also includes a power source 1280 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 1270 via a power management system, such that the power management system may manage charging, discharging, and power consumption.
In one embodiment, the mobile phone 1200 may further include a camera, a bluetooth module, a WIFI module, and the like.
In an embodiment of the application, the electronic device comprises a processor 1270 which implements the steps of the theme switching method when executing the computer program stored on the memory.
Any reference to memory, storage, database, or other medium used herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of theme shift, comprising:
detecting the position information of the electronic equipment within preset time, and generating a corresponding moving track according to the position information of the electronic equipment within the preset time; the preset time is a time interval or a time range;
acquiring a moving speed and a rising height corresponding to the moving track; determining a corresponding moving mode according to the moving speed and the rising height, wherein the moving speed refers to the speed of displacement change of the electronic equipment on a moving track, and the rising height refers to the height of different position information in the moving track; determining corresponding scene classification according to the moving mode and the moving track;
acquiring corresponding target subjects according to the scene classification; the method comprises the following steps: acquiring a target face with the largest occurrence frequency in a video acquired by a camera; detecting a face expression corresponding to the target face, and determining an emotion type corresponding to the target face according to the face expression; acquiring the corresponding target theme according to the emotion type and the scene classification;
and switching the current theme of the electronic equipment into the target theme.
2. The method of claim 1, wherein the obtaining the corresponding target topic according to the scene classification comprises:
acquiring a video acquired by a camera;
analyzing the video to obtain scene information corresponding to the video;
and acquiring the corresponding target theme according to the scene information and the scene classification.
3. The method of claim 1, wherein after the switching the current theme of the electronic device to the target theme, the method further comprises:
acquiring a corresponding target working mode according to the target theme;
and configuring the electronic equipment according to the target working mode.
4. The method of claim 3, further comprising:
and pushing information corresponding to the target working mode.
5. A theme switching apparatus, comprising:
the track generation module is used for detecting the position information of the electronic equipment within the preset time and generating a corresponding moving track according to the position information of the electronic equipment within the preset time; the preset time is a time interval or a time range;
the classification determining module is used for acquiring the moving speed and the rising height corresponding to the moving track; determining a corresponding moving mode according to the moving speed and the rising height, wherein the moving speed refers to the speed of displacement change of the electronic equipment on a moving track, and the rising height refers to the height of different position information in the moving track; determining corresponding scene classification according to the moving mode and the moving track;
the theme acquisition module is used for acquiring corresponding target themes according to the scene classification; the method comprises the following steps: acquiring a target face with the largest occurrence frequency in a video acquired by a camera; detecting a face expression corresponding to the target face, and determining an emotion type corresponding to the target face according to the face expression; acquiring the corresponding target theme according to the emotion type and the scene classification;
and the switching module is used for switching the current theme of the electronic equipment into the target theme.
6. The device of claim 5, wherein the switching module is further configured to obtain a video captured by a camera; analyzing the video to obtain scene information corresponding to the video; and acquiring the corresponding target theme according to the scene information and the scene classification.
7. The apparatus according to claim 5, wherein the switching module is further configured to obtain a corresponding target working mode according to the target theme; and configuring the electronic equipment according to the target working mode.
8. The apparatus of claim 7, further comprising:
and the pushing module is used for pushing information corresponding to the target working mode.
9. An electronic device comprising a memory and a processor, the memory having stored therein a computer program that, when executed by the processor, causes the processor to perform the steps of the theme switching method of any one of claims 1 to 4.
10. A computer-readable storage medium, on 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 4.
CN201810867098.9A 2018-08-01 2018-08-01 Theme switching method and device, electronic equipment and computer readable storage medium Active CN109151186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810867098.9A CN109151186B (en) 2018-08-01 2018-08-01 Theme switching method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810867098.9A CN109151186B (en) 2018-08-01 2018-08-01 Theme switching method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109151186A CN109151186A (en) 2019-01-04
CN109151186B true CN109151186B (en) 2021-05-11

Family

ID=64798761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810867098.9A Active CN109151186B (en) 2018-08-01 2018-08-01 Theme switching method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109151186B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111629102A (en) * 2019-02-28 2020-09-04 北京小米移动软件有限公司 Scene mode switching method and device, mobile terminal and storage medium
CN112558843A (en) * 2019-09-10 2021-03-26 Oppo广东移动通信有限公司 Theme switching method and device, main body of wearable equipment and wearing assembly
CN111093023B (en) * 2019-12-19 2022-03-08 维沃移动通信有限公司 Video shooting method and electronic equipment
CN111679874A (en) * 2020-04-17 2020-09-18 北京奇艺世纪科技有限公司 Method, device, system electronic equipment and storage medium for replacing theme material
CN112379962A (en) * 2020-11-25 2021-02-19 Oppo(重庆)智能科技有限公司 Desktop theme adjusting method, mobile terminal, server and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8040233B2 (en) * 2008-06-16 2011-10-18 Qualcomm Incorporated Methods and systems for configuring mobile devices using sensors
US9131060B2 (en) * 2010-12-16 2015-09-08 Google Technology Holdings LLC System and method for adapting an attribute magnification for a mobile communication device
CN102722347B (en) * 2011-03-29 2015-09-23 联想(北京)有限公司 Generate method and the electronic equipment of dynamic wallpaper
EP2762834B1 (en) * 2013-02-01 2017-03-22 Intel Corporation An integrated global navigation satellite system and inertial navigation system
CN103269394A (en) * 2013-04-16 2013-08-28 广东欧珀移动通信有限公司 Setting method and system of application theme of mobile terminal
CN104252299B (en) * 2013-06-28 2017-06-16 上海斐讯数据通信技术有限公司 A kind of mobile terminal for controlling wallpaper to change colour
BR112017014892B1 (en) * 2015-01-13 2022-11-01 Nissan Motor Co., Ltd. TRIP CONTROL DEVICE
CN104821991A (en) * 2015-05-22 2015-08-05 三星电子(中国)研发中心 Method for mobile terminal to carry out communication and mobile terminal
CN106874021B (en) * 2015-12-11 2020-12-15 腾讯科技(深圳)有限公司 Automatic switching method and device for visual interface of terminal
CN107861957B (en) * 2016-09-22 2020-10-02 杭州海康威视数字技术股份有限公司 Data analysis method and device

Also Published As

Publication number Publication date
CN109151186A (en) 2019-01-04

Similar Documents

Publication Publication Date Title
CN109151186B (en) Theme switching method and device, electronic equipment and computer readable storage medium
CN106126178B (en) Monitor speech input automatically based on context
CN105025173B (en) Know profile switching on mobile computing device
CN104123316B (en) Resource collecting method, device and equipment
WO2018010512A1 (en) Method and device for uploading phtograph file
US20170031575A1 (en) Tailored computing experience based on contextual signals
WO2020207413A1 (en) Content pushing method, apparatus, and device
CN109660728B (en) Photographing method and device
CN108022274B (en) Image processing method, image processing device, computer equipment and computer readable storage medium
CN107666536B (en) Method and device for searching terminal
CN106921791B (en) Multimedia file storage and viewing method and device and mobile terminal
CN104125264A (en) Resource collecting method, device and equipment
CN107948729B (en) Rich media processing method and device, storage medium and electronic equipment
CN109409235B (en) Image recognition method and device, electronic equipment and computer readable storage medium
CN111696553A (en) Voice processing method and device and readable medium
CN109587319A (en) A kind of call processing method, terminal and computer readable storage medium
CN111343346B (en) Incoming call pickup method and device based on man-machine conversation, storage medium and equipment
CN107291772A (en) One kind search access method, device and electronic equipment
CN110932964A (en) Information processing method and device
CN110750198A (en) Expression sending method and mobile terminal
CN114205447A (en) Rapid setting method and device of electronic equipment, storage medium and electronic equipment
CN106060129A (en) Information processing method and device.
CN103905837A (en) Image processing method and device and terminal
CN105939424A (en) Application switching method and device
CN108984098A (en) The control method and device that information based on social software is shown

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