Automatic light fixation method and system based on image recognition and space approximation control
阅读说明:本技术 基于图像识别和空间逼近进行控制的自动定光方法及系统 (Automatic light fixation method and system based on image recognition and space approximation control ) 是由 *** 仇德硕 于 2018-07-02 设计创作,主要内容包括:本发明提供一种基于图像识别和空间逼近进行控制的自动定光方法及系统,用于对装设于舞台周围的灯具进行定光控制,所述自动定光方法包括:S1,采集舞台图像并确定所要控制的灯具;S2,接收对所述舞台图像的目标点选取指令并根据所述目标点选取指令确定所述灯具所要照射的目标照射位置;S3,根据所述目标照射位置调节所述灯具的照射位置,使得所述灯具的照射位置定位于所述目标照射位置。本发明中,用户通过在图像上指定所选灯具的目标照射位置之后,自动控制灯具依据图像中光斑位置的移动逐渐向目标照射位置逼近,直至最终达到目标位置,本发明不依赖于灯具等舞台设备的空间数据,有效节省人力和时间,提高灯具的控制智能化。(The invention provides an automatic light fixation method and system based on image recognition and space approximation for control, which are used for performing light fixation control on lamps arranged around a stage, and the automatic light fixation method comprises the following steps: s1, collecting stage images and determining lamps to be controlled; s2, receiving an object point selection instruction of the stage image and determining an object irradiation position to be irradiated by the lamp according to the object point selection instruction; s3, adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position. According to the invention, after a user designates the target irradiation position of the selected lamp on the image, the lamp is automatically controlled to gradually approach the target irradiation position according to the movement of the spot position in the image until the target irradiation position is finally reached.)
1. An automatic light fixation method based on image recognition and space approximation for controlling the light fixation of lamps arranged around a stage is characterized in that: the automatic light fixation method based on image recognition and space approximation control comprises the following steps:
s1, collecting stage images and determining lamps to be controlled;
s2, receiving an object point selection instruction of the stage image and determining an object irradiation position to be irradiated by the lamp according to the object point selection instruction;
s3, adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
2. The automatic light-fixing method based on image recognition and spatial approximation control according to claim 1, characterized in that: adjusting the irradiation position of the lamp according to the target irradiation position, so that positioning the irradiation position of the lamp at the target irradiation position specifically includes:
s31, collecting real-time stage images;
s32, acquiring the light spot position of the lamp in the stage real-time image;
s33, adjusting the lamp according to the distance and the orientation of the target irradiation position relative to the light spot position, so that the irradiation position of the lamp approaches to the target irradiation position;
repeating S31-S33 until the illumination position of the light fixture is positioned at the target illumination position.
3. The automatic light-fixing method based on image recognition and spatial approximation as claimed in claim 2, wherein: and if a plurality of lamps are controlled, distinguishing each lamp according to the color of light spots on the image.
4. The automatic light-fixing method based on image recognition and spatial approximation control according to claim 1, characterized in that: the automatic light fixation method based on image recognition and space approximation control further comprises the following steps:
recording a moving track of the lamp moving to the target irradiation position;
and when the irradiation position of the lamp is adjusted next time, adjusting the irradiation position of the lamp according to the recorded moving track and the target irradiation position.
5. The automatic light-fixing method based on image recognition and spatial approximation control according to claim 1, characterized in that: and generating the target point selection instruction by touching the target point of the stage image.
6. The utility model provides an automatic light system for deciding based on image recognition and space approach control for decide light control to the lamps and lanterns of installing around the stage, its characterized in that: the automatic light-fixing system based on image recognition and space approximation control comprises:
the camera device is used for collecting stage images;
light control device includes:
an image receiving unit for receiving the stage image from the image pickup device;
the lamp selecting unit is used for determining a lamp to be controlled;
the target irradiation position selection unit is used for receiving a target point selection instruction of the stage image and determining a target irradiation position to be irradiated by the lamp according to the target point selection instruction;
and the adjusting unit is used for adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
7. The automatic light-fixing system based on image recognition and spatial approximation control of claim 6, wherein: the adjusting unit continuously acquires the light spot position of the lamp in the stage real-time image, and adjusts the lamp according to the distance and the direction of the target irradiation position relative to the light spot position, so that the irradiation position of the lamp gradually approaches to the target irradiation position until the lamp is positioned at the target irradiation position.
8. The automatic light-fixing system based on image recognition and spatial approximation control of claim 7, wherein: if the lamps are controlled by a plurality of lamps, the adjusting unit distinguishes each lamp according to the color of light spots on the image.
9. The automatic light-fixing system based on image recognition and spatial approximation control of claim 6, wherein: the light control device further comprises a self-learning unit, wherein the self-learning unit is used for recording a moving track of the lamp moving to the target irradiation position, and adjusting the irradiation position of the lamp according to the recorded moving track and the target irradiation position when the irradiation position of the lamp is adjusted next time.
10. The automatic light-fixing method based on image recognition and spatial approximation control according to claim 6, characterized in that: and the target illumination position selection unit generates the target point selection instruction when the target point of the stage image is touched.
Technical Field
The invention relates to the technical field of light control, in particular to the technical field of stage light, and specifically relates to an automatic light fixation method and system for control based on image recognition and space approximation.
Background
Stage lighting is also called stage lighting, and is called lighting for short. One of the means of stage art modeling. With the development of the scenario, stage lighting equipment (such as lighting lamps, slide projectors, control systems and the like) and technical means are used for displaying the environment and rendering the atmosphere by light colors and changes thereof, highlighting central characters, creating the sense of space and time of the stage, shaping the external image of the stage performance and providing necessary lighting effects (such as wind, rain, clouds, water and lightning). Stage lighting is an important component of a performance space, and is an artistic creation that performs all-around visual environment lighting design on characters and required specific scenes according to the development of plots and reproduces design intentions to audiences in a visual image mode purposefully. The space modeling of characters and plots is comprehensively and systematically considered, modeling rules are strictly followed, and means are used.
In the practical application of stage lighting, a large number of fixed-point optical programming operations exist, and at present, the light spots are guided to reach target positions basically by means of manual control, so that a large amount of time is consumed.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, the present invention provides an automatic light-fixing system based on image recognition and spatial approximation for controlling, so as to solve the problem of manpower and time consumption caused by the need of manual control for stage lights to guide light spots to reach target positions in application.
In order to achieve the above and other related objects, the present invention provides an automatic light-fixing method based on image recognition and spatial approximation for controlling light-fixing of lamps installed around a stage, the automatic light-fixing method based on image recognition and spatial approximation comprising: s1, collecting stage images and determining lamps to be controlled; s2, receiving an object point selection instruction of the stage image and determining an object irradiation position to be irradiated by the lamp according to the object point selection instruction; s3, adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
In an embodiment of the present invention, the adjusting the irradiation position of the lamp according to the target irradiation position so that the positioning of the irradiation position of the lamp at the target irradiation position specifically includes: s31, collecting real-time stage images; s32, acquiring the light spot position of the lamp in the stage real-time image; s33, adjusting the lamp according to the distance and the orientation of the target irradiation position relative to the light spot position, so that the irradiation position of the lamp approaches to the target irradiation position; repeating S31-S33 until the illumination position of the light fixture is positioned at the target illumination position.
In an embodiment of the invention, if there are a plurality of lamps to be controlled, each of the lamps is distinguished by the color of the light spot on the image.
In an embodiment of the present invention, the automatic light-fixing method based on image recognition and spatial approximation further includes: recording a moving track of the lamp moving to the target irradiation position; and when the irradiation position of the lamp is adjusted next time, adjusting the irradiation position of the lamp according to the recorded moving track and the target irradiation position.
In an embodiment of the invention, the target point selecting instruction is generated by touching the target point of the stage image.
The embodiment of the present invention further provides an automatic light-fixing system for controlling based on image recognition and spatial approximation, which is used for performing light-fixing control on lamps installed around a stage, and the automatic light-fixing system for controlling based on image recognition and spatial approximation includes: the camera device is used for collecting stage images; light control device includes: an image receiving unit for receiving the stage image from the image pickup device; the lamp selecting unit is used for determining a lamp to be controlled; the target irradiation position selection unit is used for receiving a target point selection instruction of the stage image and determining a target irradiation position to be irradiated by the lamp according to the target point selection instruction; and the adjusting unit is used for adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
In an embodiment of the invention, the adjusting unit continuously obtains the light spot position of the lamp in the stage real-time image, and adjusts the lamp according to the distance and the orientation of the target irradiation position relative to the light spot position, so that the irradiation position of the lamp gradually approaches to the target irradiation position until the lamp is positioned at the target irradiation position.
In an embodiment of the invention, if there are a plurality of lamps to be controlled, the adjusting unit distinguishes each lamp according to a color of a light spot on an image.
In an embodiment of the invention, the lighting control device further includes a self-learning unit, configured to record a moving track of the lamp moving to the target irradiation position, and adjust the irradiation position of the lamp according to the recorded moving track and the target irradiation position when the irradiation position of the lamp is adjusted next time.
In an embodiment of the invention, the target illumination position selection unit generates the target point selection instruction when the target point of the stage image is touched.
As described above, the automatic light-fixing system based on image recognition and space approximation control of the present invention has the following features
Has the advantages that:
according to the invention, after a user designates the target irradiation position of the selected lamp on the image, the lamp is automatically controlled to gradually approach the target irradiation position according to the movement of the spot position in the image until the target irradiation position is finally reached.
Drawings
Fig. 1 is a flowchart illustrating an automatic light-fixing method based on image recognition and spatial approximation according to an embodiment of the present invention.
Fig. 2 is a schematic flow chart illustrating a specific process of positioning the irradiation position of the target in the automatic light-fixing method based on image recognition and spatial approximation in an embodiment of the present invention.
Fig. 3 is a schematic flow chart illustrating self-learning in an automatic light-fixing method for controlling based on image recognition and spatial approximation according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of an automatic light-fixing system based on image recognition and spatial approximation control according to an embodiment of the present invention.
Fig. 5 is a schematic block diagram of an automatic light-fixing system based on image recognition and spatial approximation control according to an embodiment of the present invention.
Description of the element reference numerals
100 automatic light-fixing system
110 camera device
120 light control device
121 image receiving unit
122 lamp selecting unit
123 target irradiation position selecting unit
124 regulating unit
125 self-learning unit
S1-S5
S31-S34
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention.
Please refer to fig. 1 to 5. It should be understood that the structures, ratios, sizes, and the like shown in the drawings and described in the specification are only used for matching with the disclosure of the specification, so as to be understood and read by those skilled in the art, and are not used to limit the conditions under which the present invention can be implemented, so that the present invention has no technical significance, and any structural modification, ratio relationship change, or size adjustment should still fall within the scope of the present invention without affecting the efficacy and the achievable purpose of the present invention. In addition, the terms "upper", "lower", "left", "right", "middle" and "one" used in the present specification are for clarity of description, and are not intended to limit the scope of the present invention, and the relative relationship between the terms and the terms is not to be construed as a scope of the present invention.
The embodiment of the invention aims to provide an automatic light fixing method and system for controlling based on image recognition and space approximation, which are used for solving the problem that in the prior art, manual control is needed to be relied on to lead light spots to reach target positions when stage lighting is applied, so that labor and time are consumed.
The principle and implementation of the automatic light-fixing system based on image recognition and spatial approximation will be described in detail below, so that those skilled in the art can understand the automatic light-fixing system based on image recognition and spatial approximation without creative labor.
The present embodiment provides an automatic light-fixing method based on image recognition and spatial approximation for controlling light-fixing of lamps installed around a stage, as shown in fig. 1, the automatic light-fixing method based on image recognition and spatial approximation includes the following steps:
step S1, collecting stage images and determining lamps to be controlled;
step S2, receiving an object point selection instruction of the stage image and determining an object irradiation position to be irradiated by the lamp according to the object point selection instruction;
and step S3, adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
The following describes in detail steps S1 to S3 in the automatic light-fixing method based on image recognition and spatial approximation control according to the present embodiment.
And step S1, collecting stage images and determining lamps to be controlled.
In this embodiment, the stage image is captured by a camera device, for example, at least one camera captures the stage image. Wherein, the stage image of gathering shows through lighting control device's display screen.
In this embodiment, the determining the lamp to be controlled specifically includes but is not limited to: and displaying a lamp control interface of each lamp of the control stage through a display screen of the lighting control device, and selecting the lamp to be controlled through touch control of the lamp control interface.
In addition, the manner of determining the controlled lamp is not limited to the above manner, and the above manner is only one of the preferable manners, and the lamp to be controlled may be selected by controlling a lamp control button provided on the light control device.
And step S2, receiving an object point selection instruction of the stage image and determining an object irradiation position to be irradiated by the lamp according to the object point selection instruction.
In this embodiment, the target point selection instruction is generated by touching the target point of the stage image.
For example, a point in the stage image is clicked by a finger, the clicked point is the target point, the target point selection instruction is generated according to the target point, and the target irradiation position of the lamp on the stage is determined, namely the target irradiation position corresponds to the target point in the stage image.
And step S3, adjusting the irradiation position of the lamp according to the target irradiation position, so that the irradiation position of the lamp is positioned at the target irradiation position.
Specifically, in this embodiment, as shown in fig. 2, the adjusting the irradiation position of the lamp according to the target irradiation position so that the positioning of the irradiation position of the lamp at the target irradiation position specifically includes:
s31, collecting real-time stage images;
s32, acquiring the light spot position of the lamp in the stage real-time image;
s33, adjusting the lamp according to the distance and the orientation of the target irradiation position relative to the light spot position, so that the irradiation position of the lamp approaches to the target irradiation position;
and step 34, judging whether the irradiation position of the lamp is at the target irradiation position, if so, ending the positioning process, otherwise, repeating S31 to S33 until the irradiation position of the lamp is positioned at the target irradiation position.
Therefore, the automatic light fixing method can automatically control the lamp to gradually approach to the target irradiation position according to the movement of the spot position in the image until the target position is finally reached.
In this embodiment, if there are a plurality of lamps to be controlled, each lamp is distinguished by the color of the light spot on the image, so that each lamp is controlled to reach the target position according to the above method.
In this embodiment, a self-learning training may be further performed on the lamp, and the light-fixing speed when the lamp is controlled next time is increased, specifically, as shown in fig. 3, the automatic light-fixing method based on image recognition and spatial approximation further includes:
step S4, recording the moving track of the lamp moving to the target irradiation position;
and step S5, when the irradiation position of the lamp is adjusted next time, the irradiation position of the lamp is adjusted according to the recorded moving track and the target irradiation position.
For example, when the lamp is adjusted next time, at least the position of the lamp when the lamp presents a light spot in the stage image can be acquired, and the time that the lamp is not adjusted to enable the lamp to irradiate the designated area on the stage when the lamp is controlled is reduced.
In addition, if the irradiation position of the lamp is adjusted next time, the irradiation position is the same as the previous irradiation position, the adjustment parameter of the lamp at the previous irradiation position is directly obtained, if the irradiation position of the lamp is adjusted next time and is very close to the previous irradiation position, the adjustment parameter of the previous irradiation position of the lamp is directly obtained, the target irradiation position is adjusted from the previous irradiation position of the lamp, and the adjustment time is saved.
As shown in fig. 4, an embodiment of the present invention further provides an
The
In the present embodiment, the
In this embodiment, the stage image is captured by the
In this embodiment, the
In this embodiment, the image receiving unit 121 is configured to receive the stage image from the
The
In the present embodiment, the
In this embodiment, the
In addition, the manner of determining the controlled lamp is not limited to the above, which is only one of the preferred manners, and the
In this embodiment, the target irradiation
In this embodiment, the target irradiation
For example, a point in the stage image is clicked by a finger, the clicked point is the target point, the target point selection instruction is generated according to the target point, and the target irradiation position of the lamp on the stage is determined, namely the target irradiation position corresponds to the target point in the stage image.
In this embodiment, the adjusting
Specifically, the adjusting
Therefore, the automatic light fixing method can automatically control the lamp to gradually approach to the target irradiation position according to the movement of the spot position in the image until the target position is finally reached.
In this embodiment, if there are a plurality of lamps to be controlled, the adjusting
In this embodiment, as shown in fig. 5, the
For example, when the light fixture is adjusted next time, the adjusting
In addition, if the adjusting
Furthermore, in order to highlight the innovative part of the present invention, the technical features that are not so closely related to solve the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that there are no other structural and functional features present in the present embodiment.
It should be noted that the drawings provided in the present embodiment are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
In summary, in the invention, after the user designates the target irradiation position of the selected lamp on the image, the lamp is automatically controlled to gradually approach the target irradiation position according to the movement of the spot position in the image until the target irradiation position is finally reached. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.
- 上一篇:一种医用注射器针头装配设备
- 下一篇:摄像模组、电子设备及摄像模组的控制方法