Camera debugging method and device and storage medium

By acquiring and importing the target configuration file, and combining encryption algorithms with camera image comparison, the problem of low camera debugging efficiency in the Android system is solved, achieving fast, accurate, and secure camera debugging.

CN118869887APending Publication Date: 2024-10-29FIBOCOM WIRELESS SOFTWARE INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410816619.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In the native Android system, debugging camera image effect parameters is inefficient, requiring recompiling the kernel code and re-flashing the image, resulting in long debugging times.

Method used

By obtaining the target configuration file and importing it into the target memory, the target effect parameters are encrypted using a preset encryption algorithm. The preset image is then displayed to judge and debug the effect. By combining the image comparison of typical cameras and limit cameras in the same scene with the feature parameters, the effect parameters are updated using extreme samples.

Benefits of technology

It achieves fast, accurate, and secure camera debugging, simplifies the debugging process, improves efficiency and accuracy, and ensures the security of configuration files and the stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869887A_ABST
    Figure CN118869887A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a camera debugging method and device and a storage medium, and the display effect of a camera is adjusted by obtaining an encrypted target configuration file and importing the encrypted target configuration file into a target memory. The method comprises the following steps: acquiring an image in the same scene by utilizing a characteristic parameter typical camera and a limit camera, determining a target effect parameter, updating through a limit sample, and encrypting the target effect parameter by adopting a preset encryption algorithm, so that the security is improved. Through the method, the efficiency and accuracy of camera debugging are improved, the security of the configuration file is ensured, the requirements of different application scenes are met, and a convenient and reliable solution is provided for camera debugging.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When debugging the image effect parameters of the camera module of a terminal device with a native Android system, a large number of repeated debugging and verification of the image effect register parameters are usually required because various objective indicators or subjective indicators of the customer need to be met.

[0003] In the native Android system, after the main CPU obtains the correct ID from the camera sensor through the integrated communication bus (Inter-Integrated Circuit, I2C), it will set the image effect configuration parameters solidified in the kernel image to the camera sensor through I2C. Since the camera effect parameters in the native Android system are pre-written in the kernel code, when the output image effect is not good and the effect parameters need to be modified for debugging, the kernel code needs to be recompiled, and the kernel image needs to be re-burned to the Android terminal device. After the burning is completed, the Android terminal device needs to be restarted to verify the image effect of the modified new parameters, resulting in a slight change of a parameter. It takes a lot of time to verify the effect, which ultimately leads to very low efficiency in debugging camera image effects. Summary of the invention

[0004] The present application provides a camera debugging method, device and storage medium, which can improve the efficiency and accuracy of camera debugging, and can debug the camera effect without restarting after burning.

[0005] In a first aspect, the present application provides a camera debugging method, the method comprising:

[0006] Acquire a target configuration file, wherein the target configuration file includes target effect parameters, and the target effect parameters are used to adjust the display effect of the camera;

[0007] Importing the target configuration file into a target memory, wherein the target memory includes memory related to the camera to be configured;

[0008] The preset image is displayed through the target configuration file to determine the debugging effect of the target configuration file.

[0009] The above method can achieve fast and accurate adjustment of the camera display effect by obtaining the target configuration file and importing it into the target memory. At the same time, by displaying the preset image to judge the debugging effect, the debugging efficiency and accuracy are improved, and a convenient operation method is provided for camera debugging.

[0010] In yet another optional implementation manner of the first aspect, before obtaining the target configuration file, the method further includes:

[0011] The target effect parameters are encrypted using a preset encryption algorithm to obtain a target configuration file.

[0012] Encrypting target effect parameters can protect the security of configuration files and prevent unauthorized access and tampering. This helps ensure the accuracy and confidentiality of camera debugging and improves system security.

[0013] In yet another optional implementation of the first aspect, encrypting the target effect parameter by using a preset encryption algorithm to obtain a target configuration file includes:

[0014] Determine encryption parameters;

[0015] Generate a hash value bytecode according to the encryption parameter;

[0016] Writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode;

[0017] Generate an obfuscated value of the encryption parameter according to a preset obfuscated value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscated value and a preset obfuscated encryption method to obtain an encrypted file;

[0018] The encrypted file is determined as the target configuration file.

[0019] The use of multi-level encryption measures further enhances the security of the configuration files. At the same time, the combination of hash value bytecode and obfuscated encryption makes the encryption process more complex and difficult to crack, thus improving the security of the system.

[0020] In yet another optional implementation of the first aspect, the method of generating a hash value bytecode according to the encryption parameter includes:

[0021] Generate a hash value according to the encryption parameter;

[0022] A hash sum value is determined according to a preset summing method and the hash value.

[0023] The introduction of hash value provides a unique identifier for the configuration file, which helps to quickly identify and verify the integrity of the configuration file in subsequent processing. At the same time, the calculation of hash value also enhances the complexity of encryption and improves security.

[0024] In another optional implementation of the first aspect, the method further includes:

[0025] Acquire a first image and a second image respectively in the same scene by using a first camera and a second camera, wherein the first camera includes a characteristic parameter typical camera, and the second camera includes a limit camera;

[0026] A target effect parameter is determined through the first image and the second image.

[0027] By comparing the images of different cameras in the same scene, the target effect parameters can be determined more accurately, thereby achieving precise adjustment of the camera display effect. This method improves the reliability and accuracy of debugging.

[0028] In another optional implementation of the first aspect, the method further includes:

[0029] The target effect parameter is updated through the limit sample to obtain the updated target effect parameter, and the limit sample at least includes one or more of the beauty image or the image with additional special effects.

[0030] Using extreme samples (such as beauty images or images with special effects) to update the target effect parameters can make the debugging results more in line with the needs of actual application scenarios. This update method can improve the display effect of the camera under various extreme conditions and improve the flexibility and adaptability of the system.

[0031] In yet another optional implementation manner of the first aspect, before obtaining the target configuration file, the method further includes:

[0032] Get the sensor ID of the camera to be configured;

[0033] The target memory is determined by the sensor ID.

[0034] By identifying the sensor ID of the camera, it can ensure that the configuration file is accurately matched to the target camera. This helps to avoid configuration errors and compatibility issues, improves the stability and reliability of the system. At the same time, it also simplifies the configuration process and improves operational efficiency.

[0035] In a second aspect, an embodiment of the present application provides a camera debugging device, the device comprising at least a first acquisition unit, an import unit and a judgment unit. The camera debugging device is used to implement the method described in any one of the implementation methods of the first aspect, wherein the first acquisition unit, the import unit and the judgment unit are introduced as follows:

[0036] A first acquisition unit is used to acquire a target configuration file, where the target configuration file includes a target effect parameter, and the target effect parameter is used to adjust a display effect of a camera;

[0037] An import unit, used for importing the target configuration file into a target memory, wherein the target memory includes a memory related to a camera to be configured;

[0038] The judging unit is used to display a preset image through the target configuration file to judge the debugging effect of the target configuration file.

[0039] The above method can achieve fast and accurate adjustment of the camera display effect by obtaining the target configuration file and importing it into the target memory. At the same time, by displaying the preset image to judge the debugging effect, the debugging efficiency and accuracy are improved, and a convenient operation method is provided for camera debugging.

[0040] In another optional implementation of the second aspect, the device further includes:

[0041] The encryption unit is used to encrypt the target effect parameters through a preset encryption algorithm to obtain a target configuration file.

[0042] In yet another optional implementation manner of the second aspect, the encryption unit is used to:

[0043] Determine encryption parameters;

[0044] Generate a hash value bytecode according to the encryption parameter;

[0045] Writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode;

[0046] Generate an obfuscated value of the encryption parameter according to a preset obfuscated value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscated value and a preset obfuscated encryption method to obtain an encrypted file;

[0047] The encrypted file is determined as the target configuration file.

[0048] In yet another optional implementation manner of the second aspect, the encryption unit is specifically configured to:

[0049] Generate a hash value according to the encryption parameter;

[0050] A hash sum value is determined according to a preset summing method and the hash value.

[0051] In another optional implementation of the second aspect, the device further includes:

[0052] A second acquisition unit, configured to acquire a first image and a second image respectively in the same scene through a first camera and a second camera, wherein the first camera comprises a characteristic parameter typical camera, and the second camera comprises a limit camera;

[0053] A target effect parameter is determined through the first image and the second image.

[0054] In another optional implementation of the second aspect, the device further includes:

[0055] An updating unit is used to update the target effect parameter through a limit sample to obtain an updated target effect parameter, wherein the limit sample includes at least one or more of a beauty image or an image with additional special effects.

[0056] In another optional implementation of the second aspect, the device further includes:

[0057] A third acquisition unit is used to acquire the sensor ID of the camera to be configured;

[0058] The determining unit is used to determine the target memory according to the sensor ID.

[0059] In a third aspect, an embodiment of the present application provides a camera debugging device, which includes a processor, a memory and a communication interface; a computer program is stored in the memory; when the processor executes the computer program, the communication interface is used to send and / or receive data, and the camera debugging device can execute the method described in the first aspect or any possible implementation of the first aspect.

[0060] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the instructions are executed on at least one processor, the method described in the first aspect or any optional scheme of the first aspect is implemented.

[0061] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the program runs on at least one processor, it implements the method described in the first aspect or any optional scheme of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0063] The following is a brief introduction to the drawings required for describing the embodiments.

[0064] Figure 1 A schematic diagram of the architecture of a camera debugging system provided in an embodiment of the present application;

[0065] Figure 2 It is a flowchart of a camera debugging method provided in an embodiment of the present application;

[0066] Figure 3 A flow chart of a parameter encryption method provided in an embodiment of the present application;

[0067] Figure 4 It is a structural schematic diagram of a camera debugging device provided in an embodiment of the present application;

[0068] Figure 5 It is a structural schematic diagram of a camera debugging device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0069] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0070] The terms "first", "second", "third", etc. in the specification and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.

[0071] 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.

[0072] See also Figure 1 , Figure 1The schematic diagram of the architecture of a camera debugging system provided in an embodiment of the present application is as follows. The camera debugging system includes a debugging device 101 and a terminal device 102. The debugging device 101 is used to obtain / generate target effect parameters of the camera, and the terminal device 102 is used to detect the debugging effect of the target effect parameters.

[0073] Among them, the debugging device 101 can be, but is not limited to, a terminal device, for example, any one of a local terminal device 102, a remote terminal device 102, a cloud service system, and a mobile terminal, or a combination thereof. In the present embodiment, the debugging device 101 can be a computer, and the computer is used to debug the parameters related to the camera. Specifically, the same picture can be captured by different cameras in the same environment, so as to adjust the target effect parameters. The different cameras include a first camera and a second camera. It should be noted that the first camera and / or the camera can be installed on the debugging device 101, or can be installed on other terminal devices connected to the debugging device 101. Optionally, in the embodiment of the present application, the first camera and the camera can be installed on other terminal devices connected to the debugging device 101, and the debugging device 101 is only used to obtain images captured by other terminal devices, so as to adjust the target effect parameters.

[0074] The terminal device 102 includes a terminal device with a camera such as a mobile phone or a tablet computer. The terminal device 102 is used to load the debugged target effect parameters and display the debug effect of the target effect parameters on the camera on the terminal device 102 by re-capturing the image.

[0075] In some embodiments, the main hardware communication methods between the camera module of the terminal device 102 and the main CPU of the debugging device 101 include an I2C interface and a MIPI interface (or parallel port). The I2C channel is mainly used to read or set the camera sensor configuration register. The main functions implemented are such as the CPU obtaining the ID of the camera sensor through I2C, and setting the image effect parameters to the camera sensor through I2C. After the camera sensor receives the target effect parameters after debugging, the camera module can work normally and output images.

[0076] Optionally, the above-mentioned image output may be directly displayed on a liquid crystal display of the terminal device 102 .

[0077] Alternatively, the above-mentioned image output can be transmitted to the main CPU through the MIPI interface, and the main CPU processes the image format so that the image can be output to the LCD display of the Android terminal device.

[0078] In some other embodiments, the debugging device 101 and the terminal device 102 may form an interconnection platform to enable data communication between the debugging device 101 and the terminal device 102, for example, the terminal device 102 may access / acquire the data parameters adjusted by the debugging device 101. In some other embodiments, the debugging device 101 and the terminal device 102 may also establish a data connection through a communication module. The communication module may be, but is not limited to, a wifi, Bluetooth, or a 2G, 3G, 4G, 5G, or other communication module of mobile communication.

[0079] See also Figure 2 , Figure 2 is a flow chart of a camera debugging method provided in an embodiment of the present application. The camera debugging method is applied to a debugging terminal in a camera debugging system, that is, the camera debugging method can be based on Figure 1 The debugging terminal in the system architecture diagram shown is implemented, but it can also be implemented based on other architectures. The method includes but is not limited to the following steps:

[0080] Step S201: acquiring a first image and a second image respectively in the same scene through a first camera and a second camera.

[0081] The first camera includes a characteristic parameter typical camera, and the second camera includes a limit camera.

[0082] Optionally, the characteristic parameter typical camera is a camera with typical parameters related to image display, including resolution, focal length, aperture size, sensor type and other camera-related parameters. Such a camera can be considered to be used for general image capture or monitoring tasks, and its performance parameters are widely accepted and recognized as a benchmark for an industry or application field.

[0083] The limit camera is a camera with certain limitations or restrictions. These limitations relate to the performance, function or application scope of the camera. For example, a certain limit camera has a lower resolution or a smaller field of view, or can only be used under certain environmental conditions. In addition, limit cameras can also refer to cameras used for specific purposes or tasks, such as speed limit cameras.

[0084] In an optional implementation, the second camera includes a plurality of limit cameras, through which images taken by different types of cameras in relevant shooting environments are captured, so as to adjust the target effect parameters and improve the applicable range of the target effect parameters. Correspondingly, the second image also includes a plurality of images.

[0085] It should be noted that the first camera and / or the camera may be installed on the debugging device or on other terminal devices connected to the debugging device. Optionally, in the embodiment of the present application, the first camera and the camera may be installed on other terminal devices connected to the debugging device, and the debugging device is only used to obtain images captured by other terminal devices, so as to adjust the target effect parameters.

[0086] The first image is acquired through the first camera, and the second image is acquired through the second camera.

[0087] Step S202: determining target effect parameters through the first image and the second image.

[0088] Optionally, the effect parameters of the camera to be debugged are adjusted through the display effects of the first image and the second image to obtain target effect parameters to be imported into the terminal of the camera to be debugged.

[0089] In an optional implementation, the target effect parameter is updated by a limit sample to obtain an updated target effect parameter, wherein the limit sample includes at least one or more of a beauty image or an image with additional special effects. Optionally, the limit sample may also include an image with additional special effects.

[0090] Step S203: Encrypt the target effect parameters using a preset encryption algorithm to obtain a target configuration file.

[0091] In an optional implementation manner, the specific implementation process of encrypting the target effect parameter by using a preset encryption algorithm to obtain a target configuration file can be found in Figure 3 , Figure 3 A flow chart of a parameter encryption method provided in an embodiment of the present application specifically includes:

[0092] Step S301: Determine encryption parameters.

[0093] It should be noted that the encryption parameter may be a key agreed upon by both parties who need to encrypt and decrypt. The key may be a combination of strings. The specific content of the string may be set according to actual needs, for example, it may include numbers, letters or symbols.

[0094] Step S302: Generate a hash value bytecode according to the encryption parameters.

[0095] Specifically, a hash value is generated according to the encryption parameter; and a hash sum value is determined according to a preset summation method and the hash value.

[0096] For example, the encryption parameter may be "57e4sa6*45 / hh", "455268sgewcfg", "56136574412", or "sfhdjhdrtws". After conversion by a hash algorithm, a hash value of the encryption parameter may be generated. It should be understood that the specific method of generating the hash value is a prior art and will not be described in detail here.

[0097] It should be noted that bytecode is a file preprocessed by the compiler and exists in the form of JAVA executable files. It is a binary file itself, but cannot be executed directly by the system. Instead, it needs to be interpreted and executed by a virtual machine.

[0098] In the present invention, the hash value can be compiled into bytecode by a compiler.

[0099] For example, an exemplary hash value bytecode is given below. Assuming the hash value is "17f", assuming the bytecode of 1 is 1, the bytecode of 7 is 111, and the bytecode of f is 1001, then after compilation, the bytecode of the hash value is "11111001".

[0100] Step S303: writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode.

[0101] It should be noted that the file to be encrypted can also be compiled into file bytecode by a compiler.

[0102] It should be understood that since the file bytecode is a binary file, the present invention is not limited by the format of the file to be encrypted. Files in formats such as rar, doc, xml, pdf, jpg, etc. can be converted, which can improve the applicability of file encryption.

[0103] It should be noted that the preset writing method can be set according to actual needs. For example, each value of the hash value bytecode can be inserted into the file bytecode from the beginning at a certain interval, or the hash value bytecode can be inserted in front of the file bytecode, or the hash value bytecode can be inserted after the file bytecode. The specific writing method can be agreed upon by the encryption and decryption parties. Therefore, those skilled in the art can select the writing method according to actual needs.

[0104] Taking the hash value bytecode "1 111 1001" as an example, the file bytecode is assumed to be "10 10 10 10 10 10". Several exemplary writing methods are given below.

[0105] Writing method 1: You can write the bytecode of the hash value to the beginning of the file bytecode, and the resulting mixed bytecode is "1 111 1001 1010 10 10 10 10", where the underlined bytecode is the hash value bytecode.

[0106] The subsequent method of writing the bytecode of the hash value into the file bytecode is similar and will not be repeated here.

[0107] Writing method 2: You can write the bytecode of the hash value starting from the first value of the file bytecode and write every other value. The resulting mixed bytecode is "110111 101001 10 10 10 10", where the underlined bytecode is the hash value bytecode.

[0108] It should be understood that the interval can be set according to actual needs. For example, it can also be set to write a hash value bytecode every two values.

[0109] Optionally, in order to improve the encryption level, the interval can also be set to an increasing sequence, a decreasing sequence, an exponential sequence, etc. Taking the increasing sequence as an example, assuming that the increasing sequence is the simplest increasing sequence "1, 2, 3, 4,...", then it means that there is 1 file bytecode between the second hash value bytecode and the first hash value bytecode, and there are 2 file bytecodes between the third hash value bytecode and the second hash value bytecode, and so on. The final mixed bytecode is "110111 10 101001 10 10 10", where the underlined hash value bytecode is the hash value bytecode.

[0110] By flexibly setting the writing method of the hash value bytecode, the difficulty of cracking the file can be further increased and the security level of the file can be improved.

[0111] Step S304: Generate an obfuscated value of the encryption parameter according to a preset obfuscation value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscation value and a preset obfuscation encryption method to obtain an encrypted file.

[0112] Preferably, a real-time dynamic obfuscation value can be generated, that is, the obfuscation value generated each time is different.

[0113] It should be noted that the specific obfuscation value generation algorithm can be selected and set according to actual needs. For example, a random value can be generated as the obfuscation value. For another example, a real-time random value can be generated as the obfuscation value. For another example, the obfuscation value can be generated according to the number of communications. For example, a terminal is used to encrypt a file. For the first encryption, the obfuscation value can be 1, for the second encryption, the obfuscation value can be 2, and so on.

[0114] It should be understood that the role of the obfuscation value is to encrypt the mixed bytecode. Those skilled in the art can also select other obfuscation value generation algorithms within the scope of protection of the present invention to obtain the obfuscation value, which will not be repeated here.

[0115] The preset obfuscation encryption method can be set according to actual needs. Here are several simple obfuscation processing methods. For example, the obfuscation value can be directly added, subtracted, multiplied, etc. to each value in the mixed bytecode. For another example, the mixed bytecode in the order corresponding to the obfuscation value can also be processed, such as inverting, adding or multiplying a fixed value, etc. The following takes the obfuscation value of 3 and the mixed bytecode of "1 111 100110 10 10 10 10 10" as an example to give several optional implementation methods.

[0116] Obfuscation encryption method 1: directly add the obfuscation value to each value in the mixed bytecode, then the encrypted file obtained is "4 1141004 13 13 13 13 13 13", in which each mixed bytecode is processed.

[0117] Obfuscation encryption method 2: Take the obfuscation value as the interval, and add a fixed value of 10 to every 3 mixed byte codes. The resulting encrypted file is "11 111 1001 1020 10 10 1020", among which the mixed byte codes marked with underscores are processed.

[0118] It should be understood that there are many ways of obfuscation processing. Those skilled in the art can select a suitable obfuscation processing method according to actual needs, which does not exceed the protection scope of the present invention and will not be described in detail here.

[0119] It should be understood that the format suffix of the encrypted file can be freely set according to actual needs to improve the encryption level. For example, it can be set to a common file format to increase the difficulty of cracking the armor. For example, the format suffix of the encrypted file can be changed to .rar to disguise it as the same format as the original file. In this way, when the cracker clicks on the file, it will prompt that the data of the file is damaged, so that the cracker's cracking attention is shifted to the direction of repairing the file. He will not easily think that the file is obfuscated and encrypted, but will find a way to modify the file for cracking, thereby improving the security of the encrypted file and preventing the file from being cracked.

[0120] Step S305: Determine the encrypted file as the target configuration file.

[0121] Encrypting the target effect parameters can protect the security of the configuration files and prevent unauthorized access and tampering. This helps ensure the accuracy and confidentiality of camera debugging and improves the security of the system. The use of multi-level encryption measures further enhances the security of the configuration files. At the same time, the combination of hash value bytecode and obfuscation encryption makes the encryption process more complex and difficult to crack, improving the security of the system.

[0122] Step S204: Obtain the sensor ID of the camera to be configured.

[0123] In an embodiment of the present application, the camera to be configured is a camera on a terminal device to which the debugging device is connected to apply target effect parameters.

[0124] Optionally, determine whether the sensor ID of the camera is correct, if so, execute step S205, if not, terminate the execution; wherein, the correct camera sensor ID can be obtained from the instruction manual provided by the sensor manufacturer, if the camera sensor ID obtained from the ID register by the terminal device of the application target effect parameters connected to the debugging device is consistent with the camera sensor ID in the instruction manual, then the camera sensor ID is correct.

[0125] Step S205: Determine the target memory through the sensor ID.

[0126] The target memory may be a register address of a register of a camera sensor.

[0127] Step S206: Obtain the target configuration file.

[0128] The target configuration file includes target effect parameters, and the target effect parameters are used to adjust the display effect of the camera.

[0129] Step S207: Import the target configuration file into the target memory.

[0130] The target memory includes a memory related to the camera to be configured. Optionally, the target memory in the embodiment of the present application is a register address of a register of a camera sensor.

[0131] Optionally, the target configuration file is imported into the target memory by means of adb, which is fast and convenient and can further improve the efficiency of camera image effect optimization.

[0132] There are many specific ways to store the target effect parameters in the target memory. The target effect parameters can be directly stored in the configuration file, or the target effect parameters can be stored in a text document in text format. Accordingly, when the target effect parameters are stored in the configuration file, the target effect parameters can be directly read from the configuration file for configuration when the target effect parameters are configured. When the target effect parameters are stored in a text document, since the read target effect parameters are in text format, before configuration, the target effect parameters in text format can be parsed according to the set configuration method and pre-set parsing rules to generate parameters in a form corresponding to the camera registers, and then the parameters in a form corresponding to the camera registers are configured into the camera.

[0133] If register configuration is performed, the parameters corresponding to the camera registers can be configured into the registers one by one according to the preset register width and register address.

[0134] Furthermore, the number of required configuration registers may be preset, thus reducing the complexity of configuration.

[0135] When storing the target effect parameters, the target effect parameters can be stored in the built-in memory (target memory) of the mobile terminal. When the mobile terminal supports a memory card, the target effect parameters can also be stored in the memory card. When stored in the memory card, there is no need to preset the target effect parameters through a PC. When the camera needs to be debugged, the memory card can be inserted into the mobile terminal. Usually, according to the type of memory card supported by the mobile terminal, the target effect parameters can be stored in an SD card or a TF card.

[0136] Depending on the testing method, multiple groups of target effect parameters can be stored in the memory at the same time, or only one group of target effect parameters can be stored in the memory. When storing multiple groups of target effect parameters, these groups of target effect parameters can be stored in multiple files respectively, or all can be stored in one file.

[0137] When only one set of the target effect parameters is stored in the memory, the set of the target effect parameters is directly read; when at least two sets of the target effect parameters are stored in the memory, one set of the target effect parameters is read from the target effect parameters that have never been tested according to a pre-set reading rule.

[0138] When only one set of target effect parameters is stored in the memory, after each test of the current target effect parameters is completed, it is necessary to connect to a PC to update the new target effect parameters to the built-in memory of the mobile terminal, or replace the memory card to update the target effect parameters. When multiple sets of target effect parameters are stored in the memory, it is more convenient to test all parameters in the memory without updating the target effect parameters in the memory.

[0139] Of course, if the target effect parameters are stored in the form of a text document, the mobile terminal itself can conveniently modify the target effect parameters in the memory through the text document management function. When the target effect parameters need to be changed, the text document management function of the mobile terminal itself can be directly used to modify the target effect parameters in the text document, and then read and configure the target effect parameters, thereby further improving the efficiency of camera debugging.

[0140] Step S208: displaying a preset image through the target configuration file to determine the debugging effect of the target configuration file.

[0141] The target effect parameters whose corresponding test results meet the set requirements are determined as the final target effect parameters. Software analysis can be used. Currently, image analysis software such as ImaTest can perform test highlighting effect analysis to obtain test results. First, the test pictures generated by taking pictures in the optical laboratory are imported into the PC, and then the test pictures are analyzed using the image analysis software. Finally, according to the analysis results of the image analysis software, it is determined that the target effect parameters whose corresponding test picture effects meet the set requirements are the final target effect parameters.

[0142] Furthermore, in order to obtain better shooting effects, more groups of the target effect parameters can be tested. If no test image effect corresponding to the target effect parameters meets the set requirements, or if two or more groups of test image effects corresponding to the target effect parameters meet the set requirements, the target effect parameters with the best corresponding test results can be determined as the final target effect parameters, thereby further improving the shooting effect of the camera.

[0143] The method used in the embodiments of the present application significantly improves the efficiency, accuracy and safety of camera debugging. First, by obtaining the target configuration file and importing it into the target memory, the method can quickly adjust the display effect of the camera, greatly simplifying the debugging process. Compared with the traditional debugging method, this configuration file-based method is more efficient and reduces human errors and repetitive work in the debugging process.

[0144] Secondly, the target effect parameters are encrypted through a preset encryption algorithm to ensure the security of the configuration file. In the increasingly severe network security environment, this measure effectively prevents unauthorized access and tampering, and protects the confidentiality and integrity of camera debugging.

[0145] In addition, by comparing the images of the typical camera and the limit camera in the same scene using characteristic parameters, this method can accurately determine the target effect parameters, thereby achieving precise adjustment of the camera display effect. This comparative debugging method improves the reliability and accuracy of debugging, allowing the camera to present the best effect in various application scenarios.

[0146] Finally, the target effect parameters are updated through extreme samples, making the debugging results more in line with the needs of actual application scenarios. This flexibility and adaptability enable this method to cope with the ever-changing market demands and user preferences, providing strong support for camera debugging.

[0147] In summary, the camera debugging method described in the above claims has many beneficial effects such as high efficiency, accuracy, safety, and flexible adaptability, and provides a comprehensive and effective solution for camera debugging. In practical applications, this method will help improve the quality and performance of camera products and meet users' needs for high-quality image capture and monitoring.

[0148] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0149] See also Figure 4 , Figure 4 It is a structural schematic diagram of a camera debugging device provided in an embodiment of the present application. The camera debugging device 40 can be the debugging device mentioned above or a component in the debugging device. The camera debugging device 40 can include a first acquisition unit 401, an import unit 402 and a judgment unit 403, wherein each unit is described in detail as follows.

[0150] A first acquisition unit 401 is used to acquire a target configuration file, where the target configuration file includes a target effect parameter, and the target effect parameter is used to adjust a display effect of a camera;

[0151] An importing unit 402, configured to import the target configuration file into a target memory, wherein the target memory includes a memory related to a camera to be configured;

[0152] The judging unit 403 is configured to display a preset image through the target configuration file to judge the debugging effect of the target configuration file.

[0153] In another optional embodiment, the device further comprises:

[0154] The encryption unit is used to encrypt the target effect parameters through a preset encryption algorithm to obtain a target configuration file.

[0155] In another optional implementation manner, the encryption unit is used to:

[0156] Determine encryption parameters;

[0157] Generate a hash value bytecode according to the encryption parameter;

[0158] Writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode;

[0159] Generate an obfuscated value of the encryption parameter according to a preset obfuscated value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscated value and a preset obfuscated encryption method to obtain an encrypted file;

[0160] The encrypted file is determined as the target configuration file.

[0161] In another optional implementation manner, the encryption unit is specifically used for:

[0162] Generate a hash value according to the encryption parameter;

[0163] A hash sum value is determined according to a preset summing method and the hash value.

[0164] In another optional implementation manner, the camera debugging device 40 further includes:

[0165] A second acquisition unit, configured to acquire a first image and a second image respectively in the same scene through a first camera and a second camera, wherein the first camera comprises a characteristic parameter typical camera, and the second camera comprises a limit camera;

[0166] A target effect parameter is determined through the first image and the second image.

[0167] In another optional implementation manner, the camera debugging device 40 further includes:

[0168] An updating unit is used to update the target effect parameter through a limit sample to obtain an updated target effect parameter, wherein the limit sample includes at least one or more of a beauty image or an image with additional special effects.

[0169] In another optional implementation manner, the camera debugging device 40 further includes:

[0170] A third acquisition unit is used to acquire the sensor ID of the camera to be configured;

[0171] The determining unit is used to determine the target memory according to the sensor ID.

[0172] See also Figure 5 , Figure 5 : is a structural diagram of a camera debugging device provided in an embodiment of the present application, wherein the camera debugging device 50 comprises: a processor 501, a communication interface 502 and a memory 503. The processor 501, the communication interface 502 and the memory 503 may be connected via a bus or other means, and the embodiment of the present application takes the connection via a bus as an example.

[0173] Among them, the processor 501 is the computing core and control core of the camera debugging device 50, which can parse various instructions in the camera debugging device 50 and various data of the camera debugging device 50. For example, the processor 501 can be a central processing unit (CPU), which can transmit various interactive data between the internal structures of the camera debugging device 50, etc. The communication interface 502 can optionally include a standard wired interface, a wireless interface (such as WI-FI, a mobile communication interface, etc.), which can be used to send and receive data under the control of the processor 501; the communication interface 502 can also be used for the transmission and interaction of internal signaling or instructions of the camera debugging device 50. The memory 503 (Memory) is a memory device in the camera debugging device 50, which is used to store programs and data. It can be understood that the memory 503 here can include both the built-in memory of the camera debugging device 50 and the extended memory supported by the camera debugging device 50. The memory 503 provides a storage space, which stores the operating system of the camera debugging device 50. The storage space also stores the program code or instructions required for the processor to perform the corresponding operation. Optionally, the storage space can also store related data generated after the processor performs the corresponding operation.

[0174] In the embodiment of the present application, the processor 501 runs the executable program code in the memory 503 to perform the following operations:

[0175] Acquire a target configuration file, wherein the target configuration file includes target effect parameters, and the target effect parameters are used to adjust the display effect of the camera;

[0176] Importing the target configuration file into a target memory, wherein the target memory includes memory related to the camera to be configured;

[0177] The preset image is displayed through the target configuration file to determine the debugging effect of the target configuration file.

[0178] In an optional solution, the processor 501 is further configured to:

[0179] The target effect parameters are encrypted using a preset encryption algorithm to obtain a target configuration file.

[0180] In an optional solution, in terms of encrypting the target effect parameter by using a preset encryption algorithm to obtain a target configuration file, the processor 501 is specifically configured to:

[0181] The method of encrypting the target effect parameters by using a preset encryption algorithm to obtain a target configuration file includes:

[0182] Determine encryption parameters;

[0183] Generate a hash value bytecode according to the encryption parameter;

[0184] Writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode;

[0185] Generate an obfuscated value of the encryption parameter according to a preset obfuscated value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscated value and a preset obfuscated encryption method to obtain an encrypted file;

[0186] The encrypted file is determined as the target configuration file.

[0187] In an optional solution, the processor 501 is further configured to:

[0188] Generate a hash value according to the encryption parameter;

[0189] A hash sum value is determined according to a preset summing method and the hash value.

[0190] In an optional solution, the processor 501 is further configured to:

[0191] Acquire a first image and a second image respectively in the same scene by using a first camera and a second camera, wherein the first camera includes a characteristic parameter typical camera, and the second camera includes a limit camera;

[0192] A target effect parameter is determined through the first image and the second image.

[0193] In an optional solution, the processor 501 is further configured to:

[0194] The target effect parameter is updated through the limit sample to obtain the updated target effect parameter, and the limit sample at least includes one or more of the beauty image or the image with additional special effects.

[0195] In an optional solution, the processor 501 is further configured to:

[0196] Get the sensor ID of the camera to be configured;

[0197] The target memory is determined by the sensor ID.

[0198] In an optional solution, the processor 501 is further configured to:

[0199] It should be noted that the implementation of each operation can also refer to Figure 2 The corresponding description of the method embodiment shown in .

[0200] The present invention provides a computer-readable storage medium storing a computer program, wherein the computer program includes program instructions, and when the computer program is executed by a processor, the processor implements Figure 3 The operations performed by the described embodiments.

[0201] The present application also provides a computer program product, which, when executed on a processor, implements Figure 3 The operations performed by the described embodiments.

[0202] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A camera debugging method, characterized in that: The method comprises: Acquire a target configuration file, wherein the target configuration file includes target effect parameters, and the target effect parameters are used to adjust the display effect of the camera; Importing the target configuration file into a target memory, wherein the target memory includes memory related to the camera to be configured; The preset image is displayed through the target configuration file to determine the debugging effect of the target configuration file.

2. The method according to claim 1, characterized in that Before obtaining the target configuration file, the method further includes: The target effect parameters are encrypted using a preset encryption algorithm to obtain a target configuration file.

3. The method according to claim 2, characterized in that The method of encrypting the target effect parameters by using a preset encryption algorithm to obtain a target configuration file includes: Determine encryption parameters; Generate a hash value bytecode according to the encryption parameter; Writing the hash value bytecode into the target effect parameter to obtain a mixed bytecode; Generate an obfuscated value of the encryption parameter according to a preset obfuscated value generation algorithm, and perform obfuscated encryption on the mixed bytecode according to the obfuscated value and a preset obfuscated encryption method to obtain an encrypted file; The encrypted file is determined as the target configuration file.

4. The method according to claim 3, characterized in that The method of generating a hash value bytecode according to the encryption parameter comprises: Generate a hash value according to the encryption parameter; A hash sum value is determined according to a preset summing method and the hash value.

5. The method according to claim 1, characterized in that The method further comprises: Acquire a first image and a second image respectively in the same scene by using a first camera and a second camera, wherein the first camera includes a characteristic parameter typical camera, and the second camera includes a limit camera; A target effect parameter is determined through the first image and the second image.

6. The method according to claim 5, characterized in that The method further comprises: The target effect parameter is updated through the limit sample to obtain the updated target effect parameter, and the limit sample at least includes one or more of the beauty image or the image with additional special effects.

7. The method according to any one of claims 1 to 6, characterized in that: Before obtaining the target configuration file, the method further includes: Get the sensor ID of the camera to be configured; The target memory is determined by the sensor ID.

8. A camera debugging device, characterized in that: The device comprises: A first acquisition unit is used to acquire a target configuration file, where the target configuration file includes a target effect parameter, and the target effect parameter is used to adjust a display effect of a camera; An import unit, used for importing the target configuration file into a target memory, wherein the target memory includes a memory related to a camera to be configured; The judging unit is used to display a preset image through the target configuration file to judge the debugging effect of the target configuration file.

9. A camera debugging device, characterized in that: The camera debugging device includes at least one processor, a communication interface and a memory, wherein the communication interface is used to send and / or receive data, the memory is used to store computer programs, and the at least one processor is used to call a computer program stored in at least one memory to implement the method described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program runs on a processor, the method according to any one of claims 1 to 7 is implemented.