CN114520910A - Flash lamp calibration method, device, equipment and medium - Google Patents

Flash lamp calibration method, device, equipment and medium Download PDF

Info

Publication number
CN114520910A
CN114520910A CN202210117984.6A CN202210117984A CN114520910A CN 114520910 A CN114520910 A CN 114520910A CN 202210117984 A CN202210117984 A CN 202210117984A CN 114520910 A CN114520910 A CN 114520910A
Authority
CN
China
Prior art keywords
calibration
flash
client
flash lamp
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210117984.6A
Other languages
Chinese (zh)
Inventor
刘帝金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wingtech Communication Co Ltd
Original Assignee
Wingtech Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wingtech Communication Co Ltd filed Critical Wingtech Communication Co Ltd
Priority to CN202210117984.6A priority Critical patent/CN114520910A/en
Publication of CN114520910A publication Critical patent/CN114520910A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a method, a device, equipment and a medium for calibrating a flash lamp, wherein the method comprises the following steps: the client receives an input instruction; the client responds to the input instruction and reads the indication identifier of the calibration result file; when the indication mark indicates that the calibration result file does not exist, the client generates a calibration instruction; and the client sends a calibration instruction to the camera hardware abstraction layer, so that the camera hardware abstraction layer responds to the calibration instruction and executes the flash lamp calibration program. According to the embodiment of the application, the client for calibrating the flash lamp is installed on the electronic equipment, so that the client responds to the instruction input by a tester, judges whether the electronic equipment currently completes the calibration process, and issues the calibration instruction to the camera HAL layer of the electronic equipment when the electronic equipment does not perform calibration, so that the flash lamp calibration program is executed on the camera HAL layer of the electronic equipment, accurate and intelligent calibration of the flash lamp is realized, repeated execution of the flash lamp calibration process is effectively avoided, and normal operation of other camera applications is ensured.

Description

Flash lamp calibration method, device, equipment and medium
Technical Field
The present application relates generally to the field of flash lamp technology, and more particularly, to flash lamp calibration methods, apparatus, devices, and media.
Background
Due to the various advantages of dual color temperature flashlights over dual LED lamps or single LED lamps, more and more mobile phones are beginning to use dual color temperature flashlights. In the mobile phone using the dual-color temperature flash lamp, the dual-color temperature flash lamp is required to be calibrated to generate flash lamp calibration data with different color temperature proportion values, so that the generated calibration data is utilized in the using process, and the flashing photographing effect is improved.
At present, for the calibration of a dual-color-temperature flash lamp, such as the dual-color-temperature flash lamp calibration on a CAMX framework provided by the university company, a flash lamp calibration program of a platform is operated when any camera application is opened by configuring a calibration program, and then a flash lamp calibration result file is generated in a mobile phone after the calibration is successful.
For the calibration, since the calibration flow of the two-color temperature flash lamp is operated after all the camera applications are started, the flash lamp can continuously flash in the calibration process, the photographing effect of the camera applications is influenced, and data successfully calibrated by using the lamp box can be covered under some scenes with similar color temperatures.
Disclosure of Invention
In view of the foregoing defects or shortcomings in the prior art, it is desirable to provide a method, an apparatus, a device, and a medium for calibrating a flash, in which a client for calibrating a flash is installed on an electronic device, so that when the electronic device does not successfully execute a flash calibration program, a command issued by the client starts the flash calibration program, so as to avoid repeated operation and ensure normal operation of other camera applications.
In a first aspect, an embodiment of the present application provides a flash lamp calibration method, where the method is used for an electronic device, and the electronic device is installed with a client for flash lamp calibration, and the method includes:
the client receives an input instruction;
the client responds to the input instruction and reads the indication identifier of the calibration result file;
and when the indication mark indicates that the calibration result file does not exist, the client sends a calibration instruction to the camera hardware abstraction layer, so that the camera hardware abstraction layer responds to the calibration instruction to execute a flash lamp calibration program.
Optionally, in the flash calibration method in some embodiments, after the client receives the input instruction, the method further includes: and displaying prompt information on an interface of the client, wherein the prompt information is used for indicating a flash lamp calibration result or a calibration state.
Optionally, in the flash lamp calibration method in some embodiments, the prompt information includes first prompt information and second prompt information, where the first prompt information indicates that the flash lamp calibration is successful, and the second prompt information indicates that the flash lamp calibration is failed.
Optionally, in the flash calibration method in some embodiments, when the indication flag indicates that the calibration result file exists, the first prompt message further includes status information of the calibration result file, where the status information indicates that the electronic device has currently performed the flash calibration procedure.
Optionally, in the flash calibration method in some embodiments, when the camera hardware abstraction layer executes a flash calibration procedure, the prompt information includes calibration status information, and the status prompt information indicates that the electronic device is executing the flash calibration procedure.
Optionally, in the flash lamp calibration method in some embodiments, displaying the prompt information on the client interface includes:
and displaying prompt information in a prompt box of the client interface.
Optionally, in some embodiments, after successfully performing the flash calibration procedure, the method further includes:
and generating a calibration result file and storing the calibration result file.
In a second aspect, an embodiment of the present application provides a flash calibration apparatus, including:
the receiving module is used for receiving an input instruction by the client;
the reading module is used for responding to the input instruction by the client and reading the indication identifier of the calibration result file;
and the sending module is used for issuing a calibration instruction to the camera hardware abstraction layer by the client when the indication identifier indicates that the calibration result file does not exist, so that the camera hardware abstraction layer responds to the calibration instruction and executes a flash lamp calibration program.
In a third aspect, embodiments of the present application provide an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, the flash calibration method according to the first aspect is implemented.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program for implementing the flash calibration method as described in the first aspect above.
According to the flash lamp calibration method, the flash lamp calibration device, the flash lamp calibration equipment and the flash lamp calibration medium, the client for flash lamp calibration is installed on the electronic equipment, the tester inputs an instruction to the client when the flash lamp of the electronic equipment is calibrated, the client responds to the input instruction of the tester to judge whether the electronic equipment currently completes a calibration process, and when the judgment result shows that the electronic equipment does not perform calibration, the client issues the calibration instruction to the camera hardware abstraction layer of the electronic equipment, so that a flash lamp calibration program is executed on the camera hardware abstraction layer of the electronic equipment, accurate and intelligent calibration of the flash lamp is realized, repeated execution of the flash lamp calibration process is effectively avoided, and normal execution of other camera applications is ensured.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is a schematic diagram of an application architecture according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating flash lamp calibration interaction according to an embodiment of the present application;
FIG. 3 is a schematic flowchart illustrating a method for calibrating a flash lamp according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of an operation interface of an electronic device according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a client display interface according to an embodiment of the present application;
FIG. 6 is a schematic illustration of a client display interface according to some embodiments of the present application;
FIG. 7 is a schematic illustration of a client display interface according to some embodiments of the present application;
FIG. 8 is a schematic illustration of a client display interface according to some embodiments of the present application;
FIG. 9 is a flow chart illustrating a method of flash lamp calibration according to some embodiments of the present application;
FIG. 10 is a schematic structural diagram of a flash lamp calibration device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a computer system of an electronic device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only the portions relevant to the disclosure are shown in the drawings.
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It can be understood that as the photographing effect of the camera configured on the electronic device is more and more emphasized by the user, the good photographing effect under various environments is also gradually becoming a key.
Compared with a double-LED lamp or a single-LED lamp, the double-color-temperature flash lamp is softer in imaging effect and more accurate in white balance. The double-color-temperature lamp is used for photographing in a dark light environment, the quality of the picture can be obviously improved, and therefore more and more electronic equipment starts to adopt the technology of the double-color-temperature flash lamp.
It can also be understood that before the electronic device using the dual-color-temperature flash lamp is put into the market, the calibration process of the dual-color-temperature flash lamp is required to be executed, the flash lamp calibration data of different color temperature proportional values is generated, namely, the calibration result file is obtained, and then the generated calibration result file is utilized in the flashing process, so that the flashing photographing effect is improved.
Generally, to improve the calibration accuracy of a dual-color temperature flash, calibration of the flash may generate calibration data under a specific light box, e.g., the corresponding flash calibration operation is typically done with an in-line customized light box.
In some related technologies, Calibration of a Dual-color flash, such as Calibration of a Dual-color flash on a high-pass CAMX architecture, is to set a Calibration command, such as a Dual LED Calibration, in a camxoverriesettings.txt file, so that a flash Calibration process of an electronic device will be run each time any camera application is turned on after setting. And after the calibration is successful, a flash lamp calibration result file can be generated in the electronic equipment.
In the related art, since the command of the dual LED Calibration Mode is set, when all camera applications on the electronic device are turned on, a Calibration flow of the two-color temperature flash lamp is run, so that the flash lamp continuously flashes during the Calibration process, and the photographing effect of the camera applications is affected.
In addition, since the calibration data needs to be generated under a specific lamp box for flash lamp calibration, so as to improve the accuracy, that is, the calibration operation of the flash lamp is usually performed by utilizing a production line customized lamp box, in the related art, after the calibration command is set, the flash lamp calibration process is executed each time the camera application is opened, so that the data successfully calibrated by utilizing the lamp box may be covered under some scenes with similar color temperatures, and further the photographing effect of the flash lamp may be affected.
Moreover, in the related art, after the flash lamp calibration process is completed, whether a calibration result file is generated can only be checked through an ADB command, and then the calibration result is determined, so that the efficiency is low, and the flash lamp calibration process is not suitable for being used in a wide production line.
In the implementation of the present application, in order to solve the problems that in the calibration process, each camera application runs a calibration program after being opened, a flash lamp continuously flashes, and an original file is covered after the calibration is finished, so that the calibration result is poor, by developing an application designed for dual color temperature flash calibration, the electronic device of the client on which the application is installed, when the flash lamp calibration is carried out, a tester can carry out human-computer interaction with a client interface of the electronic equipment, so that the client responds to an input instruction of the tester, after the electronic equipment is judged not to successfully execute the calibration program, a calibration instruction is issued to a Hardware Abstraction Layer (HAL) of the electronic equipment to start a flash lamp calibration program, and then improve calibration efficiency and degree of accuracy, avoid the repeated execution of flash lamp calibration flow to ensure the normal operating of other camera applications.
It can be understood that the electronic device in the embodiment of the present application may be a device such as a smart phone and a tablet computer, which is equipped with various camera applications and can implement a photographing function.
It can be understood that, in order to implement the method of the embodiment of the present application, a corresponding operating system may be run on the electronic device.
For example, as shown in fig. 1, a schematic view of an Android operating system running on an electronic device according to an embodiment of the present application is shown, and as shown in fig. 1, the architecture of the operating system is sequentially divided into a bottom layer part, a core part, and an application part from bottom to top. The bottom layer part comprises a kernel and a HAL layer; the core part comprises a system core class library, an Android runtime environment, a framework layer and the like; the application part includes an application layer. Each of which includes a corresponding sub-module or subsystem.
The hardware abstraction layer is an interface layer located between an operating system, an electronic device kernel and a hardware circuit, provides a virtual hardware platform for the operating system, and may include a camera HAL layer and the like.
The application layer runs on an operating system and comprises a plurality of application programs, such as the application program for flash calibration in the embodiment of the application, so as to calibrate the flash of the camera on the bottom layer.
It is to be understood that the above operating system architecture on the electronic device is only an exemplary illustration, and the embodiment of the present application is not limited thereto, as long as the camera calibration client capable of implementing the application layer implements data interaction with the HAL layer to complete the flash calibration procedure.
It will be appreciated that in actual use, as shown in FIG. 2, the tester operates on the client interface of the application to input instructions. After receiving the instruction input by the tester, the client may respond to the input instruction to perform data interaction with the camera HAL layer of the operating system, so as to complete the flash calibration process.
In order to better understand the calibration method of the bicolor warm flash lamp provided by the embodiment of the application, the following detailed description is provided by fig. 3 to fig. 9.
Fig. 3 is a flash lamp calibration method according to an embodiment of the present application, where the method is applicable to the electronic device described in fig. 1, and a client for flash lamp calibration is installed on the electronic device, where the method includes the following steps:
s110, the client receives an input instruction.
And S120, the client responds to the input instruction and reads the indication identifier of the calibration result file.
And S130, when the indication mark indicates that the calibration result file does not exist, the client issues the calibration instruction to the camera hardware abstraction layer, so that the camera hardware abstraction layer responds to the calibration instruction to execute the flash lamp calibration program.
Specifically, in the embodiment of the application, when a tester performs calibration of a dual-color temperature flash lamp of an electronic device, a calibration program can be started by operating a client installed on the electronic device and used for flash lamp calibration.
As shown in fig. 4, a tester may click on an icon of a flash lamp calibrated client to input a touch instruction to the electronic device.
Or, in some embodiments, the tester clicks an icon of the flash lamp calibration client, and after the client is opened, a button for starting calibration is presented on the operation interface of the client, so that the tester starts the calibration program by operating the button.
For example, the calibration procedure may be initiated by a touch operation, such as clicking a button, or by voice input.
After receiving an instruction input by a tester on an operation interface, a client on the electronic device responds to the input instruction, reads an indication identifier of a calibration result file from the kernel, for example, transmits a file identification instruction to the kernel of the electronic device to obtain the indication identifier of the flash lamp calibration result file, and then identifies whether the flash lamp calibration result file is currently stored in the kernel of the electronic device by using the obtained indication identifier, namely, judges whether the flash lamp calibration process is currently executed by the electronic device.
Further, when the indication flag of the calibration result file returned by the kernel of the electronic device indicates that no calibration result file exists currently, that is, the electronic device has not executed or has not successfully executed the flash lamp calibration program. The client may issue a calibration instruction to a camera HAL layer in an operating system on the electronic device in response to the acquired indication identifier, so that the flash calibration procedure is started to be executed in response to the calibration instruction at the camera HAL layer.
For example, after a tester clicks an icon of a flash calibration client on an operation interface shown in fig. 4 to input an instruction, the electronic device responds to the input instruction, reads a current calibration result file indication identifier in a kernel of the electronic device, and when the indication identifier indicates that the flash calibration result file is not stored in a memory space of the electronic device, the flash calibration client issues a customized and dedicated OP _ MODE value to the camera HAL layer to control to start a flash calibration process.
According to the flash lamp calibration method in the embodiment of the application, the client for flash lamp calibration which is developed and designed is installed on the electronic equipment, so that a tester can input a flash lamp calibration instruction to the client through an operation interface, the client responds to the calibration result file indication mark obtained by the input instruction, and when the indication mark indicates that the electronic equipment does not execute flash lamp calibration, the electronic equipment starts to execute the calibration program, thereby avoiding the flash lamp calibration program from being continuously and repeatedly executed, causing the flash lamp to continuously flicker, ensuring the normal operation of other camera applications, covering accurate data calibrated by using the calibration lamp box, improving the accuracy and efficiency of flash lamp calibration, and simplifying the operation.
Optionally, in this embodiment of the application, in order to improve calibration efficiency and simplify operation, the calibration instruction issued by the client to the camera HAL layer may be an OP _ MODE value generated in a pre-customized manner.
It will be appreciated that in other embodiments, the calibration instructions may also be commands generated by the client in real time in response to the file indication identifier.
Further, in some embodiments of the present application, after the flash calibration procedure is completed in the camera HAL layer, if the calibration is successful, a flash calibration result file is generated in the camera HAL layer, and the generated calibration result file is stored in a kernel of the electronic device.
Optionally, in this embodiment of the application, after the client for flash lamp calibration is installed and operated on the electronic device, in order to improve user experience, in an operation process after the client receives an input instruction of a tester, corresponding prompt information may be displayed in real time according to a calibration progress condition of the flash lamp, so as to indicate a calibration result or a calibration state of the current electronic device.
For example, the prompt message may include a first prompt message, a second prompt message, and calibration status information, where the first prompt message may indicate that the flash calibration is successful, the second prompt message indicates that the flash calibration is failed, and the status information indicates that the electronic device is executing a flash calibration procedure.
Or, in other embodiments, when the indication identifier of the read calibration result file indicates that the calibration result file is currently stored in the electronic device in response to the input instruction, file state information indicating that the calibration result file is already stored may also be displayed on the basis of the first information indicating that the calibration is successful being displayed on the interface.
Optionally, in some embodiments, in order to improve user experience, when the prompt information is displayed on the client interface, a prompt box may be set, and then the content of the prompt information is displayed in the prompt box, so that a tester can visually check the content. As shown in fig. 5 to 8.
Specifically, in some embodiments, when the electronic device responds to an input instruction of a tester, and the read indication identifier of the calibration result file indicates that the calibration result file currently exists, the electronic device indicates that the flash calibration program has been successfully executed on the electronic device, and does not need to be started again. The client may respond to the indication identifier of the calibration result file, directly output feedback information indicating that the calibration is successful, that is, first prompt information, and display the first prompt information on the interface of the client, and display file status information to prompt that the flash lamp calibration program is successfully executed.
As shown in fig. 7, a prompt box may be displayed on the interface of the client, the "calibration result" may be displayed in the prompt box, and the file status information of the "flash calibration result file already exists" may be displayed.
Or, in other embodiments, when the camera HAL layer of the electronic device responds to the calibration instruction issued by the client, the flash lamp calibration program is executed, and after the calibration is completed, a value representing the calibration result may be returned to the client, so that the corresponding prompt information of the calibration result may be displayed on the client interface.
For example, after the camera HAL layer completes the flash calibration process, if the calibration is successful, a flash calibration result file is generated, and the result value 1 to metadata of the successful calibration is written back to notify the flash calibration client of the result of this calibration. If the calibration fails, the camera HAL layer does not generate a flash lamp calibration result file, writes back a result value 0 to metadata of the calibration failure, and informs the flash lamp calibration client of the current calibration result.
The flash lamp calibration client displays a prompt box by reading the returned metadata value and imaging, so that first prompt information of successful calibration or second prompt information of failed calibration is displayed in the prompt box to inform a tester of the result of the calibration of the dual-color temperature flash lamp.
As shown in fig. 5 and 6, "calibration successful" is displayed below the word of the calibration result in the display frame: 1 ", or" calibration failed: 0 "is used as the second prompt message.
It can be understood that, in the related art, after the flash lamp calibration process is completed, whether the calibration result file is generated or not can only be checked through the ADB command to determine the calibration result, which results in complex operation and low efficiency.
Further, in some embodiments, in order to improve the user experience and enable the user to master the execution condition of the flash lamp calibration program in real time, the calibration status information may be displayed in the prompt box after the tester inputs the instruction.
For example, as shown in FIG. 8, a word "calibrate, please wait" may be displayed in the prompt box to indicate the progress being performed.
In the flash lamp calibration method in the embodiment of the application, a client for flash lamp calibration which is developed and designed is installed on an electronic device, so that a tester can input a flash lamp calibration instruction to the client through an operation interface, and further, a calibration result file indication mark which is obtained by responding to the input instruction at the client is used for starting to execute a calibration program when the electronic device does not execute flash lamp calibration, and in the calibration process, prompt information in the execution process of the calibration program is displayed in a prompt box of an interface of the client in real time, and then after successful calibration, a calibration result file is generated and stored, so that continuous flash lamp continuous flicker caused by continuous and repeated execution of the flash lamp calibration program is avoided, and accurate data after calibration by using a calibration lamp box is covered, and the accuracy and the efficiency of flash lamp calibration are improved, the user experience is improved.
Further, in order to better understand the implementation process of the flash lamp calibration method in the embodiment of the present application, the following is explained in detail by fig. 9.
As shown in fig. 9, when a tester needs to perform flash calibration on a current electronic device, first, an icon of a flash calibration client may be clicked to input an instruction to the electronic device. The client can respond to the input instruction, whether the current electronic equipment already has the calibration result file of the flash lamp is read, if the calibration result file exists, the current electronic equipment executes the flash lamp calibration, and the flash lamp calibration is successful, a flash lamp calibration success prompt can be directly output, and the success prompt information and the file state information of the calibration result file exist are displayed in a prompt box.
And if the client for flash lamp calibration reads that the current electronic equipment does not have a flash lamp calibration result file, indicating that the current electronic equipment does not execute the flash lamp calibration process or does not successfully execute the flash lamp calibration process. The flash calibration client issues a customized special OP _ MODE value to the camera HAL layer to control the flash calibration process to be started.
Further, after the camera HAL layer completes the flash lamp calibration process, if the calibration is successful, a flash lamp calibration result file and write-back result values 1 to metadata of successful calibration are generated, and the client side of flash lamp calibration is notified of the current calibration result. If the calibration fails, the camera HAL layer does not generate a flash lamp calibration result file, writes back a result value 0 to metadata of the calibration failure, and informs the current calibration result to a client of the flash lamp calibration. The client side of the flash lamp calibration displays a prompt box for successful or failed calibration in a graphical mode by reading the returned metadata value so as to display prompt information and inform an operator of the result of the double-color-temperature flash lamp calibration at this time, and a tester can conveniently and visually check the calibration result.
Flash lamp calibration in the embodiment of the application, through the customer end that is used for the flash lamp calibration of installation development design on electronic equipment, make the tester pass through operation interface, to the input of client realization flash lamp calibration instruction, with effectively start the flash lamp calibration procedure, continuous repeated execution flash lamp calibration procedure has been avoided, the flash lamp that arouses can last the scintillation, and to the cover of the accurate data after utilizing the calibration lamp house calibration, the degree of accuracy and the efficiency of flash lamp calibration have been improved, user experience has been promoted.
On the other hand, the embodiment of the present application further provides a flash calibration apparatus, which is disposed on the electronic device shown in fig. 1, as shown in fig. 10, the apparatus 900 includes:
a receiving module 910, configured to receive an input instruction by a client;
a reading module 920, configured to read, by the client, an indication identifier of the calibration result file in response to the input instruction;
a sending module 930, configured to, when the indication identifier indicates that the calibration result file does not exist, issue the calibration instruction to the camera hardware abstraction layer by the client, so that the camera hardware abstraction layer responds to the calibration instruction to execute a flash calibration procedure.
Optionally, in the flash lamp calibration device provided in the embodiment of the present application, after the client receives the input instruction, the device further includes:
a display module 940, configured to display a prompt message on the interface of the client, where the prompt message is used to indicate a flash calibration result or a calibration state.
Optionally, the flash lamp calibration device provided in this embodiment of the present application, this display module includes first display unit 941 and second display unit 942, and this first display unit is used for displaying first prompt information, the second display unit is used for displaying second prompt information, first prompt information indicates that this flash lamp calibration succeeds, and second prompt information indicates that this flash lamp calibration fails.
Optionally, in the flash lamp calibration device provided in this embodiment of the application, when the indication flag indicates that the calibration result file exists, the first display unit is further configured to display file state information, where the file state information indicates that the flash lamp calibration program has been completed by the electronic device currently.
Optionally, in the flash calibration apparatus provided in this embodiment of the present application, when the camera hardware abstraction layer executes a flash calibration procedure, the display module further includes a third display unit 943, where the third display unit is configured to display calibration status information indicating that the electronic device is executing the flash calibration procedure.
Optionally, the flash lamp calibration apparatus provided in the embodiment of the present application is specifically configured to, at the display module 940:
and displaying prompt information in a prompt box of the client interface.
Optionally, in the flash lamp calibration device provided in the embodiment of the present application, the first receiving module is specifically configured to:
and receiving a touch instruction of clicking the icon of the client in an operation interface.
Optionally, in the flash lamp calibration device provided in the embodiment of the present application, the sending module is specifically configured to:
the client sends a customized OP _ MODE value to a camera hardware abstraction layer
Optionally, after the flash lamp calibration program is successfully executed, the flash lamp calibration apparatus provided in the embodiment of the present application further includes:
the storage module 950 is configured to generate a calibration result file and store the calibration result file.
In another aspect, embodiments of the present application further provide a computer processing device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and the processor is configured to implement the flash calibration method provided in the above embodiments when executing the program.
Referring to fig. 11, fig. 11 is a schematic structural diagram of a computer system of a terminal device according to an embodiment of the present application.
As shown in fig. 11, the computer system includes a Central Processing Unit (CPU)301 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage section 303 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the system 300 are also stored. The CPU 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to embodiments of the application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a machine-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 303, and/or installed from the removable medium 311. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 301.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, and may be described as: a processor, comprising: the device comprises a receiving module, a reading module and a sending module. The names of these units or modules do not form a limitation on the units or modules themselves in some cases, for example, the sending module may also be described as "when the indication flag indicates that the calibration result file does not exist, the client issues a calibration instruction to the camera hardware abstraction layer, so that the flash calibration procedure is executed in response to the calibration instruction at the camera hardware abstraction layer".
As another aspect, the present application also provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiments; or may be separate and not incorporated into the electronic device. The computer readable storage medium stores one or more programs that, when executed by one or more processors, perform the flash calibration method described herein:
the client receives an input instruction;
the client responds to the input instruction and reads the indication identifier of the calibration result file;
and when the indication mark indicates that the calibration result file does not exist, the client sends a calibration instruction to the camera hardware abstraction layer, so that the camera hardware abstraction layer responds to the calibration instruction to execute a flash lamp calibration program.
To sum up, according to the flash lamp calibration method, the flash lamp calibration device, the flash lamp calibration equipment and the flash lamp calibration medium provided in the embodiments of the present application, by installing the client for flash lamp calibration on the electronic device, the tester inputs an instruction to the client when performing flash lamp calibration of the electronic device, so that the client responds to the input instruction of the tester to determine whether the electronic device currently completes a calibration process, and when a determination result indicates that calibration is not performed, issues a calibration instruction to the camera hardware abstraction layer of the electronic device, so that a flash lamp calibration program is executed on the camera hardware abstraction layer of the electronic device, thereby achieving accurate and intelligent calibration of the flash lamp, effectively avoiding repeated execution of the flash lamp calibration process, and ensuring normal execution of other camera applications.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the disclosure. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (10)

1. A flash calibration method for an electronic device having a client installed for flash calibration, the method comprising:
the client receives an input instruction;
the client responds to the input instruction and reads the indication identifier of the calibration result file;
and when the indication mark indicates that the calibration result file does not exist, the client sends a calibration instruction to the camera hardware abstraction layer, so that the camera hardware abstraction layer responds to the calibration instruction to execute a flash lamp calibration program.
2. The flash calibration method of claim 1, wherein after the client receives the input command, the method further comprises:
and displaying prompt information on an interface of the client, wherein the prompt information is used for indicating a flash lamp calibration result or a calibration state.
3. The method according to claim 2, wherein the prompt message includes a first prompt message and a second prompt message, the first prompt message indicates that the flash calibration is successful, and the second prompt message indicates that the flash calibration is failed.
4. The method according to claim 2, wherein when the indication flag indicates that the calibration result file exists, the first prompt message further includes file status information indicating that the electronic device has currently performed a flash calibration procedure.
5. The flash calibration method of claim 2, wherein the hint information includes calibration status information indicating that the electronic device is performing a flash calibration procedure when the camera hardware abstraction layer is performing a flash calibration procedure.
6. The flash calibration method of any one of claims 2-5, wherein displaying a prompt on the client interface comprises:
and displaying prompt information in a prompt box of the client interface.
7. A flash calibration method according to any one of claims 1-5, wherein after successfully performing a flash calibration procedure, the method further comprises:
and generating a calibration result file and storing the calibration result file.
8. A flash lamp calibration device, said device comprising:
the receiving module is used for receiving an input instruction by the client;
the reading module is used for responding to the input instruction by the client and reading the indication identifier of the calibration result file;
and the sending module is used for issuing a calibration instruction to the camera hardware abstraction layer by the client when the indication identifier indicates that the calibration result file does not exist, so that the camera hardware abstraction layer responds to the calibration instruction and executes a flash lamp calibration program.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor being configured to implement the flash calibration method of any one of claims 1 to 7 when the program is executed.
10. A computer-readable storage medium having stored thereon a computer program for implementing the flash calibration method of any one of claims 1-7.
CN202210117984.6A 2022-02-08 2022-02-08 Flash lamp calibration method, device, equipment and medium Pending CN114520910A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210117984.6A CN114520910A (en) 2022-02-08 2022-02-08 Flash lamp calibration method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210117984.6A CN114520910A (en) 2022-02-08 2022-02-08 Flash lamp calibration method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114520910A true CN114520910A (en) 2022-05-20

Family

ID=81596454

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210117984.6A Pending CN114520910A (en) 2022-02-08 2022-02-08 Flash lamp calibration method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114520910A (en)

Similar Documents

Publication Publication Date Title
CN109544663B (en) Virtual scene recognition and interaction key position matching method and device of application program
US10304419B2 (en) Screen controlling method and electronic device supporting the same
CN110109670B (en) Method and device for processing view list data, electronic equipment and storage medium
CN112052008B (en) Code checking method, device, computer equipment and computer readable storage medium
CN110781067A (en) Method, device, equipment and storage medium for calculating starting time consumption
US10489135B2 (en) Electronic device and method for improving installation speed of theme package
CN116265972B (en) Power consumption display method of mobile device and mobile device
US10475146B2 (en) Device for controlling multiple areas of display independently and method thereof
US10705681B2 (en) Electronic device and display method for selecting an area of an icon
WO2017049893A1 (en) Application program testing method, testing apparatus, and mobile terminal
CN112579187A (en) Optimization method and device for cold start of application program
CN111737100A (en) Data acquisition method, device, equipment and storage medium
CN114520910A (en) Flash lamp calibration method, device, equipment and medium
CN113835948A (en) Temperature detection method, temperature detection device and electronic equipment
CN114141206B (en) Backlight correction method, related device and storage medium
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN115422058A (en) Method and device for testing face recognition application
US20170269827A1 (en) Electronic device and method for controlling the same
CN112367295A (en) Plug-in display method and device, storage medium and electronic equipment
CN113392120A (en) Method and device for acquiring execution information of SQLite
CN110519650A (en) A kind of OSD language upgrade method, apparatus, electronic equipment and storage medium
CN110968519A (en) Game testing method, device, server and storage medium
CN116700740B (en) Software repairing method and related device
CN111176648B (en) Method and device for processing conversion of installation-free program, electronic equipment and storage medium
CN115794049A (en) Object-based function calling method and device in scene editor and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination