CN116033343B - Card display method and electronic equipment - Google Patents

Card display method and electronic equipment Download PDF

Info

Publication number
CN116033343B
CN116033343B CN202210601099.5A CN202210601099A CN116033343B CN 116033343 B CN116033343 B CN 116033343B CN 202210601099 A CN202210601099 A CN 202210601099A CN 116033343 B CN116033343 B CN 116033343B
Authority
CN
China
Prior art keywords
user
geofence
information
electronic device
card
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
CN202210601099.5A
Other languages
Chinese (zh)
Other versions
CN116033343A (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 CN202210601099.5A priority Critical patent/CN116033343B/en
Publication of CN116033343A publication Critical patent/CN116033343A/en
Application granted granted Critical
Publication of CN116033343B publication Critical patent/CN116033343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Navigation (AREA)

Abstract

The embodiment of the application provides a card display method and electronic equipment, and relates to the technical field of intelligent terminals. In the scheme of the application, when the electronic equipment enters the geofence range, the electronic equipment can judge whether the user has the intention of using the two-dimension code currently according to the historical behavior habit of the user. If the user has the intention of using the two-dimensional code, the electronic equipment automatically ejects the card. If the user does not have the intention to use the two-dimensional code, the electronic device does not eject the card. Therefore, the card is prevented from being ejected by mistake when the user does not have the intention of using the two-dimension code, the accuracy of ejecting the card by the electronic equipment is improved, and the user can conveniently and directly use the two-dimension code corresponding to the card to ride when the user has the intention of using the two-dimension code, for example, the subway ride code is used for entering the station to sweep the code or the subway ride code is used for exiting the station to sweep the code.

Description

Card display method and electronic equipment
Technical Field
The application relates to the field of intelligent terminals, in particular to a card display method and electronic equipment.
Background
Geofencing (Geo-fencing) is the use of a virtual fence to enclose a bounded geographic area. The closer the geographic area indicated by the geofence is to the location area of the real scene, the more accurate the indication of the real scene.
Currently, the geofences in electronic devices such as mobile phones are preset by application developers or mobile phone service providers. When the user carries the handset into a geographic area indicated by some geofence, the handset automatically displays some messages. For example, when a user arrives at a subway station, the mobile phone can automatically pop up the subway card, and the user can quickly sweep codes based on the subway card and enter the station to take a bus, so that the riding efficiency of the user is improved.
However, in some cases, the user located in the geofence may not need to ride the car, but the mobile phone may still pop up the subway card by mistake, thereby reducing the accuracy of displaying the subway card and affecting the user experience.
Disclosure of Invention
The application provides a card display method and electronic equipment, which solve the problem of lower accuracy of displaying cards and improve the use experience of users.
In order to achieve the above purpose, the application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides a method for displaying a card. The method comprises the following steps:
acquiring current position information of the electronic equipment, wherein the current position information is used for indicating the current geographic position of the electronic equipment;
Determining, from the current location information, that the electronic device enters a first geofence;
acquiring intention information according to the current position information, the current time information of the electronic equipment and the historical behavior information of the user, wherein the intention information is used for indicating whether the user has intention of using the two-dimensional code in the first geofence;
displaying a target card if the intention information indicates that the user has an intention to use the two-dimensional code within the first geofence; the target card is used for triggering and displaying the two-dimensional code, or the target card comprises the two-dimensional code.
It should be appreciated that when determining from the location information of the electronic device that the user entered the geofence, the user may or may not have an intent to use the two-dimensional code within the geofence. If the user is riding in the fixed time and the fixed place frequently, the current position information, the current time information and the historical behavior information have similarity and consistency, so that the intention of the user for using the two-dimensional code in the current position and the current place can be accurately estimated by utilizing the current position information, the current time information and the historical behavior information. When the user has the intention of using the two-dimension code, the card is automatically ejected, so that the accuracy of ejecting the card is improved, and the user can conveniently and directly use the two-dimension code corresponding to the card when the user has the intention of using the two-dimension code, such as using subway riding code to scan the code at the station or using the code at the station to scan the code at the station.
In one possible implementation, after the intent information is obtained, the method further includes:
the target card is displayed if the intent information indicates an uncertainty of whether the user has an intent to use the two-dimensional code within the first geofence and the electronic device is determined to enter the second geofence based on the location information. Wherein the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence.
It should be appreciated that at some point the user's intent to use the two-dimensional code may not be clear, and there is a possibility of misjudgment if the card is ejected or not ejected. At this time, by judging whether the user is located in a specific sub-area of the geofence, for example, in the vicinity of the gate of the subway station, the accuracy of ejecting the card is further improved.
In one possible implementation, after the intent information is obtained, the method further includes:
in the event that the intent information indicates an uncertainty as to whether the user has an intent to use the two-dimensional code within the first geofence, and it is determined that the electronic device has not entered the second geofence based on the location information, it is determined that the target card is not displayed. Wherein the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence.
It should be appreciated that when the user's intent to use the two-dimensional code is not clear, if it is determined by further judgment that the user is not located within a specified sub-area of the geofence, such as the user merely walks from the vicinity of the subway station, the card need not be displayed, thereby avoiding misejection of the card.
In one possible implementation, after the intent information is obtained, the method further includes:
in the event that the intent information indicates that the user does not intend to use the two-dimensional code within the first geofence, it is determined that the target card is not displayed.
It will be appreciated that when the user is determined to enter the geofence based on the location information of the electronic device, if the user does not have an intent to use the two-dimensional code, then the card need not be displayed, thereby avoiding misejection of the card.
In one possible implementation, the historical behavior information includes historical location information of the electronic device and historical time information of the electronic device when a historical behavior event occurs, the historical behavior event being an event associated with using the two-dimensional code.
In one possible implementation, the historical behavioral event includes at least one of:
an event that the user enters the first geofence;
the user triggers an event for displaying the two-dimensional code;
The user holds the two-dimensional code to sweep the code;
an event that a user begins riding;
the user ends the event of riding.
It should be understood that the above event information is related to code scanning riding, and the accuracy of the estimated result can be better improved by acquiring the position and time of the electronic device when the events occur.
In one possible implementation, obtaining the intention information according to the current location information, the current time information, and the historical behavior information of the user includes:
and inputting the target information into a preset model to obtain an output result, wherein the output result comprises the intention information. The preset model is obtained through training according to historical behavior information.
In one possible implementation, the method further includes:
processing the historical behavior information to obtain a training sample;
inputting the training sample into a preset model to obtain a pre-estimated result;
comparing the estimated result with the expected result;
and adjusting parameters of the preset model according to the comparison result to obtain the trained preset model.
It should be appreciated that using the historical behavior information as a training sample, a pre-set model may be generated.
In one possible implementation, the historical behavior information is processed, including at least one of:
Deleting repeated behavior information in the historical behavior information;
dividing each site according to site information indicated by the historical behavior information;
and carrying out user behavior enhancement processing on the historical behavior information, wherein the user behavior enhancement processing is used for acquiring behavior information related to the historical behavior event.
It will be appreciated that after the historical behavioral information of the user is obtained, such information may not be suitable for direct training and may therefore be preprocessed. For example, by deleting repeated behavior information, the number of training samples can be reduced, and training efficiency can be improved. For another example, by dividing the stations, the historical behavior information of the stations outside the initial station and the final station can be removed, and only the historical behavior information of the station to be scanned is reserved, so that the training precision is improved. For another example, user behavior information of a period of time before and after the code scanning moment is acquired, so that user behavior is enhanced, and training effect is improved.
In one possible implementation, after displaying the target card, the method further includes:
re-acquiring the position information of the electronic equipment;
in the event that it is determined that the electronic device leaves the first geofence based on the retrieved location information, the display of the target card is canceled.
It will be appreciated that the location of the electronic device may change over time. When the electronic equipment leaves the geofence, the user is proved to be unnecessary to ride, so that the influence of continuously displaying the card on the user is avoided by canceling the displayed card, and the using habit of the user is also more met.
In one possible implementation, the two-dimensional code is used to characterize the user identity, such as the two-dimensional code being a ride code, a travel code, a health code, or the like.
In one possible implementation, the first geofence is used to indicate a geographic area containing a subway station, and the ride is a subway ride.
In a second aspect, the present application provides a card display device comprising means/modules for performing the method of the first aspect described above. The apparatus may correspond to performing the method described in the first aspect, and the relevant descriptions of the units/modules in the apparatus are referred to the description of the first aspect, which is omitted herein for brevity.
In a third aspect, there is provided an electronic device comprising a processor coupled to a memory for executing a computer program or instructions stored in the memory to cause the electronic device to implement a method of displaying a card as in any of the first aspects.
In a fourth aspect, there is provided a chip coupled to a memory for reading and executing a computer program stored in the memory to implement the method of displaying a card as in any of the first aspects.
In a fifth aspect, there is provided a computer readable storage medium storing a computer program which, when run on an electronic device, causes the electronic device to perform the method of displaying a card as in any one of the first aspects.
In a sixth aspect, there is provided a computer program product for, when run on a computer, causing the computer to perform the method of displaying a card as in any of the first aspects.
It will be appreciated that the advantages of the second to sixth aspects may be found in the relevant description of the first aspect, and are not described here again.
Drawings
Fig. 1 is a schematic view of a scene of a misejecting card according to an embodiment of the present application;
FIG. 2 is a schematic diagram of another scenario in which a card is ejected by mistake according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of a mobile phone according to an embodiment of the present application;
fig. 4 is a schematic software structure of an electronic device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a sensor hub according to an embodiment of the present application;
fig. 6 is a flowchart of a card display method according to an embodiment of the present application;
FIG. 7 is a schematic view of a user entering a geofence corresponding to a subway station according to an embodiment of the present application;
fig. 8 is a schematic diagram of acquiring a current time and a current position according to an embodiment of the present application;
fig. 9 is a schematic view of a scenario of a user operating a card according to an embodiment of the present application;
FIG. 10 is a schematic view of another user operation card according to an embodiment of the present application;
FIG. 11 is a schematic view of a scenario for determining a high-precision fence according to an embodiment of the present application;
FIG. 12 is a schematic view of another scenario for determining a high-precision fence according to an embodiment of the present application;
FIG. 13 is a flowchart illustrating another method for displaying a card according to an embodiment of the present application;
FIG. 14 is a schematic diagram of a model training module according to an embodiment of the present application;
fig. 15 is a schematic structural diagram of a card display device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application.
In the description of the present application, "/" means or, unless otherwise indicated, for example, A/B may mean A or B. In the description of the present application, "and/or" is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone.
In embodiments of the present application, "plurality" refers to two or more.
The terms first and second and the like in the description and in the claims, are used for distinguishing between different objects and not necessarily for describing a particular sequential or chronological order of the objects. For example, a first geofence and a second geofence, etc., are used to distinguish between different geofences, rather than to describe a particular order of geofences.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
First, some terms or terms involved in the present application will be explained.
Fence refers to a trigger condition. When the fence meets the trigger condition, the electronic device starts executing a specific service or providing a specific service, such as displaying, refreshing or closing a notification message, warning information or card, etc.
Typically the pens include multiple types such as geo-fences, time fences, and associated event fences.
Geofences are used to characterize trigger conditions associated with a location. Geofencing is a location-based service (location based services, LBS) that uses a virtual fence to enclose a geographic area with a virtual boundary, i.e., the virtual boundary defines a particular geographic area. The closer the geographic area indicated by the geofence is to the location area of the real scene, the more accurate the indication of the real scene. The geofence may be circular, polygonal, or irregular in shape, and embodiments of the application are not limited. In some embodiments, the electronic device may monitor in real time the location where the electronic device is currently located. When the current position of the electronic device is located in the geofence, the electronic device automatically ejects the card. The geofence is a geographic area centered on a subway station, a geographic area centered on a gate of a subway station, or a geographic area containing a subway station. The subway station can be a subway station for a user to start riding or a subway station for the user to stop riding.
The time-rails are used to characterize the time-dependent trigger conditions. For example, the historical time for a user to enter and exit a subway station (e.g., 7:00 a day) is set as a time fence. If the system time of the electronic device meets the time set by the time fence on the premise that the electronic device enters the geofence, the electronic device automatically ejects the card.
The associated event fence is used to characterize the trigger conditions associated with a particular event. The specific event is a trigger event to enter the geofence, such as every day the user would purchase breakfast with the electronic device before entering the subway. When a user enters a subway region indicated by a geofence, the electronic device may obtain whether the user purchased breakfast using the electronic device before entering the geofence. If the card is purchased, the associated event fence is triggered, and the electronic equipment automatically ejects the card.
Currently, the geofences in electronic devices such as mobile phones are preset in the mobile phones by application developers or mobile phone service providers. When the user carries the mobile phone into the geographic area indicated by some geofences, the mobile phone automatically displays some messages, such as a subway card popped up when the user enters a subway station. The user can quickly scan the code to enter the station based on the subway card. However, in some cases, a user located within the geofence may not need to ride the car, but the phone may still miseject the subway card, thereby affecting the user's use experience.
Fig. 1 is a schematic view of a scene of a misejecting card according to an embodiment of the present application. As shown in fig. 1, a geofence 01 is defined centered on a subway station. Within geofence 01, there are not only gates and subways, but also a large number of staff to service subway operations and passenger rides. Taking the staff member 02 as an example, when the mobile phone 03 carried by the staff member 02 detects that the current position is located in the geofence 01. The mobile phone 03 can automatically pop up the subway card. However, in reality, the worker 02 has no riding requirement, and the code scanning riding is not required. The ejected subway card affects the normal work of the staff 02.
Fig. 2 is a schematic diagram of another scenario of misejecting a card according to an embodiment of the present application. As shown in fig. 2, geofence 01 is defined centered on a subway station. Geofence 01 covers not only subway stations but also possibly areas around subway stations. After the passer-by 04 enters the geofence 01 along the action track shown by the dotted line and the arrow, the mobile phone 05 carried with the passer-by 04 detects that the current position is located in the geofence 01. The mobile phone 05 can automatically pop up the subway card. However, passer-by 04 may not need to enter a subway station for riding and leave geofence 01 after a short residence time. Therefore, the erroneously ejected card in such a scenario also affects the user experience.
In view of the above problems, an embodiment of the present application provides a method for displaying a card. When the user carries the electronic equipment into the range of the geofence, the electronic equipment can judge whether the user has the intention of using the two-dimensional code at the current time according to the historical behavior habit of the user. If the user has the intention of using the two-dimensional code, the electronic equipment automatically ejects the card. If the user does not have the intention to use the two-dimensional code, the electronic device does not eject the card. Therefore, the false ejection of the card when the user does not have the intention of using the two-dimension code is avoided, the accuracy of ejecting the card by the electronic equipment is improved, and the user can directly use the card when the user has the intention of using the two-dimension code.
The card display method provided by the embodiment of the application can be applied to various riding scenes, such as a scene requiring an entering and scanning code when a user enters a subway station and rides, a scene requiring an exiting and scanning code when the user finishes riding and leaves the subway station, a scene requiring an entering and scanning code when the user takes a bus, a scene requiring an entering and scanning code when the user takes a light rail, a scene requiring an exiting and scanning code when the user takes a light rail, and the like.
It should be noted that, the embodiments of the present application are described by taking a riding scene as an example, and the embodiments of the present application are not limited thereto. It can be understood that, for other travel scenes requiring code scanning, the card display method provided by the embodiment of the application can also be adopted, for example, scenes requiring the presentation of health codes or travel codes when users come in and go out of communities, companies, drugstores, schools, commercial buildings and other places.
The two-dimensional code of the embodiment of the application can be used for representing the identity of the user, such as a riding code, a health code, a journey code, a social security code and the like, and the embodiment of the application is not limited. When the user carries the electronic device into different geofences, the electronic device can display the card corresponding to the geofence, so that the user can use the two-dimensional code corresponding to the card, such as using the riding code to enter and exit at a subway station.
In addition, the card display method provided by the embodiment of the application can be suitable for various electronic devices. In some embodiments, the electronic device may be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (augmented reality, AR) device, a Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant (personal digital assistant, PDA), or a smart screen, which may be a terminal device with a display function, or may be other devices or apparatuses capable of displaying a card. Embodiments of the present application are not limited in any way with respect to the particular type of electronic device.
Taking an electronic device as an example of a mobile phone, fig. 3 shows a schematic hardware structure of the mobile phone according to an embodiment of the present application.
As shown in fig. 3, the mobile phone may include: processor 110, external memory interface 120, internal memory 121, usb interface 130, charge management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, sensor module 180, keys 190, motor 191, indicator 192, camera 193, display 194, and subscriber identity module (subscriber identification module, SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyro 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, and a bone conduction sensor 180M, etc.
The processor 110 may include one or more processing units, such as: the processor 110 may include a central processor (central processing unit, CPU), an image signal processor (image signal processor, ISP), a digital signal processor (digital signal processor, DSP), a video codec, a neural network processor (neural-network processing unit, NPU), a graphics processor (graphics processing unit, GPU), an application processor (application processor, AP), and/or a modem processor, etc. In some embodiments, the different processing units may be separate devices or may be integrated in one or more processors.
The CPU is a final execution unit for information processing and program running, and the main work of the CPU comprises processing instructions, execution operations, control time, processing data and the like. The CPU may include a controller, an operator, a cache memory, and a bus for connecting these components. The controller can be a neural center and a command center of the mobile phone. The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish 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, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it may be called directly from memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the NPU may be configured to train the preset model according to behavior information of a user, such as a subway station entering and exiting each day, a time of entering and exiting each day, a code scanning event of entering each time and a code scanning event of exiting each time, and the like, compare an output estimated result of the preset model with an expected result, and adjust parameters of the preset model according to the compared result, to obtain an optimized preset model.
The wireless communication function of the mobile phone can be realized 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. Wherein the antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc. applied to a cell phone. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. In some embodiments, the mobile communication module 150 may receive electromagnetic waves from other devices through the antenna 1, perform filtering, amplifying, and the like on the electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation.
The modem processor may include a modulator and a demodulator. Wherein the modulator may be used to modulate the low frequency baseband signal to be transmitted into a medium and high frequency signal. The demodulator may be used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. The demodulator then transmits the demodulated low frequency baseband signal to the 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 sound signals through an audio device or displays images or video through a display screen 194.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wi-Fi network), bluetooth, global navigation satellite system (global navigation satellite system, GNSS), FM, NFC, infrared technology (IR), etc. applied to a mobile phone. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. In some embodiments, the wireless communication module 160 receives electromagnetic waves from the communication device via the antenna 2 based on GNSS, frequency modulates and filters the electromagnetic wave signals to obtain location information of the mobile phone.
In some embodiments, the antenna 1 and the mobile communication module 150 of the handset are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the handset can communicate with a network and other devices through wireless communication technology. Wireless communication techniques may include global system for mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The cell phone implements display functions through the GPU, the display 194, and the application processor, etc. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used for displaying images, videos, and the like, such as displaying cards, two-dimensional codes, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like.
In some embodiments, the handset may include 1 or N display screens 194, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect to an external memory card, such as a Micro SD card, to extend the memory capabilities of the handset. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, the behavior data of the user is stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The processor 110 executes various functional applications of the cellular phone and data processing by executing instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store, among other things, an operating system, application programs (APP) required for at least one function (such as desktop APP and payment APP), and the like. The storage data area may store data created during use of the handset (e.g., audio data, phonebook, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like.
In some embodiments, the external memory interface 120 or the internal memory 121 may store the following information for training and generating the preset model: when entering the geofence, the historical geographic position and the historical time of the mobile phone; when the two-dimension code is displayed, the historical geographic position and the historical time of the mobile phone are displayed; when a user holds the two-dimensional code to scan the code, the historical geographic position and the historical time of the mobile phone; the user starts riding the car, and the historical geographic position and the historical time of the mobile phone; the user finishes riding the car, and the historical geographic position and the historical time of the mobile phone. This information can be used to train, generate a pre-set model.
In addition, the external memory interface 120 or the internal memory 121 may also be used to store the trained preset model.
It will be appreciated that the structure illustrated in the embodiments of the present application is not limited to a specific configuration of the mobile phone. In other embodiments, the handset may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, an Android system with a layered architecture is taken as an example, and the software structure of the electronic equipment is illustrated by way of example.
Fig. 4 is a schematic software structure of an electronic device according to an embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the software layers of the Android system are divided into, in order from top to bottom: application layer (application), framework layer (FWK), library layer (FWK LIB), and kernel layer (kernel).
The application layer may include a series of application packages such as desktop applications, payment applications, emotion awareness modules, business logic processing modules, business presentation modules, and the like. When these application packages are run, individual service modules provided by the application framework layer can be accessed through application programming interfaces (application programming interface, APIs) and corresponding intelligent services are executed.
The desktop application can be used for realizing the display of the desktop, such as the display of application icons, the display of desktop backgrounds, the display of status bars, the display of notification bars and the like. In addition, the desktop application can also be used for displaying the card according to the instruction of the service presentation module, or canceling the card, etc.
The payment application can be used for loading the identification code for the user, such as subway taking payment code, bus taking payment code, health code or journey code, and the like, so that the user can conveniently sweep the code into the station or sweep the code out of the station, and the like.
The context awareness module operates in resident driving or low power consumption form, with the ability to perceive external facts or circumstances. The context awareness module monitors the ability or matters (such as specific time, specific place, specific event, etc.) registered by the business logic processing module when the card reminding business is in an on state. If the user triggers one of the capabilities or events, the context awareness module sends a notification to the business logic processing module. In addition, the context awareness module can also detect related events and acquire states of events, such as bluetooth connection, network connection, user short message monitoring, timer customization and the like, from other application programs of the application layer, or an application program framework layer, or a system layer, or a kernel layer through the API.
Illustratively, the role of the context awareness module includes awareness of whether a user enters a geofence. For example, the context awareness module may detect whether the electronic device enters an area range of a subway station based on Wi-Fi networks detected by the electronic device and mapping relationships among Wi-Fi network identifications, wi-Fi network signal strengths, and subway stations. For another example, the context awareness module may detect whether the electronic device enters an area of a subway station based on the searched satellite states. In addition, the context awareness module can also detect a display interface of the electronic device, such as detecting whether the current interface includes a two-dimensional code or not.
The business logic processing module, which may also be referred to as a computing engine or brain, has business logic processing capabilities for implementing the logic of the presentation and disappearance of various cards. For example, the business logic processing module receives the notification sent by the context awareness module to indicate that something is detected (e.g., the subway approach fence is triggered), and may send a command to the business presentation module (e.g., YOYO advice) to cause it to display the card according to the logic. Wherein the command may carry a link to some three-way APP or applet. When the user clicks on the card, the user jumps to the three-party APP or applet according to the link. In addition, the business logic processing module can also control to cancel the display card and the like by receiving the notification sent by the context awareness module and used for indicating that the user uses the two-dimensional code.
The service presentation module, which may also be referred to as YOYO suggestion, is used to display or disappear the determined card on the screen of the electronic device. For example, the service presentation module may receive a command transmitted by the service logic processing module to display a reminder card, and display the reminder card to the user, where the user links to a page of an APP when clicking the card. In some embodiments, the user clicks on the subway card and displays the riding two-dimensional code page of the payment APP last used by the user, so that the user can directly brush the code to get in and out of the subway station. Accordingly, if the service presentation module receives the card disappearing command sent by the service logic processing module, the service presentation module can instantly disappear the displayed card.
The framework layer provides APs and programming frameworks for applications of the application layer. The application framework layer includes a number of predefined functions. For example, the framework layer may include a window manager, a perception management service, and the like.
Wherein the window manager may be used to manage the window program. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like. The awareness management service may be used to provide APIs for the application layer that relate to the processing functions of time information and location information, such as obtaining time information and location information for an electronic device, and to provide APIs for the context awareness module that relate to the processing functions of a geofence, such as determining whether an electronic device enters or exits a geofence.
The library layer includes a system library and Android runtime (Android run). The system library may include a plurality of functional modules, such as surface managers (surface managers) or the like. The android runtime is responsible for scheduling and managing an android system, and comprises a core library and a virtual machine. The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The kernel layer is an interface layer between hardware and software. The kernel layer may include mobile communication drivers, wi-Fi drivers, GNSS drivers, display drivers, sensor drivers, and the like.
In order to reduce occupation of a processor and further reduce power consumption of the electronic device, in combination with the software architecture block diagram shown in fig. 4, a sensor hub (i.e., a coprocessor) may be further configured in a hardware layer in the electronic device according to an embodiment of the present application. The sensing hub is a chip with certain processing capacity and smaller power consumption, and can be used for processing simple tasks.
In some embodiments, the sensor hub may be incorporated into the hardware layer of the electronic device and connected to the mobile communication module 150 and the wireless communication module 160, etc. as shown in fig. 3.
Fig. 5 is a schematic diagram of a sensor hub according to an embodiment of the present application. As shown in fig. 5, the sensor hub may obtain a base station signal (e.g., a 5G signal), a bluetooth signal, a Wi-Fi signal, a GPS signal, an NFC signal, etc. from the mobile communication module 150, the wireless communication module 160 (e.g., a bluetooth module, a Wi-Fi module, a GPS module, an NFC module, etc.). The sensor hub may also be used to receive and store established geofences, such as Wi-Fi fences, cell fences (Cell fences), and fences containing multiple types of fence features, and the like. In some embodiments, the sensor hub obtains location information and determines whether the electronic device is within an established geofence based on the location information if a preset condition is met. The preset condition may be that the electronic device scans a specific electromagnetic wave, such as a specific FM radio frequency signal, a bluetooth signal, a Wi-Fi signal, or a base station signal.
Although the Android system is described as an example in the embodiment of the present application, the basic principle is equally applicable to electronic devices based on the iOS or Windows and other operating systems.
The execution main body of the card display method provided by the embodiment of the application can be the electronic equipment, or can be a functional module and/or a functional entity (such as a processor) which can realize the card display method in the electronic equipment, and the scheme of the application can be realized in a hardware and/or software mode, so that the application is not limited to the above. The following describes an example of a display method of a card provided by the embodiment of the present application with reference to fig. 6 by taking a scenario in which a user takes a subway as an example.
Fig. 6 is a flowchart of a card display method according to an embodiment of the present application. As shown in fig. 6, the method may include S601 to S607 described below.
S601, acquiring position information of the electronic equipment.
The electronic device may collect location information of the electronic device based on a preset period. The location information may be used to indicate a geographic location where the electronic device is located, or to determine a location of the electronic device.
In some embodiments, the location information of the electronic device may include a signal type and a signal strength of the positioning signal. According to the signal propagation principle, the signal strength of the positioning signal is weakened along with the increase of the propagation distance in the space propagation process, and the relationship between the signal strength and the propagation distance of different types of positioning signals is also different. Therefore, the electronic device can determine the position of the electronic device according to the signal type and the signal strength of the positioning signal.
Illustratively, the signal type of the positioning signal may comprise one or more of the following: GPS signals, bluetooth signals, cell identification (Cell ID) signals, wi-Fi signals, NFC signals, FM signals, and the like. Positioning signals of different signal types correspond to different positioning accuracies. The electronic device may select one or more signals from these signals according to the actual situation, such as being located on the ground or underground, and whether a wireless Access Point (AP) is installed in the area where the electronic device is located, so as to determine the current location of the electronic device.
Take the positioning signal as a GPS signal as an example. Under the condition that the electronic equipment starts the GPS function, the electronic equipment can update the coordinate information of the current position of the electronic equipment in real time according to the acquired GPS signal. The coordinate information may include longitude information and latitude information, among others.
Take the positioning signal as Wi-Fi signal as an example. In the case where the electronic device has turned on the Wi-Fi function, the electronic device may search for Wi-Fi networks currently in place, thereby obtaining a basic service set identifier (basic service set identifier, BSSID) of Wi-Fi APs that the electronic device is currently able to access. The electronic device then determines the location where the electronic device is currently located by reading the BSSID. The BSSID searched by the electronic device may have one or more BSSIDs, and the signal strength of Wi-Fi APs corresponding to different BSSIDs may be different. For example, the electronic device may determine that the electronic device is currently located according to the BSSID with the strongest signal strength.
Take the positioning signal as the Cell ID signal as an example. As the geographic location of the electronic device changes, the base station to which the electronic device is connected may change. In the case that the electronic device has turned on the function of the mobile communication module, the electronic device may receive the Cell ID from the current Cell and the Cell ID of the neighboring Cell, and monitor whether the connected base station has changed in real time through the Cell ID of the current Cell and the Cell ID of the neighboring Cell.
S602, judging whether the electronic equipment enters a geofence according to the acquired position information.
In the event that the electronic device enters a certain geofence (e.g., a first geofence), the electronic device performs S603 described below.
In the event that the electronic device does not enter any geofences, the electronic device may continue to obtain location information for the electronic device and re-determine whether the electronic device enters a geofence.
In some embodiments, the fence information of the geofence includes one or more of a fence number, a fence type, a fence range, and the like. Wherein the fence label can be represented by numerals, letters, symbols, and the like, for uniquely characterizing the geofence. The fence type corresponds to a signal type, such as any one type or a combination type of any plurality of Wi-Fi type, cell type, and GPS type, and the like. The fence range is used to characterize the location and size of the geographical area enclosed by the virtual fence, etc.
It should be noted that the geofence may be of a single type, such as a single Wi-Fi type, a single Cell type, or a single GPS type, and in other embodiments, the geofence may be of a combined type in which a plurality of single types are combined. For example, wi-Fi type combined with a geofence of Cell type, or Cell type combined with a geofence of GPS type, or Wi-Fi type combined with a geofence of Cell type and GPS type, etc., embodiments of the present application are not limited.
An exemplary description of a geofence as a Cell fence follows.
Cell fences are defined in terms of base station signal coverage. The mapping relationship between the base station and the subway station may be preconfigured. The mapping relationship between the base station and the subway station may specifically be: a mapping relation table between Cell ID and subway station name. In some embodiments, the mobile phone stores a software development kit (software development kit, SDK) of a third party application in advance, and the third party application may be used to query a mapping table between Cell IDs and subway station names, so as to determine whether there is a subway station matching the base station where the electronic device is currently located. When there is a subway station that matches the base station where the electronic device is currently located, it may be determined that the electronic device enters into a geofence corresponding to the matching station.
Illustratively, table 1 is a mapping relationship table between Cell IDs and subway station names provided in the embodiments of the present application. In table 1, the signal of the base station a covers the Cell 1, and no subway station is provided in the Cell 1. The signal of the base station B covers the Cell 2, and the subway station x is provided in the Cell 2. The signal of the base station C covers the Cell3, and the subway station y is provided in the Cell 3.
TABLE 1
Cell ID Subway station name
Cell 1 Without any means for
Cell 2 Subway station x
Cell 3 Subway station y
Fig. 7 is a schematic view of a scenario in which a user enters a geofence corresponding to a subway station according to an embodiment of the present application. As shown in fig. 7, the signal of base station a covers Cell 1, the signal of base station B covers Cell 2, and the signal of base station C covers Cell 3. The area range of subway station x is located in Cell 2, and the area range of subway station y is located in Cell 3. When a user carries a mobile phone to enter the area range of the subway station x along the directions indicated by the dotted line and the arrow, or when the user carries the mobile phone to pass through the area range of the subway station x, the base station A in driving connection with the mobile communication module of the mobile phone is switched to the base station B. The mobile phone acquires a Cell identifier Cell 2 corresponding to the base station B. The mobile phone queries the mapping relation table through a pre-stored third party application program, as in table 1 above. Since Cell identity Cell 2 matches subway station x, the handset determines that the user entered the geofence corresponding to subway station x.
S603, acquiring intention information. The intent information may be used to indicate whether the user has an intent to use the two-dimensional code within an incoming geofence (e.g., a first geofence).
Under the condition that the electronic equipment enters the geofence of a certain subway station, a user may or may not have a need to use the two-dimensional code to sweep codes in the geofence. At this time, the electronic device may acquire target information and historical behavior information of the user, and the target information may include current time information of the electronic device and/or current location information of the electronic device. Then, the electronic device generates intention information according to the target information and the historical behavior information, and the intention information is used for predicting whether a user has intention of using the two-dimensional code in the geofence.
In some embodiments, the current time information may contain two meanings:
one meaning is that the current time information is used to indicate: the time the electronic device entered the geofence. For example, when the electronic device collects location information of the electronic device based on a preset period, a time stamp indicating the collection time of the location information is marked for each location information. In the case that the electronic device determines that the electronic device enters the geofence corresponding to the location information according to the certain location information, the electronic device may use a timestamp marked with the location information as a time when the user enters the geofence.
Another meaning is that the current time information is used to indicate: after the electronic device enters the geofence, the electronic device determines the time in real time based on a preset period. It should be noted that, the preset period may be equal to or different from the preset period of S601, which is not limited in the embodiment of the present application. For example, assume that the preset period for the electronic device to collect the position information and the time information is 1 second. The electronic device may collect the location information once every 1 second. Under the condition that the electronic equipment determines that the electronic equipment enters the geofence corresponding to the position information according to the collected position information, the electronic equipment can acquire the system time from a clock application program of the electronic equipment every 1 second, and the acquired system time is taken as the current time.
In some embodiments, the current location information may be used to indicate a geographic location where the electronic device is located at the current time. The current time is a time indicated by the current time information.
Specifically, one possibility is that if the current time information is used to indicate the time when the electronic device entered the geofence, the current location information is used to indicate the geographic location when the electronic device entered the geofence, i.e., the current location information is the location information acquired at S601. Another possibility is that if the current time information is used to indicate a time determined in real time by the electronic device based on a preset period after the electronic device enters the geofence, the current location information is used to indicate location information that is re-acquired according to the preset period after the electronic device enters the geofence. In this case, the electronic device may use the re-acquired location information as the geographic location at the current time.
Fig. 8 is a schematic diagram illustrating acquiring a current time and a current position according to an embodiment of the present application. Taking a mobile phone carried by a user to collect position information and time information every 1 second as an example for explanation. As shown in fig. 8, at time 7:50, the mobile phone collects location information 1, and determines that the mobile phone enters the geofence 01-a of the subway station according to the location information 1. To further determine if the user has an intention to use the two-dimensional code within geofence 01-a, the handset continues to collect location information and time information every 1 second. For example, at time 8:00, the cell phone collects location information 2, and determines, based on the location information 2, that the cell phone enters geofence 01-b of the subway station, geofence 01-b being the child fence included in geofence 01-a. For another example, at time 8:05, the mobile phone collects location information 3 and determines, based on the location information 3, that the mobile phone enters a geofence 01-c of the subway station, the geofence 01-c being a child fence included in the geofence 01-b. As the user moves along the action track, the user first enters the geofence 01-b of the geofences 01-a, and the user's code scanning intention is more obvious when the user gets closer to the entrance gate in the geofence 01-c of the geofences 01-b.
In some embodiments, the historical behavior information includes historical location information of the electronic device and historical time information of the electronic device when the historical behavior event occurred. Wherein the historical behavioral event is an event associated with using a two-dimensional code that occurs before the electronic device enters the geofence (e.g., before a day, before a week).
Illustratively, the historical behavioral event may include at least one of:
(1) Event of user entering geofence.
The geofence entered by the user in S602 is referred to as a first geofence, and if the user has entered the first geofence before that, when the user enters the first geofence again, particularly when entering the first geofence in the same period of time, the probability that the user uses the two-dimensional code in the first geofence is high. The electronic device can predict that the user may have an intention to use the two-dimensional code at the first geofence based on historical location information and historical time information when the user entered the first geofence.
It should be noted that, the event that the user enters the geofence may be determined with reference to the steps of S601 and S602, that is, the event that the user enters the geofence may be determined according to the location information collected by the electronic device.
(2) The user triggers an event that displays the two-dimensional code.
Assuming that the user has triggered the electronic device to display the two-dimensional code within the first geofence once, the probability of the user triggering the electronic device to display the two-dimensional code within the first geofence is high when the user reenters the first geofence, particularly when the user enters the first geofence during the same period of time. The electronic device can predict that the user may have an intention to use the two-dimensional code in the first geofence according to the historical position information and the historical time information when the event that the user triggers the display of the two-dimensional code occurs.
In some embodiments, before the user uses the two-dimensional code, clicking operation is typically performed on a travel control, a card package control, a traffic card control, a travel card, or the like, so that the electronic device displays the two-dimensional code in response to the user operation. Therefore, the electronic device can define the received triggering operation of the controls as an event that the user triggers the display of the two-dimensional code.
In other embodiments, where the electronic device displays a two-dimensional code in response to a user operation, the electronic device may detect the displayed two-dimensional code. Therefore, the electronic device can define the event of detecting the two-dimensional code as the event of triggering and displaying the two-dimensional code by the user.
(3) The user holds the two-dimensional code to sweep the code.
Assuming that the user has once scanned the two-dimensional code held within the first geofence, the probability of the user scanning the two-dimensional code held by the first geofence is higher when the user reenters the first geofence, particularly when the user enters the first geofence in the same time period. The electronic device can predict that the user is likely to have the intention of using the two-dimensional code in the first geofence according to the historical position information and the historical time information when the user holds the two-dimensional code to sweep the code.
In some embodiments, when a user holds the two-dimensional code to scan the code, the user's wrist is flipped to orient and align the two-dimensional code to the code scanning device. The electronic device can detect whether the flip angle of the electronic device exceeds a preset angle threshold through the sensor. If the turning angle of the electronic equipment exceeds the preset angle threshold, the turning angle can be defined as an event that a user holds the two-dimensional code to sweep the code.
(4) The user initiates an event of riding.
Assuming that the user once started riding a subway within the first geofence, the probability that the user started riding a subway within the first geofence is higher when the user re-entered the first geofence, particularly when entering the first geofence for the same period of time. The electronic device may predict that the user may have an intention to use the two-dimensional code in the first geofence based on historical location information and historical time information when an event occurs in which the user began riding the vehicle.
In some embodiments, after the user successfully scans the two-dimensional code, the electronic device may receive a successful card swiping notification sent by the server. If the electronic device receives a successful card swipe notification sent by the server, it may be defined as an event that the user starts riding.
In other embodiments, after the user uses the two-dimensional code to successfully sweep the code and get to the bus, the electronic device may connect to a wireless access point installed on the subway through the Wi-Fi module, and receive a signal returned by the wireless access point through the Wi-Fi module. The signal includes a subway identification. The electronic device may define the receipt of a signal including a subway identification as an event that the user begins riding.
(5) The user ends the event of riding.
Assuming that the user has finished riding a subway within the first geofence, the probability of the user ending riding a subway within the first geofence is higher when the user reenters the first geofence, particularly when entering the first geofence for the same period of time. The electronic device may predict that the user may have an intention to use the two-dimensional code in the first geofence based on historical location information and historical time information when an event occurs in which the user ends riding.
In some embodiments, after the user finishes riding and goes out using the two-dimensional code, the electronic device may receive a deduction amount notification sent by the server. If the electronic device receives the deduction amount notification sent by the server, the deduction amount notification can be defined as an event that the user finishes riding.
In other embodiments, it is assumed that during a user riding on a subway, the electronic device connects to a wireless access point installed on the subway through a Wi-Fi module. After the user finishes riding, the Wi-Fi connection between the electronic device and the wireless access point is disconnected. The electronic device may define a disconnection of the Wi-Fi connection as an event that the user ends the ride.
After the electronic device obtains the target information and the historical behavior information, intent information can be generated according to the target information and the historical behavior information so as to predict whether a user has intent to use the two-dimensional code in the geofence.
In the first way, the electronic device may determine whether the target information accords with the historical behavior information, for example, determine whether the current geographic position indicated by the current location information accords with the historical geographic position indicated by the historical behavior information, determine whether the current time indicated by the current time information accords with the historical time indicated by the historical behavior information, and generate the intention information according to the determination result.
It can be appreciated that if the current geographic location indicated by the current location information matches the historical geographic location indicated by the historical behavior information, determining that the electronic device entered a geofence; and if the current time indicated by the current time information accords with the historical time indicated by the historical behavior information, determining that the electronic equipment enters a time fence. Of course, the electronic device may also determine whether the electronic device enters the associated event fence according to other current information and historical information. Upon entering a geofence, a time fence, and/or an associated event fence, a user may have an intent to use a two-dimensional code.
The second mode is that the electronic equipment trains to obtain a preset model according to the historical behavior information. Then, target information is input into the preset model, and an output result of the preset model includes intention information. It should be noted that, the implementation of the second mode will be described in the following embodiments, which are not repeated here.
S604, judging whether the user has intention to use the two-dimensional code in the entered geofence according to the intention information.
In the event that the intent information indicates that the user has an intent to use the two-dimensional code within the entered geofence, the electronic device may perform S605 described below.
In the case where the intent information indicates that the user does not have an intent to use the two-dimensional code within the entered geofence, the electronic device may perform S606 described below.
In the event that the intention information indicates that it is not determined whether the user has an intention to use the two-dimensional code within the entered geofence, the electronic device may perform S607 described below.
S605, displaying the target card. The target card is associated with a two-dimensional code for representing the identity of the user.
In some embodiments, a user may have a need to use different types of two-dimensional codes when the electronic device enters a different geofence, or the system time after entering a geofence is different. Therefore, in the case where the intent information indicates that the user has an intent to use the two-dimensional code within the entered geofence, the electronic device may determine the two-dimensional code to be displayed according to the current time information, the current location information, the historical time information, and the historical location information. Then, the electronic device determines the content of the target card according to the two-dimensional code to be displayed, and determines the display area of the target card according to factory setting or user-defined requirements of a user. Then, the electronic device controls the target card to be displayed in the display area. The display area of the target card may be any desktop interface, and a display area of any desktop interface, for example, a display area where a certain desktop component (widget) in the negative screen is located.
In some embodiments, the target card may be used to trigger the display of the two-dimensional code.
For example, as shown in (a) of fig. 9, the mobile phone may display a card 06 of "electronic subway card" on the negative one screen, the card 06 not including a two-dimensional code for scanning riding. The user clicks on the card 06. The mobile phone runs the payment application and directly jumps to the travel interface shown in (b) of fig. 9, wherein the travel interface comprises the two-dimensional code 07. If the user aims the two-dimension code 07 at the code scanning equipment of the entrance gate, the gate of the entrance gate is opened, and the user can enter the subway station. Or, if the user aligns the two-dimensional code 07 to the code scanning device of the outbound gate, the gate of the outbound gate is opened and the user can leave the subway station.
In other embodiments, the target card may include a two-dimensional code.
Illustratively, as shown in (a) of fig. 10, the cellular phone may display a card 08 of "electronic subway card" on the negative one screen, the card 08 including a two-dimensional code for scanning riding. The user can directly aim at the two-dimension code of the card 08 at the code scanning equipment of the entrance gate or the exit gate, so that the gate of the entrance gate or the exit gate is opened, and the user can enter or leave the subway station. Of course, if the user wants to view a travel offer or a travel record, etc., the user can also click on the card 08, the cell phone runs the payment application, and jumps to the travel interface as shown in fig. 10 (b). The travel interface comprises a two-dimensional code 09, a travel preferential control, a riding record control, a place code sweeping control and the like. The two-dimensional code 09 can be used for inbound code scanning or outbound code scanning, the travel preference control can be used for inquiring preference information, the riding record control is used for checking riding records, and the place code scanning control is used for triggering and executing code scanning operation.
In some embodiments, after the electronic device displays the target card, the electronic device starts a timer and detects whether a trigger operation of the user on the target card is received within a preset time period. If the operation of the user on the two-dimension code contained in the target card is received within the preset time period, or the operation of triggering the display of the two-dimension code by the user is received within the preset time period, the electronic equipment immediately cancels the display of the target card in response to the operation of the user. If the operation of the user on the two-dimension code contained in the target card is not received within the preset time period, or the operation of triggering the display of the two-dimension code by the user is not received within the preset time period, the electronic equipment keeps displaying the target card within the preset time period. And after the preset time length is reached, the electronic equipment cancels displaying the target card. It will be appreciated that by eliminating the display of the target card, the target card may be prevented from occupying the negative one screen for a long period of time.
S606, determining that the target card is not displayed.
In the case where the intent information indicates that the user does not have an intent to use the two-dimensional code within the entered geofence, the electronic device may not display the target card, thereby avoiding false ejection of the card when the user does not have an intent to use the two-dimensional code (e.g., no riding intent), and improving the accuracy of the electronic device to eject the card.
S607, judging whether the electronic equipment enters the high-precision fence according to the acquired position information.
Wherein a high precision fence, also referred to as a second geofence, refers to a portion of a geographic area that meets a target condition in a first geofence that an electronic device has entered. That is, the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence. For example, the target condition may be a geographic area centered on the code scanning device, with a preset length as a radius. As another example, the target condition is a geographic area covered by a preset signal. For another example, the target condition is a geographic area that meets a preset geographic coordinate.
The location information used to determine whether to enter the first geofence (i.e., the location information of S607) and the location information used to determine whether to enter the second geofence (i.e., the location information of S601) may be the same location information or may be different location information. In addition, the different location information is location information determined according to the same type of signal, or the different location information is location information determined according to different types of signal.
Taking the first geofence as a Cell fence as an example, an implementation of determining whether an electronic device enters a high-precision fence is described by the following several examples.
Example 1, the geographic area of the cell pen and the geographic area of the high precision pen are both represented by geographic coordinate ranges. And, the location information used to determine whether to enter the first geofence is the same location information as the location information used to determine whether to enter the second geofence.
And when the electronic equipment determines that the geographic coordinates of the electronic equipment are positioned in the geographic coordinate range of the Cell fence according to the GPS signals, determining that the electronic equipment enters the Cell fence. If it is not determined whether the user has an intention to use the two-dimensional code within the Cell fence, the electronic device may further determine whether the geographic coordinates are within the geographic coordinate range of the high-precision fence. If the geographic coordinates are also within the geographic coordinate range of the high-precision fence, the user may have an intent to use the two-dimensional code within the high-precision fence, and the electronic device displays the target card. If the geographic coordinates are not within the geographic coordinate range of the high-precision fence, the user may not have an intent to use the two-dimensional code within the high-precision fence, and the electronic device does not display the target card.
Example 2, the geographic area of the cell pen and the geographic area of the high precision pen are both represented by geographic coordinate ranges. And, the location information for determining whether to enter the first geofence is different from the location information for determining whether to enter the second geofence.
Illustratively, as shown in fig. 11, the high precision rail 11 is located within the Cell rail 10. When the electronic device determines that the geographic coordinate P1 (north latitude N:39 ° 54'×x″, east longitude E:116 ° 23' ×x ") of the electronic device is located within the geographic coordinate range of the Cell fence 10 according to the received GPS signal, it is determined that the electronic device enters the Cell fence 10. If it is not determined whether the user has an intention to use the two-dimensional code within the Cell pen 10, the electronic device may again receive the GPS signal to reacquire the geographical coordinates of the electronic device and determine whether the reacquired geographical coordinates are within the geographical coordinate range of the high-precision pen. If the retrieved geographic coordinates P2 (north latitude N:39 ° 54 '. Times.y', east longitude E:116 ° 23 '. Times.y') are also within the geographic coordinates of the high precision fence 11, then the user may have the intent to use the two-dimensional code within the high precision fence 11 and the electronic device displays the target card. If the retrieved geographic coordinates are not within the geographic coordinate range of the high precision fence 11, the user may not have an intent to use the two-dimensional code within the high precision fence 11 and the electronic device does not display the target card.
Example 3, the geographic area of the Cell pen is determined from the Cell ID signal and the geographic area of the high-precision pen is determined from the Wi-Fi signal.
Illustratively, as shown in fig. 12, a high precision rail 13 is located within the Cell rail 12. When the electronic device determines that the geographic coordinates of the electronic device are within the geographic coordinate range of the Cell fence 12 from the Cell ID signal received from the base station, it is determined that the electronic device enters the Cell fence 12. If it is not determined whether the user has an intention to use the two-dimensional code within the Cell geofence 12, the electronic device may scan Wi-Fi signals through the Wi-Fi module. After obtaining the Wi-Fi list around the electronic device, the electronic device may query a mapping relationship between Wi-Fi signals and subway stations according to the Wi-Fi list, and determine whether the currently determined subway station matches with the Wi-Fi scanning result. For example, if the signal with the strongest signal strength in the Wi-Fi list comes from a certain wireless access point of the subway station, it is determined that the electronic device is located in the high-precision fence 13 corresponding to the wireless access point, and the target card is displayed. If the currently determined subway station does not match the Wi-Fi scan result, the user may not have an intention to use the two-dimensional code within the high-precision fence 13 and the electronic device may not display the target card. The mapping relation between Wi-Fi signals and subway stations is preconfigured. The mapping relation between Wi-Fi signals and subway stations can be a mapping relation table among Wi-Fi identifiers, wi-Fi signal strength and subway stations.
After the electronic device displays the target card or determines that the target card is not displayed, the geographic location and system time of the electronic device may change, the positional relationship between the user and the geofence may change, and the riding intent of the user may also change. Therefore, after S605 and S606, the method provided by the embodiment of the present application may further include: the location information of the electronic device is re-acquired to determine a relationship of the re-electronic device to the first geofence and to re-determine whether the user has a riding intent.
For example, in one case, in a case where it is determined that the electronic device leaves the first geofence and the target card has been displayed, the display of the target card is canceled. Another case is to cancel the display of the target card if it is determined that the electronic device remains located in the first geofence and the target card has been displayed, but the user has no riding intent. In one case, the target card is displayed if the user has a riding intent if it is determined that the electronic device remains located in the first geofence and the target card has not been displayed. It should be appreciated that other situations may exist and are not described in detail herein.
According to the card display method provided by the embodiment of the application, when the electronic equipment enters the geofence range, the electronic equipment judges whether the user has the intention of using the two-dimension code currently according to the historical behavior habit of the user. If the user has the intention of using the two-dimensional code, the electronic equipment automatically ejects the card. If the user does not have the intention to use the two-dimensional code, the electronic device does not eject the card. Therefore, the card is prevented from being ejected by mistake when the user does not have the intention of using the two-dimension code, the accuracy of ejecting the card by the electronic equipment is improved, and the user can directly use the two-dimension code corresponding to the card when the user has the intention of using the two-dimension code.
Fig. 6 illustrates the scheme provided by the embodiment of the present application from the perspective that the execution body is an electronic device. It will be appreciated that the electronic device, in order to achieve the above-described functions, includes corresponding hardware structures and/or software modules that perform each of the functions. The method for displaying the card will be described in detail below with reference to fig. 13, from the perspective of a desktop application, an NPU, an emotion perception module, a service logic processing module, and a service presentation module included in the electronic device.
S31, the service logic processing module sends a query message to the service presentation module, wherein the query message is used for querying whether the card reminding service is in an on state or not. The service presentation module returns a query result, such as a card reminding service in an on state or an off state, to the service logic processing module.
S32, under the condition that the card reminding service is in an on state, the service logic processing module sends a request registration message to the emotion perception module. The request registration message is for requesting registration of the geofence to monitor the registered geofence.
S33, the context awareness module responds to the request message to acquire the position information of the electronic equipment.
The context awareness module operates in resident driving or in a low power consumption form. And when the card reminding service is in an on state, the situation awareness module monitors each geofence registered according to the service logic processing module. In addition, the context awareness module may also obtain location information of the electronic device from other applications of the application layer, or an application framework layer, or a system layer, or a kernel layer, or a hardware layer through the API, such as obtaining a GPS signal for determining a location signal from the GPS module, obtaining a Cell ID signal for determining a location signal from the mobile communication module, and so on.
S34, the context awareness module judges whether the electronic equipment enters a geofence according to the position information of the electronic equipment.
S35, in the case that the electronic equipment enters the first geofence, the context awareness module sends a notification message to the business logic processing module. It should be appreciated that in the event that the electronic device does not enter any geofences, the context awareness module may continue to obtain location information of the electronic device and re-determine whether the electronic device entered a geofence.
S36, the business logic processing module responds to the notification message and inputs the current time information and the current position information into the preset model of the NPU. And obtaining an output result by the NPU preset model according to the current time information and the current position information.
S37, the business logic processing module acquires an output result of the preset model from the NPU.
Under the condition that the electronic equipment enters the geofence of a certain subway station, a user may or may not have the requirement of using the two-dimensional code to sweep codes in the geofence. At this time, the service logic processing module may acquire current time information of the electronic device from the clock application, and acquire current location information of the electronic device from the acquiring mobile communication module, the wireless communication module, or the like. And then, the business logic processing module inputs the current time information and the current position information into a preset model of the NPU to obtain an output result. The output result comprises intention information, and the intention information is used for predicting whether a user has intention to use the two-dimensional code.
S38, the business logic processing module judges whether the user has the intention of using the two-dimensional code in the first geofence or not according to the output result.
In the case where the intention information indicates that the user has an intention to use the two-dimensional code within the first geofence, S39 and S40 described below may be performed.
In a case where the intent information indicates that the user does not have an intent to use the two-dimensional code within the first geofence, S41 described below may be performed.
In a case where the intention information indicates that it is not determined whether the user has an intention to use the two-dimensional code within the first geofence, S42 described below may be performed.
S39, the business logic processing module sends a notice to the business presentation module, and the business presentation module constructs a target card.
S40, the service presentation module notifies to send notification to the desktop application, and the desktop application displays the target card. The target card is associated with a two-dimensional code for representing the identity of the user.
S41, the business logic processing module determines that the target card is not displayed.
Under the condition that the intention information indicates that the user does not use the two-dimensional code in the first geofence, the electronic equipment does not display the target card, so that the situation that the card is ejected by mistake when the user does not use the two-dimensional code is avoided, and the accuracy of the card ejected by the electronic equipment is improved.
S42, the context awareness module judges whether the electronic equipment enters a high-precision fence according to the acquired position information.
In the case where the electronic apparatus enters the high-precision fence, S39 and S40 described above may be performed.
In the case where the electronic apparatus does not enter the high-precision fence, S41 described above may be performed.
It should be noted that the implementation manners of the above-mentioned S31-S42 are similar to those of the above-mentioned S601-S607, and will not be repeated here.
For example, when the context awareness module determines that the geographic coordinates of the electronic device are within the geographic coordinate range of the Cell fence according to the Cell ID signal, the model training module notifies the business logic processing module that the electronic device enters the Cell fence. And then, the business logic processing module judges whether the user has the intention of using the two-dimension code in the cell fence or not according to the output result of the NPU. If the user does not determine whether the user has the intention of using the two-dimensional code in the cell fence, the business logic processing module can send Wi-Fi scanning indication information to the Wi-Fi drive, so that the Wi-Fi drive controls the Wi-Fi module to scan Wi-Fi signals. After Wi-Fi driving obtains the Wi-Fi list around the mobile phone, the Wi-Fi list around the mobile phone can be used as a Wi-Fi scanning result to be sent to the emotion sensing module. And the emotion perception module inquires the mapping relation between the Wi-Fi signal and the subway station according to the Wi-Fi scanning result, and judges whether the currently determined subway station is matched with the Wi-Fi scanning result. If the currently determined subway station is matched with the Wi-Fi scanning result, the emotion perception module sends a notification of being positioned in the high-precision fence to the business logic processing module. The business logic processing module sends a notice of constructing the target card to the business presentation module. The business presentation module notifies the desktop application to display the target card.
In the above embodiment, the electronic device may input the current time information and the current position information of the electronic device into the preset model, to obtain the output result. To facilitate understanding of the preset model, fig. 14 shows a schematic diagram of an algorithm module.
In some embodiments, the algorithm module may be stored in an NPU of the electronic device.
As shown in fig. 14, the algorithm modules include a sample and feature engineering module, a model training module, and a model estimation module.
Wherein, sample and feature engineering module for generating training sample includes: code scanning intention de-duplication, subway journey division, user behavior enhancement, sample format conversion, training, verification, test set segmentation and other submodules. The model training module is used for carrying out model training according to the training samples, and comprises the following steps: model initialization, optimal learning rate search, model training, verification set index test, test set index test, and model validation and storage. The model pre-estimating module is used for obtaining a pre-estimating result and comprises the following steps: and (3) effectively detecting the model, and acquiring sub-modules such as estimated characteristics, model estimation, intention results and the like.
The process of training the preset model by the electronic device will be exemplified with reference to the algorithm module shown in fig. 14.
(1) Historical behavior information is obtained. The historical behavior information may include location information of the electronic device and time information of the electronic device when the historical behavior event occurs.
The historical behavior event is an event which occurs before the electronic device enters the geofence and is associated with the use of the two-dimensional code.
By way of example, the historical behavioral event may include one or more of an event that the user enters a geofence, an event that the user triggers the display of a two-dimensional code, an event that the user swipes the two-dimensional code, an event that the user begins a ride, and an event that the user ends a ride. For each event, reference may be made to the description of S603, which is not repeated here.
(2) And the sample and feature engineering module processes the historical behavior information to generate a training sample.
In some embodiments, the processing operations on the historical behavior information may be: and deleting the repeated behavior information in the historical behavior information. In the same geographic position and the same time period, the user may perform repeated actions, such as opening the two-dimensional code for a plurality of times, and historical behavior data corresponding to the repeated actions may cause a large number of repeated or similar training samples to appear. By deleting repeated behavior information, the data processing amount of sample learning can be reduced, and the efficiency of sample learning can be improved.
In other embodiments, the processing operations on the historical behavior information may be: and dividing each site according to the site information indicated by the historical behavior information. The user may pass through one or more intermediate stations along the way the ride vehicle goes from the start station to the end station. These intermediate stations each correspond to a respective geofence. When the electronic device enters the geofence of the intermediate station, it may be misinterpreted as a user's intention to ride, resulting in a misejection of the card. In order to avoid the situation, the electronic equipment can divide each site according to the site information indicated by the historical behavior information and remove the behavior information of the intermediate site, so that the accuracy of sample learning is improved.
In still other embodiments, the processing operations on the historical behavior information may be: and carrying out user behavior enhancement processing on the historical behavior information, wherein the user behavior enhancement processing is used for acquiring behavior information related to the historical behavior event. For example, behavior information is obtained that correlates time with the time at which the historical behavior event occurred, which may be a period of time before the time at which the historical behavior event occurred, and/or a period of time after the time at which the historical behavior event occurred. It is understood that by enhancing the historical behavior information, more behavior information related to the historical behavior event can be obtained, so that the training effect of the preset model is improved, and the accuracy of predicting the intention of the user is further improved.
In addition, after the processing of code scanning intention deduplication, subway journey division, user behavior enhancement and the like is performed on the historical behavior information, the electronic equipment can also convert the samples into a unified format, and then the processing of training, verification, test set segmentation and the like is performed, so that training samples are generated.
(3) The model training module trains a preset model according to the training sample.
The embodiment of the application can train a preset model by adopting any possible algorithm such as an online machine learning (follow the regularized leader, FTRL) algorithm, a logistic regression (logistic regression, LR) algorithm, a factorization machine (factorization machines, FM) algorithm and the like. Can be determined according to actual use requirements, and the embodiment of the application is not limited.
When the preset model is trained each time, the model training module initializes the built preset model, and then inputs training samples into the preset model according to the searched optimal learning rate to obtain a pre-estimated result. And comparing the estimated result with the expected result. And then, according to the comparison result, adjusting parameters of the preset model to obtain the trained preset model.
Illustratively, a label is added to each training sample, such as labeling 1 for the time and place of training sample a and labeling 2 for the time and place of training sample b. And then, taking the training samples a and b as input of a preset model, taking the labels 1 and 2 as expected intention results, and giving initial values to the connection weights among the neurons of each layer of the neural network. And according to the connection weight values among the nerve cells of each layer, obtaining an actual output result corresponding to the training sample by adopting a nerve network algorithm. After the expected intention result and the actual output result are processed by adopting the error function, the connection weight among the neurons of each layer is adjusted according to the processing result, the adjusted connection weight among the neurons of each layer is obtained, and the trained preset model is obtained.
In the embodiment of the application, the electronic equipment can schedule the historical behavior information of the previous day every day, generate the training sample according to the historical behavior information of the previous day, and train the preset model by adopting the historical behavior information of the previous day.
(4) And the model estimation module acquires an estimation result according to the current position information and the current time information.
After the electronic equipment enters a geofence (such as a Cell fence), the electronic equipment firstly acquires a training effective model, then extracts characteristics of current position information and current time information, and inputs the characteristics into the effective model. And (5) carrying out prediction by adopting an effective model, and outputting a prediction result, wherein the prediction result is the intention information. In addition, after the model estimation module performs estimation, one or more bad cases (bad cases) may be obtained. The model pre-estimation module can feed bad examples back to the sample and characteristic engineering module and the model training module, so that the sample and characteristic engineering module and the model training module can optimize an algorithm according to the bad examples, and the accuracy of a preset model output result obtained through training is improved.
It can be appreciated that model training is performed by using position information and time information when historical behavior events occur, so that when a user enters the same geofence in the same period, the intention of the user for using the two-dimensional code in the geofence can be accurately estimated by using a preset model.
The scheme provided by the embodiment of the application is mainly described from the perspective of the electronic equipment. It will be appreciated that the electronic device, in order to achieve the above-described functions, may comprise a corresponding hardware structure or software module, or a combination thereof, for performing each function. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The embodiment of the application can divide the functional modules of the electronic device according to the method example, for example, each functional module can be divided corresponding to each function, and two or more functions can be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, in the embodiment of the present application, the division of the modules is schematic, which is merely a logic function division, and other division manners may be implemented in actual implementation. The following description will take an example of dividing each function module into corresponding functions.
Fig. 15 is a schematic structural diagram of a card display device according to an embodiment of the present application. As shown in fig. 15, the card display device may include an acquisition module 501, a determination module 502, and a display module 503.
The obtaining module 501 may be configured to obtain location information of an electronic device. The determining module 502 may be configured to determine that the electronic device enters the first geofence according to the location information acquired by the acquiring module 501. The obtaining module 501 may be configured to obtain intention information according to current location information of the electronic device, current time information of the electronic device, and historical behavior information of the user, where the intention information is used to indicate whether the user has an intention to use the two-dimensional code in the first geofence. The display module 503 may be used to display the target card if the intent information indicates that the user has an intent to use the two-dimensional code within the first geofence. The target card is used for triggering and displaying the two-dimensional code, or the target card comprises the two-dimensional code.
In some embodiments, the determining module 502 may be further configured to determine whether the electronic device enters the second geofence based on the location information if the intent information indicates that the user is not having an intent to use the two-dimensional code within the first geofence. The display module 503 may also be configured to display the target card if the electronic device enters the second geofence. Wherein the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence.
In some embodiments, the determining module 502 may be further configured to determine not to display the target card if the intent information indicates that the user is not determined to have intent to use the two-dimensional code within the first geofence and, based on the location information, the electronic device is determined not to enter the second geofence.
In some embodiments, the determining module 502 may also be configured to determine not to display the target card if the intent information indicates that the user does not have an intent to use the two-dimensional code within the first geofence.
In some embodiments, the obtaining module 501 may specifically be configured to: and inputting the current position information of the electronic equipment and the current time information of the electronic equipment into a preset model to obtain an output result, wherein the output result comprises intention information. The preset model is obtained through training according to historical behavior information.
In some embodiments, the acquisition module 501 may also be configured to: re-acquiring the position information of the electronic equipment; in the event that it is determined from the retrieved location information that the electronic device has left the first geofence and the target card has been displayed, the display of the target card is canceled.
It should be understood that the electronic device shown in fig. 3 may correspond to the card display device shown in fig. 15. The processor 110 in the electronic device shown in fig. 3 may correspond to the acquisition module 501 and the determination module 502 in the card display device in fig. 15. The display screen 194 in the electronic device shown in fig. 3 may correspond to the display module 503 in the card display apparatus in fig. 15.
The embodiment of the application also provides an electronic device, which comprises a processor, wherein the processor is coupled with the memory, and the processor is used for executing the computer program or the instructions stored in the memory, so that the electronic device realizes the method in each embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions; the computer readable storage medium, when run on an electronic device, causes the electronic device to perform the method as shown above. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium. The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium, or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
Embodiments of the present application also provide a computer program product comprising computer program code for causing a computer to perform the method of the embodiments described above when the computer program code is run on a computer.
The embodiment of the application also provides a chip, which is coupled with the memory and is used for reading and executing the computer program or the instructions stored in the memory to execute the method in each embodiment. The chip may be a general-purpose processor or a special-purpose processor.
It should be noted that the chip may be implemented using the following circuits or devices: one or more field programmable gate arrays (field programmable gate array, FPGA), programmable logic devices (programmable logic device, PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuit or combination of circuits capable of performing the various functions described throughout this application.
The electronic device, the card display device, the computer readable storage medium, the computer program product and the chip provided by the embodiments of the present application are used for executing the method provided above, so that the advantages achieved by the method provided above can be referred to the advantages corresponding to the method provided above, and will not be described herein.
It should be understood that the above description is only intended to assist those skilled in the art in better understanding the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. It will be apparent to those skilled in the art from the foregoing examples that various equivalent modifications or variations can be made, for example, certain steps may not be necessary in the various embodiments of the detection methods described above, or certain steps may be newly added, etc. Or a combination of any two or more of the above. Such modifications, variations, or combinations are also within the scope of embodiments of the present application.
It should also be understood that the foregoing description of embodiments of the present application focuses on highlighting differences between the various embodiments and that the same or similar elements not mentioned may be referred to each other and are not repeated herein for brevity.
It should be further understood that the sequence numbers of the above processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
It should be further understood that, in the embodiments of the present application, the "preset" and "predefined" may be implemented by pre-storing corresponding codes, tables, or other manners that may be used to indicate relevant information in a device (including, for example, an electronic device), and the present application is not limited to the specific implementation manner thereof.
It should also be understood that the manner, the case, the category, and the division of the embodiments in the embodiments of the present application are merely for convenience of description, should not be construed as a particular limitation, and the features in the various manners, the categories, the cases, and the embodiments may be combined without contradiction.
It is also to be understood that in the various embodiments of the application, where no special description or logic conflict exists, the terms and/or descriptions between the various embodiments are consistent and may reference each other, and features of the various embodiments may be combined to form new embodiments in accordance with their inherent logic relationships.
Finally, it should be noted that: the foregoing description is merely illustrative of specific embodiments of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (11)

1. A method of displaying a card, the method comprising:
acquiring current position information of the electronic equipment;
determining that the electronic equipment enters a first geofence according to the current position information;
Inputting the current position information and the current time information of the electronic equipment into a preset model to obtain intention information; the intention information is used for indicating whether a user has intention of using a two-dimensional code in the first geofence, the preset model is trained according to historical behavior information, the historical behavior information comprises historical position information and historical time information of the electronic equipment when a historical behavior event occurs, the historical behavior event is an event related to using the two-dimensional code, and the historical behavior event comprises at least one of the following items: the method comprises the steps of enabling a user to enter a first geofence, enabling the user to trigger a two-dimensional code display event, enabling the user to hold the two-dimensional code for scanning, enabling the user to start riding and enabling the user to finish riding;
displaying a target card if the intention information indicates that the user has an intention to use a two-dimensional code within the first geofence; the target card is used for triggering and displaying the two-dimensional code, or the target card comprises the two-dimensional code.
2. The method according to claim 1, wherein the method further comprises:
displaying the target card if the intention information indicates that the user is uncertain whether the user has intention to use a two-dimensional code within the first geofence and the electronic device is determined to enter a second geofence according to the position information;
Wherein the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence.
3. The method according to claim 1, wherein the method further comprises:
determining not to display the target card if the intent information indicates that the user is not having intent to use a two-dimensional code within the first geofence and it is determined that the electronic device does not enter a second geofence based on the location information;
wherein the geographic area indicated by the second geofence is located within the geographic area indicated by the first geofence.
4. The method according to claim 1, wherein the method further comprises:
in the event that the intent information indicates that the user does not have intent to use a two-dimensional code within the first geofence, it is determined that the target card is not displayed.
5. The method according to claim 1, wherein the method further comprises:
processing the historical behavior information to obtain a training sample;
inputting the training sample into the preset model to obtain a pre-estimated result;
comparing the estimated result with an expected result;
And adjusting parameters of the preset model according to the comparison result to obtain the trained preset model.
6. The method of claim 5, wherein processing the historical behavior information comprises at least one of:
deleting repeated behavior information in the historical behavior information;
dividing each site according to site information indicated by the historical behavior information;
and carrying out user behavior enhancement processing on the historical behavior information, wherein the user behavior enhancement processing is used for acquiring behavior information related to the historical behavior event.
7. The method of any one of claims 1 to 6, wherein after the displaying the target card, the method further comprises:
re-acquiring the position information of the electronic equipment;
and canceling to display the target card when the electronic equipment is determined to leave the first geofence according to the re-acquired position information.
8. The method of any one of claims 1 to 6, wherein the first geofence is used to indicate a geographic area containing a subway station, and the two-dimensional code is a subway ride code.
9. An electronic device comprising a processor coupled to a memory, the processor configured to execute a computer program or instructions stored in the memory to cause the electronic device to implement the method of displaying a card as claimed in any one of claims 1 to 8.
10. A chip, characterized in that the chip is coupled to a memory, the chip being adapted to read and execute a computer program stored in the memory for implementing the display method of a card according to any one of claims 1 to 8.
11. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when run on an electronic device, causes the electronic device to perform the method of displaying a card according to any one of claims 1 to 8.
CN202210601099.5A 2022-05-30 2022-05-30 Card display method and electronic equipment Active CN116033343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210601099.5A CN116033343B (en) 2022-05-30 2022-05-30 Card display method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210601099.5A CN116033343B (en) 2022-05-30 2022-05-30 Card display method and electronic equipment

Publications (2)

Publication Number Publication Date
CN116033343A CN116033343A (en) 2023-04-28
CN116033343B true CN116033343B (en) 2023-10-20

Family

ID=86090067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210601099.5A Active CN116033343B (en) 2022-05-30 2022-05-30 Card display method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116033343B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117273830A (en) * 2023-11-23 2023-12-22 荣耀终端有限公司 Method for displaying card, electronic device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018019216A (en) * 2016-07-27 2018-02-01 野中 誠之 Portable apparatus connection management system, portable apparatus connection management method, server, and program
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN113691933A (en) * 2021-08-12 2021-11-23 荣耀终端有限公司 Use method and device of multilayer fence and storage medium
CN114038108A (en) * 2021-11-18 2022-02-11 深圳市雪球科技有限公司 Access control method and device and electronic equipment
CN114374764A (en) * 2022-03-20 2022-04-19 荣耀终端有限公司 Subway trip reminding method and electronic equipment
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6239184B1 (en) * 2017-08-29 2017-11-29 株式会社Cygames System, mobile terminal device, server, program and method for visit confirmation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018019216A (en) * 2016-07-27 2018-02-01 野中 誠之 Portable apparatus connection management system, portable apparatus connection management method, server, and program
CN109151168A (en) * 2018-07-20 2019-01-04 阿里巴巴集团控股有限公司 The switching method of code, device, mobile terminal and readable storage medium storing program for executing by bus
CN114489868A (en) * 2021-08-04 2022-05-13 荣耀终端有限公司 Subway trip detection method and electronic equipment
CN113691933A (en) * 2021-08-12 2021-11-23 荣耀终端有限公司 Use method and device of multilayer fence and storage medium
CN114038108A (en) * 2021-11-18 2022-02-11 深圳市雪球科技有限公司 Access control method and device and electronic equipment
CN114374764A (en) * 2022-03-20 2022-04-19 荣耀终端有限公司 Subway trip reminding method and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李文晖,杨文韬,张义川.铁路智慧箱管体系构建及应用研究.《铁道运输与经济》.2021,43-50. *

Also Published As

Publication number Publication date
CN116033343A (en) 2023-04-28

Similar Documents

Publication Publication Date Title
CN114880065B (en) Method, device, system and storage medium for controlling card display
CN111432339A (en) Near field communication card switching method and device, storage medium and electronic equipment
CN114463898A (en) Express delivery pickup reminding method and device
CN113364490B (en) NFC application calling method, electronic equipment and NFC device
CN102880991A (en) Student safety guarantee tracking system, student safety guarantee tracking method and student safety guarantee tracking device
CN116029719B (en) Payment service recommendation method, electronic device and storage medium
CN116033343B (en) Card display method and electronic equipment
CN107705576A (en) Vehicle fake-license detection method, server and storage medium
CN114257960A (en) Bluetooth connection method and device
CN113840279B (en) Analog card activation method, device, terminal and storage medium
EP4135359A1 (en) Device tracking detection method and electronic device
US20140354418A1 (en) Radio frequency identification notification system
CN116668580B (en) Scene recognition method, electronic device and readable storage medium
CN115038053B (en) Travel reminding method and electronic equipment
CN115134453B (en) Riding information display method and electronic equipment
CN114489449B (en) Display method and electronic equipment
CN115022461B (en) Subway trip detection method and electronic equipment
CN115022448B (en) Subway trip detection method and electronic equipment
CN115038032B (en) Subway trip detection method and electronic equipment
CN116709501A (en) Service scene identification method, electronic equipment and storage medium
CN111092808B (en) Information sharing method and terminal equipment
CN114973524A (en) Return processing method and device of shared equipment and computer equipment
CN115668989A (en) Scene recognition method and electronic equipment
CN113077370A (en) City function attribute identification method, equipment, medium and product of geographic tile
CN115705143A (en) Card information display method and electronic equipment

Legal Events

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