WO2024016620A1 - 基于环境取色的照明控制方法、装置、设备和存储介质 - Google Patents

基于环境取色的照明控制方法、装置、设备和存储介质 Download PDF

Info

Publication number
WO2024016620A1
WO2024016620A1 PCT/CN2023/073082 CN2023073082W WO2024016620A1 WO 2024016620 A1 WO2024016620 A1 WO 2024016620A1 CN 2023073082 W CN2023073082 W CN 2023073082W WO 2024016620 A1 WO2024016620 A1 WO 2024016620A1
Authority
WO
WIPO (PCT)
Prior art keywords
range
effective color
environment
color
lighting control
Prior art date
Application number
PCT/CN2023/073082
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 WO2024016620A1 publication Critical patent/WO2024016620A1/zh

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • 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
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/125Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Definitions

  • the present application relates to the technical field of lighting equipment, and in particular to a lighting control method, device, equipment and storage medium based on environmental color selection.
  • the currently commonly used method is to obtain real-time screen images in the environment, identify the screen images to obtain color information, and then control the lighting based on the color information.
  • the screen images usually also include some interference factors, such as screen images.
  • the outer display screen frame, projection screen frame, etc. will in turn affect the lighting control effect. Therefore, in the existing technology, there are interference factors in the screen image that lead to poor lighting control effects.
  • a lighting control method, device, equipment and storage medium based on environmental color selection are provided to solve the problem in related technologies that interference factors in screen images lead to poor lighting control effects.
  • this embodiment provides a lighting control method based on environmental color selection, including:
  • RGB data within the effective color range, and control the color of the corresponding lighting device in the environment based on the RGB data.
  • the real-time acquisition of environmental screen images in the current environment includes:
  • a video stream is generated and transmitted to the client.
  • determining the effective color range in response to user operations includes:
  • the effective color range is determined according to the area where the user draws out the effective color range in the environment screen image of the client.
  • determining the effective color range in response to user operations includes:
  • the effective color range is determined according to the user's drawing of the boundary line of the effective color range in the environment screen image of the client.
  • obtaining the coordinate point data of the effective color range includes:
  • the coordinate point data of the effective color range is obtained through image segmentation technology.
  • determining the effective color pickup range in response to a user operation and obtaining coordinate point data of the effective color pickup range includes:
  • the coordinate point data of the effective color pickup range is determined.
  • the method further includes:
  • a smear operation or a key point selection operation is performed in the environment screen image of the client.
  • obtaining RGB data within the effective color range, and controlling the color of the corresponding lighting device in the environment based on the RGB data includes:
  • the effective color range is divided into several areas, the RGB values of the areas are obtained, and the corresponding lighting device colors are controlled based on the mapping relationship.
  • this embodiment provides a lighting control device based on environmental color selection, including: a capture module, a smear module and a lighting control module;
  • the capture module is used to capture real-time images of the environment in the current environment
  • the smear module is used to determine the effective color pickup range in response to user operations, and obtain coordinate point data of the effective color pickup range;
  • the lighting control module is used to obtain RGB data within the effective color range, and control the color of the corresponding lighting equipment in the environment based on the RGB data.
  • this embodiment provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor.
  • the processor executes the computer program.
  • the program implements the lighting control method based on environmental color selection described in the first aspect above.
  • this embodiment provides a storage medium on which a computer program is stored.
  • the program is executed by a processor, the lighting control method based on environmental color selection described in the first aspect is implemented.
  • the lighting control method, device, equipment and storage medium based on environmental color picking obtained in this embodiment obtain the environmental picture image in the current environment in real time; determine the effective color picking range in response to user operations, And obtain the coordinate point data of the effective color pickup range; obtain the RGB data within the effective color pickup range, and control the corresponding lighting equipment color in the environment based on the RGB data, which can be manually applied by the user to determine the effective color pickup range , removes the interference factors in the screen image, and solves the problem of poor lighting control effect caused by interference factors in the screen image.
  • Figure 1 is a hardware structure diagram of a terminal using a lighting control method based on environmental color selection in one embodiment
  • Figure 2 is a flow chart of a lighting control method based on environmental color selection in one embodiment
  • Figure 3 is a schematic diagram of an environment screen image obtained in one embodiment
  • Figure 4 is a schematic diagram of smearing out parts outside the effective color pickup range in an environment image in one embodiment
  • Figure 5 is a schematic diagram of applying an effective color range in an environment screen image in one embodiment
  • Figure 6 is a schematic diagram of applying the boundary line of the effective color range in the environment screen image in one embodiment
  • Figure 7 is a schematic diagram of selecting key points to determine the effective color range in an environment screen image in one embodiment
  • Figure 8 is a flow chart of a lighting control method based on environmental color selection in a preferred implementation
  • Figure 9 is a structural block diagram of a lighting control device based on environmental color selection in one embodiment.
  • Words such as “connected”, “connected”, “coupled” and the like mentioned in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
  • the "plurality” mentioned in this application means two or more.
  • “And/or” describes the relationship between related objects, indicating that three relationships can exist. For example, “A and/or B” can mean: A alone exists, A and B exist simultaneously, and B exists alone. Normally, the character “/” indicates that the related objects are in an “or” relationship.
  • the terms “first”, “second”, “third”, etc. involved in this application only distinguish similar objects and do not represent a specific ordering of the objects.
  • FIG. 1 is a hardware structure block diagram of the terminal of the lighting control method based on environmental color selection in this embodiment.
  • the terminal may include one or more (only one is shown in Figure 1) processors 102 and a memory 104 for storing data, wherein the processor 102 may include but is not limited to a microprocessor MCU or a memory 104 for storing data.
  • Processing device for programming logic devices such as FPGA.
  • the above-mentioned terminal may also include a transmission device 106 and an input and output device 108 for communication functions.
  • the structure shown in Figure 1 is only illustrative, and it does not limit the structure of the above-mentioned terminal.
  • the terminal may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .
  • Memory 104 may be used to store computer programs, such as software programs and modules of application software, For example, in this embodiment, the processor 102 executes the computer program corresponding to the lighting control method based on environmental color selection by running the computer program stored in the memory 104 to execute various functional applications and data processing, that is, to implement the above method.
  • Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely relative to the processor 102, and these remote memories may be connected to the terminal through a network. Examples of the above-mentioned networks include but are not limited to the Internet, intranets, local area networks, mobile communication networks and combinations thereof.
  • Transmission device 106 is used to receive or send data via a network.
  • the above-mentioned network includes the wireless network provided by the communication provider of the terminal.
  • the transmission device 106 includes a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, RF for short) module, which is used to communicate with the Internet wirelessly.
  • RF Radio Frequency
  • the currently commonly used method is to obtain real-time screen images in the environment, identify the screen images to obtain color information, and then control the lighting based on the color information.
  • the screen images usually also include some interference factors, such as screen images.
  • the outer display screen frame, projection screen frame, etc. will in turn affect the lighting control effect. Therefore, in the existing technology, there are interference factors in the screen image that lead to poor lighting control effects.
  • the following embodiment provides a lighting control method based on environmental color selection, which can actively remove interference factors in the environment based on environmental color selection, thereby obtaining better and more accurate lighting control effects.
  • Figure 2 is a flow chart of the method in this embodiment. As shown in Figure 2, the method includes the following steps:
  • Step S210 Obtain the environment screen image in the current environment in real time.
  • the environment screen image in the current environment is acquired through the image capture device, and then the acquired environment screen image is sent to the client.
  • the environment mainly refers to some scenes in the viewing environment.
  • the environment image can be obtained from TV display screens, computer display screens, projection screens, etc.
  • the image capture device can be a single camera or a module of several cameras. It can be flexibly installed above or below the display screen and other positions according to user configuration requirements, and captures the current situation through a curved wide-angle lens. Ambient screen image in the environment.
  • Step S220 determine the effective color pickup range in response to user operation, and obtain coordinate point data of the effective color pickup range.
  • the user receives the real-time environment screen image sent in step S210 through the client, where the client can be a mobile terminal such as a mobile phone or a tablet computer.
  • the user can preview the current environment screen image in real time through the preview interface on the client.
  • the environmental image captured by the image capture device usually also includes some interference factors, such as the display screen frame outside the screen, the projection screen frame, etc.
  • the client can also have a terminal with a touch screen and perform different operations on the environment screen image obtained in real time on the preview interface to determine the effective color picking range in response to the user's different operations, including area smearing, boundary smearing and key coloring. Through point selection and other operations, the coordinate point data of the effective color pickup range is obtained accordingly, and the accurate effective color pickup range is obtained and synchronized to the lighting control device.
  • Step S230 Obtain RGB data within the effective color range, and control the color of the corresponding lighting equipment in the environment based on the RGB data.
  • the user can configure the placement of the display screen and corresponding lighting equipment in the environment according to needs to establish a mapping relationship between each area of the effective color range and the lighting equipment.
  • the lighting equipment in the environment can include light strips, Lamp posts, etc., control the color of multiple light strips or lamp posts based on RGB data to control the color of lighting equipment composed of light strips and lamp posts.
  • the above steps allow the user to determine the effective color pickup range through a smear operation or key point selection operation on the client, which can effectively remove interference factors in the environment image, and then obtain accurate coordinate point data based on the determined effective color pickup range and transmit it to
  • the lighting control device controls the color of the corresponding lighting device according to the RGB data of the effective color range, thereby solving the problem in the prior art that interference factors in the screen image cause poor lighting control effects.
  • the lighting control device in the above embodiments includes a main processor and an image capture device, which in addition to being able to acquire environmental image images, can also perform some image processing operations and lighting control.
  • the purpose of implementing multiple functions in one lighting control device is to make it more convenient for users. It is also conceivable if each function is split and implemented by other modules or devices.
  • the above-mentioned real-time capture to obtain an environmental image in the current environment includes the following steps:
  • the image capture device continuously captures the environment screen images in the current environment in real time; after encoding and compressing the environment screen images, a video stream is generated and transmitted to the client.
  • the client and the lighting control device communicate to negotiate a media transmission channel.
  • the main processor of the lighting control device transfers the video captured by the image capture device through a P2P connection.
  • the stream is sent to the client so that the environment screen image can be previewed in real time on the client.
  • the real-time captured environment image is transmitted to the client as a video stream, so that the client can preview the environment image in the environment, such as a TV, computer display, etc. in real time.
  • the client can effectively and accurately lock the effective color range in the current real-time environment image through manual smearing and key point selection.
  • the above-mentioned determination of the effective color picking range in response to user operations specifically includes the following user operations and corresponding guidance rules.
  • the client When the user previews the current environment screen image in real time on the client, the client also provides some guidance rules.
  • the user can be guided in animation or other forms to operate according to the corresponding guidance rules to determine the effective color range.
  • the effective color range is determined based on the area where the user paints the effective color range in the environment screen image of the client.
  • FIG. 3 is a schematic diagram of an environmental screen image acquired in this embodiment, in which the image capture device is installed above the television display screen.
  • Figure 4 is a schematic diagram of smearing out parts outside the effective color pickup range in the environment screen image
  • Figure 5 is a schematic diagram of smearing out the effective color pickup range in the environment screen image.
  • the boundary line of the effective color pickup range is smeared according to the user's environment screen image on the client to determine the effective color pickup range.
  • Figure 6 is a schematic diagram of applying the effective color range boundary line in the environment screen image.
  • the effective color range is determined on the client based on the trajectory of the user's smear.
  • obtaining the coordinate point data of the effective color pickup range includes the following steps:
  • the position information of the effective color range is obtained; based on the position information, the coordinate point data of the effective color range is obtained through image segmentation technology.
  • a coordinate system is established in the environment screen image of the client, usually with a corner of the environment screen image as the origin of the coordinate system, and the position information of the effective color range is obtained in the coordinate system.
  • image segmentation technology is usually used to cut the effective color range according to the specified length.
  • Regular image to obtain limited coordinate point data in which the specified length can be adjusted according to needs and the size of the effective color pickup range. The smaller the specified length, the more coordinate point data can be obtained, and the corresponding effective color pickup range will be more accurate, such as 1cm, 2cm, etc.
  • the irregular image such as the effective color range is segmented, so that a higher-precision effective color range is obtained based on the obtained coordinate point data, and is transmitted to the lighting control device by the client.
  • the lighting control device Based on the limited coordinate point data, the lighting control device also accurately divides and locks the effective color range of the acquired environmental picture image.
  • the above steps determine the effective color selection range in response to the user operation and obtain the coordinate point data of the effective color selection range, including the following steps:
  • Step S310 Determine a number of key points that determine the effective color range according to the user's selection in the environment screen image of the client.
  • Figure 7 is a schematic diagram of selecting key points to determine the effective color range in the environment screen image.
  • the guidance rules include guiding the user to select key points in key areas, including at least eight key points, specifically the four vertices of the upper, lower, left, and right vertices and the other four edges of the effective color selection range. key point.
  • the guidance rules can also add some additional supplementary rules. For example, when the user selects less than eight key points, or when the user does not select the key area specified by the client, the current state cannot be saved. Determination of effective color range.
  • Step S320 Obtain the coordinate point data of key points in the environment picture image coordinate system.
  • a coordinate system is usually established with a corner of the environment screen image as the origin, for example, the upper left corner of the image as the origin. According to the relative position of the center of each key point and the origin of the coordinate system, the coordinate point data of the key point is obtained.
  • Step S330 Based on the sorted coordinate point data, determine the coordinate point data of the effective color pickup range.
  • each key point after calculating the coordinate point data of each key point, arrange each key point in a certain order.
  • the coordinate point data of the key point such as clockwise or counterclockwise, is transmitted to the lighting control device.
  • the lighting control device uses the same coordinate point data based on the effective color range calculated by the client.
  • the calculation method determines the effective color range of the acquired environmental picture image in the lighting control device.
  • the effective color selection range is determined through the operation mode of key point selection in this embodiment, and a more flexible interaction method with the user is realized, which can select key areas on the client based on the corresponding guidance rules.
  • the area composed of points determines the effective color pickup range, and then establishes a coordinate system in the environment picture image to obtain the coordinate point data of the key points, and further determines the coordinate point data of the effective color pickup range, so that the same calculation can be performed in the lighting control equipment. Method to determine the effective color range.
  • three different effective color pickup range determination methods and corresponding guidance rules are provided, and the effective color pickup range can be determined and the coordinate point data of the effective color pickup range can be calculated according to different user operations, thereby Achieve more flexible interaction with users, more accurately determine the effective color range, and reduce precision loss and errors.
  • the above method further includes:
  • the corresponding guidance rules can be implemented through animation guidance on the client.
  • Smear operations include area smearing and boundary smearing,
  • the above method of obtaining RGB data within the effective color range and controlling the color of the corresponding lighting equipment in the environment based on the RGB data includes the steps:
  • the client will guide the user to configure, including but not limited to the setting position of the image capture device, the input position of the light strip, the winding direction of the light strip, the position of the lamp pole, and the display area.
  • the lighting control device After the lighting control device obtains the user configuration, it will establish a mapping relationship between the RGB lamp beads and the corresponding TV area. The lighting control device will generate the color of the corresponding lamp bead based on the captured real-time image, and use this color to light up the corresponding effective color range area.
  • Corresponding user-configured light strips and lamp posts can achieve real-time synchronization of lighting equipment effects and display screens. Taking the 2*2 pattern distribution as an example to illustrate the specific implementation effect, lamp posts are usually placed on the left and right sides of the display screen.
  • the upper and lower blocks on the left side display different colors respectively.
  • the left lamp post can also be partitioned, and the upper and lower partitions display the corresponding colors of the display screen partitions.
  • the effective color range RGB data by correspondingly controlling the colors of lighting equipment such as light strips and lamp posts configured by users in the environment according to the effective color range RGB data, the correspondence between the color of the lighting equipment and the environment screen image is achieved, and the environment screen image is divided into The effective color range removes interference factors, achieves more precise and effective lighting control, and provides better lighting control effects.
  • Figure 8 is a flow chart of the lighting control method based on environmental color selection according to this preferred embodiment. As shown in Figure 8, the method includes the following steps:
  • Step S810 Use the image capture device to continuously capture environmental screen images in the current environment in real time.
  • Step S820 After encoding and compressing the environment image, a video stream is generated and transmitted to the client.
  • Step S830 Based on the guidance rules of area smearing, smear the portion outside the effective color picking range in the environment screen image of the client, and determine the effective color picking range.
  • Step S840 In the environment picture image coordinate system, the position information of the effective color pickup range is obtained; based on the position information, the coordinate point data of the effective color pickup range is obtained through image segmentation technology processing.
  • Step S850 Establish a mapping relationship between each area of the effective color range and the lighting device according to the user configuration; divide the effective color range into several areas, obtain the RGB values of the areas, and control the corresponding lighting device color based on the mapping relationship.
  • a more accurate effective color pickup range can be obtained, and the influence of interference factors in the environmental picture image can be removed, and the color of the lighting device can be controlled accordingly based on the RGB data in the effective color pickup range. , achieving more accurate and better lighting control effects.
  • This embodiment also provides a lighting control device based on environmental color selection, which is used to implement the above embodiments and preferred implementations. What has already been described will not be described again.
  • the terms “module”, “unit”, “subunit”, etc. used below may be a combination of software and/or hardware that implements predetermined functions. Although the apparatus described in the following embodiments is preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
  • Figure 9 is a structural block diagram of the lighting control device based on environmental color selection in this embodiment. As shown in Figure 9, The device includes: a snapshot module 10 , an application module 20 and a lighting control module 30 .
  • the capture module 10 is used to capture and obtain environmental screen images in the current environment in real time.
  • the smear module 20 is configured to determine the effective color pickup range in response to user operations, and obtain coordinate point data of the effective color pickup range.
  • the lighting control module 30 is used to obtain RGB data within the effective color range, and control the color of the corresponding lighting equipment in the environment based on the RGB data.
  • the user determines the effective color pickup range through the smear operation and key point selection operation on the client, which can effectively remove interference factors in the environmental picture image, and then obtain accurate color pickup based on the determined effective color pickup range.
  • the coordinate point data is transmitted to the lighting control device, and the lighting control device controls the corresponding lighting device color according to the RGB data of the effective color range, thus solving the problem of poor lighting control effect caused by interference factors in the screen image in the prior art. The problem.
  • each of the above modules can be a functional module or a program module, and can be implemented by software or hardware.
  • each of the above-mentioned modules can be located in the same processor; or each of the above-mentioned modules can also be located in different processors in any combination.
  • This embodiment also provides a computer device, which includes a memory and a processor.
  • a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any of the above method embodiments.
  • the above computer device may also include a transmission device and an input and output device, wherein the transmission device is connected to the above processor, and the input and output device is connected to the above processor.
  • a storage medium can also be provided in this embodiment for implementation.
  • the storage medium stores a computer program; when the computer program is executed by the processor, any one of the lighting control methods based on environmental color selection in the above embodiments is implemented.

Abstract

本申请涉及一种基于环境取色的照明控制方法、装置、设备和存储介质,其中,该方法包括:实时获取当前环境中的环境画面图像;响应于用户操作确定有效取色范围,并获取有效取色范围的坐标点数据;获取有效取色范围内的RGB数据,并基于RGB数据控制环境中相应的照明设备颜色。通过本申请,能够由用户手动涂抹确定有效取色范围,去除了屏幕画面图像中的干扰因素,解决了屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。

Description

基于环境取色的照明控制方法、装置、设备和存储介质 技术领域
本申请涉及照明设备技术领域,特别是涉及一种基于环境取色的照明控制方法、装置、设备和存储介质。
背景技术
随着智能家居设备技术的成熟,用户可以自主打造家庭影院。背景氛围灯作为一种安装和使用较为简单的智能家居照明设备,其工作原理具体是通过对屏幕取色,从而控制照明发出对应颜色的光,因此能够跟随着屏幕画面进行烘托,从而打造出更加浓郁的观影氛围,提供沉浸式的观影体验。
目前常用的方法是获取环境中实时的屏幕画面图像,对屏幕画面图像识别获取颜色信息,再根据颜色信息控制照明,但由于屏幕画面图像中除了屏幕画面以外,通常还包括一些干扰因素,比如画面外的显示屏边框、投影幕布边框等,进而会影响照明控制的效果,因此现有技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
针对相关技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题,目前还没有提出有效的解决方案。
发明内容
在本实施例中提供了一种基于环境取色的照明控制方法、装置、设备和存储介质,以解决相关技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
第一个方面,在本实施例中提供了一种基于环境取色的照明控制方法,包括:
实时获取当前环境中的环境画面图像;
响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据;
获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色。
在其中的一些实施例中,所述实时获取当前环境中的环境画面图像,包括:
通过图像捕获装置实时连续抓拍当前环境中的环境画面图像;
将所述环境画面图像经过编码和压缩后,生成视频流并传输给客户端。
在其中的一些实施例中,所述响应于用户操作确定有效取色范围,包括:
根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围以外的部分,并确定所述有效取色范围;或者,
根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围的区域,以确定所述有效取色范围。
在其中的一些实施例中,所述响应于用户操作确定有效取色范围,包括:
根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围的边界线,以确定所述有效取色范围。
在其中的一些实施例中,所述获取所述有效取色范围的坐标点数据,包括:
在所述环境画面图像坐标系中,获取所述有效取色范围的位置信息;
根据所述位置信息,通过图像分割技术处理得到所述有效取色范围的坐标点数据。
在其中的一些实施例中,所述响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据,包括:
根据用户在客户端的所述环境画面图像中选取确定所述有效取色范围的若干关键点;
在所述环境画面图像坐标系中,获取所述关键点的坐标点数据;
基于排序后的所述坐标点数据,确定所述有效取色范围的坐标点数据。
在其中的一些实施例中,所述方法还包括:
基于相应的引导规则,在客户端的所述环境画面图像中进行涂抹操作或关键点选取操作。
在其中的一些实施例中,所述获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色,包括:
根据用户配置建立所述有效取色范围各区域和照明设备的映射关系;
将所述有效取色范围分为若干区域,获取所述区域的RGB值,并基于映射关系控制相应的照明设备颜色。
第二个方面,在本实施例中提供了一种基于环境取色的照明控制装置,包括:抓拍模块、涂抹模块以及照明控制模块;
所述抓拍模块,用于实时抓拍获取当前环境中的环境画面图像;
所述涂抹模块,用于响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据;
所述照明控制模块,用于获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色。
第三个方面,在本实施例中提供了一种计算机设备,包括存储器、处理器以及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述第一个方面所述的基于环境取色的照明控制方法。
第四个方面,在本实施例中提供了一种存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述第一个方面所述的基于环境取色的照明控制方法。
与相关技术相比,在本实施例中提供的基于环境取色的照明控制方法、装置、设备和存储介质,通过实时获取当前环境中的环境画面图像;响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据;获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色,能够由用户手动涂抹确定有效取色范围,去除了屏幕画面图像中的干扰因素,解决了屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
本申请的一个或多个实施例的细节在以下附图和描述中提出,以使本申请的其他特征、目的和优点更加简明易懂。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为一个实施例中基于环境取色的照明控制方法的终端的硬件结构图;
图2为一个实施例中基于环境取色的照明控制方法的流程图;
图3为一个实施例中获取的环境画面图像的示意图;
图4为一个实施例中在环境画面图像中涂抹出有效取色范围以外部分的示意图;
图5为一个实施例中在环境画面图像中涂抹出有效取色范围的示意图;
图6为一个实施例中在环境画面图像中涂抹有效取色范围边界线的示意图;
图7为一个实施例中在环境画面图像中选取确定有效取色范围关键点的示意图;
图8为一个优选实施中基于环境取色的照明控制方法的流程图;
图9为一个实施例中基于环境取色的照明控制装置的结构框图。
图中:102、处理器;104、存储器;106、传输设备;108、输入输出设备;10、抓拍模块;20、涂抹模块;30、照明控制模块。
具体实施方式
为更清楚地理解本申请的目的、技术方案和优点,下面结合附图和实施例,对本申请进行了描述和说明。
除另作定义外,本申请所涉及的技术术语或者科学术语应具有本申请所属技术领域具备一般技能的人所理解的一般含义。在本申请中的“一”、“一个”、“一种”、“该”、“这些”等类似的词并不表示数量上的限制,它们可以是单数或者复数。在本申请中所涉及的术语“包括”、“包含”、“具有”及其任何变体,其目的是涵盖不排他的包含;例如,包含一系列步骤或模块(单元)的过程、方法和系统、产品或设备并未限定于列出的步骤或模块(单元),而可包括未列出的步骤或模块(单元),或者可包括这些过程、方法、产品或设备固有的其他步骤或模块(单元)。在本申请中所涉及的“连接”、“相连”、“耦接”等类似的词语并不限定于物理的或机械连接,而可以包括电气连接,无论是直接连接还是间接连接。在本申请中所涉及的“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,“A和/或B”可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。通常情况下,字符“/”表示前后关联的对象是一种“或”的关系。在本申请中所涉及的术语“第一”、“第二”、“第三”等,只是对相似对象进行区分,并不代表针对对象的特定排序。
在本实施例中提供的方法实施例可以在终端、计算机或者类似的运算装置中执行。比如在终端上运行,图1是本实施例的基于环境取色的照明控制方法的终端的硬件结构框图。如图1所示,终端可以包括一个或多个(图1中仅示出一个)处理器102和用于存储数据的存储器104,其中,处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置。上述终端还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述终端的结构造成限制。例如,终端还可包括比图1中所示更多或者更少的组件,或者具有与图1所示出的不同配置。
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块, 如在本实施例中的基于环境取色的照明控制方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输设备106用于经由一个网络接收或者发送数据。上述的网络包括终端的通信供应商提供的无线网络。在一个实例中,传输设备106包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输设备106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。
随着智能家居设备技术的成熟,用户可以自主打造家庭影院。背景氛围灯作为一种安装和使用较为简单的智能家居照明设备,其工作原理具体是通过对屏幕取色,从而控制照明发出对应颜色的光,因此能够跟随着屏幕画面进行烘托,从而打造出更加浓郁的观影氛围,提供沉浸式的观影体验。
目前常用的方法是获取环境中实时的屏幕画面图像,对屏幕画面图像识别获取颜色信息,再根据颜色信息控制照明,但由于屏幕画面图像中除了屏幕画面以外,通常还包括一些干扰因素,比如画面外的显示屏边框、投影幕布边框等,进而会影响照明控制的效果,因此现有技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
为了解决以上问题,在以下实施例中提供了一种基于环境取色的照明控制方法,能够基于环境取色并主动去除环境中的干扰因素,从而获得更佳、更精准的照明控制效果。
在本实施例中提供了一种基于环境取色的照明控制方法,图2是本实施例中方法的流程图,如图2所示,该方法包括以下步骤:
步骤S210,实时获取当前环境中的环境画面图像。
具体地,通过图像捕获装置获取当前环境中的环境画面图像,再将获取的环境画面图像发送给客户端。其中环境主要是指一些观影环境的场景,环境画面图像具体可以从电视显示屏、电脑显示屏以及投影屏等获取。
图像捕获装置可以为单个摄像头或若干摄像头的模组,能够根据用户配置需求灵活安装于显示屏的上方、下方等其它位置,通过曲面广角镜头采集当前 环境中的环境画面图像。
步骤S220,响应于用户操作确定有效取色范围,并获取有效取色范围的坐标点数据。
具体地,用户通过客户端接收步骤S210中发送的实时环境画面图像,其中,客户端可以是手机、平板电脑等移动终端,用户可以在客户端通过预览界面实时预览当前的环境画面图像。
由于图像捕获装置获取的环境画面图像中除了屏幕画面以外,通常还包括一些干扰因素,比如画面外的显示屏边框、投影幕布边框等。可选地,客户端还可以具有可触摸屏的终端,通过在预览界面实时获取的环境画面图像中进行不同操作,以响应用户不同的操作确定有效取色范围,其中包括区域涂抹、边界涂抹和关键点选取等操作,通过相应获取有效取色范围的坐标点数据,得到精准的有效取色范围,并同步给照明控制设备。
步骤S230,获取有效取色范围内的RGB数据,并基于RGB数据控制环境中相应的照明设备颜色。
具体地,用户可以根据需求,对环境中显示屏和相应照明设备的摆放位置进行配置,以建立有效取色范围各区域和照明设备对应的映射关系,环境中的照明设备可以包括灯带、灯柱等,基于RGB数据控制多个灯带或灯柱的颜色,以控制由灯带和灯柱组成的照明设备的颜色。
上述步骤通过由用户在客户端通过涂抹操作或关键点选取操作确定有效取色范围,能够有效去除环境画面图像中的干扰因素,再根据确定的有效取色范围获取准确的坐标点数据并传输给照明控制设备,由照明控制设备根据有效取色范围的RGB数据对应控制相应的照明设备颜色,从而解决了现有技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
需要说明的是,在上述实施例中的照明控制设备包括主处理器和图像捕获装置,除了能够实现环境画面图像的获取以外,还能进行一些图像处理操作和照明控制。在一个照明控制设备中实现多种功能是为了用户在使用上更便捷,如果将其中的各功能拆分由其它模组或装置进行实现也是可以构想的。
在其中的一些实施例中,上述实时抓拍获取当前环境中的环境画面图像,包括以下步骤:
通过图像捕获装置实时连续抓拍当前环境中的环境画面图像;将环境画面图像经过编码和压缩后,生成视频流并传输给客户端。
具体地,将获取的连续实时环境画面图像经过编码和压缩后,转换成适合 传输的视频流,当用户在客户端打开预览界面时,客户端和照明控制设备之间会进行通信,协商出一条媒体传输通道,照明控制设备主处理器通过P2P连接将图像捕获装置获取的视频流发送到客户端,从而能够在客户端实时预览环境画面图像。
通过本实施例中图像捕获装置将实时获取的环境画面图像以视频流传输给客户端,从而能够在客户端实时预览环境中的环境画面图像,比如电视、电脑显示屏等。同时配合具有可触摸屏的客户端进行使用,用户能够在当前实时的环境画面图像中通过手动涂抹和关键点选取的方式有效、无误地完成对有效取色范围的锁定。
在其中的一些实施例中,上述响应于用户操作确定有效取色范围,具体包括以下几种用户操作和相应的引导规则。
用户在客户端实时预览当前的环境画面图像时,客户端还提供一些引导规则,可选地,可以以动画或其它形式引导用户根据相应的引导规则进行操作,以确定有效取色范围。
当进行区域涂抹操作时,根据用户在客户端的环境画面图像中涂抹出有效取色范围以外的部分,并确定有效取色范围;或者,
根据用户在客户端的环境画面图像中涂抹出有效取色范围的区域,以确定有效取色范围。
具体地,图3是本实施例中获取的环境画面图像的示意图,其中图像捕获装置安装于电视显示屏上方。在图3中的环境画面图像的基础上,图4是在环境画面图像中涂抹出有效取色范围以外部分的示意图,图5是在环境画面图像中涂抹出有效取色范围的示意图。基于相应的引导规则,比如引导用户涂抹有效取色范围,则保留用户涂抹的部分,以确定有效取色范围,或者引导用户涂抹有效取色范围以外的的部分,则去除用户涂抹的部分来确定有效取色范围。
当进行边界涂抹操作时,根据用户在客户端的环境画面图像中涂抹出有效取色范围的边界线,以确定有效取色范围。
具体地,在图3中的环境画面图像的基础上,图6是在环境画面图像中涂抹有效取色范围边界线的示意图。在进行边界涂抹时,基于相应的引导规则,比如引导用户在环境画面图像中沿着有效取色范围的边界进行涂抹,则根据用户涂抹的轨迹在客户端确定有效取色范围。
通过本实施例中提供的区域涂抹和边界涂抹的两种涂抹操作方式,能够在客户端实现更灵活的交互方式,并且得到较精准、精度损失较小的有效取色范 围,其中,有效取色范围近似一个不规则圆形。进一步地,根据上述确定的有效取色范围,获取有效取色范围的坐标点数据,包括以下步骤:
在环境画面图像坐标系中,获取有效取色范围的位置信息;根据位置信息,通过图像分割技术处理得到有效取色范围的坐标点数据。
具体地,在客户端的环境画面图像中建立坐标系,通常以环境画面图像的一个角为坐标系原点,在坐标系中获取有效取色范围的位置信息。在坐标系中,对于一个近似不规则圆形的有效取色范围,其位置信息中理论上有无限数量的坐标点数据,因此通常采用图像分割技术,根据指定长度切割有效取色范围这种不规则图像,得到有限的坐标点数据,其中指定长度可以根据需求和有效取色范围大小进行调整,指定长度越小,能够得到更多坐标点数据,相应的有效取色范围的精度更高,比如1cm、2cm等。
通过本实施例中采用图像分割技术,对有效取色范围这种不规则图像进行分割,从而根据获得的坐标点数据得到较高精度的有效取色范围,并由客户端传输给照明控制设备,照明控制设备根据有限的坐标点数据,在照明控制设备中对获取的环境画面图像同样进行有效取色范围的精确划分和锁定。
当进行关键点选取操作时,上述响应于用户操作确定有效取色范围,并获取有效取色范围的坐标点数据,包括以下步骤:
步骤S310,根据用户在客户端的环境画面图像中选取确定有效取色范围的若干关键点。
具体地,以图3中的环境画面图像为基础,图7是在环境画面图像中选取确定有效取色范围关键点的示意图。在进行关键点选取时,引导规则包括引导用户在关键区域选择关键点,其中包括至少八个关键点,具体为上、下、左、右四个顶点以及其它四个有效取色范围边界上的关键点。
为了获得更准确的有效取色范围,引导规则还可以加入一些附加补充规则,比如在用户选取的关键点不足八个时,或者是用户没有在客户端指定的关键区域进行选取时,无法保存当前有效取色范围的确定。
步骤S320,在环境画面图像坐标系中,获取关键点的坐标点数据。
具体地,在环境画面图像中建立坐标系,通常以环境画面图像的一个角为原点建立坐标系,比如图像左上角为原点。根据每个关键点中心与坐标系原点的相对位置,获取关键点的坐标点数据。
步骤S330,基于排序后的坐标点数据,确定有效取色范围的坐标点数据。
具体地,计算得到每个关键点的坐标点数据后,按照一定顺序排列每个关 键点的坐标点数据,比如按照顺时针方向或者逆时针方向,将排序后的坐标点数据传输给照明控制设备,照明控制设备根据客户端计算的有效取色范围的坐标点数据,用相同的计算方式在照明控制设备中对获取的环境画面图像进行有效取色范围的确定。
通过本实施例中关键点选取的操作方式确定有效取色范围,实现了一种与用户之间更加灵活的交互方法,能够基于相应的引导规则在客户端在关键区域进行选取,根据选取的关键点组成的区域确定有效取色范围,再在环境画面图像中建立坐标系,得到关键点的坐标点数据,进一步确定有效取色范围的坐标点数据,以能够在照明控制设备中基于同样的计算方法确定有效取色范围。
在上述实施例中,提供了三种不同的有效取色范围确定方法和相应的引导规则,并且能够根据不同的用户操作,确定有效取色范围并计算得到有效取色范围的坐标点数据,从而实现与用户更灵活地进行交互中,更加精准地确定有效取色范围,减小精度损失和误差。
在其中的一些实施例中,上述方法还包括:
基于相应的引导规则,在客户端的环境画面图像中进行涂抹操作或关键点选取操作。
具体地,相应的引导规则可以通过在客户端进行动画引导等方式实现。涂抹操作包括区域涂抹和边界涂抹,
在其中的一些实施例中,上述获取有效取色范围内的RGB数据,并基于RGB数据控制环境中相应的照明设备颜色,包括步骤:
根据用户配置建立有效取色范围各区域和照明设备的映射关系;将有效取色范围分为若干区域,获取区域的RGB值,并基于映射关系控制相应的照明设备颜色。
具体地,在实现照明控制之前,在客户端会引导用户进行配置,包括但不限于图像捕获装置设置位置、灯带输入位置、灯带缠绕方向、灯柱摆放位置以及显示屏区域等。
将有效取色范围分为若干区域,比如2*2或3*3格局的分布,在每个分块中提取其中最多的颜色数据的RGB数据。照明控制设备获取用户配置后,会建立RGB灯珠和相应电视区域的映射关系,照明控制设备会根据捕捉到实时画面,生成对应灯珠的颜色,并以此颜色点亮相应有效取色范围区域对应的用户配置的灯带、灯柱即可实现照明设备效和显示屏画面的实时同步。以2*2的格局分布为例对具体实现效果进行说明,灯柱通常摆放在显示屏的左右两侧,在进行 照明控制时,比如显示屏分区后左侧的上下两个分块分别显示不同颜色,相应地,左侧灯柱也能够分区,上下分区对应显示显示屏分区的相应颜色。
通过本实施例中根据有效取色范围RGB数据对应控制环境中用户配置的灯带、灯柱等照明设备的颜色,实现了照明设备颜色和环境画面图像的对应,并且在环境画面图像中划分了有效取色范围,去除了其中的干扰因素,实现了更精准和有效的照明控制,提供了更佳的照明控制效果。
下面通过优选实施例对本实施例进行描述和说明。
图8是本优选实施例的基于环境取色的照明控制方法的流程图,如图8所示,该方法包括以下步骤:
步骤S810,通过图像捕获装置实时连续抓拍当前环境中的环境画面图像。
步骤S820,将环境画面图像经过编码和压缩后,生成视频流并传输给客户端。
步骤S830,基于区域涂抹的引导规则,在客户端的环境画面图像中涂抹出有效取色范围以外的部分,并确定有效取色范围。
步骤S840,在环境画面图像坐标系中,获取有效取色范围的位置信息;根据位置信息,通过图像分割技术处理得到有效取色范围的坐标点数据。
步骤S850,根据用户配置建立有效取色范围各区域和照明设备的映射关系;将有效取色范围分为若干区域,获取区域的RGB值,并基于映射关系控制相应的照明设备颜色。
通过本优选实施例中根据用户在客户端的涂抹操作,能够获取较精准的有效取色范围,并且去除环境画面图像中干扰因素的影响,进而根据有效取色范围中的RGB数据对应控制照明设备颜色,实现更准确和更佳的照明控制效果。
需要说明的是,在上述流程中或者附图的流程图中示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
在本实施例中还提供了一种基于环境取色的照明控制装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。以下所使用的术语“模块”、“单元”、“子单元”等可以实现预定功能的软件和/或硬件的组合。尽管在以下实施例中所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图9是本实施例的基于环境取色的照明控制装置的结构框图,如图9所示, 该装置包括:抓拍模块10、涂抹模块20以及照明控制模块30。
抓拍模块10,用于实时抓拍获取当前环境中的环境画面图像。
涂抹模块20,用于响应于用户操作确定有效取色范围,并获取有效取色范围的坐标点数据。
照明控制模块30,用于获取有效取色范围内的RGB数据,并基于RGB数据控制环境中相应的照明设备颜色。
通过本实施例中提供的装置,由用户在客户端通过涂抹操作和关键点选取操作确定有效取色范围,能够有效去除环境画面图像中的干扰因素,再根据确定的有效取色范围获取准确的坐标点数据并传输给照明控制设备,由照明控制设备根据有效取色范围的RGB数据对应控制相应的照明设备颜色,从而解决了现有技术中屏幕画面图像中存在干扰因素导致照明控制效果不佳的问题。
需要说明的是,上述各个模块可以是功能模块也可以是程序模块,既可以通过软件来实现,也可以通过硬件来实现。对于通过硬件来实现的模块而言,上述各个模块可以位于同一处理器中;或者上述各个模块还可以按照任意组合的形式分别位于不同的处理器中。
在本实施例中还提供了一种计算机设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。
可选地,上述计算机设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。
需要说明的是,在本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,在本实施例中不再赘述。
此外,结合上述实施例中提供的基于环境取色的照明控制方法,在本实施例中还可以提供一种存储介质来实现。该存储介质上存储有计算机程序;该计算机程序被处理器执行时实现上述实施例中的任意一种基于环境取色的照明控制方法。
应该明白的是,这里描述的具体实施例只是用来解释这个应用,而不是用来对它进行限定。根据本申请提供的实施例,本领域普通技术人员在不进行创造性劳动的情况下得到的所有其它实施例,均属本申请保护范围。
显然,附图只是本申请的一些例子或实施例,对本领域的普通技术人员来说,也可以根据这些附图将本申请适用于其他类似情况,但无需付出创造性劳动。另外,可以理解的是,尽管在此开发过程中所做的工作可能是复杂和漫长 的,但是,对于本领域的普通技术人员来说,根据本申请披露的技术内容进行的某些设计、制造或生产等更改仅是常规的技术手段,不应被视为本申请公开的内容不足。
“实施例”一词在本申请中指的是结合实施例描述的具体特征、结构或特性可以包括在本申请的至少一个实施例中。该短语出现在说明书中的各个位置并不一定意味着相同的实施例,也不意味着与其它实施例相互排斥而具有独立性或可供选择。本领域的普通技术人员能够清楚或隐含地理解的是,本申请中描述的实施例在没有冲突的情况下,可以与其它实施例结合。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对专利保护范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种基于环境取色的照明控制方法,其特征在于,包括:
    实时获取当前环境中的环境画面图像;
    响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据;
    获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色。
  2. 根据权利要求1所述的基于环境取色的照明控制方法,其特征在于,所述实时获取当前环境中的环境画面图像,包括:
    通过图像捕获装置实时连续抓拍当前环境中的环境画面图像;
    将所述环境画面图像经过编码和压缩后,生成视频流并传输给客户端。
  3. 根据权利要求1所述的基于环境取色的照明控制方法,其特征在于,所述响应于用户操作确定有效取色范围,包括:
    根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围以外的部分,以确定所述有效取色范围;或者,
    根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围的区域,以确定所述有效取色范围。
  4. 根据权利要求1所述的基于环境取色的照明控制方法,其特征在于,所述响应于用户操作确定有效取色范围,包括:
    根据用户在客户端的所述环境画面图像中涂抹出所述有效取色范围的边界线,以确定所述有效取色范围。
  5. 根据权利要求3-4任意一项所述的基于环境取色的照明控制方法,其特征在于,所述获取所述有效取色范围的坐标点数据,包括:
    在所述环境画面图像坐标系中,获取所述有效取色范围的位置信息;
    根据所述位置信息,通过图像分割技术处理得到所述有效取色范围的坐标点数据。
  6. 根据权利要求1所述的基于环境取色的照明控制方法,其特征在于,所述响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据,包括:
    根据用户在客户端的所述环境画面图像中选取确定所述有效取色范围的若干关键点;
    在所述环境画面图像坐标系中,获取所述关键点的坐标点数据;
    基于排序后的所述坐标点数据,确定所述有效取色范围的坐标点数据。
  7. 根据权利要求3-4或6任意一项所述的基于环境取色的照明控制方法,其特征在于,还包括:
    基于相应的引导规则,在客户端的所述环境画面图像中进行涂抹操作或关键点选取操作。
  8. 根据权利要求1所述的基于环境取色的照明控制方法,其特征在于,所述获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色,包括:
    根据用户配置建立所述有效取色范围各区域和照明设备的映射关系;
    将所述有效取色范围分为若干区域,获取所述区域的RGB值,并基于映射关系控制相应的照明设备颜色。
  9. 一种基于环境取色的照明控制装置,其特征在于,包括:抓拍模块、涂抹模块以及照明控制模块;
    所述抓拍模块,用于实时抓拍获取当前环境中的环境画面图像;
    所述涂抹模块,用于响应于用户操作确定有效取色范围,并获取所述有效取色范围的坐标点数据;
    所述照明控制模块,用于获取所述有效取色范围内的RGB数据,并基于所述RGB数据控制环境中相应的照明设备颜色。
  10. 一种计算机设备,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行权利要求1至8中任一项所述的基于环境取色的照明控制方法。
PCT/CN2023/073082 2022-07-20 2023-01-19 基于环境取色的照明控制方法、装置、设备和存储介质 WO2024016620A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210852105.4 2022-07-20
CN202210852105.4A CN115134972B (zh) 2022-07-20 2022-07-20 基于环境取色的照明控制方法、装置、设备和存储介质

Publications (1)

Publication Number Publication Date
WO2024016620A1 true WO2024016620A1 (zh) 2024-01-25

Family

ID=83383973

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073082 WO2024016620A1 (zh) 2022-07-20 2023-01-19 基于环境取色的照明控制方法、装置、设备和存储介质

Country Status (2)

Country Link
CN (1) CN115134972B (zh)
WO (1) WO2024016620A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115134972B (zh) * 2022-07-20 2024-04-12 杭州涂鸦信息技术有限公司 基于环境取色的照明控制方法、装置、设备和存储介质
CN117202447B (zh) * 2023-11-07 2024-01-05 深圳市千岩科技有限公司 氛围灯设备及其边角取色方法和相应的装置、介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105163435A (zh) * 2015-08-28 2015-12-16 北京京东方茶谷电子有限公司 照明方法和照明装置
US20170265267A1 (en) * 2016-03-10 2017-09-14 Osram Gmbh Method for setting illumination light
CN107771313A (zh) * 2015-03-31 2018-03-06 飞利浦照明控股有限公司 颜色提取器
CN107960155A (zh) * 2015-04-28 2018-04-24 飞利浦照明控股有限公司 颜色选择器
CN108293280A (zh) * 2015-11-11 2018-07-17 飞利浦照明控股有限公司 基于图像的照明控制
CN113306486A (zh) * 2021-05-28 2021-08-27 东风汽车有限公司东风日产乘用车公司 车内照明装置控制方法、存储介质和电子设备
CN114585131A (zh) * 2022-02-23 2022-06-03 深圳市智岩科技有限公司 灯效控制方法、装置、计算机设备及存储介质
CN115134972A (zh) * 2022-07-20 2022-09-30 杭州涂鸦信息技术有限公司 基于环境取色的照明控制方法、装置、设备和存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107771313A (zh) * 2015-03-31 2018-03-06 飞利浦照明控股有限公司 颜色提取器
CN107960155A (zh) * 2015-04-28 2018-04-24 飞利浦照明控股有限公司 颜色选择器
CN105163435A (zh) * 2015-08-28 2015-12-16 北京京东方茶谷电子有限公司 照明方法和照明装置
CN108293280A (zh) * 2015-11-11 2018-07-17 飞利浦照明控股有限公司 基于图像的照明控制
US20170265267A1 (en) * 2016-03-10 2017-09-14 Osram Gmbh Method for setting illumination light
CN113306486A (zh) * 2021-05-28 2021-08-27 东风汽车有限公司东风日产乘用车公司 车内照明装置控制方法、存储介质和电子设备
CN114585131A (zh) * 2022-02-23 2022-06-03 深圳市智岩科技有限公司 灯效控制方法、装置、计算机设备及存储介质
CN115134972A (zh) * 2022-07-20 2022-09-30 杭州涂鸦信息技术有限公司 基于环境取色的照明控制方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN115134972B (zh) 2024-04-12
CN115134972A (zh) 2022-09-30

Similar Documents

Publication Publication Date Title
WO2024016620A1 (zh) 基于环境取色的照明控制方法、装置、设备和存储介质
US20160269526A1 (en) Portable electronic devices with integrated image/video compositing
CN109218656B (zh) 图像显示方法、装置及系统
US20230008199A1 (en) Remote Assistance Method and System, and Electronic Device
CN113329252B (zh) 一种基于直播的人脸处理方法、装置、设备和存储介质
CN111062993B (zh) 色彩合并的作画图像处理方法、装置、设备及存储介质
WO2023071603A1 (zh) 视频融合方法、装置、电子设备及存储介质
JP2016031411A (ja) 無線通信システム、表示装置、及び表示方法
WO2023093438A1 (zh) 图像显示方法、装置、电子设备及计算机可读存储介质
US11475652B2 (en) Automatic representation toggling based on depth camera field of view
WO2022022348A1 (zh) 视频压缩方法、解压方法、装置、电子设备及存储介质
CN105100870A (zh) 一种截屏方法及终端设备
CN113012082A (zh) 图像显示方法、装置、设备及介质
CN110928509B (zh) 显示控制方法、显示控制装置、存储介质、通信终端
CN113010135B (zh) 一种数据处理方法、装置、显示终端和存储介质
CN108833737A (zh) 针对多相机阵列的同步拍照控制方法
CN113597061A (zh) 控制幻彩灯带的方法、设备和计算机可读存储介质
CN112235510A (zh) 拍摄方法、装置、电子设备和介质
CN112019921A (zh) 应用于虚拟演播室的肢体动作数据处理方法
WO2023184783A1 (zh) 图像检测识别装置及其检测识别方法
CN109361897A (zh) 监控视频的拼接方法
WO2022047686A1 (zh) 渲染方法、装置、移动终端和存储介质
WO2015154533A1 (zh) 投影方法、装置、终端及服务器
CN111064894A (zh) 图像处理方法、终端设备及计算机可读存储介质
CN108133517A (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: 23841698

Country of ref document: EP

Kind code of ref document: A1