Summary of the invention
The present invention is directed to the prior art defective and proposed a kind of devices and methods therefor that adopts the shooting mode to obtain LED pixel lamp position and signal annexation thereof automatically.The technical scheme that adopts the present invention to propose, can be in place all LED pixel lamps earlier, automatically obtain the installation site and the annexation of LED pixel lamp then, for normal play video program on the LED of irregular alignment pixel lamp array provides necessary condition.
The technical scheme that this device adopts is as follows:
A kind of device that obtains LED pixel lamp position and signal annexation thereof, comprise a main control computer, also comprise an image pick-up card and a video camera, image pick-up card is inserted in the expansion slot on the main control computer mainboard, the vision signal delivery outlet of video camera is access to the vision signal input port of image pick-up card, a primary controller and at least one iversion controller of also comprising LED pixel lamp control system, the signal input of described primary controller is connected with the signal output (DVI or VGA) of the video card of described main control computer, and the signal output of described primary controller is connected with the signal input of described iversion controller.
Wherein, the control signal port of described iversion controller is connected with the LED pixel lamp.
Another object of the present invention provides the method for a kind of LED of obtaining pixel lamp position and annexation thereof, and the step of this method is as described below.
Step 0, the LED pixel lamp is in place, main control computer correctly is connected with image pick-up card, video camera, and with primary controller, the iversion controller of main control computer, LED pixel lamp control system, and the LED pixel lamp correctly connects, specifically comprise a cover LED pixel lamp control system, described LED pixel lamp control system is made up of a main control computer, a primary controller and at least one iversion controller; In addition, this device also comprises an image pick-up card and a video camera; Wherein, image pick-up card is inserted in the expansion slot on the mainboard of main control computer, the vision signal delivery outlet of video camera is access to the vision signal input port of image pick-up card, the signal input of primary controller is connected with the shows signal delivery outlet of main control computer, the signal output of primary controller is connected with the signal input of iversion controller, and the control signal port of described iversion controller is connected with the LED pixel lamp;
Step 1, on the display interface of main control computer, open up broadcast window A, utilize prior art, set up the mapping relations one by one of the pixel among LED pixel lamp and the window A;
Step 2, the picture color of window A is set, lights all LED pixel lamps, make the LED pixel lamp presents remarkable difference with background color;
Step 3, on the display interface of main control computer, open up shooting window B, utilize prior art, the image frame that video camera is taken appears on the window B;
Step 4, with the alignment lens LED pixel lamp array of video camera, suitably adjust the size of focal length and window B, the pixel lamp that determine the position is all appeared among the window B, and is full of whole image as much as possible;
Step 5, determine the quantity m of employed iversion controller, and to the iversion controller numbering, from 0 to m-1;
Step 6, determine the quantity n of the control signal port of every iversion controller, and the control signal port be numbered, from 0 to n-1;
Step 7, determine in the control signal port of all iversion controllers, the maximum quantity p of LED pixel lamp on the LED pixel lamp string that each signal port connects, and to the Position Number of the LED pixel lamp in the lamp string, from 0 to p-1;
Step 8, LED pixel lamp position paper that is similar to the data-base recording table of generation, this document comprises m * n * p record, the corresponding LED pixel lamp of each record, each record comprises 6 fields at least, be respectively: pixel lamp sequence number, iversion controller number, control signal port numbers, the location number in the lamp string, installation site horizontal ordinate X, installation site ordinate Y, arrive this, the X of installation site coordinate, the value of Y all are made as 0;
Adopt prior art, the iversion controller that is connected according to each LED pixel lamp, iversion controller control signal mouth, the position in the lamp string, deducibility goes out its pixel corresponding in window A, and the installation site of each LED pixel lamp in fact has been reflected among the window B, like this, the color of pixel is set in window A successively, lights corresponding LED pixel lamp, just can discern the position of this pixel lamp in window B, specifically finish by following steps with software;
Step 9, a sequence number variable k is set, and k is put 0;
Step 10, window A are set to black, and at this moment all LED pixel lamps extinguish;
Step 11, fetch squence number are iversion controller number, control end slogan, the lamp string location number in the record of pixel lamp of k, extrapolate the corresponding pixel points of this pixel lamp in window A;
Step 12, this pixel that window A is set are the described color of step 3, light this pixel lamp;
Step 13, at this moment a bright spot can occur among the window B, discerns this bright spot with software, and extrapolates the coordinate figure of this bright spot center with respect to the window B upper left corner, this coordinate figure is inserted the X coordinate and the Y coordinate fields of this record;
In this step, if bright spot in window B, do not occur, illustrate and do not have the LED pixel lamp on certain position of the LED pixel lamp string on certain signal port of certain iversion controller (such as, the quantity of the LED pixel lamp of the actual connection of certain control signal port of iversion controller this situation can occur during less than P), at this moment the coordinate fields of this record can be made as particular value, such as (0,0);
Step 14, k is added 1;
Step 15, judge whether to travel through all pixel lamps, promptly whether k=m * n * p sets up, and is then to enter step 16, otherwise gets back to step 10;
Step 16, preservation LED pixel lamp position paper finish.
Obtained a LED pixel lamp position paper to this, this document includes the annexation of each LED pixel lamp in control system, the control signal port, the position in the lamp string etc. of iversion controller that comprises iversion controller, the access of access, and the installation site of each LED pixel lamp is with respect to the logical coordinates value of a true origin, based on this position paper, just can be implemented on the LED pixel lamp array of irregular alignment the purpose of play multimedia program normally.
Embodiment
Now according to accompanying drawing also in conjunction with the embodiments, the present invention will be further described.
Embodiment
Present embodiment is a technical scheme of utilizing the present invention to propose, obtains the position of LED pixel lamp of any arrangement and the process of signal annexation thereof.
Please referring to Fig. 1, Fig. 1 is the device annexation synoptic diagram of the embodiment of the invention.Pci expansion slot on main control computer 1 mainboard is equipped with image pick-up card 4 and DVI video card 5, the vision signal of video camera 2 outputs is access to image pick-up card 4 with video signal cable 3, the DVI interface of DVI video card 5 is connected with primary controller 7 with DVI signal wire 6, primary controller 7 usefulness surpass five class netting twines 8 and are connected with iversion controller 9, and the LED pixel lamp string that the control signal mouth of iversion controller 9 is formed by control signal wire 10 and LED pixel lamp 11 links to each other.
Preferably, the industrial control computer NORCO-2000H that main control computer 1 selects for use Shenzhen Norco Co., Ltd to produce, its basic specification is described below:
1, processor
CPU:Pentium?43.0G
Chipset: Intel 865PE chipset
BIOS:4Mb?AMI?BIOS
2, bus
FSB:800/533MHz
PCI:32bit/33MHz
ISA:HISA
3, hard disk
Capacity: 120GB
Rotating speed: 7200
4, internal memory
Capacity: 512MB DDR
Slot: 2 184pin DIMM
5, video card
Interface: VGA
Controller: ATI RADEON 7000
Video memory: 64M DDR independence video memory
6, network
Type: 10/100M Base-T, RJ45
Controller: Intel 82562ET
7, I/O interface
USB:USB2.0,4;
Serial ports: COM1/COM2 RS232;
Parallel port: 1 (SPP/EPP/ECP);
FDD:1;
Mouse-keyboard interface: 1 PS2;
8, environment temperature
Work: 0~60 ℃;
Storage :-20~70 ℃;
9, physical dimension
The 4U height, 122 * 388mm;
10, peripheral equipment
CD-ROM drive: 16 * DVD-ROM CD-ROM drive
Floppy drive: 3.5 inches 1.44M disk drive
Because of the industrial computer of this model is not with the DVI interface,, on its pci expansion slot, inserts a DVI video card 5 and corresponding driving software is installed for docking with primary controller.
Preferably, the DH-CG400 that image pick-up card 4 selects for use Beijing image vision technical point company of company limited of Daheng (group) to produce, its basic specification is described below:
1, standard P AL, NTSC colour/black and white video input;
2, input mode: software is selected and is switched: six road CVBS input, three road Y/C input, and six select analog video output;
3, image acquisition ultimate resolution: 768 * 576 * 24bit (PAL), 640 * 480 * 24bit (NTSC);
4, flexible images acquired: can be by multiple acquisition modes such as single game (very field or idol field), single frames, continuous field, successive frame, several at interval or several frames;
5, figure covers (OVERLAY) function: by filling in shielding (MASK) template, can show and store the input picture of arbitrary shape in real time;
6, hardware is finished proportional zoom (SCALE), the cutting (CLIP) of input picture; The size of input picture, position can be provided with flexibly;
7, support chroma space (Color Space Conversion): YUV4:2:2, RGB32, RGB24, RGB15, multiple image such as RGB16 and Y8Bit shows and storage format;
8, support the working method that computing machine content and images acquired show with screen;
9, can stably receive the vision signal of video camera, video recorder;
10, support software is adjusted brightness, colourity, saturated, the contrast of tone;
11, support user encryption word function: the protection user software is not subjected to pirate infringement;
12, supporting to insert in the same main frame polylith DH-CG400 image pick-up card works simultaneously;
Preferably, the RTP8000 that primary controller 7 selects for use Shanghai Grand Canyon Opto-Tech Corp. to produce, its basic specification is described below:
1, signal input is the DVI interface;
2,8 100M Ethernet datas send mouth, and total data transfer bandwidth reaches 800M;
3, signal output is made up of 2 RJ45, and each RJ45 comprises that 4 100M Ethernet datas send mouth;
4, adopt and to surpass five class netting twines and make transmission signal vector, signal transmission distance reaches 100 meters.
5, the frame resolution of output data is 1024 * 512, and frame rate is 60Hz;
6, physical dimension: 224 * 150 * 60mm;
7, working power: AC110V~220V/50Hz, 50W;
Preferably, the RTP-X8 that iversion controller 9 selects for use Shanghai Grand Canyon Opto-Tech Corp. to produce, its basic specification is described below:
1,4 100M Ethernet data receiving ports are arranged at 1 RJ45;
2,8 100M Ethernet datas are transmitted mouth, are arranged at 2 RJ45;
3, adopt and to surpass five class netting twines and make transmission signal vector, transmission range reaches 100 meters;
4,1 data receiving port is identical with the data content of 2 RJ45 data forwarding ports.One receives two RJ45, is convenient to connect into tree network;
5,16 control signal delivery outlets, interface type bus-type/chrysanthemum chain is optional;
6, the control signal interface band of bus-type is to the on-line automatic addressing function of LED pixel lamp;
7, Frame resolution 512 * 512, frame rate 60Hz, tool pixel data Gamma correction function;
8, address setting mode: jumper cap wire jumper;
9, physical dimension: 224 * 150 * 60mm;
10, working power: AC110V~220V/50Hz, 50W;
Preferably, the mini full-color pixel lamp IV of Picasso that LED pixel lamp 11 selects for use Shanghai Grand Canyon Opto-Tech Corp. to produce, its basic specification is described below:
1, built-in integrated circuit MBI6030 makes drive controlling;
2, LED type: SMD is three-in-one, 5252 encapsulation;
3, grey level: RGB is 65536 grades;
4, lighting angle: 〉=120 °;
5, brightness: greater than 9 lumens;
6, mission life: 〉=50000 hours;
7, working power: DC12V, 0.8W;
8, physical dimension: 18mm * 18mm * 18mm;
Preferably, the PowerShot A1100IS digital camera that video camera 2 selects for use CANON to produce utilizes its real-time camera function.The technical specification of this model digital camera is described below:
1, valid pixel: 1,210 ten thousand;
2, optical zoom multiple: 4 times;
3, sensor type: CCD;
4, size sensor: 1/2.3 inch;
5, ultimate resolution: 4000 * 3000;
6, lens type: dolly camera;
7, zoom mode: electronics;
8, focal length: 35~140cm;
9, focusing range: 50cm~infinity;
10, Exposure mode: Automatic Program exposure;
11, exposure compensating: positive and negative 2.0EV, 1/3EV;
12, Exposure Metering: estimate photometry, central emphasis photometry, some photometry;
13, ISO light sensitivity: automatic, ISO80/100/200/400/800/1600;
14, white balance mode: automatically/daylight/cloudy day/incandescent lamp/fluorescent light/fluorescent light H/ is self-defined;
15, shutter speed: 15~1/1600 seconds;
16, anti-trembling function: optics is anti-shake;
17, storage medium: SD card;
18, photo form: JPEG (Exif2.2);
19, input/output interface: USB2.0 high speed, A/V output;
20, size: 95.4 * 62.4 * 31.0mm;
21, weight: about 155 grams;
Below be installed in the font stroke of stereo luminous character with LED pixel lamp 11 to be example, to illustrate that the present invention adopts the shooting mode to obtain the position of each LED pixel lamp and the method for signal annexation thereof automatically that the concrete steps of this method are as follows:
Step 0, LED pixel lamp 11 is interconnected, form LED pixel lamp string, LED pixel lamp string is installed in the font stroke of stereo luminous character.
Step 1, main control computer 1, primary controller 7, iversion controller 9, image pick-up card 4, DVI video card 5, video camera 2 are correctly connected, LED pixel lamp string correctly is connected with iversion controller 9, power supply.
Step 2, on the display interfaces of main control computer 1, open up broadcast window A, utilize prior art, set up the mapping relations one by one of the pixel among LED pixel lamp and the window A.
Step 3, light all LED pixel lamps, make the LED pixel lamp presents remarkable difference with background color.
Step 4, on the display interfaces of main control computer 1, open up shooting window B, utilize prior art, the image frame that video camera is taken appears on the window B.
Step 5, with the alignment lens LED pixel lamp of video camera 2, suitably adjust the size of focal length and window B, the LED pixel lamp that determine the position is all appeared among the window B, and is full of whole image as much as possible.
Step 6, determine the quantity m of employed iversion controller 9, and to the iversion controller numbering, from 0 to m-1;
Step 7, determine the quantity n of iversion controller 9 control signal ports, and to the control signal port numbering, from 0 to n-1;
Step 8, determine the maximum quantity p of pixel lamp 11 on the LED pixel lamp string that the control signal mouth connects, and to the Position Number of LED pixel lamp in the lamp string, from 0 to p-1;
Step 9, LED pixel lamp position paper that is similar to the data-base recording table of generation, this document comprises m * n * p record, the corresponding pixel lamp of each record, each records 6 fields, is respectively: pixel lamp sequence number, iversion controller number, control signal port numbers, the location number in the lamp string, installation site horizontal ordinate X, installation site ordinate Y.At this, the X of installation site coordinate, Y value all are made as 0;
Adopt prior art, the iversion controller that is connected according to each LED pixel lamp, iversion controller control signal mouth, these annexations of position in the lamp string, deducibility goes out its pixel corresponding in window A, and the installation site of each LED pixel lamp in fact has been reflected among the window B, like this, the color of pixel is set in window A successively, lights corresponding LED pixel lamp, just can and calculate the position of this pixel lamp in window B, specifically finish by following steps with software identification.
Step 10, a sequence number variable k is set, k puts 0 with the sequence number variable.
Step 11, window A are set to black, and at this moment all LED pixel lamps 11 extinguish.
Step 12, fetch squence number are the location number in the iversion controller number, control end slogan, lamp string in the record of pixel lamp of k, infer the corresponding pixel points of this pixel lamp in window A.
Step 13, this pixel that window A is set are certain color, light this pixel lamp.For ease of software identification, this color should be obviously to be different from background;
Step 14, generally a bright spot can occur among the window B.Discern this bright spot with software, and calculate the coordinate figure (upper left corner with window B is true origin, and coordinate figure is the logical coordinates value of representing with pixel) at this bright spot center, this coordinate figure is inserted the X coordinate and the Y coordinate fields of this record.
In this step, may appear at the situation that does not occur bright spot among the window B, this illustrates on certain position of the LED pixel lamp string on certain signal port of certain iversion controller does not have the LED pixel lamp, at this moment the coordinate fields of this record can be made as particular value, such as (0,0).
Step 15, k is added 1;
Step 16, judge whether to travel through all pixel lamps, be then to enter step 17, otherwise get back to step 11;
Step 17, preservation pixel lamp position paper finish.
So far, obtained to describe the file that is installed in a LED pixel lamp position above the stereo luminous character, for the situation that a plurality of stereo luminous characters are arranged, a way is, with a plurality of luminescent characters side by side, after the LED pixel lamp all is in place, adopt said method once to obtain the position of all LED pixel lamps.The bigger situation of distance of and word and word installation site more for number of words, can obtain the position paper of each word LED pixel lamp earlier with said method, press the relative position of each word actual installation then, to the LED pixel lamp coordinate figure in the position paper of each word with an offset coordinates value revise (such as, each horizontal ordinate is fixed+X0, each ordinate is fixed+Y0, and (X0 Y0) then is called offset coordinates.The offset coordinates value of each word is normally different), be combined into a unified file of describing all LED pixel lamp positions and annexation.