Video brightness detection method, video brightness detection system and electronic equipment

By calculating the baseline brightness value and analyzing the positional changes of the target object in the video file, the problem of evaluating the convergence smoothness of video brightness is solved, enabling accurate detection of video recording effects and meeting user needs.

CN121967897APending Publication Date: 2026-05-01HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-10-30
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

How to evaluate the smoothness of video brightness convergence in order to test the video recording effect of the acquisition device and ensure that the video recording effect meets the user's needs.

Method used

By acquiring multiple images of the target object from a video file, calculating the baseline brightness value and analyzing the positional changes of the target object, and converting the RGB color gamut to the LAB color gamut, the brightness convergence of the video file is evaluated, especially during the switching between high dynamic range and low dynamic range scenes, to ensure the accuracy and comprehensiveness of brightness convergence.

Benefits of technology

It achieves accurate assessment of video brightness convergence, ensuring that the video recording effect meets user needs, reducing resource waste, and improving computing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121967897A_ABST
    Figure CN121967897A_ABST
Patent Text Reader

Abstract

The embodiment of the invention is applied to the technical field of video detection, and provides a video brightness detection method, a video brightness detection system and electronic equipment. The electronic device obtains a video file. Wherein the video file comprises a plurality of to-be-detected images, and each to-be-detected image comprises a target object. Then, the electronic equipment calculates a reference brightness value corresponding to each to-be-detected image in the video file, and calculates position information of a target object in each to-be-detected image; and then, the electronic equipment analyzes the video file according to the reference brightness values corresponding to the plurality of to-be-detected images in the video file and the position information of the target object in the plurality of to-be-detected images to obtain a brightness convergence result of the video file. Wherein the reference brightness value is determined based on color information of a target object in the to-be-detected image, and the brightness convergence result is used for evaluating the brightness convergence condition of the video file. According to the method and the device, the smoothness of video brightness convergence is accurately evaluated.
Need to check novelty before this filing date? Find Prior Art

Description

Video brightness detection methods, video brightness detection systems and electronic devices Technical Field

[0001] This application relates to the field of video detection technology, and in particular to a video brightness detection method, a video brightness detection system, and an electronic device. Background Technology

[0002] With the development of data capture technology (such as mobile phones), the recording function of mobile phones has also developed rapidly, and more and more users like to use mobile phones to record videos. In order to ensure the recording effect, mobile phones are usually equipped with an automatic exposure function. This automatic exposure function can determine the corresponding basic exposure value based on different ambient brightness, so that the video brightness can be smoothly switched according to the ambient brightness to ensure that the video picture meets the user's needs.

[0003] Therefore, how to evaluate the smoothness of video brightness convergence in order to detect the video recording effect of the acquisition device is an urgent problem to be solved. Summary of the Invention

[0004] This application provides a video brightness detection method, a video brightness detection system, and an electronic device for evaluating the smoothness of video brightness convergence, in order to detect the video recording effect of the acquisition device.

[0005] To achieve the above objectives, the embodiments of this application adopt the following technical solutions:

[0006] Firstly, a method for detecting video brightness is provided, applied to an electronic device. In this method, the electronic device acquires a video file. The video file includes multiple images to be detected, each image containing a target object. The electronic device then calculates a reference brightness value for each image to be detected in the video file, and calculates the position information of the target object in each image. Subsequently, the electronic device analyzes the video file based on the reference brightness values ​​and the position information of the target objects in the multiple images to be detected, obtaining a brightness convergence result for the video file. The reference brightness value is determined based on the color information of the target object in the image to be detected, and the brightness convergence result is used to evaluate the brightness convergence of the video file.

[0007] In this application, considering that the position of the target object in the image to be detected changes—that is, when the electronic device moves—the brightness of the image to be detected in the video file will inevitably change. Therefore, the electronic device can determine whether the position of the target object in the image to be detected has changed based on the position information of the target object in multiple images to be detected. Then, based on whether the position of the target object in the image to be detected has changed and the corresponding reference brightness value of the image to be detected when the position changes, the video file is analyzed. In this way, the electronic device can analyze the brightness convergence result of the video file when the target's movement position changes, achieving accurate determination of the brightness convergence result. This means it can accurately evaluate the smoothness of the video brightness convergence, thereby determining the recording effect of the video file and detecting the recording effect of the video acquisition device. This provides a foundation for ensuring that the video recorded by the subsequent acquisition device meets user requirements.

[0008] In one possible implementation of the first aspect, after the electronic device acquires the video file, the method further includes: for each image to be detected in the video file, the electronic device performs target detection on the image to be detected to obtain a target detection result; wherein the target detection result is used to indicate whether the image to be detected includes a target object. Then, if the target detection result indicates that the image to be detected includes a target object, the electronic device extracts the color information of the target object from the image to be detected. Then, the electronic device can perform color gamut conversion on the color information of the target object to obtain a reference brightness value for the image to be detected.

[0009] In this embodiment, the electronic device calculates the baseline brightness value of the image to be detected only if the image contains the target object, and then analyzes the brightness convergence result of the video file. That is, if any image to be detected in the video file does not contain the target object, the electronic device does not need to analyze that video file. This reduces unnecessary resource waste, improves the utilization of computing resources, and provides a foundation for accurate evaluation of the video file.

[0010] The target object mentioned above includes a target color chart, which includes at least two grayscale color blocks.

[0011] In one possible implementation of the first aspect, the process by which the electronic device obtains the reference brightness value of the image to be detected may specifically include: the electronic device selecting any grayscale color patch as the target color patch from the target color chart, and extracting the color information of the target color patch from the image to be detected. Then, the electronic device can convert the color information of the target color patch from the RGB color gamut to the LAB color gamut to obtain the reference brightness value of the image to be detected.

[0012] In this application, since L represents brightness in the LAB color gamut, the electronic device converts the color information of the target color block from the RGB color gamut to the LAB color gamut. This not only enables the accurate determination of the reference brightness value, ensuring that the reference brightness value is not affected by other factors, but also improves the calculation efficiency of the reference brightness value.

[0013] In one possible implementation of the first aspect, the aforementioned video file is a video file acquired by an electronic device from a capture device. The video file is obtained by the capture device recording a target object with a fixed position under preset ambient lighting parameters. The video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, and / or a scene switching process from a low dynamic range scene to a high dynamic range scene.

[0014] In this application, since the video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, and / or a scene switching process from a low dynamic range scene to a high dynamic range scene, the electronic device can evaluate the brightness convergence of the video file under different dynamic scenes, thereby ensuring the comprehensiveness of the video analysis, detecting the recording effect of the acquisition device recording the video file, and providing a basis for the subsequent video recorded by the acquisition device to meet the user's needs.

[0015] In one possible implementation of the first aspect, if the video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, or a scene switching process from a low dynamic range scene to a high dynamic range scene, the video file also includes multiple images to be detected acquired by the acquisition device at a first position within a preset duration, and multiple images to be detected acquired by the acquisition device at a second position within a preset duration. The scene switching process from a high dynamic range scene to a low dynamic range scene refers to the movement of the acquisition device from the first position to the second position, and the scene switching process from a low dynamic range scene to a high dynamic range scene refers to the movement of the acquisition device from the second position to the first position.

[0016] In this application, the acquisition device pauses at either the first or second position to ensure that the brightness convergence of the video file is complete. This reduces the occurrence of situations where video recording has ended but brightness convergence is not yet complete, thereby improving the accuracy of the brightness convergence result determination. In other words, it can accurately assess the smoothness of video brightness convergence, thus determining the recording effect of the video file and detecting the recording effect of the acquisition device. This provides a foundation for ensuring that the video recorded by the acquisition device meets user requirements.

[0017] In one possible implementation of the first aspect, the first position is used to make the upper and lower edges of the initial image to be detected correspond to the upper and lower edges of the highlight light box, the highlight light box and the target object are arranged side by side, the direction indicated by the line connecting the first position and the second position is the movement direction of the acquisition device, and the movement direction is perpendicular to the straight line direction where the target object and the highlight light box are located; the right edge of the initial image to be detected corresponds to the right edge of the highlight light box, the initial image to be detected is the image to be detected with the earliest acquisition time in the video file, the initial image to be detected includes the target object and the highlight light box, the second position is used to make the terminated image to be detected include the target object but not the highlight light box, the terminated image to be detected is the image to be detected with the latest acquisition time in the video file.

[0018] In this application, since the initial image to be detected includes a bright lightbox and a target object, and the bright lightbox is used to simulate different dynamic range scenes, the initial image to be detected can correspond to a high dynamic range scene. Furthermore, since the final image to be detected includes the target object but does not include the bright lightbox, the final image to be detected can correspond to a low dynamic range scene. That is, the video file includes a scene transition process from a high dynamic range scene to a low dynamic range scene. This allows the electronic device to evaluate the brightness convergence of the video file during the scene transition process, thereby ensuring the comprehensiveness of the video analysis and detecting the recording effect of the video acquisition device, providing a foundation for ensuring that the video recorded by the subsequent acquisition device meets user requirements.

[0019] In one possible implementation of the first aspect, the process of the electronic device analyzing the video file may specifically include: the electronic device determining a start motion image and an end motion image from multiple images to be detected based on the position information of the target object in the multiple images to be detected. The start motion image is the image to be detected when the position of the target object changes on the image, and the end motion image is the image to be detected when the position of the target object stops changing on the image. The acquisition time of the start motion image is earlier than the acquisition time of the end motion image. Then, the electronic device can determine a set of motion images based on the start and end motion images. This set of motion images includes at least two images to be detected. Then, the electronic device can analyze the video file based on the reference brightness value of each image to be detected in the set of motion images to obtain the brightness convergence result of the video file.

[0020] In this application, an electronic device can determine the start and end motion images among multiple images to be detected based on the position information of the target object in the images to be detected, and determine a set of motion images based on the start and end motion images. This ensures that all images to be detected in the set of motion images may be images whose brightness changes; that is, if an image to be detected in a video file is not present in the set of motion images, it means that the reference brightness value of that image will not change. Therefore, the electronic device can analyze the video file based solely on the reference brightness value of each image to be detected in the set of motion images to obtain the brightness convergence result of the video file. This reduces the occurrence of using the reference brightness value of the image to be detected when the acquisition device is not moving as a factor in analyzing the video file, which not only reduces unnecessary resource waste and improves the utilization rate of computing resources, but also increases the computing speed of the electronic device.

[0021] The location information of the target object includes center coordinates, which are the coordinates of the center position of the target object in a first direction, where the first direction is the direction of movement of the acquisition device when recording the video file.

[0022] In one possible implementation of the first aspect, the process of the electronic device determining the start and end motion images may specifically include: the electronic device determining initial and final coordinates based on the center coordinates of the target object in multiple images to be detected. The initial coordinates characterize the coordinates corresponding to the center position of the target object when recording begins, and the final coordinates characterize the coordinates corresponding to the center position of the target object when recording stops. Then, the electronic device can determine the predicted displacement of the target object in the video file in a first direction based on the initial and final coordinates. The predicted displacement is the average displacement of the target object in the second adjacent images to be detected in the video file, which includes a third and a fourth image to be detected. Then, the electronic device can determine the actual displacement of the target object in the second adjacent images to be detected based on the center coordinates of the third and fourth images to be detected. Finally, the electronic device can determine the start and end motion images from the multiple images to be detected based on the predicted and actual displacements.

[0023] In this application, the start motion image and the end motion image are obtained by comparing the predicted displacement and the actual displacement, and the predicted displacement and the actual displacement are determined based on the center coordinates of the image to be detected. In other words, the electronic device can determine the start motion image and the end motion image in the video file based on the center coordinates of the target object in the image to be detected, thereby providing a basis for the subsequent accurate determination of the motion image set.

[0024] In one possible implementation of the first aspect, the process of the electronic device determining the initial coordinates and the final coordinates may specifically include: the electronic device acquiring a preset number of initial images from the video file with the earliest acquisition time, and acquiring a preset number of final images with the latest acquisition time. Then, the electronic device can obtain the initial coordinates based on the center coordinates of the target object in the preset number of initial images, combined with statistical methods; and the electronic device can obtain the final coordinates based on the center coordinates of the target object in the preset number of final images, combined with statistical methods.

[0025] In this application, to minimize the impact of objective factors (such as slight movements of the motion device) on the accuracy of determining the initial and final coordinates, the electronic device can employ statistical methods to calculate the initial and final coordinates. This allows for precise determination of the initial and final coordinates, providing a foundation for subsequently determining the start and end motion images.

[0026] In one possible implementation of the first aspect, the process of the electronic device determining the start and end motion images may specifically include: the electronic device calculating the ratio between the actual displacement and the predicted displacement corresponding to the third motion image according to the chronological order of the acquisition times of multiple images to be detected in the video file. Then, if the ratio between the actual displacement and the predicted displacement is greater than or equal to a preset ratio, the electronic device designates the third motion image to which the actual displacement belongs for the first occurrence of a ratio greater than or equal to the preset ratio as the start motion image. Furthermore, the electronic device designates the third motion image to which the actual displacement belongs for the last occurrence of a ratio greater than or equal to the preset ratio as the end motion image.

[0027] In this application, the starting and ending motion images are determined by sequentially calculating the ratio between the actual displacement and the predicted displacement corresponding to the third image to be detected. This allows for accurate determination of the starting and ending motion images, providing a foundation for the subsequent accurate determination of the motion image set.

[0028] The aforementioned set of moving images may include a start moving image, an end moving image, all images to be detected between the start and end moving images, and all images to be detected within a first preset time period after the end moving image.

[0029] In this application, to reduce the occurrence of situations where the motion stops before the brightness of the video file changes, the motion image set may further include all images to be detected within a first preset time period after the end of the motion image. This maximizes the accuracy of video file analysis.

[0030] In one possible implementation of the first aspect, the process of the electronic device analyzing the video file based on the reference brightness value of each image to be detected in the set of moving images may specifically include: the electronic device determining a maximum brightness value and a minimum brightness value from the reference brightness values ​​of at least two images to be detected. Then, the electronic device can obtain the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value; wherein the initial brightness value characterizes the reference brightness value of the image to be detected when the video file starts recording, the final brightness value characterizes the reference brightness value of the image to be detected when the video file ends recording, and the brightness convergence result includes the brightness convergence direction and / or the transition value of brightness convergence.

[0031] In this application, the electronic device can analyze a video file by comparing the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value, based on the direction of brightness convergence and / or the degree of brightness convergence. This allows for precise analysis of the direction of brightness convergence and / or the degree of brightness convergence, thereby accurately evaluating the smoothness of video brightness convergence, determining the recording quality of the video file, and detecting the recording quality of the video capture device. This provides a foundation for ensuring that the video recorded by the subsequent capture device meets user requirements.

[0032] In one possible implementation of the first aspect, the method further includes: the electronic device acquiring a preset number of initial images with the earliest acquisition time from the video file, and acquiring a preset number of final images with the latest acquisition time. Then, the electronic device can obtain an initial brightness value based on the reference brightness values ​​corresponding to the preset number of initial images, combined with statistical methods. Then, the electronic device can obtain a final brightness value based on the reference brightness values ​​corresponding to the preset number of final images, combined with statistical methods.

[0033] In this application, to minimize the impact of objective factors (such as slight shaking of the light source or the presence of other light sources in the evaluation scene) on the accuracy of video file analysis, the electronic device employs statistical methods to calculate the initial and final brightness values. This allows for the accurate determination of the initial and final brightness values, providing a foundation for subsequent precise analysis of the video file.

[0034] In one possible implementation of the first aspect, the process of obtaining the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value may specifically include: if the final brightness value is greater than the initial brightness value, and the difference between the maximum brightness value and the final brightness value is greater than a first preset difference, the brightness convergence result of the video file includes the brightness convergence transition of the video file, and the transition value of brightness convergence is the difference between the maximum brightness value and the final brightness value.

[0035] In this application, if the final brightness value is greater than the initial brightness value, it indicates that the standard brightness values ​​of the video file increase from small to large, meaning the video file is switching from a high dynamic range scene to a low dynamic range scene. Therefore, the electronic device can determine whether the difference between the maximum brightness value and the final brightness value is greater than a first preset difference. If the difference is greater than the first preset difference, it indicates that the brightness convergence of the video file has undergone excessive changes. Therefore, the brightness convergence result of the video file indicating excessive convergence can be output. This allows for accurate assessment of excessive brightness convergence, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0036] If the difference between the initial brightness value and the minimum brightness value is greater than the first preset difference, the brightness convergence result of the video file, including the brightness convergence direction, is incorrect.

[0037] In this application, if the difference between the initial brightness value and the minimum brightness value is greater than a first preset difference, it indicates that the brightness convergence of the video file has undergone excessive changes. Therefore, the brightness convergence result of the video file indicating excessive brightness convergence can be output. In this way, the excessive brightness convergence can be accurately assessed, improving the accuracy of video file analysis and providing a foundation for better subsequent video file recording.

[0038] In one possible implementation of the first aspect, the process of obtaining the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value may further include: if the difference between the maximum brightness value and the final brightness value is less than or equal to a first preset difference, the brightness convergence result of the video file includes that the brightness convergence of the video file is not excessive.

[0039] In this application, if the difference between the maximum brightness value and the termination brightness value is less than or equal to the first preset difference, it indicates that the brightness convergence of the video file has not changed excessively. The electronic device can determine that the brightness convergence of the video file is not excessive, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0040] If the difference between the initial brightness value and the minimum brightness value is less than or equal to the first preset difference, the brightness convergence result of the video file, including the brightness convergence direction, is correct.

[0041] In this application, if the difference between the maximum brightness value and the termination brightness value is less than or equal to the first preset difference, it indicates that the brightness convergence of the video file has not changed excessively. The electronic device can determine that the brightness convergence of the video file is not excessive, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0042] In one possible implementation of the first aspect, the process of obtaining the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value may further include: if the difference between the final brightness value and the minimum brightness value is greater than a first preset difference when the final brightness value is less than the initial brightness value, the brightness convergence result of the video file includes the brightness convergence transition of the video file, and the transition value of brightness convergence is the difference between the final brightness value and the minimum brightness value.

[0043] In this application, if the termination brightness value is less than the initial brightness value, it indicates that the standard brightness values ​​of the video file decrease from high to low, meaning the video file is switching from a low dynamic range scene to a high dynamic range scene. Therefore, if the difference between the termination brightness value and the minimum brightness value is greater than a first preset difference, it indicates that the brightness convergence of the video file has excessive variation. The electronic device can determine that the brightness convergence of the video file is excessive, and the excessive value of brightness convergence is the difference between the maximum brightness value and the termination brightness value. In this way, accurate assessment of the excessive brightness convergence can be achieved, improving the accuracy of video file analysis and providing a foundation for better subsequent video file recording.

[0044] If the difference between the maximum brightness value and the initial brightness value is greater than the first preset difference, the brightness convergence result of the video file, including the brightness convergence direction, is incorrect.

[0045] In this application, if the difference between the maximum brightness value and the initial brightness value is less than or equal to a first preset difference, it indicates that there is no error in the brightness convergence direction, and the electronic device can determine that the brightness convergence direction of the video file is incorrect. This allows for accurate evaluation of the brightness convergence direction, improves the accuracy of video file analysis, and provides a foundation for better subsequent video recording.

[0046] In one possible implementation of the first aspect, the process of obtaining the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value may further include: if the difference between the final brightness value and the minimum brightness value is less than or equal to a first preset difference, the brightness convergence result of the video file includes that the brightness convergence of the video file is not excessive.

[0047] In this application, if the difference between the termination brightness value and the minimum brightness value is less than or equal to the first preset difference, it indicates that there is no error in the brightness convergence direction. The electronic device can determine that the brightness convergence direction of the video file is correct, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0048] If the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, the brightness convergence result of the video file, including the brightness convergence direction, is correct.

[0049] In this application, if the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, it indicates that there is no error in the brightness convergence direction. The electronic device can determine that the brightness convergence direction of the video file is correct, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0050] In one possible implementation of the first aspect, the process by which the electronic device analyzes the video file based on the reference brightness value of each image to be detected in the motion image set can specifically include: the electronic device determining the brightness difference between first adjacent images to be detected based on adjacent first and second images to be detected in the motion image set; wherein, adjacent images to be detected include both the first and second images to be detected. Then, the electronic device can analyze the video file based on the brightness difference between the first adjacent images to be detected to obtain a brightness convergence result for the video file.

[0051] In one possible implementation of the first aspect, the process by which the electronic device analyzes a video file based on the brightness difference between first adjacent images to be detected may specifically include: the electronic device determining the number of peaks where the brightness difference between the first adjacent images to be detected is greater than a second preset difference. If the number of peaks is less than the preset number of peaks, the brightness convergence result of the video file is obtained, meaning the brightness convergence of the video file exhibits smoothness.

[0052] In this application, if the number of peaks is less than the preset number of peaks, it means that there are fewer cases of large brightness changes in the video file. The electronic device can output a brightness convergence result with smoothness, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0053] When the number of peaks is greater than or equal to the preset number of peaks, the brightness convergence result of the video file is not smooth.

[0054] In this application, if the number of peaks exceeds the preset number of peaks, it indicates that there are many instances of significant brightness changes in the video file. The electronic device can then output a brightness convergence result that lacks smoothness. This allows for accurate assessment of the smoothness of brightness convergence, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0055] In one possible implementation of the first aspect, the process of the electronic device analyzing the video file based on the brightness difference between the first adjacent images to be detected may further include: the electronic device determining a target image in the set of moving images where brightness convergence has ended, based on the brightness difference between the first adjacent images to be detected. If the time difference between the target image to be detected and the ending moving image is greater than a first preset time, the brightness convergence result of the video file is considered to be slow.

[0056] In this application, if the time difference between the target image to be detected and the image at the end of motion is greater than a first preset time, it indicates that the brightness convergence time of the video file is relatively long, that is, the brightness convergence speed is slow. The electronic device can output a brightness convergence result with a slow brightness convergence speed. In this way, accurate evaluation of the brightness convergence speed can be achieved, improving the accuracy of video file analysis and providing a foundation for better subsequent video file recording.

[0057] When the time difference between the target image to be detected and the image at the end of motion is less than or equal to the first preset time, the brightness convergence result of the video file is obtained, which includes a fast brightness convergence speed of the video file.

[0058] In this application, if the time difference between the target image to be detected and the final motion image is less than or equal to the first preset time, it indicates that the brightness convergence time of the video file is short, that is, the brightness convergence speed is fast. The electronic device can output a brightness convergence result with a fast brightness convergence speed, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0059] Secondly, this application provides a video brightness detection system, which includes an electronic device, a target object, a data acquisition device, and at least one light source device. A communication connection is established between the data acquisition device and the electronic device. At least one light source device is positioned relative to the target object, and is used to simulate the ambient brightness of the target object. The data acquisition device is used to record data from a fixed-position target object under preset ambient lighting parameters, thereby generating a video file. The video file includes multiple images to be detected, each image including the target object. The target object is used to enable the electronic device to determine the reference brightness value of each image to be detected in the video file. The electronic device receives the video file generated by the data acquisition device and calculates the position information of the target object in the multiple images to be detected. The electronic device also analyzes the video file based on the position information of the target object in the multiple images to be detected and the reference brightness values ​​of the multiple images to obtain a brightness convergence result for the video file. The brightness convergence result is used to evaluate the brightness convergence of the video file.

[0060] The video files include scene switching processes from high dynamic range (HDR) scenes to low dynamic range (LVR) scenes, and / or scene switching processes from low dynamic range (LVR) scenes to HDR scenes.

[0061] In one possible implementation of the second aspect, where the video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, or a scene switching process from a low dynamic range scene to a high dynamic range scene, the video file also includes multiple images to be detected acquired by the acquisition device at a first position within a preset duration, and multiple images to be detected acquired by the acquisition device at a second position within a preset duration. The scene switching process from a high dynamic range scene to a low dynamic range scene refers to the movement of the acquisition device from the first position to the second position, and the scene switching process from a low dynamic range scene to a high dynamic range scene refers to the movement of the acquisition device from the second position to the first position.

[0062] In one possible implementation of the second aspect, the video brightness detection system further includes a highlight lightbox, which is positioned side-by-side with the target object. The line connecting the first and second positions indicates the direction of movement of the acquisition device, which is perpendicular to the straight line connecting the target object and the highlight lightbox. The first position is used to align the upper and lower edges of the initial image to be detected with the upper and lower edges of the highlight lightbox, and the right edge of the initial image to be detected with the right edge of the highlight lightbox. The initial image to be detected is the image captured earlier in the video file, and it includes both the target object and the highlight lightbox. The second position is used to ensure that the final image to be detected includes the target object but does not include the highlight lightbox. The final image to be detected is the image captured later in the video file.

[0063] In one possible implementation of the second aspect, the acquisition device is used to record a video file when a video recording operation is detected. During the video file recording process, if the acquisition device is located at a first position or a second position, the acquisition device stops moving at the first or second position. If the waiting time at the first position reaches a preset time, the acquisition device moves to the second position. If the waiting time at the second position reaches the preset time, the acquisition device moves to the first position.

[0064] In one possible implementation of the second aspect, the video brightness detection system further includes a motion device for guiding the acquisition device to move in the motion direction.

[0065] In one possible implementation of the second aspect, the video brightness detection system further includes a background plate that enables the electronic device to accurately calculate a reference brightness value, thereby improving the accuracy of the reference brightness value determination.

[0066] Thirdly, this application provides an electronic device, the electronic device including one or more processors and one or more memories; the one or more processors are coupled to the one or more memories; the one or more memories are used to store computer program code, the computer program code including computer instructions, which, when the one or more processors execute the computer instructions, cause the electronic device to perform the method described above.

[0067] Fourthly, this application provides a computer-readable storage medium including computer instructions that, when executed on an electronic device, cause the electronic device to perform the method described above.

[0068] Fifthly, this application provides a computer program product that, when run on an electronic device, causes the electronic device to perform the method described above.

[0069] In a sixth aspect, a chip is provided, comprising: an input interface, an output interface, a processor, and a memory, wherein the input interface, the output interface, the processor, and the memory are connected via an internal connection path, and the processor is used to execute code in the memory, wherein when the code is executed, the processor is used to execute the method described above.

[0070] The beneficial effects that the video brightness detection system described in the second aspect, the electronic device described in the third aspect, the computer-readable storage medium described in the fourth aspect, the computer program product described in the fifth aspect, and the chip described in the sixth aspect can achieve can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, and will not be repeated here. Attached Figure Description

[0071] Figure 1 is a hardware structure diagram of a first electronic device provided in an embodiment of this application;

[0072] Figure 2 is a hardware structure diagram of a second electronic device provided in an embodiment of this application;

[0073] Figure 3 is a schematic diagram showing the front and rear cameras of a mobile phone according to an embodiment of this application;

[0074] Figure 4 is a schematic diagram of a video brightness detection system provided in an embodiment of this application;

[0075] Figure 5 is a schematic diagram of a mobile phone recording video file according to an embodiment of this application;

[0076] Figure 6 is a schematic diagram of an image to be detected included in a video file according to an embodiment of this application;

[0077] Figure 7 is a flowchart of a method for generating a video file according to an embodiment of this application;

[0078] Figure 8 is a flowchart of a video brightness detection method provided in an embodiment of this application;

[0079] Figure 9 is a schematic diagram of a target object detection method provided in an embodiment of this application;

[0080] Figure 10 is a schematic diagram of a 24-color card display provided in an embodiment of this application;

[0081] Figure 11 is a flowchart of a method for determining the start and end motion images according to an embodiment of this application;

[0082] Figure 12 is a flowchart of a method for obtaining brightness convergence results, including brightness convergence direction and / or brightness convergence transition value, according to an embodiment of this application.

[0083] Figure 13 is a schematic diagram of a display brightness convergence curve provided in an embodiment of this application;

[0084] Figure 14 is a schematic diagram of a display brightness convergence curve provided in an embodiment of this application;

[0085] Figure 15 is a schematic diagram of the change curve of display brightness convergence direction error provided in an embodiment of this application;

[0086] Figure 16 is a flowchart of a method for obtaining brightness convergence results, including the smoothness of brightness convergence and / or the brightness convergence speed, according to an embodiment of this application.

[0087] Figure 17 is a schematic diagram of a display brightness convergence curve with smoothness provided in an embodiment of this application;

[0088] Figure 18 is a schematic diagram of a display brightness convergence curve that does not have smoothness, provided in an embodiment of this application. Detailed Implementation

[0089] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also include expressions such as "one or more," unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, "at least one" and "one or more" refer to one or more (including two). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0090] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.

[0091] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.

[0092] In some embodiments, in response to a user's video recording operation, the acquisition device can perform a recording operation to generate a video file. It is understood that during the recording operation, i.e., when the acquisition device records video, the video brightness may change with changes in ambient brightness. In other words, if the ambient brightness changes, the video brightness will also change accordingly.

[0093] However, to ensure smooth switching of video brightness, that is, to ensure the smoothness of video brightness convergence, the acquisition device is usually equipped with an automatic exposure function. This automatic exposure (AE) function automatically adjusts the brightness of the video image to ensure the quality of the recorded video. Subsequently, if this automatic exposure function is enabled, the acquisition device can determine the corresponding base exposure value based on different ambient brightness levels, and adjust the video brightness accordingly to ensure that the video brightness meets the user's requirements. In other words, to ensure that the video recorded by the acquisition device meets the user's needs, how to evaluate the smoothness of video brightness convergence, and thus test the video recording effect of the acquisition device, is a problem that urgently needs to be solved.

[0094] Therefore, in order to evaluate the smoothness of video brightness convergence and detect the video recording effect of the acquisition device, this application provides a video brightness detection method. In this method, an electronic device acquires a video file. The video file includes multiple images to be detected, each image including a target object. Then, the electronic device analyzes the video file based on the reference brightness values ​​corresponding to the multiple images to be detected and the position information of the target object in the multiple images to be detected, obtaining the brightness convergence result of the video file. The reference brightness value is determined based on the color information of the target object in the image to be detected, and the brightness convergence result is used to evaluate the brightness convergence of the video file.

[0095] In this embodiment, considering that the position of the target object in the image to be detected changes—that is, when the electronic device moves—the brightness of the image to be detected in the video file will inevitably change. Therefore, the electronic device can determine whether the position of the target object in the image to be detected has changed based on the position information of the target object in multiple images to be detected. Then, based on whether the position of the target object in the image to be detected has changed and the corresponding reference brightness value of the image to be detected when the position changes, the video file is analyzed. In this way, the electronic device can analyze the brightness convergence result of the video file when the target's movement position changes, achieving accurate determination of the brightness convergence result. This means it can accurately evaluate the smoothness of the video brightness convergence, thereby determining the recording effect of the video file and detecting the recording effect of the video acquisition device. This provides a foundation for ensuring that the video recorded by the subsequent acquisition device meets user requirements.

[0096] The video files acquired by the aforementioned electronic device can be captured and sent by the acquisition device, or they can be directly acquired by the electronic device integrated into the acquisition device; there is no specific limitation. The acquisition device includes a camera.

[0097] It should be noted that the first electronic device (or simply electronic device) in this application embodiment can be a tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), or other device capable of analyzing video files. This application embodiment does not impose any special restrictions on the specific form of the first electronic device.

[0098] Figure 1 is a schematic diagram of the hardware structure of the first electronic device 100 provided in the embodiment of this application. As shown in Figure 1, the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor 180, a button 190, a motor 191, an indicator 192, a camera 193, and a display screen 194, etc.

[0099] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0100] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0101] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include a USB interface 130, etc. The USB interface 130 is an interface conforming to the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used for data transfer between the first electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback.

[0102] In one implementation, the USB interface 130 can also be used to connect other electronic devices, such as a second electronic device 200. Specifically, the first electronic device 100 can receive video files sent by the second electronic device 200 through the USB interface 130, so that the first electronic device 100 can analyze the video files and evaluate the smoothness of video brightness convergence.

[0103] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the first electronic device 100. In other embodiments of this application, the first electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0104] In some embodiments, the first electronic device 100 may use the processor 110 to perform the video brightness detection method provided in this application.

[0105] The wireless communication function of the first electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.

[0106] The first electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0107] Display screen 194 is used to display images, videos, etc.

[0108] The first electronic device 100 can perform shooting functions through an ISP, camera 193, video codec, GPU, display screen 194, and application processor.

[0109] The first electronic device 100 can implement audio functions, such as music playback and recording, through an audio module 170 and an application processor.

[0110] Button 190 may include a power button, volume buttons, etc. Button 190 may be a mechanical button or a touch button. The first electronic device 100 may receive button input and generate key signal inputs related to user settings and function control of the first electronic device. Motor 191 may generate vibration alerts. Motor 191 may be used for incoming call vibration alerts or for touch vibration feedback. Indicator 192 may be an indicator light, which may be used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.

[0111] It should be noted that the second electronic device (or acquisition device) in this application embodiment can be a mobile phone, tablet computer, smartwatch, desktop, laptop, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) / virtual reality (VR) device, etc., which includes a camera. This application embodiment does not impose any special restrictions on the specific form of the second electronic device.

[0112] Figure 2 is a schematic diagram of the hardware structure of the second electronic device 200 provided in the embodiment of this application. As shown in Figure 2, the second electronic device 200 may include a processor 210, an external memory interface 220, an internal memory 221, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, an antenna 1, an antenna 2, a mobile communication module 250, a wireless communication module 260, an audio module 270, a sensor 280, a button 290, a motor 291, an indicator 292, a camera 293, and a display screen 294, etc.

[0113] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the second electronic device 200. In other embodiments of this application, the second electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0114] Processor 210 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.

[0115] In some embodiments, the processor 210 may include one or more interfaces. The interfaces may include a USB interface 230, etc. The USB interface 230 is an interface conforming to the USB standard specification, specifically a Mini USB interface, a Micro USB interface, a USB Type-C interface, etc. The USB interface 230 can be used to connect a charger to charge the second electronic device 200, and can also be used for data transfer between the second electronic device 200 and peripheral devices. It can also be used to connect headphones for audio playback.

[0116] In one implementation, the USB interface 230 can also be used to connect other electronic devices, such as the first electronic device 100. Specifically, the second electronic device 200 can send a recorded video file to the first electronic device 100 through the USB interface 230, so that the first electronic device 100 can analyze the video file and evaluate the smoothness of the video brightness convergence.

[0117] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the second electronic device 200. In other embodiments of this application, the second electronic device 200 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0118] The wireless communication function of the second electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.

[0119] The second electronic device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0120] The display screen (or screen) 294 is used to display images, videos, etc. In some embodiments, the second electronic device 200 may include one or N display screens 294, where N is a positive integer greater than 1. In embodiments of this application, the display screen 294 can be used to display a preview interface and a shooting interface, etc., in video recording mode.

[0121] The second electronic device 200 can perform video recording functions through an ISP, camera 293, video codec, GPU, display screen 294, and application processor.

[0122] The ISP (Image Signal Processor) is used to process data fed back from the camera 293. For example, when an electronic device takes a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element (or image sensor). The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293. In some embodiments, the camera 293 includes a shutter. The shutter is a device in the camera used to control the duration of light exposure to the photosensitive element.

[0123] Camera 293 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the second electronic device 200 may include one or N cameras 293, where N is a positive integer greater than 1.

[0124] In some embodiments, camera 293 may include a lens, which is an optical component for generating images.

[0125] For example, the aforementioned N cameras 293 may include one or more front-facing cameras and one or more rear-facing cameras. For instance, please refer to Figure 3, taking a mobile phone as an example where the second electronic device 200 is described above. The interface in Figure 3(a) shows one front-facing camera, such as front-facing camera 20. The interface in Figure 3(b) shows three rear-facing cameras, such as rear-facing camera 21, rear-facing camera 22, and rear-facing camera 23. Of course, the number of cameras in the aforementioned mobile phone includes, but is not limited to, the number described in the above embodiments.

[0126] Among them, the above N cameras 293 may include one or more of the following cameras: main camera, telephoto camera, wide-angle camera, ultra-wide-angle camera, macro camera, fisheye camera, infrared camera, depth camera and monochrome camera.

[0127] The second electronic device 200 can implement audio functions, such as music playback and recording, through the audio module 270 and application processor.

[0128] Figure 4 is a schematic diagram of the video brightness detection system according to an embodiment of this application. As shown in Figure 4, the video brightness detection system may include a first electronic device 100, a second electronic device 200, a motion device 410, a background board 420, a target color chart (or target object) 430, a high-brightness light box 440, and at least one lighting device (e.g., a first lighting device 450A and a second lighting device 450B). The second electronic device 200 and the first electronic device 100 are connected by a communication link.

[0129] The aforementioned at least one lighting device is positioned relative to the target color chart 430. The at least one lighting device is used to simulate the ambient brightness of the target object, so that the first electronic device 100 can evaluate the brightness convergence of the video file under different ambient brightness conditions, thereby improving the comprehensiveness of the video evaluation.

[0130] The first electronic device 100 is used to receive video files sent by the second electronic device 200 for analysis. The second electronic device 200 is used to record video files.

[0131] The aforementioned motion device (i.e., guide rail) 410 is used to guide the second electronic device 200 to move in a direction indicated by the line connecting the first position and the second position. The motion device 410 is also used to control the second electronic device 200 to move horizontally relative to the target color card.

[0132] The motion device 410 is also used to simulate the user's camera movement, so that the second electronic device 200 can move horizontally relative to the target color chart 430, that is, to move the second electronic device 200 parallel to the target color chart 430. The motion device 410 can also be preset with different movement speeds to simulate different brightness changes in different environments.

[0133] Background panel 420 is a uniform grayscale background panel, which is used to enable the first electronic device to accurately calculate the standard brightness value (or reference brightness value) to improve the accuracy of the standard brightness value determination.

[0134] The target color chart 430 is used to enable the first electronic device 100 to determine the standard brightness value of each image to be detected in the video file.

[0135] The highlight light box 440 is set side by side with the target object 430, and the straight line between the target object 430 and the highlight light box 440 is perpendicular to the direction of movement. The highlight light box 440 is used to simulate different dynamic ranges, so that the video file can include switching from a high dynamic range scene (or high dynamic range scene) to a low dynamic range scene (or low dynamic range scene), and / or switching from a low dynamic range scene to a high dynamic range scene.

[0136] The first electronic device 100 is a computer, and the second electronic device 200 is a mobile phone. The first electronic device 100 can connect to the second electronic device 200 via file transfer. This file transfer method can include wired and wireless transfer. For example, the wired transfer method can be via a USB interface. The wireless transfer method can be via Bluetooth, Wi-Fi, or other similar methods.

[0137] In this embodiment, the second electronic device 200 can send video files to the first electronic device 100 via wired transmission. Specifically, the second electronic device 200 can send video files to the first electronic device 100 via a USB connection. In response to a video recording operation, the second electronic device 200 can capture video footage using a camera. Then, in response to a stop recording operation, the second electronic device 200 can generate a video file based on the captured video footage. The second electronic device 200 can then send this video file to the first electronic device 100 for analysis.

[0138] It is understandable that the aforementioned video recording operation can be a user's click on the recording control in the camera application, that is, an operation triggered by the recording control when the camera application is open, or an operation controlled by Android Debug Bridge (ADB) instructions to start video recording on the second electronic device 200. This ADB instruction is used to enable communication between the second electronic device 200 and the first electronic device 100. Similarly, the aforementioned stop recording operation can be a user's click on the stop recording control in the camera application, that is, an operation triggered by the stop recording control when the camera application is open, or an operation controlled by Android Debug Bridge (ADB) instructions to stop video recording on the second electronic device 200.

[0139] For example, taking a video recording operation as a user's click on the recording control in the camera application, and a stop recording operation as a user's click on the stop recording control in the camera application, as shown in Figure 5, the mobile phone displays the first recording interface shown in Figure 5(a). This first recording interface includes a "record" control 510 and a start image A. Then, when the user detects that the "record" control 510 in the first recording interface has been clicked, the mobile phone can display the second recording interface shown in Figure 5(b). This second recording interface includes a "stop recording" control 520. Then, when the second recording interface displays an end image B, if the user clicks the "stop recording" control 520 in the second recording interface, the mobile phone can generate a corresponding video file. This video file is composed of all images captured by the mobile phone from the start image A to the end image B.

[0140] As can be seen, the mobile phone shown in Figure 5 is horizontal and uses a 16:9 recording ratio for video recording, meaning the aforementioned second electronic device 200 is placed horizontally on the motion device 410. Furthermore, the starting image A captured by the second electronic device includes the target color chart 430 and the highlight light box 440, while the ending image B captured by the second electronic device includes the target color chart 430 but does not include the highlight light box 440.

[0141] In some embodiments, before the second electronic device 200 records a video file, the tester can place the second electronic device 200 horizontally on the operating device 410. Then, based on the preview screen including the target color chart 430, the tester can adjust the placement of the second electronic device 200 so that the right edge of the preview screen is aligned with the right edge of the highlight light box 440, and the top and bottom edges of the preview screen are aligned with the top and bottom edges of the highlight light box 440. The preview screen is the image displayed on the second electronic device 200. For example, the preview screen can be the start image A included in the first recording interface shown in Figure 5(a). That is, the start image of the video file is preset by the tester. Then, the tester can record the adjusted position of the second electronic device 200 as the first position in the first electronic device 100. That is, the first position is the position of the second electronic device 200 when it captures the start image (i.e., starts recording).

[0142] Simultaneously, the tester can also determine the end image of the video file by adjusting the placement of the second electronic device 200. That is, the end image of the video file is also pre-set by the tester. Specifically, the tester can adjust the placement of the second electronic device 200 so that the highlight light box 440 completely disappears from the preview screen, while the preview screen still includes the target color chart 430. For example, this preview screen can be the end image B included in the second recording interface shown in Figure 5(b). Afterwards, the first electronic device 100 can record the adjusted position of the second electronic device 200 as the second position. That is, this second position is the position of the second electronic device 200 when it captures the end image (i.e., terminates recording).

[0143] It is understood that the target color chart 430 remains visible in the video frame throughout the recording process of the second electronic device 200. Thus, the change in reference exposure can be measured using this target color chart 430. This reference exposure refers to the optimal brightness (or optimal image quality) of the video frame achieved by adjusting exposure parameters during recording, ensuring the integrity of details in the image under test, preventing both overexposure and underexposure. For example, these exposure parameters may include aperture, shutter speed, and ISO.

[0144] In other embodiments, when the second electronic device 200 records a video file, the environmental parameters (or ambient lighting parameters) corresponding to the recording environment can be preset according to the actual situation, and these environmental parameters will not change during the video recording process; that is, the environmental parameters remain constant during the video recording process. In other words, the video file is obtained by the second electronic device 200 recording a target object with a fixed position under preset ambient lighting parameters. These environmental parameters may include at least one of the following: the light source type of the light source device, the light source brightness range corresponding to the light source device, the color temperature corresponding to the light source device, and the light box brightness corresponding to the high-brightness light box 440.

[0145] For example, the light source type mentioned above can be a light-emitting diode (LED) or a pulse width modulation (PWM) dimming light, etc., without specific limitations. The brightness range of the light source can be 20–1000 Lux, 18–900 Lux, or 22–1100 Lux, etc., as long as it falls within the brightness range of 20–1000 Lux ± 10%, without specific limitations. The color temperature mentioned above can be 6500K, 6700K, or 6300K, etc., as long as it falls within the color temperature range of 6500K ± 200, without specific limitations. The brightness of the light box mentioned above can be 2.3 × 10⁻⁶. 4 Lux can also be 2.1 × 10 4 Lux, etc., as long as it is less than or equal to 2.3 × 10 4 The brightness of Lux light boxes is not limited to any particular level.

[0146] Furthermore, when the second electronic device 200 records a video file, the movement speed of the motion device 410 controlling the movement of the second electronic device 200 is controllable. That is, the tester can pre-set the movement speed of the motion device 410 on the first electronic device 100. Then, in response to the video recording operation of the second electronic device 200, the motion device 410 can control the movement of the second electronic device 200 according to this movement speed until the second electronic device 200 finishes video recording, at which point the motion device 410 can stop working. It can be understood that this movement speed can be pre-set by the tester according to the actual situation. For example, the movement speed can be fixed, meaning the second electronic device 200 moves at a constant speed. The movement speed can also be changed according to the actual situation, meaning the second electronic device 200 moves at a non-uniform speed. For example, the movement speed can be 0.5 m / s, or 2 m / s, etc., as long as it is within the preset speed range (e.g., 0.5~2 m / s ± 0.01 m / s), and there is no specific limitation.

[0147] In some cases, the aforementioned video file may be a video recorded during the process of the second electronic device 200 moving from a first position to a second position. That is, the video file is used to characterize the scene change process of the second electronic device switching from a high-dynamic scene to a low-dynamic scene. For example, as shown in Figure 6, the video file may include a start image A, an intermediate image C, and an end image B. The start image A is the first image captured when the second electronic device 200 detects a video recording operation, that is, the image captured when the second electronic device 200 is not moving. The intermediate image C is the image captured during the movement of the second electronic device 200. The end image B is the last image captured when the second electronic device 200 detects a stop recording operation, that is, the image captured when the second electronic device 200 stops moving. It can be seen that the start image A is captured earlier than the intermediate image C, and the intermediate image C is captured earlier than the end image B; that is, the frame number of the start image A is less than the frame number of the intermediate image C, and the frame number of the intermediate image C is less than the frame number of the end image B. It is understandable that the size of the image frame number is related to the image acquisition time; the earlier the image is acquired, the smaller the image frame number.

[0148] In other cases, the aforementioned video file can also be a video recorded during the process of the second electronic device 200 moving from the first position to the second position and from the second position back to the first position. That is, this video file is used to characterize the scene change process of the second electronic device switching from a high dynamic range scene to a low dynamic range scene and from a low dynamic range scene back to a high dynamic range scene. Therefore, the first electronic device 100 can analyze the smoothness of video brightness convergence from different directions (i.e., high-low dynamic range switching scenes and low-high dynamic range switching scenes), ensuring the comprehensiveness of video analysis and providing a foundation for subsequent video recording by users using the second electronic device.

[0149] Furthermore, considering the potential delay in video brightness convergence, it's possible that video recording may have ended before brightness convergence is complete. Therefore, to minimize this issue—meaning the brightness convergence of the video file cannot be accurately determined—the motion device 410 can pause (i.e., wait) at both the first and second positions. Only after a preset waiting time does the motion device 410 control the second electronic device 200 to move. This preset time can be pre-set based on actual conditions. For example, it could be 10 seconds, 8 seconds, etc., without specific limitations.

[0150] In one implementation, after detecting the video recording operation, the first electronic device 100 may initially refrain from controlling the motion device 410 to move and record a first waiting time. Only when the first waiting time reaches a preset time will the first electronic device 100 control the motion device 410 to move at a preset speed until the second electronic device 200 mounted on the motion device 410 moves to the second position. Upon reaching the second position, the motion device 410 stops moving, meaning the second electronic device 200 stops moving, and a second waiting time is recorded. Then, when the second waiting time reaches a preset time, the first electronic device 100 controls the motion device 410 to move at a preset speed until the second electronic device 200 moves back to the first position. Upon reaching the first position, the motion device 410 stops moving, meaning the second electronic device 200 stops moving, and a third waiting time is recorded. Finally, when the third waiting time reaches a preset time, the second electronic device 200 generates a video file. This ensures the accuracy of the brightness convergence judgment and provides a foundation for accurately determining the brightness convergence result.

[0151] After generating the aforementioned video file, the second electronic device 200 can send the video file to the first electronic device 100. Upon receiving the video file from the second electronic device 200, the first electronic device 100 can categorize and rename the video file. Categorization refers to grouping video files belonging to the same scene transition process into one category. For example, the electronic device can group video files transitioning from a high-dynamic-range scene to a low-dynamic-range scene into one category. Similarly, it can group video files transitioning from a low-dynamic-range scene to a high-dynamic-range scene into another category. This allows for targeted evaluation of video files, improving the efficiency of video file evaluation.

[0152] Furthermore, the first electronic device 100 can analyze the video file to obtain the brightness convergence result of the video file. This brightness convergence result is used to evaluate the brightness convergence of the video file.

[0153] Alternatively, after generating the aforementioned video file, the second electronic device 200 may not send the video file to the first electronic device 100. In other words, the second electronic device 200 may directly analyze the video file to obtain the brightness convergence result of the video file.

[0154] In one implementation, the video brightness detection system described above may not include a high-brightness lightbox. That is, the first electronic device 100 can adjust the brightness of the light source device to vary the ambient brightness of the environment in which the second electronic device 200 is located. Therefore, the first electronic device 100 can be used to evaluate the brightness convergence of the video file under different ambient brightness variations.

[0155] In another implementation, the video brightness detection system described above can also replace the highlight lightbox with the user's face. In this way, the first electronic device 100 can be used to evaluate the brightness convergence of the video file as the user's face enters and exits the scene. That is, if the image to be detected in the video file includes the user's face, the standard brightness value of the image to be detected is higher; or, if the image to be detected in the video file does not include the user's face, the standard brightness value of the image to be detected is higher.

[0156] The following section, using the video brightness detection system shown in Figure 4 as an example, will further describe one possible implementation process for recording video files. As shown in Figure 7, the process is as follows:

[0157] First, the tester can place the second electronic device on the motion device and adjust its position until the right edge of the preview screen is aligned with the right edge of the highlight light box, and the top and bottom edges of the preview screen are aligned with the top and bottom edges of the highlight light box, thus obtaining the first position of the second electronic device. The preview screen is the image displayed on the second electronic device.

[0158] Next, the tester can control the motion device to move using the first electronic device until the highlight light box in the preview screen completely disappears and the preview screen includes the target color chart, thus obtaining the second position of the second electronic device. Then, with the second electronic device mounted on the motion device in the first position, the tester can control the second electronic device to start recording video. Then, when the first waiting time reaches a preset time, the tester can control the motion device to move at a predicted speed until the second electronic device reaches the second position, at which point the motion device stops moving, and the second waiting time is recorded. Then, when the second waiting time reaches a preset time, the tester can control the motion device to move at a predicted speed until the second electronic device returns to the first position, at which point the motion device stops moving, and the third waiting time is recorded. Finally, when the third waiting time reaches a preset time, the tester can control the second electronic device to stop recording video to generate a video file.

[0159] Based on the first electronic device described above, this application provides a method for detecting video brightness. This method can be applied to scenarios involving video quality evaluation; that is, the first electronic device in this method is an electronic device capable of analyzing video files. The method of this application embodiment will be described below using a computer as an example of the first electronic device. Specifically, as shown in FIG8, the video brightness detection method may include steps S801 to S805.

[0160] S801, the computer acquires a video file. This video file contains multiple images to be detected.

[0161] It should be noted that the aforementioned video file can be obtained from the capture device, meaning that after generating the video file, the capture device will send it to the computer. Alternatively, the video file can be a video file recorded by the computer using a webcam.

[0162] In some embodiments, taking the video file obtained from the acquisition device as an example, the video file may include a first sub-video file and / or a second sub-video file. The first sub-video file represents the process of the acquisition device moving from a first position to a second position, that is, the process of switching from a high dynamic range scene to a low dynamic range scene. The second sub-video file represents the process of the acquisition device moving from a second position to a first position, that is, the process of switching from a low dynamic range scene to a high dynamic range scene.

[0163] Specifically, after obtaining the aforementioned video file, the computer can decode it to obtain multiple images to be detected. The video file refers to a continuous sequence of images, essentially composed of a set of consecutive image frames. Each image frame is the smallest visual unit that makes up the video; it is a static image. In other words, combining a temporally continuous sequence of image frames creates a dynamic video. For example, the computer can decode the video file using a computer vision library (OpenCV) and a computer program (FFmpeg).

[0164] In some embodiments, in order to accurately analyze the brightness convergence of a video file, the computer can extract the video file frame by frame to obtain multiple images to be detected. Frame-by-frame extraction means extracting each frame of the video file, treating each frame as an image to be detected, thereby obtaining multiple images to be detected.

[0165] In other embodiments, considering the large number of images per second in the video file, i.e., a high capture frame rate (e.g., 30fps, meaning 30 frames are captured per second), the capture frame rate refers to the number of images to be detected captured by the first electronic device per second. To reduce the utilization of computing resources, the computer can extract frames from the video file during decoding to obtain multiple images to be detected. Frame extraction can be performed at preset intervals. For example, the computer can extract one image to be detected every 20 frames. Alternatively, frame extraction can be performed at preset time intervals. For example, the computer can extract one image to be detected every 10ms. It should be noted that the preset number of frames and the preset time interval can be set according to actual needs and are not limited here.

[0166] S802, for each image to be detected in the video file, the computer performs object detection on the image to be detected and obtains the object detection result. The object detection result indicates whether the image to be detected contains a target object.

[0167] Specifically, after obtaining the aforementioned video file, the computer can perform target detection on each image to be detected in the video file to obtain the target detection result for each image. This target detection result indicates whether the image to be detected contains a target object. The target object can be any object capable of representing the standard brightness value of the image to be detected. In some embodiments of this application, the target object is a 24-color chart, which includes 24 colors. This 24-color chart can reproduce true colors under any lighting conditions. That is, using this 24-color chart, the standard brightness value of the image to be detected can be accurately determined, providing a basis for subsequent analysis of the brightness convergence of the video file.

[0168] It can be understood that if the target detection result includes the detection bounding box of the target object, it means that the image to be detected contains the target object. If the target detection result does not include the detection bounding box of the target object, it means that the image to be detected does not contain the target object. The detection bounding box of the target object is used to represent the location information of the target object. Specifically, the computer can use the detection bounding box to mark the location of the target object in the image to be detected. Then, the computer can determine the location information of the target object based on the coordinate values ​​of the four vertex corners of the detection bounding box. In other words, the coordinates of the four vertex corners of the target object's detection bounding box can represent the location information of the target object.

[0169] In some embodiments, the target detection result may further include the confidence score of the detection box. The confidence score of the detection box refers to a confidence score in the output result. For example, if the acquired image to be detected may be unclear, it will lead to inaccurate detection and output results from the computer, resulting in a lower confidence score. For instance, if the image to be detected includes a target object, the target detection result may include the detection box of the target object and the confidence score of that detection box.

[0170] It should be noted that the confidence level of the detection box mentioned above indicates the degree of confidence in the detection box of the target object. The higher the confidence level of the detection box, the more accurate the target detection result, that is, the more precise the detection box of the target object detected by the computer. For example, the computer can output the confidence level in numerical form, such as a confidence level of 0.88.

[0171] In one implementation, the acquisition device can perform target detection on the image to be detected according to a target detection model to obtain a target detection result. This target detection result indicates whether the image to be detected contains a target object. For example, referring to Figure 9, the computer inputs the image to be detected 910 into the target detection model and obtains a target detection result. It can be seen that the image to be detected 910 includes the target object (i.e., the 24-color chart). That is, after the computer inputs the image to be detected 910 into the target detection model, the target detection result obtained can include the detection box T of the target object and the confidence score 0.87 corresponding to the detection box T. The detection box T of the target object is used to indicate the position information of the target object in the image to be detected. For example, the computer can mark the target object in the image to be detected using the detection box T, and determine the position information of the target object based on the coordinate values ​​of the four vertex corners of the detection box T.

[0172] Understandably, when the target detection result includes a detection bounding box of the target object, the computer can determine whether the confidence level of the detection bounding box reaches a preset confidence level. If the confidence level reaches the preset confidence level, it indicates that the target detection result is relatively accurate, and the computer can execute S804 to further determine the standard brightness value of the image to be detected, thereby analyzing the brightness convergence of the video file. If the confidence level of the detection bounding box does not reach the preset confidence level, it indicates that the target detection result is relatively inaccurate. To reduce unnecessary resource waste, the computer can execute S803, that is, not analyze the video file. In this way, the waste of subsequent computing resources due to errors in the target detection result can be reduced, improving the utilization rate of computing resources.

[0173] Accordingly, the computer can generate a target detection result indicating that the target object is present in the image to be detected only if the target detection result includes a detection box of the target object and the confidence level of the detection box reaches a preset confidence level. Conversely, if the target detection result does not include a detection box of the target object, or if the confidence level of the detection box does not reach the preset confidence level, the computer can generate a target detection result indicating that the target object is not present in the image to be detected.

[0174] S803: If the target detection result indicates that the target object is not present in the image to be detected, the computer will not analyze the video file.

[0175] In some embodiments, after determining that the target detection result indicates that the target object is not present in the image to be detected, that is, after determining that any image in the video file does not contain the target object, the computer may not analyze the video file. This reduces the waste of subsequent computing resources due to errors in the target detection result, thus improving the utilization rate of computing resources.

[0176] S804, when the target detection result indicates that the image to be detected contains a target object, the computer performs color gamut conversion on the target object in the image to be detected to obtain the standard brightness value of the image to be detected.

[0177] In some embodiments, after determining that the target detection result indicates that the image to be detected includes a target object, the computer can perform color gamut conversion on the target object in the image to obtain a standard brightness value (or reference brightness) for the image to be detected. That is, this standard brightness value is determined based on the target object in the image to be detected. Specifically, this standard brightness value refers to the brightness value used to achieve the best image effect during the shooting process, ensuring the integrity of details in the image to be detected, neither overexposing nor underexposing it. In other words, this standard brightness value is the reference brightness that enables the image to achieve the best image effect. This best image effect can be achieved by adjusting exposure parameters, which may include aperture, shutter speed, and ISO.

[0178] Specifically, the computer can extract the color information of the target object from the image to be inspected. Then, the computer can perform color gamut switching on the target object's color information to obtain the standard brightness value of the image to be inspected. This color gamut switching refers to converting from the RGB color gamut to the LAB color gamut. The RGB color gamut reflects the principle of light color mixing; it obtains the color information of the target object through the changes in the three color channels (red, R), green, and blue (blue, B) and the superposition of these three color channels. The LAB color gamut consists of three elements: luminance (L) and the color-related factors a and b. L represents illumination, equivalent to luminance. a represents the color range from red to green; b represents the color range from blue to yellow.

[0179] It is understandable that, considering the wide color gamut range corresponding to the LAB color gamut, and that this LAB color gamut range includes the color gamut range corresponding to the RGB color gamut, the computer can convert the color information of the target object from the RGB color gamut to the LAB color gamut. This allows for the accurate determination of standard brightness values.

[0180] In some embodiments of this application, since the target object is a 24-color chart, and each color block in the 24-color chart corresponds to a different color, the computer can extract the color information of any color block in the 24-color chart and switch the extracted color information from the RGB color gamut to the LAB color gamut to obtain the standard brightness value of the image to be detected belonging to the 24-color chart. However, considering that grayscale colors can more accurately determine the standard brightness value than color, and that the first three rows of color blocks in the 24-color chart are all color blocks, while the last row of color blocks are all grayscale blocks, in order to achieve accurate determination of the standard brightness value, the computer can extract the color information of any color block from the last row of color blocks in the 24-color chart. For example, as shown in Figure 10, the 24-color chart includes four rows of color blocks, and each row of color blocks corresponds to 6 color blocks. Specifically, the computer can take the 4th color block (i.e., the 22nd color block) in the last row D as the extracted color block, that is, the computer can extract the color information of the 22nd color block.

[0181] S805: The computer analyzes the video file based on the standard brightness values ​​of multiple images to be detected in the video file and the position information of the target object in each image to obtain the brightness convergence result of the video file.

[0182] Specifically, after obtaining the standard brightness value of each image to be detected in the aforementioned video file, the computer can analyze the video file based on the standard brightness values ​​of multiple images to be detected and the position information of the target object in the multiple images to obtain the brightness convergence result of the video file. This brightness convergence result is used to evaluate the convergence of the video brightness. Thus, by analyzing the brightness change process of the video file, the computer can determine the smoothness of the brightness convergence in the video file, that is, whether the video brightness can switch smoothly.

[0183] It is understandable that, since the aforementioned video files may include a first sub-video file and / or a second sub-video file, and the first sub-video file represents the process of the acquisition device moving from a first position to a second position, while the second sub-video file represents the process of the acquisition device moving from a second position to a first position, the computer can determine the smoothness of brightness convergence during the transition from a high dynamic range scene to a low dynamic range scene by analyzing the brightness change process of the first sub-video file. Furthermore, the computer can determine the smoothness of brightness convergence during the transition from a low dynamic range scene to a high dynamic range scene by analyzing the brightness change process of the second sub-video file.

[0184] In one implementation, the computer can determine the start and end motion images from multiple images to be detected based on the position information of the target object in the image to be detected. The position information of the target object is determined based on the coordinate values ​​of the four vertex corners of the target object's detection frame. The start motion image is the image to be detected when the target object's position on the image begins to change, that is, the image to be detected when the acquisition device starts moving. The end motion image is the image to be detected when the target object's position on the image stops changing, that is, the image to be detected when the acquisition device stops moving. It can be understood that the acquisition time of the start motion image is earlier than the acquisition time of the end motion image; that is, the frame number of the start motion image is less than the frame number of the end motion image.

[0185] In some embodiments, when the target detection result includes a detection box of the target object in the image to be detected, the computer can determine the coordinates (or center coordinates) corresponding to the center position of the target object based on the coordinates of the four vertex corners of the detection box. The center position of the target object is the intersection of the two diagonals corresponding to the detection box of the target object. For example, as shown in Figure 9, the center position of the target object (i.e., the 24-color chart) is the white dot x.

[0186] In some cases, considering that the video capture device moves horizontally while the target object's position remains fixed (meaning the target object's vertical coordinate in the video file is constant), to reduce unnecessary resource waste, the computer can calculate only the horizontal coordinate (or x-coordinate) corresponding to the target object's center position. This improves the utilization of computing resources.

[0187] Correspondingly, after determining the center coordinates of the target object in multiple images to be detected in the video file, the computer can determine the start and end motion images from these images based on the center coordinates of the target object. This simplifies the process of determining the motion images (i.e., the start and end motion images), facilitating subsequent rapid analysis of the video file.

[0188] Specifically, as shown in Figure 11, the process by which the computer determines the start and end of the moving image based on the center coordinates of the target object in multiple images to be detected may include steps S1101 to S1106:

[0189] S1101, The computer obtains a preset number of initial images from the video file with the earliest acquisition time, and obtains a preset number of final images with the latest acquisition time.

[0190] It's understandable that when the acquisition device is capturing video files, the motion mechanism installed on it will pause accordingly, responding to the video recording operation. The motion mechanism only begins to move after the initial waiting time reaches a preset time, meaning the position of the target object displayed in the acquisition device only changes then. Therefore, if the initial waiting time has not reached the preset time, the center coordinates of the target object in the image to be detected will not change. Thus, the computer can acquire only the earliest and latest initial images to provide a basis for subsequently determining the initial and final horizontal coordinates.

[0191] However, to minimize the impact of objective factors (such as slight movements of the motion device) on the accuracy of determining the initial and final horizontal coordinates, the computer can acquire a preset number of initial images captured earlier in the video file, and a preset number of final images captured later in the video file. This provides a foundation for accurately determining the initial and final horizontal coordinates.

[0192] The preset quantity can be set in advance according to the actual situation. For example, the preset quantity can be 50 sheets, 30 sheets, etc., and there is no specific limitation.

[0193] S1102, the computer obtains the initial horizontal coordinates based on the center coordinates of the target object in a preset number of initial images, combined with statistical methods.

[0194] Specifically, after acquiring the aforementioned preset number of initial images, the computer can obtain initial coordinates based on the center coordinates of the target object in the preset number of initial images, combined with statistical methods. In some embodiments of this application, the initial coordinates can be initial horizontal coordinates, which are used to characterize the horizontal coordinates corresponding to the center position of the target object when the video file begins recording.

[0195] In some embodiments of this application, the statistical method described above can be calculated by solving for the mean. Specifically, the computer can calculate the average of the center coordinates of the target object in a preset number of initial images to obtain the initial horizontal coordinates. In other embodiments, the statistical method can also be calculated by solving for the mode. The mode is the center coordinate that appears most frequently among multiple center coordinates. Specifically, the computer can calculate the mode of the center coordinates of the target object in a preset number of initial images to obtain the initial horizontal coordinates.

[0196] S1103, the computer obtains the termination horizontal coordinates based on the center coordinates of the target object in a preset number of termination images, combined with statistical methods.

[0197] Specifically, after acquiring the aforementioned preset number of termination images, the computer can obtain the termination horizontal coordinates based on the center coordinates of the target object in these images, combined with statistical methods. These termination horizontal coordinates characterize the horizontal coordinates corresponding to the center position of the target object when the video file stops recording.

[0198] In some embodiments, the computer can calculate the average of the center coordinates of the target object in a preset number of termination images to obtain the aforementioned termination horizontal coordinates. Alternatively, the computer can calculate the mode of the center coordinates of the target object in a preset number of termination images to obtain the termination horizontal coordinates.

[0199] S1104, the computer determines the predicted horizontal displacement of the target object in each image to be detected in the video file based on the initial horizontal coordinates and the final horizontal coordinates.

[0200] Specifically, after obtaining the initial and final horizontal coordinates, the computer can determine the predicted horizontal displacement of the target object in each image to be detected in the video file based on these coordinates. This predicted horizontal displacement is the average horizontal displacement of the target object in the second adjacent image to be detected in the video file. This second adjacent image to be detected may include a third and a fourth image to be detected. In one example, the fourth image to be detected may be located after the third image to be detected; that is, the fourth image to be detected is an adjacent image to be detected in the video file that follows the third image to be detected. In another example, the fourth image to be detected may also be located before the third image to be detected; that is, the fourth image to be detected is an adjacent image to be detected in the video file that precedes the third image to be detected.

[0201] In one embodiment, the computer can acquire the distance between the first and second positions, as well as the speed of the motion device. The computer can then use the ratio of this distance to the speed as the motion time of the motion device (i.e., the time the data acquisition device spends moving horizontally). It is understood that since the first electronic device (i.e., the data acquisition device) is mounted on the motion device, meaning the first electronic device and the motion device move synchronously, the motion time of the motion device can be equivalent to the motion time of the data acquisition device.

[0202] In one implementation, the motion time of the above-mentioned motion device can be calculated using the following expression:

[0203] t = |ab| / v expression one;

[0204] Where t is the motion time of the motion device; a is the first position; b is the second position; |ab| is the motion distance between the first position and the second position; and v is the motion speed of the motion device.

[0205] Subsequently, given the motion time of the aforementioned motion device, the computer can determine the total number of images to be detected in the video file by multiplying the motion time by the acquisition frame rate of the video file, and determine the coordinate difference between the aforementioned termination horizontal coordinate and the initial horizontal coordinate as the total horizontal displacement. Then, the computer can use the ratio between the total horizontal displacement and the total number of images to be detected as the predicted horizontal displacement of the target object in each image to be detected.

[0206] In one implementation, the predicted horizontal displacement of the target object can be calculated using the following expression:

[0207] △x_ideal = |x_end - x_start| / (t * FPS) (Expression 2)

[0208] Where △x_ideal is the predicted horizontal displacement of the target object; x_end is the ending horizontal coordinate; x_start is the initial horizontal coordinate; and FPS is the capture frame rate of the video file.

[0209] S1105, the computer determines the true horizontal displacement of the target object in the second adjacent image to be detected based on the center coordinates of the third and fourth images to be detected in the video file. The second adjacent image to be detected includes both the third and fourth images to be detected.

[0210] In some embodiments, the computer can obtain the center coordinates of a third image to be detected and the center coordinates of a fourth image to be detected in the video file. Then, the computer can determine the coordinate difference between the center coordinates of the fourth image to be detected and the center coordinates of the third image to be detected as the true horizontal displacement of the target object in the second adjacent image to be detected. The fourth image to be detected is the adjacent image to be detected in the video file that follows the third image to be detected.

[0211] In other embodiments, if the aforementioned true horizontal displacement is determined based on the coordinate difference between the center coordinates of the third image to be detected and the center coordinates of the fourth image to be detected, the fourth image to be detected may be an adjacent image to be detected in the video file that precedes the third image to be detected.

[0212] Specifically, for each image to be detected in the video file, the computer can use the first image to be detected captured after that image in the video file as the fourth image to be detected. Then, the computer can determine the coordinate difference between the center coordinates of the fourth image to be detected and the center coordinates of the first image to be detected as the true horizontal displacement of the target object in the second adjacent image to be detected.

[0213] In one implementation, the true horizontal displacement of the target object in the second adjacent image to be detected can be calculated using the following expression three:

[0214] △x_i = ColorChecker_location(x_i+1) - ColorChecker_location(x_i) (Expression 3)

[0215] Where △x_i represents the true horizontal displacement of the target object in the second adjacent image to be detected; ColorChecker_location(x_i+1) represents the center coordinates of the fourth image to be detected, i.e., the horizontal coordinates of the center position of the target object in the fourth image to be detected; and ColorChecker_location(x_i) represents the center coordinates of the third image to be detected, i.e., the horizontal coordinates of the center position of the target object in the third image to be detected. It can be seen that the acquisition time of the third image to be detected is earlier than that of the fourth image to be detected, meaning the frame number of the third image to be detected is less than the frame number of the fourth image to be detected.

[0216] It should be noted that the processes described above for determining the predicted horizontal displacement and determining the actual horizontal displacement by the computer can be performed simultaneously or sequentially, without any specific limitation. For example, the computer can execute steps S1101-S1104 and step S1105 simultaneously. Alternatively, the computer can execute step S1105 first, followed by steps S1101-S1104.

[0217] S1106, the computer determines the start and end motion images based on the predicted horizontal displacement and the actual horizontal displacement.

[0218] Specifically, after obtaining the actual horizontal displacement and the predicted horizontal displacement, the computer can determine the start and end motion images based on the actual horizontal displacement and the predicted horizontal displacement.

[0219] In some embodiments, the computer can sequentially calculate the ratio between the actual horizontal displacement and the predicted horizontal displacement based on the acquisition time of each image to be detected in the video file. Then, the computer can determine whether the ratio between the actual horizontal displacement and the predicted horizontal displacement is less than a preset ratio. This preset ratio can be pre-set according to actual conditions. For example, the preset ratio can be 0.9, 0.85, etc., and is not specifically limited. If the ratio between the actual horizontal displacement and the predicted horizontal displacement is less than the preset ratio, it indicates that the motion device controlling the first electronic device has not moved, that is, the motion device is in a stationary state. Therefore, the computer can continue to determine whether the ratio between the actual horizontal displacement and the predicted horizontal displacement corresponding to the next image to be detected is less than the preset ratio.

[0220] If, for the first time, the ratio between the actual horizontal displacement and the predicted horizontal displacement in multiple images to be detected is greater than or equal to a preset ratio, the computer can use the third image to be detected, containing the actual horizontal displacement, as the starting motion image when the ratio first exceeds or equals the preset ratio. Subsequently, the computer can use the third image to be detected, containing the actual horizontal displacement, as the last time the ratio exceeds or equals the preset ratio, as the ending motion image.

[0221] In one implementation, to reduce the waste of computing resources, the computer does not need to determine whether the ratio between the actual horizontal displacement and the predicted horizontal displacement corresponding to each image to be detected in the video file is less than a preset ratio. Specifically, the computer can obtain the center coordinates of each image to be detected in the video file according to its acquisition time, in ascending order (i.e., the chronological order of acquisition time). Then, the computer determines the actual horizontal displacement as the coordinate difference between the center coordinates of the image to be detected and the center coordinates of the first image to be detected after it. Then, the computer can determine whether the ratio between the actual horizontal displacement and the predicted horizontal displacement is less than a preset ratio. If the ratio is less than the preset ratio, the computer can obtain the center coordinates of the first image to be detected after the image to be detected, and use the center coordinates of the first image to be detected as the center coordinates of the image to be detected. The computer then returns to the step described above, "the computer determines the coordinate difference between the center coordinates of the image to be detected and the center coordinates of the first image to be detected after the image to be detected as the actual horizontal displacement," until the ratio between the actual horizontal displacement and the predicted horizontal displacement is greater than or equal to the preset ratio. The computer can then use the third image to be detected, where the actual horizontal displacement is greater than or equal to the preset ratio, as the starting motion image.

[0222] After determining the starting moving image, the computer can obtain the center coordinates of each image to be detected in reverse chronological order, based on the acquisition time of each image in the video file. Then, the computer determines the true horizontal displacement by the coordinate difference between the center coordinates of the current image and the center coordinates of the first image preceding it. Next, the computer checks if the ratio of the true horizontal displacement to the predicted horizontal displacement is less than a preset ratio. If the ratio is less than the preset ratio, the computer obtains the center coordinates of the first image following it and uses these coordinates as the center coordinates of the current image, returning to the previous step of determining the true horizontal displacement by the coordinate difference between the current image and the first image preceding it. This process continues until the ratio of the true horizontal displacement to the predicted horizontal displacement is greater than or equal to the preset ratio. The computer then designates the third image to which the true horizontal displacement belongs when the ratio is greater than or equal to the preset ratio as the ending moving image.

[0223] It can be understood that the ratio between the actual horizontal displacement and the predicted horizontal displacement is greater than or equal to the preset ratio, which is equivalent to the actual horizontal displacement being greater than or equal to the product of the predicted horizontal displacement and the preset ratio (i.e., Δx_i≥(Δx_ideal*0.9), where 0.9 is the preset ratio).

[0224] In some embodiments, after determining the start motion image and the end motion image, the computer can determine a set of motion images based on the start motion image and the end motion image. The set of motion images includes at least two images to be detected, and includes the start motion image and the end motion image.

[0225] In one example, to improve the efficiency of video file analysis, the aforementioned motion image set may include only all images to be detected from the start of the motion image to the end of the motion image. In another example, to reduce the occurrence of situations where the motion stops before the brightness of the video file changes, and to maximize the accuracy of video file analysis, the motion image set may also include all images to be detected within a first preset time period after the end of the motion image. This first preset time period can be pre-set according to actual conditions. For example, the first preset time period can be 5 seconds, 7 seconds, etc., and is not specifically limited.

[0226] In one implementation, after determining the set of motion images, the computer can analyze the video file based on the standard brightness value of each image to be detected in the set of motion images to obtain the brightness convergence result of the video file.

[0227] In some embodiments, the brightness convergence result of the video file may include the brightness convergence direction and / or the transition value of brightness convergence. For example, as shown in FIG12, the process by which the computer analyzes the video file based on the standard brightness value of each image to be detected in the aforementioned motion image set may include S1201 to S1217:

[0228] S1201, the computer acquires a preset number of initial images from the video file with the earliest acquisition time, and acquires a preset number of final images with the latest acquisition time.

[0229] It's understandable that when the acquisition device is capturing video files, the motion mechanism installed on it will pause accordingly, responding to the video recording operation. The motion mechanism only begins to move after the first waiting time reaches a preset time, meaning the position of the target object displayed in the acquisition device only changes then. Therefore, if the first waiting time has not reached the preset time, the center coordinates of the target object in the image to be detected will not change. Thus, the computer can acquire only the earliest and latest initial images to provide a basis for subsequently determining the initial and final brightness values.

[0230] However, to minimize the impact of objective factors (such as slight shaking of the light source or the presence of other light sources in the evaluation scene) on the accuracy of video file analysis, the computer can acquire a preset number of initial images captured earlier in the video file, and a preset number of final images captured later in the video file. This provides a basis for accurately determining the initial and final brightness values.

[0231] S1202, the computer obtains the initial brightness value based on the standard brightness value corresponding to the preset number of initial images, combined with statistical methods.

[0232] Specifically, after acquiring the aforementioned preset number of initial images, the computer can obtain an initial brightness value based on the standard brightness values ​​corresponding to these preset number of initial images, combined with statistical methods. This initial brightness value is used to characterize the standard brightness value at the start of video file recording.

[0233] In some embodiments of this application, the statistical method described above can be calculated by solving for the mean. Specifically, the computer can calculate the average of the standard brightness values ​​corresponding to a preset number of initial images to obtain the initial brightness value. In other embodiments, the statistical method can also be calculated by solving for the mode. The mode is the center coordinate that appears most frequently among multiple center coordinates. Specifically, the computer can calculate the mode of the standard brightness values ​​corresponding to a preset number of initial images to obtain the initial brightness value.

[0234] S1203, the computer obtains the termination brightness value based on the standard brightness value corresponding to a preset number of termination images, combined with statistical methods.

[0235] Specifically, after acquiring the aforementioned preset number of termination images, the computer can obtain a termination brightness value based on the standard brightness values ​​corresponding to these preset number of termination images, combined with statistical methods. This termination brightness value is used to characterize the standard brightness value at which the video file stops recording.

[0236] In some embodiments, the computer can calculate the average of the standard brightness values ​​corresponding to a preset number of termination images to obtain the termination brightness value. Alternatively, the computer can calculate the mode of the standard brightness values ​​corresponding to a preset number of termination images to obtain the termination brightness value.

[0237] S1204, The computer determines the maximum and minimum brightness values ​​from the standard brightness values ​​of at least two images to be detected included in the set of moving images.

[0238] In some embodiments, the computer can acquire the standard brightness value of each image to be detected in the aforementioned set of moving images. Then, the computer can determine the maximum and minimum brightness values ​​from the standard brightness values ​​of at least two images to be detected.

[0239] In one implementation, the maximum brightness value can be calculated using the following expression:

[0240] max_L = max(L*(i)), i∈[j,k+5*FPS] Expression 4;

[0241] Where max_L is the maximum brightness value; L*(i) includes the standard brightness value of each image to be detected in the set of moving images; j is the frame number of the starting moving image; k is the frame number of the ending moving image; and 5*FPS is the first preset time.

[0242] In another implementation, the minimum brightness value mentioned above can be calculated using the following expression five:

[0243] min_L = min(L*(i)), i∈[j,k+5*FPS] Expression 5;

[0244] Wherein, min_L is the minimum brightness value.

[0245] It should be noted that the processes described above, such as the computer determining the maximum and minimum brightness values, and the processes determining the initial and final brightness values, can be executed simultaneously or sequentially; there is no specific limitation. For example, the computer can execute steps S1201–S1203 and step S1204 simultaneously. Alternatively, the computer can execute step S1204 first, followed by steps S1201–S1023.

[0246] Specifically, after obtaining the maximum and minimum brightness values, the computer can analyze the video file based on these values, to obtain the brightness convergence result. This brightness convergence result can include the brightness convergence direction and / or the transition value of brightness convergence. In other words, the brightness convergence result can be used to characterize whether the brightness convergence of the video file is excessive, and / or whether the brightness convergence direction of the video file is correct.

[0247] S1205, the computer determines whether the final brightness value is greater than the initial brightness value.

[0248] It's important to note that when a video file switches from a high dynamic range scene to a low dynamic range scene, the standard brightness values ​​increase from low to high, meaning the final brightness value is greater than the initial brightness value. Conversely, if the video file switches from a low dynamic range scene to a high dynamic range scene, the standard brightness values ​​decrease from high to low, meaning the final brightness value is less than the initial brightness value. Therefore, before determining the brightness convergence result of a video file, the computer can determine whether the final brightness value is greater than the initial brightness value, thus identifying the scene transition process. This allows for the determination of corresponding brightness convergence results for different scene transition processes, improving the accuracy of the brightness convergence determination.

[0249] In some embodiments, after determining the initial brightness value and the termination brightness value, the computer can determine whether the termination brightness value is greater than the initial brightness value. If the termination brightness value is greater than the initial brightness value, it indicates that the standard brightness value of the video file increases from small to large, meaning the video file is switching from a high dynamic range scene to a low dynamic range scene. Therefore, the computer can execute S1206 to determine whether the brightness of the video file is excessive using the maximum brightness value and the termination brightness value. If the termination brightness value is less than the initial brightness value, it indicates that the standard brightness value of the video file decreases from large to small, meaning the video file is switching from a low dynamic range scene to a high dynamic range scene. Therefore, the computer can execute S1212 to determine whether the brightness of the video file is excessive using the termination brightness value and the minimum brightness value.

[0250] S1206, The computer determines whether the difference between the maximum brightness value and the termination brightness value is greater than the first preset difference.

[0251] In some embodiments, after determining that the termination brightness value is greater than the initial brightness value, the computer can further determine whether the difference between the maximum brightness value and the termination brightness value is greater than a first preset difference. If the difference between the maximum brightness value and the termination brightness value is greater than the first preset difference, it indicates that the brightness convergence of the video file has undergone excessive changes. Therefore, the computer can execute S1207 to record the excessive changes in brightness convergence. If the difference between the maximum brightness value and the termination brightness value is less than or equal to the first preset difference, it indicates that the brightness convergence of the video file has not undergone excessive changes. Therefore, the computer can execute S1208, meaning that it is not necessary to record the brightness convergence of the video file.

[0252] The first preset difference value can be preset according to the actual situation. For example, the first preset difference value can be 5, 7, etc., and there is no specific limitation.

[0253] S1207, the computer obtains the brightness convergence transition of the video file, and the brightness convergence result is the difference between the maximum brightness value and the termination brightness value.

[0254] Specifically, after determining that the difference between the maximum brightness value and the termination brightness value is greater than the first preset difference, the computer can determine that the brightness of the video file has converged too much, and the value of the brightness convergence is the difference between the maximum brightness value and the termination brightness value.

[0255] It's understandable that when a video file transitions from a high dynamic range (HDR) scene to a low dynamic range (LVR) scene, if the difference between the maximum luminance value and the final luminance value exceeds a first preset difference, it indicates excessive luminance convergence in the video file. Therefore, the luminance convergence result for excessive convergence can be output. This allows for accurate assessment of excessive luminance convergence, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0256] For example, as shown in Figure 13, this curve represents the change in brightness convergence of a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) corresponds to the frame number of the image to be detected, and the vertical axis (y-axis) corresponds to the standard brightness value, which represents the standard brightness value of each image to be detected in the video file. It can be seen that the standard brightness value corresponding to each point in region b of the curve is higher than that corresponding to each point in region c. This indicates that the video file to which this curve belongs exhibits excessive brightness convergence; therefore, the computer can output a brightness convergence result indicating excessive convergence. The image to be detected corresponding to each point in region c is the image to be detected when the acquisition device stops moving.

[0257] S1208, the computer obtains the brightness convergence result of the video file, indicating that the brightness convergence is not excessive.

[0258] Specifically, after determining that the difference between the maximum brightness value and the termination brightness value is less than or equal to the first preset difference, the computer can determine that the brightness convergence of the video file is not excessive, that is, the brightness convergence effect of the video file is good and more in line with the user's recording experience.

[0259] For example, as shown in Figure 14, this curve represents the change in brightness convergence of a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) corresponds to the frame number of the image to be detected, and the vertical axis (y-axis) corresponds to the standard brightness value. In other words, this curve represents the standard brightness value of each image to be detected in the video file. It can be seen that the curve converges smoothly overall, meaning that no frame number exhibits an excessively high standard brightness value. Therefore, the computer can output a brightness convergence result for the video file represented by this curve, indicating that the brightness convergence is not excessive.

[0260] S1209, the computer determines whether the difference between the starting brightness value and the minimum brightness value is greater than the first preset difference.

[0261] Specifically, after determining that the termination brightness value is less than the initial brightness value, the computer can further determine whether the difference between the starting brightness value and the minimum brightness value is greater than a first preset difference. If the difference between the starting brightness value and the minimum brightness value is greater than the first preset difference, it indicates that there is an error in the brightness convergence direction. Therefore, the computer can execute S1210 to output a brightness convergence result indicating an incorrect brightness convergence direction. If the difference between the starting brightness value and the minimum brightness value is less than or equal to the first preset difference, it indicates that there is no error in the brightness convergence direction. Therefore, the computer can execute S1211 to output a brightness convergence result indicating a correct brightness convergence direction.

[0262] S1210, the computer obtained an incorrect brightness convergence direction for the video file.

[0263] Specifically, once the difference between the initial brightness value and the minimum brightness value is determined to be greater than a first preset difference, the computer can determine that the brightness convergence direction of the video file is incorrect. This allows for precise evaluation of the brightness convergence direction, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0264] For example, as shown in Figure 15, this curve represents the change in brightness convergence of a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) corresponds to the frame number of the image to be detected, and the vertical axis (y-axis) corresponds to the standard brightness value. This curve represents the standard brightness value of each image to be detected in the video file. It can be seen that the standard brightness value corresponding to point 'a' on the curve is lower than the standard brightness values ​​corresponding to other points. This means that the brightness convergence direction at point 'a' is incorrect, indicating that the video file to which this curve belongs has an incorrect brightness convergence direction. Therefore, the computer can output a brightness convergence result indicating an incorrect convergence direction.

[0265] S1211, the computer obtained the correct brightness convergence result for the video file, indicating that the brightness convergence direction is correct.

[0266] Specifically, after determining that the difference between the starting brightness value and the minimum brightness value is less than or equal to the first preset difference, the computer can determine that the brightness convergence direction of the video file is correct, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0267] For example, as shown in Figure 14, this curve represents the change in brightness convergence of a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) corresponds to the frame number of the image to be detected, and the vertical axis (y-axis) corresponds to the standard brightness value. In other words, this curve represents the standard brightness value of each image to be detected in the video file. It can be seen that the curve converges smoothly overall, meaning that there is no instance where the standard brightness value of any frame number is too low. Therefore, the computer can output that the brightness convergence direction of the video file represented by this curve is the correct brightness convergence result.

[0268] It should be noted that the processes described above for determining whether brightness convergence is excessive and whether the direction of brightness convergence is incorrect can be performed simultaneously or sequentially, without limitation. For example, the computer can execute steps S1206–S1208 and steps S1209–S1211 simultaneously. Alternatively, the computer can execute steps S1209–S1211 first, followed by steps S1206–S1208.

[0269] S1212, the computer determines whether the difference between the termination brightness value and the minimum brightness value is greater than the first preset difference.

[0270] Specifically, after determining that the termination brightness value is greater than the initial brightness value, the computer can further determine whether the difference between the termination brightness value and the minimum brightness value is greater than a first preset difference. If the difference between the termination brightness value and the minimum brightness value is greater than the first preset difference, it indicates that the brightness convergence of the video file has undergone excessive changes. Therefore, the computer can execute S1213 to record the excessive changes in brightness convergence. If the difference between the termination brightness value and the minimum brightness value is less than or equal to the first preset difference, it indicates that the brightness convergence of the video file has not undergone excessive changes. Therefore, the computer can execute S1214, meaning that it is not necessary to record the brightness convergence of the video file.

[0271] S1213, the computer obtains the brightness convergence transition of the video file, and the brightness convergence result is the difference between the termination brightness value and the minimum brightness value.

[0272] Specifically, after determining that the difference between the aforementioned termination brightness value and the minimum brightness value is greater than the first preset difference, the computer can determine that the brightness of the video file has converged excessively, and the excessive value of the brightness convergence is the difference between the maximum brightness value and the termination brightness value.

[0273] It's understandable that when a video file transitions from a high dynamic range scene to a low dynamic range scene, if the difference between the termination brightness value and the minimum brightness value is greater than a first preset difference, it indicates that the brightness convergence of the video file has undergone excessive changes. This allows for accurate assessment of excessive brightness convergence, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0274] S1214, the computer obtains the brightness convergence result of the video file, indicating that the brightness convergence is not excessive.

[0275] Specifically, after determining that the difference between the aforementioned termination brightness value and the minimum brightness value is less than or equal to the first preset difference, the computer can determine that the brightness convergence of the video file is not excessive, that is, the brightness convergence effect of the video file is good and more in line with the user's recording experience.

[0276] S1215, the computer determines whether the difference between the maximum brightness value and the initial brightness value is greater than the first preset difference.

[0277] Specifically, after determining that the aforementioned termination brightness value is greater than the initial brightness value, the computer can further determine whether the difference between the aforementioned maximum brightness value and the initial brightness value is greater than a first preset difference. If the difference between the maximum brightness value and the initial brightness value is greater than the first preset difference, it indicates that there is an error in the brightness convergence direction. Therefore, the computer can execute S1216 to output a brightness convergence result indicating an incorrect brightness convergence direction. If the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, it indicates that there is no error in the brightness convergence direction. Therefore, the computer can execute S1217 to output a brightness convergence result indicating a correct brightness convergence direction.

[0278] S1216, the computer obtained an incorrect brightness convergence direction for the video file.

[0279] Specifically, once the difference between the maximum brightness value and the initial brightness value is determined to be greater than a first preset difference, the computer can determine that the brightness convergence direction of the video file is incorrect. This allows for precise evaluation of the brightness convergence direction, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0280] S1217, if the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, the computer obtains the correct brightness convergence result for the video file, indicating that the brightness convergence direction is correct.

[0281] Specifically, after determining that the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, the computer can determine that the brightness convergence direction of the video file is correct, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0282] It should be noted that the processes described above, namely determining whether brightness convergence is excessive and whether the direction of brightness convergence is incorrect, can be performed simultaneously or sequentially, without limitation. For example, the computer can execute steps S1212–S1214 and steps S1215–S1217 simultaneously. Alternatively, the computer can execute steps S1215–S1217 first, followed by steps S1212–S1214.

[0283] In other embodiments, the brightness convergence result of the video file may include the smoothness and / or speed of brightness convergence. For example, as shown in FIG16, the process by which the computer analyzes the video file based on the standard brightness value of each image to be detected in the aforementioned motion image set may include S1601–S1609:

[0284] S1601, the computer determines the brightness difference between the first adjacent detection images and the second detection images in the motion image set.

[0285] Specifically, after obtaining the aforementioned set of moving images, the computer can select a first detection image and a second detection image from at least two images to be detected included in the set. For example, the computer can select any one of the at least two images to be detected as the first detection image. Then, the computer can select the image adjacent to the first detection image from the at least two images to be detected as the second detection image. The second detection image can be either the first detection image in the set before the first detection image, or the first detection image in the set after the first detection image; the specific choice is not limited.

[0286] The computer then calculates the brightness difference between the standard brightness value of the first image to be detected and the standard brightness value of the second image to be detected, and uses this brightness difference as the brightness difference between the first adjacent images to be detected. The first adjacent images to be detected include both the first image to be detected and the second image to be detected.

[0287] S1602, the computer determines the number of peaks whose brightness difference between the first adjacent images to be detected is greater than the second preset difference.

[0288] Specifically, after determining the brightness difference between the first adjacent images to be detected, the computer can count the number of peaks where the brightness difference between the first adjacent images is greater than a second preset difference. This number of peaks represents the frequency of large brightness differences occurring in the video file. It can be understood that the larger the number of peaks, the less smooth the brightness convergence of the video file. This provides a basis for subsequently determining whether the brightness convergence is smooth, thus enabling accurate determination of the brightness convergence result and improving the analysis accuracy of the video file.

[0289] In some embodiments, for each image to be detected in the set of moving images, the computer can use that image as the first image to be detected. Then, the computer can obtain adjacent images to be detected from the set of moving images and use those as the second image to be detected. Next, the computer can calculate the brightness difference between the standard brightness value of the first image to be detected and the standard brightness value of the second image to be detected, which is equivalent to calculating the brightness difference between the first adjacent images to be detected.

[0290] Next, the computer sequentially determines whether the brightness difference between the first adjacent images to be detected is greater than a second preset difference. If the brightness difference is greater than the second preset difference, it indicates that the video file has significant brightness variations, and therefore, the computer increments the peak count by 1. If the brightness difference is less than or equal to the second preset difference, it indicates that the video file has minor brightness variations, and therefore, the computer does not need to increment the peak count. After all brightness differences for all images to be detected in the motion image set have been determined, the computer counts the peak counts to obtain the final peak count.

[0291] The second preset difference can be preset according to actual conditions. For example, the second preset difference can be 2, 1.7, etc., and there is no specific limitation.

[0292] S1603, the computer determines whether the number of peaks is less than the preset number of peaks.

[0293] In some embodiments, after obtaining the number of peaks, the computer can determine whether the number of peaks is less than a preset number of peaks. If the number of peaks is less than the preset number of peaks, it indicates that there are fewer cases with large brightness changes in the video file. Therefore, the computer can execute S1604 to output a brightness convergence result with smooth brightness convergence. If the number of peaks is greater than the preset number of peaks, it indicates that there are more cases with large brightness changes in the video file. Therefore, the computer can execute S1605 to output a brightness convergence result without smooth brightness convergence.

[0294] The number of preset peaks can be set according to actual conditions. For example, the number of preset peaks can be 2, 3, etc., and there is no specific limitation.

[0295] In other embodiments, the computer can also determine the brightness stability of the video file under different dynamic range scenarios based on whether the number of peaks is less than a preset number of peaks. That is, if the number of peaks is less than the preset number of peaks, it indicates that there are fewer instances of large brightness changes in the video file; therefore, the computer can output a brightness convergence result indicating stable video brightness. If the number of peaks is greater than the preset number of peaks, it indicates that there are more instances of large brightness changes in the video file; therefore, the computer can output a brightness convergence result indicating unstable video brightness.

[0296] S1604, the computer obtains a brightness convergence result with smoothness.

[0297] Specifically, after determining that the number of peaks is less than the preset number of peaks, the computer can output a brightness convergence result with smoothness, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0298] For example, as shown in Figure 17, curve 1 represents the brightness change curve of each image to be detected in a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) of curve 1 corresponds to the frame number of the image to be detected, the left vertical axis (y-axis) corresponds to the standard brightness value, and the right vertical axis corresponds to the brightness difference. In other words, curve 1 characterizes the brightness difference between each image to be detected and the previous image in the video file. It can be seen that the brightness difference at point F in curve 1 is 2, meaning the brightness difference between the first adjacent image to be detected (point F) is relatively large. However, the brightness differences at all other points in curve 1 are less than 2. Therefore, the computer can determine that the number of peaks where the brightness difference between the first adjacent images to be detected is greater than a second preset difference is 1, meaning the number of peaks is less than the preset number of peaks (e.g., 2). Therefore, the computer can output a brightness convergence result for the video file to which this curve belongs, demonstrating smooth brightness convergence.

[0299] S1605, the computer obtained a brightness convergence result that lacked smoothness.

[0300] Specifically, after determining that the number of peaks is greater than or equal to the preset number of peaks, the computer can output a brightness convergence result that lacks smoothness. This allows for accurate assessment of the smoothness of brightness convergence, improving the accuracy of video file analysis and providing a foundation for better subsequent video recording.

[0301] For example, as shown in Figure 18, curve 2 represents the brightness change curve of each image to be detected in a video file during a scene transition from a high dynamic range scene to a low dynamic range scene. The horizontal axis (x-axis) of curve 2 corresponds to the frame number of the image to be detected, the left vertical axis (y-axis) corresponds to the standard brightness value, and the right vertical axis corresponds to the brightness difference. In other words, curve 2 characterizes the brightness difference between each image to be detected and the previous image in the video file. It can be seen that the brightness difference at point M and point N in curve 2 both reach 2, meaning the brightness difference between the first adjacent images to be detected (points M and N) is relatively large. However, the brightness differences at other points in curve 2, except for points M and N, are all less than 2. Therefore, the computer can determine that the number of peaks where the brightness difference between the first adjacent images to be detected is greater than a second preset difference is 2, meaning the number of peaks equals the preset number of peaks (e.g., 2). Therefore, the computer can output a brightness convergence result for the video file to which this curve belongs, indicating that the brightness convergence lacks smoothness.

[0302] Furthermore, curve 3 in Figure 18 shows the change in brightness convergence of the video file during scene transitions from a high dynamic range scene to a low dynamic range scene. It can be seen that curve 3 shows a significant gradient in brightness change within the frame number range of 150–200, meaning that the standard brightness value of the image to be tested varies considerably within this range. Therefore, the computer needs to determine whether the brightness convergence of the video file is smooth by counting the number of peaks.

[0303] S1606, the computer determines the target image to be detected in the motion image set where the brightness convergence has ended based on the brightness difference between the first adjacent images to be detected.

[0304] Specifically, after obtaining the brightness difference between the first adjacent images to be detected, the computer can determine the target image to be detected in the motion image set where brightness convergence has ended based on the brightness difference corresponding to each first image to be detected in the motion image set.

[0305] In some embodiments, the computer can, according to the chronological order of the acquisition times of multiple images to be detected in the motion image set, starting with the first image to be detected that was acquired last, acquire the brightness difference values ​​corresponding to a predetermined number of consecutive images to be detected following the first image to be detected. The computer then determines whether all of these predetermined number of brightness differences are less than a third predetermined difference. If any one of these predetermined number of images has a brightness difference greater than or equal to the third predetermined difference, it indicates that the brightness convergence of the video file has not yet ended. In other words, only when all of the aforementioned predetermined number of images to be detected have brightness differences less than the third predetermined difference can it be said that the brightness convergence of the video file has ended. Therefore, the computer can use the first image to be detected as the target image to be detected.

[0306] In one implementation, the target image to be detected can be calculated using the following expression six:

[0307] Expression 6: △L*(s)△L*(s+1)…△L*(s+5)<0.5

[0308] Wherein, △L*(s) is the brightness difference corresponding to the current image to be detected (i.e., the first image to be detected mentioned above); △L*(s+1) is the brightness difference corresponding to the first image to be detected after the current image to be detected; △L*(s+5) is the brightness difference corresponding to the fifth image to be detected after the current image to be detected; 0.5 is equivalent to the third preset difference mentioned above, wherein the third preset difference can be preset according to the actual situation.

[0309] S1607, the computer determines whether the time difference between the target image to be detected and the image at the end of motion is greater than a first preset time.

[0310] In some embodiments, after determining the target image to be detected, the computer can calculate the time difference between the target image to be detected and the image where the motion ends. Then, the computer can determine whether the time difference is greater than a first preset time. If the time difference is greater than the first preset time, it indicates that the brightness convergence time of the video file is relatively long, that is, the brightness convergence speed is slow. Therefore, the computer can execute S1608 to output a brightness convergence result with a slow brightness convergence speed. If the time difference is less than or equal to the first preset time, it indicates that the brightness convergence time of the video file is relatively short, that is, the brightness convergence speed is fast. Therefore, the computer can execute S1609 to output a brightness convergence result with a fast brightness convergence speed.

[0311] The first preset time can be preset according to the actual situation. For example, the first preset time can be 2s, 3s, etc., and there is no specific limitation.

[0312] S1608, the computer obtains a brightness convergence result with a slow brightness convergence speed.

[0313] Specifically, after determining that the time difference between the target image to be detected and the terminated motion image is greater than a first preset time, the computer can obtain a brightness convergence result indicating a slow brightness convergence speed. This allows for accurate evaluation of the brightness convergence speed, improves the accuracy of video file analysis, and provides a foundation for better subsequent video file recording.

[0314] S1609, the computer obtains brightness convergence results with fast brightness convergence speed.

[0315] Specifically, after determining that the time difference between the target image to be detected and the image at the end of motion is less than or equal to a first preset time, the computer can obtain a brightness convergence result with a fast brightness convergence speed, which means that the brightness convergence effect of the video file is better and more in line with the user's recording experience.

[0316] It should be noted that the processes described above for determining whether brightness convergence is smooth and for determining the brightness convergence speed can be performed simultaneously or sequentially, without limitation. For example, the computer can execute steps S1602–S1605 and steps S1606–S1609 simultaneously. Alternatively, the computer can execute steps S1606–S1609 first, followed by steps S1602–S1605.

[0317] The application also provides a computer-readable storage medium including computer instructions that, when executed on the electronic device, cause the electronic device to perform the various functions or steps in the above method embodiments.

[0318] This application also provides a computer program product, including a computer program that, when run on an electronic device, causes the electronic device to perform the various functions or steps described in the above method embodiments.

[0319] This application provides a chip for executing instructions. When the chip is running, it executes the technical solutions described in the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.

[0320] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device such as a server or data center that integrates one or more available media. The available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., high-density digital video discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).

[0321] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

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

[0323] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0324] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0325] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for detecting video brightness, characterized in that, The method, applied to an electronic device, includes: the electronic device acquiring a video file; wherein the video file includes multiple images to be detected, each image to be detected including a target object; the electronic device analyzing the video file based on reference brightness values ​​corresponding to the multiple images to be detected and the position information of the target object in the multiple images to be detected, to obtain a brightness convergence result of the video file; wherein the reference brightness values ​​are determined based on the color information of the target object in the images to be detected, and the brightness convergence result is used to evaluate the brightness convergence of the video file.

2. The method according to claim 1, characterized in that, The electronic device analyzes the video file based on the reference brightness values ​​of multiple images to be detected and the position information of the target object in the multiple images to be detected, and obtains the brightness convergence result of the video file. This includes: the electronic device determining a start motion image and an end motion image from the multiple images to be detected based on the position information of the target object in the multiple images to be detected; wherein the start motion image is the image to be detected when the position of the target object on the image changes, and the end motion image is the image to be detected when the position of the target object on the image stops changing, and the acquisition time of the start motion image is earlier than the acquisition time of the end motion image; the electronic device determines a set of motion images based on the start motion image and the end motion image; the electronic device analyzes the video file based on the reference brightness value of each image to be detected in the set of motion images to obtain the brightness convergence result of the video file.

3. The method according to claim 2, characterized in that, The motion image set includes at least two images to be detected. The electronic device analyzes the video file based on the reference brightness value of each image to be detected in the motion image set to obtain a brightness convergence result of the video file. This includes: the electronic device determining a maximum brightness value and a minimum brightness value from the reference brightness values ​​of the at least two images to be detected; the electronic device obtaining a brightness convergence result of the video file based on an initial brightness value, a final brightness value, the maximum brightness value, and the minimum brightness value; wherein the initial brightness value is used to characterize the reference brightness value of the image to be detected when the video file starts recording, the final brightness value is used to characterize the reference brightness value of the image to be detected when the video file ends recording, and the brightness convergence result includes a brightness convergence direction and / or a brightness convergence transition value.

4. The method according to claim 3, characterized in that, The electronic device obtains the brightness convergence result of the video file based on the initial brightness value, the termination brightness value, the maximum brightness value, and the minimum brightness value, including: if the termination brightness value is greater than the initial brightness value, and the difference between the maximum brightness value and the termination brightness value is greater than a first preset difference, the brightness convergence result of the video file includes the brightness convergence of the video file being excessive, and the excessive value of the brightness convergence is the difference between the maximum brightness value and the termination brightness value; and / or, if the difference between the initial brightness value and the minimum brightness value is greater than the first preset difference, the brightness convergence result of the video file includes the brightness convergence direction being incorrect.

5. The method according to claim 4, characterized in that, The electronic device obtains the brightness convergence result of the video file based on the initial brightness value, the termination brightness value, the maximum brightness value, and the minimum brightness value. The result further includes: if the difference between the maximum brightness value and the termination brightness value is less than or equal to a first preset difference, the brightness convergence result of the video file includes that the brightness convergence of the video file is not excessive; and / or, if the difference between the initial brightness value and the minimum brightness value is less than or equal to the first preset difference, the brightness convergence result of the video file includes that the brightness convergence direction is correct.

6. The method according to claim 4 or 5, characterized in that, The electronic device obtains the brightness convergence result of the video file based on the initial brightness value, the termination brightness value, the maximum brightness value, and the minimum brightness value. The method further includes: if the termination brightness value is less than the initial brightness value, and the difference between the termination brightness value and the minimum brightness value is greater than a first preset difference, the brightness convergence result of the video file includes excessive brightness convergence, and the excessive brightness convergence value is the difference between the termination brightness value and the minimum brightness value; and / or, if the difference between the maximum brightness value and the initial brightness value is greater than the first preset difference, the brightness convergence result of the video file includes an incorrect brightness convergence direction.

7. The method according to claim 6, characterized in that, The electronic device obtains the brightness convergence result of the video file based on the initial brightness value, the final brightness value, the maximum brightness value, and the minimum brightness value. The result further includes: if the difference between the final brightness value and the minimum brightness value is less than or equal to a first preset difference, the brightness convergence result of the video file includes that the brightness convergence of the video file is not excessive; and / or, if the difference between the maximum brightness value and the initial brightness value is less than or equal to the first preset difference, the brightness convergence result of the video file includes that the brightness convergence direction is correct.

8. The method according to any one of claims 3-7, characterized in that, The method further includes: the electronic device acquiring a preset number of initial images with the earliest acquisition time from the video file, and acquiring a preset number of final images with the latest acquisition time; the electronic device obtaining the initial brightness value based on the reference brightness value corresponding to the preset number of initial images, combined with statistical methods; and the electronic device obtaining the final brightness value based on the reference brightness value corresponding to the preset number of final images, combined with statistical methods.

9. The method according to any one of claims 2-8, characterized in that, The electronic device analyzes the video file based on the reference brightness value of each image to be detected in the motion image set to obtain a brightness convergence result of the video file. The analysis also includes: the electronic device determining a brightness difference between two adjacent images to be detected based on a first image to be detected and a second image to be detected in the motion image set; wherein the adjacent images to be detected include both the first image to be detected and the second image to be detected; and the electronic device analyzes the video file based on the brightness difference between the first adjacent images to obtain a brightness convergence result of the video file.

10. The method according to claim 9, characterized in that, The electronic device analyzes the video file based on the brightness difference between the first adjacent images to be detected, and obtains the brightness convergence result of the video file, including: the electronic device determining the number of peaks where the brightness difference between the first adjacent images to be detected is greater than a second preset difference; if the number of peaks is less than the preset number of peaks, the brightness convergence result of the video file includes smoothness; if the number of peaks is greater than or equal to the preset number of peaks, the brightness convergence result of the video file includes no smoothness.

11. The method according to claim 9 or 10, characterized in that, The electronic device analyzes the video file based on the brightness difference between the first adjacent images to be detected to obtain a brightness convergence result for the video file. The analysis further includes: the electronic device determining a target image in the set of moving images where brightness convergence has ended based on the brightness difference between the first adjacent images to be detected; if the time difference between the target image to be detected and the ended moving image is greater than a first preset time, the brightness convergence result of the video file includes a slow brightness convergence speed; if the time difference between the target image to be detected and the ended moving image is less than or equal to the first preset time, the brightness convergence result of the video file includes a fast brightness convergence speed.

12. The method according to any one of claims 2-11, characterized in that, The set of motion images includes the start motion image, the end motion image, all images to be detected between the start motion image and the end motion image, and all images to be detected within a first preset time period after the end motion image.

13. The method according to any one of claims 2-12, characterized in that, The location information of the target object includes center coordinates, which are the coordinates of the center position of the target object in a first direction, where the first direction is the direction of movement of the acquisition device when recording the video file; The electronic device determines a start motion image and an end motion image from the plurality of images to be detected based on the position information of the target object in the plurality of images to be detected, including: the electronic device determining initial coordinates and termination coordinates based on the center coordinates of the target object in the plurality of images to be detected; wherein, the initial coordinates are used to characterize the coordinates corresponding to the center position of the target object when the video file starts recording, and the termination coordinates are used to characterize the coordinates corresponding to the center position of the target object when the video file stops recording; the electronic device determining the predicted displacement of the target object in the video file in the first direction based on the initial coordinates and the termination coordinates; wherein, the predicted displacement is the average displacement of the target object in the second adjacent images to be detected in the video file, the second adjacent images to be detected including a third image to be detected and a fourth image to be detected; the electronic device determining the actual displacement of the target object in the second adjacent images to be detected based on the center coordinates of the third image to be detected and the center coordinates of the fourth image to be detected; and the electronic device determining the start motion image and the end motion image from the plurality of images to be detected based on the predicted displacement and the actual displacement.

14. The method according to claim 13, characterized in that, The electronic device determines the start motion image and the end motion image from the plurality of images to be detected based on the predicted displacement and the actual displacement, including: the electronic device calculates the ratio between the actual displacement and the predicted displacement corresponding to the third image to be detected according to the chronological order of the acquisition time of the plurality of images to be detected in the video file; when the ratio between the actual displacement and the predicted displacement is greater than or equal to a preset ratio, the electronic device designates the third image to be detected where the actual displacement first occurs when the ratio is greater than or equal to the preset ratio as the start motion image; the electronic device designates the third image to be detected where the actual displacement last occurs when the ratio is greater than or equal to the preset ratio as the end motion image.

15. The method according to claim 13 or 14, characterized in that, The electronic device determines initial coordinates and termination coordinates based on the center coordinates of the target object in the multiple images to be detected, including: the electronic device acquiring a preset number of initial images with the earliest acquisition time from the video file, and acquiring a preset number of termination images with the latest acquisition time; the electronic device obtaining the initial coordinates based on the center coordinates of the target object in the preset number of initial images, combined with statistical methods; and the electronic device obtaining the termination coordinates based on the center coordinates of the target object in the preset number of termination images, combined with statistical methods.

16. The method according to any one of claims 1-15, characterized in that, After the electronic device acquires the video file, the method further includes: for each image to be detected in the video file, the electronic device performs target detection on the image to be detected to obtain a target detection result; wherein the target detection result is used to indicate whether the image to be detected includes a target object; if the target detection result indicates that the image to be detected includes a target object, the electronic device extracts the color information of the target object from the image to be detected; the electronic device performs color gamut conversion on the color information of the target object to obtain a reference brightness value of the image to be detected.

17. The method according to claim 16, characterized in that, The target object includes a target color chart, which includes at least two grayscale color blocks. The electronic device extracts the color information of the target object from the image to be detected, including: the electronic device selects any grayscale color block from the target color chart as the target color block, and extracts the color information of the target color block from the image to be detected; the electronic device performs color gamut conversion on the color information of the target object to obtain a reference brightness value of the image to be detected, including: the electronic device converts the color information of the target color block from the RGB color gamut to the LAB color gamut to obtain a reference brightness value of the image to be detected.

18. The method according to any one of claims 1-17, characterized in that, The video file is a video file obtained by the electronic device from the acquisition device. The video file is obtained by the acquisition device recording the target object with a fixed position under preset ambient lighting parameters. The video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, and / or a scene switching process from a low dynamic range scene to a high dynamic range scene.

19. The method according to claim 18, characterized in that, When the video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, or a scene switching process from a low dynamic range scene to a high dynamic range scene, the video file also includes multiple images to be detected within a preset duration acquired by the acquisition device at a first position and multiple images to be detected within a preset duration acquired by the acquisition device at a second position; wherein, the scene switching process from a high dynamic range scene to a low dynamic range scene refers to the movement process of the acquisition device from the first position to the second position, and the scene switching process from a low dynamic range scene to a high dynamic range scene refers to the movement process of the acquisition device from the second position to the first position.

20. The method according to claim 19, characterized in that, The first position is used to make the upper and lower edges of the initial image to be detected correspond to the upper and lower edges of the highlight light box, which is arranged side by side with the target object. The direction indicated by the line connecting the first position and the second position is the movement direction of the acquisition device, which is perpendicular to the straight line direction of the target object and the highlight light box. The right edge of the initial image to be detected corresponds to the right edge of the highlight light box. The initial image to be detected is the image to be detected with the earliest acquisition time in the video file. The initial image to be detected includes the target object and the highlight light box. The second position is used to make the terminated image to be detected include the target object but not the highlight light box. The terminated image to be detected is the image to be detected with the latest acquisition time in the video file.

21. A video brightness detection system, characterized in that, The video brightness detection system includes an electronic device, a target object, a data acquisition device, and at least one light source device. The data acquisition device and the electronic device are connected via a communication link. The at least one light source device is positioned relative to the target object and is used to simulate the ambient brightness of the target object. The data acquisition device records data from a fixed-position target object under preset ambient lighting parameters to generate a video file. The video file includes multiple images to be detected, each image including the target object. The target object is used by the electronic device to determine the reference brightness value of each image in the video file. The electronic device receives the video file generated by the data acquisition device and calculates the position information of the target object in the multiple images to be detected. The electronic device also analyzes the video file based on the position information of the target object in the multiple images to be detected and the reference brightness values ​​of the multiple images to obtain a brightness convergence result for the video file. The brightness convergence result is used to evaluate the brightness convergence of the video file.

22. The system according to claim 21, characterized in that, The video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, and / or a scene switching process from a low dynamic range scene to a high dynamic range scene.

23. The system according to claim 22, characterized in that, When the video file includes a scene switching process from a high dynamic range scene to a low dynamic range scene, or a scene switching process from a low dynamic range scene to a high dynamic range scene, the video file also includes multiple images to be detected within a preset duration acquired by the acquisition device at a first position and multiple images to be detected within a preset duration acquired by the acquisition device at a second position; wherein, the scene switching process from a high dynamic range scene to a low dynamic range scene refers to the movement process of the acquisition device from the first position to the second position, and the scene switching process from a low dynamic range scene to a high dynamic range scene refers to the movement process of the acquisition device from the second position to the first position.

24. The system according to any one of claims 21-23, characterized in that, The video brightness detection system further includes a highlight light box, which is arranged side by side with the target object. The direction indicated by the line connecting the first position and the second position is the movement direction of the acquisition device, which is perpendicular to the straight line direction where the target object and the highlight light box are located. The first position is used to make the upper and lower edges of the initial image to be detected correspond to the upper and lower edges of the highlight light box, and the right edge of the initial image to be detected corresponds to the right edge of the highlight light box. The initial image to be detected is the image to be detected with the earliest acquisition time in the video file, and the initial image to be detected includes the target object and the highlight light box. The second position is used to make the final image to be detected include the target object but not the highlight light box, and the final image to be detected is the image to be detected with the latest acquisition time in the video file.

25. The system according to any one of claims 21-24, characterized in that, The acquisition device is used to record the video file when a video recording operation is detected; wherein, during the recording of the video file, if the acquisition device is located at the first position or the second position, the acquisition device stops moving at the first position or the second position; if the waiting time of the acquisition device at the first position reaches a preset time, the acquisition device moves to the second position; if the waiting time of the acquisition device at the second position reaches a preset time, the acquisition device moves to the first position.

26. The system according to any one of claims 21-25, characterized in that, The video brightness detection system also includes a motion device, which guides the acquisition device to move in the motion direction.

27. An electronic device, characterized in that, include: One or more processors and one or more memories; the one or more processors are coupled to the one or more memories; the one or more memories are used to store computer program code, the computer program code including computer instructions, which, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1-20.

28. A computer-readable storage medium, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 20.

29. A computer program product, characterized in that, Includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 20.