Background technology
High ferro has the characteristics that following.
1, high-speed railway smoothes out very much, to ensure that traffic safety and comfort, high-speed railway are all gapless rail, Er Qieshi
The high-speed railway of speed 300 kilometers or more is exactly the monoblock type railway roadbed of not stone to ensure ride comfort using non-fragment orbit.
2, the bend of high-speed railway is few, and turning radius is big, and track switch is all movable head high-speed switch.
3, elevated bridge and tunnel are largely used.To ensure ride comfort and shorten distance.
4, the hang of the contact net of high-speed railway, the electric wire on top of train is also different from common railway, to protect
Demonstrate,prove the contact stabilization and durability of high-speed EMUs.
5, the whistle control system of high-speed railway is more advanced than common railway, because density of dispatching a car is big, speed is fast, safety one
It is fixed to want high.
The development of high-speed railway also brings the difficulty on personnel control, for this purpose, currently employed be based on image real time transfer
On-site supervision scheme the personnel in compartment are monitored, current this monitoring mode have two it is big it is insufficient need to overcome, the
One, when tall and big passenger is excessive there are blind area, second, the precision of realtime image data is insufficient, needs to be modified.
Invention content
To solve the above-mentioned problems, the present invention provides a kind of gun type camera method of switching, introduce sharpening level input
The equipment such as equipment, poly-lens camera, information analyzing equipment, depth of field measuring apparatus, image output device improve Customer information inspection
The design for the structure that the precision of survey, especially poly-lens are added, meanwhile, self-adaptive switch equipment is also introduced, for based on each
The quantity of a tall and big passenger tall and big passenger near location determination each gun type camera in compartment, when quantity is more than or equal to
When preset quantity threshold value, corresponding gun type camera is opened, when quantity is less than preset quantity threshold value, corresponding gun-type is closed and takes the photograph
Camera.
According to an aspect of the present invention, a kind of gun type camera method of switching is provided, this method includes:A kind of rifle is provided
It formula video camera self-adaptive switch system and is switched using the system, the system comprises:
Sharpening level input equipment, the sharpening level for receiving input, and output determining according to the sharpening level are pre-
If saltus step degree threshold value, the sharpening level is higher, and the default saltus step degree threshold value is smaller;Poly-lens camera is arranged in vehicle
Compartment top portion carries out image data acquiring to obtain multiple collection in worksite images to the inside scene in affiliated compartment, each is live
Image is acquired from the imaging to the transmitted light from the magazine lens of poly-lens;Wherein, the poly-lens camera bag
Include multiple lens and multiple images sensor;
Information analyzing equipment is arranged in car body top, is connect with the poly-lens camera, for receiving the multiple scene
Image is acquired, it is also right to the progress information analysis of each collection in worksite image to determine the centre of form of each collection in worksite image
Each collection in worksite image carries out information analysis to determine the depth of field of each collection in worksite image;Depth of field measuring apparatus, if
It sets in car body top, is connect with described information analytical equipment, the depth of field for receiving each collection in worksite image, and to each existing
The depth of field of field acquisition image averages processing to obtain the average depth of field;Image output device, setting is in car body top, respectively
It is connect with described information analytical equipment and the depth of field measuring apparatus, for executing following place to each collection in worksite image
Reason:Centered on the centre of form of each collection in worksite image, rectangle subgraph is obtained as the length of side using the average depth of field;The figure
As output equipment spells the rectangle subgraph of corresponding multiple collection in worksite images according further to putting in order for multiple lens
It connects to obtain and export panoramic scene image;
Saltus step degree judges equipment, is connect with image output device, for receiving panoramic scene image, for panoramic scene
Its pixel value is subtracted the difference obtained after the pixel value of its same column downlink pixel and done by the pixel value of each pixel in image
Square to obtain the first square value, its pixel value is subtracted the difference obtained after the pixel value of its following pixel of going together do square with
The second square value is obtained, obtained after the first square value is added with the second square value and progress evolution is to obtain the first saltus step journey
Degree, wherein the first saltus step degree of each pixel of last column of panoramic scene image directly takes the same column of lastrow
First saltus step degree of the first saltus step degree of pixel, each pixel of last row of panoramic scene image is directly taken
First saltus step degree of colleague's pixel of one row;It is additionally operable to the pixel value for each pixel in panoramic scene image, it will
Its pixel value takes absolute value after subtracting the pixel value of its same column downlink pixel to obtain the first absolute value, its pixel value is subtracted it
It takes absolute value after the pixel value for following pixel of going together to obtain the second absolute value, after the first absolute value is added with the second absolute value
Obtain and as the second saltus step degree;
Edge contrast equipment judges that equipment is connect with the sharpening level input equipment and the saltus step degree respectively, uses
In the pixel value for each pixel in panoramic scene image, by its final saltus step degree and the default saltus step degree threshold
Value is compared, and each pixel of the default saltus step degree threshold value is more than or equal to for final saltus step degree, to its pixel value
Processing is sharpened with the pixel value that obtains that treated, each of the default saltus step degree threshold value is less than to final saltus step degree
Pixel, directly using its pixel value as treated pixel value, all pixels in panoramic scene image treated pixel
Value forms the corresponding scene process image of panoramic scene image;Passenger's identification apparatus is connect with Edge contrast equipment, for field
Scape processing image carries out the type identification of each target to determine that height value is more than the tall and big passenger of preset height threshold value, output field
Scape handles the tall and big passengers quantity in image, and for each tall and big passenger in scene process image, based on it in scene
The depth of field determines its position in compartment in processing image;
Multiple gun type cameras are uniformly arranged on the different location at the top in the affiliated compartment of poly-lens camera, each rifle
Formula video camera is all shot towards compartment, and under default conditions, each gun type camera is in off state;Self-adaptive switch
Equipment, for the number based on each tall and big passenger tall and big passenger near location determination each gun type camera in compartment
Amount opens corresponding gun type camera when quantity is more than or equal to preset quantity threshold value;
Wherein, the second saltus step degree of each pixel of last column of panoramic scene image directly takes lastrow
Second saltus step degree of the second saltus step degree of same column pixel, each pixel of last row of panoramic scene image directly takes
With the second saltus step degree of colleague's pixel of previous column;And for the pixel for each pixel in panoramic scene image
Value, its first saltus step degree is compared with its second saltus step degree, take its first saltus step degree and its second saltus step degree it
Between maximum value as final saltus step degree.
More specifically, in the gun type camera self-adaptive switch system:The self-adaptive switch equipment is additionally operable to base
In the quantity of each tall and big passenger tall and big passenger near location determination each gun type camera in compartment, when quantity is less than
When preset quantity threshold value, corresponding gun type camera is closed.
More specifically, in the gun type camera self-adaptive switch system:The poly-lens camera further include flash lamp,
Brightness detection device and flash of light control device.
More specifically, in the gun type camera self-adaptive switch system:The brightness detection device is for detecting simultaneously
Export the ambient brightness of the poly-lens camera.
More specifically, in the gun type camera self-adaptive switch system:The flash of light control device respectively with it is described
Flash lamp is connected with the brightness detection device, for receiving the ambient brightness, and is based on the ambient brightness
Determination is turned on and off the flash lamp.
More specifically, in the gun type camera self-adaptive switch system:The flash of light control device is based on the week
It encloses ambient brightness and determines that being turned on and off the flash lamp further includes:When the ambient brightness is more than or equal to predetermined luminance threshold
When value, the flash of light control device closes the flash lamp.
More specifically, in the gun type camera self-adaptive switch system:The flash of light control device is based on the week
It encloses ambient brightness and determines that being turned on and off the flash lamp further includes:When the ambient brightness is less than predetermined luminance threshold value
When, the flash of light control device opens the flash lamp.
More specifically, in the gun type camera self-adaptive switch system:The flash of light control device opens the sudden strain of a muscle
When light lamp, the flash of light control device determines the flash intensity that the flash lamp is sent out also according to the ambient brightness;Its
In, the ambient brightness is smaller, and the flash intensity that the flash lamp is sent out is higher.
Specific implementation mode
The embodiment of the gun type camera self-adaptive switch system of the present invention is carried out specifically below with reference to accompanying drawings
It is bright.
High ferro has many advantages, such as that handling capacity of passengers is high, take less, safety is good, percent of punctuality is high, comfort and convenient and energy consumption are relatively low.
It can also be to playing propulsion and proportionality action to regional economic development along the line;Urban economy development and territory are opened along promoting
Hair;Number of the enterprise increase along the line makes national tax and land tax accordingly increase;It is energy saving and reduce environmental pollution.Edge can be driven simultaneously
Line economy, along the line city shine new vigor high ferro very important facilitation played to industrialization and the development of urbanization,
Promote key city along high ferro " to be laid out " again with satellite selection, i.e., radiates and drive Zhou Biancheng with high ferro key city
City's synchronized development.
Due to personnel's complicated component in high-iron carriage, mobility speed is fast, using manual type in high-iron carriage
It is difficult to realize that personnel, which identify and manage, therefore, is typically employed in the side that camera is arranged in compartment in the prior art
Formula carries out personnel monitoring, however, bringing a problem in this way, personnel's height is different in compartment, and institute's band object length and height are not
Together, cause to impact the visual angle of camera, there are some dead angles, if at this moment increasing the quantity of camera and being always maintained at
Opening state, and the waste in power consumption when personnel are few in compartment can be caused.In order to overcome above-mentioned deficiency, the present invention to build
A kind of gun type camera method of switching, this method include:A kind of gun type camera self-adaptive switch system is provided and uses institute
The system of stating is switched.
Fig. 1 is the block diagram according to the gun type camera self-adaptive switch system shown in embodiment of the present invention, institute
The system of stating includes:
Sharpening level input equipment, the sharpening level for receiving input, and output determining according to the sharpening level are pre-
If saltus step degree threshold value, the sharpening level is higher, and the default saltus step degree threshold value is smaller;
Poly-lens camera, setting carry out image data acquiring to obtain in car body top, to the inside scene in affiliated compartment
Multiple collection in worksite images, each collection in worksite image are originated to the transmitted light from the magazine lens of poly-lens
Imaging;Wherein, the poly-lens camera includes multiple lens and multiple images sensor;
Information analyzing equipment is arranged in car body top, is connect with the poly-lens camera, for receiving the multiple scene
Image is acquired, it is also right to the progress information analysis of each collection in worksite image to determine the centre of form of each collection in worksite image
Each collection in worksite image carries out information analysis to determine the depth of field of each collection in worksite image;
Depth of field measuring apparatus is arranged in car body top, connect with described information analytical equipment, adopted for receiving each scene
Collect the depth of field of image, and processing is averaged to obtain the average depth of field to the depth of field of each collection in worksite image;
Image output device, be arranged in car body top, respectively with described information analytical equipment and the depth of field measuring apparatus
Connection, for executing following processing to each collection in worksite image:Centered on the centre of form of each collection in worksite image, with
The average depth of field is that the length of side obtains rectangle subgraph;Described image output equipment will be right according further to putting in order for multiple lens
The rectangle subgraph for the multiple collection in worksite images answered is spliced to obtain and export panoramic scene image;
Saltus step degree judges equipment, is connect with image output device, for receiving panoramic scene image, for panoramic scene
Its pixel value is subtracted the difference obtained after the pixel value of its same column downlink pixel and done by the pixel value of each pixel in image
Square to obtain the first square value, its pixel value is subtracted the difference obtained after the pixel value of its following pixel of going together do square with
The second square value is obtained, obtained after the first square value is added with the second square value and progress evolution is to obtain the first saltus step journey
Degree, wherein the first saltus step degree of each pixel of last column of panoramic scene image directly takes the same column of lastrow
First saltus step degree of the first saltus step degree of pixel, each pixel of last row of panoramic scene image is directly taken
First saltus step degree of colleague's pixel of one row;It is additionally operable to the pixel value for each pixel in panoramic scene image, it will
Its pixel value takes absolute value after subtracting the pixel value of its same column downlink pixel to obtain the first absolute value, its pixel value is subtracted it
It takes absolute value after the pixel value for following pixel of going together to obtain the second absolute value, after the first absolute value is added with the second absolute value
Obtain and as the second saltus step degree;
Edge contrast equipment judges that equipment is connect with the sharpening level input equipment and the saltus step degree respectively, uses
In the pixel value for each pixel in panoramic scene image, by its final saltus step degree and the default saltus step degree threshold
Value is compared, and each pixel of the default saltus step degree threshold value is more than or equal to for final saltus step degree, to its pixel value
Processing is sharpened with the pixel value that obtains that treated, each of the default saltus step degree threshold value is less than to final saltus step degree
Pixel, directly using its pixel value as treated pixel value, all pixels in panoramic scene image treated pixel
Value forms the corresponding scene process image of panoramic scene image;
Passenger's identification apparatus is connect with Edge contrast equipment, the type for carrying out each target to scene process image
Identification exports the tall and big passengers quantity in scene process image to determine that height value is more than the tall and big passenger of preset height threshold value,
And for each tall and big passenger in scene process image, based on it, the depth of field determines it in compartment in scene process image
Position;
Multiple gun type cameras are uniformly arranged on the different location at the top in the affiliated compartment of poly-lens camera, each rifle
Formula video camera is all shot towards compartment, and under default conditions, each gun type camera is in off state;
Self-adaptive switch equipment, for location determination each gun type camera based on each tall and big passenger in compartment
The quantity of neighbouring tall and big passenger opens corresponding gun type camera when quantity is more than or equal to preset quantity threshold value;
Wherein, the second saltus step degree of each pixel of last column of panoramic scene image directly takes lastrow
Second saltus step degree of the second saltus step degree of same column pixel, each pixel of last row of panoramic scene image directly takes
With the second saltus step degree of colleague's pixel of previous column;And for the pixel for each pixel in panoramic scene image
Value, its first saltus step degree is compared with its second saltus step degree, take its first saltus step degree and its second saltus step degree it
Between maximum value as final saltus step degree.
Then, continue to carry out further the concrete structure of the gun type camera self-adaptive switch system of the present invention
It is bright.
In the system:The self-adaptive switch equipment is additionally operable to true based on position of each tall and big passenger in compartment
The quantity of tall and big passenger closes corresponding gun-type when quantity is less than preset quantity threshold value near each fixed gun type camera
Video camera.
As shown in Fig. 2, in the system:The poly-lens camera further includes flash lamp, brightness detection device and sudden strain of a muscle
Light control device.
In the system:The ambient enviroment that the brightness detection device is used to detect and export the poly-lens camera is bright
Degree.
In the system:The flash of light control device is connect with the flash lamp and the brightness detection device respectively,
It is turned on and off the flash lamp for receiving the ambient brightness, and based on ambient brightness determination.
In the system:The flash of light control device is turned on and off the sudden strain of a muscle based on ambient brightness determination
Light lamp further includes:When the ambient brightness is more than or equal to predetermined luminance threshold value, described in the flash of light control device closing
Flash lamp.
In the system:The flash of light control device is turned on and off the sudden strain of a muscle based on ambient brightness determination
Light lamp further includes:When the ambient brightness is less than predetermined luminance threshold value, the flash of light control device opens the flash of light
Lamp.
In the system:When the flash of light control device opens the flash lamp, the flash of light control device also according to
The ambient brightness determines the flash intensity that the flash lamp is sent out;
Wherein, the ambient brightness is smaller, and the flash intensity that the flash lamp is sent out is higher.
In addition, DSP processing chips can be used to realize self-adaptive switch equipment.The inside of dsp chip uses program sum number
According to separated Harvard structure, there is special hardware multiplier, widely used pile line operation to provide special DSP instructions, it can
To be used for quickly realizing various digital signal processing algorithms.
According to the requirement of Digital Signal Processing, dsp chip generally has some following main features:(1) refer at one
A multiplication and a sub-addition can be completed by enabling in the period.(2) program and data space is separated, can simultaneously access instruction sum number
According to.(3) there is quick RAM in piece, usually can simultaneously be accessed in two pieces by independent data/address bus.(4) there is low overhead
Or without overhead loop and the hardware supported redirected.(5) quickly interrupt processing and Hardware I/O are supported.(6) have within the monocycle
Multiple hardware address generators of operation.(7) multiple operations can be executed parallel.(8) it supports pile line operation, makes fetching, translates
The operations such as code and execution can be with Overlapped Execution.
Classified according to the data format of dsp chip work.Data are known as pinpointing with the dsp chip that fixed point format works
Dsp chip, TMS320C1X/C2X, TMS320C2XX/C5X, TMS320C54X/C62XX such as TI companies are serial, AD companies
ADSP21XX series, the DSP16/16A of AT & T Corp., the MC56000 etc. of Motolora companies.What is worked in a floating-point format is known as
Float-point DSP, the ADSP21XXX such as the TMS320C3X/C4X/C8X of TI companies, AD companies is serial, AT & T Corp.
The MC96002 etc. of DSP32/32C, Motolora company.
Gun type camera self-adaptive switch system using the present invention, for the gun type camera in compartment in the prior art
The technical issues of difficult management, by using multiple image acquisition mechanisms and image processor specifically for vehicle environment design
Structure is accurately to obtain Customer information in compartment, on this basis, establishes the gun type camera based on Customer information and adaptively opens
Shutdown system, to solve above-mentioned technical problem.
It is understood that although the present invention has been disclosed in the preferred embodiments as above, above-described embodiment not to
Limit the present invention.For any person skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications all are made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of variation.Therefore, every content without departing from technical solution of the present invention is right according to the technical essence of the invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments still fall within the range of technical solution of the present invention protection
It is interior.