Registration opening method and device of platform service, electronic equipment and storage medium
By obtaining the camera occupancy information, the target registration identification code is obtained and displayed, which solves the problem of user devices mistakenly scanning the code for registration and improves the registration and activation efficiency of the platform service.
Patent Information
- Application Number
- CN202410453367.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-15
- Publication Date
- 2025-10-21
AI Technical Summary
During the registration process for platform services using biometric technology, user devices are prone to mistakenly scanning codes for registration, resulting in low registration and activation efficiency.
By obtaining the current camera occupancy information, the target registration identification code is obtained according to the application information, and the code is sent to the target function service device for display, and then scanned by the camera and the registration and activation process is executed.
It improves the registration and activation efficiency of platform services and solves the problem of users' devices mistakenly scanning codes for registration.
Smart Images

Figure CN120825399A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a registration and activation method, device, electronic device, computer storage medium, and computer program product for platform services. Background Art
[0002] Driven by digitalization and intelligentization, the demand for greater convenience and security in life is growing. With the advancement of science and technology, biometric technologies (such as facial recognition, iris recognition, and palm vein recognition) are gradually replacing traditional identity authentication methods. These technologies mitigate the risks of forgotten, lost, or stolen authentication methods like passwords and cards, while improving the security and convenience of identity authentication. As an emerging form of identity authentication, biometric technology is gradually becoming an integral part of users' lives, bringing a whole new experience.
[0003] Biometric technology has diverse application scenarios. For example, palm swiping (i.e., palm vein recognition) can be applied to services such as access control, clock-in, and payment. However, as palm swiping applications and platforms expand, users are prone to mistakenly scanning codes during service registration, resulting in low registration and activation efficiency for platform services. Summary of the Invention
[0004] Embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for registration and activation of a platform service, which can improve the efficiency of registration and activation of the platform service.
[0005] A registration and activation method for a platform service, comprising:
[0006] Obtaining occupancy information of the current camera, wherein the occupancy information includes information about the application currently occupying the camera;
[0007] Obtaining a target registration identification code for a corresponding platform service based on the application information;
[0008] Sending the target registration identification code to a target function service device, so that the target function service device displays the target registration identification code, wherein the target function service device is used to implement the target function service;
[0009] The target registration identification code displayed by the target function service device is scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed according to the scanning result.
[0010] Accordingly, an embodiment of the present application further provides a platform service registration and activation device, which is applied to a user device, and includes:
[0011] A first acquiring unit is configured to acquire occupancy information of a current camera, wherein the occupancy information includes information about an application currently occupying the camera;
[0012] A second acquiring unit, configured to acquire a target registration identification code corresponding to the platform service according to the application information;
[0013] a sending unit, configured to send the target registration identification code to a target function service device, so that the target function service device displays the target registration identification code, wherein the target function service device is configured to implement a target function service;
[0014] The processing unit is used to scan the target registration identification code displayed by the target function service device through the camera, and execute the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
[0015] Optionally, in some embodiments, the second acquiring unit is further configured to:
[0016] Sending the application information to the target function service device, so that the target function service device parses the application information and determines the corresponding platform service according to the parsing result;
[0017] Obtain the target registration identification code of the platform service.
[0018] Optionally, in some implementations, when acquiring the target registration identification code of the platform service, the second acquiring unit is further configured to:
[0019] Sending a status query request to a server, so that the server determines the registration activation status of the current account of the platform service on the target function service according to the status query request;
[0020] When the current account of the platform service has not activated the target functional service, the target registration identification code of the platform service is obtained.
[0021] Optionally, in some embodiments, the processing unit is further configured to:
[0022] Generate and display a service registration and activation confirmation page based on the scan results;
[0023] When an activation confirmation instruction triggered for the confirmation page is detected, a registration and activation process of the current account of the platform service on the target function service is executed.
[0024] Optionally, in some embodiments, the device further comprises:
[0025] an establishing unit, configured to establish a short-range communication connection between the user device and the target function service device before obtaining the occupancy information of the current camera;
[0026] The sending unit is further configured to send the target registration identification code to the target function service device based on the short-range communication connection.
[0027] Optionally, in some embodiments, the establishing unit is further configured to:
[0028] When the user equipment is within the coverage of the broadcast signal of the target function service device, receiving a pairing request sent by the target function service device;
[0029] In response to the pairing request, a short distance communication connection is established with the target function service device.
[0030] Optionally, in some embodiments, the device further comprises:
[0031] A third acquiring unit, configured to acquire a device identifier of the user device;
[0032] a marking unit, configured to mark the target registration identification code based on the device identifier to obtain a marked target registration identification code;
[0033] The sending unit is further configured to send the marked target registration identification code to the target function service device, so that the target function service device can display the marked target registration identification code.
[0034] An embodiment of the present application also provides an electronic device, including a processor and a memory, wherein the memory stores an application program, and the processor is configured to run the application program in the memory to execute the steps in any one of the above-described platform service registration and activation methods.
[0035] An embodiment of the present application further provides a computer-readable storage medium storing a plurality of instructions suitable for loading by a processor to execute the steps in any one of the above-mentioned methods for registering and activating platform services.
[0036] An embodiment of the present application further provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in any of the above-mentioned platform service registration and activation methods.
[0037] This application obtains the current camera occupancy information and obtains the target registration identification code of the corresponding platform service based on the information of the application currently occupying the camera. It then sends the target registration identification code to the target function service device for the target function service device to display the target registration identification code. The target registration identification code displayed by the target function service device is then scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed based on the scan result. In this solution, the target registration identification code of the platform service that the user wishes to activate is delivered to the target function service device for display, which solves the problem of user devices easily scanning the code for registration during the service registration process and improves the registration and activation efficiency of the platform service. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.
[0039] Figure 1 This is a scenario diagram of a registration and activation method for a platform service provided in an embodiment of the present application;
[0040] Figure 2 This is a flow chart of a registration and activation method for a platform service provided in an embodiment of the present application;
[0041] Figure 3 This is a schematic diagram of a scenario of a registration and activation method for a platform service provided in an embodiment of the present application;
[0042] Figure 4 This is a schematic diagram of the structure of the target function service device provided in the embodiment of the present application;
[0043] Figure 5 This is a schematic diagram of the architecture of the registration and activation system for the platform service provided in an embodiment of the present application;
[0044] Figure 6 This is a signaling flow diagram of the registration and activation method of the platform service provided in an embodiment of the present application;
[0045] Figure 7 This is a schematic diagram of the structure of the registration and activation device for the platform service provided in an embodiment of the present application;
[0046] Figure 8 It is a structural diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.
[0048] Embodiments of the present application provide a platform service registration and activation method, apparatus, electronic device, computer-readable storage medium, and computer program product that can improve the efficiency of platform service registration and activation. The platform service registration and activation apparatus can be integrated into an electronic device, such as a server or a terminal.
[0049] Among them, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It can also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, network acceleration services, and big data and artificial intelligence platforms. The terminal can be a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a car terminal, an aircraft, etc., but is not limited to these. The terminal and the server can be directly or indirectly connected through wired or wireless communication, and this application does not limit this.
[0050] For example, see Figure 1 Taking the registration and activation device of the platform service integrated into an electronic device as an example, the electronic device obtains the occupancy information of the current camera, which includes the application information that is occupying the camera; obtains the target registration identification code of the corresponding platform service based on the application information; sends the target registration identification code to the target function service device, so that the target function service device can display the target registration identification code, wherein the target function service device is used to implement the target function service; scans the target registration identification code displayed by the target function service device through the camera, and executes the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
[0051] It can be understood that in the specific implementation of this application, related data such as attribute data, attribute sets and attribute subsets are involved. When the following embodiments of this application are applied to specific products or technologies, permission or consent is required, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0052] It should be noted that the order of description of the following embodiments is not intended to limit the preferred order of the embodiments.
[0053] This embodiment will be described from the perspective of the registration and activation device of the platform service. The registration and activation device of the platform service can be specifically integrated into an electronic device, which can be a server or a terminal. Among them, the terminal can include a tablet computer, a laptop computer, a personal computer (PC), or other smart devices that can process data.
[0054] An embodiment of the present application provides a registration and activation method for a platform service, which is applied to a user device, and the method includes: obtaining occupancy information of a current camera, where the occupancy information includes information about an application that is occupying the camera; obtaining a target registration identification code for the corresponding platform service based on the application information; sending the target registration identification code to a target function service device so that the target function service device displays the target registration identification code, wherein the target function service device is used to implement the target function service; scanning the target registration identification code displayed by the target function service device through a camera, and executing the registration and activation process of the current account of the platform service on the target function service based on the scanning result.
[0055] like Figure 2 As shown, the specific process of registration and activation of the platform service is as follows:
[0056] 101. Obtain the current camera occupancy information, where the occupancy information includes information about the application currently occupying the camera.
[0057] In this embodiment, the user device can be a terminal device such as a smart phone or tablet computer, the camera is the system camera of the user device, and the operating system installed on the user device can be iOS, Android, Microsoft, etc. When an application in the user device needs to use the system camera, it needs to obtain the camera occupation permission in advance. The process of obtaining the permission can be determined by checking the permission list file of the application. Figure 3 Different applications (APP1, APP2, and APP3) will apply to occupy the camera to scan the corresponding registration identification code. In actual applications, when obtaining camera occupancy information, you can first obtain a list of running processes, then traverse the process list, check the usage of camera resources, and find the process occupying the camera. Finally, obtain detailed information about the process, such as the application package name, version number, and other application information.
[0058] 102. Obtain a target registration identification code for a corresponding platform service based on the application information.
[0059] In this embodiment, the target registration identification code may be in the form of a QR code, a barcode, etc. Specifically, the application information may be parsed, and the corresponding platform service may be determined based on the parsing result, and the target registration identification code of the platform service may be further obtained.
[0060] Since the present application solution is applied to the registration and activation of platform services on functional service devices based on biometric technology (palm-swiping devices, face recognition devices, iris recognition devices, etc.), when parsing application information, the application information can be sent to the functional service device based on biometric technology, and parsed by the functional service device based on biometric technology. That is, in one embodiment, the step of "obtaining the target registration identification code corresponding to the platform service based on the application information" can include the following process:
[0061] Sending application information to the target function service device so that the target function service device analyzes the application information and determines the corresponding platform service based on the analysis result;
[0062] Get the target registration identification code of the platform service.
[0063] Specifically, when determining the corresponding platform service according to the analysis result, a search and match can be performed in the platform service list supported by the target functional service device according to the analysis result, thereby determining the corresponding platform service and obtaining the target registration identification code of the platform service.
[0064] In one embodiment, the user device itself can also parse the application information, determine the corresponding platform service based on the parsing results, and then send relevant information about the determined platform service to the target function service device. After receiving the relevant information, the target function service device matches it with the list of platform services it supports. If a matching platform service is found, the target registration identification code of the platform service can be obtained.
[0065] In one embodiment, when obtaining the target registration identification code of the platform service, the following process may be specifically included:
[0066] Send a status query request to the server, so that the server can determine the registration and activation status of the current account of the platform service on the target functional service according to the status query request;
[0067] When the target function service is not activated for the current account of the platform service, obtain the target registration identification code of the platform service.
[0068] In this embodiment, the target function service device is configured to exchange information with a preset application on the user device, and the server serves as the backend server for the preset application. Specifically, the system can authorize the preset application. This authorization mainly includes the following two parts: the first part authorizes the preset application to read the occupancy information of the current system camera, thereby obtaining detailed information about the foreground scanning process; the second part authorizes the preset application to establish a local communication connection with the target function service device, which is used to subsequently securely transmit the application occupancy information of the current system camera read by the preset application to the target function service device via this connection.
[0069] Specifically, when querying the registration and activation status of the current account on the target functional service, the pre-set application's backend server will call the corresponding platform's query interface to confirm whether the current account has been registered and activated. If so, the query will be directly returned to the target functional service device without switching to the registration and activation interface. If not, the activation QR code of the current platform service will be returned and displayed on the target functional service device.
[0070] 103. Send a target registration identification code to a target function service device, so that the target function service device displays the target registration identification code, wherein the target function service device is used to implement the target function service.
[0071] In this embodiment, the target functional service device is a functional service device based on biometric technology, such as a palm swiping device, a face recognition device, an iris recognition device, etc. The target functional service may include functional services based on biometric technology, such as palm swiping payment function, face swiping payment function, palm swiping door opening function, palm swiping check-in function, etc. Figure 4 , Figure 4 This is a schematic diagram of the structure of the target function service device provided in the embodiment of this application. Figure 4 As shown, the target function service device includes a device body, a display screen, and a camera. The display screen can be used to display the target registration identification code; the camera can be a 3D camera for collecting biometric information, such as palm vein information, facial information, iris information, etc.
[0072] Specifically, after the user device sends the target registration identification code to the target function service device, the target function service device will display the received target registration identification code on its display interface. In actual application, if the target function service device currently displays a registration identification code of another platform, the displayed registration identification code will be switched to the target registration identification code; if the target function service device currently does not display any registration identification code, the displayed registration identification code will be switched to the target registration identification code; if the target function service device currently displays the target registration identification code, no action is required.
[0073] Specifically, before obtaining the occupancy information of the current camera, the following process may also be included:
[0074] Establishing a short-range communication connection between the user device and the target functional service device;
[0075] When sending the target registration identification code to the target function service device, the target registration identification code may be sent to the target function service device based on the short distance communication connection.
[0076] Specifically, the local communication capability technology solution is based on the asymmetric key encryption algorithm and the BLE (Bluetooth Low Energy) protocol to achieve secure communication between the palm-swiping device and the user device to obtain specific operation instructions from the WeChat end of the user device.
[0077] In one embodiment, when establishing a short-range communication connection between the user device and the target function service device, the following process may be included:
[0078] When the user equipment is within the coverage of the broadcast signal of the target function service device, receiving a pairing request sent by the target function service device;
[0079] Respond to the pairing request and establish a short-range communication connection with the target function service device.
[0080] Specifically, to avoid impacting the user device's battery life, the target service device will be used as the master device, and the user device as the slave. After startup, the target service device will continuously broadcast Bluetooth signals, waiting for the user device to connect. Once the connection is established, the target service device and the user device will perform a preliminary authentication and then negotiate a key to obtain a public and private key. Subsequent data communications will be based on this key.
[0081] During specific implementation, the target function service device and the user device each generate a pair of asymmetric keys, including a public key and a private key. The target function service device and the user device establish a connection through the BLE protocol to achieve mutual communication. The target function service device sends the generated public key to the user device. The user device uses the public key of the target function service device to encrypt the data to be transmitted and sends the encrypted data to the target function service device. The target function service device uses the generated private key to decrypt the data, and then verifies the decrypted data to ensure the integrity and accuracy of the data. After the data transmission is completed, the target function service device and the user device disconnect through the BLE protocol.
[0082] In one embodiment, before sending the target registration identification code to the target function service device, the following process may also be included:
[0083] Obtain the device ID of the user's device;
[0084] The target registration identification code is marked based on the device identification to obtain a marked target registration identification code.
[0085] The device identifier may be a device name. In practical applications, the device name may be user-defined. When marking the target registration identification code based on the device identifier, the device identifier may be superimposed on a blank area that does not affect the display integrity of the target registration identification code.
[0086] Specifically, when sending the target registration identification code to the target function service device, the marked target registration identification code is sent to the target function service device so that the target function service device can display the marked target registration identification code, so that the user can quickly identify the registration identification code that needs to be scanned.
[0087] In actual applications, when multiple user devices are connected to the target function service device and multiple registration identification codes for different platform services need to be displayed, the multiple registration identification codes can be marked based on the device identifiers of different user devices and displayed on the target function service device in the order of connection. The user can use the markings on the registration identification codes to identify the registration identification code that the device needs to recognize from the multiple identification codes.
[0088] In one embodiment, when there are a large number of tagged registration identification codes, in order to avoid the problem of cluttered display on the display screen of the target function service device due to the excessive number of registration identification codes, the registration identification codes of the same platform service under different tags can be combined and displayed, thereby reducing the number of registration identification codes on the display screen. For example, for multiple first user devices that need to register for the first platform service, a registration identification code A can be displayed on the target function service device for subsequent scanning and identification by the multiple first user devices; wherein, since the application currently occupying the camera in the multiple first user devices is the same, assuming it is application a, the identification information of application a can be used to mark the first registration identification code A. Similarly, for multiple second user devices that need to register for the second platform service, a registration identification code B can be displayed on the target function service device for subsequent scanning and identification by the multiple second user devices; wherein, since the application currently occupying the camera in the multiple second user devices is also the same, assuming it is application b, the identification information of application b can be used to mark the second registration identification code B.
[0089] 104. Scan the target registration identification code displayed by the target function service device through the camera, and execute the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
[0090] Specifically, the user device scans the target registration identification code displayed by the target function service device through a camera, and executes the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
[0091] In one embodiment, if the target function service device displays multiple marked registration identification codes, the user can manually select a registration identification code that matches the device identification from the multiple registration identification codes scanned by the camera for identification by the user device based on different marks, and execute the registration and activation process of the current account of the platform service on the target function service based on the identification result.
[0092] In one embodiment, in order to speed up the overall process processing speed and avoid the time-consuming process of manually selecting the registration identification code by the user, the user can match the mark on the different registration identification codes with the device identification (or the identification information of the application currently occupying the camera), and identify and process the successfully matched registration identification code according to the matching result. In terms of visual effect, the scanning result display page of the user's device only displays the successfully matched registration identification code, and then enters the registration and activation page of the target function service. Furthermore, the scanning result display page can be directly omitted, and in terms of visual effect, it jumps directly from the scanning page to the registration and activation page of the target function service.
[0093] In one embodiment, after the target function service device has displayed the target registration identification code, if the user device detects that the application currently occupying the camera has switched to another application, the user device will re-acquire the new registration identification code of the corresponding platform service based on the information of the switched application, and send the re-acquired new registration identification code to the target function service device to update the target registration identification code currently displayed by the target function service device.
[0094] In one embodiment, the user device can store the correspondence between different acquired registration identification codes and applications. When the user device switches between different applications occupying the camera, if it detects that the corresponding application has a corresponding stored registration identification code, the registration identification code is directly sent to the target functional device to update the registration identification code currently displayed by the target functional service device, without having to obtain it again from the server. This shortens the response time for registration identification code updates, thereby improving the speed and efficiency of platform service registration and activation.
[0095] In one embodiment, a registration and activation process of the current account of the platform service on the target functional service is executed according to the scanning result, including:
[0096] Generate and display a confirmation page for service registration and activation based on the scan results;
[0097] When an activation confirmation instruction triggered for the confirmation page is detected, the registration and activation process of the current account of the platform service on the target function service is executed.
[0098] Specifically, when executing the registration and activation process of the current account of the platform service on the target functional service, the target functional service is activated for the current account of the platform service. During specific implementation, the current account of the platform service can be bound to the user's biometric information collected by the target functional service device, thereby realizing the corresponding functional service based on biometric technology. For example, taking the target functional service device as a palm-swiping device, if the platform service is a payment service, the palm-swiping payment functional service can be realized; if the platform service is a check-in service, the palm-swiping check-in functional service can be realized.
[0099] As can be seen from the above, the registration and activation method for the platform service provided in the embodiment of the present application obtains the occupancy information of the current camera and obtains the target registration identification code of the corresponding platform service based on the information of the application that is occupying the camera. The target registration identification code is then sent to the target function service device for the target function service device to display the target registration identification code. The target registration identification code displayed by the target function service device is then scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed based on the scanning result. In this solution, the target registration identification code of the platform service that the user wishes to activate is delivered to the target function service device for display, which solves the problem of user devices easily scanning the code by mistake during the service registration process and improves the registration and activation efficiency of the platform service.
[0100] In another embodiment of the present application, a registration and activation system for platform services is also provided. Figure 5 The registration and activation system includes user equipment, palm-swiping equipment, application server, and platform server.
[0101] Among them, the user device is integrated with a camera, a Bluetooth module, etc., and has multiple different applications installed, including preset applications and multiple third-party applications. The multiple different applications are all integrated with a code scanning module that can be used to call the system camera.
[0102] The palm-scanning device includes a palm-scanning recognition module, a local communication management / authentication module, a registration module, and a 3D camera. The 3D camera collects the user's palm vein information; the palm-scanning recognition module is used for freight elevator detection and identification of the collected palm vein information; the local communication information management / authentication module establishes a communication connection with the user's device; and the registration module is used to register and activate the palm-scanning service for related platform services.
[0103] In this embodiment, the application server is a background server of a preset application program, and the platform server is a background server of a third-party application program.
[0104] The local communication capability technology solution is based on asymmetric key encryption algorithm and Bluetooth low energy protocol to achieve secure communication between the palm-swiping device and the user device to obtain specific operation instructions from the preset application side of the user device.
[0105] To minimize the impact on the user device's battery life, this embodiment uses the palm-swipe device as the master device and the user device as the slave device. After startup, the palm-swipe device continuously broadcasts Bluetooth signals, waiting for a connection from the user device. Once the connection is established, both parties perform a preliminary authentication process and then negotiate a key to obtain a public and private key. Subsequent data communications are based on this key.
[0106] The palm-swiping device and the user device each generate a pair of asymmetric keys, including a public key and a private key. The palm-swiping device and the user device establish a connection via the Bluetooth low energy protocol, enabling communication between them. The palm-swiping device sends its public key to the user device, which then encrypts the data to be transmitted and sends the encrypted data to the palm-swiping device. The palm-swiping device decrypts the data using its private key. The received data is verified to ensure its integrity and accuracy. After data transmission is complete, the palm-swiping device and the user device disconnect via the Bluetooth low energy protocol.
[0107] The current agreement mainly contains the following contents:
[0108] {
[0109] actionid:"GET_SYS_CAMERA_PROCESS",
[0110] package:"com.tencent.qq",
[0111] openid:"XXXX"
[0112] }
[0113] Among them, actionid is the instruction, which requires swiping the device to perform the action, that is, obtaining the process information of the system occupying the camera; package will carry additional current information, mainly related to the package name; openid is the identity information of the current user.
[0114] After the connection is established, the user device further obtains detailed information about the application currently occupying the camera and sends this information to the Shuazhang device in conjunction with the protocol. In specific implementation, taking the Android system as an example, the steps to obtain detailed information about the process currently occupying the system camera are as follows:
[0115] (11) Obtaining camera usage permission: In the Android system, when an application needs to use the camera, it must first obtain camera usage permission, usually using the Camera or Camera2 API interface provided by the system. The process of obtaining permission can be determined by checking the application's permission list file.
[0116] (12) Get the list of running processes. Specifically, in the Android system, you can use the ActivityManager class to get the list of running processes. Specifically, you can get the list of currently running processes by calling the getRunningAppProcesses() method of the class.
[0117] (13) Find the process that occupies the camera. Specifically, traverse the process list and check whether each process uses camera resources. Specifically, you can use the MediaRecorder class, Camera class, or Camera2API interface provided by the Android system to check the usage of camera resources.
[0118] (14) Obtaining detailed process information: Specifically, when a process occupying the camera is found, the PackageManager class provided by the Android system is used to obtain detailed information about the process, such as the package name and version number. Specifically, this information can be obtained by calling the getPackageInfo() method of the class.
[0119] Based on the registration and activation system of the above platform service, the embodiment of the present application also provides a registration and activation method of the auxiliary platform service based on Bluetooth connection and QR code switching. Figure 6 The registration and activation method of the platform service includes the following process:
[0120] The user device authorizes the preset application to read the APP information occupied by the current system camera;
[0121] After the palm-swiping device is started, it sends a Bluetooth broadcast to the outside world;
[0122] The user device establishes a Bluetooth connection with the palm-swiping device;
[0123] The user device sends the camera APP occupied information to the palm-swiping device;
[0124] The palm-swiping device analyzes the camera APP information, determines the corresponding platform information based on the analysis result, and sends the platform information to the application server;
[0125] Based on the received platform information, the application server calls the query interface of the corresponding platform to confirm the user's activation status; if the user has registered and activated, it will directly return to the palm-swiping device without switching to the activation interface; if the user has not registered and activated, it will return the activation registration code of the current platform service to the application server;
[0126] The application server sends the activation registration code to the user equipment;
[0127] The user device sends the received activation registration code to the palm-swiping device;
[0128] The palm-swiping device switches to the corresponding platform QR code for display based on the activation registration code.
[0129] The user's device scans the platform's QR code to complete the registration and activation of the platform service.
[0130] In this embodiment, through user authorization, the application is allowed to access detailed information confirming the current camera occupancy, and then further analyze the platform services the user wishes to activate. After obtaining the relevant services, the local connection established between the user's device and the WeChat Shua Zhang device is further used to transmit the platform service information the user wishes to activate to the WeChat Shua Zhang device for analysis and switching to the user's desired platform registration and activation QR code. This solves the problem of users having to switch applications due to multiple platforms and multiple codes, and improves user registration and activation efficiency.
[0131] In order to better implement the above method, an embodiment of the present application also provides a registration and activation device for a platform service, which can be integrated into an electronic device, such as a server or terminal, and the terminal can include a tablet computer, a laptop computer and / or a personal computer, etc.
[0132] For example, Figure 7 As shown, the registration and activation device for the platform service may include: a first acquisition unit 301, a second acquisition unit 302, a sending unit 303, and a processing unit 304, as follows:
[0133] The first acquisition unit 301 is used to obtain the occupancy information of the current camera, where the occupancy information includes information about the application currently occupying the camera;
[0134] The second obtaining unit 302 is configured to obtain a target registration identification code corresponding to the platform service according to the application information;
[0135] The sending unit 303 is configured to send the target registration identification code to the target function service device, so that the target function service device can display the target registration identification code, wherein the target function service device is configured to implement the target function service;
[0136] The processing unit 304 is configured to scan the target registration identification code displayed by the target function service device through the camera, and execute the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
[0137] Optionally, in some implementations, the second acquiring unit 302 is further configured to:
[0138] Sending the application information to the target function service device so that the target function service device analyzes the application information and determines the corresponding platform service according to the analysis result;
[0139] Get the target registration identification code of the platform service.
[0140] Optionally, in some implementations, when acquiring the target registration identification code of the platform service, the second acquiring unit 302 is further configured to:
[0141] Sending a status query request to the server, so that the server can determine the registration and activation status of the current account of the platform service on the target functional service according to the status query request;
[0142] When the current account of the platform service has not activated the target function service, obtain the target registration identification code of the platform service.
[0143] Optionally, in some implementations, the processing unit 304 is further configured to:
[0144] Generate and display a service registration and activation confirmation page based on the scan result;
[0145] When an activation confirmation instruction triggered for the confirmation page is detected, a registration and activation process for the current account of the platform service on the target function service is executed.
[0146] Optionally, in some embodiments, the device further comprises:
[0147] An establishing unit, configured to establish a short-range communication connection between the user device and the target function service device before obtaining the occupancy information of the current camera;
[0148] The sending unit 303 is further configured to send the target registration identification code to the target function service device based on the short-range communication connection.
[0149] Optionally, in some embodiments, the establishing unit is further configured to:
[0150] When the user equipment is within the coverage of the broadcast signal of the target function service device, receiving a pairing request sent by the target function service device;
[0151] In response to the pairing request, a short distance communication connection is established with the target function service device.
[0152] Optionally, in some embodiments, the device further comprises:
[0153] A third acquiring unit, configured to acquire a device identifier of the user device;
[0154] a marking unit, configured to mark the target registration identification code based on the device identifier to obtain a marked target registration identification code;
[0155] The sending unit 303 is further configured to send the marked target registration identification code to the target function service device, so that the target function service device can display the marked target registration identification code.
[0156] As can be seen from the above, the platform service registration and activation device provided in the embodiment of the present application obtains the occupancy information of the current camera and obtains the target registration identification code of the corresponding platform service based on the information of the application currently occupying the camera. The target registration identification code is then sent to the target function service device for the target function service device to display the target registration identification code. The target registration identification code displayed by the target function service device is then scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed based on the scan result. In this solution, the target registration identification code of the platform service that the user wishes to activate is delivered to the target function service device for display, which solves the problem of user devices easily scanning the code for registration during the service registration process and improves the registration and activation efficiency of the platform service.
[0157] The present application also provides an electronic device, such as Figure 8 , which shows a schematic structural diagram of an electronic device involved in an embodiment of the present application, specifically:
[0158] The electronic device may include one or more processing core processors 401, one or more computer-readable storage media memories 402, a power supply 403, an input unit 404 and other components. Those skilled in the art will understand that Figure 8The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.
[0159] Processor 401 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and circuits. It performs various functions of the electronic device and processes data by running or executing software programs and / or modules stored in memory 402 and accessing data stored in memory 402. Optionally, processor 401 may include one or more processing cores. Preferably, processor 401 may integrate an application processor and a modem processor. The application processor primarily handles the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into processor 401.
[0160] The memory 402 can be used to store software programs and modules. The processor 401 executes the registration and activation of various functional applications and platform services by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 402 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0161] The electronic device also includes a power supply 403 for supplying power to various components. Preferably, the power supply 403 can be logically connected to the processor 401 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 403 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.
[0162] The electronic device may further include an input unit 404, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0163] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the electronic device will load the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 will run the application programs stored in the memory 402 to implement various functions as follows:
[0164] Obtain occupancy information of the current camera, which includes information about the application that is currently occupying the camera; obtain a target registration identification code for the corresponding platform service based on the application information; send the target registration identification code to a target function service device for the target function service device to display the target registration identification code, wherein the target function service device is used to implement the target function service; scan the target registration identification code displayed by the target function service device through the camera, and execute the registration and activation process of the current account of the platform service on the target function service based on the scanning result.
[0165] In one embodiment, when obtaining the target registration identification code of the corresponding platform service based on the application information, the processor 401 is further used to: send the application information to the target function service device so that the target function service device parses the application information and determines the corresponding platform service based on the parsing result; obtain the target registration identification code of the platform service.
[0166] In one embodiment, when obtaining the target registration identification code of the platform service, the processor 401 is further used to: send a status query request to the server, so that the server determines the registration activation status of the current account of the platform service on the target function service based on the status query request; when the current account of the platform service has not activated the target function service, obtain the target registration identification code of the platform service.
[0167] In one embodiment, when executing the registration and activation process of the current account of the platform service on the target functional service based on the scanning result, the processor 401 is further used to: generate and display a confirmation page for service registration and activation based on the scanning result; when an activation confirmation instruction triggered for the confirmation page is detected, execute the registration and activation process of the current account of the platform service on the target functional service.
[0168] In one embodiment, before obtaining the occupancy information of the current camera, the processor 401 is further configured to: establish a short-range communication connection between the user device and the target function service device;
[0169] When sending the target registration identification code to the target function service device, the processor 401 is further configured to: send the target registration identification code to the target function service device based on the short-range communication connection.
[0170] In one embodiment, when establishing a short-range communication connection between the user device and the target function service device, the processor 401 is specifically used to: when the user device is located within the broadcast signal coverage of the target function service device, receive a pairing request sent by the target function service device; respond to the pairing request, and establish a short-range communication connection with the target function service device.
[0171] In one embodiment, before sending the target registration identification code to the target function service device, the processor 401 is further configured to: obtain a device identification of the user device; mark the target registration identification code based on the device identification to obtain a marked target registration identification code;
[0172] When sending the target registration identification code to the target function service device for the target function service device to display the target registration identification code, the processor 401 is further used to: send the marked target registration identification code to the target function service device for the target function service device to display the marked target registration identification code
[0173] The specific implementation of the above operations can be found in the previous embodiments and will not be described in detail here.
[0174] As can be seen from the above, in the embodiment of the present application, the electronic device obtains the occupancy information of the current camera and obtains the target registration identification code of the corresponding platform service based on the information of the application that is occupying the camera. Then, the target registration identification code is sent to the target function service device for the target function service device to display the target registration identification code. The target registration identification code displayed by the target function service device is then scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed based on the scanning result. In this solution, the target registration identification code of the platform service that the user wishes to activate is delivered to the target function service device for display, which solves the problem of user devices easily scanning the code by mistake during the service registration process and improves the registration and activation efficiency of the platform service.
[0175] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.
[0176] To this end, an embodiment of the present application provides a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute the steps in any of the platform service registration and activation methods provided in the embodiments of the present application. For example, the instructions can execute the following steps:
[0177] By obtaining the occupancy information of the current camera, the occupancy information includes the application information that is occupying the camera; obtaining the target registration identification code of the corresponding platform service based on the application information; sending the target registration identification code to the target function service device for the target function service device to display the target registration identification code, wherein the target function service device is used to implement the target function service; scanning the target registration identification code displayed by the target function service device through the camera, and executing the registration and activation process of the current account of the platform service on the target function service based on the scanning result.
[0178] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.
[0179] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0180] Since the instructions stored in the computer-readable storage medium can execute the steps in the registration and activation method of any platform service provided in the embodiments of the present application, the beneficial effects that can be achieved by the registration and activation method of any platform service provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0181] According to one aspect of the present application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the aforementioned platform service registration and activation.
[0182] The above is a detailed introduction to the registration and activation method, device, electronic device, computer-readable storage medium and computer program product of a platform service provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, based on the ideas of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A registration and activation method for a platform service, applied to a user device, characterized in that: include: Obtaining occupancy information of the current camera, wherein the occupancy information includes information about the application currently occupying the camera; Obtaining a target registration identification code for a corresponding platform service based on the application information; Sending the target registration identification code to a target function service device, so that the target function service device displays the target registration identification code, wherein the target function service device is used to implement the target function service; The target registration identification code displayed by the target function service device is scanned by the camera, and the registration and activation process of the current account of the platform service on the target function service is executed according to the scanning result.
2. The registration and activation method for platform services according to claim 1, characterized in that: The obtaining of a target registration identification code corresponding to the platform service according to the application information includes: Sending the application information to the target function service device, so that the target function service device parses the application information and determines the corresponding platform service according to the parsing result; Obtain the target registration identification code of the platform service.
3. The registration and activation method for platform services according to claim 2, characterized in that: The obtaining of the target registration identification code of the platform service includes: Sending a status query request to a server, so that the server determines the registration activation status of the current account of the platform service on the target function service according to the status query request; When the current account of the platform service has not activated the target functional service, the target registration identification code of the platform service is obtained.
4. The registration and activation method for platform services according to claim 1, characterized in that: The process of executing the registration and activation process of the current account of the platform service on the target function service according to the scanning result includes: Generate and display a service registration and activation confirmation page based on the scan results; When an activation confirmation instruction triggered for the confirmation page is detected, a registration and activation process of the current account of the platform service on the target function service is executed.
5. The registration and activation method for platform services according to claim 1, characterized in that: Before obtaining the current camera's occupancy information, it also includes: Establishing a short-range communication connection between the user device and the target function service device; The sending the target registration identification code to the target function service device includes: The target registration identification code is sent to the target function service device based on the short distance communication connection.
6. The registration and activation method for platform services according to claim 5, characterized in that: The establishing of a short-range communication connection between the user device and the target function service device includes: When the user equipment is within the coverage of the broadcast signal of the target function service device, receiving a pairing request sent by the target function service device; In response to the pairing request, a short distance communication connection is established with the target function service device.
7. The registration and activation method for platform services according to claim 1, characterized in that: Before sending the target registration identification code to the target function service device, the method further includes: Obtaining a device identifier of the user device; Marking the target registration identification code based on the device identifier to obtain a marked target registration identification code; The sending the target registration identification code to the target function service device so that the target function service device displays the target registration identification code includes: The marked target registration identification code is sent to the target function service device, so that the target function service device can display the marked target registration identification code.
8. A registration and activation device for platform services, applied to user equipment, characterized in that: include: A first acquiring unit is configured to acquire occupancy information of a current camera, wherein the occupancy information includes information about an application currently occupying the camera; A second acquiring unit, configured to acquire a target registration identification code corresponding to the platform service according to the application information; a sending unit, configured to send the target registration identification code to a target function service device, so that the target function service device displays the target registration identification code, wherein the target function service device is configured to implement a target function service; The processing unit is used to scan the target registration identification code displayed by the target function service device through the camera, and execute the registration and activation process of the current account of the platform service on the target function service according to the scanning result.
9. An electronic device, characterized in that: The system comprises a processor and a memory, wherein the memory stores an application program, and the processor is configured to run the application program in the memory to execute the steps in the registration and activation method for the platform service according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, which are suitable for being loaded by a processor to execute the steps in the registration and activation method for a platform service according to any one of claims 1 to 7.