WO2019062424A1 - 一种基于图像处理的舞台灯自动对焦系统及方法 - Google Patents

一种基于图像处理的舞台灯自动对焦系统及方法 Download PDF

Info

Publication number
WO2019062424A1
WO2019062424A1 PCT/CN2018/102574 CN2018102574W WO2019062424A1 WO 2019062424 A1 WO2019062424 A1 WO 2019062424A1 CN 2018102574 W CN2018102574 W CN 2018102574W WO 2019062424 A1 WO2019062424 A1 WO 2019062424A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
value
stage light
control module
average gray
Prior art date
Application number
PCT/CN2018/102574
Other languages
English (en)
French (fr)
Inventor
蒋伟楷
Original Assignee
广州市浩洋电子股份有限公司
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 广州市浩洋电子股份有限公司 filed Critical 广州市浩洋电子股份有限公司
Publication of WO2019062424A1 publication Critical patent/WO2019062424A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D3/00Control of position or direction
    • G05D3/12Control of position or direction using feedback
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/73Deblurring; Sharpening
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source

Definitions

  • the invention relates to the field of luminaire illumination, in particular to a stage lamp autofocus system and method based on image processing.
  • the stage light is composed of a multi-layer pattern plate, an aperture, a focusing lens group, a zoom lens, a light-emitting mirror and the like.
  • the focusing lens group and the zoom lens constitute a dynamic optical lens group, and the display pattern is placed on the central axis of the optical lens group. Projecting through the optical lens group at a distance to form a clear real image. Due to the uncertainty of the application environment, the stage lights need to project clear and different real images at different distances. This requires adjusting the distance between the optical lens groups in the stage lights and the distance between the optical lens group and the pattern plate and the aperture. Due to the particularity of the stage light application environment, it is necessary to manually adjust the focusing lens group once every time the pattern plate or aperture is switched. When changing the size of the projection pattern, it is necessary to manually adjust the position of the zoom lens while also adjusting the focusing lens group. Location, use is very cumbersome.
  • the invention patent of the patent number CN201689343U (a method of autofocusing the moving head stage lamp), by testing the corresponding focusing value of the clear real image of all the pattern discs and the aperture under different distance conditions on the zoom axis, according to the practical application It is necessary to test the focusing distance from the projection distance of 4 meters to 20 meters and the two-dimensional space of the zoom size to form a database of two-dimensional arrays; in actual application, switching the pattern disk or changing the size of the projection pattern, the CPU can be based on the current two-dimensional The array looks for a corresponding focus value that makes the pattern clear, keeping the projection clear.
  • the disadvantage of this method is that it is necessary to test the corresponding focus value generation database of the clear real image of all the pattern discs and the aperture on the zoom axis under different distance conditions, the test workload is large, and the optical structure of different stage lamps changes. , you have to retest the focus generation database.
  • the stage lights since the measured projection points are not tested at all distances, in actual applications, the stage lights may have errors corresponding to the current two-dimensional array to make the corresponding focusing values of the patterns clear, and the real-image projections that are automatically adjusted may not be very Clear.
  • the present invention provides a stage light autofocus system and method based on image processing, which can automatically adjust clear real images of different sizes when switching different patterns or apertures by autofocusing, thereby avoiding The process of manually adjusting the optical lens group, as well as testing the corresponding focusing value on the zoom axis of all the pattern plates and apertures under different distance conditions, saves manpower and material resources, and improves the automatic control of the stage lighting technology. degree.
  • An image-based stage light autofocus system includes a stage light, a camera, and a control module, and a signal converter for transmitting and converting signals is connected between the stage light and the control module, and the camera is used for real-time acquisition of stage light projection And output the image to the control module, the control module is used to convert the image from the spatial domain to the frequency domain, and obtain the average gray value of the image in the frequency domain, and automatically adjust the putter of the focusing channel
  • the value is used to change the average gray value of the image, and compare with the average gray value of the previous frequency domain image to obtain the maximum average gray value, and obtain the corresponding focus channel fader value according to the maximum average gray value, and use
  • This putter value sets the focusing channel of the stage light, that is, the value of the focusing channel when the image is the clearest.
  • the value of the focusing channel is transmitted to the stage light through the signal converter, and the stage light adjusts the clarity of the stage light according to the signal of the focusing channel. Degree to achieve the purpose of auto
  • Stage lights are usually used on stage and square. Professional stage lights are high-tech products integrating electronics, machinery and optics.
  • the stage light is usually controlled by a PC to control the brightness, pattern and size of the projection.
  • the signal converter converts the signal so that the stage light can receive the signal transmitted by the PC or other control module and execute the control signal for automatic control.
  • the camera captures the image projected by the stage light and transmits the image to the control module.
  • the control module obtains the value of the focusing channel when the image is clearest by recognizing and adjusting the image, and then transmits the value of the focusing channel to the stage light through the signal converter.
  • the stage light projects a clear image according to the value of the focusing channel, thereby achieving the purpose of autofocusing, and has the advantages of simple, convenient, high automation program and wide application range.
  • the spatial domain is also called the image space, a space composed of image pixels. Processing the cell values directly in the image space with the length (distance) as an argument is called spatial domain processing.
  • the frequency domain is a study of vibration by frequency as a variable.
  • the adjustment of the focus channel fader value is from 0 to 255, and is adjusted one by one to obtain a corresponding average gray value, and the maximum average gray value and the corresponding focus channel value are obtained. .
  • the focus channel fader value gradually increases from 0 to 255.
  • the average gray value obtained will cause the average gray value to fluctuate up and down due to the image exposure lamp, but generally rises first and then decreases.
  • the trend is that when the average gray value after a plurality of consecutive times is smaller than the previous average gray value, it is basically determined that the largest average gray value has appeared before.
  • the larger the average gray value obtained the more high-frequency components of the image, and the sharper the image. Therefore, when adjusting the focus channel fader value from 0, when the obtained average gray value is larger than the average gray value of the previous image, the larger average gray value and the corresponding focus channel fader value are saved.
  • the focus value of the focus channel can be suspended. It is not necessary to continue to increase the focus channel fader value to 255.
  • the signal converter is a DMX512 converter.
  • the DMX512 converter uses the DMX512 protocol to transmit and convert signals.
  • the DMX512 protocol is a way to control the dimmer from a console using a standard digital interface. It is simple, reliable, flexible, highly adaptable and practical.
  • control module is provided with an OpenCV computer vision library for processing the projection image acquired by the camera.
  • the OpenCV Computer Vision Library is a cross-platform computer vision library based on BSD license (open source) distribution. It is mainly used in object recognition, motion tracking and motion analysis, and implements many general algorithms in image processing and computer vision.
  • control module converts the image from the spatial domain to the frequency domain by a discrete Fourier transform.
  • the Discrete Fourier Transform is used to convert an image from a spatial domain to a frequency domain to obtain an image with more high frequency components.
  • the camera is an industrial camera.
  • Industrial cameras can adjust the camera's exposure parameters to prevent over-exposure of captured images and affect image processing analysis.
  • the camera resolution is 640*480.
  • Using 640*480 camera resolution can effectively improve the camera's acquisition frame rate, image clarity and image processing speed of the control module.
  • stage light Turn on the stage light, the stage light works and projects the image, and after the light effect of the stage light is preset, the stage light is projected according to the light effect at this time;
  • the camera device collects the real image projected by the stage lamp, and transmits the image information to the control module.
  • the control module converts the acquired image from the spatial domain to the frequency domain, and draws the frequency domain image to obtain the average gray value VX of the frequency domain image.
  • step S4 comparing the average gray value VX+1 obtained in step S3 with the average gray value VX obtained in step S2, respectively, storing a larger average gray value and its corresponding focus channel fader value; and returning to the repeating step S2-S4, stop increasing the adjustment focus channel fader value until it increases to the maximum focus fader value 255;
  • step S5 according to the maximum average gray value obtained in step S4, the focus channel fader value is used, and the focus value of the stage light is set by the pusher value, that is, the focus channel value when the image is the clearest, the control module
  • the signal converter transmits the signal of the value of the focusing channel to the stage lamp, and the stage lamp receives the signal of the value of the focusing channel and projects a clear image according to the value of the focusing channel, thereby achieving the purpose of autofocusing.
  • step S3 the adjustment range of the focus fader value ranges from 0 to 255.
  • the stage light autofocus system and method based on image processing provided by the invention has the following beneficial effects:
  • the invention collects the real image projected by the stage lamp in real time by the camera device, automatically adjusts the value of the focus channel push rod, and obtains the maximum average gray value, so that the automatic focusing is clear when switching different patterns or apertures. Real-size image with full-automatic focus, easy operation, practicality and flexibility.
  • the present invention is applicable to most stage lights, and includes a real image in which different patterns or apertures of different stage lights are projected at different distances, and the application range is wide.
  • FIG. 1 is a schematic view showing the structure of a stage light autofocus system.
  • Figure 2 is a working flow chart of the stage light autofocus system.
  • an image processing-based stage light auto-focus system includes a stage light, a camera, and a control module, and a signal converter for transmitting and converting signals is connected between the stage light and the control module.
  • the signal converter is a DMX512 converter
  • the control module is a PC
  • the camera is preferentially selected as an industrial camera
  • the resolution is 640*480.
  • the camera is configured to collect an image projected by a stage light in real time, and transmit the image to a PC, wherein the PC is used to convert an image from a spatial domain to a frequency domain, and obtain an average gray value of an image in the frequency domain, By automatically adjusting the fader value of the focus channel to change the average gray value of the image, compared with the average gray value of the previous frequency domain image until the maximum average gray value is obtained, and the corresponding maximum gray value is obtained.
  • the focus channel fader value is the value of the focus channel when the image is the clearest.
  • the value of the focus channel obtained is transmitted to the stage light through the DMX512 converter, and the stage light adjusts the clarity of the stage light according to the focus channel signal. Thereby achieving the purpose of autofocus.
  • the control flow of the stage light autofocus system based on image processing is as follows: First, turn on the stage light, run the PC, preset the lighting effect of the stage light; then the camera captures the projected real image of the stage light, and The image is transmitted to the PC.
  • the PC converts the image from the spatial domain to the frequency domain, draws the frequency domain image, obtains the average gray value V X of the frequency domain image, and adds a unit to adjust the focus channel fader value on the PC.
  • the camera device again collects the real image projected by the stage light, and transmits the image information to the control module.
  • the control module converts the acquired image from the spatial domain to the frequency domain, and draws the frequency domain image to obtain the average gray value V X+ at this time.
  • the focal channel fader value is the average gray value of the image when it is the clearest and the corresponding focus channel fader value and uses this fader value to set the focus channel of the stage light; the PC transmits the signal of the focus channel through the DMX512 converter.
  • the stage light, the stage light are executed to execute a command and a clear image is projected according to the value of the focus channel, thereby achieving the purpose of automatic focusing.
  • stage light Turn on the stage light, the stage light works and projects the image, and after the light effect of the stage light is preset, the stage light is projected according to the light effect at this time;
  • the camera device collects the real image projected by the stage lamp, and transmits the image information to the control module, and the control module converts the acquired image from the spatial domain to the frequency domain, and draws the frequency domain image to obtain the average gray value V of the frequency domain image.
  • X the camera device collects the real image projected by the stage lamp, and transmits the image information to the control module, and the control module converts the acquired image from the spatial domain to the frequency domain, and draws the frequency domain image to obtain the average gray value V of the frequency domain image.
  • step S5 according to the maximum average gray value obtained in step S4, the focus channel fader value is used, and the focus value of the stage light is set by the pusher value, that is, the focus channel value when the image is the clearest, the control module
  • the signal converter transmits the signal of the value of the focusing channel to the stage lamp, and the stage lamp receives the signal of the value of the focusing channel and projects a clear image according to the value of the focusing channel, thereby achieving the purpose of autofocusing.
  • step S3 the adjustment range of the focus fader value ranges from 0 to 255.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Automatic Focus Adjustment (AREA)
  • Projection Apparatus (AREA)
  • Studio Devices (AREA)

Abstract

本发明公开了一种基于图像处理的舞台灯自动对焦系统,包括舞台灯、摄像机、控制模块和信号转换器,所述摄像机用于实时采集舞台灯投影出来的图像,并把图像传送给控制模块,所述控制模块用于将图像从空间域转换到频率域,并获取频率域中图像的平均灰度值,并通过自动调节调焦通道的推杆值来改变图像的平均灰度值,与上一幅频率域图像的平均灰度值进行比较,得到最大的平均灰度值,根据最大平均灰度值得到对应的调焦通道推杆值,并用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,调焦通道的数值通过信号转换器传送给舞台灯,舞台灯根据调焦通道信号调节舞台灯的清晰度,从而达到自动对焦的目的。

Description

一种基于图像处理的舞台灯自动对焦系统及方法 技术领域
本发明涉及灯具照明领域,具体涉及是一种基于图像处理的舞台灯自动对焦系统及方法。
背景技术
舞台灯由多层图案盘、光圈、调焦镜组、变焦镜、出光镜等部分组成,调焦镜组和变焦镜组成一个动态的光学透镜组,放在光学透镜组中心轴上的显示图案,经过光学透镜组在远处投影形成清晰的实像。由于应用环境的不确定性,舞台灯需要在不同距离投影出清晰的不同大小的实像,这就需要调整舞台灯中光学透镜组间的距离及光学透镜组与图案盘和光圈的距离。由于舞台灯应用环境的特殊性,需要在每次切换图案盘或光圈时进行一次手动调整调焦镜组,在改变投影图案大小时又需要手动调整变焦镜的位置同时还要调整调焦镜组位置,使用非常繁琐。
现有的技术中,舞台灯的调焦除了手动调焦外,还有一种支持自动对焦的方法。如专利号为CN201689343U的发明专利(一种摇头图案舞台灯自动对焦的方法),通过测试出不同距离条件下的所有图案盘和光圈的清晰实像在变焦轴上的对应调焦值,根据实际应用,需要测试从4米到20米的投影距离与变焦大小二维空间的调焦值,构成一个二维数组的数据库;实际应用时,切换图案盘或改变投影图案大小,CPU可根据当前二维数组寻找出使图案清晰的对应调焦值,保持投影清晰。这种方法的缺点是需要测试出不同距离条件下所有图案盘和光圈的清晰实像在变焦轴上的对应调焦值生成数据库,测试工作量很大,而且不同款的舞台灯光学结构发生变化时,又要重新测试调焦值生成数据库。另外,由于实测投影点并不是所有距离都测试到,所以在实际应用时,舞台灯根据当前二维数组寻找使图案清晰的对应调焦值会有误差,自动调焦出来的实像投影不一定很清晰。
技术问题
为克服现有的技术缺陷,本发明提供了一种基于图像处理的舞台灯自动对焦系统及方法,通过自动对焦可以在切换不同图案或光圈时,自动调焦出清晰的不同大小的实像,避免了手动调节光学透镜组的过程,以及测试不同距离条件下所有图案盘和光圈的清晰实像所在变焦轴上的对应调焦值等大量工作,节省了人力、物力,完善舞台灯光技术中自动化控制的程度。
技术解决方案
为实现本发明的目的,采用以下技术方案予以实现:
基于图像处理的舞台灯自动对焦系统,包括舞台灯、摄像机和控制模块,所述舞台灯与控制模块之间连接有用于传递并转换信号的信号转换器,所述摄像机用于实时采集舞台灯投影出来的图像,并把图像传送给控制模块,所述控制模块用于将图像从空间域转换到频率域,并获取频率域中图像的平均灰度值,并通过自动调节调焦通道的推杆值来改变图像的平均灰度值,与上一幅频率域图像的平均灰度值进行比较,得到最大的平均灰度值,根据最大平均灰度值得到对应的调焦通道推杆值,并用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,调焦通道的数值通过信号转换器传送给舞台灯,舞台灯根据调焦通道信号调节舞台灯的清晰度,从而达到自动对焦的目的。
舞台灯通常是用在舞台、广场,专业舞台灯是集电子、机械、光学为一体的高科技产品。舞台灯通常由PC机控制其投影的亮度、图案和大小等,信号转换器转换信号使得舞台灯能接收PC机或其他控制模块传送过来的信号并执行控制信号,达到自动控制的目的。摄像机采集舞台灯投影出来的图像,并把图像传送给控制模块,控制模块通过识别并调节图像获得图像最清晰时的调焦通道数值,再将调焦通道数值通过信号转换器传送给舞台灯,舞台灯按照该调焦通道数值投射出清晰图像,从而达到自动对焦的目的,具有简单、方便、自动化程序高、应用范围广的有益效果。空间域又称图像空间,由图像像元组成的空间。在图像空间中以长度(距离)为自变量直接对像元值进行处理称为空间域处理。频率域是以频率作为变数对振动所进行的研究。
进一步地,所述调焦通道推杆值的调节是从0至255,逐个加一进行调节,得到其对应的平均灰度值,并比较获得最大的平均灰度值及对应的调焦通道数值。
调焦通道推杆值从0开始逐渐增加至255,在这个过程中,获得的平均灰度值由于图像曝光度灯原因会导致平均灰度值上下起伏,但总体上呈先升高后降低的趋势,当出现连续多次后一次的平均灰度值比前一次的平均灰度值小时,基本可以确定最大的平均灰度值已在前面出现。其中获得的平均灰度值越大,图像高频分量越多,图像也就越清晰。因此,从0开始调节调焦通道推杆值时,当获得的平均灰度值比上一个图像的平均灰度值大时,保存较大的平均灰度值及对应调焦通道推杆值,当连续获得的平均灰度值比上一个图像的平均灰度值小时,说明图像的平均灰度值越来越小,图像越来越模糊,此时则可以中止调节调焦通道推杆值,不必继续增加调焦通道推杆值至255。
进一步地,所述信号转换器为DMX512转换器。
DMX512转换器采用DMX512协议传输并转换信号,DMX512协议是从控制台用标准数字接口控制调光器的方式,具有简单、可靠、灵活和适用性高、实用性强的特点。
进一步地,所述控制模块设有OpenCV计算机视觉库,用于处理摄像机采集的投影图像。
OpenCV计算机视觉库是一个基于BSD许可(开源)发行的跨平台计算机视觉库,主要应用在物体识别、运动跟踪和运动分析领域,实现了图像处理和计算机视觉方面的很多通用算法。
进一步地,所述控制模块通过离散傅里叶变换将图像从空间域转换到频率域。
离散傅里叶变换用于将图像从空间域转换到频率域,获得高频分量更多的图像。图像的高频分量越多,平均灰度值越多,图像越清晰。
进一步地,所述摄像机为工业相机。
工业相机可以调节相机的曝光参数,防止采集的图像过度曝光,影响图像处理分析。
进一步地,所述摄像机分辨率采用640*480。
采用640*480的摄像机分辨率能有效提高摄像机的采集帧率、图像的清晰度以及控制模块的图像处理速度。
一种应用于上述的基于图像处理的舞台灯自动对焦系统的自动对焦方法,其自动对焦步骤包括:
S1:打开舞台灯,舞台灯工作并投射出图像,预设好舞台灯的灯光效果后,使舞台灯按照此时的灯光效果投射出图像;
S2:摄像装置采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频域图像,获取频率域图像的平均灰度值VX;
S3:增加一单元调节控制模块上的调焦推杆值,摄像装置再次采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频率域图像,获得此时的平均灰度值VX+1,
S4:将步骤S3获得的平均灰度值VX+1分别与步骤S2获得的平均灰度值VX比较,保存较大的平均灰度值和其对应的调焦通道推杆值;并返回重复步骤S2-S4,直至增加至最大的调焦推杆值255时停止增加调节调焦通道推杆值;
S5:根据步骤S4得到的最大的平均灰度值所对应的调焦通道推杆值,用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,控制模块通过信号转换器输送此时调焦通道数值的信号给舞台灯,舞台灯接收调焦通道数值的信号并根据该调焦通道数值投影出清晰图像,从而达到自动对焦的目的。
进一步地,步骤S3中,调焦推杆值的调节范围从0至255。
有益效果
与现有技术比较,本发明提供的一种基于图像处理的舞台灯自动对焦系统及方法具有以下有益效果:
(1)本发明通过摄像装置实时采集舞台灯投影出来的实像,自动调节调焦通道推杆值,获得最大的平均灰度值,实现在切换不同图案或光圈时,自动调焦出清晰的不同大小的实像,具有全自动对焦、操作简单、实用性强和灵活性强的有益效果。
(2)本发明适用于大部分舞台灯,包含舞台灯在不同距离下所有图案盘或光圈投影出来不同颜色的实像均适用,适用范围广。
附图说明
图1为舞台灯自动对焦系统的构成示意图。
图2为舞台灯自动对焦系统的工作流程图。
本发明的最佳实施方式
如图1所示,一种基于图像处理的舞台灯自动对焦系统,包括舞台灯、摄像机和控制模块,所述舞台灯与控制模块之间连接有用于传递并转换信号的信号转换器。其中,所述信号转换器为DMX512转换器,所述控制模块为PC机,摄像机优先选择工业相机,分辨率采用640*480。所述摄像机用于实时采集舞台灯投影出来的图像,并把图像传送给PC机,所述PC机用于将图像从空间域转换到频率域,并获取频率域中图像的平均灰度值,通过自动调节调焦通道的推杆值来改变图像的平均灰度值,与上一幅频率域图像的平均灰度值比较,直至得到最大的平均灰度值,根据最大平均灰度值得到对应的调焦通道推杆值,即为图像最清晰时的调焦通道数值,将获得的调焦通道数值通过DMX512转换器传送给舞台灯,舞台灯根据调焦通道信号调节舞台灯的清晰度,从而达到自动对焦的目的。
如图2所示,基于图像处理的舞台灯自动对焦系统的控制流程如下:首先,打开舞台灯,运行PC机,预设好舞台灯的灯光效果;然后摄像机采集舞台灯的投影实像,并将图像传递给PC机,PC机通过将图像从空间域转换到频率域,绘制频率域图像,获得频率域图像的平均灰度值V X;增加一单元调节PC机上的调焦通道推杆值,摄像装置再次采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频率域图像,获得此时的平均灰度值V X+1;将平均灰度值V X+1分别与步骤S2获得的平均灰度值V X比较,保存较大的平均灰度值和其对应的调焦通道推杆值;继续有序地增加调焦通道推杆值,获得平均灰度值,直至增加至最大的调焦推杆值255时停止增加调节调焦通道推杆值;获取最大的平均灰度值及对应的调焦通道推杆值,即为图像最清晰时的平均灰度值及对应的调焦通道推杆值并用此推杆值设置舞台灯的调焦通道; PC机通过DMX512转换器将调焦通道的信号传递给舞台灯,舞台灯执行命令并根据该调焦通道数值投影出清晰图像,从而实现自动调焦的目的。
一种应用于上述的基于图像处理的舞台灯自动对焦系统的自动对焦方法,其自动对焦步骤包括:
S1:打开舞台灯,舞台灯工作并投射出图像,预设好舞台灯的灯光效果后,使舞台灯按照此时的灯光效果投射出图像;
S2:摄像装置采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频域图像,获取频率域图像的平均灰度值V X
S3:增加一单元调节控制模块上的调焦推杆值,摄像装置再次采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频率域图像,获得此时的平均灰度值V X+1
S4:将步骤S3获得的平均灰度值V X+1分别与步骤S2获得的平均灰度值V X比较,保存较大的平均灰度值和其对应的调焦通道推杆值;并返回重复步骤S2-S4,直至增加至最大的调焦推杆值255时停止增加调节调焦通道推杆值;
S5:根据步骤S4得到的最大的平均灰度值所对应的调焦通道推杆值,用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,控制模块通过信号转换器输送此时调焦通道数值的信号给舞台灯,舞台灯接收调焦通道数值的信号并根据该调焦通道数值投影出清晰图像,从而达到自动对焦的目的。
其中,步骤S3中,调焦推杆值的调节范围从0至255。

Claims (9)

  1. 一种基于图像处理的舞台灯自动对焦系统,其特征在于,包括舞台灯、摄像机和控制模块,所述舞台灯与控制模块之间连接有用于传递并转换信号的信号转换器,所述摄像机用于实时采集舞台灯投影出来的图像,并把图像传送给控制模块,所述控制模块用于将图像从空间域转换到频率域,并获取频率域中图像的平均灰度值,并通过自动调节调焦通道的推杆值来改变图像的平均灰度值,与上一幅频率域图像的平均灰度值进行比较,得到最大的平均灰度值,根据最大平均灰度值得到对应的调焦通道推杆值,并用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,调焦通道的数值通过信号转换器传送给舞台灯,舞台灯根据调焦通道信号调节舞台灯的清晰度,从而达到自动对焦的目的。
  2. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述调焦通道推杆值的调节是从0至255,逐个加一进行调节,得到其对应的平均灰度值,并比较获得最大的平均灰度值及对应的调焦通道数值。
  3. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述信号转换器为DMX512转换器。
  4. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述控制模块设有OpenCV计算机视觉库,用于处理摄像机采集的投影图像。
  5. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述控制模块通过离散傅里叶变换将图像从空间域转换到频率域。
  6. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述摄像机为工业相机。
  7. 根据权利要求1所述的一种基于图像处理的舞台灯自动对焦系统,其特征在于,所述摄像机分辨率采用640*480。
  8. 一种应用于权利要求1-7任一项所述的基于图像处理的舞台灯自动对焦系统的自动对焦方法,其特征在于,其自动对焦步骤包括:
    S1:打开舞台灯,舞台灯工作并投射出图像,预设好舞台灯的灯光效果后,使舞台灯按照此时的灯光效果投射出图像;
    S2:摄像装置采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频域图像,获取频率域图像的平均灰度值V X
    S3:增加一单元调节控制模块上的调焦推杆值,摄像装置再次采集舞台灯投影出来的实像,并把图像信息传递给控制模块,控制模块将采集图像从空间域转换到频率域,并绘制频率域图像,获得此时的平均灰度值V X+1
    S4:将步骤S3获得的平均灰度值V X+1分别与步骤S2获得的平均灰度值V X比较,保存较大的平均灰度值和其对应的调焦通道推杆值;并返回重复步骤S2-S4,直至增加至最大的调焦推杆值255时停止增加调节调焦通道推杆值;
    S5:根据步骤S4得到的最大的平均灰度值所对应的调焦通道推杆值,用此推杆值设置舞台灯的调焦通道,即为图像最清晰时的调焦通道数值,控制模块通过信号转换器输送此时调焦通道数值的信号给舞台灯,舞台灯接收调焦通道数值的信号并根据该调焦通道数值投影出清晰图像,从而达到自动对焦的目的。
  9. 根据权利要求8所述的基于图像处理的舞台灯自动对焦系统的自动对焦方法,其特征在于,步骤S3中,调焦推杆值的调节范围从0至255。
PCT/CN2018/102574 2017-09-30 2018-08-27 一种基于图像处理的舞台灯自动对焦系统及方法 WO2019062424A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710922476.4A CN107743194B (zh) 2017-09-30 2017-09-30 一种基于图像处理的舞台灯自动对焦系统及方法
CN201710922476.4 2017-09-30

Publications (1)

Publication Number Publication Date
WO2019062424A1 true WO2019062424A1 (zh) 2019-04-04

Family

ID=61236654

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/102574 WO2019062424A1 (zh) 2017-09-30 2018-08-27 一种基于图像处理的舞台灯自动对焦系统及方法

Country Status (2)

Country Link
CN (1) CN107743194B (zh)
WO (1) WO2019062424A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815121A (zh) * 2022-02-22 2022-07-29 湖北三赢兴光电科技股份有限公司 一种摄像模组的快速调焦方法及系统

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107743194B (zh) * 2017-09-30 2020-12-04 广州市浩洋电子股份有限公司 一种基于图像处理的舞台灯自动对焦系统及方法
CN109949625B (zh) * 2019-04-09 2021-10-15 义乌市万博创意设计有限公司 一种可对比中西方健美操差异的训练装置
CN110793000B (zh) * 2019-10-31 2022-01-18 广州市浩洋电子股份有限公司 一种基于机器视觉的摇头电脑灯智能调焦方法
CN111867213B (zh) * 2020-07-21 2023-02-03 广州市昇蓝演艺设备有限公司 一种电脑追光灯控制系统
CN114321840B (zh) * 2021-12-31 2023-08-29 广州市浩洋电子股份有限公司 一种舞台灯的光学对焦方法以及舞台灯光学系统

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101718912A (zh) * 2009-11-27 2010-06-02 北京工业大学 放大倍率可变的工业x射线底片数字化细节观察仪
US20110228138A1 (en) * 2006-12-28 2011-09-22 Victor Company Of Japan, Ltd., A Corporation Of Japan Focus-adjustment signal generating apparatus and method, and imaging apparatus and method, with manual focus adjustments
CN102636939A (zh) * 2011-02-11 2012-08-15 中强光电股份有限公司 投射系统
CN104917970A (zh) * 2015-06-18 2015-09-16 中国工程物理研究院激光聚变研究中心 一种自动调焦方法
CN105578061A (zh) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 一种拍照防抖的方法、装置及移动终端
CN107743194A (zh) * 2017-09-30 2018-02-27 广州市浩洋电子股份有限公司 一种基于图像处理的舞台灯自动对焦系统及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110228138A1 (en) * 2006-12-28 2011-09-22 Victor Company Of Japan, Ltd., A Corporation Of Japan Focus-adjustment signal generating apparatus and method, and imaging apparatus and method, with manual focus adjustments
CN101718912A (zh) * 2009-11-27 2010-06-02 北京工业大学 放大倍率可变的工业x射线底片数字化细节观察仪
CN102636939A (zh) * 2011-02-11 2012-08-15 中强光电股份有限公司 投射系统
CN104917970A (zh) * 2015-06-18 2015-09-16 中国工程物理研究院激光聚变研究中心 一种自动调焦方法
CN105578061A (zh) * 2016-02-25 2016-05-11 广东欧珀移动通信有限公司 一种拍照防抖的方法、装置及移动终端
CN107743194A (zh) * 2017-09-30 2018-02-27 广州市浩洋电子股份有限公司 一种基于图像处理的舞台灯自动对焦系统及方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZHU, SHIPING ET AL.: "New Kind of Energy-Spectrum Entropy Image Focusing Evaluation Function", JOURNAL OF BEIJING UNIVERSITY OF AERONAUTICS AND ASTRONAUTICS, vol. 25, no. 6, 31 December 1999 (1999-12-31) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815121A (zh) * 2022-02-22 2022-07-29 湖北三赢兴光电科技股份有限公司 一种摄像模组的快速调焦方法及系统

Also Published As

Publication number Publication date
CN107743194B (zh) 2020-12-04
CN107743194A (zh) 2018-02-27

Similar Documents

Publication Publication Date Title
WO2019062424A1 (zh) 一种基于图像处理的舞台灯自动对焦系统及方法
US10178321B2 (en) Machine vision inspection system and method for obtaining an image with an extended depth of field
CN108088424B (zh) 机器视觉检查系统和用于获得具有扩展景深的图像的方法
US9774765B2 (en) Chromatic aberration correction in imaging system including variable focal length lens
CN101292359B (zh) 用于测量图像的设备和方法
CN103118270B (zh) 一种摄像头测试装置及其测试方法
TW201602556A (zh) 具有投影光源的攝像方法及其攝像裝置
CN106210520B (zh) 一种自动调焦电子目镜及系统
EP3401721A1 (en) Apparatus and method for scanning microscope slides
CN101718912B (zh) 放大倍率可变的工业x射线底片数字化细节观察仪
EP3879172B1 (en) Machine vision based intelligent focusing method for a moving head lamp
US11119382B2 (en) Tunable acoustic gradient lens system with amplitude adjustment corresponding to z-height as indicated by calibration data
JP7319903B2 (ja) 高速tagレンズ支援3d計測及び拡張被写界深度撮像
RU2389050C1 (ru) Способ автоматической фокусировки
US20060245748A1 (en) Method and apparatus for testing and adjusting focus of an imaging device
CN108292084A (zh) 图像投影装置
CN112153357A (zh) 投影系统及其投影方法
US7228069B2 (en) Focusing method for digital camera using plural spatial frequencies
CN104633599B (zh) 一种摇头图案电脑灯自动对焦的方法
FI126481B (en) Method and system for testing digital imaging equipment
WO2019064968A1 (ja) 投影装置および投影方法
US11249225B2 (en) Tunable acoustic gradient lens system utilizing amplitude adjustments for acquiring images focused at different z-heights
US10761311B2 (en) Digital microscope and method for acquiring a stack of microscopic images of a specimen
CN209017154U (zh) 一种摄像机
CN111721237A (zh) 全自动多频离焦投影三维成像测量系统及其测量方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18861120

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18861120

Country of ref document: EP

Kind code of ref document: A1