CN114928828A - Scene recognition method, device, terminal and storage medium - Google Patents
Scene recognition method, device, terminal and storage medium Download PDFInfo
- 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
- feature information
- terminal
- scene
- card reader
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B5/00—Near-field transmission systems, e.g. inductive or capacitive transmission systems
- H04B5/70—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes
- H04B5/77—Near-field transmission systems, e.g. inductive or capacitive transmission systems specially adapted for specific purposes for interrogation
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total 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
Description
技术领域technical field
本申请实施例涉及短距离通信技术领域,特别涉及一种场景识别方法、装置、终端及存储介质。The embodiments of the present application relate to the technical field of short-range communication, and in particular, to a scene recognition method, device, terminal, and storage medium.
背景技术Background technique
目前,场景识别的应用越来越广泛;例如,随着智能家居设备的普及,当终端识别到智能家庭场景时,终端可以控制智能家居设备执行相应的操作;例如,终端可以控制智能灯具打开灯光、控制智能窗帘关闭窗帘等。At present, the application of scene recognition is more and more extensive; for example, with the popularization of smart home devices, when the terminal recognizes a smart home scene, the terminal can control the smart home device to perform corresponding operations; for example, the terminal can control smart lamps to turn on the lights , Control smart curtains to close curtains, etc.
相关技术中,是通过无线保真(Wireless Fidelity,WiFi)来进行场景识别的;例如,当终端连接到家里的WiFi网络时,确定识别到智能家庭场景,控制智能家居设备执行相应的操作。In the related art, scene recognition is performed through wireless fidelity (WiFi); for example, when a terminal is connected to a home WiFi network, it is determined to recognize a smart home scene, and the smart home device is controlled to perform corresponding operations.
由于终端是按照预设周期去搜索WiFi网络的,然而当终端上一周期未搜索到WiFi网络,而在下一周期搜索到WiFi网络时,用户可能已经进入了家中。由此可见,基于WiFi进行场景识别会出现滞后的现象,也即导致场景识别的可靠性低。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, but searches for the WiFi network in the next period, the user may have entered the home. It can be seen that there will be a lag in scene recognition based on WiFi, that is, the reliability of scene recognition will be low.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种场景识别方法、装置、终端及存储介质,能够提高场景识别的可靠性。所述技术方案如下:The embodiments of the present application provide a scene recognition method, device, terminal, and storage medium, which can improve the reliability of scene recognition. The technical solution is as follows:
一方面,提供了一种场景识别方法,所述方法包括:In one aspect, a scene recognition method is provided, the method comprising:
在终端进入近场通信NFC读卡器的识别范围内的情况下,获取所述NFC读卡器的第一特征信息,所述NFC读卡器安装在目标场所的入口处,用于控制所述入口处的关卡的开闭,且所述终端用于通过其自身包括的NFC芯片与所述NFC读卡器进行通信,以请求所述NFC读卡器打开所述入口处的关卡,使得目标对象进入所述目标场所;When the terminal enters the identification range of the near field communication NFC card reader, obtain the first characteristic information of the NFC card reader, and the NFC card reader is installed at the entrance of the target place and is used to control the The opening and closing of the level at the entrance, and the terminal is used to communicate with the NFC card reader through the NFC chip included in itself, so as to request the NFC card reader to open the level at the entrance, so that the target object enter said target site;
将所述第一特征信息与已存储的多个特征信息进行匹配,所述多个特征信息为已设置场景的特征信息;Matching the first feature information with stored multiple feature information, where the multiple feature information is the feature information of the set scene;
在所述已存储的多个特征信息中包括与所述第一特征信息匹配的目标特征信息的情况下,进入所述目标特征信息对应的目标场景,所述目标场景与所述目标场所关联。If the stored multiple pieces of feature information include target feature information matching the first feature information, enter a target scene corresponding to the target feature information, where the target scene is associated with the target place.
另一方面,提供了一种场景识别装置,所述装置包括:In another aspect, a scene recognition device is provided, the device comprising:
获取模块,用于在终端进入近场通信NFC读卡器的识别范围内的情况下,获取所述NFC读卡器的第一特征信息,所述NFC读卡器安装在目标场所的入口处,用于控制所述入口处的关卡的开闭,且所述终端用于通过其自身包括的NFC芯片与所述NFC读卡器进行通信,以请求所述NFC读卡器打开所述入口处的关卡,使得目标对象进入所述目标场所;an acquisition module, configured to acquire the first feature information of the NFC card reader when the terminal enters the identification range of the near field communication NFC card reader, and the NFC card reader is installed at the entrance of the target place, It is used to control the opening and closing of the level at the entrance, and the terminal is used to communicate with the NFC card reader through the NFC chip included in itself, so as to request the NFC card reader to open the door at the entrance. level, so that the target object enters the target place;
匹配模块,用于将所述第一特征信息与已存储的多个特征信息进行匹配,所述多个特征信息为已设置场景的特征信息;a matching module, configured to match the first feature information with stored multiple feature information, where the multiple feature information is the feature information of the set scene;
进入模块,用于在所述已存储的多个特征信息中包括与所述第一特征信息匹配的目标特征信息的情况下,进入所述目标特征信息对应的目标场景,所述目标场景与所述目标场所关联。The entry module is used to enter the target scene corresponding to the target feature information in the case that the stored multiple feature information includes target feature information that matches the first feature information, and the target scene is the same as the target scene. Describe the target site association.
另一方面,提供了一种终端,所述终端包括处理器和存储器;所述存储器存储有至少一条程序代码,所述至少一条程序代码用于被所述处理器执行以实现如上述方面所述的场景识别方法。In another aspect, a terminal is provided, the terminal includes a processor and a memory; the memory stores at least one piece of program code, the at least one piece of program code is used to be executed by the processor to implement the above aspects scene recognition method.
另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的场景识别方法。In another aspect, a computer-readable storage medium is provided, the computer-readable storage medium stores at least one piece of program code, and the at least one piece of program code is used to be executed by a processor to realize the scene recognition as described in the above aspects method.
另一方面,提供了一种计算机程序产品,所述计算机程序产品存储有至少一条程序代码,所述至少一条程序代码用于被处理器执行以实现如上述方面所述的场景识别方法。In another aspect, a computer program product is provided, the computer program product stores at least one piece of program code, and the at least one piece of program code is used to be executed by a processor to implement the scene recognition method according to the above aspect.
在本申请实施例中,由于NFC读卡器安装在目标场所的入口处,而终端进入NFC读卡器的识别范围内,说明终端此刻正在尝试刷卡,这直接代表了用户进入目标场所的动作,因此,基于NFC读卡器的第一特征信息,来进行场景识别,能够准确捕获到用户进入目标场所的动作,从而能够提高场景识别的可靠性。In the embodiment of the present application, since 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, it means that the terminal is trying to swipe the card at the moment, which directly represents the action of the user entering the target place. Therefore, the scene recognition is performed based on the first feature information of the NFC card reader, and the action of the user entering the target place can be accurately captured, thereby improving the reliability of the scene recognition.
附图说明Description of drawings
图1示出了本申请一个示例性实施例示出的场景识别方法的实施环境的示意图;1 shows a schematic diagram of an implementation environment of a scene recognition method according to an exemplary embodiment of the present application;
图2示出了本申请一个示例性实施例示出的场景识别方法的流程图;FIG. 2 shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application;
图3示出了本申请一个示例性实施例示出的场景识别方法的流程图;FIG. 3 shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application;
图4示出了本申请一个示例性实施例示出的场景识别方法的流程图;FIG. 4 shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application;
图5示出了本申请一个示例性实施例示出的场景识别方法的流程图;FIG. 5 shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application;
图6示出了本申请一个示例性实施例示出的场景识别装置的结构框图;FIG. 6 shows a structural block diagram of a scene recognition apparatus according to an exemplary embodiment of the present application;
图7示出了本申请一个示例性实施例示出的终端的结构框图。FIG. 7 shows a structural block diagram of a terminal according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本申请所涉及的相关数据可以为经用户授权或者经各方充分授权的数据。As used herein, "plurality" refers to two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, the relevant data involved in this application may be data authorized by the user or fully authorized by all parties.
需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、显示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的特征信息、服务、场景、历史运动轨迹和行程信息等都是在充分授权的情况下获取的。It should be noted that the 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 involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the feature information, services, scenes, historical motion trajectories, and itinerary information, etc. involved in this application are all obtained with sufficient authorization.
请参考图1,其示出了本申请一个示例性实施例示出的场景识别方法的实施环境的示意图;该实施环境包括:终端101和近场通信(Near field communication,NFC)读卡器102,NFC读卡器102安装在目标场所的入口处,且用于控制目标场所的入口处设置的关卡的开闭;终端101通过其包括的NFC芯片能够与NFC读卡器102进行通信,以请求NFC读卡器102打开入口处的关卡,从而使得目标对象能够进入目标场所。目标对象可以为用户或者机器人等。Please refer to FIG. 1, which shows a schematic diagram of an implementation environment of a scene recognition method shown in an exemplary embodiment of the present application; the implementation environment includes: a terminal 101 and a near field communication (Near field communication, NFC)
其中,目标场所可以为任一场所;例如,目标场所为居住地、停车场、交通运输站点或者车辆,交通运输站点可以为客运站、火车站、高铁站或者机场等。例如,在目标场所为居住地的情况下,则NFC读卡器102可以安装在家居地的家门口、单元楼门口或者小区门口等。在目标场所为停车场的情况下,则NFC读卡器102可以安装在停车场的闸机入口处。在目标场所为交通运输站点的情况下,则NFC读卡器102可以安装在交通运输站点的闸机入口处。在目标场所为车辆的情况下,则NFC读卡器102可以安装在车辆的门把手处。终端101101为手机、平板电脑、手表或者手环等设备中的至少一种。The target place can be any place; for example, the target place is a residence, a parking lot, a transportation station or a vehicle, and the transportation station can be a passenger station, a railway station, a high-speed rail station, or an airport. For example, when the target place is a residence, the NFC
请参考图2,其示出了本申请一个示例性实施例示出的场景识别方法的流程图。该方法包括:Please refer to FIG. 2 , which shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application. The method includes:
步骤S201:在终端进入NFC读卡器的识别范围内的情况下,终端获取NFC读卡器的第一特征信息。Step S201: When the terminal enters the identification range of the NFC card reader, the terminal acquires the first characteristic information of the NFC card reader.
NFC读卡器安装在目标场所的入口处,用于控制入口处的关卡的开闭,且终端用于通过其自身包括的NFC芯片与NFC读卡器进行通信,以请求NFC读卡器打开入口处的关卡,使得目标对象进入目标场所。The NFC card reader is installed at the entrance of the target place to control the opening and closing of the level at the entrance, and the terminal is used to communicate with the NFC card reader through its own included NFC chip to request the NFC card reader to open the entrance The level at which the target object enters the target place.
在终端进入NFC读卡器的识别范围内的情况下,终端启用NFC的智能终端识别(Smart terminal recognition,STR)功能,通过该NFC STR功能,识别NFC读卡器的第一特征信息。第一特征信息可以为任一用于表示NFC读卡器特征的信息;例如,第一特征信息可以为轮询(polling)特征。When the terminal enters the identification range of the NFC card reader, the terminal enables the smart terminal recognition (Smart terminal recognition, STR) function of NFC, and identifies the first characteristic information of the NFC card reader through the NFC STR function. The first feature information may be any information used to represent the features of the NFC card reader; for example, the first feature information may be a polling feature.
需要说明的一点是,NFC STR功能的通信可靠性较高,并且,NFC是近场通信,不存在电磁波空中辐射出现的不稳定问题;因此,通过NFC STR功能进行场景识别,能够提高可靠性。It should be noted that the communication reliability of the NFC STR function is high, and NFC is near-field communication, and there is no instability problem caused by electromagnetic wave air radiation; therefore, scene recognition through the NFC STR function can improve reliability.
步骤S202:终端将第一特征信息与已存储的多个特征信息进行匹配,多个特征信息为已设置场景的特征信息。Step S202: The terminal matches the first feature information with multiple stored feature information, where the multiple feature information is the feature information of the set scene.
终端确定第一特征信息与已存储的多个特征信息之间的匹配度,得到多个匹配度;在多个匹配度中存在目标匹配度的情况下,确定已存储的多个特征信息中包括与第一特征信息匹配的目标特征信息,目标匹配度为超过预设匹配的匹配度,且目标特征信息为目标匹配度对应的特征信息,执行步骤S203;在多个匹配度中不存在目标匹配度的情况下,确定已存储的多个特征信息中不包括目标特征信息,结束。The terminal determines the matching degree between the first feature information and the stored multiple feature information, and obtains multiple matching degrees; in the case where the target matching degree exists in the multiple matching degrees, it is determined that the stored multiple feature information includes The target feature information matched with the first feature information, the target matching degree is a matching degree exceeding the preset matching, and the target feature information is the feature information corresponding to the target matching degree, and step S203 is performed; there is no target matching among the multiple matching degrees In the case of the degree, it is determined that the target feature information is not included in the stored plurality of feature information, and the process ends.
需要说明的另一点是,在多个匹配度中不存在目标匹配度的情况下,终端结束场景识别的流程,进入开锁流程,也即终端基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器打开目标场所的入口处的关卡,使得目标对象进入目标场所。Another point that needs to be explained is that in the case where there is no target matching degree among the multiple matching degrees, the terminal ends the process of scene recognition and enters the unlocking process, that is, the terminal communicates with the NFC card reader based on the NFC chip to request NFC. The card reader opens the level at the entrance of the target place, so that the target object enters the target place.
步骤S203:在已存储的特征信息中包括与第一特征信息匹配的目标特征信息的情况下,终端进入目标特征信息对应的目标场景,目标场景与目标场所关联。Step S203: When the stored feature information includes target feature information matching the first feature information, the terminal enters a target scene corresponding to the target feature information, and the target scene is associated with the target place.
终端事先设置了特征信息与场景的对应关系;相应的;终端在确定出目标特征信息之后,基于目标特征信息,从特征信息和场景的对应关系中确定目标特征信息对应的目标场景,然后进入目标场景。The terminal sets the corresponding relationship between the feature information and the scene in advance; accordingly; after determining the target feature information, the terminal determines the target scene corresponding to the target feature information from the corresponding relationship between the feature information and the scene based on the target feature information, and then enters the target. Scenes.
需要说明的一点是,由于一般终端中都有NFC芯片,因此,通过NFC芯片获取NFC读卡器的第一特征信息,基于第一特征信息进行场景识别,并不需要对终端进行更新迭代,降低了场景识别的成本。It should be noted that, since there are NFC chips in general terminals, the first feature information of the NFC card reader is obtained through the NFC chip, and the scene recognition is performed based on the first feature information, and it is not necessary to update and iterate the terminal. the cost of scene recognition.
在本申请实施例中,由于NFC读卡器安装在目标场所的入口处,而终端进入NFC读卡器的识别范围内,说明终端此刻正在尝试刷卡,这直接代表了用户进入目标场所的动作,因此,基于NFC读卡器的第一特征信息,来进行场景识别,能够准确捕获到用户进入目标场所的动作,从而能够提高场景识别的可靠性。In the embodiment of the present application, since 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, it means that the terminal is trying to swipe the card at the moment, which directly represents the action of the user entering the target place. Therefore, the scene recognition is performed based on the first feature information of the NFC card reader, and the action of the user entering the target place can be accurately captured, thereby improving the reliability of the scene recognition.
请参考图3,其示出了本申请一个示例性实施例示出的场景识别方法的流程图。该方法包括:Please refer to FIG. 3 , which shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application. The method includes:
步骤S301:在终端进入近场通信NFC读卡器的识别范围内的情况下,终端获取NFC读卡器的第一特征信息。Step S301: When the terminal enters the identification range of the near field communication NFC card reader, the terminal acquires first feature information of the NFC card reader.
NFC读卡器安装在目标场所的入口处,用于控制入口处的关卡的开闭,且终端用于通过其自身包括的NFC芯片与NFC读卡器进行通信,以请求NFC读卡器打开入口处的关卡,使得目标对象进入目标场所。目标场所为居住地、停车场、交通运输站点或者车辆等。交通运输站点可以为客运站、火车站、高铁站或者机场等。The NFC card reader is installed at the entrance of the target place to control the opening and closing of the level at the entrance, and the terminal is used to communicate with the NFC card reader through its own included NFC chip to request the NFC card reader to open the entrance The level at which the target object enters the target place. The target place is a residence, a parking lot, a transportation station, or a vehicle. The transportation station can be a passenger station, a railway station, a high-speed rail station, or an airport.
在终端进入NFC读卡器的识别范围内的情况下,终端启用NFC的STR功能,通过该NFC STR功能,识别NFC读卡器的第一特征信息。第一特征信息可以为任一用于表示NFC读卡器特征的信息;例如,第一特征信息可以为轮询(polling)特征。When the terminal enters the identification range of the NFC card reader, the terminal enables the STR function of the NFC, and the first characteristic information of the NFC card reader is identified through the NFC STR function. The first feature information may be any information used to represent the features of the NFC card reader; for example, the first feature information may be a polling feature.
需要说明的一点是,NFC STR功能的通信可靠性较高,并且,NFC是近场通信,不存在电磁波空中辐射出现的不稳定问题;因此,通过NFC STR功能进行场景识别,能够提高可靠性。It should be noted that the communication reliability of the NFC STR function is high, and NFC is near-field communication, and there is no instability problem caused by electromagnetic wave air radiation; therefore, scene recognition through the NFC STR function can improve reliability.
在一种可能的实现方式中,终端的NFC芯片处于开启状态,从而基于NFC芯片确定是否终端是否进入NFC读卡器的识别范围内,从而提高了识别的及时性。在另一种可能的实现方式中,终端的NFC芯片先处于关闭状态,当终端靠近目标场所的入口处情况下,终端才将NFC由关闭状态切换为开启状态,从而节省终端的功耗。在另一种可能的实现方式中,终端的NFC芯片先处于关闭状态,当终端检测到用于开启NFC芯片的手势操作(例如,抬高终端的手势操作)的情况下,终端才将NFC由关闭状态切换为开启状态,从而节省终端的功耗。In a possible implementation manner, the NFC chip of the terminal is turned on, so that whether the terminal enters the identification range of the NFC card reader is determined based on the NFC chip, thereby improving the timeliness of identification. In another possible implementation, the NFC chip of the terminal is turned off first, and when the terminal is close to the entrance of the target place, the terminal switches the NFC from the off state to the on state, thereby saving the power consumption of the terminal. In another possible implementation manner, the NFC chip of the terminal is turned off first, and only when the terminal detects a gesture operation for turning on the NFC chip (for example, a gesture operation of raising the terminal), the terminal sends the NFC to the terminal. The off state is switched to the on state, thereby saving the power consumption of the terminal.
其中,终端基于全球定位系统(Global Positioning System,GPS)定位的方式确定终端是否靠近目标场所的入口处,该过程为:终端基于GPS定位终端的位置,基于终端的位置和目标场所的入口处的位置,确定终端与目标场所的入口处之间的距离;在该距离小于第一预设距离的情况下,确定终端靠近目标场所的入口处;在该距离不小于第一预设距离的情况下,确定终端没有靠近目标场所的入口处。Wherein, the terminal determines whether the terminal is close to the entrance of the target place based on the Global Positioning System (Global Positioning System, GPS) positioning method, and the process is: the terminal locates the position of the terminal based on GPS, and the position of the terminal position, determine the distance between the terminal and the entrance of the target place; if the distance is less than the first preset distance, determine that the terminal is close to the entrance of the target place; if the distance is not less than the first preset distance , make sure that the terminal is not near the entrance of the target site.
需要说明的一点是,目标场所为居住地、停车场、交通运输站点或者车辆;而目标场所为居住地、停车场或者车辆的情况下,用户一般在下班时间才会进入目标场所;而目标场所为交通运输站点的情况下,用户一般在提前购买了车票的情况下,才会在对应时间进入目标场所。相应的,终端可以结合时间信息或者乘车信息,来控制NFC芯片的开启,该过程可以包括以下至少一种实现方式:It should be noted that the target place is a residence, a parking lot, a transportation station or a vehicle; and if the target place is a residence, a parking lot or a vehicle, the user generally only enters the target place after get off work hours; and the target place In the case of a transportation site, the user generally only enters the target site at the corresponding time after purchasing a ticket in advance. Correspondingly, the terminal can control the opening of the NFC chip in combination with time information or ride information, and the process can include at least one of the following implementations:
终端基于目标对象的历史运动轨迹,确定第一时间范围,第一时间范围为目标对象可能进入目标场所的时间范围;在当前时刻在第一时间范围内的情况下,终端将NFC由关闭状态切换为开启状态。The terminal determines the first time range based on the historical motion trajectory of the target object, and the first time range is the time range in which the target object may enter the target place; when the current moment is within the first time range, the terminal switches the NFC from the off state is on.
终端基于目标对象的行程信息,确定第二时间范围,第二时间范围为目标对象可能进入目标场所的时间范围;在当前时刻在第二时间范围内的情况下,终端将NFC由关闭状态切换为开启状态。The terminal determines a second time range based on the travel information of the target object, and the second time range is a time range in which the target object may enter the target place; when the current moment is within the second time range, the terminal switches the NFC from the off state to On state.
步骤S302:终端将第一特征信息与已存储的多个特征信息进行匹配,多个特征信息为已设置场景的特征信息。Step S302: The terminal matches the first feature information with multiple stored feature information, and the multiple feature information is the feature information of the set scene.
终端中包括应用处理器,且应用处理器中存储已设置场景的特征信息。终端获取到第一特征信息后,将第一特征信息上报给应用处理器,应用处理器将第一特征信息与已存储的特征信息进行匹配,并向终端返回匹配结果,该匹配结果用于表示已存储的多个特征信息中是否包括与第一特征信息匹配的目标特征信息。The terminal includes an application processor, and the feature information of the set scene is stored in the application processor. After acquiring the first feature information, the terminal reports the first feature information to the application processor, and the application processor matches the first feature information with the stored feature information, and returns a matching result to the terminal, where the matching result is used to indicate Whether the stored multiple feature information includes target feature information that matches the first feature information.
在一种可能的实现方式中,终端直接将特征信息进行匹配,从而确定出匹配结果;在另一种可能的实现方式中,终端可以为特征信息分配索引信息,该索引信息用于唯一标识该特征信息,但该索引信息相较于特征信息更加简单,从而基于简单的索引信息来进行特征信息的匹配,能够减少特征匹配的计算量,从而提高匹配效率。相应的,终端将第一特征信息与已存储的多个特征信息进行匹配的步骤可以通过以下步骤(1)至(3)实现,包括:In a possible implementation manner, the terminal directly matches the feature information to determine a matching result; in another possible implementation manner, the terminal may assign index information to the feature information, and the index information is used to uniquely identify the However, the index information is simpler than the feature information, so the matching of the feature information based on the simple index information can reduce the calculation amount of the feature matching, thereby improving the matching efficiency. Correspondingly, the step of matching the first feature information with the stored multiple feature information by the terminal may be implemented through the following steps (1) to (3), including:
(1)终端确定第一特征信息对应的第一索引信息,第一索引信息用于唯一标识第一特征信息,但第一索引信息的复杂度低于第一特征信息的复杂度。(1) The terminal determines the first index information corresponding to the first feature information. The first index information is used to uniquely identify the first feature information, but the complexity of the first index information is lower than that of the first feature information.
第一索引信息可以为数字或者第一特征信息对应的目标场所的描述信息等,在本申请实施例中,对第一索引信息的具体形式不作具体限定。例如,以数字来表示索引信息,则第一特征信息对应的第一索引信息如下表1所示:The first index information may be a number or description information of the target place corresponding to the first feature information, etc. In this embodiment of the present application, the specific form of the first index information is not specifically limited. For example, if the index information is represented by numbers, the first index information corresponding to the first feature information is shown in Table 1 below:
表1Table 1
再如,以描述信息来表示索引信息,则第一特征信息对应的第一索引信息如下表2所示: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:
表2Table 2
(2)终端将第一索引信息与已存储的多个索引信息进行匹配,已存储的多个索引信息为多个特征信息对应的索引信息,且一个索引信息对应一个特征信息。(2) The terminal matches the first index information with multiple stored index information, where the multiple stored index information is index information corresponding to multiple feature information, and one index information corresponds to one feature information.
例如,以数字来表示索引信息,目标场所为居住地,则第一特征信息对应的第一索引信息为0,已存储的多个索引信息分别为0、1、2和3;则终端直接将0与已存储的0、1、2和3进行匹配即可。For example, if the index information is represented by numbers, and the target place is the place of residence, the first index information corresponding to the first feature information is 0, and the multiple stored index information are respectively 0, 1, 2, and 3; then the terminal directly converts the 0 matches the stored 0, 1, 2, and 3.
再如,以描述信息来表示索引信息,目标场所为居住地,则第一特征信息对应的第一索引信息为“家”,已存储的多个索引信息分别为“家”“停车场”“高铁站”和“车辆”;则终端直接将“家”与已存储的“家”“停车场”“高铁站”和“车辆”进行匹配即可。For another example, descriptive information is used to represent the index information, and the target place is a residence, then the first index information corresponding to the first feature information is "home", and the stored multiple index information are respectively "home", "parking lot" "" High-speed rail station" and "vehicle"; the terminal can directly match "home" with the stored "home", "parking lot", "high-speed rail station" and "vehicle".
(3)在多个索引信息中包括与第一索引信息匹配的目标索引信息的情况下,终端确定已存储的多个特征信息中包括目标特征信息,且目标特征信息为目标索引信息对应的特征信息。(3) In the case where the plurality of index information includes target index information matching the first index information, the terminal determines that the stored plurality of characteristic information includes target characteristic information, and the target characteristic information is a characteristic corresponding to the target index information information.
需要说明的一点是,在已存储的多个特征信息中包括与第一特征信息匹配的目标特征信息的情况下,执行步骤S303;而在多个索引信息中不包括目标索引信息的情况下,终端确定已存储的多个特征信息中不包括目标特征信息,结束。It should be noted that, in the case where the stored multiple feature information includes target feature information matching the first feature information, step S303 is performed; and in the case where the multiple index information does not include target index information, The terminal determines that the stored multiple feature information does not include the target feature information, and ends.
在另一种可能的实现方式中,终端从已存储的多个特征信息中筛选出第二特征信息,将第一特征信息与筛选出的第二特征信息进行匹配,从而确定是否存在目标特征信息。由于第二特征信息的数量较少;因此,将第一特征信息与筛选出的第二特征信息进行匹配,能够减少特征匹配的计算量,从而提高匹配效率。其中,终端从已存储的多个特征信息中筛选出第二特征信息的步骤可以为:In another possible implementation manner, the terminal selects the second feature information from the stored multiple feature information, and matches the first feature information with the filtered second feature information, so as to determine whether there is target feature information . Since the quantity of the second feature information is small; therefore, matching the first feature information with the filtered second feature information can reduce the amount of computation for feature matching, thereby improving the matching efficiency. Wherein, the step that the terminal selects the second characteristic information from the stored plurality of characteristic information may be:
终端基于终端当前所在的位置以及多个特征信息对应的位置,从多个第二特征信息中筛选出第二特征信息,任一特征信息对应的位置为该特征信息对应的NFC读卡器所在的位置;第二特征信息对应的位置与当前所在的位置之间的距离小于第二预设距离。Based on the current location of the terminal and the location corresponding to the multiple feature information, the terminal selects the second feature information from the multiple second feature information, and the location corresponding to any feature information is where the NFC card reader corresponding to the feature information is located. position; the distance between the position corresponding to the second feature information and the current position is less than the second preset distance.
步骤S303:在已存储的多个特征信息中包括与第一特征信息匹配的目标特征信息的情况下,终端基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证。Step S303: In the case where the stored multiple feature information includes target feature information matching the first feature information, the terminal communicates with the NFC card reader based on the NFC chip to request the NFC card reader to identify the NFC chip. verify.
终端基于NFC芯片与NFC读卡器之间的通信连接,向NFC读卡器发送NFC芯片的身份信息;在NFC读卡器基于该身份信息,确定终端有进入目标场所的权限的情况下,NFC读卡器向终端发送确认消息,该确认消息用于表示对NFC芯片身份验证通过;在NFC读卡器基于该身份信息,确定终端没有进入目标场所的权限的情况下,NFC读卡器向终端发送否定消息,该否定消息用于表示对NFC芯片身份验证没有通过。相应的,在终端接收到NFC读卡器发送的确认消息,终端确定NFC读卡器对NFC芯片身份验证通过,执行步骤S304;在终端接收到NFC芯片发送的否定消息的情况下,终端确定NFC读卡器对NFC芯片身份验证不通过,结束。Based on the communication connection between the NFC chip and the NFC card reader, the terminal sends the identity information of the NFC chip to the NFC card reader; when the NFC card reader determines based on the identity information that the terminal has the authority to enter the target place, the NFC The card reader sends a confirmation message to the terminal, which is used to indicate that the identity verification of the NFC chip has passed; in the case 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 the terminal to the terminal. A negative message is sent, which is used to indicate that the authentication of the NFC chip is not passed. Correspondingly, when the terminal receives the confirmation message sent by the NFC card reader, and the terminal determines that the NFC card reader has passed the identity verification of the NFC chip, step S304 is performed; in the case where the terminal receives a negative message sent by the NFC chip, the terminal determines that the NFC chip has passed the authentication. If the card reader fails to authenticate the NFC chip, the process ends.
步骤S304:在NFC读卡器对NFC芯片身份验证通过的情况下,终端进入目标特征信息对应的目标场景,目标场景与目标场所关联。Step S304: In the case that the NFC card reader passes the identity verification of the NFC chip, the terminal enters the target scene corresponding to the target feature information, and the target scene is associated with the target place.
目标场所为居住地、停车场、交通运输站点或者车辆等。终端事先设置了特征信息与场景的对应关系;相应的;终端在确定出目标特征信息之后,基于目标特征信息,从特征信息和场景的对应关系中确定目标特征信息对应的目标场景,然后进入目标场景。The target place is a residence, a parking lot, a transportation station, or a vehicle. The terminal sets the corresponding relationship between the feature information and the scene in advance; accordingly; after determining the target feature information, the terminal determines the target scene corresponding to the target feature information from the corresponding relationship between the feature information and the scene based on the target feature information, and then enters the target. Scenes.
第一种实现方式:目标场所为居住地,则目标场景用于对居住地包括的智能家居设备进行控制;相应的,终端进入目标特征信息对应的目标场景的步骤,可以为:终端控制智能家居设备执行第一目标操作。例如,智能家居设备为智能路由器和智能灯具中的至少一种;则终端控制智能路由器处于开启状态和/或终端控制智能灯具打开灯光。The first implementation method: the target place is a residence, and the target scene is used to control the smart home devices included in the residence; correspondingly, the steps for the terminal to enter the target scene corresponding to the target feature information may be: the terminal controls the smart home The device performs the first target operation. For example, the smart home device is at least one of a smart router and a smart light fixture; the terminal controls the smart router to be in an on state and/or the terminal controls the smart light fixture to turn on the lights.
需要说明的一点是,终端不仅可以控制智能家居设备执行第一目标操作,还能够控制自身执行第四目标操作;例如,终端打开WiFi模块、设置为静音模式或者解除静音模式等。It should be noted that the terminal can not only control the smart home device to perform the first target operation, but also control itself to perform the fourth target operation; for example, the terminal can turn on the WiFi module, set to silent mode, or cancel the silent mode.
第二种实现方式:目标场所为停车场,则目标场景用于对终端显示的内容进行控制;相应的,终端进入目标特征信息对应的目标场景的步骤可以为:终端显示停车场的电子地图,该电子地图可以为二维(2D)地图或者三维(3D)地图等,在本申请实施例中,对地图的显示格式不作具体限定。The second implementation method: the target place is a parking lot, and the target scene is used to control the content displayed by the terminal; correspondingly, the steps for the terminal to enter the target scene corresponding to the target feature information may be: the terminal displays the electronic map of the parking lot, The electronic map may be a two-dimensional (2D) map or a three-dimensional (3D) map, etc. In this embodiment of the present application, the display format of the map is not specifically limited.
第三种实现方式:目标场所为交通运输站点,则目标场景用于对终端显示的内容进行控制;相应的,终端进入目标特征信息对应的目标场景的步骤可以为:终端显示当前登录账户在该交通运输站点对应的乘车信息,该乘车信息包括车次信息、时间信息、座位信息和站台信息中的至少一项。其中,终端不仅可以显示该乘车信息,还可以显示导航信息,该导航信息为从终端的当前位置到所述站台信息之间的导航信息。The third implementation method: the target site is a transportation site, and the target scene is used to control the content displayed by the terminal; correspondingly, the steps for the terminal to enter the target scene corresponding to the target feature information may be: the terminal displays the current login account in this The ride information corresponding to the transportation station, the ride information includes at least one item of train number information, time information, seat information and platform information. Wherein, the terminal can display not only the ride information, but also navigation information, where the navigation information is navigation information from the current location of the terminal to the platform information.
其中,终端可以在负一屏中显示该乘车信息,或者在终端上弹出显示框,在该显示框中显示该乘车信息。在本申请实施例中,对终端显示该乘车信息的具体方式也不作具体限定。Wherein, the terminal may display the ride information on the negative screen, or pop up a display box on the terminal, and display the ride information in the display box. In this embodiment of the present application, the specific manner in which the terminal displays the ride information is also not specifically limited.
第四种实现方式:目标场所为车辆,则目标场景用于对车辆进行控制;相应的,终端进入目标特征信息对应的目标场景的步骤可以为:终端与车辆的车载终端建立短距离通信连接,基于该短距离通信连接,控制车载终端执行第二目标操作。The fourth implementation manner: the target place is a vehicle, and the target scene is used to control the vehicle; correspondingly, the steps for the terminal to enter the target scene corresponding to the target feature information may be: the terminal establishes a short-distance communication connection with the vehicle's on-board terminal, Based on the short-range communication connection, the vehicle-mounted terminal is controlled to perform the second target operation.
短距离通信连接可以为蓝牙连接或者WiFi连接等;终端控制车载终端执行第二目标操作的步骤,包括以下至少一种实现方式,包括:The short-distance communication connection may be a Bluetooth connection or a WiFi connection, etc.; the step of the terminal controlling the vehicle-mounted terminal to perform the second target operation includes at least one of the following implementations, including:
终端控制车载终端打开导航应用;The terminal controls the vehicle terminal to open the navigation application;
终端控制车载终端打开音频播放应用中。The terminal controls the vehicle terminal to open the audio playback application.
需要说明的一点是,目标场所为车辆,则目标场景用于对车辆进行控制;相应的,终端进入目标特征信息对应的目标场景的步骤可以为:终端与车辆的车载终端建立短距离通信连接,基于该短距离通信连接,控制车辆的车载器件执行第三目标操作。车载器件可以为车辆座椅,相应的,终端控制车辆的车载器件执行第三目标操作的步骤可以为:终端控制车辆座椅进行加热。It should be noted that if the target site is a vehicle, the target scene is used to control the vehicle; correspondingly, the steps for the terminal to enter the target scene corresponding to the target feature information may be as follows: the terminal establishes a short-distance communication connection with the vehicle's on-board terminal, Based on the short-range communication connection, the onboard device of the control vehicle executes the third target operation. The vehicle-mounted device may be a vehicle seat, and correspondingly, the step of the terminal controlling the vehicle-mounted device of the vehicle to perform the third target operation may be: the terminal controls the vehicle seat to heat.
其中,终端事先设置了特征信息和场景的对应关系;并且,该对应关系可以通过场景配置界面与用户达成一致;相应的,终端设置特征信息和场景的对应关系的过程,可以为:Wherein, the terminal sets the corresponding relationship between the feature information and the scene in advance; and the corresponding relationship can be agreed with the user through the scene configuration interface; correspondingly, the process for the terminal to set the corresponding relationship between the feature information and the scene can be:
终端显示场景配置界面,场景配置界面用于配置特征信息与场景的对应关系,且场景配置界面包括终端历史识别到的NFC读卡器的特征信息和NFC读卡器所在场所的场所信息;基于该场所信息,获取被配置的场景,建立特征信息和场景的对应关系。The terminal displays a scene configuration interface, the scene configuration interface is used to configure the corresponding relationship between the feature information and the scene, and the scene configuration interface includes the feature information of the NFC card reader identified by the terminal history and the location information of the location where the NFC card reader is located; based on this Location information, obtain the configured scene, and establish the corresponding relationship between the feature information and the scene.
在本申请实施例中,用户可以通过场景配置界面配置特征信息和场景的对应关系,从而能够实现个性化设置。In the embodiment of the present application, the user can configure the corresponding relationship between the feature information and the scene through the scene configuration interface, so as to realize the personalized setting.
在本申请实施例中,由于NFC读卡器安装在目标场所的入口处,而终端进入NFC读卡器的识别范围内,说明终端此刻正在尝试刷卡,这直接代表了用户进入目标场所的动作,因此,基于NFC读卡器的第一特征信息,来进行场景识别,能够准确捕获到用户进入目标场所的动作,从而能够提高场景识别的可靠性。In the embodiment of the present application, since 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, it means that the terminal is trying to swipe the card at the moment, which directly represents the action of the user entering the target place. Therefore, the scene recognition is performed based on the first feature information of the NFC card reader, and the action of the user entering the target place can be accurately captured, thereby improving the reliability of the scene recognition.
请参考图4,其示出了本申请一个示例性实施例示出的场景识别方法的流程图。该方法包括:Please refer to FIG. 4 , which shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application. The method includes:
步骤S401:在终端进入NFC读卡器的识别范围内的情况下,终端获取NFC读卡器的第一特征信息。Step S401: When the terminal enters the identification range of the NFC card reader, the terminal acquires the first characteristic information of the NFC card reader.
步骤S402:终端将第一特征信息与已存储的特征信息进行匹配,已存储的特征信息为已设置场景的特征信息。Step S402: The terminal matches the first feature information with the stored feature information, and the stored feature information is the feature information of the set scene.
需要说明的一点是,步骤S401-S402分别与步骤S301和S302相同,在此不再赘述。It should be noted that steps S401-S402 are the same as steps S301 and S302, respectively, and will not be repeated here.
步骤S403:在已存储的特征信息中包括与第一特征信息匹配的目标特征信息的情况下,终端获取目标场景对应服务的第一时长,第一时长该服务的响应时长。Step S403: When the stored feature information includes target feature information matching the first feature information, the terminal acquires the first duration of the service corresponding to the target scene, and the first duration is the response duration of the service.
终端事先设置了场景对应服务与第一时长的对应关系;相应的,终端基于目标场景对应服务,从服务与第一时长的对应关系中获取目标场所对应服务的第一时长。The terminal pre-sets the correspondence between the service corresponding to the scene and the first duration; correspondingly, the terminal obtains the first duration of the service corresponding to the target location from the correspondence between the service and the first duration based on the service corresponding to the target scene.
第一种实现方式,目标场所为居住地,目标场景用于对居住地包括的智能家居设备进行控制;则该服务为智能家居设备提供的服务;例如,智能家居设备为智能路由器或者智能灯具;由于打开智能路由器或者打开智能灯具这个操作所需时间较短,因此,可以设置目标场景对应服务的第一时长为较短的时长;例如,第一时长为2秒或者5秒等。In the first implementation mode, the target place is a residence, and the target scene is used to control the smart home devices included in the residence; then the service is a service provided by the smart home device; for example, the smart home device is a smart router or a smart lamp; Since the operation of turning on the smart router or turning on the smart lamp takes a short time, the first duration of the service corresponding to the target scene can be set to a shorter duration; for example, the first duration is 2 seconds or 5 seconds, etc.
第二种实现方式,目标场所为停车场,目标场景用于对终端显示的内容进行控制;则该服务为终端显示停车场的电子地图对应的服务;由于终端显示电子地图这个操作所需时间也较短;因此,可以设置目标场景对应服务的第一时长为较短的时长;例如,第一时长为3秒或者4秒等。In the second implementation mode, the target place is a parking lot, and the target scene is used to control the content displayed by the terminal; then the service is a service corresponding to the electronic map of the parking lot displayed by the terminal; because the time required for the operation of the terminal to display the electronic map is also Shorter; therefore, the first duration of the service corresponding to the target scene can be set to a shorter duration; for example, the first duration is 3 seconds or 4 seconds, etc.
第三种实现方式,目标场所为交通运输站点,目标场景用于对终端显示的内容进行控制;则该服务为终端显示乘车信息对应的服务;由于终端显示乘车信息这个操作所需时间也较短;因此,可以设置目标场景对应服务的第一时长为较短的时长;例如,第一时长为2秒或者3秒等。In the third implementation mode, the target site is a transportation station, and the target scene is used to control the content displayed by the terminal; then the service is the service corresponding to the terminal displaying the ride information; since the time required for the terminal to display the ride information is also Shorter; therefore, the first duration of the service corresponding to the target scene can be set to a shorter duration; for example, the first duration is 2 seconds or 3 seconds, etc.
第四种实现方式,目标场所为车辆,目标场景用于对车辆进行控制;则该服务为车载终端执行第二目标操作对应的服务或者车载器件执行第三目标操作对应的服务;由于车载终端执行第二目标操作这个操作所需时间也较短,因此,可以设置第一时长为较短的时长;例如,第一时长为2秒或者3秒;而车载器件执行第三目标操作这个操作所需时间较长,因此,可以设置第一时长为较长的时长;例如,第一时长为5分钟或者10分钟等。In the fourth implementation manner, the target place is a vehicle, and the target scene is used to control the vehicle; then the service is the service corresponding to the vehicle terminal performing the second target operation or the vehicle device performing the service corresponding to the third target operation; since the vehicle terminal executes the service corresponding to the second target operation The time required for the second target operation is also shorter, so the first duration can be set to a shorter duration; for example, the first duration is 2 seconds or 3 seconds; and the vehicle-mounted device needs to perform the third target operation. The time is relatively long, therefore, the first duration can be set as a relatively long duration; for example, the first duration is 5 minutes or 10 minutes.
步骤S404:终端获取第二时长,第二时长为目标对象从目标场所的入口处到获取到该服务所需的时长。Step S404: The terminal acquires a second duration, which is the duration required for the target object to obtain the service from the entrance of the target place.
终端基于目标场所的入口处的位置与提供该服务对应的位置之间的距离,以及目标对象的移动速度,确定第二时长。其中,终端将该距离与该移动速度的比值,确定为第二时长。The terminal determines the second duration based on the distance between the position at the entrance of the target place and the position corresponding to providing the service, and the moving speed of the target object. Wherein, the terminal determines the ratio of the distance to the moving speed as the second duration.
其中,目标对象的移动速度可以基于目标场所的类型进行确定;相应的,终端确定目标对象的移动速度的步骤可以为:获取与目标场所的类型匹配的移动速度。例如,目标场所为居住地,则目标对象的移动速度为用户的步行速度。再如,目标场所为停车场,则目标对象的移动速度为车辆的行驶速度,该行驶速度不高于停车场的限速。再如,目标场所为交通运输站点,则目标对象的移动速度为用户的步行速度。再如,目标场所为车辆,则目标对象的移动速度为用户的步行速度。Wherein, the moving speed of the target object may be determined based on the type of the target place; correspondingly, the step of determining the moving speed of the target object by the terminal may be: acquiring a moving speed matching the type of the target place. For example, if the target place is a residence, the moving speed of the target object is the walking speed of the user. For another example, if the target place 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. For another example, if the target place is a transportation station, the moving speed of the target object is the walking speed of the user. For another example, if the target place is a vehicle, the moving speed of the target object is the walking speed of the user.
步骤S405:终端基于第一时长和第二时长,确定时间戳,该时间戳为进入目标场景的开始时间。Step S405: The terminal determines a timestamp based on the first duration and the second duration, where the timestamp is the start time of entering the target scene.
在第一时长大于第二时长的情况下,说明响应该服务所需的时长较长,此时需要尽快进入目标场景,终端确定该时间戳为当前时刻;在第一时长等于第二时长的情况下,说明响应该服务所需的时长与目标对象到达该服务所在地点所需的时长是一样的,终端将当前时刻之后的第一时长(或者第二时长)的时刻确定为该时间戳。在第一时长小于第二时长的情况下,说明目标对象到达该服务所在地点所需的时长较长,可以过一会才进入目标场所,终端确定第二时长与第一时长之间的时长差,将当前时刻之后的该时长差的时刻确定为该时间戳。In the case where the first duration is greater than the second duration, it means that the duration required to respond to the service is longer, and at this time, it is necessary to enter the target scene as soon as possible, and the terminal determines that the timestamp is the current moment; in the case that the first duration is equal to the second duration Next, it is explained that the time required to respond to the service is the same as the time required for the target object to reach the location of the service, and the terminal determines the time of the first time (or the second time) after the current time as the timestamp. In the case where the first duration is less than the second duration, it means that the time required for the target object to reach the location of the service is relatively long, and it can take a while to enter the target location, and the terminal determines the duration difference between the second duration and the first duration , and the time of the time difference after the current time is determined as the time stamp.
步骤S406:终端在时间戳,进入目标场景。Step S406: The terminal enters the target scene at the time stamp.
在本申请实施例中,先确定进入目标场景的开始时间,在该开始时间进入目标场所,能够准确控制进入目标场所的时刻,从而既能避免过早进入目标场所导致的能耗增加,又能避免用户不能及时享受到该目标场景对应的服务。In the embodiment of the present application, the start time of entering the target scene is first determined, and when entering the target place at the start time, the time of entering the target place can be accurately controlled, so as to avoid the increase in energy consumption caused by entering the target place too early, and also This prevents the user from being unable to enjoy the service corresponding to the target scene in time.
请参考图5,其示出了本申请一个示例性实施例示出的场景识别方法的流程图。该方法包括:Please refer to FIG. 5 , which shows a flowchart of a scene recognition method according to an exemplary embodiment of the present application. The method includes:
步骤S501:在终端进入NFC读卡器的识别范围内的情况下,终端基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证。Step S501: When 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 authenticate the NFC chip.
需要说明的一点是,终端基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证的步骤与步骤S303中“终端基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证”的步骤相同,在此不再赘述。It should be noted that the steps for the terminal to communicate with the NFC card reader based on the NFC chip to request the NFC card reader to authenticate the NFC chip is the same as that in step S303, “the terminal communicates with the NFC card reader based on the NFC chip to The steps of requesting the NFC card reader to authenticate the NFC chip" are the same, and will not be repeated here.
步骤S502:在NFC读卡器对NFC芯片身份验证通过的情况下,终端获取NFC读卡器的第一特征信息。Step S502: In the case that the identity verification of the NFC chip by the NFC card reader is passed, the terminal acquires the first characteristic information of the NFC card reader.
需要说明的一点是,终端获取NFC读卡器的第一特征信息的步骤与步骤S301中“终端获取NFC读卡器的第一特征信息”的步骤相同,在此不再赘述。It should be noted that the step of acquiring the first characteristic information of the NFC card reader by the terminal is the same as the step of "the terminal acquiring the first characteristic information of the NFC card reader" in step S301, and will not be repeated here.
步骤S503:终端将第一特征信息与已存储的特征信息进行匹配,已存储的特征信息为已设置场景的特征信息。Step S503: The terminal matches the first feature information with the stored feature information, and the stored feature information is the feature information of the set scene.
需要说明的一点是,步骤S503与步骤S302相同,在此不再赘述。It should be noted that step S503 is the same as step S302, and details are not repeated here.
步骤S504:在已存储的特征信息中包括与第一特征信息匹配的目标特征信息的情况下,终端进入目标特征信息对应的目标场景,目标场景与目标场所关联。Step S504: When the stored feature information includes target feature information matching the first feature information, the terminal enters a target scene corresponding to the target feature information, and the target scene is associated with the target place.
需要说明的一点是,终端进入目标特征信息对应的目标场景的步骤与步骤S304中“终端进入目标特征信息对应的目标场景”的步骤相同,在此不再赘述。It should be noted that the steps for the terminal to enter the target scene corresponding to the target feature information are the same as the steps of "the terminal enters the target scene corresponding to the target feature information" in step S304, and are not repeated here.
在本申请实施例中。终端先请求NFC读卡器对NFC芯片进行身份验证,在身份验证通过的情况下,才基于NFC读卡器的第一特征信息进行场景识别,从而避免了终端已经进入了目标场景,但是由于NFC芯片的身份验证失败导致的目标对象无法获取到目标场景对应的服务的现象的发生,进而导致的能耗的浪费。由此可见,本申请可以节省能耗。In the examples of this application. The terminal first requests the NFC card reader to authenticate the NFC chip, and when the authentication is passed, the scene identification is performed based on the first feature information of the NFC card reader, thus avoiding that the terminal has entered the target scene, but due to the NFC The occurrence of the phenomenon that the target object cannot obtain the service corresponding to the target scene due to the failure of the authentication of the chip, which leads to the waste of energy consumption. It can be seen that the present application can save energy consumption.
请参考图6,其示出了本申请一个示例性实施例示出的场景识别装置的结构框图。该场景识别装置可以通过软件、硬件或者两者的结合实现成为处理器的全部或一部分。该装置包括:Please refer to FIG. 6 , which shows a structural block diagram of a scene recognition apparatus according to an exemplary embodiment of the present application. The scene recognition apparatus can be implemented as all or a part of the processor through software, hardware or a combination of the two. The device includes:
获取模块601,用于在终端进入近场通信NFC读卡器的识别范围内的情况下,获取NFC读卡器的第一特征信息,NFC读卡器安装在目标场所的入口处,用于控制入口处的关卡的开闭,且终端用于通过其自身包括的NFC芯片与NFC读卡器进行通信,以请求NFC读卡器打开入口处的关卡,使得目标对象进入目标场所;The
匹配模块602,用于将第一特征信息与已存储的多个特征信息进行匹配,多个特征信息为已设置场景的特征信息;A
进入模块603,用于在已存储的多个特征信息中包括与第一特征信息匹配的目标特征信息的情况下,进入目标特征信息对应的目标场景,目标场景与目标场所关联。Entering
在一种可能的实现方式中,进入模块603,包括:In a possible implementation, entering
第一通信单元,用于基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证;a first communication unit, configured to communicate with the NFC card reader based on the NFC chip, so as to request the NFC card reader to authenticate the NFC chip;
第一进入单元,用于在NFC读卡器对NFC芯片身份验证通过的情况下,进入目标特征信息对应的目标场景。The first entry unit is used to enter the target scene corresponding to the target feature information when the NFC card reader passes the authentication of the NFC chip.
在另一种可能的实现方式中,进入模块603,包括:In another possible implementation manner, entering
第一获取单元,用于获取目标场景对应服务的第一时长,第一时长为服务的响应时长;a first obtaining unit, configured to obtain the first duration of the service corresponding to the target scene, where the first duration is the response duration of the service;
第二获取单元,用于获取第二时长,第二时长为目标对象从目标场所的入口处到获取到服务所需的时长;a second acquisition unit, configured to acquire a second duration, where the second duration is the duration required for the target object to obtain the service from the entrance of the target place;
第一确定单元,用于基于第一时长和第二时长,确定时间戳,时间戳为进入目标场景的开始时间;a first determining unit, configured to determine a timestamp based on the first duration and the second duration, where the timestamp is the start time of entering the target scene;
第二进入单元,用于在时间戳,进入目标场景。The second entry unit is used to enter the target scene at the time stamp.
在另一种可能的实现方式中,进入模块603,包括以下任一单元:In another possible implementation manner, the
目标场所为居住地,目标场景用于对居住地包括的智能家居设备进行控制;第一控制单元,用于控制智能家居设备执行第一目标操作;The target place is a residence, and the target scene is used to control the smart home equipment included in the residence; the first control unit is used to control the smart home equipment to perform the first target operation;
目标场所为停车场,目标场景用于对终端显示的内容进行控制;显示单元,用于显示停车场的电子地图;The target place is a parking lot, and the target scene is used to control the content displayed by the terminal; the display unit is used to display the electronic map of the parking lot;
目标场所为交通运输站点,目标场景用于对终端显示的内容进行控制,则显示当前登录账号在交通运输站点对应的乘车信息;If the target site is a transportation site, and the target scene is used to control the content displayed on the terminal, the ride information corresponding to the current login account at the transportation site is displayed;
目标场所为车辆,目标场景用于对车辆进行控制;第二控制单元,用于与车辆中的车载终端建立短距离通信连接,基于短距离通信连接,控制车辆终端执行第二目标操作或者控制车辆中的车载器件执行第三目标操作。The target site is a vehicle, and the target scene is used to control the vehicle; the second control unit is used to establish a short-distance communication connection with the vehicle-mounted terminal in the vehicle, and based on the short-distance communication connection, controls the vehicle terminal to perform the second target operation or control the vehicle. The in-vehicle device in performs the third target operation.
在另一种可能的实现方式中,匹配模块602,包括:In another possible implementation, the
第二确定单元,用于确定第一特征信息对应的第一索引信息,第一索引信息用于唯一标识第一特征信息,但第一索引信息的复杂度低于第一特征信息的复杂度;a second determining unit, configured to determine first index information corresponding to the first feature information, where the first index information is used to uniquely identify the first feature information, but the complexity of the first index information is lower than that of the first feature information;
匹配单元,用于将第一索引信息与已存储的多个索引信息进行匹配,已存储的多个索引信息为多个特征信息对应的索引信息,且一个索引信息对应一个特征信息;a matching unit, configured to match the first index information with a plurality of stored index information, where the stored multiple index information is index information corresponding to a plurality of feature information, and one index information corresponds to one feature information;
第三确定单元,用于在多个索引信息中包括与第一索引信息匹配的目标索引信息的情况下,确定已存储的多个特征信息中包括目标特征信息,且目标特征信息为目标索引信息对应的特征信息。a third determining unit, configured to determine that, in the case where the plurality of index information includes target index information matching the first index information, determine that the plurality of stored feature information includes target feature information, and the target feature information is target index information corresponding feature information.
在另一种可能的实现方式中,获取模块601,包括:In another possible implementation manner, the obtaining
第二通信单元,用于基于NFC芯片与NFC读卡器进行通信,以请求NFC读卡器对NFC芯片进行身份验证;a second communication unit, configured to communicate with the NFC card reader based on the NFC chip, so as to request the NFC card reader to authenticate the NFC chip;
第三获取单元,用于在NFC读卡器对NFC芯片身份验证通过的情况下,获取NFC读卡器的第一特征信息。The third obtaining unit is configured to obtain the first feature information of the NFC card reader when the NFC card reader passes the authentication of the NFC chip.
需要说明的是:上述实施例提供的场景识别方法在场景识别时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将计算机设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的场景识别装置与场景识别方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: in the scene recognition method provided by the above-mentioned embodiments, only the division of the above-mentioned functional modules is used as an example for illustration. The internal structure of the computer equipment 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 embodiments provided by the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.
在本申请实施例中,由于NFC读卡器安装在目标场所的入口处,而终端进入NFC读卡器的识别范围内,说明终端此刻正在尝试刷卡,这直接代表了用户进入目标场所的动作,因此,基于NFC读卡器的第一特征信息,来进行场景识别,能够准确捕获到用户进入目标场所的动作,从而能够提高场景识别的可靠性。In the embodiment of the present application, since 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, it means that the terminal is trying to swipe the card at the moment, which directly represents the action of the user entering the target place. Therefore, the scene recognition is performed based on the first feature information of the NFC card reader, and the action of the user entering the target place can be accurately captured, thereby improving the reliability of the scene recognition.
请参考图7,其示出了本申请一个示例性实施例示出的终端的结构框图。终端700可以是智能手机、平板电脑等具有控制其他设备的功能的设备。本申请中的终端700可以包括一个或多个如下部件:处理器710、存储器720。Please refer to FIG. 7 , which shows a structural block diagram of a terminal according to an exemplary embodiment of the present application. The terminal 700 may be a device having a function of controlling other devices, such as a smartphone or a tablet computer. The terminal 700 in this application may include one or more of the following components: a
处理器710可以包括一个或者多个处理核心。处理器710利用各种接口和线路连接整个终端700内的各个部分,通过运行或执行存储在存储器720内的程序代码、程序、代码集或程序代码集,以及调用存储在存储器720内的数据,执行终端700的各种功能和处理数据。可选地,处理器710可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器710可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器710中,单独通过一块芯片进行实现。
存储器720可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器720包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器720可用于存储程序代码、程序、代码、代码集或程序代码集。存储器720可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的程序代码、用于至少一个功能的程序代码(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的程序代码等;存储数据区可存储根据终端700的使用所创建的数据(比如音频数据、电话本)等。The
除此之外,本领域技术人员可以理解,上述附图所示出的终端700的结构并不构成对终端700的限定,终端700可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端700中还包括麦克风、扬声器、射频电路、输入单元、传感器、音频电路、无线保真(Wireless Fidelity,Wi-Fi)模块、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 700 shown in the above drawings does not constitute a limitation on the terminal 700, and the terminal 700 may include more or less components than the one shown, or a combination of certain components may be included. some components, or a different arrangement of components. For example, the terminal 700 further includes components such as 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, and a Bluetooth module, which will not be repeated here.
本申请实施例还提供了一种计算机可读介质,该计算机可读介质存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的场景识别方法。Embodiments of the present application further provide a computer-readable medium, where the computer-readable medium stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor to implement the scene recognition method shown in each of the above embodiments.
本申请实施例还提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,该至少一条程序代码由该处理器加载并执行以实现如上各个实施例示出的场景识别方法。Embodiments of the present application further provide a computer program product, where at least one piece of program code is stored in the computer program product, and the at least one piece of program code is loaded and executed by the processor to implement the scene recognition method shown in each of the above embodiments.
在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。In some embodiments, the computer programs involved in the embodiments of the present application may be deployed and executed on one computer device, or executed on multiple computer devices located at one location, or distributed in multiple locations and communicated through Executed on multiple computer devices interconnected by a network, and multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个程序代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that, in one or more of the above examples, the functions described in the embodiments of the present application may be implemented by hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more program code 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 medium can be any available medium that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.
Claims (10)
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)
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 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109412913A (en) * | 2018-12-17 | 2019-03-01 | Oppo广东移动通信有限公司 | Control method and device of intelligent household equipment, storage medium and terminal |
US20200013040A1 (en) * | 2018-07-04 | 2020-01-09 | Sk Planet Co., Ltd. | Terminal device and method of operating same |
CN111179631A (en) * | 2018-11-13 | 2020-05-19 | 现代自动车株式会社 | Parking control system for autonomous vehicle |
CN111581994A (en) * | 2020-05-06 | 2020-08-25 | 维沃移动通信有限公司 | Near Field Communication (NFC) communication method and device and electronic equipment |
CN113541741A (en) * | 2021-07-20 | 2021-10-22 | 西安易朴通讯技术有限公司 | Analog card switching method and device, electronic equipment and storage medium |
-
2022
- 2022-05-07 CN CN202210491858.7A patent/CN114928828A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20200013040A1 (en) * | 2018-07-04 | 2020-01-09 | Sk Planet Co., Ltd. | Terminal device and method of operating same |
CN111179631A (en) * | 2018-11-13 | 2020-05-19 | 现代自动车株式会社 | Parking control system for autonomous vehicle |
CN109412913A (en) * | 2018-12-17 | 2019-03-01 | Oppo广东移动通信有限公司 | Control method and device of intelligent household equipment, storage medium and terminal |
CN111581994A (en) * | 2020-05-06 | 2020-08-25 | 维沃移动通信有限公司 | Near Field Communication (NFC) communication method and device and electronic equipment |
CN113541741A (en) * | 2021-07-20 | 2021-10-22 | 西安易朴通讯技术有限公司 | Analog card switching method and device, electronic equipment and storage medium |
Cited By (3)
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 | |
CN107026846B (en) | Method and apparatus for secure handling of fuel delivery requests | |
US20190130343A1 (en) | Baggage collection and delivery system | |
US9852392B2 (en) | 3D model and beacon for automatic delivery of goods | |
CN107182035B (en) | Wireless vehicle charging communication system and method using location-based services | |
CN107798362B (en) | Localized positioning using communication tags | |
CN107430524B (en) | Method for positioning sound emission position and terminal equipment | |
CN109357681B (en) | Vehicle navigation service coordinated with handheld wireless device | |
CN105763596A (en) | Peer To Peer Car Sharing Social-graph Configurator | |
CN114928828A (en) | Scene recognition method, device, terminal and storage medium | |
CN104349503B (en) | Method, system and the equipment of notice of the wireless communication device outside vehicle are provided | |
US20190263271A1 (en) | Execution of charge session swap based on charging priority | |
CN104901976A (en) | Vehicle internal usage scenario arrangement method, vehicle-mounted equipment and network equipment | |
CN106463044A (en) | Trainable transceiver and mobile communications device systems and methods | |
CN112995403B (en) | Vehicle control method and related device | |
CN107025804A (en) | Parking stall reserving method, system and storage medium | |
US11934981B2 (en) | Systems and methods for drones as a service | |
CN109152088B (en) | Wireless device connection management method | |
US20190147743A1 (en) | Vehicle guidance based on location spatial model | |
CN110910190A (en) | Integrated identification and authentication for car sharing and taxi service | |
CN112383877A (en) | Electronic device, service subscription method of service area and related product | |
WO2024179511A1 (en) | Automatic parking method, apparatus, and system, terminal, medium, and program product | |
CN105844946A (en) | Unmanned bus arrival prompt system, method and device | |
CN114299741A (en) | Vehicle control method and device based on auxiliary driving system | |
US11140522B2 (en) | Method and electronic device for transmitting group message |
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 |