CN113132700A - Method and system for adjusting contrast of projector - Google Patents

Method and system for adjusting contrast of projector Download PDF

Info

Publication number
CN113132700A
CN113132700A CN202110389939.1A CN202110389939A CN113132700A CN 113132700 A CN113132700 A CN 113132700A CN 202110389939 A CN202110389939 A CN 202110389939A CN 113132700 A CN113132700 A CN 113132700A
Authority
CN
China
Prior art keywords
brightness
value
pixel point
contrast
signal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110389939.1A
Other languages
Chinese (zh)
Other versions
CN113132700B (en
Inventor
李勤俭
胡诗帅
陈波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Hetianchuang Technology Co ltd
Original Assignee
Shenzhen Hotack Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Hotack Technology Co ltd filed Critical Shenzhen Hotack Technology Co ltd
Priority to CN202110389939.1A priority Critical patent/CN113132700B/en
Publication of CN113132700A publication Critical patent/CN113132700A/en
Application granted granted Critical
Publication of CN113132700B publication Critical patent/CN113132700B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B21/00Projectors or projection-type viewers; Accessories therefor
    • G03B21/14Details
    • G03B21/20Lamp housings
    • G03B21/2053Intensity control of illuminating light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/12Picture reproducers
    • H04N9/31Projection devices for colour picture display, e.g. using electronic spatial light modulators [ESLM]
    • H04N9/3179Video signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Transforming Electric Information Into Light Information (AREA)

Abstract

The invention discloses a method and a system for adjusting the contrast of a projector, comprising the following steps: acquiring the brightness value of the environment around the projector; shooting a first projection image projected by the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition; acquiring a contrast parameter of the projector during projection; and adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image. Has the advantages that: the ambient brightness and the contrast of the projection picture are obtained, and the contrast parameter of the projector is corrected, so that the contrast of the projection picture is right, and the experience of a user is improved.

Description

Method and system for adjusting contrast of projector
Technical Field
The invention relates to the technical field of projection, in particular to a method and a system for adjusting the contrast of a projector.
Background
With the continuous development of projection technology, various types of conferences, lectures, performances and other activities adopt the projection technology, so that participants can express the contents to be displayed or obtain the projected contents easily and in a time-saving manner, and great convenience is provided for the work, entertainment and other aspects of people. However, due to the influence of the field projection environment, the projection effect is often not ideal, and the user cannot clearly or easily acquire the projected content, which results in poor use experience of the user.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, a first objective of the present invention is to provide a method for adjusting a contrast of a projector, which obtains ambient brightness and a contrast of a projection image to correct a contrast parameter of the projector, so that the contrast of the projection image is correct, and the experience of a user is enhanced.
A second object of the present invention is to provide a system for adjusting the contrast of a projector.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for adjusting contrast of a projector, including:
acquiring the brightness value of the environment around the projector;
shooting a first projection image projected by the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition;
acquiring a contrast parameter of the projector during projection;
and adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
Further, the acquiring the brightness value of the environment around the projector includes:
acquiring the area of the camera, and performing area division processing on the area to obtain a first area and a second area;
acquiring a brightness signal of the first area, and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, respectively calculating the brightness difference value of each pixel point and adjacent pixel points thereof, and screening out the pixel points with the brightness difference value within a preset brightness difference value range as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector.
Further, the shooting a first projection image of the projector to obtain a definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image when it is determined that the definition is smaller than a preset definition, and obtaining a contrast of the second projection image includes:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
Further, the adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image includes:
and inquiring a preset data table according to the brightness value of the surrounding environment of the projector and the contrast of the second projected image to obtain a corresponding contrast adjusting coefficient, and adjusting the contrast parameter according to the contrast adjusting coefficient.
Further, before obtaining the first luminance value according to the luminance signal, the method further includes:
and calculating the signal-to-noise ratio of the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio.
Further, the calculating the signal-to-noise ratio of the luminance signal includes:
performing framing processing on the brightness signal to obtain N frames of sub-brightness signals;
calculating the noise intensity Q of the brightness signal1As shown in equation (1):
Figure BDA0003016233770000041
wherein, W1The power coefficient of an effective signal in the brightness signal; k is an error coefficient of the brightness signal in the acquisition process; n is the frame number of the sub-brightness signal; ciThe amplitude of the sub-brightness signal of the ith frame;
Figure BDA0003016233770000042
is N frame sub-luminanceThe average amplitude of the signal;
according to the noise intensity Q of the brightness signal1And calculating the signal-to-noise ratio gamma of the brightness signal as shown in formula (2):
Figure BDA0003016233770000043
wherein Q is2The intensity of the effective signal in the brightness signal; eiIs the energy of the ith frame sub-luminance signal; eJIs preset standard energy; e is a natural constant; w2Is the power coefficient of the noise in the luminance signal.
In order to achieve the above object, a second embodiment of the present invention provides a system for adjusting contrast of a projector, including:
the environment brightness value acquisition module is used for acquiring the brightness value of the environment around the projector;
the image contrast acquisition module is used for shooting a first projection image of the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition;
the projector contrast parameter acquisition module is used for acquiring the contrast parameter of the projector during projection;
and the first control module is used for adjusting the contrast parameter according to the brightness value of the surrounding environment of the projector and the contrast of the second projection image.
Further, the environment brightness value obtaining module includes:
the area division module is used for acquiring the area where the camera is located and carrying out area division processing on the area where the camera is located to obtain a first area and a second area;
the first brightness value acquisition module is used for acquiring a brightness signal of the first area and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
a second control module to:
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, calculating a brightness difference value of the second brightness value of each pixel point and the second brightness value of an adjacent pixel point, and screening out the pixel points with the brightness difference value within a preset brightness difference value range to serve as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, respectively correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting an environment brightness value.
Further, the image contrast acquisition module comprises:
a sharpness enhancement module to:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
a calculation module to:
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
Further, the system for adjusting the contrast of the projector further comprises:
and the noise reduction module is used for calculating the signal-to-noise ratio of the brightness signal before the first brightness value acquisition module obtains the first brightness value according to the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio or not, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
FIG. 1 is a flow chart of a method of adjusting projector contrast according to the present invention;
FIG. 2 is a block diagram of a system for adjusting projector contrast in accordance with the present invention;
fig. 3 is a block diagram of a system for adjusting projector contrast according to an embodiment of the present invention.
Reference numerals:
the system comprises an environment brightness value acquisition module 1, an image contrast acquisition module 2, a projector contrast parameter acquisition module 3, a first control module 4, an area division module 5, a first brightness value acquisition module 6 and a second control module 7.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
A method and a system for adjusting the contrast of a projector according to an embodiment of the present invention are described with reference to fig. 1 to 3.
As shown in fig. 1, a method of adjusting the contrast of a projector includes:
s1: acquiring the brightness value of the environment around the projector;
s2: shooting a first projection image projected by the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition;
s3: acquiring a contrast parameter of the projector during projection;
s4: and adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
The working principle of the scheme is as follows: acquiring the brightness value of the environment around the projector; shooting a first projection image projected by the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition; acquiring a contrast parameter of the projector during projection; and adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
The beneficial effect of above-mentioned scheme: the contrast of the projected image can change along with the change of the ambient brightness, if the ambient brightness changes, the contrast parameter of the projector is not adjusted timely, so that the personnel can not see the projected image clearly, the practicability of the projector is extremely poor, the contrast through the ambient brightness and the projected image is right, the contrast parameter of the projector is adjusted in real time, the contrast of the projected image is ensured to be just right, the experience of the viewers is increased, the practicability of the device is increased, and the experience of the user is improved.
According to some embodiments of the invention, the obtaining the brightness value of the environment around the projector comprises:
acquiring the area of the camera, and performing area division processing on the area to obtain a first area and a second area;
acquiring a brightness signal of the first area, and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, respectively calculating the brightness difference value of each pixel point and adjacent pixel points thereof, and screening out the pixel points with the brightness difference value within a preset brightness difference value range as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector.
The working principle of the scheme is as follows: acquiring the area of the camera, and performing area division processing on the area to obtain a first area and a second area; the first area and the second area are both key positions of the area where the camera is located; acquiring a brightness signal of the first area, and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance; shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, respectively calculating the brightness difference value of each pixel point and adjacent pixel points thereof, and screening out the pixel points with the brightness difference value within a preset brightness difference value range as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance; inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point; performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed; respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value; sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value; and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector.
The beneficial effect of above-mentioned scheme: the brightness of the environment of the camera has a great influence on adjusting the contrast parameter of the camera, so that the accurate measurement of the brightness of the environment around the camera is very necessary, and the scheme provides a method for accurately measuring the brightness of the environment around the camera; acquiring the area of the camera, and performing area division processing on the area to obtain a first area and a second area; in some special cases, the brightness of the environment around the camera may have a huge difference, and the area division processing is performed on the area where the camera is located, so that the final detection result is more accurate; acquiring a brightness signal of the first area, and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance; shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, respectively calculating the brightness difference value of each pixel point and adjacent pixel points thereof, and screening out the pixel points with the brightness difference value within a preset brightness difference value range as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance; inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point; the image to be processed is a second area image subjected to noise reduction, and the second brightness value of the edge pixel point is corrected, so that the image to be processed is clearer, and the noise in the second area image is reduced; performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed; respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value; sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value; and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector, so that the finally obtained brightness value of the environment around the projector is more accurate, and the accuracy of finally adjusting the contrast parameter of the camera is further ensured.
According to some embodiments of the present invention, the capturing a first projection image of the projector, acquiring a resolution of the first projection image, performing resolution enhancement processing on the first projection image when it is determined that the resolution is smaller than a preset resolution to obtain a second projection image, and acquiring a contrast of the second projection image, includes:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
The working principle of the scheme is as follows: performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum; extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region; extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area; calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition; converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image; performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point; performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point; adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component; and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
The method has the advantages that the contrast of the second projection image has an important effect on adjusting the contrast parameter of the camera, so that the method for accurately acquiring the contrast of the second projection image is provided; the definition of the image determines the accuracy of the contrast of the acquired image, so that firstly, the definition detection of the first projection image is necessary, the discrete Fourier transform is carried out on the first projection image to obtain a Fourier amplitude map of the first projection image, a Fourier spectrum is obtained according to the Fourier amplitude map, and the feature extraction is carried out on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum; extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region; extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area; calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than the preset definition or not according to higher accuracy of the definition obtained by the method, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition; conversely, the first projection image is used as a second projection image; converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image; performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point; performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point; obtaining the horizontal gradient square value and the vertical gradient square value of each pixel point is an important step for calculating the contrast of the second projection image; adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component; and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, summing the contrast components of the target pixels to obtain the contrast of the second projection image, wherein the contrast obtained by the calculation of the method is more accurate, and the accuracy of adjusting the contrast parameters of the camera is improved.
According to some embodiments of the invention, the adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projected image comprises:
and inquiring a preset data table according to the brightness value of the surrounding environment of the projector and the contrast of the second projected image to obtain a corresponding contrast adjusting coefficient, and adjusting the contrast parameter according to the contrast adjusting coefficient.
The working principle of the scheme is as follows: and inquiring a preset data table according to the brightness value of the surrounding environment of the projector and the contrast of the second projected image to obtain a corresponding contrast adjusting coefficient, and adjusting the contrast parameter according to the contrast adjusting coefficient.
The beneficial effect of above-mentioned scheme: the preset data table is a brightness value of the environment around the projector-contrast ratio of the second projection image-contrast ratio adjusting coefficient table, the contrast ratio adjusting coefficient is determined according to the brightness value of the environment around the projector and the contrast ratio of the second projection image, and the contrast ratio adjusting coefficient is determined according to the brightness value of the environment around the projector and the contrast ratio of the second projection image, so that the final adjusting result is more accurate.
According to some embodiments of the invention, before obtaining the first luminance value from the luminance signal, further comprising:
and calculating the signal-to-noise ratio of the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio.
The working principle and the beneficial effects of the scheme are as follows: and calculating the signal-to-noise ratio of the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio, so as to ensure the accuracy of the finally obtained first brightness value.
According to some embodiments of the invention, the calculating the signal-to-noise ratio of the luminance signal comprises:
performing framing processing on the brightness signal to obtain N frames of sub-brightness signals;
calculating the brightnessNoise strength Q of signal1As shown in equation (1):
Figure BDA0003016233770000151
wherein, W1The power coefficient of an effective signal in the brightness signal; k is an error coefficient of the brightness signal in the acquisition process; n is the frame number of the sub-brightness signal; ciThe amplitude of the sub-brightness signal of the ith frame;
Figure BDA0003016233770000152
average amplitude of N frames of sub-brightness signals;
according to the noise intensity Q of the brightness signal1And calculating the signal-to-noise ratio gamma of the brightness signal as shown in formula (2):
Figure BDA0003016233770000153
wherein Q is2The intensity of the effective signal in the brightness signal; eiIs the energy of the ith frame sub-luminance signal; eJIs preset standard energy; e is a natural constant; w2Is the power coefficient of the noise in the luminance signal.
The working principle and the beneficial effects of the scheme are that the luminance signal is divided into frames to obtain N sub-luminance signals, the characteristics of the luminance signal are better reflected, the calculation result is more accurate by calculating according to the N sub-luminance signals, and when the signal-to-noise ratio of the luminance signal is calculated, the calculated signal-to-noise ratio is more accurate by considering the strength of an effective signal in the luminance signal, the power coefficient of noise in the luminance signal, the power coefficient of the effective signal in the luminance signal, the average amplitude of the N frames of sub-luminance signals and other factors.
As shown in fig. 2, a system for adjusting contrast of a projector according to some embodiments of the present invention includes:
an environment brightness value obtaining module 1, configured to obtain a brightness value of an environment around the projector;
the image contrast acquisition module 2 is configured to shoot a first projection image of the projector, acquire the definition of the first projection image, and perform definition enhancement processing on the first projection image when it is determined that the definition is smaller than a preset definition, to obtain a second projection image, and acquire the contrast of the second projection image;
the projector contrast parameter acquisition module 3 is used for acquiring the contrast parameter of the projector during projection;
and the first control module 4 is used for adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
The working principle of the scheme is as follows: the environment brightness value acquisition module 1 is configured to acquire a brightness value of an environment around the projector; the image contrast acquisition module 2 is configured to shoot a first projection image of the projector, acquire the definition of the first projection image, and perform definition enhancement processing on the first projection image when it is determined that the definition is smaller than a preset definition, to obtain a second projection image, and acquire the contrast of the second projection image; the projector contrast parameter acquisition module 3 is used for acquiring the contrast parameter of the projector during projection; the first control module 4 is configured to adjust the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
The beneficial effect of above-mentioned scheme: the contrast of the projected image can change along with the change of the ambient brightness, if the ambient brightness changes, the contrast parameter of the projector is not adjusted timely, so that the personnel can not see the projected image clearly, the practicability of the projector is extremely poor, the contrast through the ambient brightness and the projected image is right, the contrast parameter of the projector is adjusted in real time, the contrast of the projected image is ensured to be just right, the experience of the viewers is increased, the practicability of the device is increased, and the experience of the user is improved.
As shown in fig. 3, according to some embodiments of the present invention, the ambient brightness value obtaining module 1 includes:
the region dividing module 5 is configured to acquire a region where the camera is located, and perform region dividing processing on the region where the camera is located to obtain a first region and a second region;
a first brightness value obtaining module 6, configured to obtain a brightness signal of the first area, and obtain a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
a second control module 7 for:
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, calculating a brightness difference value of the second brightness value of each pixel point and the second brightness value of an adjacent pixel point, and screening out the pixel points with the brightness difference value within a preset brightness difference value range to serve as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, respectively correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting an environment brightness value.
The working principle of the scheme is as follows: the region dividing module 5 is configured to obtain a region where the camera is located, and perform region dividing processing on the region where the camera is located to obtain a first region and a second region; the first brightness value obtaining module 6 is configured to obtain a brightness signal of the first area, and obtain a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance; the second control module 7 is configured to capture a second area image, obtain a second brightness value of each pixel point in the second area image, calculate a brightness difference between the second brightness value of each pixel point and the second brightness value of an adjacent pixel point, and screen out a pixel point with the brightness difference within a preset brightness difference range as an effective pixel point; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance; inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, respectively correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point; performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed; respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value; sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value; and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting an environment brightness value.
The beneficial effect of above-mentioned scheme: the brightness of the environment of the camera has a great influence on adjusting the contrast parameter of the camera, so that the accurate measurement of the brightness of the environment around the camera is very necessary, and the scheme provides a method for accurately measuring the brightness of the environment around the camera; the region dividing module 5 is configured to obtain a region where the camera is located, and perform region dividing processing on the region where the camera is located to obtain a first region and a second region; in some special cases, the brightness of the environment around the camera may have a huge difference, and the area division processing is performed on the area where the camera is located, so that the final detection result is more accurate; the first brightness value obtaining module 6 is configured to obtain a brightness signal of the first area, and obtain a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance; the second control module 7 is configured to capture a second area image, obtain a second brightness value of each pixel point in the second area image, calculate a brightness difference value between each pixel point and an adjacent pixel point, and screen out a pixel point with the brightness difference value within a preset brightness difference value range as an effective pixel point; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance; inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point; the image to be processed is a second area image subjected to noise reduction, and the second brightness value of the edge pixel point is corrected, so that the image to be processed is clearer, and the noise in the second area image is reduced; performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed; respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value; sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value; and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector, so that the finally obtained brightness value of the environment around the projector is more accurate, and the accuracy of finally adjusting the contrast parameter of the camera is further ensured.
According to some embodiments of the invention, the image contrast acquisition module 2 comprises:
a sharpness enhancement module to:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
a calculation module to:
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
The working principle of the scheme is as follows: the sharpness enhancement module is used for performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum; extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region; extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area; calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition; the calculation module is used for converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space and then acquiring the brightness component of each pixel point in the second projection image; performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point; performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point; adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component; and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
The method has the advantages that the contrast of the second projection image has an important effect on adjusting the contrast parameter of the camera, so that the method for accurately acquiring the contrast of the second projection image is provided; the definition of the image determines the accuracy of the contrast of the acquired image, so that it is necessary to perform definition detection on the first projection image, the definition enhancement module is used for performing discrete fourier transform on the first projection image to obtain a fourier amplitude map of the first projection image, obtaining a fourier spectrum according to the fourier amplitude map, and performing feature extraction on the fourier spectrum to obtain a high-frequency region and a low-frequency region of the fourier spectrum; extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region; extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area; calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than the preset definition or not according to higher accuracy of the definition obtained by the method, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition; conversely, the first projection image is used as a second projection image; the calculation module is used for converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space and then acquiring the brightness component of each pixel point in the second projection image; performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point; performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point; obtaining the horizontal gradient square value and the vertical gradient square value of each pixel point is an important step for calculating the contrast of the second projection image; adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component; and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, summing the contrast components of the target pixels to obtain the contrast of the second projection image, wherein the contrast obtained by the calculation of the method is more accurate, and the accuracy of adjusting the contrast parameters of the camera is improved.
According to some embodiments of the invention, the system for adjusting the contrast of the projector further comprises:
and the noise reduction module is configured to calculate a signal-to-noise ratio of the luminance signal before the first luminance value obtaining module 6 obtains the first luminance value according to the luminance signal, determine whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio, and perform noise reduction processing on the luminance signal when it is determined that the signal-to-noise ratio is smaller than the preset signal-to-noise ratio.
The working principle of the scheme is as follows: the noise reduction module is used for calculating the signal-to-noise ratio of the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio or not, and carrying out noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio, so that the accuracy of the finally obtained first brightness value is ensured.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of adjusting contrast of a projector, comprising:
acquiring the brightness value of the environment around the projector;
shooting a first projection image projected by the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition;
acquiring a contrast parameter of the projector during projection;
and adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image.
2. The method of claim 1, wherein obtaining the brightness value of the environment around the projector comprises:
acquiring the area of the camera, and performing area division processing on the area to obtain a first area and a second area;
acquiring a brightness signal of the first area, and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, respectively calculating the brightness difference value of each pixel point and adjacent pixel points thereof, and screening out the pixel points with the brightness difference value within a preset brightness difference value range as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting the brightness value of the environment around the projector.
3. The method of claim 1, wherein the capturing a first projection image of the projector, acquiring a sharpness of the first projection image, and performing sharpness enhancement processing on the first projection image to obtain a second projection image and acquiring a contrast of the second projection image when the sharpness is determined to be less than a preset sharpness, comprises:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
4. The method of claim 1, wherein the adjusting the contrast parameter according to the brightness value of the environment around the projector and the contrast of the second projection image comprises:
and inquiring a preset data table according to the brightness value of the surrounding environment of the projector and the contrast of the second projected image to obtain a corresponding contrast adjusting coefficient, and adjusting the contrast parameter according to the contrast adjusting coefficient.
5. The method of claim 2, further comprising, before obtaining the first luminance value according to the luminance signal:
and calculating the signal-to-noise ratio of the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio.
6. The method of claim 5, wherein said calculating a signal-to-noise ratio of the luminance signal comprises:
performing framing processing on the brightness signal to obtain N frames of sub-brightness signals;
calculating the noise intensity Q of the brightness signal1As shown in equation (1):
Figure FDA0003016233760000031
wherein, W1The power coefficient of an effective signal in the brightness signal; k is an error coefficient of the brightness signal in the acquisition process; n is the frame number of the sub-brightness signal; ciThe amplitude of the sub-brightness signal of the ith frame;
Figure FDA0003016233760000041
average amplitude of N frames of sub-brightness signals;
according to the noise intensity Q of the brightness signal1And calculating the signal-to-noise ratio gamma of the brightness signal as shown in formula (2):
Figure FDA0003016233760000042
wherein Q is2The intensity of the effective signal in the brightness signal; eiIs the energy of the ith frame sub-luminance signal; eJIs preset standard energy; e is a natural constant; w2Is the power coefficient of the noise in the luminance signal.
7. A system for adjusting projector contrast, comprising:
the environment brightness value acquisition module is used for acquiring the brightness value of the environment around the projector;
the image contrast acquisition module is used for shooting a first projection image of the projector, acquiring the definition of the first projection image, and performing definition enhancement processing on the first projection image to obtain a second projection image and acquire the contrast of the second projection image when the definition is determined to be smaller than the preset definition;
the projector contrast parameter acquisition module is used for acquiring the contrast parameter of the projector during projection;
and the first control module is used for adjusting the contrast parameter according to the brightness value of the surrounding environment of the projector and the contrast of the second projection image.
8. The system of claim 7, wherein the ambient brightness value obtaining module comprises:
the area division module is used for acquiring the area where the camera is located and carrying out area division processing on the area where the camera is located to obtain a first area and a second area;
the first brightness value acquisition module is used for acquiring a brightness signal of the first area and acquiring a first brightness value according to the brightness signal; the brightness signal is obtained by a brightness sensor which is arranged in the first area in advance;
a second control module to:
shooting a second area image, acquiring a second brightness value of each pixel point in the second area image, calculating a brightness difference value of the second brightness value of each pixel point and the second brightness value of an adjacent pixel point, and screening out the pixel points with the brightness difference value within a preset brightness difference value range to serve as effective pixel points; screening out pixel points of which the brightness difference values are not within a preset brightness difference value range as edge pixel points; the adjacent pixel point is any pixel point within a preset distance;
inquiring a preset brightness difference value-second brightness value correction coefficient table according to the brightness difference value of the edge pixel point to obtain a brightness correction coefficient corresponding to the brightness difference value, respectively correcting the second brightness value of the corresponding edge pixel point according to the brightness correction coefficient, and generating an image to be processed according to the corrected edge pixel point and the effective pixel point;
performing image segmentation processing on the image to be processed to obtain a plurality of sub-images to be processed, and setting brightness weight coefficients for the plurality of sub-images to be processed; the brightness weight coefficient is set according to the number of the segmented sub-images to be processed;
respectively obtaining the average brightness value of each sub-image to be processed, and carrying out weighted summation processing on the average brightness value of each sub-image to be processed based on the set brightness weight coefficient to obtain a third brightness value;
sorting the average brightness values of the sub-images to be processed, screening out a maximum average brightness value and a minimum average brightness value, calculating a ratio of the maximum average brightness value to the minimum average brightness value, and multiplying the ratio by the third brightness value to obtain a fourth brightness value;
and inputting the first brightness value and the fourth brightness value into a pre-trained environment brightness value acquisition model, and outputting an environment brightness value.
9. The system of claim 7, wherein the image contrast acquisition module comprises:
a sharpness enhancement module to:
performing discrete Fourier transform on the first projection image to obtain a Fourier amplitude map of the first projection image, obtaining a Fourier spectrum according to the Fourier amplitude map, and performing feature extraction on the Fourier spectrum to obtain a high-frequency region and a low-frequency region of the Fourier spectrum;
extracting the characteristics of the high-frequency region, and extracting the peak value of the high-frequency region;
extracting the characteristics of the low-frequency area, and extracting the average value of the low-frequency area;
calculating a difference value between the peak value and the mean value, inquiring a preset difference value-definition table according to the difference value to obtain definition corresponding to the difference value, judging whether the definition is smaller than preset definition, and performing definition enhancement processing on the first projection image to obtain a second projection image when the definition is determined to be smaller than the preset definition;
a calculation module to:
converting each pixel point in the second projection image from a primary color space to a color-brightness separation color space, and then obtaining the brightness component of each pixel point in the second projection image;
performing convolution operation on the brightness component of each pixel point and a preset horizontal gradient operator to obtain the horizontal gradient of each pixel point, and performing square operation on the horizontal gradient of each pixel point to obtain the square value of the horizontal gradient of each pixel point;
performing convolution operation on the brightness component of each pixel point and a preset vertical gradient operator to obtain the vertical gradient of each pixel point, and performing square operation on the vertical gradient of each pixel point to obtain the square value of the vertical gradient of each pixel point;
adding the horizontal gradient square value and the vertical gradient square value of each pixel point to obtain the contrast component of each pixel point, and calculating according to the contrast component of each pixel point to obtain an average contrast component;
and comparing the contrast component of each pixel with the average contrast component, screening out the pixels with the contrast components larger than the average contrast component as target pixels, and summing the contrast components of the target pixels to obtain the contrast of the second projection image.
10. The system for adjusting the contrast ratio of a projector according to claim 7, further comprising:
and the noise reduction module is used for calculating the signal-to-noise ratio of the brightness signal before the first brightness value acquisition module obtains the first brightness value according to the brightness signal, judging whether the signal-to-noise ratio is smaller than a preset signal-to-noise ratio or not, and performing noise reduction processing on the brightness signal when the signal-to-noise ratio is determined to be smaller than the preset signal-to-noise ratio.
CN202110389939.1A 2021-04-12 2021-04-12 Method and system for adjusting contrast of projector Active CN113132700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110389939.1A CN113132700B (en) 2021-04-12 2021-04-12 Method and system for adjusting contrast of projector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110389939.1A CN113132700B (en) 2021-04-12 2021-04-12 Method and system for adjusting contrast of projector

Publications (2)

Publication Number Publication Date
CN113132700A true CN113132700A (en) 2021-07-16
CN113132700B CN113132700B (en) 2021-10-29

Family

ID=76776576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110389939.1A Active CN113132700B (en) 2021-04-12 2021-04-12 Method and system for adjusting contrast of projector

Country Status (1)

Country Link
CN (1) CN113132700B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514943A (en) * 2022-08-19 2022-12-23 陈冠南 Method for detecting imaging quality of free-form surface lens
CN115995050A (en) * 2023-03-22 2023-04-21 山东汇蓝环保科技有限公司 Environment monitoring data processing system based on aerial photography

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020153472A1 (en) * 2001-04-19 2002-10-24 Seiichirou Yano Automatic image-quality adjustment system
CN1991571A (en) * 2005-12-29 2007-07-04 联想(北京)有限公司 Luminance self-adjusting projector and method thereof
CN104935851A (en) * 2015-06-25 2015-09-23 苏州市英富美欣科技有限公司 Projection brightness adjusting method based on image analysis
CN105635611A (en) * 2014-11-03 2016-06-01 中兴通讯股份有限公司 Projector self-adaptive adjusting method and device
CN107305312A (en) * 2016-04-18 2017-10-31 扬明光学股份有限公司 Projection brightness and the automatic adjustment system and method for contrast
CN108172156A (en) * 2018-01-18 2018-06-15 安徽三弟电子科技有限责任公司 A kind of projector intelligent projection control system and method
CN110996086A (en) * 2019-12-26 2020-04-10 成都极米科技股份有限公司 Projection brightness adjusting method and related device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020153472A1 (en) * 2001-04-19 2002-10-24 Seiichirou Yano Automatic image-quality adjustment system
CN1991571A (en) * 2005-12-29 2007-07-04 联想(北京)有限公司 Luminance self-adjusting projector and method thereof
CN105635611A (en) * 2014-11-03 2016-06-01 中兴通讯股份有限公司 Projector self-adaptive adjusting method and device
CN104935851A (en) * 2015-06-25 2015-09-23 苏州市英富美欣科技有限公司 Projection brightness adjusting method based on image analysis
CN107305312A (en) * 2016-04-18 2017-10-31 扬明光学股份有限公司 Projection brightness and the automatic adjustment system and method for contrast
CN108172156A (en) * 2018-01-18 2018-06-15 安徽三弟电子科技有限责任公司 A kind of projector intelligent projection control system and method
CN110996086A (en) * 2019-12-26 2020-04-10 成都极米科技股份有限公司 Projection brightness adjusting method and related device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115514943A (en) * 2022-08-19 2022-12-23 陈冠南 Method for detecting imaging quality of free-form surface lens
CN115514943B (en) * 2022-08-19 2024-04-23 陈冠南 Method for detecting imaging quality of free-form surface lens
CN115995050A (en) * 2023-03-22 2023-04-21 山东汇蓝环保科技有限公司 Environment monitoring data processing system based on aerial photography
CN115995050B (en) * 2023-03-22 2023-06-13 山东汇蓝环保科技有限公司 Environment monitoring data processing system based on aerial photography

Also Published As

Publication number Publication date
CN113132700B (en) 2021-10-29

Similar Documents

Publication Publication Date Title
CN110310237B (en) Method and system for removing image moire, measuring brightness of display panel sub-pixel point and repairing Mura defect
CN113365041B (en) Projection correction method, projection correction device, storage medium and electronic equipment
US9202263B2 (en) System and method for spatio video image enhancement
US8698910B2 (en) Apparatus, camera, method, and computer-readable storage medium for generating advice for capturing an image
US8494256B2 (en) Image processing apparatus and method, learning apparatus and method, and program
US8965120B2 (en) Image processing apparatus and method of controlling the same
CN113132700B (en) Method and system for adjusting contrast of projector
US20050243350A1 (en) Image processing method, apparatus, and program
CN112272292B (en) Projection correction method, apparatus and storage medium
KR102106537B1 (en) Method for generating a High Dynamic Range image, device thereof, and system thereof
US8861892B2 (en) Method and apparatus for determining projection area of image
CN106030653A (en) Image processing system and method for generating high dynamic range image
CN111986106B (en) High-dynamic image reconstruction method based on neural network
CN107146252A (en) A kind of big data image processing apparatus
US20170307869A1 (en) Microscope and method for obtaining a high dynamic range synthesized image of an object
Guthier et al. Flicker reduction in tone mapped high dynamic range video
TWI628601B (en) Facial image-processing method and system thereof
JP2006139777A (en) Method and device for detecting flat panel display device by visual model
JP2011130167A (en) Imaging apparatus and image processing method thereof
KR102136716B1 (en) Apparatus for Improving Image Quality and Computer-Readable Recording Medium with Program Therefor
JP2005283197A (en) Detecting method and system for streak defect of screen
Bisagno et al. Virtual camera modeling for multi-view simulation of surveillance scenes
Hansen et al. Resolution enhancement through superimposition of projected images–how to evaluate the quality?
CN112446925A (en) Camera equipment parameter calibration method, equipment and system
van Zwanenberg et al. Camera system performance derived from natural scenes

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 518000 units 1501, 1502, 1503, 1508 and 1509, 15 / F, block C, Huanzhi center, No. 3639, Longhua Avenue, Jinglong community, Longhua street, Longhua District, Shenzhen, Guangdong Province (a business place is set up at 401, B2, floor 4, building A1, No. 130, Silicon Valley power third park, Sili Road, Kukeng community, Guanlan street, Longhua District, Shenzhen to engage in production and business activities)

Patentee after: Shenzhen hetianchuang Technology Co.,Ltd.

Address before: 518000 Building A1, 130 Silicon Valley Power Park, Sili Road, Kukeng Community, Guanlan Street, Longhua District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN HOTACK TECHNOLOGY CO.,LTD.

CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Room 501-2, 5th Floor, Unit 3, Building 13, No. 666 Jinfenghuang Avenue, Jinniu High tech Industrial Park, Chengdu City, Sichuan Province, 610083

Patentee after: Chengdu Hetianchuang Technology Co.,Ltd.

Country or region after: China

Address before: 518000 units 1501, 1502, 1503, 1508 and 1509, 15 / F, block C, Huanzhi center, No. 3639, Longhua Avenue, Jinglong community, Longhua street, Longhua District, Shenzhen, Guangdong Province (a business place is set up at 401, B2, floor 4, building A1, No. 130, Silicon Valley power third park, Sili Road, Kukeng community, Guanlan street, Longhua District, Shenzhen to engage in production and business activities)

Patentee before: Shenzhen hetianchuang Technology Co.,Ltd.

Country or region before: China