Location determination method, device, terminal equipment and storage medium

By acquiring and processing images of the lighting system, and then identifying them, the system's outline information and unit positions are determined, simplifying user operations and improving the intuitiveness and convenience of lighting system control.

CN116489468BActive Publication Date: 2025-11-14SHENZHEN QIANYAN TECH LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310357568.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2025-11-14
Estimated Expiration
2043-03-24

AI Technical Summary

Technical Problem

In existing technologies, manually identifying the location of lighting units displayed on terminal devices within the lighting system is complex, inconvenient, and difficult to remember.

Method used

By acquiring at least two status images of the lighting system, image processing and recognition technologies are used to determine the outline information of the lighting system, and the location distribution of the lighting units is divided based on the setting information, which is then displayed on the control interface of the terminal device.

Benefits of technology

This allows users to control the lighting system more intuitively and visually, improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116489468B_ABST
    Figure CN116489468B_ABST
Patent Text Reader

Abstract

This application discloses a location determination method, apparatus, terminal device, and storage medium, applied to a terminal device. The method includes: acquiring at least two state images of a lighting system; determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; dividing the contour information based on the setting information of the lighting system to determine the positional distribution of each lighting unit within the contour information; wherein the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting units; and displaying the contour information and the positional distribution of the lighting units on the control interface of the terminal device. This allows the actual shape of the lighting system and the distribution of the lighting units to correspond with the contour information displayed by the terminal device, enabling users to control the lighting system more intuitively and visually through the terminal device, thus improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of lighting control technology, and more specifically, to a location determination method, apparatus, terminal equipment, and storage medium. Background Technology

[0002] When a user customizes a lighting system, the terminal device, after establishing a connection with the lighting system, will display the specific positions of the lighting units arranged in sequence. The user can then compare the position of each lighting unit with the specific status of the lighting system by manipulating the lighting units on the terminal device.

[0003] However, determining the specific location of each lighting unit displayed on the terminal device within the lighting system through manual identification is relatively complex, inconvenient to operate, and difficult to remember. Summary of the Invention

[0004] In view of the above problems, this application proposes a location determination method, device, terminal equipment and storage medium, which can correspond the actual shape of the lighting system and the specific distribution of the lighting units with the lighting units displayed on the terminal equipment, so that users can control the lighting system more intuitively and visually through the terminal equipment, thereby improving the user experience.

[0005] In a first aspect, embodiments of this application provide a location determination method applied to a terminal device. The method includes: acquiring at least two state images of a lighting system; determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; dividing the contour information based on the setting information of the lighting system to determine the positional distribution of each lighting unit in the contour information; wherein the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting units; and displaying the contour information and the positional distribution of the lighting units on the control interface of the terminal device.

[0006] Secondly, embodiments of this application also provide a location determination device applied to a terminal device; the device includes: an acquisition module for acquiring at least two state images of a lighting system; a first determination module for determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; a second determination module for dividing the contour information based on the setting information of the lighting system to determine the positional distribution of each lighting unit in the contour information; wherein the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting system; and a display module for displaying the contour information and the positional distribution of the lighting units on the control interface of the terminal device.

[0007] Thirdly, embodiments of this application also provide a terminal device, including a processor, a memory, and one or more application programs; the one or more application programs are stored in the memory and configured to be executed by the processor to achieve the above-mentioned location determination.

[0008] Fourthly, embodiments of this application also provide a computer-readable storage medium storing program code, wherein the aforementioned location determination is executed when the program code is run by a processor.

[0009] The technical solution provided in this application is applied to a terminal device. The method includes: acquiring at least two state images of a lighting system; determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; dividing the contour information based on the setting information of the lighting system to determine the positional distribution of each lighting unit within the contour information; wherein the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting system; and displaying the contour information and the positional distribution of the lighting units on the control interface of the terminal device. This allows the actual shape of the lighting system and the distribution of the lighting units to correspond with the contour information displayed by the terminal device, enabling users to control the lighting system more intuitively and visually through the terminal device, thus improving the user experience. Attached Figure Description

[0010] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments and drawings obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0011] Figure 1 A schematic flowchart of the location determination method provided in an embodiment of this application is shown.

[0012] Figure 2 A schematic diagram of the structure of state image A and state image B provided in an embodiment of this application is shown.

[0013] Figure 3 A schematic diagram of the structure of state image C and state image D provided in an embodiment of this application is shown.

[0014] Figure 4 A schematic diagram of the location determination device provided in an embodiment of this application is shown.

[0015] Figure 5This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application.

[0016] Figure 6 A schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of this application is shown. Detailed Implementation

[0017] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings.

[0018] When users create custom shapes using the lighting system (i.e., arrange the lighting system into a custom shape, such as assembling multiple square lights into a cross shape), after the terminal device establishes a connection with the lighting system, it only displays the specific positions of the lighting units arranged in sequence. It cannot reflect the actual shape of the lighting system. Users need to manipulate the lighting units arranged in sequence on the terminal device in turn and compare them with the state changes of different positions in the lighting system to determine the specific position of each lighting unit on the terminal device within the lighting system.

[0019] However, determining the specific location of each lighting unit displayed on the terminal device within the lighting system through manual identification is relatively complex, inconvenient to operate, and difficult to remember.

[0020] To address the aforementioned issues, this application provides a location determination method, apparatus, terminal device, and storage medium, applied to a terminal device. The method includes: acquiring at least two state images of a lighting system; determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; dividing the contour information based on the setting information of the lighting system to determine the positional distribution of each lighting unit within the contour information; wherein the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting units; and displaying the contour information and the positional distribution of the lighting units on the control interface of the terminal device.

[0021] Therefore, by correlating the actual shape of the lighting system and the position of the lighting units with the outline information displayed on the terminal device, users can more intuitively and visually control the lighting system through the terminal device, thus improving the user experience. Please refer to the following steps for specific implementation details.

[0022] Please see Figure 1 , Figure 1 A flowchart illustrating a location determination method provided in an embodiment of this application is shown. This method is applied to a terminal device and may include steps 110 to 140.

[0023] In step 110, at least two status images of the lighting system are acquired.

[0024] In the embodiments of this application, the lighting system includes a linear lighting system and a nonlinear lighting system. The linear lighting system may include light strips or light strings, while the nonlinear lighting system may include polygonal lighting systems such as square lights.

[0025] Status images are images of the lighting system in different operating states. For example, an image of the lighting system in the off state; or an image of the lighting system in the on state; or an image of the lighting system with the red light on, etc.

[0026] In some implementations, the lighting system can be filmed in 360 degrees to obtain videos of the lighting system in different working states, and then screenshots can be taken from the videos to obtain at least two state images of the lighting system; or at least two state images of the lighting system can be obtained by taking pictures.

[0027] Acquire at least two state images of the lighting system so that in subsequent steps, the specific information of the lighting system, such as the outline of the actual shape of the lighting system, can be determined based on the changes in different state images.

[0028] In step 120, the contour information of the lighting system is determined based on the state changes of the lighting system in at least two state images.

[0029] In some implementations, image processing and recognition technologies are used to process at least two state images obtained by shooting or recording. For example, image processing technology is used to reduce noise in the acquired state images to obtain clearer state images. Then, image recognition technology is used to identify the state images. Based on the recognition differences between different state images (e.g., differences in light color), the outline information of the lighting system displayed on the terminal device is determined.

[0030] Determining the outline information of the lighting system allows the terminal device to display the actual shape (outline information) of the lighting system in subsequent steps, thus matching the shape of the lighting system with the outline information displayed by the terminal device. This enables users to perform corresponding operations on the lighting system based on the outline information displayed by the terminal device.

[0031] In some embodiments, the at least two state images may include state images of the lighting system in at least two different operating states, wherein each lighting unit in the lighting system corresponds to a different state when the lighting system is in different operating states. The different states of a lighting unit when the lighting system is in different operating states may include the lighting unit being in an on or off state; the different states of a lighting unit when the lighting system is in different operating states may also include the lighting unit's light being in a state with different lighting parameters; for example, different color states (such as red light state or green light state), different brightness states (such as high brightness state or low brightness state), etc.; this application does not impose any limitations on this.

[0032] More specifically, the step of determining the contour information of the lighting system based on the state changes of the lighting system in at least two state images may also include the following steps.

[0033] (1) Determine the working area for switching the working state of the lighting system based on the state images of different working states.

[0034] (2) Determine the outline information of the lighting system based on the work area.

[0035] In embodiments of this application, the working area for switching functions of the lighting system is determined by the differences in state images under different working states, and the contour information of the lighting system is determined based on the contour distribution of the working area. For example, as shown... Figure 2 The above, Figure 2 The diagram illustrates the structure of state image A and state image B provided in this embodiment. Position A1 in state image A corresponds to position B1 in state image B, position A2 in state image A corresponds to position B2 in state image B, and so on. Positions A3 and B3, A4 and B4, and A5 and B5 correspond to each other. Through processing and recognition of state images A and B, it can be determined that positions A1, A2, A3, A4, and A5 in state image A differ from positions B1, B2, B3, B4, and B5 in state image B. The area formed by positions A1, B2, A3, B4, and A5 can be determined as the working area. The contour distribution of the working area is then used to determine the contour information of the lighting equipment lighting system.

[0036] In practical use, due to external interference, such as when the environment where the lighting system is located is bright, the light emitted by the lighting system is not obvious, resulting in a large deviation between the contour information subsequently determined based on the state image and the actual shape of the lighting system. To improve the accuracy of the contour information, in some embodiments, the step of determining the contour information of the lighting system based on the working area may include the following steps.

[0037] (1) Determine the matching degree between each two different work areas in at least two work areas.

[0038] (2) Determine the contour information of the lighting system based on the working area where the matching degree is greater than the preset matching threshold.

[0039] In the embodiments of this application, the matching degree between any two different working areas can be determined based on the area of ​​the overlapping area between any two different working areas.

[0040] By analyzing the differences in state images under different working states, at least two working areas for the lighting system to switch operations are determined. The matching degree between the working areas is determined based on the contour distribution between each pair of working areas. Then, the contour information of the lighting system is determined based on the working areas where the matching degree is greater than a preset matching threshold. For example, assuming the preset matching threshold is 80% and the matching degree between working area A and working area B is 82%, the contour information of the lighting system can be determined based on working area A or working area B. For example, the contour information of the lighting system can be determined based on one of the smaller working areas; or, for example, the contour information of the lighting system can be determined based on one of the larger working areas.

[0041] When the design of a lighting system is complex, the contour information determined by state images of the lighting system from different orientations may not accurately represent the actual design of the lighting system. For example, when a user stands in other orientations of the lighting system, the user cannot correlate the contour information with the actual design of the lighting system. Regardless of the user's orientation, to facilitate the user's correlation between the contour information and the actual design of the lighting system, in some implementations, the state image includes at least two sub-images of the lighting system in different operating states in each orientation.

[0042] In some implementations, the step of determining the working area for switching the working state of the lighting system based on the state images in different working states may also include the following steps: determining the working area for switching the working state of the lighting system in each direction based on at least two state sub-images in different working states corresponding to each direction.

[0043] For example, at least two state sub-images corresponding to each location, each in a different working state, can indicate the first state sub-image of the lighting system in a different location when the lighting system is in a red light state in one of the state sub-images; and the other state sub-image can indicate the second state sub-image of the lighting system in a different location when the lighting system is in a green light state; the contour information of the lighting system in that location can be determined based on the first and second state sub-images in the same location.

[0044] Based on the working area in different directions, the outline information of the lighting system in three-dimensional space can be restored relatively completely. More specifically, the steps are to determine the outline information of the lighting system based on the working area, and may also include the steps of determining the outline information of the lighting system in each direction based on the working area corresponding to each direction.

[0045] For example, when the lighting system is in a green light state, the following sub-images are obtained: a first-view image of the lighting system from the front, a first-view image from the back, a first-view image from the left, a first-view image from the right, a first-view from above, and a first-view image from below. Similarly, when the lighting system is in a red light state, the following sub-images are obtained: a second-view image of the lighting system from the front, a second-view image from the back, a second-view image from the right, a first-view from above, and a second-view from below. By comparing the first-view and second-view images from the front, the working area of ​​the lighting system in the front direction can be determined. By comparing the first-view and second-view images from the back, the working area of ​​the lighting system in the back direction can be determined. This process can be repeated to obtain the working areas of the lighting system in the left, right, top, and bottom directions. Based on the obtained working areas in these six directions, a relatively complete three-dimensional spatial contour of the lighting system can be deduced and reconstructed.

[0046] By determining a relatively complete outline of the lighting system in three-dimensional space, users can adjust the display angle of the outline information displayed on the terminal device according to the actual location of the lighting system, so that the shape of the lighting structure seen by the user corresponds to the outline information displayed on the terminal device.

[0047] In step 130, based on the setting information of the lighting system, the contour information is divided to determine the positional distribution of each lighting unit in the contour information.

[0048] In the embodiments of this application, the lighting unit includes a control unit and at least one lamp unit controlled by the control unit, that is, one lighting unit corresponds to at least one lamp unit, that is, one control unit can control different numbers of lamp units, for example, one lighting unit can control one or six lamp units; wherein, the control unit is the control carrier of the lighting system, the control unit is a microelectronic device (Integrated Circuit Chip, IC), and the lamp unit can be an LED, etc.

[0049] In some implementations, the control units are evenly distributed throughout the lighting system. For example, when the lighting system is a light strip, the control units are distributed at equal intervals along the light strip.

[0050] By controlling the control unit, the lighting in the corresponding area of ​​the lighting system can be changed. One control unit can control different sizes of areas.

[0051] In the embodiments of this application, the setting information includes at least one of the following: the number of lighting units in the lighting system, the setting length of the lighting units, the setting shape of the lighting units, and the setting size of the lighting system; wherein, the setting number can indicate the number of control units on the lighting system; the setting length can indicate the distance between different lamp units in the lighting unit; the setting shape can indicate the shape of a lighting unit, for example, the setting shape can be any shape such as a square or a rectangle; the setting size can indicate the length or area of ​​the lighting unit.

[0052] In some implementations, the steps involve dividing the contour information based on the lighting system's setting information to determine the positional distribution of each lighting unit within the contour information. This may include the following steps: uniformly dividing the contour information into at least one setting sub-contour according to the setting information; wherein each setting sub-contour corresponds to one of the lighting units.

[0053] In some implementations, the terminal device and the lighting system can establish a connection via wireless means such as Bluetooth. For example, by clicking the Bluetooth name corresponding to the lighting system on the control page of the terminal device, the terminal device can determine which lighting system to establish a connection with.

[0054] In the embodiments of this application, after the terminal device establishes a connection with the lighting system, the lighting system sends the number of control units to the terminal device so that the terminal device can obtain the number of control units corresponding to the lighting system, and thus determine the number of lighting units to be set based on the number of control units.

[0055] In some implementations, the terminal device stores the number, length, shape, or size of control units for different types of lighting systems, and determines the number of lighting units based on the stored number of control units. For example, when a lighting system's number is entered on the terminal device's control page, the terminal determines the corresponding lighting system from the background database based on the number and retrieves the number of control units, length, shape, or size of the lighting units on the lighting system.

[0056] Based on the number, length, shape, or size of the lighting units corresponding to the lighting system, the contour information is uniformly divided to obtain at least one sub-contour. For example, if the number of lighting units corresponding to the lighting system (e.g., a light strip) is 6, the contour information is uniformly divided into 6 sub-contours. Alternatively, if the shape is square, the contour information is uniformly divided into sub-contours of square shape. Or, if the length is 2, the length of a lighting unit can be inferred from the known number of light units in that unit, and the contour information is uniformly divided into sub-contours of the corresponding length. Or, if the size is the length of the lighting unit and the size is 6, the contour information is uniformly divided into sub-contours of length 6.

[0057] The position of each sub-profile obtained is the position distribution of the lighting unit corresponding to that sub-profile.

[0058] For example, please refer to Figure 3 , Figure 3 The diagram shows the structure of state image C and state image D provided in the embodiment of this application. State image C, in which all lighting units of the lighting system are lit, and state image D, in which all lighting units of the lighting system are off, are obtained respectively. Based on the difference between state image C and state image D, contour information d is determined. Then, based on the setting shape of the lighting unit, the contour information d is evenly divided into five setting sub-contours, and each setting sub-contour is the position distribution of the corresponding lighting unit.

[0059] In step 140, the outline information and the position distribution of the lighting units are displayed on the control interface of the terminal device.

[0060] The terminal device displays outline information and the position distribution of lighting units. The position distribution of each lighting unit can indicate the position distribution of the control unit within each lighting unit, thereby allowing the actual shape of the lighting system to correspond with the outline information displayed by the terminal device. Furthermore, the specific position distribution of each lighting unit is made available in the outline information (i.e., the position distribution of each control unit is visualized). Users can more intuitively correspond the control interface of the terminal device with the actual shape of the lighting system. Users can more intuitively and conveniently determine the position of the specific lighting unit to be controlled in the outline information and the specific position of the lamp unit controlled by that lighting unit in the actual shape of the lighting system.

[0061] The lighting system uses a terminal device to map the lighting units to the set sub-outlines. Users can control the lighting system point-to-point by clicking on the location of the lighting units displayed on the terminal device. However, because the actual shape of the lighting system may be symmetrical—for example, if the lighting system is a light strip distributed along a straight line—users may have difficulty matching the top of the outline information with the actual shape of the lighting system.

[0062] In some implementations, the location determination method provided in this application may further include the following steps.

[0063] (1) Obtain initial confirmation information.

[0064] (2) Determine the position of the initial end in the contour information based on the initial end confirmation information.

[0065] In some implementations, the initial end confirmation information can be input by the user. For example, the user can observe and determine which end of the lighting system is connected to the power supply, input that end into the terminal device, and identify it as the initial end of the contour information.

[0066] In some implementations, the initial confirmation information can be determined based on the current direction of the lighting system, and the specific method for determining the current direction may include the following steps.

[0067] (1) Acquire images of the lighting system from multiple directions.

[0068] In this system, multiple directional images are obtained by sequentially switching the operating states of the lamp units corresponding to the lighting units according to a set order. For example, if the lighting system is a light strip with six control units, the lighting units corresponding to the control units are controlled sequentially according to the set order, so that the lamp units connected to the control units are in the on state (the lamp units controlled by other lighting units are in the off state). Even if the corresponding lighting units are in the on state, six directional images can be obtained. Alternatively, the light strip can be controlled to run a series of running light effects, and images of the lighting system can be obtained at preset time intervals to obtain a set of directional images.

[0069] (2) Determine the setting direction of the lighting system based on the acquisition order of multiple direction images and the state changes of adjacent direction images.

[0070] The orientation of the lighting system can be determined by the order in which the directional images are acquired and the differences between adjacent directional images.

[0071] After determining the setting direction of the lighting system, the step of obtaining initial end confirmation information may also include the step of: determining the initial end confirmation information according to the setting direction.

[0072] In the embodiments of this application, the current direction can be determined based on the setting direction, thus determining the power input terminal.

[0073] By confirming the position of the initial end in the contour information, a direction can be provided for the user when operating the contour information, which helps the user to control the corresponding lighting unit more intuitively and conveniently.

[0074] Furthermore, in some embodiments, the step of displaying contour information and the position distribution of the lighting units on the control interface of the terminal device may include the step of displaying contour information, the position distribution of the lighting units, and the initial end on the control interface of the terminal device.

[0075] The control interface of the terminal device displays the outline information, the position distribution of the lighting units corresponding to each set sub-outline, and the initial end of the outline information. This makes the actual shape of the lighting system correspond to what is displayed on the terminal device, allowing users to control the lighting system more intuitively and visually through the terminal device, thus improving the user experience.

[0076] Therefore, by acquiring state images of the lighting system in different states, the contour information of the lighting system in different directions can be determined based on the state images. This allows for a correspondence between the actual shape of the lighting system and its contour information in different directions. Furthermore, since the lighting units are evenly distributed throughout the lighting system, the lighting units are evenly divided into a set number of sub-contours based on the number of lighting units set on the lighting system. Each sub-contour represents the positional distribution of the lighting units on that sub-contour. The positional distribution of the lighting units can be replaced by the positional distribution of the lighting units, thereby enabling the actual shape of the lighting system to correspond with the positional distribution of the lighting units and the positional distribution of the control unit in the terminal device. This facilitates users to control the lighting system more intuitively and visually through the terminal device, improving the user experience.

[0077] Please see Figure 4 Figure 4 This diagram illustrates the structure of a location determination device 200 provided in an embodiment of this application, applied to a terminal device. The location determination device 200 includes: an acquisition module 210, a first determination module 220, a second determination module 230, and a display module 240. Specifically:

[0078] The acquisition module 210 is used to acquire at least two status images of the lighting system.

[0079] The first determining module 220 is used to determine the contour information of the lighting system based on the state changes of the lighting system in at least two state images.

[0080] In some embodiments, at least two state images include state images of the lighting system in at least two different operating states; wherein each lighting unit in the lighting system corresponds to a different state when the lighting system is in different operating states, the first determining module 220 may further include:

[0081] The first determination submodule is used to determine the working area for switching the working state of the lighting system based on the state images of different working states.

[0082] The second determination submodule is used to determine the outline information of the lighting system based on the working area.

[0083] In some implementations, the number of work areas is at least two, and the second determining submodule may further include:

[0084] The third determination submodule is used to determine the matching degree between each two different working areas in at least two working areas.

[0085] The fourth determination submodule is used to determine the contour information of the lighting system based on the working area where the matching degree is greater than the preset matching threshold.

[0086] In some implementations, the state image includes at least two state sub-images of the lighting system in each orientation, each in a different operating state. The first determining submodule may further include:

[0087] The fifth determination submodule is used to determine the working area where the lighting system switches working states in each direction based on at least two state sub-images in different working states corresponding to each direction.

[0088] In some implementations, the second determining submodule may further include:

[0089] The sixth determination submodule is used to determine the outline information of the lighting system in each direction based on the working area corresponding to each direction.

[0090] The second determining module 230 is used to divide the contour information based on the setting information of the lighting system and determine the position distribution of each lighting unit in the contour information.

[0091] The setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting units, the shape of the lighting units, and the size of the lighting units.

[0092] In some embodiments, the second determining module 230 may further include:

[0093] The first division module is used to evenly divide the contour information into at least one set sub-contour according to the setting information.

[0094] Each setting sub-profile corresponds to one of the lighting units.

[0095] Display module 240 is used to display outline information and the position distribution of lighting units on the control interface of the terminal device.

[0096] In some embodiments, the location determining device 200 may include:

[0097] The initial end determination module is used to obtain initial end confirmation information.

[0098] The seventh determination submodule is used to determine the position of the initial end in the contour information based on the initial end confirmation information.

[0099] In some embodiments, the display module 240 may further include:

[0100] The display submodule is used to display outline information, the location distribution of lighting units, and the initial end on the control interface of the terminal device.

[0101] In some embodiments, the lighting system further includes at least one lamp unit; the position determination device 200 may include:

[0102] The first acquisition module is used to acquire images of the lighting system from multiple directions.

[0103] In this process, multiple directional images are obtained by sequentially switching the working states of the lamp units corresponding to the lighting units according to a set order.

[0104] The eighth determination submodule is used to determine the setting direction of the lighting system based on the acquisition order of multiple directional images and the state changes of adjacent directional images.

[0105] In some implementations, the initial endpoint determination module may further include:

[0106] The ninth determination submodule is used to determine the initial end confirmation information based on the set direction.

[0107] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described device and module can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0108] In the several embodiments provided in this application, the coupling or direct coupling or communication connection between the modules shown or discussed may be an indirect coupling or communication connection through some interface, device or module, and may be electrical, mechanical or other forms.

[0109] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The integrated modules described above can be implemented in hardware or as software functional modules.

[0110] Please see Figure 5 , Figure 5 The present invention provides a schematic diagram of the structure of a terminal device 300. The terminal device 300 may include one or more of the following components: a processor 310, a memory 320, and one or more application programs. The one or more application programs may be stored in the memory 320 and configured to be executed by one or more processors 310. The one or more programs are configured to perform the location determination method as described in the foregoing method embodiments.

[0111] Processor 310 may include one or more processing cores. Processor 310 connects to various parts of the terminal device 300 using various interfaces and lines, and performs various functions and processes data of the terminal device 300 by running or executing instructions, programs, code sets, or instruction sets stored in memory 320, and by calling data stored in memory 320. Optionally, processor 310 may be implemented using at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), or Programmable Logic Array (PLA). Processor 310 may integrate one or more of the following: Central Processing Unit (CPU), Graphics Processing Unit (GPU), and modem. The CPU primarily handles the operating system, user interface, and applications; the GPU is responsible for rendering and drawing the displayed content; and the modem handles wireless communication. It is understood that the modem may also not be integrated into processor 310 and may be implemented separately through a communication chip.

[0112] The memory 320 may include random access memory (RAM) or read-only memory (ROM). The memory 320 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 320 may include a program storage area and a data storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the various method embodiments described below, etc. The data storage area may also store data created by the terminal device 300 during use.

[0113] Please see Figure 6 , Figure 6 A schematic diagram of the structure of a computer-readable storage medium provided in an embodiment of this application is shown. The computer-readable medium 400 stores program code, which can be called by a processor to execute the cooking control method described in the above method embodiment.

[0114] The computer-readable storage medium 400 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read-Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 400 has storage space for program code 410 that performs any of the method steps described above. This program code can be read from or written to one or more computer program devices. The program code 410 may be compressed, for example, in a suitable form.

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method for determining a location, characterized in that, Applied to terminal devices; the method includes: Acquire at least two state images of the lighting system; The contour information of the lighting system is determined based on the state changes of the lighting system in the at least two state images; Based on the setting information of the lighting system, the contour information is divided to determine the positional distribution of each lighting unit in the contour information; wherein, the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting unit, the shape of the lighting unit, and the size of the lighting unit; the lighting unit also includes at least one lamp unit; Multiple directional images of the lighting system are acquired; wherein, the multiple directional images are obtained by sequentially switching the working states of the lamp units corresponding to the lighting units in a set order; The setting direction of the lighting system is determined based on the acquisition order of the multiple directional images and the state changes of adjacent directional images; Based on the set direction, determine the initial end confirmation information; The position of the initial end in the contour information is determined based on the initial end confirmation information; the initial end represents the connection end between the lighting system and the power supply. The control interface of the terminal device displays the contour information, the position distribution of the lighting units, and the initial end.

2. The method according to claim 1, characterized in that, The at least two status images include status images of the lighting system in at least two different operating states; wherein, each lighting unit in the lighting system corresponds to a different state when the lighting system is in different operating states; Determining the contour information of the lighting system based on the state changes of the lighting system in the at least two state images includes: The working area for switching the working state of the lighting system is determined based on the status images of different working states. Based on the working area, the contour information of the lighting system is determined.

3. The method according to claim 2, characterized in that, The number of work areas is at least two; Determining the contour information of the lighting system based on the working area includes: Determine the matching degree between each pair of different work areas in at least two work areas; The contour information of the lighting system is determined based on the working area where the matching degree is greater than a preset matching threshold.

4. The method according to claim 2, characterized in that, The state image includes at least two state sub-images of the lighting system in each direction, each in a different operating state; The step of determining the working area for switching the working state of the lighting system based on the state images of different working states includes: The working area for switching the working state of the lighting system in each direction is determined based on at least two state sub-images corresponding to each direction, each in a different working state. Determining the contour information of the lighting system based on the working area includes: Based on the working area corresponding to each direction, the contour information of the lighting system in each direction is determined.

5. The method according to claim 1, characterized in that, The step of dividing the contour information based on the setting information of the lighting system and determining the positional distribution of each lighting unit in the contour information includes: The contour information is evenly divided into at least one setting sub-contour according to the setting information; each setting sub-contour corresponds to one of the lighting units.

6. A position determining device, characterized in that, Applied to terminal devices; the device includes: The acquisition module is used to acquire at least two status images of the lighting system; The first determining module is used to determine the contour information of the lighting system based on the state changes of the lighting system in the at least two state images; The second determining module is used to divide the contour information based on the setting information of the lighting system, and determine the positional distribution of each lighting unit in the contour information; wherein, the setting information includes at least one of the following: the number of lighting units in the lighting system, the length of the lighting unit, the shape of the lighting unit, and the size of the lighting unit; the lighting unit includes at least one lighting unit. The first acquisition module is used to acquire multiple directional images of the lighting system; wherein, the multiple directional images are obtained by the lighting unit sequentially switching the working state of the lamp unit corresponding to the lighting unit in a set order; The eighth determination submodule is used to determine the setting direction of the lighting system based on the acquisition order of multiple direction images and the state changes of adjacent direction images; An initial end determination module is used to obtain initial end confirmation information; the initial end determination module includes a ninth determination submodule, which is used to determine the initial end confirmation information according to the set direction; The seventh determination submodule is used to determine the position of the initial end in the contour information based on the initial end confirmation information; wherein, the initial end represents the connection end between the lighting system and the power supply; A display module is used to display the contour information and the position distribution of the lighting units on the control interface of the terminal device; the display module includes a display submodule, which is used to display the contour information, the position distribution of the lighting units, and the initial end on the control interface of the terminal device.

7. A terminal device, characterized in that, include: One or more processors; Memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors as described in any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium contains program code that can be called by a processor to execute the location determination method as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Display screen defective pixel detection method and device, computer equipment and storage medium

    CN110175997A

  • Human shape detection method for nursing camera

    CN113610835A