Camera equipment upgrading method and device, equipment and storage medium

By displaying multiple target QR codes on the terminal, the camera device can scan and parse these QR codes, obtain corresponding target segmented data and splice them into target firmware data, thereby realizing the upgrade of the camera device, solving the problem of low efficiency and convenience of upgrading camera devices in the existing technology, and achieving efficient and convenient firmware upgrades.

CN119718366APending Publication Date: 2025-03-28TOPSEE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411611529.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-12
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

In the prior art, before upgrading the camera equipment, the device needs to be connected to the data source of the upgrade firmware package through a wired connection, resulting in a significant reduction in the upgrade efficiency and convenience of the camera equipment installed in difficult-to-reach locations.

Method used

By displaying multiple target QR codes on the terminal, the camera device can scan and parse these QR codes, obtain corresponding target segmented data, and splice them into target firmware data, thereby realizing the upgrade of the camera device.

Benefits of technology

This method reduces additional communication connection costs, improves the accuracy of target segmented data, makes the target firmware data consistent with the original firmware data, reduces the time cost of firmware upgrades, and improves the efficiency and convenience of camera equipment upgrades.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718366A_ABST
    Figure CN119718366A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a camera equipment upgrading method and device, equipment and a storage medium, and is applied to camera equipment, the camera equipment upgrading method comprises the following steps: respectively scanning and analyzing a plurality of target two-dimensional codes sequentially displayed by a terminal to obtain target segment data corresponding to each target two-dimensional code, each target two-dimensional code is generated by the terminal based on original segment data obtained by segmenting original firmware data, and the original firmware data is obtained by the terminal; whenever the terminal determines that the original segment data corresponding to the currently displayed target two-dimensional code is consistent with the target segment data, the next target two-dimensional code is displayed; all the target segment data are spliced, and target firmware data are obtained; and firmware of the camera equipment is upgraded based on the target firmware data. According to the embodiment of the invention, the upgrading efficiency and convenience of the camera equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to, but is not limited to, the technical field of equipment upgrade, and in particular to a camera equipment upgrade method, device, equipment and storage medium. Background Art

[0002] Currently, for camera devices that do not have a wireless connection function, before upgrading the camera device, maintenance personnel need to first connect the camera device to the data source of the upgrade firmware package through a wired connection, and then transmit the upgrade firmware package to the camera device so that the camera device can use the upgrade firmware package to upgrade. However, many camera devices are installed in hard-to-reach locations, making wired connection operations difficult, which significantly reduces the efficiency and convenience of camera device upgrades. Summary of the invention

[0003] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0004] The embodiments of the present application provide a camera device upgrade method, apparatus, device and storage medium, which can improve the efficiency and convenience of camera device upgrade.

[0005] To achieve the above-mentioned purpose, the first aspect of an embodiment of the present application proposes a camera device upgrade method, which is applied to a camera device, and the camera device upgrade method includes: scanning and parsing multiple target QR codes displayed in sequence by a terminal respectively, and obtaining target segmented data corresponding to each of the target QR codes, wherein each of the target QR codes is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data, and the original firmware data is acquired by the terminal, and whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, the next target QR code is displayed; each of the target segmented data is spliced ​​to obtain target firmware data; and the firmware of the camera device is upgraded based on the target firmware data.

[0006] In some embodiments, the scanning and parsing of the multiple target two-dimensional codes sequentially displayed by the terminal to obtain target segmentation data corresponding to each of the target two-dimensional codes includes: when the terminal displays the first target two-dimensional code, scanning and parsing the target two-dimensional code currently displayed by the terminal to obtain target segmentation data corresponding to the target two-dimensional code currently displayed; constructing target verification content based on the target segmentation data corresponding to the target two-dimensional code currently displayed, wherein the target verification content is used to be collected by the terminal; when the first feedback content constructed by the terminal is collected, scanning and parsing the target two-dimensional code currently displayed by the terminal again until the target two-dimensional code currently displayed is the last target two-dimensional code, wherein the first feedback content is generated by the terminal based on the target verification content and the original segmentation data, the first feedback content is used to indicate that the terminal determines that the original segmentation data corresponding to the target two-dimensional code currently displayed is consistent with the target segmentation data based on the target verification content, and the first feedback content is also used to instruct the terminal to display the next target two-dimensional code.

[0007] In some embodiments, after the target verification content is constructed based on the target segmented data corresponding to the currently displayed target QR code, the camera device upgrade method also includes: when the target verification content is a verification QR code, displaying the verification QR code through the display interface of the camera device, wherein the terminal is provided with a camera module, and the verification QR code is used to be scanned by the terminal through the camera module; or, when the target verification content is a verification sound wave, transmitting the verification sound wave through the first sound wave module of the camera device, wherein the terminal is provided with a second sound wave module, and the verification sound wave is used to be received by the terminal through the second sound wave module.

[0008] In some embodiments, after the target verification content is constructed based on the target segmented data corresponding to the currently displayed target two-dimensional code, the camera device upgrade method further includes: when the second feedback content constructed by the terminal is collected, determining the number of local scans, wherein the second feedback content is generated by the terminal based on the target verification content and the original segmented data, and the second feedback content is used to indicate that the terminal determines that the original segmented data corresponding to the currently displayed target two-dimensional code is inconsistent with the target segmented data based on the target verification content, and the second feedback content is also used to instruct the terminal to keep the currently displayed target two-dimensional code, and the number of local scans is used to indicate the number of times the target two-dimensional code currently displayed by the terminal is scanned and parsed; when the number of local scans is less than a preset threshold, the target two-dimensional code currently displayed by the terminal is scanned and parsed again; when the number of local scans is greater than or equal to the preset threshold, sending an error message to the terminal, and scanning and parsing the multiple target two-dimensional codes displayed in sequence by the terminal again, wherein the error message is used to enable the terminal to reacquire the original firmware data.

[0009] In some embodiments, before scanning and parsing the multiple target QR codes displayed in sequence on the terminal respectively to obtain the target segmented data corresponding to each of the target QR codes, the camera device upgrading method also includes: scanning and parsing the initial QR code displayed by the terminal to obtain the target quantity, wherein the initial QR code is generated by the terminal based on the quantity of the original segmented data, and the target quantity is used to indicate the quantity of the original segmented data, and the terminal displays the target QR code when it is determined that the quantity of the original segmented data is consistent with the target quantity.

[0010] To achieve the above-mentioned purpose, the second aspect of an embodiment of the present application proposes a camera device upgrade method, which is applied to a terminal, and the camera device upgrade method includes: obtaining original firmware data; generating multiple target QR codes based on original segmented data obtained by segmenting the original firmware data; displaying multiple target QR codes in sequence, wherein each target QR code is used to be scanned and parsed by the camera device to obtain target segmented data corresponding to each target QR code, and whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, the next target QR code is displayed, and the camera device is used to splice each target segmented data to obtain target firmware data, and upgrade the firmware of the camera device based on the target firmware data.

[0011] In some embodiments, the sequential display of multiple target two-dimensional codes includes: displaying the first target two-dimensional code, determining the original verification content corresponding to the target two-dimensional code currently displayed, wherein the original verification content is constructed by the original segmented data corresponding to the target two-dimensional code currently displayed; collecting target verification content from the camera device, wherein the target verification content is constructed by the camera device based on the target segmented data corresponding to the target two-dimensional code currently displayed by the terminal; when the target verification content is consistent with the original verification content, sending first feedback content to the camera device, displaying the next target two-dimensional code, until the target two-dimensional code currently displayed is the last target two-dimensional code, wherein the first feedback content is used to instruct the camera device to scan the next target two-dimensional code; when the target verification content is inconsistent with the original verification content, sending second feedback content to the camera device, keeping the target two-dimensional code currently displayed, wherein the second feedback content is used to instruct the camera device to scan the target two-dimensional code currently displayed again.

[0012] To achieve the above-mentioned purpose, the third aspect of an embodiment of the present application proposes a camera device upgrade device, which is applied to a camera device, and the camera device upgrade device includes: a parsing module, which is used to scan and parse multiple target QR codes displayed in sequence by a terminal, respectively, to obtain target segmented data corresponding to each of the target QR codes, wherein each of the target QR codes is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data, and the original firmware data is obtained by the terminal, and whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, the next target QR code is displayed; a splicing module, which is used to splice each of the target segmented data to obtain target firmware data; and an upgrading module, which is used to upgrade the camera device based on the target firmware data.

[0013] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, the memory stores a computer program, and the processor implements the camera device upgrade method described in the first aspect when executing the computer program.

[0014] To achieve the above-mentioned purpose, the fifth aspect of an embodiment of the present application proposes a storage medium, which is a computer-readable storage medium, and the storage medium stores a computer program. When the computer program is executed by a processor, the camera device upgrade method described in the first aspect is implemented.

[0015] The embodiment of the present application includes at least the following beneficial effects: by scanning and parsing a plurality of target two-dimensional codes sequentially displayed on the terminal, target segmented data corresponding to each target two-dimensional code is obtained, and then each target segmented data is spliced ​​to obtain target firmware data consistent with the original firmware data, and the firmware of the camera device is upgraded based on the target firmware data. Since each target two-dimensional code is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data, the original firmware data is obtained by the terminal, and the next target two-dimensional code is displayed whenever the terminal determines that the original segmented data corresponding to the currently displayed target two-dimensional code is consistent with the target segmented data, therefore, when upgrading, the camera device only needs to scan and parse the target two-dimensional code displayed by the terminal, and does not need an additional communication connection to accurately obtain the target segmented data consistent with the original segmented data, which can reduce the additional communication connection cost and improve the accuracy of each target segmented data, thereby making the target firmware data spliced ​​by each target segmented data consistent with the original firmware data, preventing the target firmware data from being wrong, thereby reducing the time cost of re-acquiring the entire target firmware data, and can reduce the time expectation of firmware upgrade as a whole, and improve the efficiency and convenience of camera device upgrade.

[0016] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0018] Figure 1 A schematic diagram of an optional flow chart of a camera device upgrade method provided in an embodiment of the present application;

[0019] Figure 2 A schematic diagram of an optional process for obtaining target segmented data provided in an embodiment of the present application;

[0020] Figure 3 A schematic diagram of an optional process for collecting target verification content provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of an optional specific process of rescanning provided in an embodiment of the present application;

[0022] Figure 5A schematic diagram of an optional process for obtaining target firmware data provided in an embodiment of the present application;

[0023] Figure 6 A schematic diagram of another optional flow chart of the camera device upgrade method provided in the embodiment of the present application;

[0024] Figure 7 A schematic diagram of an optional flow chart of a terminal displaying multiple target QR codes in sequence according to an embodiment of the present application;

[0025] Figure 8 A schematic diagram of an optional architecture of a camera device upgrade method provided in an embodiment of the present disclosure;

[0026] Fig. 9 A schematic diagram of an optional structure of a camera equipment upgrade device provided in an embodiment of the present application;

[0027] Fig.10 A schematic diagram of an optional hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] It should be noted that in each specific embodiment of the present application, when it comes to the need to perform relevant processing based on data related to the characteristics of the target object such as target object attribute information or attribute information set, the permission or consent of the target object will be obtained first, and the collection, use and processing of these data will comply with relevant laws, regulations and standards. Among them, the target object can be a user. In addition, when the embodiment of the present application needs to obtain the target object attribute information, the target object's separate permission or separate consent will be obtained by means of a pop-up window or jumping to a confirmation page, etc., and after the separate permission or separate consent of the target object is clearly obtained, the necessary target object-related data for enabling the normal operation of the embodiment of the present application will be obtained.

[0030] In the description of this application, “several” means one or more, “more” means more than two, “greater than”, “less than”, “exceed”, etc. are understood to exclude the number, and “above”, “below”, “within”, etc. are understood to include the number.

[0031] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0032] Currently, for camera devices that do not have a wireless connection function, before upgrading the camera device, maintenance personnel need to first connect the camera device to the data source of the upgrade firmware package through a wired connection, and then transmit the upgrade firmware package to the camera device so that the camera device can use the upgrade firmware package to upgrade. However, many camera devices are installed in hard-to-reach locations, making wired connection operations difficult, which significantly reduces the efficiency and convenience of camera device upgrades.

[0033] In response to the problems of low efficiency and poor convenience in upgrading camera equipment, the present application provides a camera equipment upgrading method, device, equipment and storage medium, the method is applied to the camera equipment, the camera equipment upgrading method comprises: scanning and parsing multiple target QR codes displayed in sequence by the terminal respectively, and obtaining target segmented data corresponding to each target QR code, wherein each target QR code is generated by the terminal based on original segmented data obtained by segmenting original firmware data, the original firmware data is obtained by the terminal, and the next target QR code is displayed whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data; splicing each target segmented data to obtain target firmware data; and upgrading the firmware of the camera equipment based on the target firmware data. According to the scheme provided by the embodiment of the present application, by scanning and parsing multiple target QR codes displayed in sequence on the terminal respectively, the target segmented data corresponding to each target QR code is obtained, and then each target segmented data is spliced ​​to obtain the target firmware data consistent with the original firmware data, and the firmware of the camera device is upgraded based on the target firmware data. Since each target QR code is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data, the original firmware data is obtained by the terminal, and the next target QR code is displayed whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, therefore, when upgrading, the camera device only needs to scan and parse the target QR code displayed by the terminal, and does not need an additional communication connection to accurately obtain the target segmented data consistent with the original segmented data, which can reduce the additional communication connection cost and improve the accuracy of each target segmented data, thereby making the target firmware data spliced ​​by each target segmented data consistent with the original firmware data, preventing the target firmware data from being wrong, thereby reducing the time cost of re-acquiring the entire target firmware data, and can reduce the time expectation of firmware upgrade as a whole, and improve the efficiency and convenience of camera device upgrade.

[0034] The camera device upgrade method, apparatus, device and storage medium provided in the embodiments of the present application are specifically described through the following embodiments. First, the camera device upgrade method in the embodiments of the present application is described.

[0035] The camera device upgrade method provided in the embodiment of the present application relates to the technical field of device upgrade. The camera device upgrade method provided in the embodiment of the present application can be applied to the camera device, can also be applied to the terminal, and can also be software running in the camera device or the terminal. In some embodiments, the camera device can be any device with a camera function, for example, the camera device can be a camera, a drone, a driving recorder, etc.; the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, etc.; the software can be an application that implements the camera device upgrade method, etc., but is not limited to the above forms.

[0036] The embodiments of the present application are further described below in conjunction with the accompanying drawings.

[0037] Reference Figure 1 , Figure 1 An optional flow chart of a camera device upgrade method provided in an embodiment of the present application, the camera device upgrade method is applied to a camera device, and the camera device upgrade method includes but is not limited to the following steps S110 to S130:

[0038] Step S110 , scanning and parsing the multiple target two-dimensional codes sequentially displayed on the terminal respectively, and obtaining target segment data corresponding to each target two-dimensional code.

[0039] Among them, each target QR code is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data. The original firmware data is acquired by the terminal. Whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, the next target QR code is displayed.

[0040] Among them, the display order of the target QR code can be determined by the position of the original segmented data corresponding to the target QR code in the original firmware data. For example, the original firmware data is divided into ten segments of original segmented data, and the ten segments of original segmented data correspond to ten target QR codes and ten segments of target segmented data. The target QR code A corresponds to the second segment of original segmented data, and the target QR code B corresponds to the third segment of original segmented data. The target QR code A is the second target QR code displayed by the terminal, and the target QR code B is the third target QR code displayed by the terminal.

[0041] Among them, the terminal can evenly segment the original firmware data. For example, the total data volume of the original firmware data is 8M, equivalent to 8192KB. The terminal evenly divides the original firmware data into 4096 segments, that is, the size of each original segmented data is 2KB; specifically, the terminal starts reading from the encoding address at the beginning of the original firmware data, and each time 2KB of data is read, the read encoding address is offset by 2048 bytes, and the read 2KB data is determined as the original segmented data of the current round. By reading the original firmware data for 4096 rounds, the original firmware data is segmented into 4096 original segmented data with a clear order.

[0042] The original firmware data may be downloaded by the terminal from a server, or may be acquired by the terminal through an external memory, which is not limited in the embodiments of the present disclosure.

[0043] It can be understood that when the original segmented data corresponding to the target QR code currently displayed on the terminal is inconsistent with the target segmented data, it means that the target segmented data corresponding to the currently displayed target QR code is wrong, and the target segmented data corresponding to the currently displayed target QR code can be promptly re-acquired. Compared with not segmenting the original firmware data and needing to re-acquire the entire target firmware data, the target segmented data has a smaller data volume and a lower time cost for re-acquisition, which can significantly improve the efficiency and robustness of the camera equipment upgrade.

[0044] Step S120, splicing each target segment data to obtain target firmware data.

[0045] Step S130: upgrading the firmware of the camera device based on the target firmware data.

[0046] The acquisition order of each target segment data is the same as the display order of the target two-dimensional code, so the target segment data can be spliced ​​according to the display order of the target two-dimensional code to obtain the target firmware data.

[0047] It should be noted that the firmware of the camera device is low-level software installed in the hardware of the camera device. The firmware of the camera device is used to manage and control various functions of the hardware. The target firmware data used to upgrade the camera device and the original firmware data obtained by the terminal are both new versions of the firmware to be installed on the camera device. Upgrading the camera device is the process of replacing the old version of the firmware in the camera device with the new version of the firmware.

[0048] Based on this, by scanning and parsing multiple target QR codes displayed in sequence by the terminal respectively, the target segmented data corresponding to each target QR code is obtained, and then each target segmented data is spliced ​​to obtain the target firmware data consistent with the original firmware data, and the firmware of the camera device is upgraded based on the target firmware data. Since each target QR code is generated by the terminal based on the original segmented data obtained by segmenting the original firmware data, the original firmware data is obtained by the terminal, and the next target QR code is displayed whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data. Therefore, when upgrading, the camera device only needs to scan and parse the target QR code displayed by the terminal, and does not need additional communication connections to accurately obtain the target segmented data consistent with the original segmented data, which can reduce the additional communication connection cost and improve the accuracy of each target segmented data, thereby making the target firmware data spliced ​​by each target segmented data consistent with the original firmware data, preventing the target firmware data from being wrong, thereby reducing the time cost of re-acquiring the entire target firmware data, and can reduce the time expectation of firmware upgrade as a whole, and improve the efficiency and convenience of camera device upgrade.

[0049] In addition, refer to Figure 2 In one embodiment, scanning and parsing the multiple target two-dimensional codes sequentially displayed on the terminal to obtain target segment data corresponding to each target two-dimensional code includes but is not limited to the following steps:

[0050] Step S210, when the terminal displays the first target two-dimensional code, the target two-dimensional code currently displayed by the terminal is scanned and parsed to obtain target segment data corresponding to the currently displayed target two-dimensional code.

[0051] Step S220, constructing target verification content based on the target segment data corresponding to the currently displayed target two-dimensional code.

[0052] Step S230, when the first feedback content constructed by the terminal is collected, the target QR code currently displayed by the terminal is scanned and parsed again until the target QR code currently displayed is the last target QR code.

[0053] Among them, the target verification content is used to be collected by the terminal.

[0054] Among them, the first feedback content is generated by the terminal based on the target verification content and the original segmented data. The first feedback content is used to instruct the terminal to determine, based on the target verification content, that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data. The first feedback content is also used to instruct the terminal to display the next target QR code.

[0055] The target verification content corresponds to the identification information of the target segmented data, and each segment of the target segmented data has a unique corresponding target verification content. For example, a corresponding secret key is generated for each target segmented data as identification information, and the target segmented data needs to be filled, the target segmented data is converted into a corresponding binary number, and a 1 bit and several 0 bits are filled after the target segmented data until the number of bits of the target segmented data plus 64 is a multiple of 512;

[0056] Divide the filled target segmented data into 512-bit data blocks, each data block contains 16 32-bit sub-data blocks, each 512-bit data block is equipped with four reference registers, and for each 512-bit data block, initialize the four reference registers, that is, register A is initialized to 0x67452301, register B is initialized to 0xEFCDAB89, register C is initialized to 0x98BADCFE, and register D is initialized to 0x10325476. For each 512-bit data block, transform the four reference registers based on the corresponding sub-data block to obtain the corresponding four intermediate registers;

[0057] The four intermediate registers of each 512-bit data block are accumulated to obtain four final value registers, and the four final value registers are spliced ​​to obtain the identification information of the target segmented data, and then the target verification content is obtained.

[0058] When the first feedback content is collected, the currently acquired target segment data is saved.

[0059] Based on this, by constructing the target verification content based on the target segmented data corresponding to the currently displayed target QR code, the terminal is provided with the acquisition status of the target segmented data, and the processing flow of the terminal and the camera device can be aligned. When the first feedback content constructed by the terminal is collected, the target QR code currently displayed by the terminal is scanned and parsed again until the currently displayed target QR code is the last target QR code. Since the first feedback content is generated by the terminal based on the target verification content and the original segmented data, the first feedback content is used to instruct the terminal to determine that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data based on the target verification content. The first feedback content is also used to instruct the terminal to display the next target QR code. Therefore, the consistency of each segmented target data and each segmented original data can be guaranteed, thereby improving the accuracy of the target segmented data, reducing the error cost, and improving the efficiency of the camera device upgrade.

[0060] In one possible implementation, the terminal determines the total data volume of the original firmware data by reading the original firmware data, and the camera device determines that the total data volume of all target segmented data currently acquired is equivalent to the total data volume of the original firmware data, and determines that the currently displayed target QR code is the last target QR code.

[0061] In addition, refer to Figure 3 In one embodiment, after constructing the target verification content based on the target segment data corresponding to the currently displayed target QR code, the camera device upgrade method further includes but is not limited to the following steps:

[0062] Step S310: When the target verification content is a verification QR code, the verification QR code is displayed through the display interface of the camera device.

[0063] Step S320: When the target verification content is a verification sound wave, the verification sound wave is emitted through the first sound wave module of the camera device.

[0064] Wherein, the terminal is provided with a camera module, and the verification QR code is used to be scanned by the terminal through the camera module.

[0065] The terminal is provided with a second sound wave module, and the verification sound wave is used to be received by the terminal through the second sound wave module.

[0066] Among them, after the terminal scans the verification QR code through the camera module or receives the verification sound wave through the second sound wave module, it can parse the identification information of the target segmented data currently obtained by the camera device, and by determining that the identification information of the target segmented data is consistent with the identification information of the original segmented data, it is determined that the target segmented data currently obtained by the camera device is consistent with the corresponding original segmented data.

[0067] It should be noted that the inspection sound wave can be encoded by modulating the frequency, amplitude or phase of the sound wave, which is not limited in the embodiments of the present disclosure.

[0068] Based on this, the target verification content is a verification QR code or a verification sound wave, so that the identification information of the target segmented data corresponding to the target verification content can be embedded in the verification QR code or the verification sound wave. Since the verification QR code and the verification sound wave are both carriers that can transmit information without additional communication connections, they can reduce the communication connection cost between the camera equipment and the terminal, and improve the convenience of upgrading the camera equipment.

[0069] In addition, refer to Figure 4 In one embodiment, after constructing the target verification content based on the target segment data corresponding to the currently displayed target QR code, the camera device upgrade method further includes but is not limited to the following steps:

[0070] Step S410: When the second feedback content constructed by the terminal is collected, the number of local scan times is determined.

[0071] Step S420, when the number of local scans is less than a preset threshold, the target QR code currently displayed on the terminal is scanned and parsed again.

[0072] Step S430, when the number of local scans is greater than or equal to a preset threshold, an error message is sent to the terminal, and the multiple target QR codes sequentially displayed on the terminal are scanned and parsed again.

[0073] Among them, the second feedback content is generated by the terminal based on the target verification content and the original segmented data. The second feedback content is used to indicate that the terminal determines, based on the target verification content, that the original segmented data corresponding to the currently displayed target QR code is inconsistent with the target segmented data. The second feedback content is also used to indicate the terminal to maintain the currently displayed target QR code. The number of local scans is used to indicate the number of times the target QR code currently displayed by the terminal is scanned and parsed.

[0074] The error information is used to enable the terminal to reacquire the original firmware data.

[0075] When the second feedback content is collected, the acquired target segment data is deleted, and the target QR code currently displayed on the terminal is scanned and parsed again to acquire the correct target segment data.

[0076] Among them, the initial value of the local scanning number is 0. Each time the target QR code displayed on the terminal is scanned and parsed, the local scanning number is accumulated by 1. When a new target QR code is scanned and parsed, the local scanning number will be reset to 0. For example, the second target QR code is scanned and parsed for the first time, and the local scanning number is accumulated from 0 to 1. At this time, the target segmentation data obtained is inconsistent with the original segmentation data corresponding to the second target QR code. The second target QR code is scanned and parsed, and the local scanning number is accumulated from 1 to 2. At this time, the target segmentation data obtained is consistent with the original segmentation data corresponding to the second target QR code. The terminal displays the next target QR code. When the next target QR code is scanned and parsed, the local scanning number is reset to 0 and then accumulated to 1 again.

[0077] When the number of local scans is greater than or equal to a preset threshold, all currently acquired target segment data is deleted and the entire scanning process is re-executed.

[0078] Among them, when the second feedback content constructed by the terminal is collected, the error situation will also be announced through voice. For example, when the number of local scans is less than the preset threshold, the voice will announce that an error has occurred in the current target segment data; when the number of local scans is greater than or equal to the preset threshold, the voice will announce that the scanning process is re-executed.

[0079] Based on this, when the second feedback content constructed by the terminal is collected, the number of local scans is determined, which can measure the number of errors in the currently acquired target segmented data. When the number of local scans is less than a preset threshold, the target QR code currently displayed on the terminal is scanned and parsed again, and the target segmented data corresponding to the target QR code displayed by the current terminal is re-acquired, which can reduce the loss caused by errors in the acquired target segmented data. Or when the number of local scans is greater than or equal to the preset threshold, an error message is sent to the terminal, and multiple target QR codes displayed in sequence by the terminal are scanned and parsed again, which can terminate the overall error in time, thereby timely re-acquiring the target segmented data and improving the efficiency and robustness of the camera equipment upgrade.

[0080] In addition, refer to Figure 5 In one embodiment, before scanning and parsing the multiple target QR codes sequentially displayed on the terminal to obtain the target segment data corresponding to each target QR code, the camera device upgrade method further includes but is not limited to the following steps:

[0081] Step S510, scanning and parsing the initial QR code displayed on the terminal to obtain the target quantity.

[0082] The initial QR code is generated by the terminal based on the number of original segmented data, the target number is used to indicate the number of original segmented data, and the terminal displays the target QR code when determining that the number of original segmented data is consistent with the target number.

[0083] It should be noted that when the terminal determines that the number of original segmented data is inconsistent with the target number, the camera device processes the initial QR code in the same way as the target QR code, that is, the initial QR code can also be used as a target QR code, and the processing method for the target number is consistent with the target segmented data.

[0084] Based on this, the target number is obtained by scanning and parsing the initial QR code displayed on the terminal. Since the initial QR code is generated by the terminal based on the number of original segmented data, the target number is used to indicate the number of original segmented data. When the terminal determines that the number of original segmented data is consistent with the target number, the target QR code is displayed. Therefore, it can provide guidance for the acquisition and splicing of target segmented data, improve the accuracy of target firmware data, reduce the probability of upgrade errors, and improve the efficiency and robustness of camera equipment upgrades.

[0085] Reference Figure 6 , Figure 6 Another optional flow chart of the camera device upgrade method provided in the embodiment of the present application, the camera device upgrade method is applied to a terminal, and the camera device upgrade method includes but is not limited to the following steps S610 to S630:

[0086] Step S610, obtaining original firmware data.

[0087] Step S620: Generate multiple target two-dimensional codes based on the original segmented data obtained by segmenting the original firmware data.

[0088] Step S630, displaying multiple target QR codes in sequence.

[0089] Among them, each target QR code is used to be scanned and parsed by the camera device to obtain the target segmented data corresponding to each target QR code. Whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, the next target QR code is displayed. The camera device is used to splice the various target segmented data to obtain target firmware data, and upgrade the firmware of the camera device based on the target firmware data.

[0090] Based on this, the original firmware data is obtained, and multiple target QR codes are generated based on the original segmented data obtained by segmenting the original firmware data, and the multiple target QR codes are displayed in sequence. Since each target QR code is used to be scanned and parsed by the camera device to obtain the target segmented data corresponding to each target QR code, the next target QR code is displayed whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data. The camera device is used to splice each target segmented data to obtain the target firmware data, and upgrade the firmware of the camera device based on the target firmware data. Therefore, by using the target QR code as a carrier of the target segmented data, the target segmented data consistent with the original segmented data can be accurately obtained without an additional communication connection, which can reduce the additional communication connection cost and improve the accuracy of each target segmented data, thereby making the target firmware data spliced ​​by each target segmented data consistent with the original firmware data, preventing the target firmware data from being erroneous and causing the entire target firmware data to be re-acquired, which can reduce the time expectation for the overall firmware upgrade and improve the efficiency and convenience of the camera device upgrade.

[0091] In addition, refer to Figure 7 In one embodiment, displaying multiple target QR codes in sequence includes but is not limited to the following steps:

[0092] Step S710, displaying the first target QR code, and determining the original verification content corresponding to the currently displayed target QR code.

[0093] Step S720: collecting target verification content from the camera device.

[0094] Step S730, when the target verification content is consistent with the original verification content, the first feedback content is sent to the camera device, and the next target QR code is displayed until the currently displayed target QR code is the last target QR code.

[0095] Step S740: When the target verification content is inconsistent with the original verification content, second feedback content is sent to the camera device, and the currently displayed target QR code is maintained.

[0096] The original verification content is constructed by the original segmented data corresponding to the currently displayed target QR code.

[0097] Among them, the target verification content is constructed by the camera device based on the target segment data corresponding to the target QR code currently displayed on the terminal.

[0098] The first feedback content is used to instruct the camera device to scan the next target QR code.

[0099] The second feedback content is used to instruct the camera device to scan the currently displayed target QR code again.

[0100] It should be noted that if the original segmented data is consistent with the target segmented data, the identification information of the original segmented data is also consistent with the identification information of the target segmented data. Therefore, the terminal can determine the consistency of the target verification content and the original verification content by comparing the identification information of the original segmented data with the identification information of the target segmented data.

[0101] Based on this, by displaying the first target QR code, determining the original verification content corresponding to the currently displayed target QR code, and then collecting the target verification content from the camera device, it is possible to judge the consistency between the target verification content and the original verification content. When the target verification content is consistent with the original verification content, the first feedback content is sent to the camera device, and the next target QR code is displayed until the currently displayed target QR code is the last target QR code. This can maintain the acquisition order of the target segmented data, which is beneficial to improving the splicing efficiency of the target segmented data, thereby obtaining the target firmware data faster. When the target verification content is inconsistent with the original verification content, the second feedback content is sent to the camera device, and the currently displayed target QR code is maintained. This can ensure that each target segmented data obtained is consistent with the original data corresponding to each target QR code, thereby improving the accuracy of the target segmented value and the accuracy of the target firmware data, thereby improving the efficiency of the camera device upgrade.

[0102] The complete process of the camera device upgrade method is described in detail below.

[0103] Reference Figure 8 , Figure 8 A schematic diagram of an optional architecture of a camera device upgrade method provided in an embodiment of the present disclosure.

[0104] First, the terminal obtains the original firmware data through the server, segments the original firmware data, determines the number of original segmented data and the original verification content corresponding to the number of original segmented data, and generates and displays an initial QR code based on the number of original segmented data;

[0105] Then, the camera device scans the initial QR code, parses the initial QR code, obtains the target quantity, constructs the target verification content corresponding to the target quantity, and feeds the target verification content back to the terminal through the verification sound wave;

[0106] Then, after the terminal collects the verification sound wave, it analyzes the verification sound wave to obtain the target verification content corresponding to the target number. If it is determined that the number of original segmented data is inconsistent with the target number, the initial QR code is kept displayed so that the camera device can scan the initial QR code again; if it is determined that the number of original segmented data is consistent with the target number, the first feedback content is sent to the camera device, and multiple target QR codes are displayed in sequence. If the terminal determines that the current target verification content is consistent with the current original verification content, it is determined that the number of original segmented data is consistent with the target number; if it is determined that the current target verification content is inconsistent with the current original verification content, it is determined that the number of original segmented data is inconsistent with the target number;

[0107] Then, the camera device receives the first feedback content, scans the target QR code displayed on the current terminal, parses the target QR code displayed on the current terminal, obtains corresponding target segmentation data, constructs target verification content corresponding to the target segmentation data, and feeds back the target verification content to the terminal through verification sound waves;

[0108] Then, after the terminal collects the verification sound wave, it analyzes the verification sound wave to obtain the target verification content corresponding to the target segmented data. If it is determined that the original segmented data is inconsistent with the target segmented data, the target QR code is displayed continuously so that the camera device can scan the currently displayed target QR code again. If it is determined that the original segmented data is consistent with the target segmented data, the first feedback content is sent to the camera device to display the next target QR code, wherein the terminal pre-constructs the original verification content corresponding to the original segmented data. If the terminal determines that the current target verification content is consistent with the current original verification content, it is determined that the original segmented data is consistent with the target segmented data. If it is determined that the current target verification content is inconsistent with the current original verification content, it is determined that the original segmented data is inconsistent with the target segmented data.

[0109] Finally, the camera device receives the first feedback content and saves the target segmentation data. If it is determined that the currently displayed target QR code is not the last target QR code, the target QR code displayed on the current terminal is scanned again to obtain the next target segmentation data. If it is determined that the currently displayed target QR code is the last target QR code, the target segmentation data are spliced ​​to obtain the target firmware data, and the firmware of the camera device is upgraded based on the target firmware data. The camera device determines that the currently displayed target QR code is the last target QR code by determining that the number of targets is consistent with the number of currently saved target segmentation data.

[0110] In addition, refer to Fig. 9 The present application also provides a camera device upgrade device 900, which is applied to a camera device. The camera device upgrade device 900 includes:

[0111] The parsing module 910 is used to scan and parse the multiple target QR codes sequentially displayed by the terminal, respectively, to obtain target segmentation data corresponding to each target QR code, wherein each target QR code is generated by the terminal based on original segmentation data obtained by segmenting the original firmware data, and the original firmware data is obtained by the terminal, and the next target QR code is displayed whenever the terminal determines that the original segmentation data corresponding to the currently displayed target QR code is consistent with the target segmentation data;

[0112] A splicing module 920 is used to splice each target segment data to obtain target firmware data;

[0113] The upgrading module 930 is used to upgrade the camera device based on the target firmware data.

[0114] It can be understood that the specific implementation of the camera device upgrading apparatus 900 is substantially the same as the specific implementation of the above-mentioned camera device upgrading method, and will not be described in detail herein.

[0115] In addition, refer to Fig.10 , Fig.10 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0116] The processor 1001 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0117] The memory 1002 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1002 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 1002, and the processor 1001 calls and executes the camera device upgrade method of the embodiment of this application.

[0118] Input / output interface 1003, used to implement information input and output;

[0119] The communication interface 1004 is used to realize the communication interaction between the device and other devices. The communication can be realized through a wired manner (such as USB, network cable, etc.) or a wireless manner (such as mobile network, WIFI, Bluetooth, etc.);

[0120] A bus 1005 , which transmits information between various components of the device (e.g., the processor 1001 , the memory 1002 , the input / output interface 1003 , and the communication interface 1004 );

[0121] The processor 1001 , the memory 1002 , the input / output interface 1003 and the communication interface 1004 are connected to each other in communication within the device via the bus 1005 .

[0122] An embodiment of the present application also provides a storage medium, which is a computer-readable storage medium used for computer-readable storage. The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above-mentioned camera device upgrade method.

[0123] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0125] It can be understood by those skilled in the art that Figures 1 to 10 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0126] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0127] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0128] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0129] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0130] 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 above 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. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0131] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0132] In addition, each functional unit in each embodiment of the present application 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.

[0133] 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 application, 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 multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0134] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A camera device upgrade method, characterized in that: Applied to a camera device, the camera device upgrade method comprises: Scan and parse the multiple target two-dimensional codes sequentially displayed by the terminal respectively to obtain target segmentation data corresponding to each of the target two-dimensional codes, wherein each of the target two-dimensional codes is generated by the terminal based on original segmentation data obtained by segmenting original firmware data, and the original firmware data is obtained by the terminal, and whenever the terminal determines that the original segmentation data corresponding to the currently displayed target two-dimensional code is consistent with the target segmentation data, the next target two-dimensional code is displayed; splicing the target segmented data to obtain target firmware data; The firmware of the imaging device is upgraded based on the target firmware data.

2. The camera device upgrade method according to claim 1, characterized in that: The scanning and parsing of the multiple target two-dimensional codes sequentially displayed on the terminal to obtain target segment data corresponding to each of the target two-dimensional codes includes: When the terminal displays the first target two-dimensional code, scanning and parsing the target two-dimensional code currently displayed by the terminal to obtain target segment data corresponding to the currently displayed target two-dimensional code; Constructing target verification content based on the target segment data corresponding to the currently displayed target QR code, wherein the target verification content is used to be collected by the terminal; When the first feedback content constructed by the terminal is collected, the target QR code currently displayed by the terminal is scanned and parsed again until the currently displayed target QR code is the last target QR code, wherein the first feedback content is generated by the terminal based on the target verification content and the original segmented data, and the first feedback content is used to instruct the terminal to determine, based on the target verification content, that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, and the first feedback content is also used to instruct the terminal to display the next target QR code.

3. The camera device upgrade method according to claim 2, characterized in that: After constructing the target verification content based on the target segment data corresponding to the currently displayed target two-dimensional code, the camera device upgrade method further includes: When the target verification content is a verification QR code, the verification QR code is displayed through the display interface of the camera device, wherein the terminal is provided with a camera module, and the verification QR code is used to be scanned by the terminal through the camera module; Alternatively, when the target verification content is a verification sound wave, the verification sound wave is transmitted through a first sound wave module of the camera device, wherein the terminal is provided with a second sound wave module, and the verification sound wave is used to be received by the terminal through the second sound wave module.

4. The camera device upgrade method according to claim 2, characterized in that: After constructing the target verification content based on the target segment data corresponding to the currently displayed target two-dimensional code, the camera device upgrade method further includes: When the second feedback content constructed by the terminal is collected, the number of partial scans is determined, wherein the second feedback content is generated by the terminal based on the target verification content and the original segmented data, and the second feedback content is used to indicate that the terminal determines that the original segmented data corresponding to the currently displayed target two-dimensional code is inconsistent with the target segmented data based on the target verification content, and the second feedback content is also used to instruct the terminal to keep the currently displayed target two-dimensional code, and the number of partial scans is used to indicate the number of times the target two-dimensional code currently displayed by the terminal is scanned and parsed; When the number of local scans is less than a preset threshold, scanning and parsing the target QR code currently displayed on the terminal again; When the number of local scans is greater than or equal to a preset threshold, an error message is sent to the terminal, and the multiple target QR codes displayed in sequence by the terminal are scanned and parsed again, wherein the error message is used to enable the terminal to reacquire the original firmware data.

5. The camera device upgrade method according to claim 1, characterized in that: Before scanning and parsing the multiple target two-dimensional codes sequentially displayed on the terminal to obtain the target segment data corresponding to each of the target two-dimensional codes, the camera device upgrade method further includes: Scan and parse an initial QR code displayed by the terminal to obtain a target number, wherein the initial QR code is generated by the terminal based on the number of the original segmented data, and the target number is used to indicate the number of the original segmented data. When the terminal determines that the number of the original segmented data is consistent with the target number, the target QR code is displayed.

6. A camera device upgrade method, characterized in that: Applied to a terminal, the camera device upgrade method includes: Get the original firmware data; Based on the original segmented data obtained by segmenting the original firmware data, a plurality of target QR codes are generated; Displaying a plurality of target QR codes in sequence, wherein each target QR code is used to be scanned and parsed by a camera device to obtain target segmented data corresponding to each target QR code, and displaying the next target QR code whenever the terminal determines that the original segmented data corresponding to the currently displayed target QR code is consistent with the target segmented data, and the camera device is used to splice each target segmented data to obtain target firmware data, and upgrade the firmware of the camera device based on the target firmware data.

7. The camera device upgrade method according to claim 6, characterized in that: The sequentially displaying a plurality of target two-dimensional codes comprises: Displaying the first target two-dimensional code, and determining the original verification content corresponding to the currently displayed target two-dimensional code, wherein the original verification content is constructed by the original segmented data corresponding to the currently displayed target two-dimensional code; Collecting target verification content from the camera device, wherein the target verification content is constructed by the camera device based on the target segmentation data corresponding to the target two-dimensional code currently displayed by the terminal; When the target verification content is consistent with the original verification content, a first feedback content is sent to the camera device to display the next target QR code until the currently displayed target QR code is the last target QR code, wherein the first feedback content is used to instruct the camera device to scan the next target QR code; When the target verification content is inconsistent with the original verification content, second feedback content is sent to the camera device to keep the currently displayed target QR code, wherein the second feedback content is used to instruct the camera device to scan the currently displayed target QR code again.

8. A camera equipment upgrading device, characterized in that: Applied to a camera device, the camera device upgrading device comprises: A parsing module, configured to scan and parse a plurality of target two-dimensional codes sequentially displayed by the terminal, respectively, to obtain target segmentation data corresponding to each of the target two-dimensional codes, wherein each of the target two-dimensional codes is generated by the terminal based on original segmentation data obtained by segmenting original firmware data, and the original firmware data is obtained by the terminal, and whenever the terminal determines that the original segmentation data corresponding to the currently displayed target two-dimensional code is consistent with the target segmentation data, the next target two-dimensional code is displayed; A splicing module, used for splicing each of the target segmented data to obtain target firmware data; An upgrading module is used to upgrade the camera device based on target firmware data.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the camera device upgrading method according to any one of claims 1 to 7 when executing the computer program.

10. A storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the camera device upgrading method according to any one of claims 1 to 7 is implemented.