CN113572896B - Two-dimensional code display method based on user behavior model, electronic device and readable storage medium - Google Patents

Two-dimensional code display method based on user behavior model, electronic device and readable storage medium Download PDF

Info

Publication number
CN113572896B
CN113572896B CN202110698161.2A CN202110698161A CN113572896B CN 113572896 B CN113572896 B CN 113572896B CN 202110698161 A CN202110698161 A CN 202110698161A CN 113572896 B CN113572896 B CN 113572896B
Authority
CN
China
Prior art keywords
dimensional code
target
user
behavior model
user behavior
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
CN202110698161.2A
Other languages
Chinese (zh)
Other versions
CN113572896A (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110698161.2A priority Critical patent/CN113572896B/en
Publication of CN113572896A publication Critical patent/CN113572896A/en
Application granted granted Critical
Publication of CN113572896B publication Critical patent/CN113572896B/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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K7/00Methods or arrangements for sensing record carriers, e.g. for reading patterns
    • G06K7/10Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation
    • G06K7/14Methods or arrangements for sensing record carriers, e.g. for reading patterns by electromagnetic radiation, e.g. optical sensing; by corpuscular radiation using light without selection of wavelength, e.g. sensing reflected white light
    • G06K7/1404Methods for optical code recognition
    • G06K7/1408Methods for optical code recognition the method being specifically adapted for the type of code
    • G06K7/14172D bar codes
    • 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
    • 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/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application relates to the technical field of terminals and provides a two-dimensional code display method based on a user behavior model, a user behavior model training method, electronic equipment and a storage medium. The two-dimensional code display method based on the user behavior model comprises the following steps: acquiring position information of a user and time information corresponding to the position information; inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed; and controlling the target two-dimensional code to be displayed on the electronic equipment. By the aid of the method and the device, convenience of user operation can be improved, and two-dimensional code display efficiency is improved.

Description

Two-dimensional code display method based on user behavior model, electronic device and readable storage medium
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a two-dimensional code display method based on a user behavior model, a user behavior model training method, an electronic device, and a storage medium.
Background
A two-dimensional Code (QR Code) is a pattern that is distributed in a plane (two-dimensional direction) by using a certain specific geometric figure and that records data symbol information in black and white alternating manner. The method of scanning the two-dimensional code through the image input device or the photoelectric scanning device has been widely used in daily travel activities, and a user may frequently present the two-dimensional code in a relatively solid scene to realize information automation processing, such as payment for riding a vehicle, payment after shopping, and verification of personal information.
However, the operation path for displaying the two-dimensional code is complex, and the operation requires more complicated steps to obtain the corresponding two-dimensional code, which requires more time and is not efficient in displaying the two-dimensional code. For example, when a user wants to display a two-dimensional code of an application, the user generally clicks an application icon, selects a corresponding menu, and then selects a corresponding function on the menu to display the corresponding two-dimensional code.
Disclosure of Invention
In view of the above, it is desirable to provide a two-dimensional code display method based on a user behavior model, a user behavior model training method, an electronic device, and a storage medium, which can improve convenience of user operations and efficiency of displaying two-dimensional codes.
In a first aspect, the present application provides a two-dimensional code display method based on a user behavior model, which is applied to an electronic device, and the method includes: acquiring position information of a user and time information corresponding to the position information; inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed; and controlling the target two-dimensional code to be displayed on the electronic equipment.
Through the technical scheme, the intention of the user is determined based on the position information of the user and the time information corresponding to the position information, namely the target two-dimensional code is determined, and the target two-dimensional code is displayed on the electronic equipment of the user, so that the convenience of user operation can be improved, and the efficiency of two-dimensional code display is improved.
In a possible implementation manner, the inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed includes: acquiring a motion track corresponding to a user; and inputting the motion track, the position information and the time information into a trained user behavior model, and determining a target two-dimensional code.
By the technical scheme, the motion track, the position information and the time information are input into a trained user behavior model, so that the accuracy of determining the intention of a user can be improved, and the accuracy of determining the target two-dimensional code is improved.
In a possible implementation manner, after the controlling the target two-dimensional code to be displayed on the electronic device, the method further includes: and calculating the display duration of the target two-dimensional code, and stopping displaying the target two-dimensional code if the display duration is greater than or equal to a duration threshold.
Through the technical scheme, whether the target two-dimensional code is stopped to be displayed or not is determined according to the display duration of the target two-dimensional code, so that the energy loss caused by the fact that the target two-dimensional code is always displayed is avoided, meanwhile, the mistaken reading operation caused by the fact that the target two-dimensional code is always displayed is also avoided, and potential safety hazards are reduced.
In one possible implementation, the method further includes: and if the reading operation of the target two-dimensional code is detected, stopping displaying the target two-dimensional code. Through the technical scheme, whether the target two-dimensional code is stopped to be displayed or not is determined according to the reading operation of the user, so that the energy loss caused by the fact that the target two-dimensional code is always displayed is avoided, meanwhile, the mistaken reading operation caused by the fact that the target two-dimensional code is always displayed is also avoided, and the potential safety hazard is reduced.
In one possible implementation manner, the user behavior model comprises a mapping relation among time, position and target events which are established according to a time period;
inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed comprises: matching corresponding target events according to the position information, the time information and the mapping relation among the time, the position and the target events established according to the time period, and determining a target two-dimensional code to be displayed according to the matched target events.
By the technical scheme, the mapping relation among time, position and target events is established according to the time period in the user behavior model establishment, so that the rate of determining the target events is increased, and the efficiency of displaying the two-dimensional code is improved.
In one possible implementation manner, the controlling the target two-dimensional code to be displayed on the electronic device includes: if the target two-dimensional code to be displayed is determined, generating a display prompt corresponding to the target two-dimensional code; and receiving response information of a user to the display prompt, and controlling the target two-dimensional code to be displayed on the electronic equipment according to the response information.
By the technical scheme, whether the target two-dimensional code is controlled to be displayed on the electronic equipment is determined based on the response information of the user to the display prompt, the target two-dimensional code can be prevented from being displayed by mistake, safe users are reduced, and user experience is improved.
In a possible implementation manner, the controlling, according to the response information, the target two-dimensional code to be displayed on the electronic device includes: if the response information is the agreement, displaying the target two-dimensional code on the electronic equipment; and if the response information is refused, not displaying the target two-dimensional code on the electronic equipment. Through the technical scheme, the accuracy of two-dimension code display is improved, and the target two-dimension code is prevented from being displayed by mistake.
In one possible implementation, the method further includes: counting the number of times of refusing response information, and if the number of times of refusing the response information is larger than or equal to a preset number threshold, not generating a display prompt corresponding to the target two-dimensional code after determining the target two-dimensional code to be displayed. Through the technical scheme, the target two-dimensional code is directly displayed after the target two-dimensional code is determined according to the selection of the user, and the two-dimensional code display efficiency can be improved.
In one possible implementation, the method further includes: and if the response information indicates that the rejection times are greater than or equal to a preset time threshold, deleting the user behavior model record corresponding to the rejected target two-dimensional code from the user behavior model library. By the technical scheme, the user behavior model records corresponding to the rejected target two-dimensional codes are deleted from the user behavior model library, so that the situation that the unnecessary data occupy the storage space in the electronic equipment can be avoided, and the management efficiency of the storage space is improved.
In a possible implementation manner, the acquiring the location information of the user includes: acquiring position information of a user based on a global positioning system; and/or obtaining location information of the user based on ultra-wideband technology. Through the technical scheme, the accuracy of obtaining the position information of the user can be improved, and therefore the efficiency of displaying the two-dimensional code is improved.
In a second aspect, an embodiment of the present application provides a user behavior model training method, where the method includes: constructing a user behavior model; acquiring behavior data of a user; and inputting the behavior data into the user behavior model for model training to obtain a trained user behavior model. The trained user behavior model is used for realizing the two-dimensional code display method based on the user behavior model.
By the technical scheme, the user behavior model constructed by the behavior data of the user can be used for accurately determining the corresponding target two-dimensional code based on the position information of the user and the time information corresponding to the position information of the user, so that the accuracy of two-dimensional code display is improved.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a memory and a processor; the memory to store program instructions; the processor is configured to read the program instructions stored in the memory to implement the two-dimensional code display method based on the user behavior model or implement the user behavior model training method.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where computer-readable instructions are stored in the computer-readable storage medium, and when executed by a processor, the two-dimensional code display method based on a user behavior model as described above is implemented, or a user behavior model training method in each of the above method embodiments is implemented.
In addition, for technical effects brought by the third aspect and the fourth aspect, reference may be made to the description related to the methods designed in the foregoing method part, and details are not described herein again.
Drawings
Fig. 1 is a scene schematic diagram of a two-dimensional code display method according to an embodiment of the present disclosure.
Fig. 2 is a scene schematic diagram for displaying a two-dimensional code according to an embodiment of the present application.
Fig. 3 is a flowchart of a user behavior model training method according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a system for constructing a user behavior model according to an embodiment of the present application.
Fig. 5 is a flowchart of a two-dimensional code display method based on a user behavior model according to an embodiment of the present application.
Fig. 6 is a flowchart of a method for displaying a two-dimensional code according to an embodiment of the present disclosure.
Fig. 7 is a flowchart of another method for displaying a two-dimensional code according to an embodiment of the present disclosure.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, the words "exemplary," "or," "for example," etc. are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the words "exemplary," "or," "e.g.," are intended to present relevant concepts in a concrete fashion.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. It should be understood that in this application, "/" means "or" means "unless otherwise indicated. For example, A/B may represent A or B. In the present application, "and/or" is only one kind of association relation describing an associated object, and means that three kinds of relations may exist. For example, a and/or B, may represent: a exists alone, A and B exist simultaneously, and B exists alone. "at least one" means one or more. "plurality" means two or more than two. For example, at least one of a, b, or c, may represent: a, b, c, a and b, a and c, b and c, a, b and c.
The two-dimensional code is a pattern which is distributed on a plane (in two-dimensional direction) according to a certain rule by using a certain specific geometric figure, is black and white and records data symbol information, can be used for representing character numerical value information, and can be automatically identified and read by an image input device or a photoelectric scanning device so as to realize automatic information processing. The two-dimensional code is widely applied in life, and a user can frequently use the corresponding two-dimensional code in a plurality of relatively solidified scenes, for example, the user pays for a bus by showing the bus two-dimensional code corresponding to traffic when taking the bus, and the user performs identity verification by showing the identity two-dimensional code corresponding to identity when entering certain specific places.
However, the operation path of the two-dimensional code required to be displayed on the terminal device is complex, the operation needs complicated operation to obtain the corresponding two-dimensional code, more time is needed, and the two-dimensional code display efficiency is not high. For example, when a user wants to display a two-dimensional code of an application, the user can display the corresponding two-dimensional code only after clicking an application icon, then selecting a menu and then selecting a function on the menu. Therefore, it can often be seen that a user taking a bus stays for a long time at a machine for verifying the two-dimensional code because the two-dimensional code corresponding to the bus is too cumbersome to open, so that the efficiency of the user taking the bus is affected, and meanwhile, people flow congestion may be caused, so that potential safety hazards are caused.
In order to solve the technical problem that the two-dimensional code display efficiency is not high due to the fact that the operation of opening the two-dimensional code by a user is complex and not convenient enough, the embodiment of the application provides a two-dimensional code display method so as to improve the convenience of user operation and improve the two-dimensional code display efficiency.
According to the two-dimensional code display method, the real-time position information and the current time information of the user are obtained, the current time information and the current position information of the user are input into a trained user behavior model to determine the corresponding user behavior intention, the target two-dimensional code to be used is further determined, and the determined target two-dimensional code is displayed on the terminal equipment of the user. Wherein training the user behavior model may comprise: behavior data corresponding to the two-dimension code opening of the user is collected in advance, for example, the type of the two-dimension code opened by the user, the time for opening the two-dimension code and the position of the user are collected. And constructing a user behavior model based on the collected user behavior data, and training the user behavior model based on the user behavior data to obtain a trained user behavior model. The trained user behavior model can determine the corresponding user intention according to the input time information and the input position information, so that the target two-dimensional code is determined. It should be noted that any collection and processing of user data will comply with applicable privacy laws and that the user's personal information should only be collected for legitimate and legitimate purposes. Such data collection/sharing should only occur if user consent or other legal grounds as dictated by applicable law is received.
For example, as shown in fig. 1, the real-time location information of the user is acquired at a scanning gate of a subway station, the current time is eight tenths of a am in beijing, the real-time location information of the user and the current time are input into a trained user behavior model, and it is determined that the user intention is: and taking a subway, determining that the corresponding two-dimensional code is the subway taking two-dimensional code, and displaying the subway taking two-dimensional code on the terminal equipment of a user. As shown in fig. 2, the subway taking two-dimensional code is displayed on the screen of the mobile phone of the user, so that the user can conveniently take a bus by scanning the subway taking two-dimensional code.
The real-time position information and the current time of the user are input into the trained user behavior model, the user intention corresponding to the user is determined, the target two-dimensional code is determined, and the target two-dimensional code is displayed on the terminal equipment of the user. The user can obtain the target two-dimensional code without complicated operation, and the efficiency of displaying the two-dimensional code is improved.
Referring to fig. 3, fig. 3 is a flowchart of a user behavior model training method according to an embodiment of the present disclosure. The method can be applied to different types of electronic devices, and the electronic devices can be mobile phones, tablet computers, desktop computers, laptop computers, handheld computers, notebook computers, ultra-mobile personal computers (UMPCs), netbooks and other electronic devices. The method specifically comprises the following steps.
And S31, constructing a user behavior model.
The user behavior model is constructed, and a model structure needs to be defined, where the user behavior model structure includes preset user behavior parameters, such as time, location, behavior, target event, and corresponding mapping relationship between the parameters, and may be established by the system structural framework shown in fig. 4, and the structural framework diagram shown in fig. 4 is merely an example. In the embodiment of the present application, no limitation is imposed on the model structure of the user behavior model.
Step S32, acquiring the behavior data of the user.
For example, the behavior data of the user may include behavior event data of the user, execution time data corresponding to the behavior event data, and execution place data corresponding to the behavior event data. The behavior event data may include riding data, payment data, authentication data, and the like. The bus taking data can comprise subway taking data, bus taking data and bus taking data; the payment data may include WeChat payment data, payment treasures payment data, bank payment data, and the like.
In some embodiments of the present application, the behavior data of the user may further include behavior trace data corresponding to the behavior event.
The behavior trace may include motion trace data corresponding to the user. The motion trajectory may include a movement direction trajectory corresponding to the user. The movement direction trajectory is used to determine a movement direction corresponding to the user, and for example, it may be determined whether the user exits from a certain location or enters into a certain location according to the movement direction trajectory of the user. The corresponding behavior events of the user entering or leaving a certain place are likely to be different, so the behavior characteristics of the user can be better analyzed by combining the behavior track data of the user. The constructed user behavior model is trained through the behavior track data, so that the accuracy of analysis of the user behavior model can be improved.
In some embodiments of the present application, the behavior data of the user may further include execution weather data corresponding to the behavior event. The dimensionality of the user behavior model for training is enriched through the executed weather data corresponding to the behavior event, the efficiency of training the user behavior model is improved, and meanwhile, the accuracy of determining the user intention by using the trained user behavior model is improved.
And S33, inputting the behavior data into the user behavior model for model training to obtain a trained user behavior model.
In some embodiments of the present application, the obtained behavior data is subjected to data processing, such as noise reduction processing, and a mapping relationship is established by using the processed behavior data as a time period unit in days, weeks, and months. And inputting the processed behavior data and the mapping relation corresponding to the behavior data into the constructed user behavior model for model training to obtain a trained user behavior model, wherein the user behavior model stores a plurality of user behavior model records, and each record comprises the mapping relation among time, position and target events. The trained user behavior model can determine a target event which is intended by the user according to the input time information and the input position information, and the target event can be a certain application automatically called in the mobile phone device and determine that the user intends to use a corresponding target two-dimensional code.
In some embodiments of the present application, the trained user behavior model includes a mapping relationship between time, location, and target event, which is established according to a time period. The time period may include days, weeks, months, etc., without limitation.
The constructed model is trained through the behavior event data of the user, the execution time data corresponding to the behavior event data and the execution place data corresponding to the behavior event data, so that the behavior characteristics corresponding to the user can be better determined, and the identification accuracy of the behavior model of the user is improved.
In some embodiments of the present application, the model data corresponding to the trained user behavior model is stored in a storage space preset by the terminal device. By storing the model data corresponding to the trained user behavior model into the preset storage space of the terminal device, the efficiency of subsequently acquiring the model data is improved, and therefore the efficiency of determining the user intention of the user is improved.
Referring to fig. 4, a schematic structural diagram of a system for building a user behavior model according to an embodiment of the present application is shown. The system architecture may include a kernel Layer, a Hardware Abstraction Layer (hall) Layer, a framework Layer, and a Service Layer.
The kernel layer is used for providing core System services and acquiring execution location data corresponding to a behavior event of a user, and the kernel layer can comprise a Global Positioning System (GPS) Driver module and/or an Ultra wide band Driver (UWB Driver) module, wherein the GPS is a high-precision radio navigation Positioning System based on an artificial earth satellite and can provide accurate geographic position, vehicle speed and accurate time information in any place and near space of the world; UWB is an ultra wide band technology that performs positioning by measuring differences in transmission delay between different base stations and mobile terminals. UWB can be applied to position tracking and navigation of stationary or moving objects and people indoors and can provide very precise positioning accuracy. The GPS Driver module is used for driving the GPS kernel layer, and the UWB Driver module is used for driving the UWB kernel layer. In practical applications, the kernel layer may include more other positioning systems to obtain the location data, and is not limited to the above-mentioned exemplary positioning systems.
The hal layer is used for controlling hardware to execute a specified action, and can be used for processing execution place data acquired by the kernel layer and acquiring position information, for example, the hal layer can be used for storing a library file packaged at the bottom layer of a GPS (global positioning system), such as a library file libgps.so; the hal layer may also include UWB under-packaged library files, such as library file libowb. The library file can be used for packaging an interface corresponding to the bottom layer, and the interactive calling with the same frame layer is realized through the interface corresponding to the bottom layer, for example, the interface corresponding to the bottom layer of the GPS can be packaged through the library file Libgps.so; so can encapsulate the corresponding interface of UWB bottom layer through the library file Libuwb.
The frame layer may be configured to further process the location information transmitted by the hall layer to obtain location information data, and the frame layer may include a location information service (LMS), and the LMS may be configured to call and process the location data.
The Service layer can be used for obtaining the motion trail according to the position information data uploaded by the frame layer. The Service layer is also used for carrying out model training according to the motion trail, the behavior event data of the user and the execution time data corresponding to the behavior event.
The two-dimensional code display method provided by the embodiment of the application can be applied to terminal equipment, and the terminal equipment can include electronic equipment with a display screen, such as a mobile phone, a tablet personal computer (tablet personal computer), a laptop computer (laptop computer), a digital camera, a personal digital assistant (PDA for short), a navigation device, a Mobile Internet Device (MID), a wearable device (webable device), an intelligent watch, an intelligent bracelet and the like. Of course, in the following embodiments, the specific form of the terminal device is not limited at all. The system that the terminal device may be equipped with may include an IOS, an Android, a Microsoft, a Linux, or other operating systems, and the like, which is not limited in this embodiment.
Referring to fig. 5, fig. 5 is a flowchart of a two-dimensional code display method based on a user behavior model according to an embodiment of the present application. The method comprises the following steps:
step S51, acquiring the position information of the user and the time information corresponding to the position information.
For example, the location information of the user may be acquired based on Global Positioning System (GPS) technology and/or Ultra Wide Band (UWB) technology. The introduction of the GPS technology and the UWB technology can be referred to the description related to fig. 4 above, and will not be described herein again.
And S52, inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed.
Inputting the position information and the time information into a trained user behavior model, matching the time information with the user behavior model according to the position information and the time information in a time period, and determining a target event corresponding to the position information and the time information, wherein the target event is a target two-dimensional code corresponding to a target event generated by starting corresponding applications such as a Payment treasure, a subway tunnel and a health treasure in the background. The target two-dimensional code may include a payment two-dimensional code, a ride two-dimensional code, a personal identification two-dimensional code, and the like.
When the input time and place information are matched with a plurality of applications corresponding to target events with different time periods in the user behavior model, after matching is carried out according to period sections (days, weeks and months), two-dimensional code display is carried out according to the high priority principle of the period periods, and the users refuse to display one and then display the other; the corresponding motion trail of the user can be further obtained; and determining the application to be called and the target two-dimensional code by combining the motion track.
And S53, controlling the target two-dimensional code to be displayed on the electronic equipment.
For example, a display area where the two-dimensional code is displayed may be determined in the terminal device according to factory settings or user-defined requirements, and if the target two-dimensional code is determined, the target two-dimensional code is controlled to be displayed in the display area. For example, a display area where a desktop component (widget) of clock weather information is located is determined as a display area of a two-dimensional code display.
In some embodiments of the present application, after controlling the target two-dimensional code to be displayed, the method further includes: and calculating the display duration of the target two-dimensional code, and stopping displaying the target two-dimensional code if the display duration is greater than or equal to a duration threshold.
For example, a display area corresponding to the desktop component of the clock weather information is determined as a display area for displaying the two-dimensional code, and after the target two-dimensional code is determined, the target two-dimensional code is displayed on the display area corresponding to the desktop component of the clock weather information. And calculating the display duration of the target two-dimensional code, and stopping displaying the target two-dimensional code if the target two-dimensional code is not read within a preset time interval. For example, the display time of the target two-dimensional code is calculated, if the display time is longer than or equal to a preset time threshold, the target two-dimensional code is stopped to be displayed, and the desktop component of the clock weather information is displayed again.
Whether the target two-dimensional code is stopped to be displayed or not is determined by calculating the display duration of the target two-dimensional code, so that the energy loss caused by the fact that the target two-dimensional code is displayed all the time is avoided, meanwhile, the mistaken reading operation caused by the fact that the target two-dimensional code is displayed all the time is also avoided, and the potential safety hazard is reduced.
In some embodiments of the present application, after controlling the target two-dimensional code to be displayed, the method further includes: and if the external equipment is detected to read the target two-dimensional code, stopping displaying the target two-dimensional code.
For example, a display area corresponding to the desktop component of the clock weather information is determined as a display area for displaying the two-dimensional code, and after the target two-dimensional code is determined, the target two-dimensional code is displayed on the display area corresponding to the desktop component of the clock weather information. And if the user finishes the reading operation of the target two-dimensional code, stopping displaying the target two-dimensional code. For example, if it is detected that the external device reads the target two-dimensional code, the display of the target two-dimensional code is stopped, and the desktop component of the clock weather information is redisplayed.
Whether the target two-dimensional code is stopped being displayed or not is determined by detecting the reading operation of a user, so that the energy loss caused by the fact that the target two-dimensional code is always displayed is avoided, meanwhile, the mistaken reading operation caused by the fact that the target two-dimensional code is always displayed is also avoided, and the potential safety hazard is reduced.
In some embodiments of the present application, after determining the target two-dimensional code, the terminal device may generate a display prompt indicating whether to display the two-dimensional code, and determine whether to control the target two-dimensional code to be displayed according to response information of the user on whether to display the display prompt indicating whether to display the two-dimensional code, for example, determine whether to execute step S53. If the response information of the user to the prompt of whether the two-dimensional code is displayed is refused, determining not to display the target two-dimensional code, namely not executing the step S53; if the user agrees with the response information of the prompt of whether the two-dimensional code is displayed, it is determined that the target two-dimensional code needs to be displayed, and step S53 is executed.
For example, if the user agrees to the response information of the prompt indicating whether to display the two-dimensional code, after step S52 is executed to determine the target two-dimensional code, the prompt indicating whether to display the two-dimensional code is not generated, and the target two-dimensional code is directly controlled to be displayed, that is, step S53 is executed.
By recording the selection of the user and directly displaying the target two-dimensional code after determining the target two-dimensional code based on the selection of the user, the efficiency of displaying the two-dimensional code can be improved.
Illustratively, if the response information of the user to the prompt of whether the two-dimensional code is displayed is rejection, the corresponding rejection times of the user are recorded. If the rejection times of the user are larger than or equal to the rejection time threshold, no prompt for displaying the two-dimensional code is generated after the target two-dimensional code is determined, and further, user behavior model records corresponding to the target two-dimensional code rejected many times can be deleted from the user behavior model library. By recording the rejection times of the user, if the rejection times corresponding to the user is greater than or equal to the rejection time threshold, it is determined that the user does not accept the two-dimensional code display, so that the target two-dimensional code is no longer displayed on the electronic device, that is, step S53 is not executed, and a prompt of whether to display the two-dimensional code is not generated, so that the user experience is improved.
Illustratively, if it is determined that the user has used the displayed target two-dimensional code, the display of the target two-dimensional code is stopped.
In some embodiments of the present application, inputting the position information and the time information into a trained user behavior model, and determining the target two-dimensional code may include: acquiring a motion track corresponding to a user; and inputting the motion track, the position information and the time information into a trained user behavior model, and determining a target two-dimensional code.
The motion trail can be determined based on a spiral sensor and/or an acceleration sensor in the terminal device or based on the corresponding position change situation of the user. The motion trajectory may include a movement direction trajectory corresponding to the user.
For example, a user cannot pay by scanning a code when entering the supermarket, pay when leaving the supermarket, and can identify whether the user enters the supermarket or leaves the supermarket by determining the motion track corresponding to the user, so that whether the user needs to display a payment two-dimensional code to pay is judged.
By inputting the motion track, the position information and the time information into a trained user behavior model, the accuracy of determining the intention of the user can be improved, and therefore the accuracy of determining the target two-dimensional code is improved.
Referring to fig. 6, fig. 6 is a flowchart of a method for displaying a two-dimensional code according to an embodiment of the present disclosure. As shown in fig. 6, the data recorded in the pre-trained user behavior model includes: a user A, from Monday to Friday, 8-00 in the morning, 30 minutes, 9-10 in the evening; inputting a trained user behavior model by using position information 'Beijing subway station B', current time '8 morning'. And starting the desktop card to respond, displaying the two-dimension code on the desktop card, and displaying the riding two-dimension code. For example, the two-dimensional code of the passenger car can be pushed to the desktop card within a preset range of the gate position of the subway station for two-dimensional code display, for example, the two-dimensional code of the passenger car can be pushed to the desktop card within a range of 5 meters of the gate position of the subway station.
Referring to fig. 7, a flowchart of another method for displaying a two-dimensional code according to an embodiment of the present application is shown. As shown in fig. 7, the data recorded in the pre-trained user behavior model includes: a user B uses a payment two-dimensional code to shop in a mall B, if the position information of the user obtained based on UWB positioning is the mall B and the current time is Saturday, the motion track corresponding to the user is determined to be the departure from the mall B through the position change information; inputting the position information 'market B' of the user, the current time 'Saturday' and the motion track 'leaving market B' corresponding to the user into the trained user behavior model, determining that the intention corresponding to the user is to pay by using the payment two-dimensional code, and determining that the target two-dimensional code is the payment two-dimensional code. And starting the desktop card to respond, displaying the two-dimensional code on the desktop card, and displaying the payment two-dimensional code. For example, the two-dimensional payment code can be pushed to the desktop card within a preset range of the cash register for two-dimensional display, for example, the two-dimensional payment code can be pushed to the desktop card within a range of 2 meters from the cash register.
Fig. 8 is a schematic structural diagram of an electronic device with a screen according to an embodiment of the present application. Referring to fig. 8, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a Universal Serial Bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, a Subscriber Identification Module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments of the present application, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
In some embodiments of the present application, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (I2C) interface, an integrated circuit built-in audio (I2S) interface, a Pulse Code Modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a Mobile Industry Processor Interface (MIPI), a general-purpose input/output (GPIO) interface, a Subscriber Identity Module (SIM) interface, and/or a Universal Serial Bus (USB) interface, etc.
It should be understood that the connection relationship between the modules according to the embodiment of the present invention is only illustrative, and is not limited to the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection manners or a combination of multiple interface connection manners in the above embodiments.
The charging management module 140 is configured to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive a wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device 100 through the power management module 141 while charging the battery 142.
The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance), etc. In other embodiments, the power management module 141 may be disposed in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments of the present application, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments of the present application, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then passes the demodulated low frequency baseband signal to a baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and then transferred to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments of the present application, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be provided in the same device as the mobile communication module 150 or other functional modules, independent of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), global Navigation Satellite System (GNSS), frequency Modulation (FM), near Field Communication (NFC), infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments of the present application, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150 and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou satellite navigation system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments of the present application, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement a shooting function through the ISP, the camera 193, the video codec, the GPU, the display 194, the application processor, and the like.
The ISP is used to process the data fed back by the camera 193. For example, when a user takes a picture, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, an optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and converting into an image visible to the naked eye. The ISP can also carry out algorithm optimization on the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments of the present application, the ISP may be provided in camera 193.
The camera 193 is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing element converts the optical signal into an electrical signal, which is then passed to the ISP where it is converted into a digital image signal. And the ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into image signal in standard RGB, YUV and other formats. In some embodiments of the present application, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The digital signal processor is used for processing digital signals, and can process digital image signals and other digital signals. For example, when the electronic device 100 selects a frequency bin, the digital signal processor is used to perform fourier transform or the like on the frequency bin energy.
Video codecs are used to compress or decompress digital video. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record video in a variety of encoding formats, such as: moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, and the like.
The NPU is a neural-network (NN) computing processor that processes input information quickly by using a biological neural network structure, for example, by using a transfer mode between neurons of a human brain, and can also learn by itself continuously. Applications such as intelligent recognition of the electronic device 100 can be realized through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
The internal memory 121 may include one or more Random Access Memories (RAMs) and one or more non-volatile memories (NVMs).
The random access memory may include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous dynamic random-access memory (DDR SDRAM), such as fifth generation DDR SDRAM generally referred to as DDR5 SDRAM, and the like;
the nonvolatile memory may include a magnetic disk storage device, a flash memory (flash memory).
The electronic device 100 may implement audio functions via the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments of the present application, the audio module 170 may be disposed in the processor 110, or some functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also called a "horn", is used to convert the audio electrical signal into an acoustic signal. The electronic apparatus 100 can listen to music through the speaker 170A or listen to a hands-free call.
The receiver 170B, also called "earpiece", is used to convert the electrical audio signal into a sound signal. When the electronic apparatus 100 receives a call or voice information, it can receive voice by placing the receiver 170B close to the ear of the person.
The microphone 170C, also referred to as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending voice information, the user can input a voice signal to the microphone 170C by uttering a voice signal close to the microphone 170C through the mouth of the user. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C to achieve a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may further include three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, perform directional recording, and so on.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be the USB interface 130, or may be an Open Mobile Terminal Platform (OMTP) standard interface of 3.5mm, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments of the present application, the pressure sensor 180A may be disposed on the display screen 194. The pressure sensor 180A can be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 194, the electronic apparatus 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic apparatus 100 may also calculate the touched position from the detection signal of the pressure sensor 180A. In some embodiments of the present application, touch operations that act on the same touch position but have different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The gyro sensor 180B may be used to determine the motion attitude of the electronic device 100. In some embodiments of the present application, the angular velocity of the electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by the gyroscope sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects a shake angle of the electronic device 100, calculates a distance to be compensated for by the lens module according to the shake angle, and allows the lens to counteract the shake of the electronic device 100 through a reverse movement, thereby achieving anti-shake. The gyroscope sensor 180B may also be used for navigation, somatosensory gaming scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments of the present application, the electronic device 100 calculates altitude, aiding positioning and navigation, from the barometric pressure value measured by the barometric pressure sensor 180C.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip holster using the magnetic sensor 180D. In some embodiments of the application, when the electronic device 100 is a flip phone, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the opening and closing state of the leather sheath or the opening and closing state of the flip cover, the automatic unlocking of the flip cover is set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity can be detected when the electronic device 100 is stationary. The method can also be used for identifying the posture of the electronic equipment 100, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments of the present application, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focus when shooting a scene.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light to the outside through the light emitting diode. The electronic device 100 detects infrared reflected light from a nearby object using a photodiode. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there are no objects near the electronic device 100. The electronic device 100 can utilize the proximity sensor 180G to detect that the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in a holster mode, a pocket mode automatically unlocks and locks the screen.
The ambient light sensor 180L is used to sense the ambient light level. Electronic device 100 may adaptively adjust the brightness of display screen 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust the white balance when taking a picture. The ambient light sensor 180L may also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint characteristics to unlock a fingerprint, access an application lock, photograph a fingerprint, answer an incoming call with a fingerprint, and so on.
The temperature sensor 180J is used to detect temperature. In some embodiments of the present application, the electronic device 100 executes a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 performs a reduction in performance of a processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, the electronic device 100 heats the battery 142 when the temperature is below another threshold to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than a further threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown due to low temperature.
The touch sensor 180K is also called a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation acting thereon or nearby. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 194. In other embodiments, the touch sensor 180K may be disposed on a surface of the electronic device 100, different from the position of the display screen 194.
The bone conduction sensor 180M may acquire a vibration signal. In some embodiments of the present application, the bone conduction sensor 180M may acquire a vibration signal of the human voice vibrating the bone mass. The bone conduction sensor 180M may also contact the human pulse to receive the blood pressure pulsation signal. In some embodiments of the present application, the bone conduction sensor 180M may also be disposed in a headset, integrated into a bone conduction headset. The audio module 170 may analyze a voice signal based on the vibration signal of the bone block vibrated by the sound part obtained by the bone conduction sensor 180M, so as to implement a voice function. The application processor can analyze heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M, so as to realize the heart rate detection function.
The keys 190 include a power-on key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 100 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration cues, as well as for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 194. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 192 may be an indicator light that may be used to indicate a state of charge, a change in charge, or a message, missed call, notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 may be inserted into multiple frame cards simultaneously. The types of the multi-frame cards can be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments of the present application, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
The present embodiment further provides a computer storage medium, where a computer instruction is stored, and when the computer instruction runs on the electronic device 100, the electronic device 100 executes the above related method steps to implement the two-dimensional code display method based on the user behavior model in the above embodiments or implement the user behavior model training method in each of the above method embodiments.
The present embodiment further provides a computer program product, which when running on a computer, causes the computer to execute the above related steps, so as to implement the two-dimensional code display method based on the user behavior model in the above embodiments or implement the user behavior model training method in each of the above method embodiments.
In addition, embodiments of the present application also provide an apparatus, which may be specifically a chip, a component or a module, and may include a processor and a memory connected to each other; when the device runs, the processor can execute the computer execution instructions stored in the memory, so that the chip executes the two-dimensional code display method based on the user behavior model in the above method embodiments or executes the user behavior model training method in the above method embodiments.
The electronic device 100, the computer storage medium, the computer program product, or the chip provided in this embodiment are all configured to execute the corresponding methods provided above, so that the beneficial effects achieved by the electronic device may refer to the beneficial effects in the corresponding methods provided above, and are not described herein again.
Through the description of the foregoing embodiments, it will be clear to those skilled in the art that, for convenience and simplicity of description, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules as needed, that is, the internal structure of the apparatus may be divided into different functional modules to complete all or part of the above described functions.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the module or unit is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another device, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, that is, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that the above embodiments are only used for illustrating the technical solutions of the present application and not for limiting, and although the present application is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made on the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application.

Claims (9)

1. A two-dimensional code display method based on a user behavior model is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring position information of a user and time information corresponding to the position information;
inputting the position information and the time information into a pre-trained user behavior model, and determining a target two-dimensional code to be displayed, wherein the user behavior model comprises a mapping relation among time, position and a target event which are established according to a time period;
controlling the target two-dimensional code to be displayed on a display area where a target desktop component is located in the electronic equipment, and stopping displaying the target desktop component;
if the external equipment is detected to read the target two-dimensional code, stopping displaying the target two-dimensional code, and redisplaying the target desktop component on the display area;
the step of inputting the position information and the time information into a pre-trained user behavior model, wherein the step of determining a target two-dimensional code to be displayed comprises the following steps: matching corresponding target events according to the position information, the time information and the mapping relation among the time, the position and the target events established according to the time period, and determining a target two-dimensional code to be displayed according to the matched target events.
2. The two-dimensional code display method according to claim 1, wherein the inputting the position information and the time information into a pre-trained user behavior model, and the determining of the target two-dimensional code to be displayed comprises:
acquiring a motion track corresponding to a user;
and inputting the motion track, the position information and the time information into a trained user behavior model, and determining a target two-dimensional code.
3. The two-dimensional code display method according to claim 1, wherein after the controlling the target two-dimensional code to be displayed on the electronic device, the method further comprises:
and calculating the display duration of the target two-dimensional code, stopping displaying the target two-dimensional code if the display duration is greater than or equal to a duration threshold, and redisplaying the target desktop component on the display area.
4. The two-dimensional code display method according to claim 1, wherein the controlling of the target two-dimensional code to be displayed on the electronic device includes:
if the target two-dimensional code to be displayed is determined, generating a display prompt corresponding to the target two-dimensional code;
receiving response information of a user to the display prompt;
if the response information is agreement, displaying the target two-dimensional code on the electronic equipment;
and if the response information is refused, not displaying the target two-dimensional code on the electronic equipment.
5. The two-dimensional code display method according to claim 4, further comprising:
counting the times of refusal of the response information, and deleting the user behavior model record corresponding to the refused target two-dimensional code from the user behavior model library if the times of refusal of the response information is greater than or equal to a preset time threshold.
6. The two-dimensional code display method according to claim 1, wherein the acquiring the position information of the user includes:
acquiring position information of a user based on a global positioning system; and/or
And acquiring the position information of the user based on the ultra-wideband technology.
7. A method for training a user behavior model, the method comprising:
constructing a user behavior model;
acquiring behavior data of a user;
inputting the behavior data into the user behavior model for model training to obtain a trained user behavior model;
the trained user behavior model is used for realizing the two-dimensional code display method according to any one of claims 1 to 6.
8. An electronic device, comprising a memory and a processor;
the memory to store program instructions;
the processor is configured to read the program instructions stored in the memory to implement the two-dimensional code display method according to any one of claims 1 to 6.
9. A computer-readable storage medium, wherein computer-readable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the two-dimensional code display method according to any one of claims 1 to 6.
CN202110698161.2A 2021-06-23 2021-06-23 Two-dimensional code display method based on user behavior model, electronic device and readable storage medium Active CN113572896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110698161.2A CN113572896B (en) 2021-06-23 2021-06-23 Two-dimensional code display method based on user behavior model, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110698161.2A CN113572896B (en) 2021-06-23 2021-06-23 Two-dimensional code display method based on user behavior model, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN113572896A CN113572896A (en) 2021-10-29
CN113572896B true CN113572896B (en) 2023-01-24

Family

ID=78162726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110698161.2A Active CN113572896B (en) 2021-06-23 2021-06-23 Two-dimensional code display method based on user behavior model, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN113572896B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116415951A (en) * 2021-12-28 2023-07-11 荣耀终端有限公司 Method for displaying two-dimensional code and electronic equipment
US20240127218A1 (en) * 2021-12-28 2024-04-18 Honor Device Co., Ltd. Method for Displaying Two-Dimensional Code and Electronic Device
CN116055631B (en) * 2022-06-22 2023-11-07 荣耀终端有限公司 Code scanning prompt method and related electronic equipment
CN114879879B (en) * 2022-07-07 2022-09-27 荣耀终端有限公司 Method for displaying health code, electronic equipment and storage medium
CN116561437A (en) * 2023-07-10 2023-08-08 荣耀终端有限公司 User behavior prediction method, terminal equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347079A (en) * 2013-07-08 2013-10-09 惠州Tcl移动通信有限公司 Method and mobile device for schedule event synchronization
WO2015035812A1 (en) * 2013-09-16 2015-03-19 中兴通讯股份有限公司 Position tracking method and terminal
CN106384146A (en) * 2016-09-23 2017-02-08 北京华大智宝电子系统有限公司 Financial IC card, payment system and payment method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9477995B2 (en) * 2012-03-04 2016-10-25 Quick Check Ltd. System, device, and method of electronic payment
CN106875178A (en) * 2017-01-11 2017-06-20 深圳市金立通信设备有限公司 A kind of electric paying method and terminal
CN108122105A (en) * 2017-12-21 2018-06-05 维沃移动通信有限公司 A kind of method of payment and mobile terminal
CN110633773B (en) * 2018-06-22 2022-04-12 北京京东尚科信息技术有限公司 Two-dimensional code generation method and device for terminal equipment
CN110022409A (en) * 2019-04-16 2019-07-16 维沃移动通信有限公司 A kind of terminal control method and mobile terminal
CN111275745B (en) * 2020-03-23 2023-07-11 中国建设银行股份有限公司 Method and device for generating track image in customer banking website

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103347079A (en) * 2013-07-08 2013-10-09 惠州Tcl移动通信有限公司 Method and mobile device for schedule event synchronization
WO2015035812A1 (en) * 2013-09-16 2015-03-19 中兴通讯股份有限公司 Position tracking method and terminal
CN106384146A (en) * 2016-09-23 2017-02-08 北京华大智宝电子系统有限公司 Financial IC card, payment system and payment method

Also Published As

Publication number Publication date
CN113572896A (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN113572896B (en) Two-dimensional code display method based on user behavior model, electronic device and readable storage medium
CN111434129B (en) Method for controlling express cabinet based on express message and electronic equipment
WO2020177619A1 (en) Method, device and apparatus for providing reminder to charge terminal, and storage medium
CN110506416A (en) A kind of method and terminal of terminal switching camera
CN111742539B (en) Voice control command generation method and terminal
CN110401767B (en) Information processing method and apparatus
WO2020088633A1 (en) Payment method, device, and user equipment unit
CN113542580B (en) Method and device for removing light spots of glasses and electronic equipment
CN110742580A (en) Sleep state identification method and device
CN111510626A (en) Image synthesis method and related device
CN111147667A (en) Screen-off control method and electronic equipment
CN110138999B (en) Certificate scanning method and device for mobile terminal
CN114880251A (en) Access method and access device of storage unit and terminal equipment
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
CN112272191A (en) Data transfer method and related device
CN111886849B (en) Information transmission method and electronic equipment
CN111586236A (en) Electronic equipment marking method and device, computer readable medium and electronic equipment
CN113918003A (en) Method and device for detecting time length of skin contacting screen and electronic equipment
CN113391735A (en) Display form adjusting method and device, electronic equipment and storage medium
CN113364067B (en) Charging precision calibration method and electronic equipment
CN113129636B (en) Vehicle information pushing method and device, user account server and user equipment
CN114006976B (en) Interface display method and terminal equipment
WO2023109636A1 (en) Application card display method and apparatus, terminal device, and readable storage medium
CN111026285B (en) Method for adjusting pressure threshold and electronic equipment
CN114093391A (en) Abnormal signal filtering method and device

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