WO2015154565A1 - Data storage method and device - Google Patents
Data storage method and device Download PDFInfo
- Publication number
- WO2015154565A1 WO2015154565A1 PCT/CN2015/071032 CN2015071032W WO2015154565A1 WO 2015154565 A1 WO2015154565 A1 WO 2015154565A1 CN 2015071032 W CN2015071032 W CN 2015071032W WO 2015154565 A1 WO2015154565 A1 WO 2015154565A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- application
- module
- data
- application data
- smile
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
Definitions
- the present invention relates to the field of communications, and in particular to a data storage method and apparatus.
- the present invention provides a data storage method and apparatus to solve at least the problem of the related art that cannot store application data according to user preferences.
- a data storage method including: after identifying a smiley face, acquiring application data corresponding to a currently running application according to the recognized smile face, wherein the smile face is a face that meets a predetermined outline An image; storing the application data.
- the method further includes: starting a camera for collecting the smiling face according to a predetermined condition.
- the method further includes: displaying application information of the application corresponding to the stored application data.
- the method further includes: updating the stored application data after the smile is recognized again under the application.
- displaying application information of the application corresponding to the stored application data includes: sorting application information of the application; and displaying the sorted application information.
- the method further includes: updating the application data corresponding to the application to the stored application data.
- a data storage device comprising: an obtaining module, configured to: after the smile is recognized, acquire application data corresponding to a currently running application according to the recognized smile face, wherein the smile face A face image for satisfying a predetermined outline; a storage module configured to store the application data.
- the data storage device further includes: an activation module configured to start a camera for collecting the smile according to a predetermined condition.
- the data storage device further includes: a display module, configured to display application information of the application corresponding to the stored application data.
- the data storage device further includes: a first update module, configured to update the stored application data after the smile is recognized again under the application.
- the display module includes: a sorting unit configured to sort application information of the application; and a display unit configured to display the sorted application information.
- the data storage device further includes: a second update module, configured to update the application data corresponding to the application to the stored application data.
- the application data corresponding to the currently running application is acquired according to the recognized smile, wherein the smile is a face image that satisfies a predetermined outline; and the application data is stored, and the related technology is solved.
- the application data cannot be stored according to the user's preference, thereby achieving the effect of storing the application data according to the user's preference.
- FIG. 1 is a flow chart of a data storage method according to an embodiment of the present invention.
- FIG. 2 is a block diagram showing the structure of a data storage device according to an embodiment of the present invention.
- FIG. 3 is a block diagram 1 of a preferred structure of a data storage device according to an embodiment of the present invention.
- FIG. 4 is a block diagram 2 of a preferred structure of a data storage device according to an embodiment of the present invention.
- FIG. 5 is a block diagram 3 of a preferred structure of a data storage device according to an embodiment of the present invention.
- FIG. 6 is a structural block diagram of a display module 42 in a data storage device according to an embodiment of the present invention.
- FIG. 7 is a block diagram 4 of a preferred structure of a data storage device according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of an acquisition configuration interface according to an embodiment of the present invention.
- FIG. 9 is a flowchart showing a startup of a preference module according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a preference module update according to an embodiment of the present invention.
- FIG. 11 is a flowchart of a module update scenario according to an embodiment of the present invention.
- FIG. 12 is a schematic diagram of a setting module interface according to an embodiment of the present invention.
- FIG. 13 is a schematic diagram of a resource browser interface according to an embodiment of the present invention.
- FIG. 14 is a schematic diagram of a music player interface according to an embodiment of the present invention.
- 15 is a schematic diagram of an interface of a video player module according to an embodiment of the present invention.
- FIG. 1 is a flowchart of a data storage method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
- Step S102 after identifying a smiley face, acquiring application data corresponding to the currently running application according to the recognized smile face, wherein the smile face is a face image satisfying a predetermined profile;
- Step S104 storing the application data.
- the related data of the current application is saved in the case where the smile is recognized, and the application data is saved according to the user's preference, and the problem that the application data cannot be stored according to the user's preference is solved.
- the effect of storing application data according to the user's preference is achieved.
- the camera for collecting the smiley face can also be activated according to the predetermined condition.
- the predetermined condition may cause the timing to start, or periodically initiate or maintain the camera has not been activated, and of course, other predetermined conditions.
- the application information of the application corresponding to the stored application data may be displayed, that is, the historical preference information is read, and may be displayed by the interface display for the user to view, of course, Other ways to display, so that you can intuitively determine the user's preferences.
- the application data storage it may first be determined whether the related application data has been saved in advance, and if the determination result is YES, the stored application data is updated after the smile is recognized again under the application.
- the application information of the application may be sorted according to the user's preference; the sorted application information is displayed. Therefore, the user can conveniently see that the application information of those applications is the most favorite, thereby improving the user experience.
- the application data corresponding to the application may be updated to the stored application data, where the application data may be updated without restarting the application, or after exiting the application, and When the application is run again, the application data corresponding to the application is updated to the stored application data.
- the application corresponding to the application data is started according to the stored application data. That is, the application is launched in accordance with the user's preference data. Thereby ensuring that the relevant data of the launched application is the favorite data that best matches the user's application habits.
- a data storage device is also provided in the embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 2 is a block diagram showing the structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 2, the device includes an acquisition module 22 and a storage module 24. The device will be described below.
- the obtaining module 22 is configured to: after the smile is recognized, acquire the application data corresponding to the current application according to the recognized smile, wherein the smile is a face image that satisfies a predetermined contour; the storage module 24 is connected to the acquiring module 22, and is configured to To store application data.
- FIG. 3 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a boot module 32, and the boot module 32, in addition to all the modules shown in FIG. Be explained.
- the startup module 32 is connected to the acquisition module 22 described above and is configured to activate a camera for collecting smiles according to predetermined conditions.
- FIG. 4 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 4, the device includes a display module 42 in addition to all the modules shown in FIG. Be explained.
- the display module 42 is connected to the storage module 24 and configured to display application information of the application corresponding to the stored application data.
- FIG. 5 is a block diagram 3 of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 5, the device includes a first update module 52 in addition to all the modules shown in FIG. An update module 52 is described.
- the first update module 52 is connected to the storage module 24, and is configured to update the stored application data after the smile is recognized again under the application.
- FIG. 6 is a structural block diagram of a display module 42 in a data storage device according to an embodiment of the present invention. As shown in FIG. 6, the display module 42 includes a sorting unit 62 and a display unit 64. The display module 42 will be described below.
- the sorting unit 62 is configured to sort the application information of the application; the display unit 64 is connected to the sorting unit 62, and is configured to display the sorted application information.
- FIG. 7 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 7, the device includes a second update module 72 in addition to all the modules shown in FIG. The second update module 72 is described.
- the second update module 72 is connected to the storage module 24, and is configured to update the application data corresponding to the application to the stored application data.
- the present invention will be described below by setting a corresponding module in a mobile terminal to realize a function of recording user preferences.
- the terminal that records the user's preference may have the following conditions:
- the mobile terminal has an observation camera.
- the mobile terminal integrates a smile recognition module.
- the mobile terminal integrates a preference module for the patent (same as the storage module 24 described above).
- the favorite collection configuration module can list the application modules of the current terminal device that support the collection, for the user to configure.
- the configuration method can use the UI shown in FIG. 8.
- FIG. 8 is a schematic diagram of the collection configuration interface according to an embodiment of the present invention, thereby facilitating user configuration, and the preference module can be applied to the module selected by the user.
- the user configuration data can be saved according to the specific platform, for example, the database method can be used for storage.
- the module is started and shut down.
- the frame data acquired by the camera module is identified by the smile recognition module.
- the setting data is updated according to the recognition result.
- FIG. 9 is a flowchart of starting a preference module according to an embodiment of the present invention. As shown in FIG. 9, the process includes the following steps:
- Step S902 the mobile terminal starts
- Step S904 it is determined whether the configuration of the control preference module is started or stopped in the terminal, if the determination result is no, then the process goes to step S906, if the determination result is YES, then the process goes to step S908;
- Step S906 starting the preference module
- step S908 it is determined whether or not the preference module is activated. If the determination result is YES, the preference module is activated, and the process proceeds to step S906. If the determination result is negative, the process proceeds to step S902.
- the system can start the preference module according to the preference collection configuration or the user manually activates the preference module.
- the system configuration can be provided according to different implementations, and the user can utilize the system configuration to effectively control the start and stop of the favorite module.
- the favorite module can be registered as a system service to implement the background operation function.
- FIG. 10 is a flowchart of a preference module update according to an embodiment of the present invention. As shown in FIG. 10, the process includes the following steps:
- Step S1002 after the favorite module is started, the observation camera is started;
- Step S1004 it is determined whether the camera can be normally started, if the determination result is yes, then go to step S1006, if the determination result is no, then go to step S1002;
- Step S1006 the camera collects an image
- Step S1008 it is determined whether the data collected by the camera is valid frame data, if the determination result is yes, then go to step S1010, otherwise go to step S1006;
- Step S1010 the preference module acquires the camera preview frame data, and transmits the data to the system integrated smile recognition module, the smile recognition module performs smile analysis according to the current data, and feeds the recognition result to the preference module;
- Step S1012 notifying the monitoring module to update the user preference data
- step S1014 user preference data is stored.
- step S1004 when the camera starts abnormally, it may try to start again, and the system may configure the control of the preference module for the camera according to the situation. This is a different specific analysis based on the specific implementation.
- the preference module may also update the user preference data according to the current module.
- the module scene includes: the user sets the volume to show a satisfactory smile, and can mark this volume as the user's favorite; the user can smile for a certain music, see a video, smile, etc., and can mark these resources as the user likes. Etc., the scenario can be increased according to the specific implementation.
- the preference setting module can adopt different storage methods according to different systems, such as a database and the like, and can realize storage of collected favorite data.
- the history preference information can be read through the favorite module.
- the application can display information through the user interface for the user to view, and of course, can also support user modification.
- FIG. 11 is a flowchart of a module update scenario according to an embodiment of the present invention. As shown in FIG. 11, the process includes the following steps:
- Step S1102 The application module starts to obtain the preference information.
- Step S1104 updating user preference information
- step S1106 the user operation is monitored, and the preference data is updated according to the application scenario.
- the following is a ZTE mobile terminal device equipped with Qualcomm chips and Android 4.4 system.
- the smile recognition module utilizes the smile recognition function of Qualcomm platform.
- the observation camera uses an OminiVersion 5M camera as an example to explain the present invention.
- This embodiment mainly implements the preference data for updating the volume if the user adjusts the volume in the case where the user smile is detected; if the user is listening to music and watching the video, the preference data of the corresponding audio and video is updated.
- the Resource Browser supports viewing and editing of favorite data.
- the favorite module is registered as a self-starting module after the system is started. This will automatically launch the favorite module after booting.
- the preference module provides an interface for data acquisition, which is convenient for each application scenario to obtain favorite information. In this embodiment, an interface is provided:
- the interface will register the module to listen, that is, the preference module detects the preference data, and all the listening modules will be notified through FaveriteUpdated.
- Specific notification implementation methods :
- the preference module saves the listener instances of all the listener modules through a list, so that each module can be notified after the preferences are detected.
- the preference module observes the camera by observing the camera and calls OnFaveriteUpdate to broadcast the data.
- the preference module sets the timer and starts the detection function of the favorite module at regular intervals.
- the embodiment of the present invention configures the following trigger conditions according to the implementation:
- the detection period is reasonably configured according to the file length of the audio and video.
- the detection is triggered and then the preference data is updated according to the different module scenarios.
- the first module scenario of the present embodiment is a volume setting, and the volume setting is extended on the basis of the original volume indication, and the user can view and set the preference data.
- FIG. 12 is a schematic diagram of a setting module interface according to an embodiment of the present invention. Including the following steps:
- the monitor registration is performed.
- the registration interface of the favorite module is registered to register the favorite monitor:
- the setting module displays and edits favorite data as shown in FIG.
- Historical preference data can be passed:
- the method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
- the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user.
- the updated method is similar to FaveriteUpdated.
- the setup module also supports broadcasts from the favorite module. After the preference module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the setup module. This function setting module implements data storage.
- the second module scenario of the implementation is a resource browser.
- the resource browser is extended by the user preferences, and the user can view and set the preference data.
- FIG. 13 is a schematic diagram of a resource browser interface according to an embodiment of the present invention. Including the following steps:
- the resource browser module implements the FaveriteListener interface.
- the MediaService database adds an integer field of faveritelevel to store favorite data. String mCurrentFile; / / save the current file
- the resource browser module starts monitoring and registration.
- the registration interface of the favorite module is registered to register the favorite listener: RegisterFaveriteListener(new FileManagerFaveriteListener());
- the resource browser module displays and edits favorite data as shown in FIG.
- Historical preference data can be passed:
- Int currentFaveriteLevel sqlit.query("media",mCurrentFile,”faveritelevel”);
- the method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
- the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user.
- the updated method is similar to FaveriteUpdated.
- the Resource Browser module also supports broadcasts from the Favorites module. After the preference module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the resource browser module. This function resource browser module implements data storage.
- the third module scenario of the present implementation is a music player.
- the music player On the basis of the original music player, the music player is extended by the user's preference, and the user can view and set the favorite data.
- FIG. 14 is a schematic diagram of a music player interface according to an embodiment of the present invention. Including the following steps:
- the music player module starts to listen for registration.
- the registration interface of the favorite module is registered to register the favorite monitor:
- the music player module displays and edits favorite data as shown in FIG.
- Historical preference data can be passed:
- Int currentFaveriteLevel sqlit.query("media",mCurrentFile,”faveritelevel”);
- the method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
- the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user.
- the updated method is similar to FaveriteUpdated.
- the music player module also supports broadcasts from the favorite module. After the favorite module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the music player module. This function music player module implements data storage.
- the fourth module scenario of the present implementation is a video player.
- the video player On the basis of the original video player, the video player is extended by the user, and the user can view and set the favorite data.
- FIG. 15 is a schematic diagram of an interface of a video player module according to an embodiment of the present invention, as shown in FIG. 15. Including the following steps:
- Video player module implements FaveriteListener interface
- the monitor is registered after the video player module is started.
- the registration interface of the favorite module is registered to register the favorite monitor:
- the video player module displays and edits favorite data as shown in FIG.
- Historical preference data can be passed:
- Int currentFaveriteLevel sqlit.query("media",mCurrentFile,”faveritelevel”);
- the method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
- the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user.
- the updated method is similar to FaveriteUpdated.
- the video player module also supports broadcasts from the favorite module. After the favorite module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the video player module. This function video player module implements data storage.
- the system setting can be better optimized by detecting the smile by using the camera to realize the smile, and the application can be applied according to the user's preference.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the data storage method and apparatus provided by the embodiments of the present invention have the following beneficial effects: the problem that the application data cannot be stored according to the user's preference in the related art is solved, and the application data is stored according to the user's preference. effect.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
A data storage method and device. The method comprises: after a smiling face is recognized, acquiring application data corresponding to a currently running application according to the recognized smiling face, wherein the smiling face is a facial image satisfying a predetermined contour (S102); and storing the application data (S104). The present invention solves the problem that application data cannot be stored according to the preference of users, thus achieving the effect of storing the application data according to the preference of users.
Description
本发明涉及通信领域,具体而言,涉及一种数据存储方法及装置。The present invention relates to the field of communications, and in particular to a data storage method and apparatus.
随着终端设备的功能的不断完善,移动终端在人们的生活中起着越来越重要的作用,类似于手机这样的移动终端正在逐步成为人们生活中不可或缺的通讯、娱乐设备。因此,改善用户体验,也变得非常的重要。With the continuous improvement of the functions of terminal devices, mobile terminals play an increasingly important role in people's lives. Mobile terminals such as mobile phones are gradually becoming indispensable communication and entertainment devices in people's lives. Therefore, improving the user experience has become very important.
在移动设备作为使用频率很高的娱乐设备的情况下,用户会直接面对音量的设置、多媒体资源的搜索、排序等问题。一般用户很少会主动去设置多媒体资源的喜好。这样,用户在后续播放或者查询排序时就很难按照自己的喜好去排列或者快速定位。In the case of a mobile device as an entertainment device with a high frequency of use, the user directly faces the problem of setting the volume, searching for the multimedia resource, and sorting. The average user rarely takes the initiative to set the preferences of multimedia resources. In this way, the user is difficult to arrange or quickly locate according to his or her preference during subsequent playback or query sorting.
针对相关技术中存在的不能根据用户的喜好去存储应用数据的问题,目前尚未提出有效的解决方案。In view of the problem in the related art that the application data cannot be stored according to the user's preference, an effective solution has not been proposed yet.
发明内容Summary of the invention
本发明提供了一种数据存储方法及装置,以至少解决相关技术中存在的不能根据用户的喜好去存储应用数据的问题。The present invention provides a data storage method and apparatus to solve at least the problem of the related art that cannot store application data according to user preferences.
根据本发明的一个方面,提供了一种数据存储方法,包括:识别到笑脸后,根据识别的所述笑脸获取当前运行的应用对应的应用数据,其中,所述笑脸为满足预定轮廓的人脸图像;存储所述应用数据。According to an aspect of the present invention, a data storage method is provided, including: after identifying a smiley face, acquiring application data corresponding to a currently running application according to the recognized smile face, wherein the smile face is a face that meets a predetermined outline An image; storing the application data.
进一步地,在识别到所述笑脸之前,还包括:根据预定条件启动用于采集所述笑脸的摄像头。Further, before the smiling face is recognized, the method further includes: starting a camera for collecting the smiling face according to a predetermined condition.
进一步地,在存储所述应用数据之后,还包括:显示与存储的所述应用数据对应的应用的应用信息。Further, after the storing the application data, the method further includes: displaying application information of the application corresponding to the stored application data.
进一步地,在存储所述应用数据之后,还包括:当再次在所述应用下识别到笑脸后,更新存储的所述应用数据。
Further, after storing the application data, the method further includes: updating the stored application data after the smile is recognized again under the application.
进一步地,显示与存储的所述应用数据对应的应用的应用信息包括:对所述应用的应用信息进行排序;显示排序后的所述应用信息。Further, displaying application information of the application corresponding to the stored application data includes: sorting application information of the application; and displaying the sorted application information.
进一步地,在存储所述应用数据之后,还包括:将所述应用对应的应用数据更新为存储的所述应用数据。Further, after the storing the application data, the method further includes: updating the application data corresponding to the application to the stored application data.
根据本发明的另一发明,提供了一种数据存储装置,包括:获取模块,设置为在识别到笑脸后,根据识别的所述笑脸获取当前运行的应用对应的应用数据,其中,所述笑脸为满足预定轮廓的人脸图像;存储模块,设置为存储所述应用数据。According to another aspect of the present invention, a data storage device is provided, comprising: an obtaining module, configured to: after the smile is recognized, acquire application data corresponding to a currently running application according to the recognized smile face, wherein the smile face A face image for satisfying a predetermined outline; a storage module configured to store the application data.
进一步地,所述数据存储装置还包括:启动模块,设置为根据预定条件启动用于采集所述笑脸的摄像头。Further, the data storage device further includes: an activation module configured to start a camera for collecting the smile according to a predetermined condition.
进一步地,所述数据存储装置还包括:显示模块,设置为显示与存储的所述应用数据对应的应用的应用信息。Further, the data storage device further includes: a display module, configured to display application information of the application corresponding to the stored application data.
进一步地,所述数据存储装置还包括:第一更新模块,设置为当再次在所述应用下识别到笑脸后,更新存储的所述应用数据。Further, the data storage device further includes: a first update module, configured to update the stored application data after the smile is recognized again under the application.
进一步地,所述显示模块包括:排序单元,设置为对所述应用的应用信息进行排序;显示单元,设置为显示排序后的所述应用信息。Further, the display module includes: a sorting unit configured to sort application information of the application; and a display unit configured to display the sorted application information.
进一步地,所述数据存储装置还包括:第二更新模块,设置为将所述应用对应的应用数据更新为存储的所述应用数据。Further, the data storage device further includes: a second update module, configured to update the application data corresponding to the application to the stored application data.
通过本发明,采用识别到笑脸后,根据识别的所述笑脸获取当前运行的应用对应的应用数据,其中,所述笑脸为满足预定轮廓的人脸图像;存储所述应用数据,解决了相关技术中存在的不能根据用户的喜好去存储应用数据的问题,进而达到了依据用户的喜好存储应用数据的效果。According to the present invention, after the smile is recognized, the application data corresponding to the currently running application is acquired according to the recognized smile, wherein the smile is a face image that satisfies a predetermined outline; and the application data is stored, and the related technology is solved. There is a problem that the application data cannot be stored according to the user's preference, thereby achieving the effect of storing the application data according to the user's preference.
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的数据存储方法的流程图;1 is a flow chart of a data storage method according to an embodiment of the present invention;
图2是根据本发明实施例的数据存储装置的结构框图;
2 is a block diagram showing the structure of a data storage device according to an embodiment of the present invention;
图3是根据本发明实施例的数据存储装置的优选结构框图一;3 is a block diagram 1 of a preferred structure of a data storage device according to an embodiment of the present invention;
图4是根据本发明实施例的数据存储装置的优选结构框图二;4 is a block diagram 2 of a preferred structure of a data storage device according to an embodiment of the present invention;
图5是根据本发明实施例的数据存储装置的优选结构框图三;5 is a block diagram 3 of a preferred structure of a data storage device according to an embodiment of the present invention;
图6是根据本发明实施例的数据存储装置中显示模块42的结构框图;FIG. 6 is a structural block diagram of a display module 42 in a data storage device according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的数据存储装置的优选结构框图四;7 is a block diagram 4 of a preferred structure of a data storage device according to an embodiment of the present invention;
图8是根据本发明实施例的采集配置界面示意图;8 is a schematic diagram of an acquisition configuration interface according to an embodiment of the present invention;
图9是根据本发明实施例的喜好模块的启动流程图;9 is a flowchart showing a startup of a preference module according to an embodiment of the present invention;
图10是根据本发明实施例的喜好模块更新流程图;FIG. 10 is a flowchart of a preference module update according to an embodiment of the present invention; FIG.
图11是根据本发明实施例的模块更新场景流程图;11 is a flowchart of a module update scenario according to an embodiment of the present invention;
图12是根据本发明实施例的设置模块界面示意图;12 is a schematic diagram of a setting module interface according to an embodiment of the present invention;
图13是根据本发明实施例的资源浏览器界面示意图;FIG. 13 is a schematic diagram of a resource browser interface according to an embodiment of the present invention; FIG.
图14是根据本发明实施例的音乐播放器界面示意图;14 is a schematic diagram of a music player interface according to an embodiment of the present invention;
图15是根据本发明实施例的视频播放器模块界面示意图。15 is a schematic diagram of an interface of a video player module according to an embodiment of the present invention.
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种数据存储方法,图1是根据本发明实施例的数据存储方法的流程图,如图1所示,该流程包括如下步骤:A data storage method is provided in this embodiment. FIG. 1 is a flowchart of a data storage method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,识别到笑脸后,根据识别的笑脸获取当前运行的应用对应的应用数据,其中,该笑脸为满足预定轮廓的人脸图像;Step S102, after identifying a smiley face, acquiring application data corresponding to the currently running application according to the recognized smile face, wherein the smile face is a face image satisfying a predetermined profile;
步骤S104,存储该应用数据。
Step S104, storing the application data.
通过上述步骤,采用在识别到笑脸的情况下保存当前应用的相关数据,实现了依据用户喜好进行应用数据的保存,解决了相关技术中存在的不能根据用户的喜好去存储应用数据的问题,进而达到了依据用户的喜好存储应用数据的效果。Through the above steps, the related data of the current application is saved in the case where the smile is recognized, and the application data is saved according to the user's preference, and the problem that the application data cannot be stored according to the user's preference is solved. The effect of storing application data according to the user's preference is achieved.
在识别笑脸之前,需要启动用于进行笑脸采集的摄像头,其中,在一个可选的实施例中,在识别到笑脸之前,还可以根据预定条件启动用于采集笑脸的摄像头。该预定条件可以使定时启动,或周期性启动或保持摄像头一直未启动模式,当然,也开始是其他的预定条件。Before recognizing the smiley face, it is necessary to activate a camera for performing smiley collection, wherein, in an optional embodiment, before the smiley face is recognized, the camera for collecting the smiley face can also be activated according to the predetermined condition. The predetermined condition may cause the timing to start, or periodically initiate or maintain the camera has not been activated, and of course, other predetermined conditions.
在依据用户的喜好存储应用数据之后,还可以显示与存储的应用数据对应的应用的应用信息,即读取历史喜好信息,可以通过界面显示的方式显示出来,以供用户查看,当然也可以以其他的方式进行显示,从而可以直观的确定用户的喜好。After the application data is stored according to the user's preference, the application information of the application corresponding to the stored application data may be displayed, that is, the historical preference information is read, and may be displayed by the interface display for the user to view, of course, Other ways to display, so that you can intuitively determine the user's preferences.
在进行应用数据存储时,可以首先判断预先是否已经保存了相关的应用数据,在判断结果为是的情况下,当再次在该应用下识别到笑脸后,更新存储的应用数据。When the application data storage is performed, it may first be determined whether the related application data has been saved in advance, and if the determination result is YES, the stored application data is updated after the smile is recognized again under the application.
当显示应用时,可以依据用户的喜好程度对应用的应用信息进行排序;显示排序后的应用信息。从而用户可以方便的看到那些应用的应用信息是喜好程度最高的,从而提高用户体验。When the application is displayed, the application information of the application may be sorted according to the user's preference; the sorted application information is displayed. Therefore, the user can conveniently see that the application information of those applications is the most favorite, thereby improving the user experience.
在存储了应用的应用数据之后,可以将该应用对应的应用数据更新为存储的上述应用数据,其中,可以在不重启该应用的情况下更新应用数据,也可以在退出该应用之后,并且在再次运行该应用时,再将该应用对应的应用数据更新为存储的上述应用数据。在一个可选的实施例中,在关闭当前运行的应用之后,按照存储的应用数据启动与该应用数据对应的应用。即,按照用户的喜好数据启动应用。从而保证启动的应用的相关数据是最符合用户的应用习惯的喜好数据。After the application data of the application is stored, the application data corresponding to the application may be updated to the stored application data, where the application data may be updated without restarting the application, or after exiting the application, and When the application is run again, the application data corresponding to the application is updated to the stored application data. In an optional embodiment, after the currently running application is closed, the application corresponding to the application data is started according to the stored application data. That is, the application is launched in accordance with the user's preference data. Thereby ensuring that the relevant data of the launched application is the favorite data that best matches the user's application habits.
在本实施例中还提供了一种数据存储装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。A data storage device is also provided in the embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的数据存储装置的结构框图,如图2所示,该装置包括获取模块22和存储模块24,下面对该装置进行说明。
2 is a block diagram showing the structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 2, the device includes an acquisition module 22 and a storage module 24. The device will be described below.
获取模块22,设置为在识别到笑脸后,根据识别的笑脸获取当前的应用对应的应用数据,其中,该笑脸为满足预定轮廓的人脸图像;存储模块24,连接至上述获取模块22,设置为存储应用数据。The obtaining module 22 is configured to: after the smile is recognized, acquire the application data corresponding to the current application according to the recognized smile, wherein the smile is a face image that satisfies a predetermined contour; the storage module 24 is connected to the acquiring module 22, and is configured to To store application data.
图3是根据本发明实施例的数据存储装置的优选结构框图一,如图3所示,该装置除包括图2所示的所有模块外,还包括启动模块32,下面对该启动模块32进行说明。3 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 3, the device includes a boot module 32, and the boot module 32, in addition to all the modules shown in FIG. Be explained.
启动模块32,连接至上述获取模块22,设置为根据预定条件启动用于采集笑脸的摄像头。The startup module 32 is connected to the acquisition module 22 described above and is configured to activate a camera for collecting smiles according to predetermined conditions.
图4是根据本发明实施例的数据存储装置的优选结构框图二,如图4所示,该装置除包括图2所示的所有模块外,还包括显示模块42,下面对该显示模块42进行说明。4 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 4, the device includes a display module 42 in addition to all the modules shown in FIG. Be explained.
显示模块42,连接至上述存储模块24,设置为显示存储的应用数据对应的应用的应用信息。The display module 42 is connected to the storage module 24 and configured to display application information of the application corresponding to the stored application data.
图5是根据本发明实施例的数据存储装置的优选结构框图三,如图5所示,该装置除包括图2所示的所有模块外,还包括第一更新模块52,下面对该第一更新模块52进行说明。5 is a block diagram 3 of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 5, the device includes a first update module 52 in addition to all the modules shown in FIG. An update module 52 is described.
第一更新模块52,连接至上述存储模块24,设置为当再次在上述应用下识别到笑脸后,更新存储的应用数据。The first update module 52 is connected to the storage module 24, and is configured to update the stored application data after the smile is recognized again under the application.
图6是根据本发明实施例的数据存储装置中显示模块42的结构框图,如图6所示,该显示模块42包括排序单元62和显示单元64,下面对该显示模块42进行说明。FIG. 6 is a structural block diagram of a display module 42 in a data storage device according to an embodiment of the present invention. As shown in FIG. 6, the display module 42 includes a sorting unit 62 and a display unit 64. The display module 42 will be described below.
排序单元62,设置为对应用的应用信息进行排序;显示单元64,连接至上述排序单元62,设置为显示排序后的应用信息。The sorting unit 62 is configured to sort the application information of the application; the display unit 64 is connected to the sorting unit 62, and is configured to display the sorted application information.
图7是根据本发明实施例的数据存储装置的优选结构框图四,如图7所示,该装置除包括图2所示的所有模块外,还包括第二更新模块72,下面对该第二更新模块72进行说明。FIG. 7 is a block diagram of a preferred structure of a data storage device according to an embodiment of the present invention. As shown in FIG. 7, the device includes a second update module 72 in addition to all the modules shown in FIG. The second update module 72 is described.
第二更新模块72,连接至上述存储模块24,设置为将应用对应的应用数据更新为存储的上述应用数据。
The second update module 72 is connected to the storage module 24, and is configured to update the application data corresponding to the application to the stored application data.
下面以在移动终端中设置相应的模块来实现记录用户喜好的功能对本发明进行说明。The present invention will be described below by setting a corresponding module in a mobile terminal to realize a function of recording user preferences.
在该实施例中,进行记录用户喜好的终端可以具备如下条件:In this embodiment, the terminal that records the user's preference may have the following conditions:
移动终端具备观测摄像头。The mobile terminal has an observation camera.
移动终端集成笑脸识别模块。The mobile terminal integrates a smile recognition module.
移动终端集成针对本专利的喜好模块(同上述的存储模块24)。The mobile terminal integrates a preference module for the patent (same as the storage module 24 described above).
喜好采集配置模块(同上述的获取模块22)。It is preferred to collect the configuration module (same as the acquisition module 22 described above).
其中喜好采集配置模块,可以列出当前终端设备的支持喜好采集的应用模块,供用户配置。配置方法可以使用图8所示的UI,图8是根据本发明实施例的采集配置界面示意图,从而方便用户配置,喜好模块可以作用于被用户勾选的模块。同时可以将用户配置数据根据具体平台情况保存,比如可以利用数据库方法进行存储。The favorite collection configuration module can list the application modules of the current terminal device that support the collection, for the user to configure. The configuration method can use the UI shown in FIG. 8. FIG. 8 is a schematic diagram of the collection configuration interface according to an embodiment of the present invention, thereby facilitating user configuration, and the preference module can be applied to the module selected by the user. At the same time, the user configuration data can be saved according to the specific platform, for example, the database method can be used for storage.
整体优化都是通过喜好设置控制完成,包括:Overall optimization is done through preferences control, including:
模块启动、关闭。The module is started and shut down.
启动相机模块。Start the camera module.
将相机模块获取的帧数据通过笑脸识别模块识别。The frame data acquired by the camera module is identified by the smile recognition module.
根据识别结果进行设置数据更新。The setting data is updated according to the recognition result.
喜好模块的操作流程:The operating process of the preference module:
图9是根据本发明实施例的喜好模块的启动流程图,如图9所示,该流程包括如下步骤:FIG. 9 is a flowchart of starting a preference module according to an embodiment of the present invention. As shown in FIG. 9, the process includes the following steps:
步骤S902,移动终端启动;Step S902, the mobile terminal starts;
步骤S904,判断在终端中是否进行了控制喜好模块启停的配置,在判断结果为否达到情况下转至步骤S906,在判断结果为是的情况下,转至步骤S908;Step S904, it is determined whether the configuration of the control preference module is started or stopped in the terminal, if the determination result is no, then the process goes to step S906, if the determination result is YES, then the process goes to step S908;
步骤S906,启动喜好模块;
Step S906, starting the preference module;
步骤S908,判断是否启动喜好模块,在判断结果为是的情况下,启动喜好模块,转至步骤S906,在判断结果为否的情况下,转至步骤S902。In step S908, it is determined whether or not the preference module is activated. If the determination result is YES, the preference module is activated, and the process proceeds to step S906. If the determination result is negative, the process proceeds to step S902.
由此可知,在上述实施例中,系统可以根据喜好采集配置启动喜好模块或者用户手动启动喜好模块。可以根据实施方案的不同提供系统配置,用户可以利用系统配置来有效控制喜好模块的启停。针对不同的系统可以让喜好模块注册为系统服务,实现后台操作的功能。It can be seen that, in the above embodiment, the system can start the preference module according to the preference collection configuration or the user manually activates the preference module. The system configuration can be provided according to different implementations, and the user can utilize the system configuration to effectively control the start and stop of the favorite module. For different systems, the favorite module can be registered as a system service to implement the background operation function.
图10是根据本发明实施例的喜好模块更新流程图,如图10所示,该流程包括如下步骤:FIG. 10 is a flowchart of a preference module update according to an embodiment of the present invention. As shown in FIG. 10, the process includes the following steps:
步骤S1002,喜好模块启动后将启动观测摄像头;Step S1002, after the favorite module is started, the observation camera is started;
步骤S1004,判断摄像头是否可以正常启动,在判断结果为是的情况下,转至步骤S1006,在判断结果为否的情况下,转至步骤S1002;Step S1004, it is determined whether the camera can be normally started, if the determination result is yes, then go to step S1006, if the determination result is no, then go to step S1002;
步骤S1006,摄像头采集图像;Step S1006, the camera collects an image;
步骤S1008,判断摄像头采集的数据是否是有效帧数据,在判断结果为是的情况下,转至步骤S1010,否则转至步骤S1006;Step S1008, it is determined whether the data collected by the camera is valid frame data, if the determination result is yes, then go to step S1010, otherwise go to step S1006;
步骤S1010,喜好模块获取摄像头预览帧数据,并且将数据传递给系统集成的笑脸识别模块,笑脸识别模块根据当前数据进行笑脸分析,并且将识别结果反馈给喜好模块;Step S1010, the preference module acquires the camera preview frame data, and transmits the data to the system integrated smile recognition module, the smile recognition module performs smile analysis according to the current data, and feeds the recognition result to the preference module;
步骤S1012,通知监听模块更新用户喜好数据;Step S1012, notifying the monitoring module to update the user preference data;
步骤S1014,存储用户喜好数据。In step S1014, user preference data is stored.
其中,在步骤S1004中,当摄像头启动异常时可以尝试再次启动,同时系统可以根据情况配置喜好模块对于摄像头的控制。这个根据具体实施的不同具体分析。Wherein, in step S1004, when the camera starts abnormally, it may try to start again, and the system may configure the control of the preference module for the camera according to the situation. This is a different specific analysis based on the specific implementation.
并且,当喜好模块得到笑脸识别模块的反馈结果后,也可以由喜好模块根据当前的模块,更新用户喜好数据。模块场景包括:用户设置音量露出满意的笑容,就可以给这个音量加分标记为用户喜欢;用户听某个音乐露出笑容、看某个视频露出笑容等都可以给这些资源加分标记为用户喜欢等,可以根据具体实施的不同增加场景。喜好设置模块可以根据系统不同采取不同的存储方式,比如数据库等方案,可以实现对采集喜好数据的存储。
Moreover, after the preference module obtains the feedback result of the smile recognition module, the preference module may also update the user preference data according to the current module. The module scene includes: the user sets the volume to show a satisfactory smile, and can mark this volume as the user's favorite; the user can smile for a certain music, see a video, smile, etc., and can mark these resources as the user likes. Etc., the scenario can be increased according to the specific implementation. The preference setting module can adopt different storage methods according to different systems, such as a database and the like, and can realize storage of collected favorite data.
支持喜好设置的应用场景启动后,可以通过喜好模块读取历史喜好信息。应用可以将信息通过用户界面显示,供用户查看,当然也可以支持用户修改。After the application scenario that supports the favorite setting is started, the history preference information can be read through the favorite module. The application can display information through the user interface for the user to view, and of course, can also support user modification.
考虑当前移动终端设备基本都配备摄像头,同时笑脸识别模块也是大部分终端都集成的模块。所以本专利利用观测摄像头识别使用者的笑容情况来自动更新用户喜欢数据。这样就可以在设置、文件管理、资源浏览等应用场景下利用用户喜好数据给用户带来更好的用户体验。Consider that the current mobile terminal devices are basically equipped with cameras, and the smile recognition module is also a module integrated by most terminals. Therefore, this patent uses the observation camera to recognize the user's smile to automatically update the user's favorite data. In this way, user preference data can be used to provide a better user experience in the application scenarios such as settings, file management, and resource browsing.
图11是根据本发明实施例的模块更新场景流程图,如图11所示,该流程包括如下步骤:FIG. 11 is a flowchart of a module update scenario according to an embodiment of the present invention. As shown in FIG. 11, the process includes the following steps:
步骤S1102,应用模块启动,获取喜好信息;Step S1102: The application module starts to obtain the preference information.
步骤S1104,更新用户喜好信息;Step S1104, updating user preference information;
步骤S1106,监控用户操作,并根据应用场景更新喜好数据。In step S1106, the user operation is monitored, and the preference data is updated according to the application scenario.
下面以中兴移动终端设备,搭载高通芯片和Android 4.4系统,笑脸识别模块利用高通平台的笑脸识别功能。观测摄像头使用OminiVersion 5M的摄像头为例,对本发明进行说明。The following is a ZTE mobile terminal device equipped with Qualcomm chips and Android 4.4 system. The smile recognition module utilizes the smile recognition function of Qualcomm platform. The observation camera uses an OminiVersion 5M camera as an example to explain the present invention.
本实施主要实现了在检测到用户笑容的情况下,如果用户在调节音量则对更新音量的喜好数据;如果用户在听音乐、看视频则更新对应音视频的喜好数据。资源浏览器可以支持对喜好数据的查看和编辑。This embodiment mainly implements the preference data for updating the volume if the user adjusts the volume in the case where the user smile is detected; if the user is listening to music and watching the video, the preference data of the corresponding audio and video is updated. The Resource Browser supports viewing and editing of favorite data.
首先,在Android系统增加服务,实现喜好模块。喜好模块注册为系统启动后自启动模块。这样在开机后将自动启动喜好模块。同时喜好模块提供了喜好数据获取的接口,方便各个应用场景获取喜好信息。本实施例,提供了一个接口:First, add services to the Android system to implement the preferences module. The favorite module is registered as a self-starting module after the system is started. This will automatically launch the favorite module after booting. At the same time, the preference module provides an interface for data acquisition, which is convenient for each application scenario to obtain favorite information. In this embodiment, an interface is provided:
该接口会注册模块监听,就是在喜好模块检测到喜好数据,将通过FaveriteUpdated通知所有监听模块。具体通知实现的方法:The interface will register the module to listen, that is, the preference module detects the preference data, and all the listening modules will be notified through FaveriteUpdated. Specific notification implementation methods:
喜好模块通过一个列表保存了所有监听模块的监听实例,这样就可以在检测到喜好后通知到各个模块。The preference module saves the listener instances of all the listener modules through a list, so that each module can be notified after the preferences are detected.
当触发条件达成后喜好模块通过观测摄像头,观测喜好情况,同时调用OnFaveriteUpdate进行数据广播。When the trigger condition is reached, the preference module observes the camera by observing the camera and calls OnFaveriteUpdate to broadcast the data.
喜好模块设定定时器,每隔一定时间启动喜好模块的检测功能。本发明实施例根据实施情况配置了如下触发条件:The preference module sets the timer and starts the detection function of the favorite module at regular intervals. The embodiment of the present invention configures the following trigger conditions according to the implementation:
用户按下音量键。The user presses the volume button.
根据音视频的文件长度合理配置检测周期。The detection period is reasonably configured according to the file length of the audio and video.
触发条件达成后,触发检测然后根据模块场景的不同进行喜好数据的更新。After the trigger condition is reached, the detection is triggered and then the preference data is updated according to the different module scenarios.
本实施的第一个模块场景为音量设置,音量设置在原来音量指示的基础上面对用户喜好进行了扩展,用户可以查看和设置喜好数据。具体如图12所示,图12是根据本发明实施例的设置模块界面示意图。包括如下步骤:The first module scenario of the present embodiment is a volume setting, and the volume setting is extended on the basis of the original volume indication, and the user can view and set the preference data. Specifically, as shown in FIG. 12, FIG. 12 is a schematic diagram of a setting module interface according to an embodiment of the present invention. Including the following steps:
设置模块实现FaveriteListener接口,Set the module to implement the FaveriteListener interface,
设置模块数据库增加整型的字段faveritelevel,来存储喜好数据。Set the module database to increase the integer field faveritelevel to store favorite data.
设置模块启动后进行监听注册。After the setup module is started, the monitor registration is performed.
设置模块启动后,调用喜好模块的注册接口注册喜好监听:After the setup module is started, the registration interface of the favorite module is registered to register the favorite monitor:
RegisterFaveriteListener(new SettingFaveriteListener());RegisterFaveriteListener(new SettingFaveriteListener());
设置模块按照图12所示,显示和编辑喜好数据。The setting module displays and edits favorite data as shown in FIG.
历史喜好数据可以通过:Historical preference data can be passed:
int currentFaveriteLevel=sqlit.query(“setting”,“faveritelevel”);Int currentFaveriteLevel=sqlit.query("setting","faveritelevel");
的方法获取到,然后根据currentFaveriteLevel的值来确定画实心心和空心心的个数,从而展示给用户喜好情况。The method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
同时显示喜好控件接受用户点击事件,然后根据用户设置的情况去更新数据库。更新的方法与FaveriteUpdated相似。At the same time, the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user. The updated method is similar to FaveriteUpdated.
设置模块同时支持喜好模块发来的广播。喜好模块检测到喜好数据后将发出广播,调用设置模块的FaveriteUpdated函数。这个函数设置模块实现了数据存储。The setup module also supports broadcasts from the favorite module. After the preference module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the setup module. This function setting module implements data storage.
本实施的第二个模块场景是资源浏览器,在原来的资源浏览器的基础上对资源浏览器进行了用户喜好的扩展,用户可以查看和设置喜好数据。具体如图13所示,图13是根据本发明实施例的资源浏览器界面示意图。包括如下步骤:
The second module scenario of the implementation is a resource browser. On the basis of the original resource browser, the resource browser is extended by the user preferences, and the user can view and set the preference data. Specifically, as shown in FIG. 13, FIG. 13 is a schematic diagram of a resource browser interface according to an embodiment of the present invention. Including the following steps:
资源浏览器模块实现FaveriteListener接口。The resource browser module implements the FaveriteListener interface.
MediaService数据库增加整型的字段faveritelevel,来存储喜好数据。string mCurrentFile;//保存当前文件The MediaService database adds an integer field of faveritelevel to store favorite data. String mCurrentFile; / / save the current file
资源浏览器模块启动后进行监听注册。The resource browser module starts monitoring and registration.
资源浏览器模块启动后,调用喜好模块的注册接口注册喜好监听:RegisterFaveriteListener(new FileManagerFaveriteListener());After the resource browser module is started, the registration interface of the favorite module is registered to register the favorite listener: RegisterFaveriteListener(new FileManagerFaveriteListener());
资源浏览器模块按照图13所示,显示和编辑喜好数据。The resource browser module displays and edits favorite data as shown in FIG.
历史喜好数据可以通过:Historical preference data can be passed:
int currentFaveriteLevel=sqlit.query(“media”,mCurrentFile,“faveritelevel”);
Int currentFaveriteLevel=sqlit.query("media",mCurrentFile,"faveritelevel");
的方法获取到,然后根据currentFaveriteLevel的值来确定画实心心和空心心的个数,从而展示给用户喜好情况。The method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
同时显示喜好控件接受用户点击事件,然后根据用户设置的情况去更新数据库。更新的方法与FaveriteUpdated相似。At the same time, the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user. The updated method is similar to FaveriteUpdated.
资源浏览器模块同时支持喜好模块发来的广播。喜好模块检测到喜好数据后将发出广播,调用资源浏览器模块的FaveriteUpdated函数。这个函数资源浏览器模块实现了数据存储。The Resource Browser module also supports broadcasts from the Favorites module. After the preference module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the resource browser module. This function resource browser module implements data storage.
本实施的第三个模块场景是音乐播放器,在原来的音乐播放器的基础上对音乐播放器进行了用户喜好的扩展,用户可以查看和设置喜好数据。具体如图14所示,图14是根据本发明实施例的音乐播放器界面示意图。包括如下步骤:The third module scenario of the present implementation is a music player. On the basis of the original music player, the music player is extended by the user's preference, and the user can view and set the favorite data. Specifically, as shown in FIG. 14, FIG. 14 is a schematic diagram of a music player interface according to an embodiment of the present invention. Including the following steps:
音乐播放器模块实现FaveriteListener接口Music player module implements FaveriteListener interface
利用MediaService数据库的faveritelevel字段,来存储喜好数据。Use the faveritelevel field of the MediaService database to store favorite data.
string mCurrentFile;//保存当前播放文件String mCurrentFile; / / save the current play file
音乐播放器模块启动后进行监听注册。The music player module starts to listen for registration.
音乐播放器模块启动后,调用喜好模块的注册接口注册喜好监听:After the music player module is started, the registration interface of the favorite module is registered to register the favorite monitor:
RegisterFaveriteListener(new AudioPlayerFaveriteListener());RegisterFaveriteListener(new AudioPlayerFaveriteListener());
音乐播放器模块按照图14所示,显示和编辑喜好数据。The music player module displays and edits favorite data as shown in FIG.
历史喜好数据可以通过:Historical preference data can be passed:
int currentFaveriteLevel=sqlit.query(“media”,mCurrentFile,“faveritelevel”);Int currentFaveriteLevel=sqlit.query("media",mCurrentFile,"faveritelevel");
的方法获取到,然后根据currentFaveriteLevel的值来确定画实心心和空心心的个数,从而展示给用户喜好情况。The method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
同时显示喜好控件接受用户点击事件,然后根据用户设置的情况去更新数据库。更新的方法与FaveriteUpdated相似。At the same time, the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user. The updated method is similar to FaveriteUpdated.
音乐播放器模块同时支持喜好模块发来的广播。喜好模块检测到喜好数据后将发出广播,调用音乐播放器模块的FaveriteUpdated函数。这个函数音乐播放器模块实现了数据存储。The music player module also supports broadcasts from the favorite module. After the favorite module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the music player module. This function music player module implements data storage.
本实施的第四个模块场景是视频播放器,在原来的视频播放器的基础上对视频播放器进行了用户喜好的扩展,用户可以查看和设置喜好数据。图15是根据本发明实施例的视频播放器模块界面示意图,如图15所示。包括如下步骤:The fourth module scenario of the present implementation is a video player. On the basis of the original video player, the video player is extended by the user, and the user can view and set the favorite data. FIG. 15 is a schematic diagram of an interface of a video player module according to an embodiment of the present invention, as shown in FIG. 15. Including the following steps:
视频播放器模块实现FaveriteListener接口Video player module implements FaveriteListener interface
利用MediaService数据库的faveritelevel字段,来存储喜好数据。Use the faveritelevel field of the MediaService database to store favorite data.
string mCurrentFile;//保存当前播放文件String mCurrentFile; / / save the current play file
视频播放器模块启动后进行监听注册。The monitor is registered after the video player module is started.
视频播放器模块启动后,调用喜好模块的注册接口注册喜好监听:After the video player module is started, the registration interface of the favorite module is registered to register the favorite monitor:
RegisterFaveriteListener(new VideoPlayerFaveriteListener());RegisterFaveriteListener(new VideoPlayerFaveriteListener());
视频播放器模块按照图15所示,显示和编辑喜好数据。The video player module displays and edits favorite data as shown in FIG.
历史喜好数据可以通过:Historical preference data can be passed:
int currentFaveriteLevel=sqlit.query(“media”,mCurrentFile,“faveritelevel”);Int currentFaveriteLevel=sqlit.query("media",mCurrentFile,"faveritelevel");
的方法获取到,然后根据currentFaveriteLevel的值来确定画实心心和空心心的个数,从而展示给用户喜好情况。The method is obtained, and then the number of hearts and hollow hearts is determined according to the value of currentFaveriteLevel, thereby showing the user's preference.
同时显示喜好控件接受用户点击事件,然后根据用户设置的情况去更新数据库。更新的方法与FaveriteUpdated相似。At the same time, the preference control is displayed to accept the user click event, and then the database is updated according to the situation set by the user. The updated method is similar to FaveriteUpdated.
视频播放器模块同时支持喜好模块发来的广播。喜好模块检测到喜好数据后将发出广播,调用视频播放器模块的FaveriteUpdated函数。这个函数视频播放器模块实现了数据存储。The video player module also supports broadcasts from the favorite module. After the favorite module detects the favorite data, it will issue a broadcast and call the FaveriteUpdated function of the video player module. This function video player module implements data storage.
在上述各实施例中,通过利用摄像头检测笑脸从而实现记录用户喜好,可以更好的优化系统设置,并且可以按照用户喜好进行应用。
In the above embodiments, the system setting can be better optimized by detecting the smile by using the camera to realize the smile, and the application can be applied according to the user's preference.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
如上所述,本发明实施例提供的数据存储方法及装置具有以下有益效果:解决了相关技术中存在的不能根据用户的喜好去存储应用数据的问题,进而达到了依据用户的喜好存储应用数据的效果。
As described above, the data storage method and apparatus provided by the embodiments of the present invention have the following beneficial effects: the problem that the application data cannot be stored according to the user's preference in the related art is solved, and the application data is stored according to the user's preference. effect.
Claims (12)
- 一种数据存储方法,包括:A data storage method comprising:识别到笑脸后,根据识别的所述笑脸获取当前运行的应用对应的应用数据,其中,所述笑脸为满足预定轮廓的人脸图像;After the smile is recognized, the application data corresponding to the currently running application is acquired according to the recognized smile, wherein the smile is a face image that satisfies a predetermined outline;存储所述应用数据。The application data is stored.
- 根据权利要求1所述的方法,其中,在识别到所述笑脸之前,还包括:The method of claim 1, wherein before the smiling face is recognized, the method further comprises:根据预定条件启动用于采集所述笑脸的摄像头。A camera for collecting the smiling face is activated according to a predetermined condition.
- 根据权利要求1所述的方法,其中,在存储所述应用数据之后,还包括:The method according to claim 1, wherein after storing the application data, the method further comprises:显示与存储的所述应用数据对应的应用的应用信息。Application information of an application corresponding to the stored application data is displayed.
- 根据权利要求1所述的方法,其中,在存储所述应用数据之后,还包括:The method according to claim 1, wherein after storing the application data, the method further comprises:当再次在所述应用下识别到笑脸后,更新存储的所述应用数据。The stored application data is updated when the smile is recognized again under the application.
- 根据权利要求3所述方法,其中,显示与存储的所述应用数据对应的应用的应用信息包括:The method of claim 3, wherein displaying application information of the application corresponding to the stored application data comprises:对所述应用的应用信息进行排序;Sorting application information of the application;显示排序后的所述应用信息。The sorted application information is displayed.
- 根据权利要求1至5中任一项所述方法,其中,在存储所述应用数据之后,还包括:The method according to any one of claims 1 to 5, further comprising, after storing the application data,将所述应用对应的应用数据更新为存储的所述应用数据。Updating application data corresponding to the application to the stored application data.
- 一种数据存储装置,包括:A data storage device comprising:获取模块,设置为在识别到笑脸后,根据识别的所述笑脸获取当前运行的应用对应的应用数据,其中,所述笑脸为满足预定轮廓的人脸图像;An acquiring module, configured to: after the smile is recognized, acquire application data corresponding to the currently running application according to the recognized smile face, wherein the smile face is a face image that satisfies a predetermined contour;存储模块,设置为存储所述应用数据。a storage module configured to store the application data.
- 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:启动模块,设置为根据预定条件启动用于采集所述笑脸的摄像头。 The startup module is configured to start a camera for collecting the smiling face according to a predetermined condition.
- 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:显示模块,设置为显示与存储的所述应用数据对应的应用的应用信息。And a display module, configured to display application information of the application corresponding to the stored application data.
- 根据权利要求7所述的装置,其中,还包括:The apparatus according to claim 7, further comprising:第一更新模块,设置为当再次在所述应用下识别到笑脸后,更新存储的所述应用数据。The first update module is configured to update the stored application data after the smile is recognized again under the application.
- 根据权利要求9所述装置,其中,所述显示模块包括:The apparatus according to claim 9, wherein said display module comprises:排序单元,设置为对所述应用的应用信息进行排序;a sorting unit, configured to sort application information of the application;显示单元,设置为显示排序后的所述应用信息。a display unit configured to display the sorted application information.
- 根据权利要求7至11中任一项所述装置,其中,还包括:The apparatus according to any one of claims 7 to 11, further comprising:第二更新模块,设置为将所述应用对应的应用数据更新为存储的所述应用数据。 The second update module is configured to update the application data corresponding to the application to the stored application data.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410657518.2A CN105589898A (en) | 2014-11-17 | 2014-11-17 | Data storage method and device |
CN201410657518.2 | 2014-11-17 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2015154565A1 true WO2015154565A1 (en) | 2015-10-15 |
Family
ID=54287279
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/071032 WO2015154565A1 (en) | 2014-11-17 | 2015-01-19 | Data storage method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105589898A (en) |
WO (1) | WO2015154565A1 (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572539A (en) * | 2010-11-12 | 2012-07-11 | 微软公司 | Automatic passive and anonymous feedback system |
CN103488525A (en) * | 2012-06-08 | 2014-01-01 | 诺基亚公司 | Determination of user preference relevant to scene |
CN103929662A (en) * | 2013-01-16 | 2014-07-16 | 三星电子株式会社 | Electronic Apparatus And Method Of Controlling The Same |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4900739B2 (en) * | 2009-09-04 | 2012-03-21 | カシオ計算機株式会社 | ELECTROPHOTOGRAPH, ITS CONTROL METHOD AND PROGRAM |
CN103207662A (en) * | 2012-01-11 | 2013-07-17 | 联想(北京)有限公司 | Method and device for obtaining physiological characteristic information |
CN103530788A (en) * | 2012-07-02 | 2014-01-22 | 纬创资通股份有限公司 | Multimedia evaluating system, multimedia evaluating device and multimedia evaluating method |
CN103826160A (en) * | 2014-01-09 | 2014-05-28 | 广州三星通信技术研究有限公司 | Method and device for obtaining video information, and method and device for playing video |
-
2014
- 2014-11-17 CN CN201410657518.2A patent/CN105589898A/en not_active Withdrawn
-
2015
- 2015-01-19 WO PCT/CN2015/071032 patent/WO2015154565A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102572539A (en) * | 2010-11-12 | 2012-07-11 | 微软公司 | Automatic passive and anonymous feedback system |
CN103488525A (en) * | 2012-06-08 | 2014-01-01 | 诺基亚公司 | Determination of user preference relevant to scene |
CN103929662A (en) * | 2013-01-16 | 2014-07-16 | 三星电子株式会社 | Electronic Apparatus And Method Of Controlling The Same |
Also Published As
Publication number | Publication date |
---|---|
CN105589898A (en) | 2016-05-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105338409B (en) | Network video preloading method and device | |
CN109492073B (en) | Log search method, log search apparatus, and computer-readable storage medium | |
US20210385506A1 (en) | Method and electronic device for assisting live streaming | |
CN108320744B (en) | Voice processing method and device, electronic equipment and computer readable storage medium | |
KR101656633B1 (en) | Method, device, program and recording medium for back up file | |
CN105933539B (en) | audio playing control method and device and terminal | |
CN106488335A (en) | Live-broadcast control method and device | |
CN105657537A (en) | Video editing method and device | |
CN106095465B (en) | Method and device for setting identity image | |
CN109920418A (en) | Adjust the method and device of wakeup sensitivity | |
CN112261339A (en) | Video communication method, video communication device, electronic equipment and computer-readable storage medium | |
CN104866409A (en) | Method and apparatus for monitoring memory leakage | |
CN107948729B (en) | Rich media processing method and device, storage medium and electronic equipment | |
KR20080051823A (en) | Method and apparatus for collecting information of viewer's concern with digital broadcast data | |
CN106897937A (en) | A kind of method and apparatus for showing social sharing information | |
WO2016026108A1 (en) | Application program switch method, apparatus and electronic terminal | |
EP3276927A1 (en) | Method and apparatus for adjusting handset modes | |
CN109961793B (en) | Method and device for processing voice information | |
KR101787918B1 (en) | Search method, apparatus, program and recording medium | |
US9774919B2 (en) | Automated suggestions and corrections of content clips | |
CN113365099B (en) | Bullet screen issuing method, bullet screen receiving method, bullet screen issuing device, electronic equipment and storage medium | |
US11553019B2 (en) | Method, apparatus, electronic device and storage medium for acquiring programs in live streaming room | |
CN106464971B (en) | Method, system and the medium presented on the display device for detecting media content | |
EP2975566A1 (en) | Service registration updating method, device, server and client side | |
JP2017520877A5 (en) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15777357 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15777357 Country of ref document: EP Kind code of ref document: A1 |