CN114928828A - Scene recognition method, device, terminal and storage medium - Google Patents

Scene recognition method, device, terminal and storage medium Download PDF

Info

Publication number
CN114928828A
CN114928828A CN202210491858.7A CN202210491858A CN114928828A CN 114928828 A CN114928828 A CN 114928828A CN 202210491858 A CN202210491858 A CN 202210491858A CN 114928828 A CN114928828 A CN 114928828A
Authority
CN
China
Prior art keywords
target
terminal
feature information
information
scene
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.)
Pending
Application number
CN202210491858.7A
Other languages
Chinese (zh)
Inventor
张化昀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210491858.7A priority Critical patent/CN114928828A/en
Publication of CN114928828A publication Critical patent/CN114928828A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B5/00Near-field transmission systems, e.g. inductive or capacitive transmission systems
    • H04B5/70Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
    • H04B5/77Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a scene recognition method, a scene recognition device, a terminal and a storage medium, and belongs to the technical field of short-distance communication. The method comprises the following steps: the method comprises the steps that under the condition that a terminal enters an identification range of an NFC card reader, first characteristic information of the NFC card reader is obtained, the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a barrier at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the barrier at the entrance, so that a target object enters the target place; matching the first characteristic information with a plurality of stored characteristic information; and when the plurality of stored feature information includes target feature information matched with the first feature information, entering a target scene corresponding to the target feature information, wherein the target scene is associated with the target place. The method and the device can accurately capture the action of the user entering the target place, and improve the reliability of scene recognition.

Description

Scene recognition method, device, terminal and storage medium
Technical Field
The embodiment of the application relates to the technical field of short-distance communication, in particular to a scene identification method, a scene identification device, a terminal and a storage medium.
Background
At present, the application of scene recognition is more and more extensive; for example, with the popularization of smart home devices, when a terminal identifies a smart home scene, the terminal can control the smart home devices to execute corresponding operations; for example, the terminal may control the intelligent light to open the light, control the intelligent curtain to close the curtain, and so on.
In the related art, scene recognition is performed through Wireless Fidelity (WiFi); for example, when the terminal is connected to a WiFi network in a home, it is determined that a smart home scene is recognized, and the smart home device is controlled to perform a corresponding operation.
Since the terminal searches for the WiFi network according to the preset period, when the terminal does not search for the WiFi network in the previous period and searches for the WiFi network in the next period, the user may have entered home. Therefore, the scene recognition based on WiFi has a hysteresis phenomenon, that is, the reliability of the scene recognition is low.
Disclosure of Invention
The embodiment of the application provides a scene identification method, a scene identification device, a terminal and a storage medium, which can improve the reliability of scene identification. The technical scheme is as follows:
in one aspect, a scene recognition method is provided, and the method includes:
the method comprises the steps that under the condition that a terminal enters an identification range of an NFC card reader for near field communication, first characteristic information of the NFC card reader is obtained, the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a checkpoint at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the checkpoint at the entrance so that a target object enters the target place;
matching the first feature information with a plurality of stored feature information, wherein the feature information is feature information of a set scene;
and entering a target scene corresponding to the target characteristic information under the condition that the plurality of stored characteristic information includes target characteristic information matched with the first characteristic information, wherein the target scene is associated with the target place.
In another aspect, a scene recognition apparatus is provided, the apparatus including:
the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a barrier at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the barrier at the entrance so that a target object enters the target place;
the matching module is used for matching the first characteristic information with a plurality of stored characteristic information, wherein the plurality of characteristic information are characteristic information of a set scene;
an entering module, configured to enter a target scene corresponding to the target feature information when the stored plurality of feature information includes target feature information that matches the first feature information, where the target scene is associated with the target location.
In another aspect, a terminal is provided that includes a processor and a memory; the memory stores at least one program code for execution by the processor to implement the scene recognition method as described in the above aspect.
In another aspect, a computer-readable storage medium is provided, which stores at least one program code for execution by a processor to implement the scene recognition method according to the above aspect.
In another aspect, a computer program product is provided, which stores at least one program code for execution by a processor to implement the scene recognition method as described in the above aspect.
In the embodiment of the application, the NFC card reader is installed at the entrance of the target place, and the terminal enters the identification range of the NFC card reader, which indicates that the terminal is trying to swipe a card at the moment, and directly represents the action of the user entering the target place.
Drawings
Fig. 1 is a schematic diagram illustrating an environment for implementing a scene recognition method according to an exemplary embodiment of the present application;
FIG. 2 illustrates a flow chart of a method of scene recognition as illustrated in an exemplary embodiment of the present application;
FIG. 3 illustrates a flow chart of a scene recognition method shown in an exemplary embodiment of the present application;
FIG. 4 illustrates a flow chart of a method of scene recognition as illustrated in an exemplary embodiment of the present application;
FIG. 5 illustrates a flow chart of a method of scene recognition as illustrated in an exemplary embodiment of the present application;
fig. 6 is a block diagram illustrating a configuration of a scene recognition apparatus according to an exemplary embodiment of the present application;
fig. 7 shows a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. In addition, the relevant data referred to in the present application may be data authorized by the user or sufficiently authorized by each party.
It should be noted that information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.), and signals referred to in this application are authorized by the user or sufficiently authorized by various parties, and the collection, use, and processing of the relevant data is required to comply with relevant laws and regulations and standards in relevant countries and regions. For example, the characteristic information, service, scene, historical motion track, travel information, etc. referred to in this application are obtained under sufficient authorization.
Referring to fig. 1, a schematic diagram of an implementation environment of a scene recognition method according to an exemplary embodiment of the present application is shown; the implementation environment includes: a terminal 101 and a Near Field Communication (NFC) card reader 102, where the NFC card reader 102 is installed at an entrance of a target site and is used to control opening and closing of a checkpoint set at the entrance of the target site; the terminal 101 can communicate with the NFC reader 102 through its NFC chip included therein to request the NFC reader 102 to open a gate at an entrance, thereby enabling a target object to enter a target place. The target object may be a user or a robot, etc.
Wherein, the target place can be any place; for example, the target site is a residence, a parking lot, a transportation site or a vehicle, and the transportation site may be a passenger station, a train station, a high-speed rail station, an airport, or the like. For example, in the case where the target site is a residential site, the NFC reader 102 may be installed at a door of a home, a door of a building, a doorway of a cell, or the like. In the case where the target site is a parking lot, then the NFC reader 102 may be installed at a gate entrance of the parking lot. In the case where the target site is a transit station, then the NFC reader 102 may be installed at the gate entrance of the transit station. In the case where the target site is a vehicle, then the NFC reader 102 may be mounted at the door handle of the vehicle. The terminal 101101 is at least one of a mobile phone, a tablet computer, a watch, a bracelet and the like.
Referring to fig. 2, a flowchart illustrating a scene recognition method according to an exemplary embodiment of the present application is shown. The method comprises the following steps:
step S201: under the condition that the terminal enters the identification range of the NFC card reader, the terminal acquires first characteristic information of the NFC card reader.
The NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a barrier at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal so as to request the NFC card reader to open the barrier at the entrance, so that a target object enters the target place.
Under the condition that the terminal enters the identification range of the NFC card reader, the terminal starts an NFC intelligent terminal identification (STR) function, and first characteristic information of the NFC card reader is identified through the NFC STR function. The first characteristic information may be any information used for representing the characteristics of the NFC card reader; for example, the first feature information may be a polling (polling) feature.
It should be noted that the communication reliability of the NFC STR function is high, and NFC is near field communication, which does not cause instability due to electromagnetic wave radiation in the air; therefore, the reliability can be improved by performing scene recognition through the NFC STR function.
Step S202: and the terminal matches the first characteristic information with a plurality of stored characteristic information, wherein the plurality of characteristic information are the characteristic information of the set scene.
The terminal determines the matching degree between the first characteristic information and the stored characteristic information to obtain a plurality of matching degrees; determining that the stored plurality of feature information includes target feature information matched with the first feature information under the condition that the target matching degree exists in the plurality of matching degrees, wherein the target matching degree is the matching degree exceeding the preset matching degree, and the target feature information is the feature information corresponding to the target matching degree, and executing the step S203; and when the target matching degree does not exist in the plurality of matching degrees, determining that the plurality of stored feature information do not include the target feature information, and ending.
Another point to be described is that, when there is no target matching degree in the multiple matching degrees, the terminal ends the scene recognition process and enters an unlocking process, that is, the terminal communicates with the NFC card reader based on the NFC chip to request the NFC card reader to open a checkpoint at an entrance of a target location, so that the target object enters the target location.
Step S203: and under the condition that the stored characteristic information comprises target characteristic information matched with the first characteristic information, the terminal enters a target scene corresponding to the target characteristic information, and the target scene is associated with a target place.
The terminal sets a corresponding relation between the characteristic information and the scene in advance; correspondingly; after the terminal determines the target characteristic information, the terminal determines a target scene corresponding to the target characteristic information from the corresponding relation between the characteristic information and the scene based on the target characteristic information, and then the terminal enters the target scene.
It should be noted that since the NFC chip is provided in a general terminal, the first feature information of the NFC card reader is obtained through the NFC chip, and scene recognition is performed based on the first feature information, and updating and iteration are not required to be performed on the terminal, which reduces the cost of scene recognition.
In the embodiment of the application, the NFC card reader is installed at the entrance of the target place, and the terminal enters the identification range of the NFC card reader, which indicates that the terminal is trying to swipe a card at the moment, and directly represents the action of the user entering the target place.
Referring to fig. 3, a flowchart illustrating a scene recognition method according to an exemplary embodiment of the present application is shown. The method comprises the following steps:
step S301: under the condition that the terminal enters the identification range of the NFC card reader, the terminal acquires first characteristic information of the NFC card reader.
The NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a checkpoint at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the checkpoint at the entrance, so that a target object enters the target place. The target place is a residence, a parking lot, a transportation site or a vehicle, and the like. The transportation station can be a passenger station, a railway station, a high-speed rail station or an airport and the like.
And under the condition that the terminal enters the identification range of the NFC card reader, the terminal starts the STR function of the NFC, and the first characteristic information of the NFC card reader is identified through the STR function. The first feature information may be any information used for representing the features of the NFC card reader; for example, the first feature information may be a polling (polling) feature.
The point to be noted is that the communication reliability of the NFC STR function is high, and NFC is near field communication, so that the problem of instability due to electromagnetic wave air radiation does not exist; therefore, the reliability can be improved by performing scene recognition through the NFC STR function.
In a possible implementation manner, the NFC chip of the terminal is in an on state, so that whether the terminal enters the identification range of the NFC card reader or not is determined based on the NFC chip, and thus the timeliness of identification is improved. In another possible implementation manner, the NFC chip of the terminal is in an off state first, and the terminal switches the NFC chip from the off state to the on state only when the terminal is close to the entrance of the target location, so that power consumption of the terminal is saved. In another possible implementation manner, the NFC chip of the terminal is in an off state first, and when the terminal detects a gesture operation (for example, a gesture operation of raising the terminal) for turning on the NFC chip, the terminal switches the NFC chip from the off state to the on state, so that power consumption of the terminal is saved.
Wherein, the terminal determines whether the terminal is close to the entrance of the target place based on the Positioning mode of the Global Positioning System (GPS), and the process is as follows: the terminal positions the position of the terminal based on the GPS, and determines the distance between the terminal and the entrance of the target place based on the position of the terminal and the position of the entrance of the target place; determining that the terminal is close to an entrance of a target place under the condition that the distance is smaller than a first preset distance; and under the condition that the distance is not less than the first preset distance, determining that the terminal is not close to the entrance of the target place.
It should be noted that the target site is a residence, a parking lot, a transportation site, or a vehicle; when the target place is a residence, a parking lot or a vehicle, the user generally enters the target place during the off-duty time; when the destination location is a transportation station, the user generally enters the destination location at a corresponding time when purchasing tickets in advance. Correspondingly, the terminal may control the turning on of the NFC chip in combination with the time information or the riding information, and the process may include at least one of the following implementation manners:
the terminal determines a first time range based on the historical motion track of the target object, wherein the first time range is a time range in which the target object is likely to enter a target place; and under the condition that the current moment is within the first time range, the terminal switches the NFC from the off state to the on state.
The terminal determines a second time range based on the travel information of the target object, wherein the second time range is a time range in which the target object is likely to enter the target place; and under the condition that the current moment is within the second time range, the terminal switches the NFC from the off state to the on state.
Step S302: and the terminal matches the first characteristic information with a plurality of stored characteristic information, wherein the plurality of characteristic information are the characteristic information of the set scene.
The terminal comprises an application processor, and the application processor stores the characteristic information of the set scene. After the terminal acquires the first feature information, the first feature information is reported to the application processor, the application processor matches the first feature information with the stored feature information and returns a matching result to the terminal, and the matching result is used for indicating whether the stored feature information comprises target feature information matched with the first feature information or not.
In a possible implementation manner, the terminal directly matches the characteristic information, so that a matching result is determined; in another possible implementation manner, the terminal may allocate index information to the feature information, where the index information is used to uniquely identify the feature information, but the index information is simpler than the feature information, so that matching of the feature information is performed based on the simple index information, the calculation amount of feature matching can be reduced, and matching efficiency is improved. Correspondingly, the step of the terminal matching the first feature information with the stored plurality of feature information may be implemented by the following steps (1) to (3), including:
(1) the terminal determines first index information corresponding to the first characteristic information, wherein the first index information is used for uniquely identifying the first characteristic information, but the complexity of the first index information is lower than that of the first characteristic information.
The first index information may be a number or description information of a target location corresponding to the first feature information, and in the embodiment of the present application, a specific form of the first index information is not particularly limited. For example, if the index information is represented by a number, the first index information corresponding to the first feature information is shown in table 1 below:
TABLE 1
Target site Residential area Parking lot Traffic station Vehicle with a steering wheel
First index information corresponding to first characteristic information 0 1 2 3
For another example, if the index information is represented by description information, the first index information corresponding to the first feature information is shown in table 2 below:
TABLE 2
Target site Residential area Parking lot Traffic station Vehicle with a steering wheel
First index information corresponding to first characteristic information Home-use Parking lot High-speed rail station Vehicle with a steering wheel
(2) The terminal matches the first index information with a plurality of stored index information, the plurality of stored index information are index information corresponding to the plurality of characteristic information, and one index information corresponds to one characteristic information.
For example, if the index information is represented by a numeral and the target location is a residence, the first index information corresponding to the first feature information is 0, and the stored index information is 0, 1, 2, and 3; the terminal directly matches 0 with the stored 0, 1, 2, and 3.
If the index information is represented by the description information and the target place is a residence, the first index information corresponding to the first feature information is 'home', and the stored index information is 'home', 'parking lot', 'high-speed rail station' and 'vehicle'; the terminal directly matches the stored "home", "parking lot", "high-speed rail station" and "vehicle".
(3) When the plurality of index information includes target index information matched with the first index information, the terminal determines that the plurality of stored feature information includes target feature information, and the target feature information is feature information corresponding to the target index information.
If the stored plurality of feature information includes target feature information matching the first feature information, step S303 is executed; and when the target index information is not included in the plurality of index information, the terminal determines that the target characteristic information is not included in the plurality of stored characteristic information, and the operation is finished.
In another possible implementation manner, the terminal screens out second feature information from the stored plurality of feature information, and matches the first feature information with the screened out second feature information, so as to determine whether the target feature information exists. The number of the second characteristic information is small; therefore, the first feature information is matched with the screened second feature information, the calculation amount of feature matching can be reduced, and the matching efficiency is improved. The step of screening out the second feature information from the stored plurality of feature information by the terminal may be:
the terminal screens out second characteristic information from the plurality of second characteristic information based on the current position of the terminal and the positions corresponding to the plurality of characteristic information, wherein the position corresponding to any one characteristic information is the position of the NFC card reader corresponding to the characteristic information; the distance between the position corresponding to the second characteristic information and the current position is smaller than a second preset distance.
Step S303: and under the condition that the stored plurality of feature information includes target feature information matched with the first feature information, the terminal communicates with the NFC card reader based on the NFC chip to request the NFC card reader to perform identity authentication on the NFC chip.
The terminal sends the identity information of the NFC chip to the NFC card reader based on the communication connection between the NFC chip and the NFC card reader; under the condition that the NFC card reader determines that the terminal has the authority to enter the target place based on the identity information, the NFC card reader sends a confirmation message to the terminal, wherein the confirmation message is used for indicating that the identity authentication of the NFC chip is passed; and under the condition that the NFC card reader determines that the terminal does not have the authority to enter the target place based on the identity information, the NFC card reader sends a negative message to the terminal, wherein the negative message is used for indicating that the identity verification of the NFC chip does not pass. Correspondingly, when the terminal receives the confirmation message sent by the NFC card reader, the terminal determines that the NFC card reader passes the authentication of the NFC chip, and the step S304 is executed; and under the condition that the terminal receives the negative message sent by the NFC chip, the terminal determines that the NFC card reader does not pass the authentication of the NFC chip, and the process is finished.
Step S304: and under the condition that the NFC card reader passes the authentication of the NFC chip, the terminal enters a target scene corresponding to the target characteristic information, and the target scene is associated with a target place.
The target place is a residence, a parking lot, a transportation site or a vehicle, etc. The terminal sets a corresponding relation between the characteristic information and the scene in advance; correspondingly; after the terminal determines the target characteristic information, the terminal determines a target scene corresponding to the target characteristic information from the corresponding relation between the characteristic information and the scene based on the target characteristic information, and then the terminal enters the target scene.
The first implementation mode comprises the following steps: if the target place is a residence, the target scene is used for controlling the intelligent household equipment in the residence; correspondingly, the step of the terminal entering the target scene corresponding to the target characteristic information may be: the terminal controls the intelligent household equipment to execute the first target operation. For example, the smart home device is at least one of a smart router and a smart lamp; the terminal controls the intelligent router to be in the starting state and/or controls the intelligent lamp to turn on the light.
The terminal can control the smart home equipment to execute a first target operation and can also control the smart home equipment to execute a fourth target operation; for example, the terminal turns on the WiFi module, sets to a mute mode, or releases the mute mode, etc.
The second implementation mode comprises the following steps: if the target place is a parking lot, the target scene is used for controlling the content displayed by the terminal; correspondingly, the step of the terminal entering the target scene corresponding to the target feature information may be: the terminal displays an electronic map of the parking lot, where the electronic map may be a two-dimensional (2D) map or a three-dimensional (3D) map, and in this embodiment, a display format of the map is not particularly limited.
The third implementation mode comprises the following steps: if the target scene is a transportation station, the target scene is used for controlling the content displayed by the terminal; correspondingly, the step of the terminal entering the target scene corresponding to the target characteristic information may be: and the terminal displays the riding information corresponding to the current login account at the transportation station, wherein the riding information comprises at least one item of train number information, time information, seat information and platform information. The terminal can display the riding information and navigation information, wherein the navigation information is the navigation information from the current position of the terminal to the platform information.
The terminal can display the riding information in one screen, or pop up a display frame on the terminal, and the riding information is displayed in the display frame. In the embodiment of the present application, a specific manner of displaying the riding information by the terminal is also not specifically limited.
The fourth implementation mode comprises the following steps: if the target place is a vehicle, the target scene is used for controlling the vehicle; correspondingly, the step of the terminal entering the target scene corresponding to the target feature information may be: the terminal establishes a short-range communication connection with a vehicle-mounted terminal of the vehicle, and controls the vehicle-mounted terminal to execute a second target operation based on the short-range communication connection.
The short-distance communication connection can be a Bluetooth connection or a WiFi connection; the step of controlling the vehicle-mounted terminal to execute the second target operation by the terminal comprises at least one of the following implementation modes:
the terminal controls the vehicle-mounted terminal to open the navigation application;
and the terminal controls the vehicle-mounted terminal to open the audio playing application.
One point to be noted is that, if the target location is a vehicle, the target scene is used for controlling the vehicle; correspondingly, the step of the terminal entering the target scene corresponding to the target feature information may be: the terminal establishes a short-range communication connection with an in-vehicle terminal of the vehicle, and controls an in-vehicle device of the vehicle to perform a third target operation based on the short-range communication connection. The in-vehicle device may be a vehicle seat, and accordingly, the step of the terminal controlling the in-vehicle device of the vehicle to perform the third target operation may be: and the terminal controls the vehicle seat to heat.
The terminal is provided with a corresponding relation between the characteristic information and the scene in advance; moreover, the corresponding relation can be agreed with a user through a scene configuration interface; correspondingly, the process of setting the corresponding relationship between the feature information and the scene by the terminal may be:
the terminal displays a scene configuration interface, the scene configuration interface is used for configuring the corresponding relation between the characteristic information and the scene, and the scene configuration interface comprises the characteristic information of the NFC card reader identified by the terminal history and the place information of the place where the NFC card reader is located; based on the location information, the configured scene is obtained, and the corresponding relation between the characteristic information and the scene is established.
In the embodiment of the application, a user can configure the corresponding relation between the feature information and the scene through the scene configuration interface, so that personalized setting can be realized.
In the embodiment of the application, the NFC card reader is installed at the entrance of the target place, and the terminal enters the identification range of the NFC card reader, which indicates that the terminal is trying to swipe a card at the moment, and directly represents the action of the user entering the target place.
Referring to fig. 4, a flowchart illustrating a scene recognition method according to an exemplary embodiment of the present application is shown. The method comprises the following steps:
step S401: under the condition that the terminal enters the identification range of the NFC card reader, the terminal acquires first characteristic information of the NFC card reader.
Step S402: and the terminal matches the first characteristic information with the stored characteristic information, wherein the stored characteristic information is the characteristic information of the set scene.
It should be noted that steps S401 to S402 are the same as steps S301 and S302, respectively, and are not described again here.
Step S403: and under the condition that the stored characteristic information comprises target characteristic information matched with the first characteristic information, the terminal acquires a first duration of a service corresponding to a target scene, and the first duration is the response duration of the service.
The terminal sets a corresponding relation between the scene corresponding service and the first time length in advance; correspondingly, the terminal acquires the first duration of the service corresponding to the target place from the corresponding relation between the service and the first duration based on the service corresponding to the target scene.
In a first implementation manner, a target place is a residence, and a target scene is used for controlling intelligent household equipment included in the residence; the service is the service provided by the intelligent household equipment; for example, the smart home device is an intelligent router or an intelligent lamp; the time required for the operation of opening the intelligent router or opening the intelligent lamp is short, so that the first time length of the service corresponding to the target scene can be set to be short; for example, the first time period is 2 seconds, 5 seconds, or the like.
In a second implementation mode, a target place is a parking lot, and a target scene is used for controlling contents displayed by a terminal; the service is a service corresponding to the electronic map of the parking lot displayed by the terminal; the operation of displaying the electronic map by the terminal requires shorter time; therefore, the first duration of the service corresponding to the target scene can be set to be shorter duration; for example, the first time period is 3 seconds, 4 seconds, or the like.
In the third implementation mode, the target site is a transportation station, and the target scene is used for controlling the content displayed by the terminal; the service is a service corresponding to the riding information displayed by the terminal; the operation time for displaying the riding information by the terminal is short; therefore, the first duration of the service corresponding to the target scene can be set to be a shorter duration; for example, the first time period is 2 seconds, 3 seconds, or the like.
In a fourth implementation mode, the target place is a vehicle, and the target scene is used for controlling the vehicle; the service is that the vehicle-mounted terminal executes the service corresponding to the second target operation or the vehicle-mounted device executes the service corresponding to the third target operation; since the time required for the in-vehicle terminal to perform the second target operation is also short, the first time period may be set to a short time period; for example, the first duration is 2 seconds or 3 seconds; the time required for the in-vehicle device to perform the third target operation is longer, and therefore, the first period of time can be set to a longer period of time; for example, the first period of time is 5 minutes or 10 minutes, etc.
Step S404: and the terminal acquires a second time length, wherein the second time length is the time length required by the target object from the entrance of the target place to the acquisition of the service.
The terminal determines the second duration based on a distance between a location at an entrance of the target location and a location corresponding to providing the service, and a moving speed of the target object. And the terminal determines the ratio of the distance to the moving speed as a second time length.
Wherein the moving speed of the target object can be determined based on the type of the target place; accordingly, the step of the terminal determining the moving speed of the target object may be: and acquiring the moving speed matched with the type of the target place. For example, if the target location is a residential area, the moving speed of the target object is the walking speed of the user. If the target location is a parking lot, the moving speed of the target object is the traveling speed of the vehicle, and the traveling speed is not higher than the speed limit of the parking lot. If the target site is a transportation station, the moving speed of the target object is the walking speed of the user. If the target location is a vehicle, the moving speed of the target object is the walking speed of the user.
Step S405: the terminal determines a time stamp based on the first duration and the second duration, wherein the time stamp is the starting time of entering the target scene.
Under the condition that the first time length is longer than the second time length, the time length required for responding to the service is longer, at the moment, the target scene needs to be entered as soon as possible, and the terminal determines the time stamp as the current time; when the first duration is equal to the second duration, it is described that the duration required for responding to the service is the same as the duration required for the target object to reach the location of the service, and the terminal determines the time of the first duration (or the second duration) after the current time as the timestamp. And under the condition that the first time length is less than the second time length, the time length required for the target object to reach the place where the service is located is longer, the target object can enter the target place after a while, the terminal determines the time length difference between the second time length and the first time length, and the time of the time length difference after the current time is determined as the time stamp.
Step S406: and the terminal enters the target scene at the timestamp.
In the embodiment of the application, the starting time of entering the target scene is determined firstly, and the time of entering the target scene at the starting time can be accurately controlled, so that the increase of energy consumption caused by too early entering the target scene can be avoided, and the condition that a user cannot timely enjoy the service corresponding to the target scene can be avoided.
Referring to fig. 5, a flowchart illustrating a scene recognition method according to an exemplary embodiment of the present application is shown. The method comprises the following steps:
step S501: and under the condition that the terminal enters the identification range of the NFC card reader, the terminal communicates with the NFC card reader based on the NFC chip to request the NFC card reader to carry out identity authentication on the NFC chip.
It should be noted that the step of the terminal communicating with the NFC card reader based on the NFC chip to request the NFC card reader to perform authentication on the NFC chip is the same as the step of the terminal communicating with the NFC card reader based on the NFC chip to request the NFC card reader to perform authentication on the NFC chip in step S303, and details are not repeated here.
Step S502: and under the condition that the NFC card reader passes the identity authentication of the NFC chip, the terminal acquires first characteristic information of the NFC card reader.
It should be noted that the step of acquiring the first feature information of the NFC card reader by the terminal is the same as the step of "acquiring the first feature information of the NFC card reader by the terminal" in step S301, and is not described herein again.
Step S503: and the terminal matches the first characteristic information with the stored characteristic information, wherein the stored characteristic information is the characteristic information of the set scene.
It should be noted that step S503 is the same as step S302, and is not repeated herein.
Step S504: and under the condition that the stored characteristic information comprises target characteristic information matched with the first characteristic information, the terminal enters a target scene corresponding to the target characteristic information, and the target scene is associated with a target place.
It should be noted that the step of the terminal entering the target scene corresponding to the target feature information is the same as the step of "the terminal entering the target scene corresponding to the target feature information" in step S304, and is not described herein again.
In the examples of the present application. The terminal requests the NFC card reader to authenticate the NFC chip, and scene recognition is carried out based on the first characteristic information of the NFC card reader under the condition that authentication is passed, so that the situation that the terminal enters a target scene is avoided, but the phenomenon that a target object cannot acquire a service corresponding to the target scene due to authentication failure of the NFC chip occurs, and energy consumption is wasted. Therefore, the energy consumption can be saved.
Referring to fig. 6, a block diagram of a scene recognition apparatus according to an exemplary embodiment of the present application is shown. The scene recognition means may be implemented as all or part of a processor, in software, hardware or a combination of both. The device includes:
the terminal comprises an acquisition module 601, a detection module and a processing module, wherein the acquisition module 601 is used for acquiring first characteristic information of an NFC card reader under the condition that the terminal enters an identification range of the NFC card reader, the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a checkpoint at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the checkpoint at the entrance so that a target object enters the target place;
a matching module 602, configured to match the first feature information with a plurality of stored feature information, where the plurality of feature information are feature information of a set scene;
an entering module 603, configured to enter a target scene corresponding to the target feature information when the stored plurality of feature information includes target feature information that matches the first feature information, where the target scene is associated with the target location.
In one possible implementation, the entering module 603 includes:
the first communication unit is used for communicating with the NFC card reader based on the NFC chip so as to request the NFC card reader to carry out identity authentication on the NFC chip;
and the first entering unit is used for entering a target scene corresponding to the target characteristic information under the condition that the NFC card reader passes the authentication of the NFC chip.
In another possible implementation, the entering module 603 includes:
the first obtaining unit is used for obtaining a first duration of a service corresponding to a target scene, wherein the first duration is a response duration of the service;
the second obtaining unit is used for obtaining a second time length, wherein the second time length is the time length from the entrance of the target place to the time length required for obtaining the service of the target object;
the first determining unit is used for determining a timestamp based on the first time length and the second time length, wherein the timestamp is the starting time of entering the target scene;
and the second entering unit is used for entering the target scene at the time stamp.
In another possible implementation manner, the entry module 603 includes any one of the following units:
the target place is a residence, and the target scene is used for controlling intelligent household equipment included in the residence; the first control unit is used for controlling the intelligent household equipment to execute a first target operation;
the target place is a parking lot, and the target scene is used for controlling the content displayed by the terminal; the display unit is used for displaying an electronic map of the parking lot;
the target site is a transportation station, and the target site is used for controlling the content displayed by the terminal and displaying the riding information corresponding to the current login account in the transportation station;
the target place is a vehicle, and the target scene is used for controlling the vehicle; and a second control unit for establishing a short-range communication connection with the in-vehicle terminal in the vehicle, and controlling the in-vehicle terminal to perform the second target operation or controlling the in-vehicle device in the vehicle to perform the third target operation based on the short-range communication connection.
In another possible implementation manner, the matching module 602 includes:
the second determining unit is used for determining first index information corresponding to the first characteristic information, wherein the first index information is used for uniquely identifying the first characteristic information, but the complexity of the first index information is lower than that of the first characteristic information;
the matching unit is used for matching the first index information with a plurality of stored index information, the plurality of stored index information are index information corresponding to a plurality of characteristic information, and one index information corresponds to one characteristic information;
and a third determining unit, configured to determine that the stored plurality of feature information includes target feature information, and the target feature information is feature information corresponding to the target index information, when the plurality of index information includes target index information matching the first index information.
In another possible implementation manner, the obtaining module 601 includes:
the second communication unit is used for communicating with the NFC card reader based on the NFC chip so as to request the NFC card reader to carry out identity authentication on the NFC chip;
and the third acquiring unit is used for acquiring the first characteristic information of the NFC card reader under the condition that the NFC card reader passes the identity verification of the NFC chip.
It should be noted that: in the scene recognition method provided in the foregoing embodiment, only the division of the functional modules is illustrated in the example, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules to complete all or part of the functions described above. In addition, the scene recognition device and the scene recognition method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments, and are not described herein again.
In the embodiment of the application, the NFC card reader is installed at the entrance of the target place, and the terminal enters the identification range of the NFC card reader, which indicates that the terminal is trying to swipe a card at the moment, and this directly represents the action of the user entering the target place.
Referring to fig. 7, a block diagram of a terminal according to an exemplary embodiment of the present application is shown. The terminal 700 may be a smart phone, a tablet computer, or the like having a function of controlling other devices. The terminal 700 in the present application may include one or more of the following components: a processor 710, a memory 720.
Processor 710 may include one or more processing cores. The processor 710 connects various parts within the overall terminal 700 using various interfaces and lines, performs various functions of the terminal 700 and processes data by operating or executing a program code, a program, a code set, or a program code set stored in the memory 720 and calling data stored in the memory 720. Alternatively, the processor 710 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 710 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Neural-Network Processing Unit (NPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display screen; the NPU is used for realizing an Artificial Intelligence (AI) function; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 710, but may be implemented by a single chip.
The Memory 720 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). Optionally, the memory 720 includes a non-transitory computer-readable medium. The memory 720 may be used to store program code, programs, code, sets of code, or sets of program codes. The memory 720 may include a stored program area and a stored data area, wherein the stored program area may store program codes for implementing an operating system, program codes for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), program codes for implementing the various method embodiments described above, and the like; the storage data area may store data (such as audio data, a phonebook) created according to the use of the terminal 700, and the like.
In addition, those skilled in the art will appreciate that the configuration of terminal 700 depicted in the above-described figures is not meant to be limiting with respect to terminal 700, and that terminal 700 may include more or less components than those shown, or some components may be combined, or a different arrangement of components. For example, the terminal 700 further includes a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (Wi-Fi) module, a power supply, a bluetooth module, and other components, which are not described herein again.
The present embodiments also provide a computer-readable medium, in which at least one program code is stored, and the at least one program code is loaded and executed by the processor to implement the scene recognition method as shown in the above embodiments.
Embodiments of the present application further provide a computer program product, where at least one program code is stored, and the at least one program code is loaded and executed by the processor to implement the scene recognition method as shown in the above embodiments.
In some embodiments, the computer program according to the embodiments of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or may be executed on multiple computer devices distributed at multiple sites and interconnected by a communication network, and the multiple computer devices distributed at the multiple sites and interconnected by the communication network may constitute a block chain system.
Those skilled in the art will recognize that the functionality described in the embodiments of the present application may be implemented in hardware, software, firmware, or any combination thereof, in one or more of the examples described above. When implemented in software, the functions may be stored on or transmitted over as one or more program codes on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for scene recognition, the method comprising:
the method comprises the steps that under the condition that a terminal enters an identification range of an NFC card reader for near field communication, first characteristic information of the NFC card reader is obtained, the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a checkpoint at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the checkpoint at the entrance so that a target object enters the target place;
matching the first feature information with a plurality of stored feature information, wherein the feature information is feature information of a set scene;
and under the condition that the plurality of stored feature information includes target feature information matched with the first feature information, entering a target scene corresponding to the target feature information, wherein the target scene is associated with the target place.
2. The method according to claim 1, wherein the entering of the target scene corresponding to the target feature information includes:
communicating with the NFC reader based on the NFC chip to request the NFC reader to authenticate the NFC chip;
and entering a target scene corresponding to the target characteristic information under the condition that the NFC card reader passes the identity authentication of the NFC chip.
3. The method according to claim 1 or 2, wherein the entering of the target scene corresponding to the target feature information includes:
acquiring a first time length of a service corresponding to the target scene, wherein the first time length is a response time length of the service;
acquiring a second time length, wherein the second time length is the time length required by the target object from an entrance of a target place to the service acquisition;
determining a timestamp based on the first duration and the second duration, wherein the timestamp is a starting time of entering the target scene;
and entering the target scene at the time stamp.
4. The method according to claim 1, wherein the entering into the target scene corresponding to the target feature information includes any one of the following implementation manners:
the target place is a residence, and the target scene is used for controlling intelligent household equipment included in the residence; controlling the intelligent household equipment to execute a first target operation;
the target place is a parking lot and is used for controlling the content displayed by the terminal; displaying an electronic map of the parking lot;
the target site is a transportation station, and the target site is used for controlling the content displayed by the terminal and displaying riding information corresponding to the current login account in the transportation station;
the target site is a vehicle, and the target scene is used for controlling the vehicle; a short-range communication connection is established with an in-vehicle terminal in the vehicle, and the in-vehicle terminal is controlled to perform a second target operation or an in-vehicle device in the vehicle is controlled to perform a third target operation based on the short-range communication connection.
5. The method of claim 1, wherein matching the first feature information with a stored plurality of feature information comprises:
determining first index information corresponding to the first feature information, wherein the first index information is used for uniquely identifying the first feature information, but the complexity of the first index information is lower than that of the first feature information;
matching the first index information with a plurality of stored index information, wherein the plurality of stored index information are index information corresponding to the plurality of characteristic information, and one index information corresponds to one characteristic information;
and under the condition that the plurality of pieces of index information comprise target index information matched with the first index information, determining that the plurality of pieces of stored feature information comprise the target feature information, and the target feature information is feature information corresponding to the target index information.
6. The method according to claim 1, wherein the obtaining first feature information of the NFC reader includes:
communicating with the NFC reader based on the NFC chip to request the NFC reader to authenticate the NFC chip;
and acquiring first characteristic information of the NFC card reader under the condition that the NFC card reader passes the identity authentication of the NFC chip.
7. A scene recognition apparatus, characterized in that the apparatus comprises:
the NFC card reader is installed at an entrance of a target place and used for controlling opening and closing of a barrier at the entrance, and the terminal is used for communicating with the NFC card reader through an NFC chip included in the terminal to request the NFC card reader to open the barrier at the entrance so that a target object enters the target place;
the matching module is used for matching the first characteristic information with a plurality of stored characteristic information, wherein the plurality of characteristic information are characteristic information of a set scene;
an entering module, configured to enter a target scene corresponding to the target feature information when the stored plurality of feature information includes target feature information that matches the first feature information, where the target scene is associated with the target location.
8. A terminal, characterized in that the terminal comprises a processor and a memory; the memory stores at least one program code for execution by the processor to implement the scene recognition method of any of claims 1 to 6.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores at least one program code for execution by a processor to implement the scene recognition method according to any one of claims 1 to 6.
10. A computer program product having at least one program code stored therein, the at least one program code being loaded into and executed by a processor to implement a scene recognition method as claimed in any one of claims 1 to 6.
CN202210491858.7A 2022-05-07 2022-05-07 Scene recognition method, device, terminal and storage medium Pending CN114928828A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210491858.7A CN114928828A (en) 2022-05-07 2022-05-07 Scene recognition method, device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210491858.7A CN114928828A (en) 2022-05-07 2022-05-07 Scene recognition method, device, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114928828A true CN114928828A (en) 2022-08-19

Family

ID=82807520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210491858.7A Pending CN114928828A (en) 2022-05-07 2022-05-07 Scene recognition method, device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114928828A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155427A (en) * 2023-10-30 2023-12-01 北京紫光青藤微系统有限公司 Application running method for NFC device, NFC device and storage medium
CN117236350A (en) * 2023-11-13 2023-12-15 北京紫光青藤微系统有限公司 Method and device for displaying NFC analog card, electronic equipment and medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155427A (en) * 2023-10-30 2023-12-01 北京紫光青藤微系统有限公司 Application running method for NFC device, NFC device and storage medium
CN117155427B (en) * 2023-10-30 2024-02-23 北京紫光青藤微系统有限公司 Application running method for NFC device, NFC device and storage medium
CN117236350A (en) * 2023-11-13 2023-12-15 北京紫光青藤微系统有限公司 Method and device for displaying NFC analog card, electronic equipment and medium

Similar Documents

Publication Publication Date Title
CN110176152B (en) Method and system for using sensors in a parked vehicle
CN107835500B (en) Identifying vehicles using mobile devices
CN114928828A (en) Scene recognition method, device, terminal and storage medium
CN104590208B (en) Method, system and the equipment for the notice being approached for providing vehicle
CN103825630B (en) Device motion and near-field communication is utilized to control the method for vehicle interface
CN104346424B (en) There is provided using the information of generation to be presented on the method for motor vehicle, system and equipment
CN103685447B (en) Vehicle computer system and method for providing contextual applications on a mobile device
US20190037034A1 (en) Mobile terminal and method for controlling the same
US9949267B2 (en) Vehicle telematics services in coordination with a handheld wireless device
CN104751031A (en) Information interaction control method and device
CN105763596A (en) Peer To Peer Car Sharing Social-graph Configurator
CN104871147A (en) Detecting a user-to-wireless device association in a vehicle
CN108399792A (en) A kind of automatic driving vehicle preventing collision method, device and electronic equipment
CN107182035A (en) Wireless vehicle charging communication system and method using location-based services
CN107042803A (en) The Vehicular system of wearable device control
CN108377260B (en) System and method for displaying vehicle information
US20170102697A1 (en) Selecting a vehicle function to control using a wearable electronic device
US20200074065A1 (en) Integrated identification and authentication for car sharing and taxi service
CN109152088B (en) Wireless device connection management method
US11140522B2 (en) Method and electronic device for transmitting group message
CN105976442A (en) Vehicle-mounted-radio-frequency-device-based vehicle management system and method thereof
CN103489127A (en) Route station statistical method, device and system
CN110197573B (en) Characterizing vehicles based on wireless transmission
CN107451921A (en) For authorizing the vehicle computer system of insurance and registration insurance policy
CN106559755A (en) The car networking electronic communication mark broadcasting method ensured based on QoS under collision detection

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