Brightness adjustment method, system and scanning device for projector

Through automated image processing technology, the target brightness and darkness value of the projector are calculated, which solves the problem of low scanning brightness efficiency in human operation and improves the projector's brightness adjustment efficiency and scanning accuracy.

CN118450099BActive Publication Date: 2025-02-28HANGZHOU TANGZHEN TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410527038.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2025-02-28
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

In the prior art, the scanning brightness of the projector is low and the accuracy is low through artificial operation, making it difficult to meet the needs of a diverse scanning model.

Method used

By obtaining the scanned model image of the object to be measured, the image is processed to determine the outline of the target area, the target brightness value and target darkness value are calculated based on the grayscale histogram and grayscale integral map, and the projection brightness of the projector is automatically adjusted.

Benefits of technology

It realizes rapid and automatic adjustment of projector brightness according to the contour and grayscale characteristics of the scanned model image, improving brightness adjustment efficiency and scanning accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118450099B_ABST
    Figure CN118450099B_ABST
Patent Text Reader

Abstract

The present invention provides a brightness adjustment method, system and scanning device for a projector, the method comprising: obtaining a scanned model image of an object to be measured; processing the scanned model image to determine a target area occupied by the scanned model image based on the contour of the processed scanned model image; determining a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area, and adjusting the projection brightness of the projector according to the target brightness value and the target darkness value. The brightness adjustment method, system and scanning device of the present invention solve the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of brightness adjustment methods for projectors, and in particular to a brightness adjustment method, system and scanning equipment for projectors. Background Art

[0002] When a 3D scanner is scanning a model, the projection brightness of the projector will directly affect the image quality captured by the camera, thereby affecting the scanning accuracy of the scanned model. Therefore, it is particularly important to adjust the scanning brightness of the scanner to an appropriate brightness value before scanning the model.

[0003] In actual use, due to the diversity of scanning models and different colors, manual adjustment can no longer meet the needs. At the same time, manually adjusting to a suitable scanning brightness often requires certain scanning experience, which is not friendly to entry-level operators.

[0004] Therefore, it is necessary to propose a projection brightness adjustment solution for a projector to solve the above technical problems. Summary of the invention

[0005] The object of the present invention is to provide a brightness adjustment method, system and scanning device for a projector, so as to solve the problem in the prior art that the scanning brightness is adjusted by manual operation, resulting in low adjustment efficiency and low adjustment accuracy.

[0006] To achieve the above object, in a first aspect, a brightness adjustment method for a projector is provided, the method comprising:

[0007] Acquire a scanned model image of the object to be measured;

[0008] Processing the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image;

[0009] A target brightness value and a target darkness value of the scanned model image are determined based on the grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value.

[0010] As a further improvement of the present invention, determining a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area includes:

[0011] Determine a grayscale histogram within the target area, and determine a corresponding grayscale integral map based on the grayscale histogram;

[0012] A target brightness value and a target darkness value of the scanned model image are determined based on the coordinates of the grayscale integral map.

[0013] As a further improvement of the present invention, determining the target brightness value and the target darkness value of the scanned model image based on the coordinates of the grayscale integral image includes:

[0014] Traversing each coordinate of the grayscale integral image at different grayscale intervals to determine two target coordinates whose vertical coordinate difference corresponding to adjacent horizontal coordinates is greater than a preset difference;

[0015] The smaller of the two target coordinates is used as the target darkness value, and the larger one is used as the target brightness value.

[0016] As a further improvement of the present invention, the scanned model image is processed to determine the target area occupied by the scanned model image based on the contour of the processed scanned model image, including:

[0017] Performing edge extraction on the scanned model image to obtain an edge model image;

[0018] The edge model image is expanded, and the contour of the expanded edge model image is extracted as the target area occupied by the scanned model image.

[0019] As a further improvement of the present invention, adjusting the projection brightness of the projector according to the target brightness value and the target darkness value includes:

[0020] Determining whether the target brightness value satisfies a scanning condition, and when the target brightness value satisfies the scanning condition, determining an initial maximum brightness value of the projector as a current scanning brightness;

[0021] If the target brightness value does not meet the scanning condition, it is determined whether the target darkness value meets the scanning condition, so that when the target darkness value meets the scanning condition, the initial minimum brightness value of the projector is determined as the current scanning brightness.

[0022] As a further improvement of the present invention, determining whether the target brightness value meets the scanning condition includes:

[0023] Determine whether the target brightness value is greater than a preset brightness value;

[0024] If the target brightness value is greater than the preset brightness value, the target brightness value satisfies the scanning condition.

[0025] As a further improvement of the present invention, determining whether the target darkness value satisfies the scanning condition includes:

[0026] Determine whether the target darkness value is less than a preset darkness value or whether the brightness difference between the target brightness value and the target darkness value is less than a preset difference;

[0027] If the target darkness value is smaller than the preset darkness value or the light-darkness difference value is smaller than the preset difference value, the target darkness value satisfies the scanning condition.

[0028] As a further improvement of the present invention, after determining the initial maximum brightness value of the projector as the current scanning brightness or after determining the initial minimum brightness value of the projector as the current scanning brightness, the method further comprises:

[0029] The average value of the initial maximum brightness value and the initial minimum brightness value is used as the brightness to be scanned for the next scan of the projector.

[0030] In a second aspect, a brightness adjustment system for a projector is also provided, comprising:

[0031] An image acquisition unit, used to acquire a scanned model image of the object to be measured;

[0032] An image processing unit, configured to process the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image;

[0033] A control unit is used to determine a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value.

[0034] In a third aspect, a scanning device is also provided, including:

[0035] The brightness adjustment system as described in the first aspect is used to adjust the projection brightness of the projector;

[0036] The projector is used to project light of a scanning brightness determined by the brightness adjustment system onto the object to be measured.

[0037] In a fourth aspect, the present invention provides a terminal device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the method described in the first aspect.

[0038] In a fifth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0039] The beneficial effects of the present invention are:

[0040] The brightness adjustment method for a projector of the present invention first obtains a scanned model image of an object to be measured, then processes the scanned model image to determine the area occupied by the scanned model image according to the contour of the scanned model image, and finally determines the target brightness value and target darkness value of the scanned model image according to the grayscale histogram of the target area, thereby automatically adjusting the projection brightness of the projector according to the target brightness value and target darkness value. Compared with the solution of manually adjusting the brightness in the prior art, the present invention can quickly obtain the brightness value according to the area occupied by the contour of the acquired scanned model image, so as to automatically adjust the projection brightness of the projector according to the brightness value, effectively improving the brightness adjustment efficiency of the projection, thereby effectively improving the scanning accuracy of the scanner, and solving the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic flow chart of a brightness adjustment method for a projector according to an embodiment of the present invention;

[0042] Figure 2 is a schematic flow chart of a brightness adjustment method for a projector according to another embodiment of the present invention;

[0043] Figure 3 A schematic diagram of a scanned model image in the present invention;

[0044] Figure 4 for Figure 3 Schematic diagram of edge model image after edge extraction;

[0045] Figure 5 for Figure 4 Schematic diagram of the edge model image after dilation;

[0046] Figure 6 for Figure 5 Schematic diagram of extracting the maximum contour of the dilated scanned image model;

[0047] Figure 7 A schematic flow chart of a brightness adjustment method for a projector according to another embodiment of the present invention;

[0048] Figure 8 It is a schematic diagram of a grayscale histogram;

[0049] Fig. 9 It is a schematic diagram of the grayscale integral image;

[0050] Fig.10 A schematic flow chart of a brightness adjustment method for a projector according to another embodiment of the present invention;

[0051] Fig.11A schematic flow chart of a brightness adjustment method for a projector according to another embodiment of the present invention;

[0052] Fig.12 A schematic structural block diagram of a brightness adjustment system for a projector according to an embodiment of the present invention;

[0053] Fig.13 A topological structure diagram of a computer-readable storage medium disclosed in the present invention. DETAILED DESCRIPTION

[0054] The present invention is described in detail below in conjunction with the various embodiments shown in the accompanying drawings, but it should be noted that these embodiments are not limitations of the present invention, and any equivalent transformations or substitutions in functions, methods, or structures made by ordinary technicians in the field based on these embodiments are all within the scope of protection of the present invention.

[0055] The technical solutions provided by various embodiments of the present invention are described in detail below in conjunction with the accompanying drawings.

[0056] Embodiment 1:

[0057] Figure 1 The present invention is a schematic flow chart of a brightness adjustment method for a projector (hereinafter referred to as "brightness adjustment method" or "method"), which is used to solve the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art. The method includes:

[0058] Step 102: Obtain a scanned model image of the object to be measured.

[0059] The scanned model image of the object to be measured is collected under the default projection brightness environment. The default brightness is determined by the hardware characteristics of the projector. It is sufficient to ensure that the object image can be collected under the brightness environment. Generally, the grayscale value of the area occupied by the model in the scanned model image collected under the default projection brightness has an obvious gradient difference with the surrounding area.

[0060] Step 104: Process the scanned model image to determine the target area occupied by the scanned model image based on the contour of the processed scanned model image.

[0061] Among them, Figure 2 As shown, the specific operations in step 104 include:

[0062] Step 202. Scan the model image (the scanned model image is used as the original image) Figure 3 As shown) edge extraction is performed to obtain an edge model image, such as Figure 4 As shown. Among them, the edge extraction operator can be used to extract the edge of the scanned model image.

[0063] Step 204: dilate the edge model image and extract the contour of the dilated edge model image as the target area occupied by the scanned model image. Figure 5 As shown, all contours in the expanded image are then extracted, and the largest contour area (such as Figure 6 The target area occupied by the scanned model image is determined by the number of closed contour points, that is, the contour area with the largest number of closed contour points is determined as the target area occupied by the scanned model image.

[0064] Step 106: Determine a target brightness value and a target darkness value of the scanned model image based on the grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value.

[0065] like Figure 7 As shown, the specific operation process of "determining the target brightness value and the target darkness value of the scanned model image based on the grayscale histogram of the target area" in step 106 includes:

[0066] Step 702: Determine the grayscale histogram in the target area, and determine the corresponding grayscale integral map based on the grayscale histogram. When calculating the grayscale histogram, only the grayscale values ​​of the pixels in the target area are extracted, and the grayscale values ​​of the pixels are normalized to obtain the corresponding grayscale histogram, such as Figure 8 shown.

[0067] While extracting the pixel grayscale value, the number of pixels is counted to calculate the grayscale integral image.

[0068] Among them, the first value of the grayscale integral image is the first value of the grayscale histogram, the second value of the grayscale integral image is the first value of the grayscale integral image plus the second value of the grayscale histogram, and the third value of the grayscale integral image is the second value of the grayscale integral image plus the third value of the grayscale histogram. The grayscale integral image is obtained by analogy, and then the grayscale integral image is normalized to obtain the final normalized grayscale integral image, such as Fig. 9 As shown. Among them, Fig. 9 The horizontal axis represents the gray level of each pixel, and the vertical axis represents the integral value of each pixel.

[0069] Step 704: Determine the target brightness value and target darkness value of the scanned model image based on the coordinates of the grayscale integral image.

[0070] Combination Fig. 9 and Fig.10 To illustrate, the operation of step 704 specifically includes:

[0071] Step 1002. Traverse each coordinate of the grayscale integral image at different grayscale intervals to determine the vertical coordinate difference corresponding to the adjacent horizontal coordinates that is greater than the preset difference (i.e. Fig. 9 Two target coordinates of the first preset value in .

[0072] Step 1004: The smaller horizontal coordinate of the two target coordinates is used as the target darkness value, and the larger horizontal coordinate is used as the target brightness value.

[0073] It should be understood that on the grayscale integral graph, each coordinate is traversed from the grayscale interval of 1 (i.e., the interval between two adjacent horizontal coordinates is 1), and the two vertical coordinate values ​​corresponding to the adjacent horizontal coordinates in the grayscale interval are subtracted to determine whether the vertical coordinate difference is greater than the first preset value. If the vertical coordinate difference is greater than the first preset value, the corresponding two horizontal coordinates are the target coordinates to be obtained; otherwise, the grayscale interval is gradually increased (such as the interval is 2, 3, 4, 5...) to continue traversing each coordinate until two adjacent coordinates with a vertical coordinate difference greater than the preset difference are found. Fig. 9 The horizontal axis value 50 is the target darkness value, and the horizontal axis value 80 is the target brightness value.

[0074] The brightness adjustment method for the projector of this embodiment first obtains the scanned model image of the object to be measured, and then processes the scanned model image to determine the area occupied by the scanned model image according to the contour of the scanned model image, and finally determines the target brightness value and target darkness value of the scanned model image according to the grayscale histogram of the target area, so as to automatically adjust the projection brightness of the projector according to the target brightness value and target darkness value. Compared with the solution of manually adjusting the brightness in the prior art, this embodiment can quickly obtain the brightness value according to the area occupied by the contour of the acquired scanned model image, so as to automatically adjust the projection brightness of the projector according to the brightness value, effectively improving the adjustment efficiency of the projection brightness, thereby effectively improving the scanning accuracy of the scanner, and solving the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art.

[0075] In the above embodiment, if Fig.11 As shown, the projection brightness of the projector is adjusted according to the target brightness value and the target darkness value, including:

[0076] Step 110: Determine whether the target brightness value meets the scanning condition. When the target brightness value meets the scanning condition, determine the initial maximum brightness value of the projector as the current scanning brightness.

[0077] Wherein, determining whether the target brightness value meets the scanning condition includes:

[0078] Step 1101. Determine whether the target brightness value is greater than a preset brightness value;

[0079] Step 1102: If the target brightness value is greater than the preset brightness value, the target brightness value satisfies the scanning condition, so that the initial maximum brightness value of the projector is determined as the current scanning brightness.

[0080] Step 111. If the target brightness value does not meet the scanning condition, determine whether the target darkness value meets the scanning condition, so that when the target darkness value meets the scanning condition, the initial minimum brightness value of the projector is determined as the current scanning brightness.

[0081] Wherein, determining whether the target darkness value meets the scanning condition includes:

[0082] Step 1103: Determine whether the target darkness value is less than a preset darkness value or whether the brightness difference between the target brightness value and the target darkness value is less than a preset difference.

[0083] Step 1104: If the target darkness value is less than the preset darkness value or the light-darkness difference value is less than the preset difference value, the target darkness value satisfies the scanning condition.

[0084] Wherein, after determining the initial maximum brightness value of the projector as the current scanning brightness or after determining the initial minimum brightness value of the projector as the current scanning brightness, the method includes:

[0085] Step 111. Taking the average of the initial maximum brightness value and the initial minimum brightness value as the brightness to be scanned for the next scan of the projector.

[0086] It should be understood that this embodiment actually adjusts the projection brightness by dichotomy. Before making adjustments, the initial minimum brightness value and the initial maximum brightness value are set according to the hardware characteristics and experience of the projector, and the initial maximum brightness value is greater than the initial minimum brightness value as an iteration condition. When making specific adjustments, it is necessary to first determine whether the target brightness value is greater than the preset brightness value. When the target brightness value is greater than the preset brightness value, the initial maximum brightness value is updated to the current scanning brightness, and then the next scanning brightness is updated to the average of the initial minimum brightness value and the current scanning brightness value; otherwise, it is determined whether the target darkness value is less than the preset darkness value or whether the brightness difference between the initial maximum brightness value and the initial minimum brightness value is less than the preset difference. If the conditions are met, the initial minimum brightness is updated to the current scanning brightness, and then the average of the initial maximum brightness and the current scanning brightness is updated to the next scanning brightness. If none of the above judgment results meet the adjustment requirements, the iteration process ends, indicating that the current projection brightness meets the scanning requirements. Finally, the obtained brightness value is used as the current scanning brightness to shoot the scanned model image of the object to be scanned, and then the target brightness value and the target darkness value are calculated according to the grayscale integral map of the target area of ​​the scanned model image, and the iterative process is entered, and this is repeated until the brightness that meets the conditions is found as the current scanning brightness to scan the object. In this way, the method of this embodiment can automatically and accurately adjust the current scanning brightness according to the target brightness value and the target darkness value, thereby effectively improving the efficiency and accuracy of the scanning brightness adjustment, and providing effective guarantee for the subsequent scanning of objects.

[0087] Embodiment 2:

[0088] like Fig.12 As shown, the present embodiment further provides a brightness adjustment system 121 for a projector (hereinafter referred to as "brightness adjustment system" or "system"), comprising: an image acquisition unit 1211, for acquiring a scanned model image of an object to be measured; an image processing unit 1212, for processing the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image; a control unit 1213, for determining a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value.

[0089] It should be understood that the brightness adjustment system 121 for the projector of this embodiment first acquires the scanned model image of the object to be measured through the image acquisition unit 1211, and then processes the scanned model image through the image processing unit 1212 to determine the area occupied by the scanned model image according to the contour of the scanned model image, and finally the control unit 1213 determines the target brightness value and the target darkness value of the scanned model image according to the grayscale histogram of the target area, so as to automatically adjust the projection brightness of the projector according to the target brightness value and the target darkness value. Compared with the solution of manually adjusting the brightness in the prior art, the system of this embodiment can quickly obtain the brightness value according to the area occupied by the contour of the acquired scanned model image, so as to automatically adjust the projection brightness of the projector according to the brightness value, thereby improving the adjustment efficiency of the projection brightness, thereby effectively improving the scanning accuracy of the scanner, and solving the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art.

[0090] It should be noted that the technical solutions of the brightness adjustment system for a projector in this embodiment and the same parts as those in the first embodiment are described in the first embodiment and will not be described in detail here.

[0091] Embodiment three:

[0092] like Fig.12 As shown, this embodiment further provides a scanning device 1200, comprising: the brightness adjustment system 121 described in any of the above embodiments, used to adjust the projection brightness of the projector; and the projector 122, used to project light of the scanning brightness determined by the brightness adjustment system 121 onto the object to be measured. Among them, the technical solution of the brightness adjustment system for the projector in this embodiment and the same part as that in the second embodiment, please refer to the second embodiment, and will not be repeated here.

[0093] Similarly, the scanning device 1200 of this embodiment acquires the scanned model image of the object to be measured through the image acquisition unit 1211 in the brightness adjustment system 121, and then processes the scanned model image through the image processing unit 1212 to determine the area occupied by the scanned model image according to the contour of the scanned model image, and finally the control unit 1213 determines the target brightness value and the target darkness value of the scanned model image according to the grayscale histogram of the target area, thereby automatically adjusting the projection brightness of the projector according to the target brightness value and the target darkness value, so that the projector projects according to the adjusted scanning brightness. Compared with the solution of manually adjusting the brightness in the prior art, the scanning device 1200 of this embodiment can quickly obtain the brightness value according to the area occupied by the contour of the acquired scanned model image, so as to automatically adjust the projection brightness of the projector according to the brightness value, thereby improving the adjustment efficiency of the projection brightness, thereby effectively improving the scanning accuracy of the scanner, and solving the problem of low adjustment efficiency and low adjustment accuracy caused by manually adjusting the scanning brightness in the prior art.

[0094] Embodiment 4:

[0095] The embodiment of the present invention further provides a terminal device, which may include a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program is executed by the processor to implement the above Figure 1 The various processes of the brightness adjustment method embodiment shown can achieve the same technical effect, and will not be described again here to avoid repetition.

[0096] Embodiment five:

[0097] Combination Fig.13 As shown, this embodiment also discloses a specific implementation of a computer-readable storage medium 1300. The computer-readable storage medium 1300 can be configured in whole or in part in a physical computer, server, cluster server or data center.

[0098] In this embodiment, the computer-readable storage medium 1300 stores computer program instructions 1301 . When the computer program instructions 1301 are read and executed by a processor 1302 , the steps in the brightness adjustment method disclosed in the first embodiment are executed.

[0099] Optionally, the computer-readable storage medium 1300 can be configured as a server, and the server runs on a physical device for building a private cloud, a hybrid cloud, or a public cloud. At the same time, the computer-readable storage medium 1300 can also be configured as a random access memory (Random Access Memory, RAM), a read-only memory (Read Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), an erasable read-only memory (ErasableProgrammable Read-Only Memory, EPROM), an electrically erasable read-only memory (Electric ErasableProgrammable Read-Only Memory, EEPROM), etc.

[0100] The computer-readable storage medium 1300 is used to store programs, and the processor 1302 executes the brightness adjustment method disclosed in the first embodiment after receiving the execution instruction.

[0101] At the same time, the processor 1302 disclosed in this embodiment may be an integrated circuit chip with signal processing capabilities. The processor 1302 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. The general-purpose processor may be a microprocessor or the general-purpose processor may also be any conventional processor.

[0102] For the technical solutions of the computer-readable storage medium 1300 disclosed in this embodiment that are the same as those in Embodiment 1 and / or Embodiment 2, please refer to Embodiment 1 and / or Embodiment 2, which will not be repeated here.

[0103] The series of detailed descriptions listed above are only specific descriptions of feasible implementation methods of the present invention. They are not intended to limit the scope of protection of the present invention. Any equivalent implementation methods or changes that do not deviate from the technical spirit of the present invention should be included in the scope of protection of the present invention.

[0104] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

[0105] In addition, it should be understood that although the present specification is described according to implementation modes, not every implementation mode contains only one independent technical solution. This description of the specification is only for the sake of clarity. Those skilled in the art should regard the specification as a whole. The technical solutions in each embodiment may also be appropriately combined to form other implementation modes that can be understood by those skilled in the art.

Claims

1. A brightness adjustment method for a projector, characterized in that: The method comprises: Acquire a scanned model image of the object to be measured; Processing the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image; Determining a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value; Wherein, determining the target brightness value and the target darkness value of the scanned model image based on the grayscale histogram of the target area includes: Determine a grayscale histogram within the target area, and determine a corresponding grayscale integral map based on the grayscale histogram; Determining a target brightness value and a target darkness value of the scanned model image based on the coordinates of the grayscale integral image specifically includes: Traversing each coordinate of the grayscale integral image at different grayscale intervals to determine two target coordinates whose vertical coordinate difference corresponding to adjacent horizontal coordinates is greater than a preset difference; The smaller of the two target coordinates is used as the target darkness value, and the larger one is used as the target brightness value.

2. The brightness adjustment method according to claim 1, characterized in that: Processing the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image includes: Performing edge extraction on the scanned model image to obtain an edge model image; The edge model image is expanded, and the contour of the expanded edge model image is extracted as the target area occupied by the scanned model image.

3. The brightness adjustment method according to claim 1 or 2, characterized in that: Adjusting the projection brightness of the projector according to the target brightness value and the target darkness value includes: Determining whether the target brightness value satisfies a scanning condition, and when the target brightness value satisfies the scanning condition, determining an initial maximum brightness value of the projector as a current scanning brightness; If the target brightness value does not meet the scanning condition, it is determined whether the target darkness value meets the scanning condition, so that when the target darkness value meets the scanning condition, the initial minimum brightness value of the projector is determined as the current scanning brightness.

4. The brightness adjustment method according to claim 3, characterized in that: Determining whether the target brightness value meets the scanning condition includes: Determining whether the target brightness value is greater than a preset brightness value; If the target brightness value is greater than the preset brightness value, the target brightness value satisfies the scanning condition.

5. The brightness adjustment method according to claim 3, characterized in that: Determining whether the target darkness value meets the scanning condition includes: Determine whether the target darkness value is less than a preset darkness value or whether the brightness difference between the target brightness value and the target darkness value is less than a preset difference; If the target darkness value is smaller than the preset darkness value or the light-darkness difference value is smaller than the preset difference value, the target darkness value satisfies the scanning condition.

6. The brightness adjustment method according to claim 3, characterized in that: The method comprises: determining the initial maximum brightness value of the projector as the current scanning brightness or determining the initial minimum brightness value of the projector as the current scanning brightness after: The average value of the initial maximum brightness value and the initial minimum brightness value is used as the brightness to be scanned for the next scan of the projector.

7. A brightness adjustment system for a projector, characterized in that: include: An image acquisition unit, used to acquire a scanned model image of the object to be measured; An image processing unit, configured to process the scanned model image to determine a target area occupied by the scanned model image based on a contour of the processed scanned model image; A control unit, configured to determine a target brightness value and a target darkness value of the scanned model image based on a grayscale histogram of the target area, so as to adjust the projection brightness of the projector according to the target brightness value and the target darkness value; The control unit is further configured to determine a grayscale histogram within the target area, and determine a corresponding grayscale integral map according to the grayscale histogram, so as to determine a target brightness value and a target darkness value of the scanned model image based on the coordinates of the grayscale integral map. Specifically, Each coordinate of the grayscale integral image is traversed at different grayscale intervals to determine two target coordinates whose vertical coordinate difference corresponding to adjacent horizontal coordinates is greater than a preset difference, and the smaller horizontal coordinate of the two target coordinates is used as the target darkness value, and the larger horizontal coordinate is used as the target brightness value.

8. A scanning device, characterized in that: include: The brightness adjustment system as claimed in claim 7, used to adjust the projection brightness of the projector; A projector is used to project light of the projection brightness determined by the brightness adjustment system onto the object to be measured.

Citation Information

Patent Citations

  • Photographic method and photographic device capable of automatically adjusting exposure based on face brightness

    CN104994306A

  • Gain adjustment method and device for automatic dimming

    CN117579943A