Information processing method and apparatus, electronic device, storage medium, and program product
By using the first application framework and the second application in combination with ContentProvider in the feature recognition device, the object identity information of the feature data is directly obtained, which solves the problem of fragmentation of the login process in the feature recognition device and improves user experience and information security.
Patent Information
- Application Number
- PCT/CN2024/086533
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-18
- Filing Date
- 2024-04-08
- Publication Date
- 2024-10-24
AI Technical Summary
In existing feature recognition devices, the feature recognition process and the service program login process are separated, causing users to need to perform multiple operations, affecting the user experience, and failing to ensure account consistency, which may lead to identity information leakage or login failure.
By introducing the first application framework and the second application into the feature recognition device, and utilizing the ContentProvider mechanism of the operating system, the event insertion and notification processing of the predetermined interface call request are realized, and the object identity information of the feature data is directly obtained to avoid repeated login operations.
It achieves accurate identity information acquisition of characteristic data, ensures the security of personal information, simplifies user operation processes, and provides a more reliable service experience.
Smart Images

Figure CN2024086533_24102024_PF_FP_ABST
Abstract
Description
Information processing method, device, electronic device, storage medium and program product
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 18, 2023, with application number 202310458532.9 and entitled “Information processing method, device, electronic device, storage medium and program product”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of feature recognition technology. Specifically, the present application relates to an information processing method, device, electronic device, storage medium and program product.
[0003] background
[0004] Current feature recognition devices can provide feature recognition capabilities and subsequent specific services, such as payment services and check-in services. After the user successfully enters the feature to be recognized on the device, they can open the service program of the device access party and further complete identity login (such as scanning a code to log in).
[0005] As long as the user can successfully log in to the service program, all subsequent interactions between the user and the feature recognition device can be completed through the service program.
[0006] Technical content
[0007] According to one aspect of an embodiment of the present application, there is provided an information processing method, which is performed by a feature recognition device. The feature recognition device runs a first application and a second application, and is provided with a first application framework, which provides an operating environment for the first application. The method includes:
[0008] In response to the predetermined interface call request triggered by the first application, the first application framework inserts a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device;
[0009] After receiving the notification of the insertion of the first event generated by the content provider, the second application determines the event information of the first event from the content provider and performs detection of feature data based on the event information;
[0010] After detecting the feature data, the second application determines object identity information corresponding to the feature data and sends the object identity information to the first application.
[0011] According to another aspect of an embodiment of the present application, an information processing apparatus is provided, which runs on a feature recognition device. The feature recognition device runs a first application and a second application, and is provided with a first application framework, which provides an operating environment for the first application. The apparatus includes:
[0012] A first insertion module is configured to, in response to a triggered predetermined interface call request, insert a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device;
[0013] a detection module configured to, upon receiving a notification of insertion of a first event generated by a content provider, determine event information of the first event from the content provider, and perform detection of feature data based on the event information;
[0014] The sending module is used to determine the object identity information corresponding to the feature data after detecting the feature data, and send the object identity information to the first application. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments of the present application.
[0016] Figure 1a is a schematic diagram of using the IoT applet of the device access party in a palm-swiping device;
[0017] Figure 1b is a schematic diagram of logging into the IoT applet by scanning a QR code;
[0018] FIG2a is a flow chart of an information processing method provided in an embodiment of the present application;
[0019] FIG2 b is a schematic diagram of a flow chart of an information processing method provided in an embodiment of the present application;
[0020] FIG3a is a schematic diagram of a ContentProvider implementation provided in an embodiment of the present application;
[0021] FIG3 b is another schematic diagram of a ContentProvider implementation provided in an embodiment of the present application;
[0022] FIG4 is a schematic diagram of a data transmission effect of identity information provided by an embodiment of the present application;
[0023] FIG5 is a schematic diagram of the structural standard of a URI provided in an embodiment of the present application;
[0024] FIG6 is a schematic diagram of a complete process from calling an IoT applet running in WMPF to the Shuazhang APP according to an embodiment of the present application;
[0025] FIG7 is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;
[0026] FIG8 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
[0027] Implementation Method
[0028] The following describes the embodiments of the present application in conjunction with the accompanying drawings. It should be understood that the embodiments described below in conjunction with the accompanying drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0029] Those skilled in the art will understand that, unless otherwise stated, the singular forms "a", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the present technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the element can be directly connected or coupled to the other element, or it can refer to that the element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here can include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0030] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0031] First, several terms involved in this application are introduced and explained:
[0032] (1) Palm scanning: In a contactless situation, the user only needs to extend his palm to allow the identification device to identify and verify the user's identity. Among them, palm scanning technology can rely on palm print recognition, vein recognition, etc., but is not limited to these.
[0033] (2) Feature recognition device: that is, an offline feature recognition terminal (such as a palm recognition device, a face recognition device, a fingerprint recognition device, etc.), on which the user can complete the feature recognition process (such as palm recognition, face recognition, fingerprint recognition, etc.) and perform subsequent specific operations, such as payment operations, check-in operations, etc., but not limited to these.
[0034] (3) Feature recognition service: After the user activates the feature recognition service on the feature recognition device, it will be bound to the user's designated and unique account.
[0035] (4) Device access party: This is a third-party access party to the feature recognition service, such as large supermarkets, enterprises, etc. The device access party will develop service programs running on the feature recognition device based on the services provided by the feature recognition device, and can also be considered a service program developer.
[0036] (5) IoT (Internet of Things) applet: a mini-program that can run on hardware devices outside of the intended application environment.
[0037] (6) WMPF (Mini-Program Framework): This is the IoT mini-program hardware framework, which is used to host and run IoT mini-programs. The mini-program hardware framework was created to address the need to use mini-programs on non-general-purpose computing devices. As an operating environment, WMPF enables hardware devices (non-general-purpose computing devices, such as feature recognition devices) to run mini-programs even when they lack the necessary hardware to run pre-defined application clients, such as the WeChat client.
[0038] In current feature recognition devices, the device access party can use service programs to carry its own business and utilize the feature recognition capabilities of the feature recognition device. For example, if the feature recognition device is a palm-swipe device and the service program developed by the device access party is an IoT mini-program, the overall application model of using the device access party's IoT mini-program to carry its business in the palm-swipe device can be roughly described as the process shown in Figure 1a:
[0039] On the palm-swiping device, the palm-swiping APP (Application, application or application) developed by the provider of the palm-swiping device is used as the starting point. It provides core palm-swiping recognition capabilities and payment services (it can also be other services, and the payment service is used as an example in this example). In some embodiments, the palm-swiping APP can be run in the form of an Android application package (Android application package, APK), or it can be integrated in the form of an Android application archive file (Android Archive, AAR). After the user swipes his palm on the palm-swiping device and the palm print is successfully recognized by the palm-swiping APP, he can further start the business applet application of the device access party. In some embodiments, the business applet application of the device access party can be run in the form of an IoT applet. The palm-swiping APP can first start WMPF, and WMPF then starts the IoT applet of the device access party. Among them, WMPF is the operating environment of the IoT applet and can be run in the form of APK. After that, the user can complete login and other actions through the opened applet on the palm-swiping device after swiping his palm. In some embodiments, you can log in by scanning a QR code as shown in Figure 1b, that is, scan a QR code to log in. The palm-swiping device will apply to use the user's identity to open the login applet. After agreeing to log in, you can use the applet on the palm-swiping device; or you can log in by other methods, such as entering an account number, password, verification code, etc.
[0040] Under normal circumstances, this link is feasible. As long as the user can successfully open the mini program, all subsequent operations and interactions can be completed within the mini program. However, because the feature recognition process and the service program login process are separated, the user must complete the identity login again after entering the features to be identified. This operation is cumbersome and affects the user experience. Therefore, this method of logging into the mini program has the following two drawbacks:
[0041] (1) The mini program cannot obtain the identity of the user who scanned the app. For example, a user may have multiple accounts, and the app is bound to one of them. The mini program cannot guarantee that the user is logging in using the account bound to the app. This may lead to a key problem: the mini program cannot guarantee that the account of the user who scans the app is the same account that continues to use the mini program after scanning the app, and thus cannot provide reliable services.
[0042] (2) After swiping their palms, users need to scan the QR code again to complete their identity login, which is cumbersome and affects the user experience.
[0043] The information processing method, device, electronic device, computer-readable storage medium and computer program product provided by the present application are shown in Figure 2a. The information processing method includes: step S21, the first application framework responds to the predetermined interface call request triggered in the first application, and inserts the first event generated based on the predetermined interface call request into the content provider corresponding to the operating system in the feature recognition device; step S22, after the second application receives the notification of the insertion of the first event generated in the content provider, it determines the event information of the first event from the content provider and performs detection of feature data based on the event information; step S23, after the second application detects the feature data, it determines the object identity information corresponding to the feature data and sends the object identity information to the first application. The above technical problems of the prior art can be solved by this information processing method.
[0044] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on, or combine with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be repeated.
[0045] An embodiment of the present application provides an information processing method, which is executed by a feature recognition device. The feature recognition device runs a first application and a second application, and is provided with a first application framework. The first application framework provides an operating environment for the first application. As shown in FIG2b , the method includes:
[0046] Step S201: In response to a predetermined interface call request triggered by a first application, the first application framework inserts a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device;
[0047] In the embodiment of the present application, the first application refers to a service program that carries the business of the device access party, for example, it can be an IoT applet, or it can also be an APP or a web page, etc., but is not limited thereto.
[0048] The first application framework is a framework that carries and runs the first application. For example, if the first application is an IoT applet, the first application framework may be WMPF, but is not limited thereto.
[0049] In an embodiment of the present application, after the user enters feature data on the feature recognition device, for example, after the user swipes his palm on the palm-swiping device, the first application running in the feature recognition device will trigger the predetermined interface call request and pass the predetermined interface call request to the first application framework.
[0050] In response to the predetermined interface call request, the first application framework will generate a first event based on the predetermined interface call request, and insert the first event into the content provider corresponding to the operating system in the feature recognition device. Specifically, the first application framework will encapsulate the first application's call to the predetermined interface into event information to obtain the first event, and then insert it into the content provider at the first time. Among them, the structure of the event information encapsulation is roughly divided into three parts, the event name, the event unique identifier and the event parameters. The event name is determined based on the predetermined interface call request, indicating what kind of event the first event is. The event unique identifier indicates information related to the first event and the currently entered feature data, which is used to distinguish feature data entered at different times on the same feature recognition device. The event parameters indicate the parameters required for the subsequent processing of the first event.
[0051] Among them, the content provider can provide a unified interface for accessing application data for other applications to call, allowing their own application data to be opened to other applications for search, insertion, update or deletion as needed without worrying about security issues caused by directly opening database permissions.
[0052] For example, if the feature recognition device is a hardware device running the Android system, the content provider corresponding to the operating system in the feature recognition device can be ContentProvider, one of the four major components of the Android system. Specifically, using the Android-specific ContentProvider as the underlying bridge, the device's first application can obtain object identity information from the feature recognition service through a predetermined interface protocol (for the first application to obtain object identity information corresponding to feature data) agreed upon with the first application framework.
[0053] Step S202: After receiving the notification that a first event has been inserted into the content provider, the second application determines event information of the first event from the content provider and detects feature data based on the event information.
[0054] In an embodiment of the present application, after the first application framework inserts the first event into the content provider, the content provider generates a notification of the first event insertion and sends the notification to the second application to notify the second application that a first event has been inserted.
[0055] After receiving the notification of the first event insertion from the content provider, the second application can extract the event information of the first event from the content provider based on the inserted first event, and determine the feature data corresponding to the event unique identifier based on the event unique identifier in the event information, and start detecting the feature data entered by the user. The feature data may include palm scan data such as palm print data and / or vein data, facial feature data, or fingerprint data, etc.
[0056] Step S203: After detecting the feature data, the second application determines the object identity information corresponding to the feature data, and sends the object identity information to the first application.
[0057] In some embodiments of the present application, after a user enters feature data, the second application can detect the feature data. After detecting the feature data, the second application determines the object identity information corresponding to the feature data. Once the object identity information of the user who currently entered the feature data is obtained, it indicates that the feature recognition of the current user is successful.
[0058] For the embodiments of the present application, the object identity information obtained may specifically refer to the identity ID (Identity or Identifier) of the current user under the feature recognition service. In some embodiments, if the feature recognition service is associated with a predetermined application, the object identity information may be the OpenID of the user of the predetermined software under the feature recognition service product. In actual applications, the user of the predetermined software will have a unique OpenID when accessing different applets, mobile applications, website applications, small shops, etc., but the OpenID generated by the same user accessing different products will be different. Therefore, for the feature recognition service, each user's OpenID is also unique.
[0059] In the embodiment of the present application, after the second application obtains the object identity information of the user who enters the feature data, the second application sends the object identity information to the first application so as to log in to the first application using the object identity information.
[0060] That is, for the first application, it only needs to call the predetermined interface (i.e. trigger the predetermined interface call request) to actively obtain the object identity information of the current feature data identified by the feature recognition service side, and no longer relies on the user to manually scan the code again to complete the login.
[0061] By logging into the first application using the information processing method provided in the embodiments of the present application, the defects of the prior art can be overcome, and the following two technical effects can be achieved:
[0062] (1) For the first application, the object identity information of the user who enters the feature data can be accurately obtained through this predetermined interface, ensuring that the object identity information of the user who enters the feature data and the object identity information of the subsequent use of the first application are the same account, which can avoid the leakage of the user's personal information and thus ensure the security of personal information. At the same time, it avoids the failure of palm swiping due to errors in obtaining the user's identity information, thereby enabling the first application to further provide more reliable services.
[0063] (2) For users, it saves the need to log in again after entering feature data, greatly simplifies the user's operation process, and optimizes the user experience.
[0064] In an embodiment of the present application, in order to enable the first application to directly and actively obtain the object identity information of the user who enters the feature data, a communication bridge is provided between the first application and the second application that provides feature recognition services, that is, a content provider corresponding to the operating system in the feature recognition device.
[0065] For feature recognition devices based on the Android system, the ContentProvider in Android can also well cope with the demand for "data sharing" across apps. Therefore, it is highly feasible to use ContentProvider as this channel in feature recognition devices based on the Android system.
[0066] The following takes the ContentProvider in the Android system as an example to introduce a feasible implementation method for achieving this purpose through the embodiments of the present application.
[0067] ContentProvider is a component in Android that is used to share data. It allows an application to provide an interface for other applications to access its data, enabling cross-application data sharing.
[0068] The implementation steps of ContentProvider are as follows:
[0069] 1. Inherit the ContentProvider class and implement its abstract methods.
[0070] 2. Register the ContentProvider in the Android system manifest file.
[0071] 3. In the implementation of ContentProvider, the application identifies which requests should be handled by the ContentProvider through URI (Uniform Resource Identifier) matching.
[0072] Among them, URI is a uniform resource identifier used to identify the data provided by ContentProvider.
[0073] 4. In the implementation of ContentProvider, the application can implement methods such as query(), insert(), update(), and delete().
[0074] These methods are used to process different request types, such as database operations such as search, insert, update, and delete, as shown in FIG3 a.
[0075] 5. In the implementation of ContentProvider, data is encapsulated through specific data objects (ContentValues) and returned to the requester.
[0076] 6. In the implementation of ContentProvider, the application can access the data in the ContentProvider through a specific access object (ContentResolver).
[0077] Among them, ContentResolver is a class provided by the Android system, which is used to interact with ContentProvider. Its methods can be used to control operations such as query, insert, update, and delete, as shown in Figure 3b.
[0078] Sharing data across applications using ContentProvider ensures data security and privacy. It also makes it easier for other applications to access and utilize application data, enhancing application scalability.
[0079] In the embodiment of the present application, for step S201, the first application framework uses the insert() operation on the content provider to insert the first event into the content provider, thereby querying the object identity information in the database. Since the object identity information is not directly queried in the database, but is obtained by the second application through feature recognition results, the insert operation can trigger the second application to perform the corresponding operation, thereby achieving the purpose of sending the queried object identity information to the first application (step S203).
[0080] In the embodiment of the present application, the “sending the object identity information to the first application” in step S203 may specifically include:
[0081] Step S2031: the second application inserts a second event generated based on the object identity information into the content provider;
[0082] In an embodiment of the present application, after the characteristic data of the current user is successfully identified and the corresponding object identity information is obtained, the second application will generate a second event based on the object identity information and insert the second event into the content provider in reverse.
[0083] Step S2032: After receiving the insertion notification of the second event from the content provider, the first application framework extracts the object identity information from the second event and passes the object identity information to the first application.
[0084] In an embodiment of the present application, after the second application inserts the second event into the content provider, the content provider generates a notification of the second event insertion and sends the notification to the first application framework to notify the first application framework that a second event has been inserted.
[0085] After the first application framework receives the insertion notification of the second event from the content provider, it can extract the object identity information based on the second event inserted in the content provider, and pass the obtained object identity information to the first application to log in to the first application using the object identity information.
[0086] In the embodiment of the present application, in step S2031, the second application uses the insert() operation on the content provider to insert the second event into the content provider, thereby achieving the data transmission effect of the object identity information queried in the database, as shown in Figure 4. Since the object identity information is passively received by the first application framework, the insert operation can be used to trigger the notification of the first application framework to perform the corresponding operation, thereby achieving the purpose of receiving the object identity information and passing it to the first application (step S2032).
[0087] In an embodiment of the present application, an implementation method is provided for the second application to execute step S203, which may specifically include: after detecting the feature data, the second application determines the object identity information corresponding to the feature data, and calls back the first application to send the object identity information to the first application.
[0088] In an embodiment of the present application, the first application can provide a callback interface, which is also called after the first application initiates a predetermined interface call request to call the predetermined interface. Specifically, when the second application sends the object identity information to the first application, the callback interface provided by the first application can be used to call back the first application and send the object identity information to the first application.
[0089] In conjunction with at least one of the foregoing embodiments, the object identity information is passed to the first application via the first application framework. Step S2032 may include: upon receiving notification of the insertion of a second event from the content provider, the first application framework extracts the object identity information from the second event, calls back the first application via a callback interface, and passes the object identity information to the first application.
[0090] In the embodiment of the present application, after the predetermined interface agreed upon by the first application framework is called, the callback interface of the first application is also called. Specifically, after the first application framework extracts the object identity information from the second event, it can call back the first application through the callback interface provided by the first application and send the object identity information to the first application.
[0091] In an embodiment of the present application, a feasible implementation method is provided for step S201, specifically, it can include the steps of: the first application framework encapsulates the first application's call to the predetermined interface into event information to obtain a first event; the first application framework inserts the first event into the content provider corresponding to the operating system in the feature recognition device; wherein the event information includes at least one of the event name, the event unique identifier and the event parameters.
[0092] In the embodiment of the present application, the first application framework encapsulates the first application's call to the predetermined interface into a first event and then inserts it into the content provider. The structure of the event information encapsulation is roughly divided into three parts: event name, event unique identifier, and event parameters.
[0093] Specifically, the event name is determined based on a predetermined interface call request, indicating what kind of event the first event is. The content provider and the second application can determine the corresponding processing method for the event by matching the event name, that is, the content provider notifies the second application that the first event has been inserted, and the second application starts detecting the feature data. In one example, since the first event is generated based on the request of the first application, the event name of the first event can be GetOpenID, which is used for the first application to directly obtain the object identity information of the user who entered the feature data.
[0094] The event unique identifier indicates information related to the first event and the currently recorded feature data, and is used to distinguish feature data recorded at different times by the same feature recognition device. In some embodiments, the event unique identifier can be determined based on at least one of the following: the timestamp of receiving the predetermined interface call request, the timestamp of generating the first event, etc. In some embodiments, one or more timestamps can be directly used as the event unique identifier, or one or more timestamps can be used as the event unique identifier after performing certain operations or modifications.
[0095] The event parameters indicate the parameters required for subsequent processing of the first event. In actual applications, those skilled in the art can set the specific parameter type and content according to actual conditions, and the embodiments of the present application do not limit this.
[0096] In one example, based on the event information of the first events, the structure of the first application framework inserting the first event into the content provider may be as follows:
[0097] Event Name: GetOpenID
[0098] Unique event identifier: current timestamp
[0099] Event parameters: optional
[0100] In an embodiment of the present application, step S2031 may specifically include the steps of: the second application encapsulates the event information and object identity information of the first event to generate a second event; the second application inserts the second event into the content provider; wherein the event information of the first event includes at least one of the event name and the event unique identifier.
[0101] In an embodiment of the present application, the second application encapsulates the event information and object identity information of the first event into a second event, and then reversely inserts the second event into the content provider. The event name of the second event can directly adopt the event name of the first event, or the event name of the second event can be different from the event name of the first event, and the event information of the second event can include both the event name of the first event and the event name of the second event.
[0102] Similarly, the event unique identifier of the second event can directly adopt the event unique identifier of the first event, or the event unique identifier of the second event is different from the event unique identifier of the first event, and the event information of the second event can simultaneously include the event unique identifier of the first event and the event unique identifier of the second event. In some embodiments, the event unique identifier of the second event is determined based on at least one of the following: the timestamp of receiving the predetermined interface call request, the timestamp of generating the first event, the timestamp of starting to detect feature data, the timestamp of detecting feature data, the timestamp of generating the first event, etc. In some embodiments, one or more timestamps can be directly used as the event unique identifier of the second event, or one or more timestamps can be subjected to certain operations or adaptations and used as the event unique identifier of the second event, or the event unique identifier of the first event and the event unique identifier of the second event can be subjected to certain operations or adaptations and used as the event unique identifier of the second event. The embodiments of the present application are not limited here.
[0103] In one example, based on the event information and the obtained object identity information, the second application may insert the second event into the content provider structure as follows:
[0104] Event Name: GetOpenID
[0105] Unique event identifier: timestamp generated when the event is detected
[0106] Event parameters: user's OpenID (object identity information)
[0107] In the embodiment of the present application, an efficient and secure channel is implemented through the content provider, which enables the first application framework to actively obtain part of the data of the second application.
[0108] In an embodiment of the present application, an event inserted into a content provider can be identified by a URI, and the content provider can match and identify each event and its corresponding processing method based on the URI.
[0109] That is, in an embodiment of the present application, step S201 may also include the following steps: the first application framework identifies the first event inserted into the content provider through a first uniform resource identifier (first URI), the first uniform resource identifier (first URI) is used by the content provider to identify the first event, and sends a notification to the second application that the first event has been inserted into the content provider.
[0110] Similarly, for step S2031, it can also include the steps: the second application identifies the second event inserted into the content provider through a second uniform resource identifier (second URI), the second uniform resource identifier (second URI) is used by the content provider to identify the second event, and send a notification of the insertion of the second event to the first application framework.
[0111] Among them, the Uniform Resource Identifier (URI) is also called the Universal Resource Identifier.
[0112] Taking the feature recognition device equipped with the Android system as an example, the Android system follows the URI standard and defines a set of dedicated URIs (i.e., Content URIs). Its structure standard is shown in Figure 5. Among them:
[0113] Theme name (Schema): The URI prefix of ContentProvider is Content.
[0114] Authorization information (Authority): A unique identifier authorized by the ContentProvider. For example, in combination with the first application framework (taking WMPF as an example) and the processing between the two, the authorization information of the first URI may be com.wmpf.cli.provider, and the authorization information of the second URI may be com.wmpf.comm.provider.
[0115] Table name (Path): ContentProvider points to a table name in the database. For example, in combination with the first application framework (taking WMPF as an example) and the processing process between the two, the table name pointed to by the above first URI can be invokeChannelEvent (register detection event), and the table name pointed to by the above second URI can be notifyInvokeChannelEvent (reverse notification event occurrence).
[0116] Record (ID): a record in the table (if not specified, all records are returned)
[0117] Based on the ContentPtovider function and combined with the first application framework (taking WMPF as an example), the predetermined standard URI structures for identifying the first event and the second event are:
[0118] content: / / com.wmpf.cli.provider / invokeChannelEvent
[0119] content: / / com.wmpf.comm.provider / notifyInvokeChannelEvent
[0120] In the embodiments of the present application, the feature recognition device may provide some functions for the device access party, including but not limited to:
[0121] (1) Event registration function
[0122] The first application also has an event registration function, registers a third event, can initiate a predetermined interface call request, and receive object identity information sent through a callback interface.
[0123] In an example, the pseudo code of this function is as follows:
[0124] In an embodiment of the present application, before the first application running in the feature recognition device triggers a predetermined interface call request, the method may further include the step of registering a third event for the first application.
[0125] (2) Enable the detection function
[0126] The first application may also have a detection function, based on which the third event may be set to a detection state to detect the registered third event. Only when the third event is in the detection state can the object identity information sent by the second application be received.
[0127] In an example, the pseudo code of this function is as follows:
[0128] / / Detect registered GetOpenID events
[0129] wmpf.Channel.on('GetOpenID',callback)
[0130] In an embodiment of the present application, step S203 specifically includes the following steps: if the third event is in the detection state, the second application determines the object identity information corresponding to the feature data after detecting the feature data, triggers the third event, and sends the object identity information to the first application.
[0131] That is, the second application only detects the feature data, determines the object identity information corresponding to the feature data, and sends the object identity information to the first application when the third event is in the detection state. If the third event is in the non-detection state, the second application may not perform these steps to save computing resources.
[0132] (3) Cancel the detection function
[0133] The first application may also have a detection cancellation function, based on which the third event may be set to a non-detection state and the registered third event may not be detected. The third event is in a non-detection state and cannot receive the object identity information sent by the second application.
[0134] In an example, the pseudo code of this function is as follows:
[0135] / / Cancel the detection of the registered 'GetOpenID event
[0136] wmpf.Channel.off(GetOpenID',callback)
[0137] The method provided in the embodiment of the present application may further include the step of changing the third event to a detection cancellation state for the first application.
[0138] It can be understood that the detection function can be turned on and the detection function can be used in conjunction with each other, and the device access party can customize the effective time of the detection function and the detection function. For example, each time a user uses the feature recognition device, a detection is turned on and the detection is canceled after use; for another example, the detection is turned on and canceled at the start time and end time of the predetermined time period respectively, and the predetermined time period can be related to business hours, working hours, etc.; for another example, the detection is turned on after the feature recognition device is started, and it is always in the detection state, and the detection cancellation function is not used, etc. Technical personnel in this field can make settings according to actual conditions, and the embodiments of the present application are not limited here.
[0139] (4)Cancel registration function
[0140] The first application may also have a registration cancellation function. The first application may cancel registration for the third event, and then the first application cannot initiate a predetermined interface call request and cannot receive object identity information sent through the callback interface.
[0141] In an example, the pseudo code of this function is as follows:
[0142] The method provided in the embodiment of the present application may further include the step of: canceling registration of the third event for the first application.
[0143] It can be understood that the event registration function and the cancellation registration function can also be used in conjunction with each other. The device access party can customize the effective time of the event registration function and the cancellation registration function. For details, please refer to the introduction to the combined use of the detection function and the detection cancellation function. I will not repeat them here.
[0144] For at least one of the above embodiments, the feature recognition device may specifically refer to a palm-swiping device. Compared to other feature recognition devices such as face-swiping devices, palm-swiping devices are more compatible with the solutions of the embodiments of this application. This is because, compared to face-swiping devices, which may have facial occlusion or multiple faces, the characteristics of palm-swiping devices result in fewer features that can be misidentified in the palm-swiping area, reducing the need for secondary confirmation and providing a higher security index. Therefore, a single palm-swiping device can achieve both identity authentication and device access service login.
[0145] Furthermore, palm swipe technology is less susceptible to fraud than fingerprint recognition. Palm prints can be altered by physical and environmental factors, while palm swipe technology is more stable.
[0146] In this embodiment of the present application, the palm-swipe device can provide the device access party with the ability to directly open a third-party program (a first application) on the palm-swipe device, independent of the predefined application client. Specifically, a predefined interface "wmpf.Channel.on('GetOpenID', callback)" is provided to the device access party. After registering for the corresponding event detection, the first application only needs to call this predefined interface to directly obtain the palm-swipe user's OpenID. This eliminates the need for users to log in to the mini-program by scanning a code.
[0147] The following example describes a complete process for calling the Shuazhang app from the IoT applet running in WMPF to the Shuazhang app, using an Android device as the first application, WMPF as the first application framework, and the Shuazhang app as the second application. As shown in Figure 6, after the applet calls the predetermined interface "wmpf.Channel.on('GetOpenID', callback)", it will go through the following sequence of calls:
[0148] 6.1. The "wmpf.Channel.on('GetOpenID', callback)" call request triggered by the applet will be passed to WMPF;
[0149] 6.2. WMPF will encapsulate this call to the predetermined interface into an event (i.e., the first event) and insert it into the ContentProvider, that is, perform operations on the ContentProvider:
[0150] insert(content: / / com.wmpf.cli.provider / invokeChannelEvent)
[0151] The encapsulated structure can be roughly divided into three parts: event name, event unique identifier and event parameters;
[0152] 6.3. ContentProvider will notify the Shuazhang app that an event has been inserted. The Shuazhang app can then extract information such as the event name based on the first inserted event, and start the detection logic corresponding to the GetOpenID event to start detecting the Shuazhang data.
[0153] 6.4. When the palm recognition successfully obtains the current user's OpenID, the palm recognition app will insert an event (the second event) in the reverse direction, that is, perform an operation on the ContentProvider:
[0154] insert(content: / / com.wmpf.comm.provider / notifyInvokeChannelEvent)
[0155] And encapsulate the corresponding event name, the event unique identifier in step 6.2, and the user's OpenID;
[0156] 6.5. ContentProvider will notify WMPF that an event (second event) has been inserted. WMPF can then extract the event name and other information based on the inserted second event and obtain the OpenID of the user who swipes the palm.
[0157] 6.6. WMPF passes the obtained OpenID to the applet according to the return value res, where res contains the OpenID, that is, 'OpenID=' + res.data.
[0158] This completes the entire process of the Mini Program acquiring the user's OpenID. This solves the reliability issue of Mini Program login, ensures the security of user information, and avoids the user having to actively scan the code again.
[0159] The technical solution of the embodiment of the present application is based on the unique ContentProvider in Android as the underlying bridge. Through the interface protocol for obtaining user identity by swiping the palm of your hand, which is agreed with the IoT Mini Program Hardware Framework (WMPF), the mini program developed by the device access party can obtain the user identity from the swiping palm service side. In other words, the mini program only needs to call this special interface to actively obtain the user identity of the current swiper from the swiping palm service side at its own level. It no longer relies on the swiper to manually scan the code again to complete the login.
[0160] The technical solution of the embodiment of the present application can solve two pain points at once:
[0161] (1) For mini programs, the identity information of the person swiping their palm can be directly and accurately obtained through this new interface, ensuring the security of user information and avoiding palm swiping failures caused by errors in obtaining user identity information.
[0162] (2) For users who scan their palms, it saves them from having to scan the QR code again to log in after scanning their palms, which greatly simplifies the user process and optimizes the user experience.
[0163] The technical solution of the embodiments of the present application can be applied to conventional scenarios. The IoT applet running on the palm-swiping device is an independent environment and will not interfere with other service capabilities of the device.
[0164] The technical solution of the embodiments of the present application can also be applied to scenarios where specific palm-swiping services are implemented, such as palm-swiping access control at gyms, self-service checkout with palm-swiping devices, etc. Because these business parties usually use mini-programs to carry them, the ability to directly obtain the identity information of the palm-swiping person in the IoT mini-program supported by this solution allows the device access party to only develop its own mini-program to obtain the identity of the palm-swiping person in the mini-program to serve its own business scenarios.
[0165] It should be noted that in the above embodiments, when the embodiments of this application are applied to specific products or technologies, the various user-related information (such as feature data, object identity information, etc.) requires the permission or consent of the subject, and the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions. In other words, if the embodiments of this application involve data related to the subject, this data must be obtained with the authorization and consent of the subject and in compliance with the relevant laws, regulations and standards of the country and region.
[0166] In some embodiments, the information processing involved in the embodiments of this application can be implemented based on cloud technology. Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing. Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool that is used on demand and is flexible and convenient. Cloud computing technology will become a key support. Cloud computing refers to the delivery and use model of IT infrastructure, which means obtaining required resources through the network in an on-demand and scalable manner. In a broader sense, cloud computing refers to the delivery and use model of services, which means obtaining required services through the network in an on-demand and scalable manner. Such services can be IT-related, software-related, internet-related, or other services. With the development of the Internet, real-time data streams, and the diversification of connected devices, as well as the demand for search services, social networks, mobile commerce, and open collaboration, cloud computing has developed rapidly. Unlike previous parallel distributed computing, the emergence of cloud computing will fundamentally drive revolutionary changes in the entire Internet model and enterprise management model.
[0167] The database involved in the embodiments of this application can be simply thought of as an electronic filing cabinet—a place where electronic files are stored, where users can add, query, update, and delete data in the files. A "database" is a collection of data that is stored together in a certain manner, can be shared by multiple users, has minimal redundancy, and is independent of application programs.
[0168] In some embodiments, some steps of the information processing method provided in the embodiments of the present application can be implemented based on artificial intelligence (AI) technology. For example, feature recognition, etc. AI is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making. This solution may involve computer vision technology, machine learning technology and other directions in artificial intelligence software technology.
[0169] Computer vision (CV) is the science of making machines "see." Specifically, it refers to machine vision, which uses cameras and computers to replace the human eye to identify and measure targets, and further performs image processing to make the computer-processed images more suitable for human observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, attempting to build artificial intelligence systems that can obtain information from images or multidimensional data. Computer vision technology generally includes image processing, image recognition, image semantic understanding, image retrieval, optical character recognition (OCR), video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and mapping, autonomous driving, and smart transportation. It also includes common biometric recognition technologies such as facial recognition, fingerprint recognition, and palm recognition.
[0170] Machine learning (ML) is a multidisciplinary field that encompasses probability theory, statistics, approximation theory, convex analysis, and algorithmic complexity theory. It specifically studies how computers can simulate or implement human learning behaviors to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is at the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications span all areas of AI. Machine learning and deep learning typically include techniques such as artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0171] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, Internet of Vehicles, automatic driving, smart transportation, etc. It is believed that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0172] The embodiment of the present application provides an information processing device that runs on a feature recognition device. The feature recognition device runs a first application and a second application, and provides a first application framework. The first application framework provides an operating environment for the first application. As shown in FIG7 , the information processing 70 may include: a first insertion module 701, a detection module 702, and a sending module 703, wherein:
[0173] The first insertion module 701 is configured to, in response to a predetermined interface call request triggered by a first application, insert a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device;
[0174] The detection module 702 is configured to, upon receiving a notification of a first event insertion generated by a content provider, determine event information of the first event from the content provider, and perform feature data detection based on the event information;
[0175] The sending module 703 is configured to, after detecting the feature data, determine the object identity information corresponding to the feature data, and send the object identity information to the first application.
[0176] In some embodiments, the apparatus further includes: a second insertion module 704;
[0177] When the sending module 703 is used to send the object identity information to the first application,
[0178] The second inserting module 704 is used to insert a second event generated based on the object identity information into the content provider;
[0179] The sending module 703 is specifically configured to extract the object identity information from the second event after receiving the insertion notification of the second event from the content provider, and transmit the object identity information to the first application.
[0180] In some embodiments, when the second insertion module 704 is used to insert the second event generated based on the object identity information into the content provider, it is specifically used to:
[0181] Encapsulate the event information and object identity information of the first event to generate a second event;
[0182] Inserting a second event into the content provider;
[0183] The event information of the first event includes at least one of an event name and an event unique identifier.
[0184] In some embodiments, when the first inserting module 701 is used to insert the first event generated based on the predetermined interface call request into the content provider corresponding to the operating system in the feature recognition device, it is specifically used to:
[0185] Encapsulating the call of the first application to the predetermined interface into event information to obtain a first event;
[0186] Inserting the first event into a content provider corresponding to the operating system in the feature recognition device;
[0187] The event information includes at least one of an event name, an event unique identifier, and an event parameter.
[0188] In some embodiments, the apparatus further includes: a first identification module 705;
[0189] When the first inserting module 701 is used to insert the first event generated based on the predetermined interface call request into the content provider corresponding to the operating system in the feature recognition device,
[0190] The first identification module 705 is used to identify the first event inserted into the content provider through a first uniform resource identifier, which is used by the content provider to identify the first event, generate and send an insertion notification of the first event in the content provider to the second application.
[0191] In some embodiments, the apparatus further includes: a second identification module 706;
[0192] When the second inserting module 704 is used to insert the second event generated based on the object identity information into the content provider,
[0193] The second identification module 706 is used to identify the second event inserted into the content provider through a second uniform resource identifier. The second uniform resource identifier is used by the content provider to identify the second event, generate and send an insertion notification of the second event to the first application framework.
[0194] In some embodiments, after detecting feature data, the sending module 703 determines the object identity information corresponding to the feature data and sends the object identity information to the first application, specifically:
[0195] After the feature data is detected, object identity information corresponding to the feature data is determined, and the first application is called back through a callback interface to send the object identity information to the first application.
[0196] In some embodiments, the unique event identifier is determined based on at least one of the following:
[0197] The timestamp of receiving the scheduled interface call request;
[0198] Generate the timestamp of the first event;
[0199] The timestamp when feature data detection starts;
[0200] The timestamp of the detected feature data;
[0201] The timestamp when the first event was generated.
[0202] In some embodiments, the apparatus further includes: a registration module 707;
[0203] Before the first application running in the feature recognition device triggers a predetermined interface call request, the registration module 707 is used to register a third event for the first application, and the third event is used to enable the first application to initiate the triggering of the predetermined interface call request and receive the object identity information sent through the callback interface.
[0204] In some embodiments, when the sending module 703 is configured to determine the object identity information corresponding to the feature data after detecting the feature data and send the object identity information to the first application, it is specifically configured to:
[0205] If the third event is in the detection state, the second application determines the object identity information corresponding to the feature data after detecting the feature data, triggers the third event, and sends the object identity information to the first application through the callback interface;
[0206] In some embodiments, the apparatus further comprises: at least one of a cancellation detection module 708 and a cancellation registration module 709;
[0207] The cancellation detection module 708 is configured to change the third event to a cancellation detection state for the first application;
[0208] The unregistration module 709 is configured to unregister the third event for the first application.
[0209] In an optional embodiment, the feature recognition device is a palm-swiping device.
[0210] In an optional implementation, the first application is an IoT applet.
[0211] Among them, the first insertion module 701 and the first identification module 705 cooperate with the first application framework to run; the detection module 702, the second insertion module 704, and the second identification module 706 cooperate with the second application to run; the registration module 707, the cancellation detection module 708, and the cancellation registration module 709 cooperate with the first application to run.
[0212] The device of the embodiment of the present application can execute the method provided by the embodiment of the present application, and its implementation principle is similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device and the beneficial effects produced, please refer to the description of the corresponding method shown in the previous text, and will not be repeated here.
[0213] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, and the processor executes the above computer program to implement the steps of the above method embodiments.
[0214] The electronic device may refer to a feature recognition device, such as a palm scanning device.
[0215] In an optional embodiment, an electronic device is provided, as shown in FIG8 , wherein the electronic device 800 shown in FIG8 includes: a processor 801 and a memory 803. The processor 801 and the memory 803 are connected, such as via a bus 802. In some embodiments, the electronic device 800 may further include a transceiver 804, which may be used for data exchange between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the number of transceivers 804 is not limited to one, and the structure of the electronic device 800 does not constitute a limitation on the embodiments of the present application.
[0216] The processor 801 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor 801 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0217] Bus 802 may include a path for transmitting information between the aforementioned components. Bus 802 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, for example. Bus 802 may be divided into an address bus, a data bus, a control bus, and so on. For ease of illustration, FIG8 shows only one thick line, but this does not indicate that there is only one bus or only one type of bus.
[0218] The memory 803 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation here.
[0219] The memory 803 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 801. The processor 801 is used to execute the computer program stored in the memory 803 to implement the steps shown in the above method embodiment.
[0220] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0221] An embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0222] The terms "first," "second," "1," "2," etc., in the specification and claims of this application and in the accompanying drawings are used to distinguish similar objects and are not necessarily used to describe a particular order or sequential sequence. It should be understood that the terms used in this manner are interchangeable where appropriate, such that the embodiments of the application described herein can be practiced in an order other than that illustrated or described.
[0223] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the order of implementation of these steps is not limited to the order indicated by the arrows. Unless otherwise clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart can include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages can be executed at the same time, and each sub-step or stage in these sub-steps or stages can also be executed at different times respectively. Under different scenarios at the execution time, the execution order of these sub-steps or stages can be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0224] The above are only optional implementation methods for some implementation scenarios of this application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of this application, the use of other similar implementation methods based on the technical ideas of this application also falls within the protection scope of the embodiments of this application.
Claims
1. An information processing method is performed by a feature recognition device, wherein a first application and a second application are running in the feature recognition device, and a first application framework is provided, wherein the first application framework provides an operating environment for the first application, comprising: In response to the predetermined interface call request triggered by the first application, the first application framework inserts a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device; After receiving the notification of the insertion of the first event generated by the content provider, the second application determines the event information of the first event from the content provider, and performs detection of feature data based on the event information; After detecting the feature data, the second application determines the object identity information corresponding to the feature data, and sends the object identity information to the first application.
2. The information processing method according to claim 1, wherein: The sending the object identity information to the first application includes: The second application inserts a second event generated based on the object identity information into the content provider; After receiving the insertion notification of the second event in the content provider, the first application framework extracts the object identity information from the second event and transmits the object identity information to the first application.
3. The information processing method according to claim 2, wherein: The second application inserts a second event generated based on the object identity information into the content provider, including: The second application encapsulates the event information of the first event and the object identity information to generate the second event; The second application inserts the second event in the content provider; The event information of the first event includes at least one of an event name and an event unique identifier.
4. The information processing method according to claim 1, wherein: The step of inserting the first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device includes: The first application framework encapsulates the call of the first application to the predetermined interface into event information to obtain the first event; The first application framework inserts the first event into a content provider corresponding to the operating system in the feature recognition device; The event information includes at least one of an event name, an event unique identifier, and an event parameter.
5. The information processing method according to claim 1, wherein: The method of inserting the first event generated based on the predetermined interface call request into the content provider corresponding to the operating system in the feature recognition device further includes: The first application framework identifies the first event inserted into the content provider through a first uniform resource identifier, and the first uniform resource identifier is used by the content provider to identify the first event, generate and send an insertion notification of the first event in the content provider to the second application.
6. The information processing method according to claim 1, wherein: The second application inserts a second event generated based on the object identity information into the content provider, further comprising: The second application identifies the second event inserted into the content provider through a second uniform resource identifier, and the second uniform resource identifier is used by the content provider to identify the second event, generate and send an insertion notification of the second event to the first application framework.
7. The information processing method according to claim 1, wherein: After detecting the feature data, the second application determines the object identity information corresponding to the feature data, and sends the object identity information to the first application, including: After detecting the feature data, the second application determines the object identity information corresponding to the feature data, and calls back the first application through a callback interface to send the object identity information to the first application.
8. The information processing method according to claim 3 or 4, wherein: The event unique identifier is determined based on at least one of the following: The timestamp of receiving the predetermined interface call request; generating a timestamp for the first event; A timestamp for starting to detect the characteristic data; A timestamp of when the characteristic data is detected; A timestamp for the first event is generated.
9. The information processing method according to any one of claims 1 to 7, wherein: Before triggering a predetermined interface call request in the first application, the method further includes: registering a third event for the first application, wherein the third event is used to enable the first application to initiate the triggering predetermined interface call request and receive the object identity information sent through the callback interface; After detecting the feature data, the second application determines the object identity information corresponding to the feature data, and sends the object identity information to the first application, including: If the third event is in the detection state, the second application determines the object identity information corresponding to the feature data after detecting the feature data, triggers the third event, and sends the object identity information to the first application through the callback interface; The method further comprises at least one of the following: For the first application, changing the third event to a detection cancellation state; The third event is unregistered for the first application.
10. The information processing method according to any one of claims 1 to 7, wherein: The feature recognition device is a palm-swiping device.
11. The information processing method according to any one of claims 1 to 7, wherein: The first application is the Internet of Things (IoT) applet.
12. An information processing apparatus, running on a feature recognition device, wherein a first application and a second application are running on the feature recognition device, and a first application framework is provided, wherein the first application framework provides an operating environment for the first application, comprising: A first insertion module, configured to, in response to a predetermined interface call request triggered by the first application, insert a first event generated based on the predetermined interface call request into a content provider corresponding to the operating system in the feature recognition device; a detection module, configured to, after receiving the notification of the insertion of the first event generated in the content provider, determine event information of the first event from the content provider, and perform detection of feature data based on the event information; The sending module is used to determine the object identity information corresponding to the feature data after detecting the feature data, and send the object identity information to the first application.
13. The information processing device according to claim 12, wherein: The device also includes a second insertion module, which is used to: When the sending module is used to send the object identity information to the first application, the second event generated based on the object identity information is inserted into the content provider; The sending module is used to extract the object identity information from the second event after receiving the insertion notification of the second event in the content provider, and transmit the object identity information to the first application.
14. The information processing device according to claim 13, wherein: The second plug-in module is used for: Encapsulating the event information of the first event and the object identity information to generate the second event; inserting the second event in the content provider; The event information of the first event includes at least one of an event name and an event unique identifier.
15. The information processing device according to claim 12, wherein: The first insertion module is used for: Encapsulating the call of the first application to the predetermined interface into event information to obtain the first event; Inserting the first event into a content provider corresponding to the operating system in the feature recognition device; The event information includes at least one of an event name, an event unique identifier, and an event parameter.
16. The information processing device according to claim 12, wherein: The device further includes: a first identification module configured to: The first event inserted into the content provider is identified by a first uniform resource identifier, and the first uniform resource identifier is used by the content provider to identify the first event, generate and send an insertion notification of the first event in the content provider to the second application.
17. The information processing device according to claim 12, wherein: The device further includes: a first identification module configured to: The second event inserted into the content provider is identified by a second uniform resource identifier, and the second uniform resource identifier is used by the content provider to identify the second event, generate and send an insertion notification of the second event to the first application framework.
18. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the method according to any one of claims 1 to 11.
19. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
20. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Communication method and apparatus between application programs, electronic device and storage medium
CN109189584A
Information sharing method, terminal device, storage medium and computer program product
CN110611905A
File monitoring method and device, electronic device and storage medium
CN112269762A
Information processing method and device, electronic equipment, storage medium and program product
CN116975821A
Application programming interface for rendering personalized related content to third party applications
US9219736B1
