Control method, electronic device, and computer-readable storage medium
During the initialization process of structured optical camera, the authorization status is determined by using the authorization information and preset algorithms in the reference bin file of the diagram, and the limitations of the structured optical camera module authorization method in the prior art are solved, and convenient market circulation control is achieved.
Patent Information
- Application Number
- CN202210941312.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-08
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-08-08
AI Technical Summary
The existing structured optical camera module authorization methods cannot effectively prevent illegal outflow, and their respective limitations lead to difficulties in market circulation control.
During the initialization process of the structured optical camera, the authorization information or its derivative information stored in the reference bin file, and the second information is generated using a preset information generation algorithm, and whether the first information and the second information are consistent, is determined to determine the authorization status.
It realizes the identification and control of structured optical cameras before they leave the factory. The authorization and verification rules are convenient and targeted to prevent illegal outflows and improve the market circulation control effect.
Smart Images

Figure CN115422508B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of data processing, and in particular to a management and control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Currently, structured light camera modules are usually commissioned to third-party factories for mass production. In order to control the outflow of cameras and prevent them from being released without permission, it is necessary to add an authorization process for the production of structured light camera modules.
[0003] Current authorizations are mostly software-specific. Common software authorization methods include encryption chip authorization, time authorization, user authorization, and hardware binding. Time authorization is easily compromised by methods like tampering with the system time and deleting log files. User authorization and hardware binding only allow the execution of service A on the authorized / bound computer or platform, but these authorization methods cannot restrict the software from performing service B on the current platform.
[0004] Therefore, when the above authorization methods are applied to the production process of structured light modules, due to their respective limitations, they cannot effectively control the market circulation of structured light cameras. Summary of the Invention
[0005] The purpose of the embodiments of the present application is to provide a management and control method, an electronic device, and a computer-readable storage medium, which are applied to structured light cameras to manage and control the produced structured light cameras and prevent the cameras from being illegally leaked.
[0006] To solve the above technical problems, the embodiments of the present application provide a management and control method, comprising the following steps:
[0007] During the initialization process of the structured light camera, first information stored in a specified location in a reference image bin file of the structured light camera is read, where the specified location is the location where the authorized party stores authorization information of the structured light camera or derivative information of the authorization information in the reference image bin file; wherein the reference image bin file stores a reference image of the structured light camera; the authorization information is generated by processing the reference image using a preset information generation algorithm; the reference image is calculated using a preset information generation algorithm in a software development kit (SDK) in the structured light camera to obtain second information; and it is determined whether the first information is consistent with the second information. If they are consistent, the initialization process is completed.
[0008] An embodiment of the present application also provides an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the above-mentioned management and control method.
[0009] The embodiments of the present application further provide a computer-readable storage medium storing a computer program, which implements the above-mentioned management and control method when executed by a processor.
[0010] This solution uses the relevant features of the reference image unique to each structured light camera to identify and control the structured light camera during the initialization process after the structured light camera leaves the factory and before it is officially used. There is no need to set other unified standards to identify the structured light camera, and the setting of authorization and verification rules is more convenient and targeted. Specifically, the authorization and verification method mainly includes: the authorizer provides corresponding authorization information or derivative information of the authorization information based on the reference image and stores it in a designated location; during the initialization of the structured light camera, first information is obtained at the designated location, and second information is generated in the same way as the authorization party generates the authorization information. By judging whether the first information and the second information are consistent, it is determined whether the first information is authorization information or derivative information of authorization information; if the first information and the second information are consistent, the first information is determined to be authorization information or derivative information of authorization information, thereby proving that the structured light camera is a structured light camera authorized by the authorizer. The initialization process can be completed normally after powering on, and the structured light camera is allowed to circulate in the market. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] One or more embodiments are exemplarily illustrated by pictures in the corresponding drawings. These exemplifications do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings are represented as similar elements. Unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0012] Figure 1 This is the process of the control method provided according to one embodiment of the present application Figure 1 ;
[0013] Figure 2 This is the process of the control method provided according to one embodiment of the present application Figure 2 ;
[0014] Figure 3 This is the process of the control method provided according to one embodiment of the present application Figure 3 ;
[0015] Figure 4 This is the process of the control method provided according to one embodiment of the present application Figure 4 ;
[0016] Figure 5 is a schematic diagram of an electronic device provided according to one embodiment of the present application. DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present application, many technical details are proposed in order to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined with each other and referenced to each other under the premise of no contradiction.
[0018] The terms "first" and "second" in the embodiments of the present application are only used for descriptive purposes and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present application, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a system, product or device comprising a series of components or units is not limited to the listed components or units, but may optionally also include components or units that are not listed, or may optionally also include other components or units that are inherent to these products or devices. In the description of the present application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0019] One embodiment of the present application relates to a management and control method. The specific process is as follows Figure 1 shown.
[0020] Step 101, during the initialization process of the structured light camera, read the first information stored in a specified location in the reference image bin file of the structured light camera, where the authorized party stores the authorization information of the structured light camera or derivative information of the authorization information in the reference image bin file; wherein the reference image bin file stores a reference image of the structured light camera; and the authorization information is generated by processing the reference image using a preset information generation algorithm.
[0021] Among them, the first information is the information read by the structured light camera at a specified position in the reference image bin file during the initialization process; the authorization information or the derivative information of the authorization information is the information stored in a specified position in the reference image bin file based on the generated authorization information after the authorizer uses a preset information generation algorithm to process the reference image of the structured light camera; that is, the first information and the authorization information or the derivative information of the authorization information are located in the same position.
[0022] Specifically, if the structured light camera is a structured light camera that the licensor allows to be released into the market, the authorization information or derivative information of the authorization information stored by the licensor is stored at a specified location in the reference image bin file of the structured light camera. When the structured light camera obtains the first information during the initialization phase, since the first information and the authorization information or the derivative information of the authorization information are located in the same specified location, the obtained first information is equal to the authorization information or the derivative information of the authorization information. If the structured light camera is a structured light camera that the licensor prohibits from being released into the market, the authorization information or the derivative information of the authorization information is not stored at the specified location in the reference image bin file of the structured light camera. Therefore, the first information obtained from the specified location is different from the authorization information or the derivative information of the authorization information.
[0023] In one example, Figure 2 As shown, the authorizer stores the authorization information of the structured light camera or derivative information of the authorization information into the reference image bin file, which may specifically include the following steps.
[0024] Step 201: After receiving the authorization application from the factory that produces the structured light camera, the authorizer reads the reference image of the structured light camera from the reference image bin file of the structured light camera carried in the authorization application.
[0025] Specifically, after a structured light camera factory completes production of the camera body, it must submit an authorization application to the authorized party (e.g., the party that commissioned the structured light camera production) to enable the authorized party to set authorization information for the camera or obtain derivative information of the authorization information. After receiving the authorization application, the authorized party begins the process of generating the authorization information.
[0026] The authorization application carries a reference image bin file, which stores a reference image of the structured light camera. The reference image is used by the authorizer to generate authorization information.
[0027] In addition, the reference image bin file can also contain the QR code corresponding to the reference image. The QR code can identify the structured light camera corresponding to the reference image and is easy to store and transmit, making it easier for authorized parties to identify and manage the structured light camera.
[0028] Step 202: Process the reference image using a preset information generation algorithm to generate authorization information.
[0029] Specifically, as a 3D camera, the core function of a structured light camera is to output depth information for the captured scene. This depth information is aggregated to form a depth map. A depth map is typically generated by performing a series of calculations on a speckle pattern (taken by an infrared lens and speckle projector) and a reference image. Due to the peculiarities of the speckle projector manufacturing process, the reference image used by each structured light camera is unique. Therefore, in this step, the structured light camera's reference image is read from the reference image bin file. Based on the uniqueness of the structured light camera's reference image, authorization information for the structured light camera is generated.
[0030] The preset information generation algorithm extracts features from the reference image to generate authorization information, thereby uniquely identifying the authorization permissions for the structured light camera corresponding to the reference image based on the authorization information. The preset information generation algorithm includes: performing data conversion based on a mapping table, extracting information from a specified area in the reference image, and performing information processing.
[0031] In one example, the reference image is processed using a preset information generation algorithm to generate authorization information, which may specifically include the following steps.
[0032] Step 1: Extract the summary information of the reference image through the first mask.
[0033] Specifically, a first mask is set, and the image information in the reference image is filtered using the first mask to obtain summary information for generating authorization information.
[0034] The summary information may be the grayscale values of several specific locations in the reference image.
[0035] Step 2: Perform hash calculation on the summary information to obtain a first hash value.
[0036] Specifically, the summary information is calculated using a hash algorithm, and the obtained hash value is recorded as the first hash value.
[0037] Step 3: Generate authorization information based on the first hash value.
[0038] Specifically, authorization information for the structured light camera is obtained based on the first hash value obtained in step 2. For example, the first hash value can be used as the authorization information, or the first hash value can be further processed, such as encrypted or filtered, and the information obtained after the first hash value processing is used as the authorization information.
[0039] In one example, generating authorization information based on the first hash value may specifically include extracting hash values at specified positions within the first hash value, combining them to form a first identity verification sequence code, and using the first identity verification sequence code as the authorization information. Specifically, the first hash value may be further processed, for example, by first selecting hash values at specified positions within the first hash value, combining the selected hash values to form the first identity verification sequence code, and using the first identity verification sequence code as the authorization information.
[0040] In this embodiment, a preset information generation algorithm that is easy to implement and has a certain degree of complexity is provided, which can be used by the authorized party to obtain authorization information based on the reference image or by the structured light camera to obtain the second information.
[0041] Step 203: Add the authorization information to the reference image bin file; or, generate derivative information of the authorization information and add the derivative information to the reference image bin file.
[0042] Specifically, it is allowed to directly add the authorization information provided by the licensor to the specified location of the reference image bin file, or to obtain derivative information of the authorization information based on the authorization information and store the derivative information in the specified location of the reference image bin file. The authorization information or derivative information is used to identify that the structured light camera has been authorized for circulation.
[0043] In one example, generating derivative information of the authorization information may specifically include: encrypting the authorization information using a preset encryption algorithm to form a first ciphertext, and using the first ciphertext as the derivative information. That is, the derivative information is generated based on the authorization information using the preset encryption algorithm. It is understood that the preset encryption algorithm can be set as needed based on actual circumstances, for example, using the Advanced Encryption Standard (AES) encryption algorithm.
[0044] Step 102 : Using a preset information generation algorithm in the software development kit (SDK) of the structured light camera, calculate the reference image to obtain second information.
[0045] Specifically, the SDK is designed for the authorized party, and the preset information generation algorithm is the algorithm used by the authorized party to generate authorization information. The authorized party generates the authorization information based on a reference image using the preset information generation algorithm. The second information is generated by the structured light camera based on the same structured light camera's reference image using the same preset information generation algorithm. Therefore, the second information is consistent with the authorization information.
[0046] Step 103: determine whether the first information is consistent with the second information, and complete the initialization process if they are consistent.
[0047] Specifically, the first information is the data obtained from the specified location of the reference image bin file when the structured light camera is initialized; the authorization information is the data stored in the specified location of the reference image bin file by the authorizer before the initialization of the structured light camera; the second information is the information obtained by the structured light camera after reading the reference image according to the preset information generation algorithm, and the preset information generation algorithm is consistent with the algorithm used by the authorizer to generate the authorization information.
[0048] The first information and the second information are consistent, indicating that the first information is the same as the second information, or that the first information is derived from the second information. The derivation algorithm process from the first information to the derived information of the first information is the same as the derivation algorithm process from the authorized information to the derived information of the authorized information.
[0049] Because the second information and the authorization information are both derived from the structured light camera's reference image using the same pre-set information generation algorithm, the second information is consistent with the authorization information. If the first information and the second information are consistent, this indicates that the first information acquired from the designated location by the structured light camera in step 101 is the authorization information stored at that designated location by the authorized party. This means that the reference image bin file for the structured light camera was processed by the authorized party, indicating that the structured light camera is authorized for distribution by the authorized party, and that the factory has not violated regulations such as replacing the authorized structured light camera before shipment. Therefore, the initialization process is allowed to complete, and the structured light camera can be started.
[0050] If the factory violates regulations, the structured light camera is not authorized by the authorized party. For unauthorized structured light cameras, the reference image bin file does not contain authorization information or derivatives of authorization information, or the information carried is incorrect. That is, the first information obtained from the specified location is not the authorization information or derivatives of authorization information. Therefore, the first information and the second information are inconsistent. The structured light camera cannot complete initialization and cannot operate normally.
[0051] In this embodiment, for a structured light camera, during the initialization process of the structured light camera, first information at a specified location in the reference image bin file of the structured light camera is read. The specified location is the location where the authorization party stores the authorization information of the structured light camera or derivative information of the authorization information in the reference image bin file. The reference image bin file stores the reference image of the structured light camera. The authorization information is generated by processing the reference image using a preset information generation algorithm. The reference image is calculated using the preset information generation algorithm in the SDK within the structured light camera to obtain second information. It is determined whether the first information and the second information are consistent, and if they are consistent, the initialization process is completed. This solution identifies and controls the structured light camera during the initialization process after the structured light camera leaves the factory and before it is officially used, without the need to set other unified standards to identify the structured light camera. The setting of authorization and verification rules is more convenient and targeted. Specifically, the authorization and verification methods mainly include: the authorizing party provides corresponding authorization information or derivative information of the authorization information based on the reference image, and stores it in a designated location; during the initialization process of the structured light camera, the first information is obtained at the designated location, and the second information is generated in the same way as the authorization party generates the authorization information, and by judging whether the first information is consistent with the second information, it is determined whether the first information is authorization information or derivative information of authorization information; when it is judged that the first information is consistent with the second information, the first information is determined to be authorization information or derivative information of authorization information, thereby proving that the structured light camera is a structured light camera authorized by the authorizing party, and the initialization process can be completed normally after power-on, that is, the structured light camera is allowed to circulate on the market.
[0052] Another embodiment of the present invention relates to a management and control method. Based on the above embodiments, this embodiment provides different consistency determination processes for first and second information depending on the authorization information or derivative information stored in a specified location of a reference image bin file. This can improve the accuracy of consistency determination based on actual conditions.
[0053] In one example, Figure 3 As shown, when the designated location is authorization information, the above step 103 may specifically include:
[0054] Sub-step 1031: Determine whether the first information is equal to the second information.
[0055] Specifically, the second information generated by the structured light camera is equal to the authorization information stored by the authorized party at the designated location. If the authorized party stores authorization information at the designated location, it is understood that if the structured light camera is authorized by the authorized party, the first information obtained from the designated location should be the authorized information. Therefore, it is necessary to determine whether the first information and the second information are equal.
[0056] Sub-step 1032 : If the judgment result is equal, it is determined that the first information and the second information are consistent, and the process goes to step 1034 .
[0057] Specifically, when the first information is equal to the second information, it indicates that the first information acquired by the structured light camera from the designated location is authorized information, that is, the structured light camera is a structured light camera authorized for circulation by the authorizer.
[0058] Sub-step 1033: If the judgment result is unequal, it is determined that the first information and the second information are inconsistent.
[0059] Specifically, when the first information is not equal to the second information, it means that the first information obtained by the structured light camera from the specified location is not authorized information, that is, the structured light camera is not the structured light camera authorized for circulation by the licensor, and there may be illegal operations such as substitution by the manufacturer, and it is not allowed to circulate into the market.
[0060] Sub-step 1034: Complete the initialization process.
[0061] Specifically, if the verification result of the structured light camera indicates that it is authorized by the authorized party, the structured light camera is allowed to complete initialization and start up. In other words, whether the structured light camera can be initialized and started up is determined based on the verification result, thereby achieving control over the structured light camera.
[0062] In this embodiment, the authorization information provided by the authorized party is stored at a designated location in the reference image bin file. When implementing a consistency comparison between the first information and the second information, it is sufficient to directly compare whether the first information and the second information are the same. This is convenient to operate, has low computational complexity, and can quickly obtain consistency judgment results, thereby improving user experience.
[0063] In another example, Figure 4 As shown, when the designated location is derivative information of the authorization information, the above step 103 may specifically include:
[0064] Sub-step 1035: Calculate the first information to generate authorization information corresponding to when the first information is used as derivative information.
[0065] Specifically, because the information stored in the designated location is a derivative of the authorization information, the consistency check cannot be performed by directly comparing the first information to the second information. In this case, even if the structured light camera is authorized by the licensor, the first information obtained from the designated location should be the same as the derivative of the authorization information. In this case, the second information is the same as the authorization information. In other words, the first information and the second information are not identical, but in reality, they are consistent. Therefore, it is necessary to resolve the first information and compare the corresponding authorization information obtained when the first information is used as the derivative with the second information.
[0066] The calculation process is the inverse process of obtaining derivative information of the authorization information based on the authorization information.
[0067] In one example, when the derived information is the first ciphertext, this step may specifically include: decrypting the first information using a decryption algorithm corresponding to a preset encryption algorithm to generate authorization information corresponding to the first information as the derived information.
[0068] Specifically, the process of decrypting the first information must correspond to the process of obtaining the derived information, so that if the first information is derived information (i.e., the structured light camera is an authorized structured light camera), the first information can be restored to the authorized information. For example, if the derived information is the authorized information obtained through the AES encryption algorithm, the decryption process is implemented using the AES decryption algorithm.
[0069] Sub-step 1036: Determine whether the authorization information corresponding to the first information as the derivative information is equal to the second information.
[0070] Specifically, if the structured light camera is authorized by the licensor, the reference image bin file in this embodiment stores derivative information of the authorization information at a designated location. That is, the first information obtained in step 101 is equal to the derivative information. Furthermore, since the second information is equal to the authorization information, the authorization information obtained by solving the first information is equal to the second information. Therefore, the second information can be used to determine whether the first information is equal to the derivative information, thereby determining whether the structured light camera is authorized by the licensor.
[0071] Sub-step 1037 : If the judgment result is equal, the first information is determined to be consistent with the second information, and the process goes to step 1039 .
[0072] Specifically, as described above, when the authorization information obtained by solving the first information is equal to the second information, it can be inferred that the structured light camera is an authorized structured light camera.
[0073] Sub-step 1038: If the judgment result is unequal, it is determined that the first information and the second information are inconsistent.
[0074] Specifically, as above, when the calculation result is not equal to the second information, it can be inferred that the structured light camera is not an authorized structured light camera.
[0075] Sub-step 1039: Complete the initialization process.
[0076] Specifically, when the structured light camera is an authorized structured light camera, the initialization process is completed, and the structured light camera can be turned on and put into use.
[0077] In this embodiment, derived information from the authorization information provided by the authorizer is stored at a designated location in the reference image.bin file. When comparing the first and second information for consistency, the first information is resolved and the authorization information obtained from the first information is compared with the second information to determine whether they are identical, thereby determining whether the structured light camera is the one authorized by the authorizer. In this embodiment, derived information is stored at a designated location in the reference image. This derived information is obtained by processing the authorization information and is more complex than the authorization information. This reduces the likelihood of successful factory imitation and improves the control over the market distribution of structured light cameras.
[0078] For ease of understanding, the following is an example of a specific implementation method. Figure 3 It is understood that the above embodiments are for reference only and are not intended to limit the above embodiments.
[0079] After the production of the structured light camera is completed, the factory that produces the structured light camera needs to submit an authorization application to the authorized party (such as the production entrusting party). The authorization application must include or be submitted together with the reference image bin file and the corresponding QR code of the structured light camera.
[0080] The authorized party reads the reference image from the reference image bin file provided by the factory, extracts the summary information from the reference image based on mask x1 (the first mask), hashes the summary information to obtain a first hash value, extracts the hash values at specified locations within the first hash value, and combines them to obtain identity sequence code 1 (the first identity authentication sequence code, i.e., the authorization information). Identity sequence code 1 is encrypted using the AES algorithm to obtain ciphertext 1 (the first ciphertext, i.e., the derivative of the authorization information). Ciphertext 1 is stored in the specified location of the reference image bin file. The reference image bin file containing ciphertext 1 is then fed back to the factory.
[0081] After the factory receives the reference image bin file containing ciphertext 1, it burns the reference image bin file into the structured light camera. At this point, the structured light camera is completed and can be shipped out of the factory.
[0082] When a structured light camera is used for the first time, it first undergoes an initialization process. This initialization process includes reading the reference image bin file, obtaining ciphertext 2 (first information) at a specified location in the reference image bin file, decrypting (decoding) ciphertext 2 using the AES decryption algorithm, and obtaining identity sequence code 2 (authorization information obtained by decoding the first information). Using the SDK designed by the client for the structured light camera, the reference image in the reference image bin file is read and identity sequence code 3 (second information) is obtained according to the authorization information generation process stored in the SDK. Identity sequence code 2 is then compared with identity sequence code 3. It is understood that if the structured light camera's reference image bin file was generated according to the correct authorization process described above, ciphertext 1 and ciphertext 2 are equal, meaning that identity sequence code 2 and identity sequence code 3 can be calculated to be equal. As a supplementary explanation, the process for obtaining identity sequence code 3 is as follows: for the reference image, extract the summary information from the reference image according to mask x1 (first mask), hash the summary information to obtain a first hash value, and extract the hash values at specified locations within the first hash value and combine them to obtain identity sequence code 3.
[0083] Therefore, if identity serial code 2 and identity serial code 3 are not equal, an authorization error will be returned, the camera initialization will fail, and it cannot be started and used.
[0084] The steps of the various methods above are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.
[0085] One embodiment of the present application relates to an electronic device, such as Figure 5 As shown, it includes at least one processor 301; and a memory 302 that is communicatively connected to the at least one processor 301; wherein the memory 302 stores instructions that can be executed by the at least one processor 301, and the instructions are executed by the at least one processor 301 to enable the at least one processor 301 to execute the above-mentioned control method.
[0086] The memory and processor are connected using a bus, which can include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors and memories. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits. These are all well known in the art and are therefore not described further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. Data processed by the processor is transmitted over a wireless medium via an antenna. Furthermore, the antenna receives data and transmits it to the processor.
[0087] The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. Memory can be used to store data used by the processor when performing operations.
[0088] One embodiment of the present application relates to a computer-readable storage medium storing a computer program, which implements the above method embodiment when executed by a processor.
[0089] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.
[0090] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present application, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.
Claims
1. A management and control method, characterized in that: Applicable to structured light cameras, including: During the initialization process of the structured light camera, first information stored at a specified location in a reference image bin file of the structured light camera is read, where the specified location is a location in the reference image bin file where an authorized party stores authorization information of the structured light camera or derivative information of the authorization information; wherein the reference image bin file stores a reference image of the structured light camera; and the authorization information is generated by processing the reference image using a preset information generation algorithm; Using the preset information generation algorithm in the software development kit SDK of the structured light camera, the reference image is calculated to obtain second information; Determine whether the first information is consistent with the second information, and if they are consistent, complete the initialization process; wherein, the first information is consistent with the second information, indicating that the structured light camera is authorized by the authorizing party.
2. The control method according to claim 1, characterized in that: The authorizing party stores the authorization information of the structured light camera or derivative information of the authorization information in the reference image bin file, including: After receiving the authorization application from the factory that produces the structured light camera, the authorizer reads the reference image of the structured light camera from the reference image bin file of the structured light camera carried in the authorization application; Processing the reference image using the preset information generation algorithm to generate the authorization information; Add the authorization information to the reference image bin file; or, Generate the derivative information of the authorization information and add the derivative information to the reference image bin file.
3. The control method according to claim 2, characterized in that: The step of processing the reference image using the preset information generation algorithm to generate the authorization information includes: extracting summary information of the reference image through a first mask; Performing a hash calculation on the summary information to obtain a first hash value; The authorization information is generated according to the first Hash value.
4. The control method according to claim 3, characterized in that: Generating the authorization information according to the first Hash value includes: The hash value at the designated position is extracted from the first hash value and combined to form a first identity authentication sequence code, and the first identity authentication sequence code is used as the authorization information.
5. The control method according to claim 3 or 4, characterized in that: When the designated location of the reference image bin file stores authorization information, the determining whether the first information is consistent with the second information includes: determining whether the first information is equal to the second information; If the judgment result is equal, it is determined that the first information is consistent with the second information; If the judgment result is unequal, it is determined that the first information and the second information are inconsistent.
6. The control method according to claim 3 or 4, characterized in that: When the designated location of the reference image bin file stores derivative information of the authorization information, the determining whether the first information is consistent with the second information includes: Decoding the first information to generate the authorization information corresponding to the first information as the derived information; determining whether the authorization information corresponding to the first information when used as the derived information is equal to the second information; If the judgment result is equal, it is determined that the first information is consistent with the second information; If the judgment result is unequal, it is determined that the first information and the second information are inconsistent.
7. The control method according to claim 6, characterized in that: The derivative information for generating the authorization information includes: The authorization information is encrypted using a preset encryption algorithm to form a first ciphertext, and the first ciphertext is used as the derived information.
8. The control method according to claim 7, characterized in that: The calculating the first information to generate the authorization information corresponding to when the first information is used as the derived information includes: The first information is decrypted using a decryption algorithm corresponding to the preset encryption algorithm to generate the authorization information corresponding to when the first information is used as the derived information.
9. An electronic device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the management and control method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the control method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Method and system for network multi-level approval based on dependable computing application technique
CN101593324A
Biometric authentication techniques
CN109325328A