Disclosure of Invention
In order to solve the technical problem of difficult positioning of stage characters, the invention provides a shot-light directional illumination platform based on image recognition, which adopts a high-precision image recognition mechanism to recognize the current stage position of a principal angle on a stage, converts the current stage position of the principal angle into a corresponding direction driving signal, and sends the converted direction driving signal to shot-light driving equipment so as to drive a shot-light on the stage to perform directional illumination in the direction of the principal angle; acquiring various noise types in the image, and determining the influence weight on the binary threshold value based on a pre-stored type weight comparison table, thereby realizing the directional correction on the binary threshold value; the two-stage segmentation mechanism is adopted to carry out targeted enhancement operation on the local area which needs to be enhanced most in the image to be processed, no enhancement operation is carried out on the residual area, and the two-stage combination mechanism is adopted to carry out image reconstruction, so that the speed of image processing is ensured.
According to an aspect of the invention, a shot-light directional lighting platform based on image recognition is provided, which comprises:
the spot lamp equipment is arranged above the stage and used for performing spot lamp illumination on the stage;
and the spotlight driving equipment is arranged above the stage, is positioned on one side of the spotlight equipment and is used for driving the spotlight equipment to perform directional spotlight illumination based on the received direction driving signal.
More specifically, in the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the system comprises an instant capturing device, a processing device and a display device, wherein the instant capturing device is used for carrying out instant image capturing on a stage to obtain and output a corresponding instant stage image;
and the noise type detection equipment is used for receiving the instant stage image and analyzing the noise type of the instant stage image so as to obtain various noise types in the instant stage image and the maximum amplitude corresponding to each noise type.
More specifically, in the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the noise amplitude measuring equipment is connected with the noise type detecting equipment and used for receiving various noise types in the instant stage image and the maximum amplitude corresponding to each noise type, sequencing the various noise types based on the sequence from large to small of the maximum amplitude, and outputting three noise types with the first three serial numbers as three to-be-processed noise types;
and the static storage device is used for pre-storing a type weight comparison table, wherein the type weight comparison table stores the influence weight of each noise type on the binarization threshold value, and is also used for pre-storing an initialization binarization threshold value.
More specifically, in the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the initial value extraction device is connected with the static storage device and is used for acquiring the initialized binary threshold value;
the initial value correction device is respectively connected with the initial value extraction device and the noise amplitude measurement device and is used for receiving the three types of noises to be processed, determining three influence weights respectively corresponding to the three types of noises to be processed based on the type weight comparison table, and sequentially correcting the initialized binary threshold value by adopting the three influence weights so as to obtain a corrected threshold value after the correction processing is finished and outputting the corrected threshold value;
the threshold value execution device is connected with the initial value correction device, performs binarization processing on the instant stage image by adopting the corrected threshold value to obtain a processed image, and outputs the processed image;
the image searching device is connected with the threshold executing device and used for receiving the processed image, searching the target appearance of the processed image to obtain the appearance of each target, taking the area where the appearance of the target with the largest size is located as a to-be-processed area, and outputting the to-be-processed area;
the image segmentation equipment is connected with the image search equipment and used for receiving the processed image and the area to be processed and taking the processed image without the area to be processed as a search residual area;
the image segmentation equipment is connected with the image segmentation equipment and used for receiving the to-be-processed area, determining the energy size distributed in different frequency bands in the to-be-processed area, taking a plurality of frequency bands with energy less than or equal to a limited amount as a plurality of to-be-processed frequency bands, and performing band-pass filtering processing on the to-be-processed area based on the plurality of to-be-processed frequency bands to obtain a band-pass filtering area from the to-be-processed area and with the plurality of to-be-processed frequency bands, and further used for obtaining a band-pass reserved area from which the band-pass filtering area is removed from the to-be-processed area;
two-stage combination equipment, respectively connected to the image subdivision equipment and the image segmentation equipment, configured to perform gain processing on the band-pass filtering area based on a dynamic distribution range of the band-pass filtering area to obtain a corresponding gain processing area, further configured to combine the gain processing area and the band-pass reserved area to obtain a combined area corresponding to the area to be processed, and further configured to combine the combined area and the search residual area to obtain a local gain image corresponding to the processed image;
and the main corner identification device is connected with the two-stage combination device and used for receiving the local gain image, identifying and dividing a main corner face sub-image from the local gain image based on preset main corner face features, determining the centroid of the main corner face sub-image, and determining the stage position of the main corner based on the abscissa and the ordinate of the centroid in the local gain image.
More specifically, in the spotlight directional lighting platform based on image recognition: the main corner identification equipment is also used for being connected with the spotlight driving equipment and converting the stage position of the main corner into a corresponding direction driving signal so as to send the converted direction driving signal to the spotlight driving equipment.
More specifically, in the spotlight directional lighting platform based on image recognition: in the primary angle recognition apparatus, the direction drive signal includes a rotation drive component and a pitch drive component.
More specifically, in the spotlight directional lighting platform based on image recognition: the static storage device is also respectively connected with the initial value correction device and the threshold execution device and is used for storing the corrected threshold.
More specifically, in the spotlight directional lighting platform based on image recognition: in the two-stage combination device, the narrower the dynamic distribution range of the band-pass filtering region is, the greater the gain processing strength performed on the band-pass filtered image is.
Detailed Description
Embodiments of the image recognition-based spotlight directional illumination platform according to the present invention will be described in detail with reference to the accompanying drawings.
The placement position and the height of the stage follow spot lamp. If two table lamps are used, one table frame is used when entering the field at one side of the stage. The other rack is used for light supplement right at the stage. If a third follow spot lamp and a second follow spot lamp are arranged in parallel, the distance between the third follow spot lamp and the second follow spot lamp is increased to occupy one corner of the scene, and no building is arranged in front of the lamps. The height of the lamp holder is more than 2.5 meters, and the lamp holder does not directly irradiate human eyes. The field operation support is preferably arranged on a table, but the stability is ensured, and the follow spot lamp rotates left and right without being scratched.
After the follow spot lamp is closed, the follow spot lamp can be reused after cooling for at least 15 minutes; if the lamp is turned on again immediately after being turned off, the light source is likely to be not on, and the bulb is likely to be burnt out; if the bulb needs to be replaced, the operation is carried out after the machine is cooled. The middle glass of the bulb is not touched by hands. The installation is to be firm. The ventilation opening of the lamp body needs to be unblocked so as not to influence heat dissipation.
In order to overcome the defects, the invention builds the spotlight directional lighting platform based on image recognition, and can effectively solve the corresponding technical problem.
Fig. 1 is a layout diagram of a spotlight device of a spotlight directional illumination platform based on image recognition according to an embodiment of the invention.
The shot-light directional lighting platform based on image recognition shown according to the embodiment of the invention comprises:
the spot lamp equipment is arranged above the stage and used for performing spot lamp illumination on the stage;
and the spotlight driving equipment is arranged above the stage, is positioned on one side of the spotlight equipment and is used for driving the spotlight equipment to perform directional spotlight illumination based on the received direction driving signal.
Next, the specific structure of the spotlight directional illumination platform based on image recognition according to the present invention will be further described.
In the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the system comprises an instant capturing device, a processing device and a display device, wherein the instant capturing device is used for carrying out instant image capturing on a stage to obtain and output a corresponding instant stage image;
and the noise type detection equipment is used for receiving the instant stage image and analyzing the noise type of the instant stage image so as to obtain various noise types in the instant stage image and the maximum amplitude corresponding to each noise type.
In the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the noise amplitude measuring equipment is connected with the noise type detecting equipment and used for receiving various noise types in the instant stage image and the maximum amplitude corresponding to each noise type, sequencing the various noise types based on the sequence from large to small of the maximum amplitude, and outputting three noise types with the first three serial numbers as three to-be-processed noise types;
and the static storage device is used for pre-storing a type weight comparison table, wherein the type weight comparison table stores the influence weight of each noise type on the binarization threshold value, and is also used for pre-storing an initialization binarization threshold value.
In the spotlight directional lighting platform based on image recognition, the method further comprises the following steps:
the initial value extraction device is connected with the static storage device and is used for acquiring the initialized binary threshold value;
the initial value correction device is respectively connected with the initial value extraction device and the noise amplitude measurement device and is used for receiving the three types of noises to be processed, determining three influence weights respectively corresponding to the three types of noises to be processed based on the type weight comparison table, and sequentially correcting the initialized binary threshold value by adopting the three influence weights so as to obtain a corrected threshold value after the correction processing is finished and outputting the corrected threshold value;
the threshold value execution device is connected with the initial value correction device, performs binarization processing on the instant stage image by adopting the corrected threshold value to obtain a processed image, and outputs the processed image;
the image searching device is connected with the threshold executing device and used for receiving the processed image, searching the target appearance of the processed image to obtain the appearance of each target, taking the area where the appearance of the target with the largest size is located as a to-be-processed area, and outputting the to-be-processed area;
the image segmentation equipment is connected with the image search equipment and used for receiving the processed image and the area to be processed and taking the processed image without the area to be processed as a search residual area;
the image segmentation equipment is connected with the image segmentation equipment and used for receiving the to-be-processed area, determining the energy size distributed in different frequency bands in the to-be-processed area, taking a plurality of frequency bands with energy less than or equal to a limited amount as a plurality of to-be-processed frequency bands, and performing band-pass filtering processing on the to-be-processed area based on the plurality of to-be-processed frequency bands to obtain a band-pass filtering area from the to-be-processed area and with the plurality of to-be-processed frequency bands, and further used for obtaining a band-pass reserved area from which the band-pass filtering area is removed from the to-be-processed area;
two-stage combination equipment, respectively connected to the image subdivision equipment and the image segmentation equipment, configured to perform gain processing on the band-pass filtering area based on a dynamic distribution range of the band-pass filtering area to obtain a corresponding gain processing area, further configured to combine the gain processing area and the band-pass reserved area to obtain a combined area corresponding to the area to be processed, and further configured to combine the combined area and the search residual area to obtain a local gain image corresponding to the processed image;
and the main corner identification device is connected with the two-stage combination device and used for receiving the local gain image, identifying and dividing a main corner face sub-image from the local gain image based on preset main corner face features, determining the centroid of the main corner face sub-image, and determining the stage position of the main corner based on the abscissa and the ordinate of the centroid in the local gain image.
In the spotlight directional lighting platform based on image recognition: the main corner identification equipment is also used for being connected with the spotlight driving equipment and converting the stage position of the main corner into a corresponding direction driving signal so as to send the converted direction driving signal to the spotlight driving equipment.
In the spotlight directional lighting platform based on image recognition: in the primary angle recognition apparatus, the direction drive signal includes a rotation drive component and a pitch drive component.
In the spotlight directional lighting platform based on image recognition: the static storage device is also respectively connected with the initial value correction device and the threshold execution device and is used for storing the corrected threshold.
And in the spotlight directional lighting platform based on image recognition: in the two-stage combination device, the narrower the dynamic distribution range of the band-pass filtering region is, the greater the gain processing strength performed on the band-pass filtered image is.
In addition, the static storage device is selected to be a static random access memory. Static Random-Access Memory (SRAM) is one type of Random Access Memory. By "static," it is meant that the data stored in such a memory is constantly maintained as long as the memory remains powered. In contrast, data stored in a Dynamic Random Access Memory (DRAM) needs to be periodically updated. However, when the power supply is stopped, the data stored in the SRAM is still lost (called a "volatile memory"), which is different from the ROM or flash memory that can store data after power is turned off.
By adopting the spotlight directional lighting platform based on image recognition, aiming at the technical problem of low lighting positioning precision of stage characters in the prior art, the current stage position of a principal angle on a stage is recognized by adopting a high-precision image recognition mechanism, the current stage position of the principal angle is converted into a corresponding direction driving signal, and the converted direction driving signal is sent to the spotlight driving equipment, so that a spotlight on the stage is driven to perform directional lighting in the direction of the principal angle; acquiring various noise types in the image, and determining the influence weight on the binary threshold value based on a pre-stored type weight comparison table, thereby realizing the directional correction on the binary threshold value; the method adopts a two-stage segmentation mechanism to perform targeted enhancement operation on a local area which needs to be enhanced most in an image to be processed, does not perform any enhancement operation on the residual area, and adopts a two-stage combination mechanism to perform image reconstruction, thereby ensuring the speed of image processing and solving the technical problem.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.