Light effect control system, method, apparatus, storage medium and lawn mower

By identifying parameters of the target object and the background area, the brightness of the target object is adjusted to match that of the background area, thus solving the problem of inconsistent visual experience in different scenarios for the lighting effect control system and improving the user experience.

CN115908267BActive Publication Date: 2026-06-09ECOVACS ROBOTICS CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ECOVACS ROBOTICS CO LTD
Filing Date
2022-10-25
Publication Date
2026-06-09

Smart Images

  • Figure CN115908267B_ABST
    Figure CN115908267B_ABST
Patent Text Reader

Abstract

The application discloses a lamp effect control system, method, device, storage medium and a mower. The lamp effect control system comprises: an image acquisition device configured to acquire an image of a target object; and a controller configured to acquire target parameters of a region associated with the target object on the image and a background region, and adjust the target object according to the target parameters so that the brightness of the region associated with the target object on the image and the background region is substantially consistent. The application realizes real-time change of the brightness of the region associated with the target object on the image according to different brightness in different scenes, thereby meeting the visual feeling of the user for the region associated with the target object on the image in different scenes, and improving the user experience of the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of lighting control technology, and in particular to a lighting effect control system, method, device, storage medium, and lawnmower. Background Technology

[0002] Currently, conventional lighting effects are controlled by switching LEDs on and off. However, existing lighting control systems are easily affected by the scene; the same lighting effect can lead to different visual experiences for users in different scenarios. Therefore, there is an urgent need for a new lighting control system that can ensure a consistent visual experience for users across various scenarios. Summary of the Invention

[0003] This invention provides a production testing system to solve the problem that existing lighting effect control is easily affected by the scene, and the same lighting effect can lead to different visual experiences for users in different scenes.

[0004] According to one aspect of the present invention, a lighting effect control system is provided, the lighting effect control system comprising an image acquisition device configured to acquire an image of a target object; and a controller configured to acquire target parameters of a region and a background region associated with the target object in the image, and to adjust the target object according to the target parameters of the region and the background region associated with the target object in the image so that the brightness of the region and the background region associated with the target object in the image are substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0005] Furthermore, the target parameters include grayscale values ​​and / or brightness values.

[0006] Furthermore, the controller includes: a computing unit coupled to the image acquisition device, the computing unit being configured to: extract the contour of the target object to obtain the region and background region associated with the target object in the image; obtain the gray values ​​of the region and background region associated with the target object in the image respectively, and calculate the gray value difference between the gray values ​​of the region and background region associated with the target object in the image.

[0007] Furthermore, the controller further includes an execution unit configured to: when the grayscale difference exceeds a preset value and the grayscale value of the region associated with the target object in the image is greater than the grayscale value of the background region, the execution unit outputs a first pulse signal; when the grayscale difference exceeds the preset value and the grayscale value of the region associated with the target object in the image is less than the grayscale value of the background region, the execution unit outputs a second pulse signal, wherein the first pulse signal and the second pulse signal are different.

[0008] Furthermore, the duty cycle of the first pulse signal is less than the duty cycle of the second pulse signal.

[0009] Furthermore, the controller also includes a lighting effect adjustment unit, one end of which is coupled to the execution unit, and the other end of which is coupled to the target object. The lighting effect control unit responds to the first pulse signal or the second pulse signal to turn the power supply on or off between the power supply and the target object.

[0010] Furthermore, the lighting effect adjustment unit includes: a first switching transistor and a second switching transistor, the gate of the first switching transistor is connected to the execution unit, the drain of the first switching transistor is grounded, the source of the first switching transistor is connected to the control terminal of the second switching transistor, the source of the second switching transistor is connected to the power supply, and the drain of the second switching transistor is connected to the target object.

[0011] According to another aspect of the present invention, a lighting effect control method is provided, the lighting effect control method comprising: acquiring an image of a target object; acquiring target parameters of a region and a background region associated with the target object on the image; adjusting the target object according to the target parameters of the region and the background region associated with the target object on the image so that the brightness of the region and the background region associated with the target object on the image are substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0012] According to another aspect of the present invention, a lighting effect control device is provided, the lighting effect control device comprising: an image acquisition module for acquiring an image of a target object; a brightness calculation module for acquiring target parameters of a region and a background region associated with the target object in the image; and a lighting effect control module for adjusting the target object according to the target parameters so that the brightness of the region and the background region associated with the target object in the image are substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0013] According to another aspect of the present invention, a storage medium is provided, wherein computer instructions are stored on the storage medium, and when the computer instructions are executed by a processor, the lighting effect control method described in the embodiments of the present invention is implemented.

[0014] According to another aspect of the present invention, a lawnmower is provided, the lawnmower comprising: a frame; a walking device disposed on the frame; an execution device disposed on the frame for cutting operations; a drive device disposed on the frame for driving the walking device and / or the execution device; an image device disposed on the frame for acquiring an image of a target object; and a controller disposed on the frame for performing the following operations: acquiring target parameters of a region and a background region associated with the target object in the image; and adjusting the target object according to the target parameters of the region and the background region associated with the target object in the image such that the brightness of the region and the background region associated with the target object in the image is substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0015] The advantage of this invention lies in that, by acquiring target parameters of the region and background region associated with the target object in the image, and adjusting the target object according to these target parameters, the brightness of the region associated with the target object in the image and the background region are made substantially consistent. This enables real-time adjustment of the brightness of the region associated with the target object in the image based on the varying brightness levels in different scenes, thereby satisfying the user's visual perception of the region associated with the target object in different scenarios and improving the user experience. Attached Figure Description

[0016] The technical solution and other beneficial effects of the present invention will become apparent from the following detailed description of specific embodiments of the invention, in conjunction with the accompanying drawings.

[0017] Figure 1 This is a schematic diagram of the lighting effect control system provided in Embodiment 1 of the present invention.

[0018] Figure 2 This is a schematic diagram of the lighting effect control system provided in Embodiment 2 of the present invention.

[0019] Figure 3 This is a schematic diagram of the structure of the first adjustment unit provided in Embodiment 2 of the present invention.

[0020] Figure 4 This is a schematic diagram of the structure of the second adjustment unit provided in Embodiment 2 of the present invention.

[0021] Figure 5 A flowchart illustrating the steps of a lighting effect control method provided in an embodiment of the present invention.

[0022] Figure 6 This is a schematic diagram of the lighting effect control device provided in an embodiment of the present invention.

[0023] Figure 7 This is a schematic diagram of the structure of a lawnmower provided in an embodiment of the present invention. Detailed Implementation

[0024] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0025] In the description of this embodiment, the terms "upper," "lower," "left," and "right," etc., refer to the orientation or positional relationship shown in the accompanying drawings. They are used only for ease of description and simplification of operation, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the present invention. In addition, the terms "first" and "second" are used only for distinction in description and have no special meaning.

[0026] like Figure 1 As shown, a lighting effect control system is provided in Embodiment 1 of the present invention. The lighting effect control system includes: an image acquisition device 10 and a controller 20.

[0027] For example, the image acquisition device 10 is configured to acquire an image 30 of a target object, which is a dimmable lamp. The image acquisition device 10 includes a digital camera. In some embodiments, a background region 32 can be set in the image 30 of the target object, and the background region 32 can be distributed at any location in the image 30 of the target object other than the target object 31, or it can be a region covering the outside of the target object after being enlarged to a certain scale. Typically, for better visual experience for the user, the background region 32 is the region within the target region 30 other than the region 31 associated with the target object in the image. The background region 32 and the region 31 associated with the target object in the image allow the computer to identify differences in target parameters between the two regions.

[0028] In some embodiments, the region 31 associated with the target object in the image can be determined by recognizing the contour of the target object within the region 31 associated with the target object in the image. For example, when the target object in the region 31 associated with the target object in the image is not working, an image of the region 31 associated with the target object in the image is acquired. After binarizing the target image, each pixel is assigned a value of 0 and 1 to represent a black point and a white point, respectively. Specifically, black points and white points can be determined according to the grayscale value of the pixel, which will be described in detail below when discussing grayscale values. Among them, black points are contour points, and white points are non-contour points. A complex network is used to model the shape contour, and then a network model is performed on the contour point set. A connecting edge is added between each contour point in the image 30 of the acquired target object to obtain the contour of the target object.

[0029] In some embodiments, a distance threshold may be introduced to generate a new set of connecting edges within the threshold range, thereby forming an enlarged contour that is proportionally enlarged to the outline of the target object. It is understood that the brightness of the area around the light-emitting device is affected by the light-emitting device when it is working. Therefore, in preferred embodiments, the enlarged contour is used as the region 31 associated with the target object on the image.

[0030] For example, the controller 20 is configured to acquire target parameters of region 31 and background region 32 associated with the target object in the image, and adjust the target object according to the target parameters of region 31 and background region 32 associated with the target object in the image so that the brightness of region 31 and background region 32 associated with the target object in the image is substantially the same, wherein the background region 32 includes regions in the image 30 of the target object other than the target object.

[0031] It should be noted that "largely consistent" can be understood as meaning that when the difference in target parameters between the associated region 31 and the background region 32 of the target object in the image is within a preset range, they are considered to be largely consistent. For example, the target parameters include grayscale values ​​and / or brightness values.

[0032] The image parameters of the target object image 30 include: pixel value, grayscale value, and RGB color. Here, a pixel refers to the number of pixels in the target object image 30 formed after the target object is captured by a digital camera; the number of pixels in the target object image is used as the pixel value of the target object image 30. For example, if the target object image 30 has a size of 500*338, it means the image is composed of a 500*338 pixel matrix. This target image has a width of 500 pixels and a height of 338 pixels, for a total of 500*338 = 149,000 pixel values.

[0033] The grayscale value represents the brightness of the target object in the image, that is, the color depth of a point in a black and white image. The grayscale value range is generally from 0 to 255, with 255 for white and 0 for black. Therefore, black and white images are also called grayscale images. The grayscale value refers to the brightness of a single pixel. The larger the grayscale value, the brighter it is.

[0034] When determining the outline of a target object, grayscale values ​​between 0 and 127 are usually used as black points and 128 to 255 as white points, thereby determining the distribution of pixel values ​​of 0 and 1 in the image of the target object.

[0035] The RGB color refers to the color presented by each pixel of the image of the target object. Specifically, R=G=B generally means 256 color bits. For example, RGB color (150,160,170) represents one of these colors.

[0036] Example 1 obtains target parameters of the region and background region associated with the target object in the image, and adjusts the target object according to these parameters to make the brightness of the associated region and background region approximately the same. This allows for real-time adjustment of the brightness of the region associated with the target object in the image based on the varying brightness levels in different scenes, thereby satisfying the user's visual perception of the associated region in different scenarios and improving the user experience.

[0037] like Figure 2 The diagram shown is a structural schematic of a lighting effect control system provided in Embodiment 2 of the present invention. The lighting effect system includes: a calculation unit 21, an execution unit 22, and a lighting effect adjustment unit 23.

[0038] For example, the processing unit 21 is coupled to the image acquisition device 10, and the processing unit 21 is configured to:

[0039] The contour of the target object is extracted to obtain the region 31 and background region 32 associated with the target object on the image.

[0040] The gray values ​​of the target object in the associated region 31 and the background region 32 on the image are obtained respectively, and the gray value difference between the gray values ​​of the associated region and the background region on the image is calculated.

[0041] Specifically, obtaining the grayscale values ​​of the region 31 and the background region 32 associated with the target object on the image, and calculating the grayscale difference between the grayscale values ​​of the region associated with the target object and the background region on the image, includes: determining the number of pixels in the region 31 associated with the target object on the image based on the size of the region 31 associated with the target object on the image.

[0042] For example, the area associated with the target object on the image is 100*58, which means that the area associated with the target object on the image is composed of a 100*58 pixel matrix. The width of the area associated with the target object on the image is 100 pixels long and the height is 58 pixels long, for a total of 100*58=5800 pixel values.

[0043] Obtain the grayscale value of each pixel in the region associated with the target object in the image, and calculate the average grayscale value of the pixels in the region associated with the target object in the image as the grayscale value of the region associated with the target object in the image.

[0044] For example, the grayscale value represents the numerical value of the brightness of an image, that is, the color depth of a point in a black and white image. The range is generally from 0 to 255, with white being 255 and black being 0. Therefore, a black and white image is also called a grayscale image. The grayscale value refers to the brightness of a single pixel; the larger the grayscale value, the brighter it is. For example, the sum of the grayscale values ​​of the pixels in the associated region of the target object in the image is calculated, and then the average grayscale value of the pixels in the associated region of the target object in the image is calculated. For example, if the total grayscale value is 580000, then the average grayscale value is 100.

[0045] Specifically, the grayscale values ​​of the target object in the associated region 31 and the background region 32 of the image are obtained respectively, and the grayscale difference between the associated region and the background region of the target object in the image is calculated, including:

[0046] The number of pixels in the background image is determined based on the size of the background region 32.

[0047] For example, the background area 32 has a size of 500*200, which means that the background area 32 is composed of a 500*200 pixel matrix. The width of this background area 32 is 500 pixels long and the height is 200 pixels long, with a total of 500*200=10000 pixel values.

[0048] Obtain the grayscale value of each pixel in the background region 32, and calculate the average grayscale value of the pixels in the background region 32 as the grayscale value of the background region 32.

[0049] For example, the grayscale value represents the brightness of an image, that is, the color depth of a point in a black and white image. It typically ranges from 0 to 255, with white being 255 and black being 0. Therefore, a black and white image is also called a grayscale image. The grayscale value refers to the brightness of a single pixel; a larger grayscale value indicates greater brightness. For example, the sum of the grayscale values ​​of the pixels in the background region 32 is calculated, and then the average grayscale value of the pixels in the background region 32 is calculated. For example, if the sum of the grayscale values ​​is 1,000,000, then the average grayscale value is 100.

[0050] For example, the execution unit 22 is coupled to the arithmetic unit 21, and the execution unit 22 is configured as follows:

[0051] When the grayscale difference exceeds a preset value, and the grayscale value of the region 31 associated with the target object in the image is greater than the brightness value of the background region 32, the execution unit 22 outputs a first pulse signal LED1.

[0052] When the grayscale difference exceeds a preset value, and the grayscale value of the region 31 associated with the target object in the image is less than the grayscale value of the background region 32, the execution unit 22 outputs a second pulse signal LED2.

[0053] For example, the duty cycle of the first pulse signal LED1 is smaller than the duty cycle of the second pulse signal LED2. For instance, when the grayscale value of the region 31 associated with the target object in the image is greater than the grayscale value of the background region 32, the grayscale value of the region 31 associated with the target object needs to be reduced, therefore the duty cycle of the first pulse signal LED1 is smaller. Conversely, when the grayscale value of the region 31 associated with the target object in the image is smaller than the grayscale value of the background region 32, the grayscale value of the background region 32 is larger, therefore the duty cycle of the second pulse signal LED2 is larger.

[0054] In some embodiments, the controller 20 further includes a lighting effect adjustment unit 23, which includes at least one controlled switch that is turned on or off in response to the first pulse signal LED1 or the second pulse signal LED2.

[0055] In this embodiment, the lighting effect adjustment unit 23 includes a first adjustment unit and a second adjustment unit. Of course, in some other embodiments, the lighting effect adjustment unit 23 may only include the first adjustment unit. Specifically, refer to... Figure 3The first adjustment unit includes two controlled switches, namely a first switching transistor Q22 and a second switching transistor Q2. The lighting effect adjustment unit 23 also includes a first resistor R44, a second resistor R88, a third resistor R47, a fourth resistor R46, and a fifth resistor R41. The gates of the first switching transistor Q22 and the second switching transistor Q2 are the control terminals, and the sources and drains of the first switching transistor Q22 and the second switching transistor Q2 are either the first terminal or the second terminal.

[0056] The first end of the first resistor R44 is connected to the output terminal of the execution unit 22 to receive the first pulse signal LED1 or the second pulse signal LED2. The second end of the first resistor R44 is connected to the first node S1. The first end of the second resistor R88 and the control terminal of the first switch Q22 are connected to the first node S1, and the second end of the second resistor R88 is grounded. The second end of the first switch Q22 is grounded and connected to the first end of the third resistor R47. The second end of the third resistor R47 is connected to the second node S2. The first end of the fourth resistor R46 and the control terminal of the second switch Q2 are connected to the second node S2. The second end of the fourth resistor R46 is connected to the power supply terminal. The second end of the second switch Q2 is connected to the power supply terminal. The first end of the second switch Q2 is connected to the first end of the fifth resistor R41, and the second end of the fifth resistor R41 serves as the output terminal of the first adjustment unit.

[0057] In actual operation, the first switch Q22 is an N-type transistor, and the second switch Q2 is a P-type transistor. When the first pulse signal LED1 is at a high level, the potential of the first node S1 increases. When the potential difference between the first node S1 and the second terminal of the switch reaches the turn-on voltage, the first switch Q22 turns on. After the first switch Q22 turns on, the potential of the second node S2 gradually decreases from close to the power supply voltage. When the potential difference between the second node S2 and the second terminal of the second switch Q2 reaches the turn-on voltage, the second switch Q2 turns on, and the first adjustment unit outputs an adjustment voltage to change the brightness of the dimming area 31.

[0058] See Figure 4 The second adjustment unit includes two controlled switches, namely the third switch Q23 and the fourth switch Q5. The lighting effect adjustment unit 23 also includes a sixth resistor R86, a seventh resistor R89, an eighth resistor R48, a ninth resistor R47, and a tenth resistor R42. The gates of the corresponding third switch Q23 and fourth switch Q5 are the control terminals, and the source and drain of the first switch Q22 and the second switch Q2 are either the first terminal or the second terminal.

[0059] The first end of the sixth resistor R86 is connected to the output terminal of the execution unit 22 to receive the first pulse signal LED1 or the second pulse signal LED2. The second end of the sixth resistor R86 is connected to the third node S3. The first end of the seventh resistor R89 ​​and the control terminal of the third switch Q23 are connected to the third node S3, and the second end of the seventh resistor R89 ​​is grounded. The second end of the third switch Q23 is grounded and connected to the first end of the eighth resistor R48. The second end of the eighth resistor R48 is connected to the fourth node S4. The first end of the ninth resistor R47 and the control terminal of the fourth switch Q5 are connected to the fourth node S4. The second end of the ninth resistor R47 is connected to the power supply terminal. The second end of the fourth switch Q5 is connected to the power supply terminal. The first end of the fourth switch Q5 is connected to the first end of the tenth resistor R42, and the second end of the tenth resistor R42 serves as the output terminal of the second adjustment unit.

[0060] In actual operation, the third switch Q23 is an N-type transistor, and the fourth switch Q5 is a P-type transistor. When the first pulse signal LED1 is at a high level, the potential of the third node S3 increases. When the potential difference between the third node S3 and the second terminal of the switch reaches the turn-on voltage, the third switch Q23 turns on. After the third switch Q23 turns on, the potential of the fourth node S4 gradually decreases from close to the power supply voltage. When the potential difference between the fourth node S4 and the second terminal of the fourth switch Q5 reaches the turn-on voltage, the fourth switch Q5 turns on, and the second adjustment unit outputs an adjustment voltage to change the brightness of the region 31 associated with the target object in the image.

[0061] For example, at least one dimmable target object is set in the associated region 31 on the image. In this embodiment, the lighting effect adjustment unit 23 can control two target objects simultaneously, and the target objects can also have different colors to achieve different display colors.

[0062] Example 2 involves acquiring target parameters of the region and background region associated with the target object in the image, and adjusting the target object based on these parameters to ensure that the brightness of the associated region and background region is approximately consistent. This allows for real-time adjustment of the brightness of the region associated with the target object in the image according to the varying brightness levels in different scenarios, thereby satisfying the user's visual perception of the associated region in different scenes and improving the user experience.

[0063] The lighting effect adjustment system provided by this invention can be applied to lawnmowers. Therefore, this invention provides a lawnmower, which can be various types of intelligent robots, such as sweeping robots.

[0064] Specifically, a lawnmower includes: a frame, a walking mechanism, an actuator, a drive mechanism, an imaging device, and a controller.

[0065] For example, a traveling device is mounted on the frame. An actuating device is mounted on the frame for cutting operations. A driving device is mounted on the frame for driving the traveling device and / or the actuating device.

[0066] For example, an imaging device is disposed on the rack for acquiring an image of a target object. Typically, the imaging device is disposed on the outside of the rack for better image acquisition.

[0067] A controller, mounted on the rack, is typically located inside the rack to prevent external environmental factors from affecting its normal operation. The controller performs the following operations:

[0068] Obtain target parameters for the region and background region associated with the target object in the image, and adjust the target object according to the target parameters of the region and background region 32 associated with the target object in the image so that the brightness of the region and background region associated with the target object in the image is substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0069] In some embodiments, the region 31 associated with the target object in the image can be determined by recognizing the contour of the target object within the region 31 associated with the target object in the image. For example, when the target object in the region 31 associated with the target object in the image is not working, an image of the region 31 associated with the target object in the image is acquired. After binarizing the target image, each pixel is assigned a value of 0 and 1 to represent a black point and a white point, respectively. Specifically, black points and white points can be determined according to the grayscale value of the pixel, which will be described in detail below when discussing grayscale values. Among them, black points are contour points, and white points are non-contour points. A complex network is used to model the shape contour, and then a network model is performed on the contour point set. A connecting edge is added between each contour point in the image 30 of the acquired target object to obtain the contour of the target object.

[0070] In some embodiments, a distance threshold may be introduced to generate a new set of connecting edges within the threshold range, thereby forming an enlarged contour that is proportionally enlarged to the outline of the target object. It is understood that the brightness of the area around the light-emitting device is affected by the light-emitting device when it is working. Therefore, in preferred embodiments, the enlarged contour is used as the region 31 associated with the target object on the image.

[0071] For example, the controller 20 is configured to acquire target parameters of region 31 and background region 32 associated with the target object in the image, and adjust the target object according to the target parameters of region 31 and background region 32 associated with the target object in the image so that the brightness of region 31 and background region 32 associated with the target object in the image is substantially the same, wherein the background region 32 includes regions in the image 30 of the target object other than the target object.

[0072] It should be noted that "largely consistent" can be understood as meaning that when the difference in target parameters between the associated region 31 and the background region 32 of the target object in the image is within a preset range, they are considered to be largely consistent. For example, the target parameters include grayscale values ​​and / or brightness values.

[0073] The image parameters of the target object image 30 include: pixel value, grayscale value, and RGB color. Here, a pixel refers to the number of pixels in the target object image 30 formed after the target object is captured by a digital camera; the number of pixels in the target object image is used as the pixel value of the target object image 30. For example, if the target object image 30 has a size of 500*338, it means the image is composed of a 500*338 pixel matrix. This target image has a width of 500 pixels and a height of 338 pixels, for a total of 500*338 = 149,000 pixel values.

[0074] The grayscale value represents the brightness of the target object in the image, that is, the color depth of a point in a black and white image. The grayscale value range is generally from 0 to 255, with 255 for white and 0 for black. Therefore, black and white images are also called grayscale images. The grayscale value refers to the brightness of a single pixel. The larger the grayscale value, the brighter it is.

[0075] When determining the outline of a target object, grayscale values ​​between 0 and 127 are usually used as black points and 128 to 255 as white points, thereby determining the distribution of pixel values ​​of 0 and 1 in the image of the target object.

[0076] The RGB color refers to the color presented by each pixel of the image of the target object. Specifically, R=G=B generally means 256 color bits. For example, RGB color (150,160,170) represents one of these colors.

[0077] The lighting effect adjustment system provided by the present invention can also be applied to specific scenarios, such as stage lighting control. When the lighting adjustment system is applied to a specific scenario, the target object in the region 31 associated with the target object on the image can be of different colors.

[0078] like Figure 5As shown in the figure, this embodiment of the invention also provides a lighting effect control method, the lighting effect control method comprising:

[0079] Step S510: Obtain the image of the target object.

[0080] Step S520: Obtain target parameters of the region and background region associated with the target object in the image.

[0081] Step S530: Adjust the target object according to the target parameters of the region associated with the target object and the background region on the image so that the brightness of the region associated with the target object and the background region on the image is substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0082] like Figure 6 As shown in the figure, this embodiment of the invention also provides a lighting effect control device, which includes: an image acquisition module 1, a brightness calculation module 2, and a lighting effect control module 3.

[0083] For example, the image acquisition module 1 is used to acquire an image of the target object.

[0084] The brightness calculation module 2 is used to obtain target parameters of the region and background region associated with the target object in the image.

[0085] The lighting effect control module 3 is used to adjust the target object according to the target parameters so that the brightness of the area associated with the target object and the background area on the image is approximately the same, wherein the background area includes the area in the image of the target object other than the target object.

[0086] The specific operation method of the lighting effect control device is the same as that of the lighting effect control method, and will not be repeated here.

[0087] like Figure 7 As shown in the embodiments of the present invention, another lawnmower is also provided, specifically:

[0088] The lawnmower may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 7 The equipment structure shown does not constitute a limitation on the equipment. A lawnmower may include more or fewer parts than shown, or combine certain parts, or have different arrangements of parts. Wherein:

[0089] The processor 401 is the control center of the device, connecting various parts of the device through various interfaces and lines. It executes software programs and / or unit modules stored in the memory 402, and calls data stored in the memory 402 to perform various functions and process data, thereby providing overall monitoring of the lawnmower. Optionally, the processor 401 may include one or more processing cores; the processor 401 may be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor. Preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may not be integrated into the processor 401.

[0090] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and data processing by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, applications required for at least one function, etc.; the data storage area may store data created based on the use of the lawnmower, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.

[0091] The lawnmower may also include a power supply 403 that supplies power to the various components. Preferably, the power supply 403 is logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, a recharging system, a power fault detection circuit, a power converter or inverter, a power status indicator, or any other components.

[0092] The lawnmower may also include an input unit 404 and an output unit 405. The input unit 404 can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0093] Although not shown, the lawnmower may also include a display unit, etc., which will not be described in detail here. Specifically, in this application, the processor 401 in the lawnmower loads the executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application programs stored in the memory 402 to realize various functions, as follows:

[0094] Obtain the image of the target object;

[0095] Obtain target parameters for the region and background region associated with the target object in the image;

[0096] The target object is adjusted according to the target parameters of the region associated with the target object and the background region on the image so that the brightness of the region associated with the target object and the background region on the image is substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0097] Those skilled in the art will understand that all or part of the steps in the various methods described above can be accomplished by instructions, or by controlling related hardware with instructions. These instructions can be stored in a storage medium and loaded and executed by the processor 401.

[0098] Therefore, Embodiment 2 of this application provides a storage medium, which may include: read-only memory (ROM), random access memory (RAM), disk, or optical disk, etc. Computer instructions are stored on the medium, and these instructions are loaded by processor 401 to execute the steps in any of the lighting effect control methods provided in this application. For example, when the computer instructions are executed by processor 401, they achieve the following functions:

[0099] Obtain the image of the target object;

[0100] Obtain target parameters for the region and background region associated with the target object in the image;

[0101] The target object is adjusted according to the target parameters of the region associated with the target object and the background region on the image so that the brightness of the region associated with the target object and the background region on the image is substantially the same, wherein the background region includes the region in the image of the target object other than the target object.

[0102] The computer instructions stored in the storage medium can execute the steps of the lighting effect control method in any embodiment of this application. Therefore, the beneficial effects that the lighting effect control method in any embodiment of this application can achieve can be realized. For details, please refer to the foregoing description, which will not be repeated here.

[0103] In summary, although the present invention has been disclosed above with reference to preferred embodiments, the above preferred embodiments are not intended to limit the present invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope defined in the claims.

Claims

1. A lighting effect control system, characterized in that, include: An image acquisition device is configured to acquire an image of a target object, wherein the target object is a dimmable lamp; The controller is configured to acquire target parameters of a region and a background region associated with the target object in an image, and adjust the target object according to the target parameters of the region and the background region associated with the target object in the image, such that the difference between the target parameters of the region and the background region associated with the target object in the image is within a preset range, wherein the background region includes the region in the image of the target object other than the target object, and the region associated with the target object in the image is an enlarged contour based on the contour of the target object.

2. The lighting effect control system according to claim 1, characterized in that, The target parameters include grayscale values ​​and / or brightness values.

3. The lighting effect control system according to claim 1, characterized in that, The controller includes: a processing unit coupled to the image acquisition device, the processing unit being configured to: The contour of the target object is extracted to obtain the region and background region associated with the target object in the image; The gray values ​​of the region associated with the target object and the background region on the image are obtained respectively, and the gray value difference between the gray values ​​of the region associated with the target object and the background region on the image is calculated.

4. The lighting effect control system according to claim 3, characterized in that, The controller further includes an execution unit, the execution unit being configured to: When the grayscale difference exceeds a preset value, and the grayscale value of the region associated with the target object in the image is greater than the grayscale value of the background region, the execution unit outputs a first pulse signal; When the grayscale difference exceeds a preset value, and the grayscale value of the region associated with the target object in the image is less than the grayscale value of the background region, the execution unit outputs a second pulse signal, wherein the first pulse signal and the second pulse signal are different.

5. The lighting effect control system according to claim 4, characterized in that, The duty cycle of the first pulse signal is less than the duty cycle of the second pulse signal.

6. The lighting effect control system according to claim 4, characterized in that, The controller also includes: A lighting effect adjustment unit, one end of which is coupled to the execution unit and the other end of which is coupled to the target object, wherein the lighting effect control unit responds to the first pulse signal or the second pulse signal to turn the power supply on or off between the power supply and the target object.

7. The lighting effect control system according to claim 6, characterized in that, The lighting effect adjustment unit includes: A first switching transistor and a second switching transistor, wherein the gate of the first switching transistor is connected to the execution unit, the drain of the first switching transistor is grounded, the source of the first switching transistor is connected to the control terminal of the second switching transistor, the source of the second switching transistor is connected to the power supply, and the drain of the second switching transistor is connected to the target object.

8. A lighting effect control method, characterized in that, include: Acquire an image of a target object, wherein the target object is a dimmable lamp; Obtain target parameters for the region and background region associated with the target object in the image; The target object is adjusted according to the target parameters of the region associated with the target object on the image and the background region so that the difference between the target parameters of the region associated with the target object on the image and the background region is within a preset range. The background region includes the region in the image of the target object other than the target object. The region associated with the target object on the image is an enlarged contour based on the contour of the target object.

9. A lighting effect control device, characterized in that, include: An image acquisition module is used to acquire an image of a target object, wherein the target object is a dimmable lamp; A brightness calculation module is used to obtain target parameters of the region and background region associated with the target object in the image; The lighting effect control module is used to adjust the target object according to the target parameters so that the difference between the target parameters of the region associated with the target object and the background region in the image is within a preset range. The background region includes the region in the image of the target object other than the target object, and the region associated with the target object in the image is an enlarged contour based on the outline of the target object.

10. A storage medium, characterized in that, The storage medium stores computer instructions, which, when executed by a processor, implement the lighting effect control method as described in claim 8.

11. A lawnmower, characterized in that, include: frame; A walking device is mounted on the frame; An actuator, mounted on the frame, is used for cutting operations; A drive unit, mounted on the frame, is used to drive the walking device and / or the execution device; An image acquisition device, mounted on the rack, is used to acquire an image of a target object; The display unit includes the target object, which is a dimmable lamp. A controller, mounted on the rack, is configured to perform the following operations: acquire target parameters of the region and background region associated with the target object in the image; adjust the target object according to the target parameters of the region and background region associated with the target object in the image, such that the difference between the target parameters of the region and background region associated with the target object in the image is within a preset range, wherein the background region includes the region in the image of the target object other than the target object, and the region associated with the target object in the image is an enlarged contour based on the contour of the target object.