The content of the invention
In order to solve the above problems, the invention provides a kind of gun type camera method of switching, introduces 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
Position of the individual tall and big passenger in compartment determines the quantity of tall and big passenger near each gun type camera, when quantity is more than or equal to
During predetermined number threshold value, gun type camera corresponding to unlatching, when quantity is less than predetermined number threshold value, gun-type corresponding to closing is taken the photograph
Camera.
According to an aspect of the present invention, there is provided a kind of gun type camera method of switching, this method include:A kind of rifle is provided
Formula video camera self-adaptive switch system and switched using the system, the system includes:
Sharpening level input equipment, for receiving the sharpening level of input, determined and exported pre- according to the sharpening level
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 on car
Compartment top portion, image data acquiring is carried out to obtain multiple collection in worksite images to the inside scene in affiliated compartment, each scene
Image is gathered from the imaging to the transmitted light from the magazine lens of poly-lens;Wherein, the poly-lens camera bag
Include multiple lens and imaging sensor;
Information analyzing equipment, car body top is arranged on, is connected with the poly-lens camera, for receiving the multiple scene
Image is gathered, information analysis is carried out to each collection in worksite image to determine the centre of form of each collection in worksite image, it is also right
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
Put in car body top, be connected with described information analytical equipment, for receiving the depth of field of each collection in worksite image, and to each existing
The depth of field of field collection image averages processing to obtain the average depth of field;Image output device, car body top is arranged on, respectively
It is connected with described information analytical equipment and the depth of field measuring apparatus, for performing following locate to each collection in worksite image
Reason:Centered on the centre of form of each collection in worksite image, rectangle subgraph is obtained as radius using the average depth of field;The figure
As output equipment according further to putting in order for multiple lens is spelled the rectangle subgraph of corresponding multiple collection in worksite images
Connect to obtain and export panoramic scene image;
Saltus step degree judges equipment, is connected with image output device, for receiving panoramic scene image, for panoramic scene
The pixel value of each pixel in image, its pixel value is subtracted to the difference obtained after the pixel value of the descending pixel of its same column and done
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, it is being obtained after the first square value is added with the second square value and carry out evolution 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 pixel, the first saltus step degree of each pixel of last row of panoramic scene image are directly taken
First saltus step degree of colleague's pixel of one row;The pixel value for each pixel in panoramic scene image is additionally operable to, will
Its pixel value is taken absolute value to obtain the first absolute value after subtracting the pixel value of the descending pixel of its same column, and its pixel value is subtracted into it
Taken 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 the second saltus step degree of conduct;
Edge contrast equipment, judge that equipment is connected with the sharpening level input equipment and the saltus step degree respectively, use
The pixel value of each pixel in for 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 after handle, it is each less than the default saltus step degree threshold value to final saltus step degree
Pixel, directly using its pixel value as the pixel value after processing, the pixel after the processing of all pixels in panoramic scene image
Value forms scene process image corresponding to panoramic scene image;Passenger's identification apparatus, it is connected with Edge contrast equipment, for field
Scape processing image carries out the type identification of each target to determine that height value exceedes the tall and big passenger of preset height threshold value, output field
Tall and big passengers quantity in scape processing 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, it is uniformly arranged on the diverse 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 closed mode;Self-adaptive switch
Equipment, the number of tall and big passenger near each gun type camera is determined for the position based on each tall and big passenger in compartment
Amount, when quantity is more than or equal to predetermined number threshold value, gun type camera corresponding to unlatching;
Wherein, the second saltus step degree of each pixel of last column of panoramic scene image directly takes lastrow
Second saltus step degree of same column pixel, the second saltus step degree of each pixel of last row of panoramic scene image directly take
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 saltus step degree the most final.
More specifically, in the gun type camera self-adaptive switch system:The self-adaptive switch equipment is additionally operable to base
The quantity of tall and big passenger near each gun type camera is determined in position of each tall and big passenger in compartment, when quantity is less than
During predetermined number threshold value, gun type camera corresponding to closing.
More specifically, in the gun type camera self-adaptive switch system:The poly-lens camera also 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 used to detect simultaneously
Export the surrounding environment brightness of the poly-lens camera.
More specifically, in the gun type camera self-adaptive switch system:It is described flash of light control device respectively with it is described
Flash lamp connects with the brightness detection device, for receiving the surrounding environment brightness, and is based on the surrounding environment brightness
It is determined that it 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
Enclose ambient brightness and determine that being turned on and off the flash lamp also includes:When the surrounding environment brightness is more than or equal to predetermined luminance threshold
During 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
Enclose ambient brightness and determine that being turned on and off the flash lamp also includes:When the surrounding environment 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
During light lamp, the flash of light control device determines the flash intensity that the flash lamp sends always according to the surrounding environment brightness;Its
In, the surrounding environment brightness is smaller, and the flash intensity that the flash lamp is sent is higher.
Embodiment
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 the advantages that handling capacity of passengers is high, take less, security is good, percent of punctuality is high, comfort and convenient and energy consumption are relatively low.
Can also be to serving 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;Save the energy and reduce environmental pollution.Edge can be driven simultaneously
Line economy, along the line city shine new vigor high ferro very important facilitation served to industrialization and the development of urbanization,
Promote key city along high ferro " to be laid out " again with satellite selection, i.e., radiate 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 are identified and managed, therefore, is typically employed in the side that camera is set in compartment in the prior art
Formula carries out personnel control, however, so bringing a problem, 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, some dead angles be present, if at this moment increasing the quantity of camera and being always maintained at
Open mode, the waste in power consumption when personnel are few in compartment can be caused again.In order to overcome above-mentioned deficiency, the present invention is built
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 of gun type camera self-adaptive switch system according to embodiment of the present invention, institute
The system of stating includes:
Sharpening level input equipment, for receiving the sharpening level of input, determined and exported pre- according to the sharpening level
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 on car body top, and image data acquiring is carried out to obtain to the inside scene in affiliated compartment
Multiple collection in worksite images, each collection in worksite image are derived to the transmitted light from the magazine lens of poly-lens
Imaging;Wherein, the poly-lens camera includes multiple lens and imaging sensor;
Information analyzing equipment, car body top is arranged on, is connected with the poly-lens camera, for receiving the multiple scene
Image is gathered, information analysis is carried out to each collection in worksite image to determine the centre of form of each collection in worksite image, it is also right
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 on car body top, is connected with described information analytical equipment, is 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 on car body top, respectively with described information analytical equipment and the depth of field measuring apparatus
Connection, for performing following handle 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 radius 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 connected with image output device, for receiving panoramic scene image, for panoramic scene
The pixel value of each pixel in image, its pixel value is subtracted to the difference obtained after the pixel value of the descending pixel of its same column and done
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, it is being obtained after the first square value is added with the second square value and carry out evolution 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 pixel, the first saltus step degree of each pixel of last row of panoramic scene image are directly taken
First saltus step degree of colleague's pixel of one row;The pixel value for each pixel in panoramic scene image is additionally operable to, will
Its pixel value is taken absolute value to obtain the first absolute value after subtracting the pixel value of the descending pixel of its same column, and its pixel value is subtracted into it
Taken 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 the second saltus step degree of conduct;
Edge contrast equipment, judge that equipment is connected with the sharpening level input equipment and the saltus step degree respectively, use
The pixel value of each pixel in for 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 after handle, it is each less than the default saltus step degree threshold value to final saltus step degree
Pixel, directly using its pixel value as the pixel value after processing, the pixel after the processing of all pixels in panoramic scene image
Value forms scene process image corresponding to panoramic scene image;
Passenger's identification apparatus, it is connected with Edge contrast equipment, for carrying out the type of each target to scene process image
Identify to determine that height value exceedes the tall and big passenger of preset height threshold value, export the tall and big passengers quantity in scene process image,
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, it is uniformly arranged on the diverse 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 closed mode;
Self-adaptive switch equipment, each gun type camera is determined for the position based on each tall and big passenger in compartment
The quantity of neighbouring tall and big passenger, when quantity is more than or equal to predetermined number threshold value, gun type camera corresponding to unlatching;
Wherein, the second saltus step degree of each pixel of last column of panoramic scene image directly takes lastrow
Second saltus step degree of same column pixel, the second saltus step degree of each pixel of last row of panoramic scene image directly take
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 saltus step degree the most final.
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 position that the self-adaptive switch equipment is additionally operable to based on each tall and big passenger in compartment is true
The quantity of tall and big passenger near each fixed gun type camera, when quantity is less than predetermined number threshold value, gun-type corresponding to closing
Video camera.
As shown in Fig. 2 in the system:The poly-lens camera also includes flash lamp, brightness detection device and sudden strain of a muscle
Light control device.
In the system:The surrounding environment 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 connected with the flash lamp and the brightness detection device respectively,
The flash lamp is turned on and off for receiving the surrounding environment brightness, and based on surrounding environment brightness determination.
In the system:The flash of light control device is based on the surrounding environment brightness and determines to be turned on and off the sudden strain of a muscle
Light lamp also includes:When the surrounding environment 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 based on the surrounding environment brightness and determines to be turned on and off the sudden strain of a muscle
Light lamp also includes:When the surrounding environment brightness is less than predetermined luminance threshold value, the flash of light control device opens the flash of light
Lamp.
In the system:It is described flash of light control device open the flash lamp when, it is described flash of light control device always according to
The surrounding environment brightness determines the flash intensity that the flash lamp is sent;
Wherein, the surrounding environment brightness is smaller, and the flash intensity that the flash lamp is sent is higher.
In addition, self-adaptive switch equipment can be realized using DSP process chips.The inside of dsp chip uses program sum
According to separated Harvard structure, there is special hardware multiplier, widely used pile line operation, there is provided special DSP instructions, can
With for quickly realizing various digital signal processing algorithms.
According to the requirement of Digital Signal Processing, dsp chip typically has some following main features:(1) in a finger
A multiplication and a sub-addition can be completed by making in the cycle.(2) program and data space is separated, can simultaneously access instruction sum
According to.(3) there is quick RAM in piece, can be generally accessed simultaneously 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 performed parallel.(8) pile line operation is supported, makes fetching, translate
The operation such as code and execution can be with Overlapped Execution.
The data format that is worked according to dsp chip is classified.The dsp chip that data are worked with fixed point format is referred to as pinpointing
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 of Motolora companies etc..What is worked in a floating-point format is referred to as
Float-point DSP, such as the TMS320C3X/C4X/C8X of TI companies, the ADSP21XXX of AD companies is serial, AT & T Corp.
MC96002 of DSP32/32C, Motolora company etc..
Using the gun type camera self-adaptive switch system of the present invention, for the gun type camera in compartment in the prior art
The technical problem 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, so as to solve above-mentioned technical problem.
It is understood that although the present invention is disclosed as above with preferred embodiment, but above-described embodiment and it is not used to
Limit the present invention.For any those skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications are all 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 change.Therefore, every content without departing from technical solution of the present invention, the technical spirit pair according to the present invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.