Polarization adjustment method and device of polarization equipment, electronic equipment and readable medium

By generating an initial polarization angle sequence and acquiring images, filtering target index information, and determining the initial polarization angle of the target for polarization adjustment, the problem of randomness and uncertainty of polarization angle is solved, image clarity and recognition are improved, and environmental adaptability and local area optimization are enhanced.

CN122018182APending Publication Date: 2026-05-12GUANGDONG VIMICRO
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
GUANGDONG VIMICRO
Filing Date
2026-02-06
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

In existing technologies, polarization adjustment is performed by relying on prior knowledge or randomly setting the polarization angle. This results in a high degree of randomness and uncertainty in the polarization angle, poor environmental adaptability, poor image quality and object recognition, and low accuracy in polarization angle determination due to different evaluation criteria among different users.

Method used

By generating an initial bias angle sequence, the image acquisition device is controlled to acquire images, generating a target image sequence and an indicator information sequence. Indicator information that meets preset conditions is selected, the initial target bias angle is determined, and polarization adjustment is performed to achieve fine selection.

Benefits of technology

It improves the image clarity and object recognition, enhances the environmental adaptability of polarization angle, and optimizes the user's area of ​​interest.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122018182A_ABST
    Figure CN122018182A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a polarization adjustment method and device for polarization equipment, electronic equipment and a readable medium. A specific embodiment of the method comprises the following steps: in response to a received imaging request, generating an initial polarization angle sequence according to a preset scanning step length and a preset scanning length; according to the initial polarization angle sequence, controlling image acquisition equipment to perform image acquisition on the target area to obtain a target image sequence; generating a target index information sequence corresponding to the imaging request according to the target image sequence; determining target index information meeting a preset index condition in the target index information sequence as current index information; determining an initial polarization angle corresponding to the current index information in the initial polarization angle sequence as an initial target polarization angle; generating a target polarization angle according to the initial target polarization angle; and performing polarization adjustment on the polarization equipment according to the target polarization angle. According to the embodiment, the object imaging definition and the object recognition degree of the shot image are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of this disclosure relate to the field of computer technology, and more specifically to polarization adjustment methods, apparatuses, electronic devices, and readable media for polarization devices. Background Technology

[0002] With the development of computer technology and optical technology, polarization imaging technology has also made great progress. Polarization information usually reflects the surface features, shape, material and roughness of the material itself. Therefore, combining polarization with imaging can obtain more comprehensive target and background information. At present, when adjusting the polarization device, the usual method is: (1) to obtain the polarization angle to be rotated through prior knowledge (e.g., the operator's personal experience) or random setting, and then rotate the polarization device (e.g., polarizer) to the corresponding polarization angle and take an image.

[0003] However, when using the above method, the following technical problems often arise: Determining the polarization angle through prior knowledge or random settings leads to significant randomness and uncertainty in the polarization angle determined under different environments. In other words, the optimal polarization angle has poor environmental adaptability, resulting in poor image quality, object imaging clarity, and object recognition.

[0004] Furthermore, in the process of using the polarization device of this application for polarization adjustment and in determining the polarization angle with better imaging effect, the following technical problems further exist: Because different users have different shooting goals (such as anti-glare effect or image contrast), their set evaluation criteria also differ. In determining the optimal target polarization angle based on these criteria, a conventional method involves comparing the current polarization angle with the left-side polarization angle (corresponding to the left-side polarization angle) and the right-side polarization angle (corresponding to the right-side polarization angle), directly determining the current polarization angle as the final target polarization angle. However, this method easily overlooks situations where the determined current polarization angle falls within the optimal polarization region with minimal error, resulting in low accuracy of the determined polarization angle and consequently, poor object sharpness and recognition in the captured image.

[0005] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0006] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.

[0007] Some embodiments of this disclosure provide methods, apparatuses, electronic devices, computer-readable media, and program products for polarization adjustment of polarization devices to solve one or more of the technical problems mentioned in the background section above.

[0008] In a first aspect, some embodiments of this disclosure provide a method for polarization adjustment of a polarization device. The method includes: responding to receiving an imaging request sent by a target user; generating an initial polarization angle sequence based on a preset scan step size and a preset scan length; controlling an associated image acquisition device to acquire images of a target area based on the initial polarization angle sequence to obtain a target image sequence; generating a target indicator information sequence corresponding to the imaging request based on the target image sequence, wherein the target images in the target image sequence correspond to target indicator information in the target indicator information sequence; determining the target indicator information in the target indicator information sequence that meets preset indicator conditions as current indicator information; determining the initial polarization angle in the initial polarization angle sequence corresponding to the current indicator information as a starting target polarization angle; generating a target polarization angle based on the starting target polarization angle; and adjusting the polarization of the associated polarization device based on the target polarization angle.

[0009] Secondly, some embodiments of this disclosure provide a polarization adjustment device for a polarization device, the device comprising: a first generation unit configured to generate an initial polarization angle sequence according to a preset scan step size and a preset scan length in response to receiving an imaging request sent by a target user; a control unit configured to control an associated image acquisition device to acquire images of a target area according to the initial polarization angle sequence, thereby obtaining a target image sequence; a second generation unit configured to generate a target indicator information sequence corresponding to the imaging request according to the target image sequence, wherein the target images in the target image sequence correspond to the target indicator information in the target indicator information sequence; a first determination unit configured to determine the target indicator information in the target indicator information sequence that meets preset indicator conditions as current indicator information; a second determination unit configured to determine the initial polarization angle corresponding to the current indicator information in the initial polarization angle sequence as the starting target polarization angle; a third generation unit configured to generate a target polarization angle according to the starting target polarization angle; and a polarization adjustment unit configured to perform polarization adjustment on an associated polarization device according to the target polarization angle.

[0010] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; a motor; and a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.

[0011] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.

[0012] The above-described embodiments of this disclosure have the following beneficial effects: the polarization adjustment method of the polarization device in some embodiments of this disclosure improves the object imaging clarity and object recognition of the captured images. Specifically, the reason for poor object imaging clarity and object recognition in captured images is that the polarization angle is determined by prior knowledge or random setting, resulting in greater randomness and uncertainty of the polarization angle determined under different environments. That is, the environmental adaptability of the determined optimal polarization angle is poor, which in turn leads to poor image quality, i.e., poor object imaging clarity and object recognition. Based on this, the polarization adjustment method of the polarization device in some embodiments of this disclosure firstly, in response to receiving an imaging request sent by the target user, generates an initial polarization angle sequence according to a preset scanning step size and a preset scanning length. Thus, an initial polarization angle sequence for regular scanning within the scanning range can be obtained. That is, the polarization angle is coarsely screened within the scanning range. Then, according to the above initial polarization angle sequence, the associated image acquisition device is controlled to acquire images of the target area to obtain a target image sequence. Thus, a target image sequence for coarsely screening and characterizing the regular scanning effect can be obtained. Next, based on the aforementioned target image sequence, a target indicator information sequence corresponding to the aforementioned imaging request is generated. The target images in the aforementioned target image sequence correspond to the target indicator information in the aforementioned target indicator information sequence. Thus, a target indicator information sequence can be obtained, allowing for physical evaluation of each scanning and imaging effect. Subsequently, the target indicator information in the aforementioned target indicator information sequence that meets preset indicator conditions is determined as the current indicator information. Thus, the current indicator information representing the superior scanning and imaging effect can be obtained. Next, the initial polarization angle in the aforementioned initial polarization angle sequence corresponding to the aforementioned current indicator information is determined as the starting target polarization angle. Thus, the starting target polarization angle representing the superior initial screening polarization effect can be obtained. Finally, based on the aforementioned starting target polarization angle, a target polarization angle is generated. Based on the aforementioned target polarization angle, polarization adjustment is performed on the associated polarization device. Thus, a target polarization angle with a better polarization effect after fine screening can be obtained, and polarization adjustment is performed, thereby obtaining an image with high object sharpness and object recognition. Because the polarization angles to be scanned are coarsely screened within the scanning range, a better starting target polarization angle can be determined, resulting in higher object clarity and recognition in the captured images. Furthermore, after the coarse screening of polarization angles, a fine screening is performed, further improving the environmental adaptability of the selected polarization angles, thereby further enhancing the object clarity and recognition in the captured images. Attached Figure Description

[0013] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.

[0014] Figure 1 This is a flowchart of some embodiments of the polarization adjustment method of the polarization device according to the present disclosure; Figure 2 This is a schematic diagram of the structure of some embodiments of the polarization adjustment device of the polarization device according to the present disclosure; Figure 3 This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation

[0015] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0016] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.

[0017] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0018] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0019] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0020] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.

[0021] Figure 1 A flowchart 100 is shown, illustrating some embodiments of a polarization adjustment method for a polarization device according to the present disclosure. The polarization adjustment method for the polarization device includes the following steps: Step 101: In response to receiving an imaging request from the target user, generate an initial bias angle sequence based on a preset scan step size and a preset scan length.

[0022] In some embodiments, the execution subject (e.g., a computing device) of the polarization adjustment method of the polarization device, in response to receiving an imaging request sent by a target user, can generate an initial polarization angle sequence based on a preset scan step size and a preset scan length. The target user can be any user operating the imaging device. The target user is not specifically limited here. The imaging device can be a device with a shooting function. For example, the imaging device can be an industrial camera. The preset scan step size can be a pre-set scan step size. For example, the preset scan step size can be 30°. The preset scan length can be a pre-set scan length. Here, the preset scan length can be 180°.

[0023] In some optional implementations of certain embodiments, the execution entity may, in response to receiving an imaging request from a target user, generate an initial offset angle sequence based on a preset scan step size and a preset scan length through the following steps: The first step is to determine the ratio of the preset scan length to the preset scan step length as the scan point number information. For example, the preset scan step length can be 30°, the preset scan length can be 180°, and the scan point number information can be 6.

[0024] The second step is to round the above scan point quantity information to obtain the rounded scan point quantity information as the rounded scan point quantity information.

[0025] The third step involves generating a scan point sequence based on the rounded scan point count information and the preset sequence number generation function. The preset sequence number generation function can be a pre-defined function, such as the `range()` function. In practice, the executing entity can input the rounded scan point count information as a parameter into the preset sequence number generation function to obtain the scan point sequence number. For example, the scan point sequence number could be [0, 1, 2, 3, 4, 5].

[0026] Fourth step: For each scan point number in the above scan point number sequence, the product of the above preset scan step size and the above scan point number is determined as the initial bias angle.

[0027] The fifth step is to determine the sequence of initial offset angles as the initial offset angle sequence. In practice, the execution entity can sort the initial offset angles according to the order of the scan point numbers corresponding to each initial offset angle to obtain the initial offset angle sequence.

[0028] Step 102: Based on the initial bias angle sequence, control the associated image acquisition device to acquire images of the target area to obtain the target image sequence.

[0029] In some embodiments, the execution entity can control an associated image acquisition device to acquire images of the target area based on the initial tilt angle sequence, thereby obtaining a target image sequence. The image acquisition device can be a device capable of capturing images. For example, the image acquisition device can be an industrial camera. The target area can be the area captured by the image acquisition device. The target area can also be a region of interest pre-defined by the target user. The target area is not specifically limited here. For example, the target area can be a region of interest defined by the target user. The target images in the target image sequence include the target area.

[0030] In some optional implementations of certain embodiments, the execution entity may control an associated image acquisition device to acquire images of the target area based on the initial offset angle sequence, thereby obtaining a target image sequence: The first step involves controlling the associated polarization device to rotate to the corresponding initial polarization angle for each initial polarization angle in the aforementioned initial polarization angle sequence, and controlling the associated image acquisition device to acquire an image of the target area after the angle rotation, thereby obtaining a target image. The polarization device can be a device capable of reducing or eliminating reflections on the surface of a target object by controlling the direction of light vibration. For example, the polarization device can be a polarizing film. The target object can be any object. No specific limitation is made here. For example, the target object can include, but is not limited to, glass, water, paint, and leaves. In practice, firstly, for each initial polarization angle in the aforementioned initial polarization angle sequence, the executing entity can rotate the associated polarization device to the aforementioned initial polarization angle. Then, the associated image acquisition device can be controlled to acquire an image of the target area, thereby obtaining a target image.

[0031] The second step is to sort the obtained target images to obtain a target image sequence. In practice, the aforementioned execution entity can sort the target images according to the chronological order in which they were captured to obtain the target image sequence.

[0032] In some optional implementations of certain embodiments, the aforementioned execution entity may control an associated image acquisition device to acquire images of the target area based on an initial offset angle sequence through the following steps to obtain a target image sequence: The first step is to control the associated image acquisition device to acquire and display the viewfinder image.

[0033] The second step is to detect when the user clicks on the viewfinder image and determine the coordinates of the position in the viewfinder image where the user clicked as the selection coordinates.

[0034] The third step is to display a rectangle centered on the selected coordinates in the viewfinder image.

[0035] Fourth, in response to the detection of the user's adjustment operation on the above rectangle, the coordinates of the four vertices of the adjusted rectangle are determined as the user's area of ​​interest.

[0036] Fifth, for each initial deflection angle in the above initial deflection angle sequence, perform the following sub-steps: The first sub-step involves controlling the associated polarization device to perform an angular rotation corresponding to the initial polarization angle, and controlling the associated image acquisition device to acquire an image of the target area after the angular rotation, thereby obtaining an initial target image.

[0037] The second sub-step involves generating the target image based on the user's region of interest information and the initial target image. In practice, the image within the user's region of interest information in the initial target image can be identified as the target image.

[0038] The sixth step is to obtain the target image sequence according to the order in which the target images were generated.

[0039] The above technical solution, combined with steps 103 to 107 and related content, serves as an inventive point of this disclosure, solving the technical problem of "poor optimization effect of polarization adjustment on local image quality of particular concern to the user." Specifically, the reason for the poor optimization effect of polarization adjustment on local areas of particular concern to the user is that traditional automatic polarization adjustment methods usually use the entire image as the object of evaluation and optimization. This cannot meet the user's needs for focused enhancement or de-glare reduction in specific key areas (such as objects behind glass or details under water) when the overall illumination is uneven or there are multiple objects with different reflective properties in the image. Global optimization may sacrifice local optimality for the sake of overall effect, resulting in the area that the user truly cares about not reaching the optimal polarization state, and thus poor optimization effect on local image quality of particular concern to the user. If the above factors are solved, the optimization effect on local image quality of particular concern to the user can be improved. To achieve this effect, the first step is to control the associated image acquisition device to acquire and display the viewfinder image. The second step is to detect the user clicking to display the viewfinder image and determine the coordinates of the position clicked by the user in the viewfinder image as the selection coordinates. The third step is to display a rectangular frame centered on the selected coordinates in the viewfinder image. The fourth step is to determine the coordinates of the four vertices of the adjusted rectangle as the user's region of interest information in response to the detected adjustment operation by the user. Thus, through the first to fourth steps, the user can flexibly and accurately select any rectangular area of ​​interest, obtaining the user's region of interest information. The fifth step is to execute the following sub-steps for each initial polarization angle in the initial polarization angle sequence: the first sub-step is to control the associated polarization device to perform an angle rotation corresponding to the initial polarization angle, and to control the associated image acquisition device to acquire an image of the target area after the angle rotation, obtaining an initial target image. The second sub-step is to generate a target image based on the user's region of interest information and the initial target image. The sixth step is to obtain a target image sequence according to the generation time of the target images. This provides a target image sequence to ensure that all subsequent processing and analysis are strictly focused on the user-specified area. Step 103: Based on the target image sequence, generate a target indicator information sequence corresponding to the imaging request. Therefore, the visual performance of the user's area of ​​interest under different polarization angles can be quantified into comparable numerical indicators. Next, in step 104, the target indicator information in the above target indicator information sequence that meets the preset indicator conditions is determined as the current indicator information. In step 105, the initial polarization angle corresponding to the current indicator information in the above initial polarization angle sequence is determined as the starting target polarization angle. In step 106, the target polarization angle is generated based on the above starting target polarization angle. Thus, the final target polarization angle can be generated. Therefore, the target polarization angle most favorable to the user's area of ​​interest can be obtained.Finally, in step 107, polarization adjustment is performed on the associated polarization device based on the aforementioned target polarization angle. This allows for user-guided, localized fine-tuning of the polarization adjustment to obtain the most favorable target polarization angle for the user's area of ​​interest. Consequently, improvements in polarization adjustment performance directly impact the portion of the image most relevant to the user, enhancing the optimization effect of polarization adjustment on the localized areas of particular interest.

[0040] Step 103: Generate a target indicator information sequence corresponding to the imaging request based on the target image sequence.

[0041] In some embodiments, the executing entity can generate a target indicator information sequence corresponding to the imaging request based on the target image sequence. The target images in the target image sequence correspond to the target indicator information in the target indicator information sequence. This correspondence can be one-to-one. For example, the first target image in the target image sequence corresponds to the first target indicator information in the target indicator information sequence. The target indicator information in the target indicator information sequence can be information characterizing the target image features. The target image features are not specifically limited here. Specifically, the target image features can include, but are not limited to: image brightness, image contrast, image entropy, and average gradient. For example, the target indicator information in the target indicator information sequence can be the average gray value of the target image or the gray value variance of the target image.

[0042] In some optional implementations of certain embodiments, the execution entity may generate a target indicator information sequence corresponding to the imaging request based on the target image sequence through the following steps: First, for each target image in the above target image sequence, perform the following steps: The first sub-step involves determining the image width of the target image as the target image width. This image width can be defined as the number of pixels in the horizontal direction of the target image.

[0043] The second sub-step involves determining the image height of the target image as the target image height. This image height can be the number of pixels in the vertical direction of the target image.

[0044] The third sub-step involves determining the number of pixels in the target image based on its width and height. In practice, the executing entity can determine the number of pixels in the target image by multiplying its width and height.

[0045] The fourth sub-step is to determine the sum of the gray values ​​of each pixel in the target image as the total pixel gray value information.

[0046] The fifth sub-step is to determine the ratio of the total pixel grayscale value information to the number of pixels in the target image as the average pixel grayscale value information.

[0047] The sixth sub-step involves determining the working mode corresponding to the aforementioned imaging request as a landscape mode, and then defining the aforementioned pixel grayscale average information as the target index information. The landscape mode can characterize the image's extinction effect.

[0048] The seventh sub-step involves determining the working mode corresponding to the aforementioned imaging request as enhancement mode, and then determining the pixel grayscale standard deviation information based on the aforementioned grayscale target image and the aforementioned pixel grayscale mean information. The enhancement mode characterizes the level of detail in the image. In practice, the executing entity can determine the pixel grayscale standard deviation information using the following formula.

[0049] .

[0050] Among them, the above This can be the standard deviation of pixel grayscale. (The above...) This can be the image width of the target image for grayscale conversion. (The above...) This can be the image height of the grayscale target image. (The above...) This can be information about the number of pixels in the target image. (The above...) These can be the coordinates of pixels in the grayscale target image. (The above...) This can be the x-coordinate of a pixel in the grayscale target image. (The above...) This can be the ordinate of a pixel in the grayscale target image. (The above...) It can be used to obtain the average grayscale value of pixels in a grayscale target image.

[0051] The eighth sub-step involves determining the aforementioned pixel grayscale standard deviation information as the target index information.

[0052] The second step is to define the generated target indicator information as a target indicator information set.

[0053] The third step is to sort the target indicator information included in the aforementioned target indicator information set to obtain a target indicator information sequence. In practice, the executing entity can sort the target indicator information according to the order in which they were generated to obtain the target indicator information sequence.

[0054] Based on the aforementioned target image sequence, generate a target indicator information sequence corresponding to the aforementioned imaging request. Optionally, before generating the target indicator information sequence corresponding to the imaging request based on the target image sequence, the execution entity may also perform the following steps: First, for each target image in the above target image sequence, perform the following steps: The first sub-step involves performing grayscale processing on the target image to obtain the grayscale target image.

[0055] The second sub-step involves determining the aforementioned grayscale target image as the target image and updating the target image accordingly.

[0056] The second step is to determine the updated target images as a target image set.

[0057] The third step is to sort the aforementioned set of target images to obtain a sequence of target images. In practice, the executing entity can sort the set of target images according to the order in which they were updated to obtain the sequence of target images.

[0058] Step 104: Determine the target indicator information that meets the preset indicator conditions in the target indicator information sequence as the current indicator information.

[0059] In some embodiments, the executing entity may determine the target indicator information that meets preset indicator conditions from the target indicator information sequence as the current indicator information. The preset indicator conditions may be pre-defined indicator conditions. For example, preset indicator conditions may be the minimum pixel grayscale mean or the maximum pixel grayscale standard deviation.

[0060] In some optional implementations of certain embodiments, the execution entity may determine the target indicator information that meets the preset indicator conditions in the target indicator information sequence as the current indicator information through the following steps: The first step is to determine the working mode corresponding to the above imaging request as the wind and light mode, and then determine the target indicator information with the smallest corresponding indicator value in the above target indicator information sequence as the current indicator information.

[0061] The second step is to determine the working mode corresponding to the above imaging request as the enhancement mode, and to determine the target indicator information with the largest indicator value in the above target indicator information sequence as the current indicator information.

[0062] Step 105: Determine the initial deflection angle in the initial deflection angle sequence that corresponds to the current indicator information as the starting target deflection angle.

[0063] In some embodiments, the executing entity may determine the initial deflection angle corresponding to the current indicator information in the initial deflection angle sequence as the starting target deflection angle. In practice, the executing entity may determine the initial deflection angle corresponding to the current indicator information in the initial deflection angle sequence as the starting target deflection angle.

[0064] Step 106: Generate the target deflection angle based on the initial target deflection angle.

[0065] In some embodiments, the execution entity may generate a target deflection angle based on the initial target deflection angle.

[0066] In some optional implementations of certain embodiments, the execution entity may generate the target deflection angle based on the initial target deflection angle through the following steps: The first step is to determine the initial target deflection angle as the current target deflection angle.

[0067] The second step is to determine half of the preset scan step size as the current scan step size.

[0068] The third step is to determine the left and right target deflection angles based on the current target deflection angle and the current scan step size. In practice, firstly, the executing entity can determine the left target deflection angle by the absolute value of the difference between the current target deflection angle and the current scan step size. Then, the right target deflection angle can be determined by the sum of the current target deflection angle and the current scan step size.

[0069] The fourth step is to generate a polarization image of the current target based on the aforementioned current target polarization angle. In practice, firstly, the executing entity can rotate the associated polarization device to the current target polarization angle. Then, it can control the associated image acquisition device to acquire images of the target area, thereby obtaining the current target polarization image.

[0070] The fifth step is to generate a left-side target polarization image based on the aforementioned left-side target polarization angle. In practice, firstly, the executing entity can rotate the associated polarization device to the left-side target polarization angle. Then, it can control the associated image acquisition device to acquire images of the target area, obtaining the left-side target polarization image.

[0071] Step six: Based on the aforementioned right-side target polarization angle, generate a right-side target polarization image. In practice, firstly, the executing entity can rotate the associated polarization device to the right-side target polarization angle. Then, it can control the associated image acquisition device to acquire images of the target area, obtaining the right-side target polarization image.

[0072] Step 7: Based on the aforementioned target image of the current deviation, determine the current deviation indicator information. In practice, the method by which the executing entity generates the current deviation indicator information is the same as the method by which the current indicator information in the current indicator information sequence is generated, and will not be repeated here.

[0073] Step 8: Based on the aforementioned left-side target deviation image, determine the left-side target deviation index information. In practice, the method by which the executing entity generates the left-side target deviation index information is the same as the method by which the current index information in the current index information sequence is generated, and will not be repeated here.

[0074] Step nine: Based on the aforementioned right-side target deviation image, determine the right-side target deviation index information. In practice, the method by which the executing entity generates the right-side target deviation index information is the same as the method by which the current index information in the current index information sequence is generated, and will not be repeated here.

[0075] Step 10: In response to determining that the current scan step size does not meet the step size scan stop condition, wherein the current scan step size can be less than 1°, the following loop steps are executed: The first sub-step, in response to determining that the current bias indicator information meets the current indicator screening criteria, executes the following current loop step: In the first current loop step, in response to determining that the absolute value of the difference between the current offset index information and the left target offset index information is less than a first preset threshold, and the absolute value of the difference between the current offset index information and the right target offset index information is less than the first preset threshold, a plateau center offset angle is generated based on the current target offset angle corresponding to the current offset index information. The current index selection condition can be that the working mode is wind-light mode and the left target offset index information is greater than the current offset index information, and the right target offset index information is greater than the current offset index information; or the working mode is enhancement mode and the left target offset index information is less than the current offset index information, and the right target offset index information is less than the current offset index information. The first preset threshold can be a pre-set threshold. For example, the first preset threshold can be 1% of the current index value.

[0076] In the second current loop step, in response to determining that the absolute value of the difference between the current bias indicator information and the left target bias indicator information is greater than or equal to the first preset threshold, or the absolute value of the difference between the current bias indicator information and the right target bias indicator information is greater than or equal to the first preset threshold, half of the current scan step size is determined as the update scan step size.

[0077] In the third current loop step, the updated scan step size is determined as the current scan step size, and the above loop steps are executed again.

[0078] The second sub-step, in response to determining that the current deflection index information meets the left-side index filtering conditions, determines the left-side target deflection angle as the current target deflection angle and the left-side target deflection index information as the current target deflection index information, updates the current target deflection angle and the current target deflection index information, and executes the above cyclic steps again. The left-side index filtering conditions can be: the working mode is wind and light mode, and the left-side target deflection index information is less than the current deflection index information and the left-side target deflection index information is less than or equal to the right-side target deflection index information; or the working mode is enhanced mode, and the left-side target deflection index information is greater than the current deflection index information and the left-side target deflection index information is greater than or equal to the right-side target deflection index information.

[0079] The third sub-step, in response to determining that the current deflection index information meets the right-side index filtering conditions, determines the right-side target deflection angle as the current target deflection angle and the right-side target deflection index information as the current target deflection index information, updates the current target deflection angle and the current target deflection index information, and executes the above cyclic steps again. The right-side index filtering conditions can be: the working mode is wind and light mode, and the right-side target deflection index information is less than the current deflection index information and the right-side target deflection index information is less than or equal to the left-side target deflection index information; or the working mode is enhancement mode, and the right-side target deflection index information is greater than the current deflection index information and the right-side target deflection index information is greater than or equal to the left-side target deflection index information.

[0080] In the eleventh step, in response to the determination that the current scanning step size meets the above step size scanning stop condition, the current target deflection angle is determined as the target deflection angle.

[0081] In addressing the technical problems mentioned above, the automatic polarization and optimization of polarization imaging equipment in the application scenario often presents the following challenges: Different users have different shooting goals (e.g., anti-glare effect or image contrast), and their set evaluation metrics also differ. When determining the optimal polarization angle based on these metrics, the conventional method involves comparing the current polarization angle with the left-side polarization angle and the right-side polarization angle, directly determining the current polarization angle as the final target polarization angle. This method easily overlooks situations where the determined current polarization angle falls within a relatively optimal polarization region with minimal error, resulting in low accuracy and consequently poor object sharpness and recognition in the captured image. This application scenario requires the following characteristics: precise positioning to the optimal or most stable polarization angle (i.e., the center of the "plateau" region of metric change), avoiding being locked at a less optimal point due to noise, measurement errors, or local extrema interference, thus ensuring image quality. Faced with these technical problems, we have decided to adopt the following solution: In some optional implementations of certain embodiments, the execution entity may, in response to determining that the absolute value of the difference between the current deviation index information and the left target deviation index information is less than a first preset threshold, and that the absolute value of the difference between the current deviation index information and the right target deviation index information is less than the first preset threshold, generate the plateau center deviation angle based on the current target deviation angle corresponding to the current deviation index information: Based on the deflection angle of the target on the left, perform the following first generation step: The first step is to determine the leftward target deflection angle based on the aforementioned left-side target deflection angle and the preset scanning step size. The preset scanning step size can be a pre-defined step size. Here, the preset scanning step size can be 1°. In practice, the initial leftward target deflection angle can be determined by subtracting the preset scanning step size from the left-side target deflection angle. The second step involves generating a left-shifted target image based on the initial left-shifted target offset angle. This is achieved by controlling the associated polarization device to perform an angular rotation corresponding to the initial left-shifted target offset angle, and by controlling the associated image acquisition device to acquire an image of the target area after the angular rotation, thus obtaining the left-shifted target image.

[0082] The third step is to generate left-shift index information based on the target image to be shifted to the left. In practice, the average gray value of the target image to be shifted to the left or the variance of the gray values ​​of the target image is determined as the left-shift index information.

[0083] Fourth step: In response to the determination that the difference between the left shift indicator information and the current deflection indicator information is less than 1% of the current deflection indicator information, update the initial left shift target deflection angle to the aforementioned left target deflection angle, and execute the first generation step again based on the updated left target deflection angle; Fifth step: In response to the determination that the difference between the left shift index information and the current deflection index information is greater than 1% of the current deflection index information, the initial left shift target deflection angle is determined as the left critical target deflection angle.

[0084] Based on the target deviation index information on the right, perform the following second generation step: The first step is to determine the rightward target deflection angle based on the aforementioned right-side target deflection angle and the preset scanning step size. The preset scanning step size can be a pre-defined step size. Here, the preset scanning step size can be 1°. In practice, the initial rightward target deflection angle can be determined by adding the preset scanning step size to the rightward target deflection angle. The second step involves generating a right-shifted target image based on the initial right-shifted target offset angle. This is achieved by controlling the associated polarization device to perform an angular rotation corresponding to the initial right-shifted target offset angle, and by controlling the associated image acquisition device to acquire an image of the target area after the angular rotation, thus obtaining the right-shifted target image.

[0085] The third step is to generate right-shift index information based on the aforementioned right-shifted target image. In practice, the average gray value of the right-shifted target image or the variance of the gray values ​​of the target image is determined as the right-shift index information.

[0086] Fourth step: In response to the determination that the difference between the right shift indicator information and the current deflection indicator information is less than 1% of the current deflection indicator information, the initial right shift target deflection angle is updated to the aforementioned right target deflection angle. Based on the updated right target deflection angle, the second generation step is executed again.

[0087] Fifth step: In response to the determination that the difference between the right shift index information and the current deflection index information is greater than 1% of the current deflection index information, the initial right shift target deflection angle is determined as the right critical target deflection angle.

[0088] The above-described technical solution and related content, as an inventive point of this disclosure, solve the technical problem that "because different users pursue different shooting goals (such as anti-glare effect or image contrast), their set evaluation indicators are also different. In the process of determining the target polarization angle with better imaging effect based on the set evaluation indicators, the conventional method can directly determine the current polarization angle as the final target polarization angle by comparing the current indicator corresponding to the current polarization angle with the left indicator corresponding to the left polarization angle and the right indicator corresponding to the right polarization angle. This easily overlooks the situation where the determined current polarization angle is in the better polarization region with a small error, resulting in low accuracy of the determined polarization angle, and consequently, poor object imaging clarity and object recognition in the captured image." Factors that further contribute to poor object sharpness and recognition in captured images are often as follows: Different users have different shooting goals (e.g., anti-glare effect or image contrast), and their set evaluation criteria also differ. In determining the optimal target polarization angle based on these criteria, the conventional method directly determines the final target polarization angle by comparing the current polarization angle with the left-side polarization angle and the right-side polarization angle. This method easily overlooks situations where the determined current polarization angle falls within the optimal polarization region with minimal error, resulting in low accuracy and consequently poor object sharpness and recognition in the captured image. Addressing these factors can further improve the object sharpness and recognition in captured images. To achieve this, the following first generation step is performed based on the left-side target polarization angle: Step 1: Determine the left-shift target polarization angle based on the aforementioned left-side target polarization angle and the preset moving scan step size. Step 2: Generate the left-shift target image based on the initial left-shift target polarization angle. The third step is to generate left-shift index information based on the aforementioned left-shifted target image. In practice, the average gray value of the left-shifted target image or the variance of the gray values ​​of the target image is determined as the left-shift index information. The fourth step is to update the initial left-shifted target offset angle to the aforementioned left-side target offset angle, in response to the determination that the difference between the left-shift index information and the current offset index information is less than 1% of the current offset index information. Based on the updated left-side target offset angle, the first generation step (the fifth step) is executed again. Then, in response to the determination that the difference between the left-shift index information and the current offset index information is greater than 1% of the current offset index information, the initial left-shifted target offset angle is determined as the left critical target offset angle. Thus, the left critical index information and the corresponding left critical target offset angle for the optimal polarization angle region with a small error can be obtained. That is, the left critical angle of the polarization angle region.Next, based on the target offset index information on the right side, the following second generation step is performed: First, determine the target offset angle to the right based on the aforementioned target offset angle and the preset moving scan step size. The preset moving scan step size can be a pre-defined moving scan step size. Here, the preset moving scan step size can be 1°. In practice, the initial target offset angle to the right side can be determined by adding the preset moving scan step size to the target offset angle. Second, generate a right-shifted target image based on the initial target offset angle. Control the associated polarization device to perform an angle rotation corresponding to the initial target offset angle, and control the associated image acquisition device to acquire an image of the target area after the angle rotation, obtaining a right-shifted target image. Third, generate right-shift index information based on the right-shifted target image. In practice, the average grayscale value of the right-shifted target image or the variance of the grayscale value of the target image is determined as the right-shift index information. Fourth step: In response to determining that the difference between the right-shift index information and the current offset index information is less than 1% of the current offset index information, the initial right-shift target offset angle is updated to the aforementioned right-side target offset angle. Based on the updated right-side target offset angle, the second generation step is executed again. Fifth step: In response to determining that the difference between the right-shift index information and the current offset index information is greater than 1% of the current offset index information, the initial right-shift target offset angle is determined as the right critical target offset angle. Based on the aforementioned left critical target offset angle and the aforementioned right critical target offset angle, the plateau center offset angle is determined. Thus, the plateau center offset angle, which characterizes the region with smaller polarization errors, can be obtained. Because within a polarization angle range with relatively small errors, by comparing the current polarization index information corresponding to the current polarization angle with the left-shift index information corresponding to the continuously left-shifting target polarization angle, the left-shifting target polarization angle representing the left-side critical value within the polarization angle range can be determined. Similarly, by comparing the current polarization index information corresponding to the current polarization angle with the right-shift index information corresponding to the continuously right-shifting target polarization angle, the right-shifting target polarization angle representing the right-side critical value within the polarization angle range can be determined. Furthermore, by using the left-shifting and right-shifting target polarization angles, the plateau center polarization angle, which represents a higher polarization accuracy, can be further determined—that is, the final target polarization angle. This further improves the object imaging clarity and object recognition in the captured images.

[0089] Step 107: Adjust the polarization of the associated polarization equipment according to the target polarization angle.

[0090] In some embodiments, the aforementioned execution entity may adjust the polarization of the associated polarization device according to the aforementioned target polarization angle.

[0091] In practice, the aforementioned actuator can control associated driving components to rotate the associated polarization device to the target polarization angle. These driving components can be any parts capable of driving the polarization device to rotate. Specifically, the driving components can be a drive board and a motor. For example, the driving components can be a 28BYJ-48 stepper motor and a ULN2003 motor drive board.

[0092] Optionally, after adjusting the polarization of the associated polarization device according to the target polarization angle, the execution entity can also control the associated image acquisition device to acquire an image of the polarization-adjusted target area. In practice, the execution entity can also control the associated image acquisition device to acquire an image of the polarization-adjusted target area.

[0093] The above-described embodiments of this disclosure have the following beneficial effects: the polarization adjustment method of the polarization device in some embodiments of this disclosure improves the object imaging clarity and object recognition of the captured images. Specifically, the reason for poor object imaging clarity and object recognition in captured images is that the polarization angle is determined by prior knowledge or random setting, resulting in greater randomness and uncertainty of the polarization angle determined under different environments. That is, the environmental adaptability of the determined optimal polarization angle is poor, which in turn leads to poor image quality, i.e., poor object imaging clarity and object recognition. Based on this, the polarization adjustment method of the polarization device in some embodiments of this disclosure firstly, in response to receiving an imaging request sent by the target user, generates an initial polarization angle sequence according to a preset scanning step size and a preset scanning length. Thus, an initial polarization angle sequence for regular scanning within the scanning range can be obtained. That is, the polarization angle is coarsely screened within the scanning range. Then, according to the above initial polarization angle sequence, the associated image acquisition device is controlled to acquire images of the target area to obtain a target image sequence. Thus, a target image sequence for coarsely screening and characterizing the regular scanning effect can be obtained. Next, based on the aforementioned target image sequence, a target indicator information sequence corresponding to the aforementioned imaging request is generated. The target images in the aforementioned target image sequence correspond to the target indicator information in the aforementioned target indicator information sequence. Thus, a target indicator information sequence can be obtained, allowing for physical evaluation of each scanning and imaging effect. Subsequently, the target indicator information in the aforementioned target indicator information sequence that meets preset indicator conditions is determined as the current indicator information. Thus, the current indicator information representing the superior scanning and imaging effect can be obtained. Next, the initial polarization angle in the aforementioned initial polarization angle sequence corresponding to the aforementioned current indicator information is determined as the starting target polarization angle. Thus, the starting target polarization angle representing the superior initial screening polarization effect can be obtained. Finally, based on the aforementioned starting target polarization angle, a target polarization angle is generated. Based on the aforementioned target polarization angle, polarization adjustment is performed on the associated polarization device. Thus, a target polarization angle with a better polarization effect after fine screening can be obtained, and polarization adjustment is performed, thereby obtaining an image with high object sharpness and object recognition. Because the polarization angles to be scanned are coarsely screened within the scanning range, a better starting target polarization angle can be determined, resulting in higher object clarity and recognition in the captured images. Furthermore, after the coarse screening of polarization angles, a fine screening is performed, further improving the environmental adaptability of the selected polarization angles, thereby further enhancing the object clarity and recognition in the captured images.

[0094] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of a polarization adjustment device for a polarization device, these device embodiments being similar to... Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0095] like Figure 2 As shown, the polarization adjustment device 200 of some embodiments includes: a first generation unit 201, a control unit 202, a second generation unit 203, a first determination unit 204, a second determination unit 205, a third generation unit 206, and a polarization adjustment unit 207. The system comprises the following components: a first generation unit 201 configured to generate an initial polarization angle sequence based on a preset scan step size and a preset scan length in response to receiving an imaging request from a target user; a control unit 202 configured to control an associated image acquisition device to acquire images of the target area based on the initial polarization angle sequence to obtain a target image sequence; a second generation unit 203 configured to generate a target indicator information sequence corresponding to the imaging request based on the target image sequence, wherein the target images in the target image sequence correspond to the target indicator information in the target indicator information sequence; a first determination unit 204 configured to determine the target indicator information in the target indicator information sequence that meets preset indicator conditions as the current indicator information; a second determination unit 205 configured to determine the initial polarization angle in the initial polarization angle sequence that corresponds to the current indicator information as the starting target polarization angle; a third generation unit 206 configured to generate a target polarization angle based on the starting target polarization angle; and a polarization adjustment unit 207 configured to adjust the polarization of an associated polarization device based on the target polarization angle.

[0096] It is understandable that the units described in the device 200 are related to the reference. Figure 1 The steps in the described method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the device 200 and the units contained therein, and will not be repeated here.

[0097] The following is for reference. Figure 3 It shows a schematic diagram of the structure of an electronic device 300 (e.g., a computing device) suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.

[0098] like Figure 3As shown, the electronic device 300 may include a processing unit 301 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. The RAM 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, ROM 302, and RAM 303 are interconnected via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0099] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 3 Each box shown can represent a device or multiple devices as needed.

[0100] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 309, or installed from storage device 308, or installed from ROM 302. When the computer program is executed by processing device 301, it performs the functions defined in the methods of some embodiments of this disclosure.

[0101] It should be noted that, in some embodiments of this disclosure, the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0102] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0103] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: in response to receiving an imaging request sent by a target user, generate an initial polarization angle sequence based on a preset scan step size and a preset scan length; control an associated image acquisition device to acquire images of the target area based on the initial polarization angle sequence, obtaining a target image sequence; generate a target indicator information sequence corresponding to the imaging request based on the target image sequence, wherein the target images in the target image sequence correspond to the target indicator information in the target indicator information sequence; determine the target indicator information in the target indicator information sequence that meets preset indicator conditions as the current indicator information; determine the initial polarization angle in the initial polarization angle sequence corresponding to the current indicator information as the starting target polarization angle; generate a target polarization angle based on the starting target polarization angle; and adjust the polarization of an associated polarization device based on the target polarization angle.

[0104] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0105] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0106] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including a first generation unit, a control unit, a second generation unit, a first determination unit, a second determination unit, a third generation unit, and a polarization adjustment unit. The names of these units do not necessarily limit the specific unit; for example, the first generation unit may also be described as "a unit that, in response to receiving an imaging request from a target user, generates an initial polarization angle sequence based on a preset scan step size and a preset scan length."

[0107] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0108] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.

Claims

1. A polarization adjustment method for a polarization device, comprising: In response to receiving an imaging request from the target user, an initial offset angle sequence is generated based on a preset scan step size and a preset scan length. Based on the initial bias angle sequence, the associated image acquisition device is controlled to acquire images of the target area to obtain a target image sequence. Based on the target image sequence, a target indicator information sequence corresponding to the imaging request is generated, wherein the target images in the target image sequence correspond to the target indicator information in the target indicator information sequence; The target indicator information that meets the preset indicator conditions in the target indicator information sequence is determined as the current indicator information; The initial deflection angle in the initial deflection angle sequence that corresponds to the current indicator information is determined as the starting target deflection angle; Based on the initial target deflection angle, generate the target deflection angle; Polarization adjustment is performed on the associated polarization device based on the target polarization angle.

2. The method according to claim 1, wherein, The step of responding to receiving an imaging request from the target user and generating an initial offset angle sequence based on a preset scan step size and a preset scan length includes: The ratio of the preset scan length to the preset scan step length is determined as the number of scan points; The number of scan points is rounded down to obtain the rounded number of scan points as the rounded number of scan points. Based on the rounded scan point number information and the preset sequence number generation function, a scan point sequence number sequence is generated; For each scan point number in the scan point number sequence, the product of the preset scan step size and the scan point number is determined as the initial starting angle. The sequence of the obtained initial deflection angles is determined as the initial deflection angle sequence.

3. The method according to claim 1, wherein, The step of controlling the associated image acquisition device to acquire images of the target area based on the initial offset angle sequence to obtain a target image sequence includes: For each initial polarization angle in the initial polarization angle sequence, the associated polarization device is controlled to perform an angle rotation corresponding to the initial polarization angle, and the associated image acquisition device is controlled to acquire an image of the target area after the angle rotation to obtain a target image; The obtained target images are sorted to obtain a target image sequence.

4. The method according to claim 1, wherein, Before generating the target indicator information sequence corresponding to the imaging request based on the target image sequence, the method further includes: For each target image in the target image sequence, perform the following steps: The target image is converted to grayscale to obtain a grayscale target image. The grayscale target image is determined as the target image, and the target image is updated accordingly; The updated target images are defined as the target image set. The target image set is sorted to obtain a target image sequence.

5. The method according to claim 1, wherein, The step of determining the target indicator information in the target indicator information sequence that meets the preset indicator conditions as the current indicator information includes: In response to determining that the working mode corresponding to the imaging request is a landscape mode, the target indicator information with the smallest corresponding indicator value in the target indicator information sequence is determined as the current indicator information, wherein the landscape mode characterizes the extinction effect of the image; In response to determining that the working mode corresponding to the imaging request is the enhancement mode, the target indicator information with the largest corresponding indicator value in the target indicator information sequence is determined as the current indicator information, wherein the enhancement mode characterizes the level of detail of the image.

6. The method according to claim 1, wherein, The step of generating a target indicator information sequence corresponding to the imaging request based on the target image sequence includes: For each target image in the target image sequence, perform the following steps: The image width of the target image is determined as the target image width; The image height of the target image is determined as the target image height; The number of pixels in the target image is determined based on the target image width and the target image height. The sum of the gray values ​​of each pixel in the target image is determined as the total pixel gray value information; The ratio of the total pixel grayscale value information to the number of pixels in the target image is determined as the average pixel grayscale value information; In response to determining that the working mode corresponding to the imaging request is the landscape mode, the pixel grayscale average information is determined as the target index information; In response to determining that the working mode corresponding to the imaging request is the enhancement mode, the pixel grayscale standard deviation information is determined as the target index information based on the grayscale target image and the pixel grayscale mean information; The generated target indicator information is defined as a target indicator information set; The target indicator information set is sorted to obtain a target indicator information sequence.

7. The method according to claim 1, wherein, The step of generating the target deflection angle based on the initial target deflection angle includes: The initial target deflection angle is determined as the current target deflection angle; The current scan step size is determined as half of the preset scan step size; Based on the current target deflection angle and the current scan step size, determine the deflection angle of the left target and the deflection angle of the right target; Generate a target deflection image based on the current target deflection angle; Generate a left target deflection image based on the left target deflection angle; Generate a right-side target deflection image based on the right-side target deflection angle; Based on the current target image of the deviation, determine the current deviation index information; Based on the left target deviation image, determine the left target deviation index information; Based on the target deviation image on the right, determine the target deviation index information on the right; In response to determining that the current scan step size does not meet the step size scan stop condition, the following loop steps are executed: In response to the determination that the current bias indicator information meets the current indicator screening criteria, the following current loop step is executed: In response to determining that the absolute value of the difference between the current deviation index information and the deviation index information of the left target is less than a first preset threshold, and the absolute value of the difference between the current deviation index information and the deviation index information of the right target is less than the first preset threshold, the plateau center deviation angle is generated based on the current target deviation angle corresponding to the current deviation index information. In response to determining that the absolute value of the difference between the current bias indicator information and the left target bias indicator information is greater than or equal to the first preset threshold, or the absolute value of the difference between the current bias indicator information and the right target bias indicator information is greater than or equal to the first preset threshold, half of the current scan step size is determined as the updated scan step size. Set the updated scan step size to the current scan step size, and repeat the above loop steps. In response to determining that the current bias indicator information meets the left-side indicator filtering conditions, The left target deflection angle is determined as the current target deflection angle, and the left target deflection index information is determined as the current target deflection index information. The current target deflection angle and the current target deflection index information are updated, and the above loop steps are executed again. In response to determining that the current bias indicator information meets the indicator filtering conditions on the right, The target deflection angle on the right is determined as the current target deflection angle, and the target deflection index information on the right is determined as the current target deflection index information, so as to update the current target deflection angle and the current target deflection index information, and the above loop steps are executed again. In response to determining that the current scan step size satisfies the step size scan stop condition, the current target deflection angle is determined as the target deflection angle.

8. A polarization adjustment device for a polarization apparatus, comprising: The first generation unit is configured to generate an initial offset angle sequence in response to receiving an imaging request sent by the target user, based on a preset scan step size and a preset scan length. The control unit is configured to control an associated image acquisition device to acquire images of the target area according to the initial deflection angle sequence, thereby obtaining a target image sequence; The second generation unit is configured to generate a target indicator information sequence corresponding to the imaging request based on the target image sequence, wherein the target images in the target image sequence correspond to the target indicator information in the target indicator information sequence; The first determining unit is configured to determine the target indicator information in the target indicator information sequence that meets the preset indicator conditions as the current indicator information; The second determining unit is configured to determine the initial deflection angle in the initial deflection angle sequence that corresponds to the current index information as the starting target deflection angle. The third generation unit is configured to generate a target deflection angle based on the initial target deflection angle. The polarization adjustment unit is configured to adjust the polarization of the associated polarization device according to the target polarization angle.

9. An electronic device, comprising: One or more processors; Electric motor; Storage device, on which one or more programs are stored, When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-7.

10. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-7.