Camera QR code processing method, equipment, device and storage medium
By obtaining the image sensor chip ID code of the camera product and accessing the cloud preset relationship, the problem of scanning the QR code for the camera is solved and error-prone to testing is easily caused by scanning the camera QR code, realizing the function of reading the test data without scanning the code, improving production efficiency and data accuracy.
Patent Information
- Application Number
- CN202411872648.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-04
AI Technical Summary
Scan the QR code of the camera to light up the test is prone to errors, especially when multiple workstations are operated simultaneously, which can easily lead to confusion and scan the QR code incorrectly, affecting the accuracy of the test record.
By lighting up the camera product currently to be tested, obtain the chip ID code of the image sensor, and access the preset relationship of the cloud based on the ID code, determine the corresponding product QR code, and store and upload production and test data information.
The test data can be read without scanning the QR code of the camera product, which solves the problem of scanning the wrong QR code when a single or multiple cameras are operated simultaneously, improves production efficiency and ensures the accuracy of the data.
Smart Images

Figure CN119761392A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of two-dimensional code scanning and lighting test, and in particular to a camera two-dimensional code processing method, equipment, device and storage medium. Background Art
[0002] With the rapid development of AI intelligence, cameras are being used more and more widely, and the demand for cameras is also increasing. At the same time, the competition among camera manufacturers is becoming more and more fierce. Therefore, the quality of cameras is crucial to the competitiveness of manufacturers, and the control requirements for camera quality must be more stringent. Therefore, during the production process of cameras, production information and test information must be recorded, collected and stored for subsequent traceability. Usually, the production data and test data information of cameras are recorded and saved in the form of product QR codes. If the QR code of camera products is wrong during the production process, it will affect the use of end customers.
[0003] In the current industry, the camera detection software testing method is to first scan the QR code of the camera product, and then light up the camera for testing. When multiple stations in the same inspection station light up the camera for testing at the same time, it is easy to confuse and scan the wrong QR code of the camera product, such as scanning the QR code of camera A and lighting up the test with camera B, and scanning the QR code of camera B and lighting up the test with camera A, resulting in incorrect data information saved in the camera test. Summary of the invention
[0004] The technical problem to be solved by the embodiment of the present application is to solve the error problem of camera QR code scanning and lighting test, and to improve production efficiency. The purpose of the embodiment of the present invention is to provide a camera QR code processing method, so that the camera product QR code of the test can be read out without scanning the camera product QR code, solve the problem of mistakenly scanning the wrong QR code when a single or multiple cameras are operated at the same time, and improve production efficiency.
[0005] A first aspect of the present invention provides a camera two-dimensional code processing method, wherein the camera includes a PCBA board, the PCBA board includes an image sensor, and the method includes:
[0006] Light up the camera product to be tested and obtain the image sensor chip ID code on the PCBA board;
[0007] Accessing a first preset relationship in the cloud according to the chip ID code of the image sensor to determine a product QR code corresponding to the chip ID code of the image sensor;
[0008] The production and test data information of the camera product is stored in the product QR code and uploaded to the cloud, and the first preset relationship is updated.
[0009] Furthermore, the method further comprises: a pre-association step; the pre-association storage step comprises:
[0010] Scan and obtain the QR code of the camera product in advance, and light up the camera product at the same time to obtain the chip ID code of the image sensor;
[0011] The product QR code is associated and bound with the chip ID code to generate a first preset relationship and store it in the cloud.
[0012] Furthermore, the method further comprises: a final inspection determination step; the final inspection determination step comprises:
[0013] Scan the QR code of the current camera product, obtain the QR code of the camera product, light up the current camera, and obtain the chip ID code of the camera image sensor;
[0014] Access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code;
[0015] The current camera product QR code is compared with the matching camera product QR code to determine whether the production and test data information stored in the current camera product QR code is correct.
[0016] Further, comparing the current camera product QR code with the matching camera product QR code to determine whether the job production and test information stored in the current camera product QR code is correct includes:
[0017] If the current camera product QR code is consistent with the matched camera product QR code, the production and test data information recorded in the cloud storage of the current camera product QR code is correct;
[0018] If the current camera product QR code is inconsistent with the matched camera product QR code, the production and test data information recorded in the cloud saved by the current camera product QR code is incorrect.
[0019] Further, the lighting up the current camera includes: supplying power through a power source to make the current camera enter a working state; the production and test data information includes production data information and test data information;
[0020] The production data information includes: one or more of resolution, frame rate, sensitivity, focal length and aperture, and lens structure;
[0021] The test data information includes: one or more of resolution test data, exposure mode test data, contrast test data, chromaticity test data, and focal length test data.
[0022] In order to solve the above technical problems, in a second aspect, an embodiment of the present application provides a camera two-dimensional code processing device, which adopts the following technical solution: a camera two-dimensional code processing device, applied to a camera, the camera includes a lens, a lens holder, a housing, a PCBA board, the PCBA board includes an image sensor, and a product two-dimensional code is affixed to the surface of the lens holder; the device includes an acquisition module, a determination module and an update module, wherein:
[0023] An acquisition module is used to light up the camera product to be tested and obtain the chip ID code of the image sensor on the PCBA board;
[0024] A determination module, configured to access a first preset relationship located in the cloud according to the chip ID code of the image sensor, and determine a product QR code corresponding to the chip ID code of the image sensor;
[0025] An updating module is used to store the production and test data information of the camera product into the product QR code, upload it to the cloud, and update the first preset relationship.
[0026] Furthermore, the device also includes a pre-association storage module; the pre-association storage module is used to pre-scan and obtain the camera product QR code, and at the same time execute the camera product lighting to obtain the chip ID code of the image sensor; associate and bind the product QR code with the chip ID code to generate a first preset relationship and store it in the cloud.
[0027] Furthermore, the device also includes a final inspection determination module; the final inspection determination module is used to scan the current camera product QR code, obtain the camera product QR code, light up the current camera, and obtain the chipID code of the camera image sensor; access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code; compare the current camera product QR code with the matching camera product QR code to determine whether the production and test data information saved in the current camera product QR code is correct.
[0028] In addition, the third aspect of the present invention provides an electronic device, which includes: one or more processors, and a memory, wherein the memory is used to store one or more computer programs; the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the camera QR code processing method described in the first aspect.
[0029] In addition, the fourth aspect of the present invention provides a storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the camera two-dimensional code processing method as described in the first aspect above.
[0030] In the scheme of the present invention, the current camera product to be tested is lit up, and the chip ID code of the image sensor on the PCBA board is obtained; the first preset relationship located in the cloud is accessed according to the chip ID code of the image sensor, and the product QR code corresponding to the chip ID code of the image sensor is determined; the production and test data information of the camera product is stored in the product QR code, and uploaded to the cloud, and the first preset relationship is updated. Compared with the prior art, the embodiment of the present application has the following beneficial effects: after determining the QR code of the currently lit camera product, the production and test data information is recorded and stored in the form of the confirmed camera product QR code, and finally the production information related to the camera product QR code is uploaded to the cloud system database. It is possible to read the QR code of the tested camera product without scanning the QR code of the camera product, solve the problem of scanning the wrong QR code when operating a single or multiple cameras at the same time, and improve production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 is a schematic diagram of the overall hardware structure of the camera structure disclosed in the embodiment of the present invention;
[0033] Figure 2 It is a flowchart of a camera two-dimensional code processing method disclosed in an embodiment of the present invention;
[0034] The reference numerals in the figure are: 1. lens, 2. product QR code, 3. lens mount and housing. DETAILED DESCRIPTION
[0035] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of this application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0036] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0037] It should be noted that the “plurality” mentioned in this article refers to two or more.
[0038] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0039] See also Figure 1 , Figure 1 The overall hardware structure diagram of the camera structure of this embodiment. In this embodiment, the device hardware structure, the camera is basically composed of a lens 1, a lens holder and a housing 3, and a PCBA board. The PCBA board includes an image sensor, and a product QR code 2 is attached to the surface of the lens holder.
[0040] PCBA: Printed Circuit Board Assembly (PCBA) assembles electronic components on a printed circuit board, and then performs processes such as welding to make it a complete functional module of an electronic product.
[0041] In a first aspect of this embodiment, a camera two-dimensional code processing method is provided, wherein the camera includes a PCBA board, and the PCBA board includes an image sensor, as shown in 2, and the method includes:
[0042] S201, lighting up the camera product to be tested, and obtaining the chip ID code of the image sensor on the PCBA board.
[0043] The lighting up the current camera includes: supplying power through a power source to put the current camera into a working state.
[0044] The method includes a pre-association step; the pre-association storage step includes: pre-scanning and obtaining a camera product QR code, and lighting up the camera product at the same time to obtain a chip ID code of the image sensor; associating and binding the product QR code with the chip ID code to generate a first preset relationship and storing it in the cloud.
[0045] Specifically, in this embodiment, the hardware device connection is completed by connecting the camera product to a power source and connecting it to a computer network.
[0046] At the first test position, scan the QR code of the camera product and obtain the QR code of the camera product. At the same time, light up the camera product and obtain the unique chip ID code of the image sensor on the PCBA board. Then use the software to associate the QR code of the camera product with the chip ID code of the image sensor on the PCBA (i.e. generate the above-mentioned first preset relationship). Finally, upload the associated QR code of the camera product and the chip ID code of the image sensor (the first preset relationship) to the cloud system database of the company and save the record.
[0047] S202, accessing a first preset relationship in the cloud according to the chip ID code of the image sensor to determine a product QR code corresponding to the chip ID code of the image sensor.
[0048] Specifically, in this embodiment, the test station of the process does not need to scan the QR code of the camera product. First, the camera product is turned on to work, and the chip ID code of the image sensor on the PCBA board is obtained. Then, the software uses the currently obtained chip ID code of the image sensor to query the cloud system database, search for the chip ID code of the image sensor with the same code that has been uploaded to the cloud system, and find the QR code information previously associated with the camera product.
[0049] S203, storing the production and test data information of the camera product into the product QR code, uploading it to the cloud, and updating the first preset relationship.
[0050] The production and test data information includes production data information and test data information; the production data information includes: one or more of resolution, frame rate, sensitivity, focal length and aperture, and lens structure; the test data information includes: one or more of resolution test data, exposure mode test data, contrast test data, color test data, and focal length test data.
[0051] Specifically, in this embodiment, after determining the currently lit camera product QR code, the data information of the production and test of the post is recorded and stored in the form of the confirmed camera product QR code, and finally the production information related to the camera product QR code is uploaded to the cloud system database. It is realized that the camera product QR code of the test can be read without scanning the camera product QR code, solving the problem of scanning the wrong QR code when operating a single or multiple cameras at the same time, and improving production efficiency.
[0052] According to the above S202-S203, if there are multiple test positions in the process, the same method can be used.
[0053] Furthermore, the method further comprises: a final inspection determination step; the final inspection determination step comprises:
[0054] Scan the QR code of the current camera product, obtain the QR code of the camera product, light up the current camera, and obtain the chip ID code of the camera image sensor;
[0055] Access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code;
[0056] The current camera product QR code is compared with the matching camera product QR code to determine whether the production and test data information stored in the current camera product QR code is correct.
[0057] Further, comparing the current camera product QR code with the matching camera product QR code to determine whether the job production and test information stored in the current camera product QR code is correct includes:
[0058] If the current camera product QR code is consistent with the matched camera product QR code, the production and test data information recorded in the cloud storage of the current camera product QR code is correct;
[0059] If the current camera product QR code is inconsistent with the matched camera product QR code, the production and test data information recorded in the cloud saved by the current camera product QR code is incorrect.
[0060] Specifically, in this embodiment, through the final inspection post, it is confirmed again whether the current physical camera product QR code and image sensor chip ID code are consistent with the associated binding information previously recorded by the cloud system.
[0061] Specific operation method: first scan the camera product QR code, and obtain the camera product QR code, and let the camera light up and work, and obtain the chip ID code of the camera image sensor. Use the software to query the chip ID code of the current physical camera image sensor to access the cloud system database to record the previously saved and bound camera product QR code. Compare the camera product QR code associated with the cloud system with the product QR code scanned by the current physical camera to see if they are consistent. If they are consistent, it means that the production and test data information saved and recorded by the cloud system of the current physical camera product QR code is correct. If not, it means that the production and test data information saved and recorded by the current physical camera product QR code is incorrect.
[0062] After executing S201-S203 and the final inspection step, it is ensured that the information saved in the camera product production and test data is correct, and the error problem of camera QR code scanning is solved.
[0063] In summary, in this embodiment, the current camera product to be tested is lit up, and the chip ID code of the image sensor on the PCBA board is obtained; the first preset relationship located in the cloud is accessed according to the chip ID code of the image sensor, and the product QR code corresponding to the chip ID code of the image sensor is determined; the production and test data information of the camera product is stored in the product QR code, and uploaded to the cloud, and the first preset relationship is updated. Compared with the prior art, the embodiment of the present application has the following beneficial effects: after determining the QR code of the currently lit camera product, the production and test data information is recorded and stored in the form of the confirmed camera product QR code, and finally the production information related to the camera product QR code is uploaded to the cloud system database. It is possible to read the QR code of the tested camera product without scanning the QR code of the camera product, solve the problem of scanning the wrong QR code when operating a single or multiple cameras at the same time, and improve production efficiency.
[0064] In a second aspect of this embodiment, a camera two-dimensional code processing device is provided, which adopts the following technical solution: the camera two-dimensional code processing device is applied to a camera, the camera includes a lens, a lens holder, a housing, and a PCBA board, the PCBA board includes an image sensor, and a product two-dimensional code is affixed to the surface of the lens holder; the device includes an acquisition module, a determination module, and an update module, wherein:
[0065] An acquisition module is used to light up the camera product to be tested and obtain the chip ID code of the image sensor on the PCBA board;
[0066] A determination module, configured to access a first preset relationship located in the cloud according to the chip ID code of the image sensor, and determine a product QR code corresponding to the chip ID code of the image sensor;
[0067] An updating module is used to store the production and test data information of the camera product into the product QR code, upload it to the cloud, and update the first preset relationship.
[0068] Furthermore, the device also includes a pre-association storage module; the pre-association storage module is used to pre-scan and obtain the camera product QR code, and at the same time execute the camera product lighting to obtain the chip ID code of the image sensor; associate and bind the product QR code with the chip ID code to generate a first preset relationship and store it in the cloud.
[0069] Furthermore, the device also includes a final inspection determination module; the final inspection determination module is used to scan the current camera product QR code, obtain the camera product QR code, light up the current camera, and obtain the chipID code of the camera image sensor; access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code; compare the current camera product QR code with the matching camera product QR code to determine whether the production and test data information saved in the current camera product QR code is correct.
[0070] Further, comparing the current camera product QR code with the matching camera product QR code to determine whether the job production and test information stored in the current camera product QR code is correct includes:
[0071] If the current camera product QR code is consistent with the matched camera product QR code, the production and test data information recorded in the cloud storage of the current camera product QR code is correct;
[0072] If the current camera product QR code is inconsistent with the matched camera product QR code, the production and test data information recorded in the cloud saved by the current camera product QR code is incorrect.
[0073] Further, the lighting up the current camera includes: supplying power through a power source to make the current camera enter a working state; the production and test data information includes production data information and test data information;
[0074] The production data information includes: one or more of resolution, frame rate, sensitivity, focal length and aperture, and lens structure;
[0075] The test data information includes: one or more of resolution test data, exposure mode test data, contrast test data, chromaticity test data, and focal length test data.
[0076] In addition, an embodiment of the present application also discloses an electronic device, which includes: one or more processors, and a memory, wherein the memory is used to store one or more computer programs; it is characterized in that the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the camera QR code processing method described in the first aspect above.
[0077] In addition, an embodiment of the present application further provides a storage medium, which stores a computer program; the program is loaded and executed by a processor to implement the steps of the camera two-dimensional code processing method as described in the first aspect above.
[0078] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0079] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0080] The units described as separate components may or may not be physically separated. As a unit, it can be appreciated by those skilled in the art that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0081] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0082] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a grid device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0083] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A camera QR code processing method, wherein the camera comprises a PCBA board, the PCBA board comprises an image sensor, and the method is characterized in that: The method comprises: Light up the camera product to be tested and obtain the image sensor chip ID code on the PCBA board; Accessing a first preset relationship in the cloud according to the chip ID code of the image sensor to determine a product QR code corresponding to the chip ID code of the image sensor; The production and test data information of the camera product is stored in the product QR code and uploaded to the cloud, and the first preset relationship is updated.
2. The camera two-dimensional code processing method according to claim 1, characterized in that: The method further comprises: a pre-association step; the pre-association storage step comprises: Scan and obtain the QR code of the camera product in advance, and light up the camera product at the same time to obtain the chip ID code of the image sensor; The product QR code is associated and bound with the chip ID code to generate a first preset relationship and store it in the cloud.
3. The camera two-dimensional code processing method according to claim 2, characterized in that: The method further comprises: a final inspection determination step; the final inspection determination step comprises: Scan the QR code of the current camera product, obtain the QR code of the camera product, light up the current camera, and obtain the chip ID code of the camera image sensor; Access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code; The current camera product QR code is compared with the matching camera product QR code to determine whether the production and test data information stored in the current camera product QR code is correct.
4. The camera two-dimensional code processing method according to claim 3, characterized in that: The comparing the current camera product QR code with the matching camera product QR code to determine whether the job production and test information stored in the current camera product QR code is correct includes: If the current camera product QR code is consistent with the matched camera product QR code, the production and test data information recorded in the cloud storage of the current camera product QR code is correct; If the current camera product QR code is inconsistent with the matched camera product QR code, the production and test data information recorded in the cloud saved by the current camera product QR code is incorrect.
5. The camera two-dimensional code processing method according to claim 4, characterized in that: The lighting up the current camera includes: supplying power through a power source to put the current camera into a working state; the production and test data information includes production data information and test data information; The production data information includes: one or more of resolution, frame rate, sensitivity, focal length and aperture, and lens structure; The test data information includes: one or more of resolution test data, exposure mode test data, contrast test data, chromaticity test data, and focal length test data.
6. A camera QR code processing device, applied to a camera, the camera comprising a lens, a lens holder, a housing, and a PCBA board, the PCBA board comprising an image sensor, and a product QR code is affixed to the surface of the lens holder; characterized in that: The device comprises an acquisition module, a determination module and an update module, wherein: An acquisition module is used to light up the camera product to be tested and obtain the chip ID code of the image sensor on the PCBA board; A determination module, configured to access a first preset relationship located in the cloud according to the chip ID code of the image sensor, and determine a product QR code corresponding to the chip ID code of the image sensor; An updating module is used to store the production and test data information of the camera product into the product QR code, upload it to the cloud, and update the first preset relationship.
7. The camera two-dimensional code processing device according to claim 6, characterized in that: The device also includes a pre-association storage module; the pre-association storage module is used to pre-scan and obtain the camera product QR code, and at the same time light up the camera product to obtain the chip ID code of the image sensor; associate and bind the product QR code with the chip ID code to generate a first preset relationship and store it in the cloud.
8. The camera two-dimensional code processing device according to claim 7, characterized in that: The device further includes a final inspection determination module; the final inspection determination module is used to scan the current camera product QR code, obtain the camera product QR code, light up the current camera, and obtain the chip ID code of the camera image sensor; Access the updated first preset relationship in the cloud according to the chip ID code of the current camera image sensor to obtain a matching camera product QR code; compare the current camera product QR code with the matching camera product QR code to determine whether the production and test data information saved in the current camera product QR code is correct.
9. An electronic device, comprising: One or more processors, a memory, wherein the memory is used to store one or more computer programs; characterized in that the computer program is configured to be executed by the one or more processors, and the program includes steps for executing the camera QR code processing method as described in any one of claims 1-5.
10. A storage medium storing a computer program; the program is loaded and executed by a processor to implement the steps of the camera two-dimensional code processing method as described in any one of claims 1 to 5.