CN-122018182-A - Polarization adjustment method and device for polarization equipment, electronic equipment and readable medium
Abstract
Embodiments of the present disclosure disclose a polarization device polarization adjustment method, apparatus, electronic device, and readable medium. The method comprises the steps of responding to an imaging request, generating an initial polarizing angle sequence according to a preset scanning step length and a preset scanning length, controlling an image acquisition device to acquire images of a target area according to the initial polarizing angle sequence 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 preset index conditions in the target index information sequence as current index information, determining the initial polarizing angle corresponding to the current index information in the initial polarizing angle sequence as an initial target polarizing angle, generating a target polarizing angle according to the initial target polarizing angle, and carrying out polarization adjustment on polarization equipment according to the target polarizing angle. This embodiment improves the object imaging definition and object recognition of the photographed image.
Inventors
- ZHOU WENBO
- Zhong Aiqi
Assignees
- 广东中星电子有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20260206
Claims (10)
- 1. A polarization adjustment method of a polarization device, comprising: generating an initial polarizing angle sequence according to a preset scanning step length and a preset scanning length in response to receiving an imaging request sent by a target user; According to the initial polarization angle sequence, controlling the associated image acquisition equipment to acquire images of a 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, wherein a target image in the target image sequence corresponds to target index information in the target index information sequence; determining target index information meeting preset index conditions in the target index information sequence as current index information; Determining an initial polarizing angle corresponding to the current index information in the initial polarizing angle sequence as an initial target polarizing angle; Generating a target polarizing angle according to the initial target polarizing angle; and carrying out polarization adjustment on the associated polarization equipment according to the target polarization angle.
- 2. The method of claim 1, wherein generating the initial polarization angle sequence according to the preset scan step size and the preset scan length in response to receiving the imaging request sent by the target user comprises: Determining the ratio of the preset scanning length to the preset scanning step length as the number of scanning points information; rounding the scanning point quantity information to obtain rounded scanning point quantity information serving as rounded scanning point quantity information; generating a function according to the rounding scanning point quantity information and a preset sequence number, and generating a scanning point sequence number; for each scanning point sequence number in the scanning point sequence number sequence, determining the product of the preset scanning step length and the scanning point sequence number as an initial polarizing angle; and determining the sequence of each initial polarizing angle as an initial polarizing angle sequence.
- 3. The method according to claim 1, wherein the controlling the associated image capturing device to capture an image of the target area according to the initial polarization angle sequence, to obtain the target image sequence, includes: for each initial polarizing angle in the initial polarizing angle sequence, controlling the associated polarizing device to perform angle rotation corresponding to the initial polarizing angle, and controlling the associated image acquisition device to perform image acquisition on the target area subjected to the angle rotation to obtain a target image; And sequencing the obtained target images to obtain a target image sequence.
- 4. The method of claim 1, wherein prior to said generating a target index information sequence corresponding to said imaging request from said target image sequence, said method further comprises: For each target image in the sequence of target images, performing the steps of: Carrying out graying treatment on the target image to obtain a target image after graying treatment as a graying target image; Determining the graying target image as a target image so as to update the target image; Determining each updated target image as a target image set; and sequencing the target image set to obtain a target image sequence.
- 5. The method of claim 1, wherein the determining, as the current index information, the target index information satisfying the preset index condition in the target index information sequence includes: In response to determining that the working mode corresponding to the imaging request is a wind-light mode, determining target index information with the minimum index value corresponding to the target index information sequence as current index information, wherein the wind-light mode represents the extinction effect of an image; And determining the target index information with the maximum index value corresponding to the target index information sequence as current index information in response to determining that the working mode corresponding to the imaging request is an enhancement mode, wherein the enhancement mode represents the detail degree of the image.
- 6. The method of claim 1, wherein the generating a target index information sequence corresponding to the imaging request from the target image sequence comprises: For each target image in the sequence of target images, performing the steps of: Determining an image width of the target image as a target image width; Determining the image height of the target image as a target image height; determining target image pixel quantity information according to the target image width and the target image height; Determining the sum of gray values of all pixel points in the target image as pixel gray total value information; determining the ratio of the total pixel gray value information to the target image pixel quantity information as pixel gray average value information; in response to determining that the working mode corresponding to the imaging request is a wind-light mode, determining the pixel gray scale mean value information as target index information; In response to determining that the working mode corresponding to the imaging request is an enhancement mode, determining pixel gray standard deviation information as target index information according to the graying target image and the pixel gray average information; determining each generated target index information as a target index information set; and sequencing all the target index information included in the target index information set to obtain a target index information sequence.
- 7. The method of claim 1, wherein the generating a target polarizing angle from the starting target polarizing angle comprises: Determining the initial target polarizing angle as a current target polarizing angle; Determining one half of the preset scanning step length as the current scanning step length; Determining a left target polarizing angle and a right target polarizing angle according to the current target polarizing angle and the current scanning step length; Generating a current target polarized image according to the current target polarized angle; Generating a left target polarized image according to the left target polarized angle; Generating a right target polarized image according to the right target polarized angle; Determining current polarization index information according to the current polarization target image; Determining left target polarization index information according to the left target polarization image; determining right target polarization index information according to the right target polarization image; in response to determining that the current scan step does not satisfy a step scan stop condition, performing the following looping steps: in response to determining that the current polarizing index information meets the current index screening condition, performing the following current loop steps: generating a plateau center polarizing angle according to the current target polarizing angle corresponding to the current polarizing index information in response to determining that the absolute value of the difference between the current polarizing index information and the left target polarizing index information is smaller than a first preset threshold value and the absolute value of the difference between the current polarizing index information and the right target polarizing index information is smaller than the first preset threshold value; In response to determining that the absolute value of the difference between the current polarizing index information and the left-side target polarizing index information is greater than or equal to the first preset threshold, or that the absolute value of the difference between the current polarizing index information and the right-side target polarizing index information is greater than or equal to the first preset threshold, determining half of the current scanning step as an updated scanning step; and determining the updated scanning step length as the current scanning step length, and executing the circulating steps again. In response to determining that the current polarization indicator information satisfies a left indicator screening condition, Determining the left target polarizing angle as a current target polarizing angle and determining left target polarizing index information as current target polarizing index information so as to update the current target polarizing angle and the current target polarizing index information, and executing the circulating steps again; In response to determining that the current polarization indicator information satisfies a right indicator screening condition, Determining the right target polarizing angle as a current target polarizing angle, and determining the right target polarizing index information as current target polarizing index information so as to update the current target polarizing angle and the current target polarizing index information, and executing the circulating steps again; And in response to determining that the current scanning step length meets the step length scanning stop condition, determining a current target polarizing angle as a target polarizing angle.
- 8. A polarization adjustment apparatus for a polarizing device, comprising: the first generation unit is configured to generate an initial polarization angle sequence according to a preset scanning step length and a preset scanning length in response to receiving an imaging request sent by a target user; The control unit is configured to control the associated image acquisition equipment to acquire images of the target area according to the initial polarization angle sequence to obtain a target image sequence; A second generating unit configured to generate a target index information sequence corresponding to the imaging request according to the target image sequence, wherein a target image in the target image sequence corresponds to target index information in the target index information sequence; a first determining unit configured to determine target index information satisfying a preset index condition in the target index information sequence as current index information; a second determining unit configured to determine an initial polarizing angle corresponding to the current index information in the initial polarizing angle sequence as a starting target polarizing angle; a third generating unit configured to generate a target polarizing angle according to the initial target polarizing angle; And a polarization adjustment unit configured to perform polarization adjustment on the associated polarization device according to the target polarization angle.
- 9. An electronic device, comprising: one or more processors; A motor; a storage device having one or more programs stored thereon, When executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
- 10. A computer readable medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of any of claims 1-7.
Description
Polarization adjustment method and device for polarization equipment, electronic equipment and readable medium Technical Field Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a method and apparatus for adjusting polarization of a polarization device, an electronic device, and a readable medium. Background With the development of computer technology and optical technology, polarization imaging technology has also advanced greatly. The polarization information generally reflects the surface features, shape, texture, roughness, etc. of the substance itself. Thus, polarization in combination with imaging enables more comprehensive target and background information to be obtained. Currently, in performing an adjustment operation on a polarization apparatus, it is generally adopted to (1) acquire a polarization angle to be rotated by a priori knowledge (e.g., personal experience of an operator) or a randomly set manner, then rotate the polarization apparatus (e.g., a polarizer) to a corresponding polarization angle, and perform image capturing. However, when the above manner is adopted, there are often the following technical problems: the polarization angle is determined by priori knowledge or random setting, so that randomness and uncertainty of the determined polarization angle under different environments are larger, namely, the environment adaptability of the determined optimal polarization angle is poorer, and further acquired image quality is poorer, and object imaging definition and object recognition degree are poorer. Continuing, in the process of carrying out polarization adjustment by adopting the polarization equipment and determining the polarization angle with better imaging effect, the following technical problems further exist: Because different users pursue different shooting targets (such as extinction effect or image contrast ratio), the set measurement indexes are different, and in the process of determining the target polarization angle with better imaging effect based on the set measurement indexes, the conventional determination mode can directly determine that the current polarization angle is the final target polarization angle according to the comparison of the current index corresponding to the current polarization angle and the left index corresponding to the left polarization angle and the right index corresponding to the right polarization angle. The condition that the determined current polarization angle is in the better polarization area with smaller error is easily ignored, so that the accuracy of the determined polarization angle is lower, and further, the object imaging definition and the object recognition degree of a shot image are poorer. The above information disclosed in this background section is only for enhancement of understanding of the background of the inventive concept and, therefore, may contain information that does not form the prior art that is already known to those of ordinary skill in the art in this country. Disclosure of Invention The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter. Some embodiments of the present disclosure propose methods, apparatus, electronic devices, computer readable media and program products for polarization adjustment of a polarizing device to address one or more of the technical problems mentioned in the background section above. In a first aspect, some embodiments of the present disclosure provide a method for polarization adjustment of a polarizing device, where the method includes generating an initial polarizing angle sequence according to a preset scanning step size and a preset scanning length in response to receiving an imaging request sent by a target user, controlling an associated image acquisition device to acquire an image of a target area according to the initial polarizing angle sequence to obtain a target image sequence, generating a target index information sequence corresponding to the imaging request according to the target image sequence, wherein a target image in the target image sequence corresponds to target index information in the target index information sequence, determining target index information meeting a preset index condition in the target index information sequence as current index information, determining an initial polarizing angle corresponding to the current index information in the initial polarizing angle sequence as an initial target polarizing angle, generating a target polarizing angle according to the initial polarizing angle, and performing polarization adjustment on the associated polarizing device according to the target polarizing angle. In a second aspect,