Method for realizing soft key function of intelligent camera

By adopting the soft key function of dynamic QR code and timestamp verification mechanism in smart cameras, the problems of high hardware cost, poor waterproofness and inconvenient operation of physical buttons are solved, convenient and secure remote control and stable operation are achieved, and the scope of application is expanded.

CN120676256APending Publication Date: 2025-09-19四川长虹新网科技有限责任公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510891125.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-19

AI Technical Summary

Technical Problem

The physical buttons of existing smart cameras have problems such as high hardware cost, poor waterproofness, inconvenient operation and inability to be remotely controlled, and are particularly limited in use in special scenarios.

Method used

It adopts dynamic QR code and timestamp verification mechanism, and realizes soft key function through camera recognition of QR code, including encryption processing, independent process operation and exception handling mechanism to ensure the safety and stability of operation.

Benefits of technology

Reduce hardware costs, improve waterproofness and safety, enhance operational convenience and recognition efficiency, support remote control, expand application scope, and improve system robustness and practicality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120676256A_ABST
    Figure CN120676256A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent cameras, discloses an intelligent camera soft key function implementation method, and solves the problem of use limitation of a physical key on an intelligent camera in the prior art by replacing the existing physical key with the soft key function. According to the scheme, a key function two-dimensional code is defined, an encryption algorithm is adopted to encrypt a key function instruction, then a two-dimensional code is generated based on a dynamic two-dimensional code technology, timestamp information is embedded in the two-dimensional code, and finally the two-dimensional code is arranged in the view field of a camera. The camera collects and identifies the two-dimensional code in the visual field in real time or at regular time, decrypts encrypted information in the two-dimensional code, verifies a timestamp and restores an original key function instruction, and a control system of the camera executes corresponding operation according to the instruction; in the aspect of exception handling, a soft key function is realized by adopting an independent process and is isolated from other functions, and exception handling is automatically carried out if an exception occurs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart cameras, and more particularly to a method for realizing the soft key function of a smart camera. The method realizes the operation control of non-physical keys through a dynamic QR code and a timestamp verification mechanism, and is suitable for camera equipment in scenarios such as security monitoring and smart homes. Background Art

[0002] With the widespread use of smart cameras, operational convenience has always been a key concern for users. Traditional smart cameras often use physical buttons, which not only increases hardware costs but also poses a challenge for outdoor cameras in waterproofing. Once the waterproofing fails, water can easily enter the camera and cause damage. Furthermore, physical buttons are inconvenient to operate, especially in specialized scenarios. For example, when remote control is required, physical buttons cannot support remote triggering. Furthermore, when frequent operations are required (such as parameter debugging), pressing the physical buttons frequently can cause them to malfunction. Therefore, the use of physical buttons in smart cameras has significant limitations. Summary of the Invention

[0003] The technical problem to be solved by the present invention is to provide a method for realizing the soft key function of an intelligent camera, which replaces the existing physical keys with the soft key function and solves the limitation problem of the use of physical keys on intelligent cameras in the prior art.

[0004] The technical solution adopted by the present invention to solve the above technical problems is: A method for realizing a soft key function of an intelligent camera comprises the following steps: A. Soft key function definition and deployment: Define the key function QR code, encrypt the key function instruction using an encryption algorithm, generate a QR code based on dynamic QR code technology, embed timestamp information in the QR code, and finally arrange the QR code within the camera's field of view; B. Soft key recognition and processing: The camera collects and recognizes the QR code in the field of view in real time or at regular intervals, decrypts the encrypted information in the QR code and verifies the timestamp, and restores the original key function instruction. The camera control system performs the corresponding operation according to the instruction; C. Functional stability and exception handling: The soft key function is implemented using a separate process and isolated from other functions of the smart camera. The separate process automatically monitors the image acquisition module and image recognition module of the smart camera and automatically performs exception processing if an abnormality occurs.

[0005] Furthermore, in step A, information encoding rules are used to compress and simplify the key function instructions, and a machine learning algorithm is used to learn and train data under different scenarios and distances.

[0006] Furthermore, in step A, the method of arranging the QR code within the field of view of the camera includes: temporarily displaying the QR code through fixed posting or through a mobile device.

[0007] Furthermore, in step B, the camera performs real-time or periodic acquisition and recognition of the QR code within the field of view, including: the camera first pre-processes the acquired image, including image enhancement, denoising, and grayscale operations, and then uses the image recognition algorithm to locate the QR code and then decode it.

[0008] Furthermore, in step B, the performing of corresponding operations includes but is not limited to: adjusting camera parameters, switching shooting modes, and starting or stopping recording.

[0009] Furthermore, in step C, the abnormal conditions include but are not limited to: failure to capture images normally and too low an image recognition accuracy.

[0010] Furthermore, in step C, the automatic exception handling includes: first attempting to reinitialize the image acquisition device and the image recognition module, and if normal recovery is not possible, triggering a restart of the entire camera system.

[0011] The beneficial effects of the present invention are: (1) Hardware cost and waterproof optimization: There is no need to design mechanical buttons and supporting waterproof structures, which reduces hardware costs. At the same time, it avoids water ingress failures caused by aging of physical button waterproofing measures and improves equipment reliability.

[0012] The design without physical buttons makes the camera adaptable to outdoor scenes such as high humidity and rain, without the need for additional waterproof maintenance, expanding its application range.

[0013] (2) Improved security and anti-attack capabilities: By dynamically generating QR codes and embedding timestamps, the effective time window of instructions is limited to prevent attackers from intercepting old QR codes and launching delayed attacks, thus ensuring the timeliness and uniqueness of instruction execution.

[0014] The key function instructions are encrypted and combined with dynamic QR code technology to form a triple security mechanism of "dynamic generation + encrypted transmission + time verification", which prevents the instructions from being maliciously tampered with or forged, thereby improving security.

[0015] (3) Enhanced recognition efficiency and scene adaptability: By compressing the amount of instruction data through dedicated information encoding rules and combining it with machine learning algorithm training, the accuracy and speed of QR code recognition can be improved to adapt to rapid operations in complex environments.

[0016] It supports real-time or scheduled QR code recognition, taking into account both the response speed of emergency operations and the resource saving of daily monitoring, thus improving the practicality of the system.

[0017] (4) Improved system stability and exception handling capabilities: The soft key function runs in an independent process and is isolated from other functions, preventing soft key failures caused by abnormalities in other modules and ensuring the continuity of key operations.

[0018] By real-time monitoring of the image acquisition and recognition module, it automatically attempts to restart and repair when an anomaly is detected, reducing manual intervention and improving system robustness.

[0019] (5) Operational convenience and functional scalability: Replacing the original physical button operation with the camera's recognition of QR codes can solve the problem of physical buttons being unable to reach in some special scenarios and simplify the operation process.

[0020] New functions can be supported simply by updating the QR code generation rules, adapting to the needs of rapid product iteration and shortening the R&D cycle. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 This is a flowchart of QR code recognition in an embodiment of the present invention.

[0022] Figure 2 This is a flowchart of exception handling in an embodiment of the present invention. DETAILED DESCRIPTION

[0023] This invention aims to provide a method for implementing soft key functions in smart cameras. This method replaces existing physical keys with soft key functions, addressing the limitations of physical keys in existing smart cameras. The core concept is to leverage the camera's image recognition capabilities to automatically identify predefined QR codes for different key functions to implement soft key operations. To ensure the stability and reliability of this software, the following key technologies are employed: First, the QR code content is encrypted to prevent information tampering or malicious use. Only authorized camera systems can decrypt and identify it, improving system security and stability. Second, the encoded information is kept as simple as possible to facilitate quick and accurate identification and interpretation by the camera, ensuring real-time operation and responsiveness. Third, to prevent misidentification and illegal use, dynamic QR code and timestamp verification technology is used. Dynamic QR code technology is used and timestamp information is embedded in the QR code. When identifying a QR code, the system not only verifies the content of the QR code but also checks whether the timestamp is valid. If the timestamp is invalid, it is determined to be an invalid QR code, thereby preventing misidentification caused by the QR code being captured or recorded and reused. Fourth, this function is implemented in a separate process, isolating it from interactions with other functions, improving system stability, and automatically monitoring the normal operation of the code scanning image module. If an abnormality occurs, the system will attempt to restart the system, enhancing the system's self-healing capabilities and availability. Example: This embodiment provides a method for implementing the soft key function of an intelligent camera. In terms of specific implementation, the method includes the following steps: 1. Soft key function definition and deployment: In this step, key function QR codes are defined. Each QR code contains specific key function information, and the information is processed in an encrypted manner. In order to improve recognition efficiency and accuracy, a set of special information encoding rules are designed to compress and simplify the key function instructions. At the same time, machine learning algorithms are used to learn and train a large amount of data in different scenarios and distances, thereby improving the recognition rate.

[0024] Based on the definition of the key function QR code, dynamic QR code technology is used to generate the QR code, and timestamp information is embedded in the QR code, thereby limiting the validity period of the QR code to ensure security and integrity and prevent tampering or malicious use.

[0025] Finally, the button function QR codes should be reasonably arranged within the camera's field of view. They can be posted permanently or temporarily displayed through mobile devices to facilitate camera recognition.

[0026] 2. Soft key function identification and processing: In this step, the camera uses its image recognition function to perform real-time or periodic recognition and analysis of the QR code within its field of view.

[0027] After the QR code is recognized, the encrypted information in the QR code is decrypted to restore the original key function instructions.

[0028] The camera's control system performs corresponding operations according to the decrypted key function instructions, such as adjusting camera parameters, switching shooting modes, starting or stopping recording, etc.

[0029] An exemplary QR code recognition process can be found in Figure 1, which includes the following steps: S1. The camera starts and prepares for image recognition; S2. The camera collects images within the current field of view; S3. Preprocess the collected image, such as image enhancement, denoising, grayscale conversion, etc., to improve image quality and QR code recognition effect; S4. Use an image recognition algorithm to locate the QR code in the image and determine the position of the QR code in the image; S5. Decode the extracted QR code image to obtain the encoding information; S6. The decoded QR code information is sent to the encryption and decryption module for decryption processing, and the validity of the QR code is judged to restore the original key function instructions; S7. The camera control system performs corresponding operations according to the decrypted functional instructions.

[0030] 3. Functional stability and exception handling: In this step, the soft key function is implemented using a separate process and isolated from other functions, thereby improving the stability and reliability of the system and preventing the soft key function from failing due to abnormalities in other processes.

[0031] A separate process automatically monitors whether the code scanning image module (including the image acquisition module and the image recognition module) is normal. If any abnormality is found in the code scanning image module, such as the inability to normally acquire images or the image recognition accuracy is too low, the system will automatically attempt to restart to ensure the normal operation of the soft key function.

[0032] An exemplary exception handling process is shown in Figure 2 , which includes the following steps: S1. The camera starts and the soft key function begins to run; S2. Enable a separate process to monitor the working status of the barcode scanning image module in real time, including whether the image acquisition device is working properly and whether the image recognition algorithm is running normally; S3 determines whether the scan image module is abnormal according to the preset threshold and judgment logic. If so, proceeds to step S4, otherwise returns to continue monitoring; S4. According to the preset restart strategy and process, try to reinitialize the image acquisition device and image recognition module; S5 determines whether the restart is successful, that is, whether the abnormal problem is solved. If so, return to continue monitoring, otherwise proceed to step S6; S6. Trigger a restart of the entire camera system to ensure the normal operation of the soft key function. After the system restarts, the process ends and the soft key function starts running again.

[0033] Although the embodiments of the present invention have been described, it will be understood by those skilled in the art that various changes, modifications, substitutions and variations may be made to these embodiments without departing from the principles and spirit of the present invention, all without departing from the scope of protection of the present invention.

Claims

1. A method for realizing the soft key function of an intelligent camera, characterized in that: The following steps are involved: A. Soft key function definition and deployment: Define the key function QR code, encrypt the key function instruction using an encryption algorithm, generate a QR code based on dynamic QR code technology, embed timestamp information in the QR code, and finally arrange the QR code within the camera's field of view; B. Soft key recognition and processing: The camera collects and recognizes the QR code in the field of view in real time or at regular intervals, decrypts the encrypted information in the QR code and verifies the timestamp, and restores the original key function instruction. The camera control system performs the corresponding operation according to the instruction; C. Functional stability and exception handling: The soft key function is implemented using a separate process and isolated from other functions of the smart camera. The separate process automatically monitors the image acquisition module and image recognition module of the smart camera and automatically performs exception processing if an abnormality occurs.

2. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step A, information encoding rules are used to compress and simplify the key function instructions, and machine learning algorithms are used to learn and train data under different scenarios and distances.

3. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step A, the QR code is arranged within the field of view of the camera in the following ways: by fixed posting or by temporarily displaying the QR code through a mobile device.

4. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step B, the camera performs real-time or periodic acquisition and recognition of the QR code within the field of view, including: the camera first pre-processes the acquired image, including image enhancement, denoising, and grayscale operations, and then uses the image recognition algorithm to locate the QR code and then decode it.

5. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step B, performing corresponding operations includes: adjusting camera parameters, switching shooting modes, and starting or stopping video recording.

6. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step C, the abnormal conditions include: failure to capture images normally and too low an image recognition accuracy rate.

7. The method for realizing the soft key function of an intelligent camera according to claim 1, wherein: In step C, the automatic exception handling includes: first trying to reinitialize the image acquisition device and the image recognition module, and if they cannot be restored to normal, triggering a restart of the entire camera system.