Specific implementation mode
In being described below, for illustration and not for limitation, it is proposed that such as tool of particular system structure, technology etc
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention can also be realized in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
It should be appreciated that ought use in this specification and in the appended claims, the instruction of term " comprising " is described special
Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step,
Operation, element, component and/or its presence or addition gathered.
It is also understood that the term used in this description of the invention is merely for the sake of the mesh for describing specific embodiment
And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on
Other situations are hereafter clearly indicated, otherwise " one " of singulative, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is
Refer to any combinations and all possible combinations of one or more of associated item listed, and includes these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt
Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or
" if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true
It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In order to illustrate technical solutions according to the invention, illustrated below by specific embodiment.
Fig. 1 is the implementation process schematic diagram of the addressing method provided in an embodiment of the present invention based on LED light, as shown,
The method may include following steps:
Step S101 sends addressing instruction to the LED light, and the addressing instruction is used to indicate the lamp in the LED light
Point is shown according to preset rules.
In practical applications, preset rules can be artificial preset.Illustratively, each lamp point in LED light
By a chip controls, controller sends addressing instruction to each chip of LED light, and each chip is receiving addressing instruction
Afterwards, corresponding lamp point is controlled to be shown according to preset rules.It should be noted that at least one lamp point of each chip controls.
Step S102 captures the image that the lamp point is shown according to preset rules by photographic device.
In practical applications, photographic device includes:Video camera, mobile phone.As long as it should be noted that including camera function
Device, and be not specifically limited.
Step S103 parses the address of the lamp point according to the image of the preset rules and the lamp point of capture.
Illustratively, lamp point is shown under the control of chip according to preset rules, and photographic device captures the shadow of lamp point
Picture, application software parse the address of lamp point according to the image of preset rules and the lamp of capture point.
Optionally, after sending addressing instruction to the LED light, further include:
Position of the lamp point in the LED light is captured by the photographic device.
After the address for parsing the lamp point, further include:
Position of the lamp point in the LED light and the address of the lamp point parsed are associated.
Illustratively, there are one general address, controller to be referred to by the transmission of this general address for all chips of LED light
It enables, all chips can receive this instruction, and each chip upon receipt of the instructions, controls corresponding lamp point, so that LED
All lamps point is all lighted on lamp.Photographic device captures the image of lamp point, and application software is according to the image of the lamp point of capture, i.e.,
It can determine the position of the profile and each lamp point of LED light in LED light.After the address of parsing lamp point, by lamp point in LED light
On position and the address of lamp point that parses be associated.In this way, controller can be according to lamp point in LED light position
With the address of lamp point, to drive each chip of LED light, to control the picture that LED light indicates a need for.
For the embodiment of the present invention by sending addressing instruction to the LED light, the addressing instruction is used to indicate the LED light
On lamp point shown according to preset rules;The image that the lamp point is shown according to preset rules is captured by photographic device;
According to the image of the preset rules and the lamp point of capture, the address of the lamp point is parsed;It can quickly and accurately determine
The included address of lamp point in LED light.
Fig. 2 is the implementation process schematic diagram for the addressing method based on LED light that further embodiment of this invention provides, as schemed institute
Show, the method can also include the following steps:
Step S201 sends addressing instruction to the LED light, and the addressing instruction is used to indicate the lamp in the LED light
Point is shown according to preset rules.
Step S202 captures the image that the lamp point is shown according to preset rules by photographic device.
In practical applications, step S201-S202 is identical as step S101-S102, and particular content can be found in step S101-
S102, details are not described herein again.
Optionally, the preset rules include:
If described address code is 1, the lamp point is shown in preset time according to the first predetermined manner.
If described address code is 0, the lamp point is shown in preset time according to the second predetermined manner.
Wherein, preset time can be artificial preset.First predetermined manner and the second predetermined manner can also be
Artificial preset, predetermined manner can be flashing times, can also be persistently to be lighted in preset time, can also be aobvious
Show certain color, as long as the first predetermined manner and the second predetermined manner different from, are not specifically limited herein.It is exemplary
, it is assumed that preset time 1ms, predetermined manner are flashing times, wherein the first predetermined manner is flicker 4 times, the second default side
Formula is flicker 1 time.If address code is 1, lamp point flickers 4 times in 1ms;If address code is 0, lamp point dodges in 1ms
It is 1 time bright.
Step S203, if the lamp point described in the image of the lamp point starts the n-th preset time after flickering for the first time
Interior, the lamp o'clock is shown according to the first predetermined manner, then the address code of the n-th address bit of the lamp point is 1.
Step S204, if the lamp point described in the image of the lamp point starts the n-th preset time after flickering for the first time
Interior, the lamp o'clock is shown according to the second predetermined manner, then the address code of the n-th address bit of the lamp point is 0.
Wherein, the N is used to indicate the n-th address bit of the lamp point, and the N is the natural number more than or equal to 1.
It " according to the preset rules and is captured it should be noted that step S203-S204 is step S103 in Fig. 1
The image of the lamp point parses the address of the lamp point " specific implementation process.
Illustratively, preset time 1ms, the first predetermined manner are flicker 4 times, and the second predetermined manner is flicker 1 time, lamp
The digit of the address of point is 2, and the address of lamp point is 10.Controller sends addressing instruction, and photographic device captures the image of lamp point,
In the image of lamp point, lamp o'clock flickers 4 times in first 1ms, is flickered 1 time in second 1ms, then parses the address of lamp point
First on address code be 1, the address code on second is 0, i.e., the address of lamp point is 10.It should be noted that above-mentioned
An only example is not specifically limited preset time, the first predetermined manner, the second predetermined manner.
The embodiment of the present invention captures the lamp point pre- by sending addressing instruction to the LED light by photographic device
If the number flickered in the time, and the number flickered in preset time according to the lamp point of preset rules and capture, parsing
The address of the lamp point can quickly and accurately determine the address of lamp point in LED light.
Fig. 3 is the implementation process schematic diagram for the addressing method based on LED light that further embodiment of this invention provides, as schemed institute
Show, the method may include following steps:
Step S301 sends addressing instruction to the LED light, and the addressing instruction is used to indicate the lamp in the LED light
Point is shown according to preset rules.
Step S302 captures the image that the lamp point is shown according to preset rules by photographic device.
In practical applications, step S301-S302 is identical as step S101-S102, and particular content can be found in step S101-
S102, details are not described herein again.
Optionally, the addressing instruction includes:Addressable address, display rule;
The preset rules include:
If in the address and the addressable address of the lamp point, the address code on identical address bit is identical, then described
Lamp point is shown according to the display rule in the addressing instruction.
Wherein, the display rule can be artificial preset.If identical in the address and addressable address of lamp point
Address bit on address code it is different, then lamp point is not according to default display rule display.Illustratively, it is assumed that display rule is lamp
The color of point display is red.If first of the address of lamp point is identical with the address code on first of addressable address,
The color that lamp point is shown is red;If the second of address of lamp point is different with the address code on the second of addressable address,
Then lamp point is not shown or shown in green.It should be noted that an above-mentioned only example, not in display rule
Appearance is specifically limited, in the address to use as a lamp and addressable address when address code difference on identical address bit, as long as lamp point is not
It shows, is not specifically limited to how lamp point carries out display according to default display rule.
Step S303, confirms the number of the addressing instruction currently sent, and the number is denoted as M.
Step S304, if lamp point is shown according to the display rule, the m-th address bit of the lamp point
Address code is identical as the address code of m-th address bit in current addressable address.
Step S305, if lamp point is not shown according to the display rule, the m-th address bit of the lamp point
Address code it is opposite with the address code of m-th address bit in current addressable address.
Wherein, the M is the natural number more than or equal to 1.
It " according to the preset rules and is captured it should be noted that step S304-S305 is step S103 in Fig. 1
The image of the lamp point parses the address of the lamp point " specific implementation process.
Illustratively, it is assumed that the digit of the address of lamp point is 2, and the address of chip one is 10, and the address bit 01 of chip two is shown
Show that rule be the color that lamp point is shown is red.It is that (A is addressing identification position, M to A+01+M that controller sends addressing instruction for the first time
For display rule), 1 corresponding lamp point of chip is not shown, 2 corresponding lamp point of chip is displayed in red, and photographic device captures each lamp
The image of point, the number of the addressing instruction currently sent are 1, and application software is according to the shadows of preset rules and the lamp of capture point
Picture, it is 0 to parse the address code on the 1st of the address of 1 corresponding lamp point of chip, the address of 2 corresponding lamp point of chip
Address code on 1st is 1;Second of transmission addressing instruction of controller is A+10+M, and 1 corresponding lamp point of chip is displayed in red,
2 corresponding lamp point of chip does not show that photographic device captures the image of each lamp point, and the number of the addressing instruction currently sent is
2, application software parses the 2nd of the address of 1 corresponding lamp point of chip according to the image of preset rules and the lamp of capture point
On address code be 1, the address code on the 2nd of the address of 2 corresponding lamp point of chip is 0.So controller only needs to send out
Send 2 addressing instructions, the address of 2 corresponding lamp point of chip one and chip that can all determine, the ground of 1 corresponding lamp point of chip
Location is 10, and the address of 2 corresponding lamp point of chip is 01.It should be noted that an above-mentioned only example, not to lamp point
Digit, the display rule of location are specifically limited.
The embodiment of the present invention captures the shadow of the lamp point by photographic device by sending addressing instruction to the LED light
Picture, and according to the image of preset rules and the lamp point of capture, whether the lamp point is parsed according to the display in addressing instruction
Rule is shown, the address of lamp point in LED light can be quickly and accurately determined with this.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
Fig. 4 is that the schematic diagram of the device for addressing provided in an embodiment of the present invention based on LED light only shows for convenience of description
Go out and the relevant part of the embodiment of the present invention.
Transmission unit 41, for sending addressing instruction to the LED light, the addressing instruction is used to indicate the LED light
On lamp point shown according to preset rules.
First capture unit 42, for capturing the image that the lamp point is shown according to preset rules by photographic device.
Resolution unit 43 parses the lamp point for the image according to the preset rules and the lamp point of capture
Address.
Optionally, the preset rules include:
If described address code is 1, the lamp point is shown in preset time according to the first predetermined manner.
If described address code is 0, the lamp point is shown in preset time according to the second predetermined manner.
Further, the resolution unit 43 includes:
First parsing module, if starting the n-th after flickering for the first time for lamp point described in the image in the lamp point
In preset time, the lamp o'clock is shown according to the first predetermined manner, then the address code of the n-th address bit of the lamp point is 1.
Second parsing module, if starting the n-th after flickering for the first time for lamp point described in the image in the lamp point
In preset time, the lamp o'clock is shown according to the second predetermined manner, then the address code of the n-th address bit of the lamp point is 0.
Wherein, the N is used to indicate the n-th address bit of the lamp point, and the N is the natural number more than or equal to 1.
Optionally, the addressing instruction includes:Addressable address, display rule.
The preset rules include:
If in the address and the addressable address of the lamp point, the address code on identical address bit is identical, then described
Lamp point is shown according to the display rule in the addressing instruction.
Further, described device 4 further includes:
Confirmation unit, for before the address for parsing the lamp point, confirming the number of the addressing instruction currently sent,
And the number is denoted as M.
Further, the resolution unit 43 includes:
Third parsing module, if being shown according to the display rule for the lamp point, the m-th of the lamp point
The address code of address bit is identical as the address code of m-th address bit in current addressable address.
4th parsing module, if not shown according to the display rule for the lamp point, the M of the lamp point
The address code of a address bit is opposite with the address code of m-th address bit in current addressable address.
Wherein, the M is the natural number more than or equal to 1.
Optionally, described device 4 further includes:
Second capture unit 44, for after sending addressing instruction to the LED light, being captured by the photographic device
Position of the lamp point in the LED light.
Further, described device 4 further includes:
Associative cell 45 is used for after the address for parsing the lamp point, by position of the lamp point in the LED light
It is associated with the address of the lamp point parsed.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Fig. 5 is the schematic diagram for the terminal device that one embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment is set
Standby 5 include:Processor 50, memory 51 and it is stored in the meter that can be run in the memory 51 and on the processor 50
Calculation machine program 52.The processor 50 realizes above-mentioned each addressing method based on LED light when executing the computer program 52
Step in embodiment, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 50 executes the computer journey
The function of each module/unit in above-mentioned each device embodiment, such as the function of module 41 to 45 shown in Fig. 4 are realized when sequence 52.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 52 in the terminal device 5 is described.For example, the computer program 52 can be divided
It is cut into transmission unit, the first capture unit, resolution unit, each unit concrete function is as follows:
Transmission unit, for sending addressing instruction to the LED light, the addressing instruction is used to indicate in the LED light
Lamp point shown according to preset rules.
First capture unit, for capturing the image that the lamp point is shown according to preset rules by photographic device.
Resolution unit parses the ground of the lamp point for the image according to the preset rules and the lamp point of capture
Location.
Optionally, the preset rules include:
If described address code is 1, the lamp point is shown in preset time according to the first predetermined manner.
If described address code is 0, the lamp point is shown in preset time according to the second predetermined manner.
Further, the resolution unit includes:
First parsing module, if starting the n-th after flickering for the first time for lamp point described in the image in the lamp point
In preset time, the lamp o'clock is shown according to the first predetermined manner, then the address code of the n-th address bit of the lamp point is 1.
Second parsing module, if starting the n-th after flickering for the first time for lamp point described in the image in the lamp point
In preset time, the lamp o'clock is shown according to the second predetermined manner, then the address code of the n-th address bit of the lamp point is 0.
Wherein, the N is used to indicate the n-th address bit of the lamp point, and the N is the natural number more than or equal to 1.
Optionally, the addressing instruction includes:Addressable address, display rule.
The preset rules include:
If in the address and the addressable address of the lamp point, the address code on identical address bit is identical, then described
Lamp point is shown according to the display rule in the addressing instruction.
Further, described device further includes:
Confirmation unit, for before the address for parsing the lamp point, confirming the number of the addressing instruction currently sent,
And the number is denoted as M.
Further, the resolution unit includes:
Third parsing module, if being shown according to the display rule for the lamp point, the m-th of the lamp point
The address code of address bit is identical as the address code of m-th address bit in current addressable address.
4th parsing module, if not shown according to the display rule for the lamp point, the M of the lamp point
The address code of a address bit is opposite with the address code of m-th address bit in current addressable address.
Wherein, the M is the natural number more than or equal to 1.
Optionally, described device further includes:
Second capture unit, for after sending addressing instruction to the LED light, institute to be captured by the photographic device
State position of the lamp point in the LED light.
Further, described device further includes:
Associative cell, for after the address for parsing the lamp point, by position of the lamp point in the LED light with
The address of the lamp point parsed is associated.
The terminal device 5 can be that the calculating such as desktop PC, notebook, palm PC and cloud server are set
It is standby.The terminal device may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5
The only example of terminal device 5 does not constitute the restriction to terminal device 5, may include than illustrating more or fewer portions
Part either combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng.
The memory 51 can be the internal storage unit of the terminal device 5, such as the hard disk of terminal device 5 or interior
It deposits.The memory 51 can also be to be equipped on the External memory equipment of the terminal device 5, such as the terminal device 5
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card) etc..Further, the memory 51 can also both include the storage inside list of the terminal device 5
Member also includes External memory equipment.The memory 51 is for storing needed for the computer program and the terminal device
Other programs and data.The memory 51 can be also used for temporarily storing the data that has exported or will export.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as
Multiple units or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be by some interfaces, device
Or INDIRECT COUPLING or the communication connection of unit, can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM,
Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described
The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice
Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and
Telecommunication signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality
Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.