Disclosure of Invention
The invention has at least the following three important points:
(1) taking an image area where an object with the shallowest depth of field in an imaging image of a region to be scanned as a target area, extracting the number of pixel points occupied by each pixel row in the vertical direction of the target area, and taking the maximum value of the number of the pixel points occupied by each pixel row as a reference number so as to conveniently execute subsequent height analysis operation of the object;
(2) calculating the height of the object to be scanned based on the reference number, the depth of field of the object corresponding to the target area and the imaging focal length of the imaging equipment;
(3) when the real-time height of the object to be scanned is larger than the preset percentage of the default height of the object scanner, the height of the object scanner is adjusted to enable the real-time height to be smaller than or equal to the preset percentage of the current height of the object scanner, and therefore follow-up scanning operation on a higher object is conveniently executed.
According to an aspect of the present invention, there is provided an object scanner height extending system, the system including:
the real-time expanding mechanism is respectively connected with the height analyzing equipment and the object scanner and is used for adjusting the height of the object scanner based on the received real-time height so that the real-time height is less than or equal to the preset percentage of the current height of the object scanner when the received real-time height is greater than the preset percentage of the default height of the object scanner;
the wireless snapshot device is embedded in the shell of the object scanner and used for executing instant snapshot processing triggered based on a wireless instruction on a to-be-scanned area in front of the object scanner so as to obtain and output a corresponding area snapshot image;
the real-time expanding mechanism is also used for recovering the current height of the object scanner as the default height of the object scanner when the received real-time height is less than or equal to the preset percentage of the default height of the object scanner;
the target identification device is connected with the wireless snapshot device and used for identifying each object in the regional snapshot image and outputting the image region where the object with the shortest depth of field is located as a target region;
the quantity extraction equipment is connected with the target identification equipment and used for extracting the quantity of the pixel points occupied by each pixel row in the vertical direction of the target area and outputting the maximum value of the quantity of the pixel points occupied by each pixel row as a reference quantity;
the height analyzing equipment is respectively connected with the target identification equipment and the quantity extraction equipment and is used for calculating the height of the object with the shallowest depth of field based on the reference quantity, the depth of field of the object corresponding to the target area and the imaging focal length of the wireless snapshot equipment so as to output the height as real-time height;
wherein calculating the height of the object with the shallowest depth of field based on the reference number, the depth of field of the object corresponding to the target area, and the imaging focal length of the wireless capture device comprises: the larger the value of the reference quantity is, the higher the calculated height of the object with the shallowest depth of field is;
wherein calculating the height of the object with the shallowest depth of field based on the reference number, the depth of field of the object corresponding to the target area, and the imaging focal length of the wireless capture device comprises: the smaller the depth of field value of the object corresponding to the target area is, the lower the calculated height of the object with the shallowest depth of field is.
The object scanner height expansion system is stable in operation and has a certain automatic level. The current height of the object scanner can be adjusted in real time according to the actual height of the current object to be scanned, so that the smoothness of the scanning work of the object scanner is guaranteed.
Detailed Description
An embodiment of the height extension system of the object scanner of the present invention will be described in detail below.
So-called security, safety: namely safety, and is the purpose of the security industry. Protection: the method is protection and is a means of the security industry. The intelligent security system is a complete security system formed by tightly combining human security, physical security and technical security with modern science and technology as the guarantee.
Common classifications of security devices can be classified as: video monitoring, anti-theft alarm, intelligent analysis, access control and the like, thereby effectively guaranteeing the daily life of people such as work, study, entertainment, traffic and the like.
For example, the task of a video surveillance system is primarily to capture images. With the popularization of technologies such as high-definition network cameras and cloud data, the monitoring system is endowed with three missions: monitoring, screening and analyzing. With the continuous upgrade of the quality and contrast of the monitored images, the video monitoring equipment of today only collects the images as a first step and is the simplest step. If the prior monitoring camera is only a pair of eyes, in the intelligent security system, the intelligent monitoring camera is a 24-hour silent guard.
In the prior art, an object scanner serving as important security equipment is widely applied, and can identify the danger degree of various objects so as to avoid artificial accidents in various crowd gathering places. However, in practical use of the object scanner, the object scanning process is not smooth enough due to the fact that some objects to be scanned are too high, and manual intervention or even manual execution of the object scanning operation is required.
In order to overcome the defects, the invention builds a height expansion system of the object scanner, and can effectively solve the corresponding technical problem.
The object scanner height expansion system according to the embodiment of the invention comprises:
the real-time expanding mechanism is respectively connected with the height analyzing equipment and the object scanner and is used for adjusting the height of the object scanner based on the received real-time height so that the real-time height is less than or equal to the preset percentage of the current height of the object scanner when the received real-time height is greater than the preset percentage of the default height of the object scanner;
the wireless snapshot device is embedded in the shell of the object scanner and used for executing instant snapshot processing triggered based on a wireless instruction on a to-be-scanned area in front of the object scanner so as to obtain and output a corresponding area snapshot image;
the real-time expanding mechanism is also used for recovering the current height of the object scanner as the default height of the object scanner when the received real-time height is less than or equal to the preset percentage of the default height of the object scanner;
the target identification device is connected with the wireless snapshot device and used for identifying each object in the regional snapshot image and outputting the image region where the object with the shortest depth of field is located as a target region;
the quantity extraction equipment is connected with the target identification equipment and used for extracting the quantity of the pixel points occupied by each pixel row in the vertical direction of the target area and outputting the maximum value of the quantity of the pixel points occupied by each pixel row as a reference quantity;
the height analyzing equipment is respectively connected with the target identification equipment and the quantity extraction equipment and is used for calculating the height of the object with the shallowest depth of field based on the reference quantity, the depth of field of the object corresponding to the target area and the imaging focal length of the wireless snapshot equipment so as to output the height as real-time height;
wherein calculating the height of the object with the shallowest depth of field based on the reference number, the depth of field of the object corresponding to the target area, and the imaging focal length of the wireless capture device comprises: the larger the value of the reference quantity is, the higher the calculated height of the object with the shallowest depth of field is;
wherein calculating the height of the object with the shallowest depth of field based on the reference number, the depth of field of the object corresponding to the target area, and the imaging focal length of the wireless capture device comprises: the smaller the depth of field value of the object corresponding to the target area is, the lower the calculated height of the object with the shallowest depth of field is.
Next, a detailed structure of the object scanner height expansion system of the present invention will be further described.
In the object scanner height expansion system, further comprising:
and the processing execution equipment is connected with the wireless snapshot equipment and is used for receiving the regional snapshot image and executing homomorphic filtering processing on the regional snapshot image so as to obtain a corresponding homomorphic filtering image, wherein the higher the noise amplitude of the regional snapshot image is, the higher the intensity of the executed homomorphic filtering processing is.
In the object scanner height expansion system, further comprising:
and the customized equalization equipment is connected with the processing execution equipment and is used for receiving the homomorphic filtering image and executing histogram equalization processing on the homomorphic filtering image so as to obtain a corresponding histogram equalization image.
In the object scanner height expansion system, further comprising:
and the first threshold extraction device is connected with the customized equalization device and is used for receiving the histogram equalization image and determining the integral segmentation threshold corresponding to the histogram equalization image based on the distribution condition of the pixel values of all the pixel points in the histogram equalization image.
In the object scanner height expansion system, further comprising:
and the first parameter analysis equipment is used for receiving the histogram equalization image and carrying out contrast analysis on the histogram equalization image so as to obtain and output corresponding contrast.
In the object scanner height expansion system, further comprising:
and the first segmentation processing device is connected with the first parameter analysis device and used for receiving the contrast and carrying out image segmentation processing on the histogram equalization image based on the contrast to obtain a plurality of sub-images, wherein the higher the contrast is, the more the number of the obtained sub-images is.
In the object scanner height expansion system, further comprising:
and the second threshold extraction device is connected with the first segmentation processing device and used for receiving the plurality of sub-images, determining the region segmentation thresholds corresponding to the sub-images based on the distribution condition of the pixel values of all the pixel points in each sub-image, and outputting all the region segmentation thresholds corresponding to all the sub-images.
In the object scanner height expansion system, further comprising:
the first numerical value adjusting device is respectively connected with the second threshold value extracting device and the first threshold value extracting device, and is used for receiving the overall segmentation threshold value and each region segmentation threshold value, and performing numerical value adjustment on each region segmentation threshold value based on the overall segmentation threshold value to obtain an adjusted region segmentation threshold value to be used as a region adjustment threshold value to be output; in the first numerical adjustment device, numerically adjusting each region segmentation threshold based on the overall segmentation threshold includes: performing numerical adjustment on the region segmentation threshold value based on the difference value from the whole segmentation threshold value to each region segmentation threshold value; in the first numerical adjustment device, numerically adjusting the region division threshold based on the magnitude of the difference from the overall division threshold to each region division threshold includes: the adjusted region segmentation threshold is the sum of the region segmentation threshold and one fourth of the difference.
In the object scanner height expansion system, further comprising:
and the second segmentation processing device is respectively connected with the target identification device and the first numerical value adjusting device and is used for segmenting each sub-image by adopting a corresponding region adjusting threshold value to obtain a corresponding target sub-image, combining all the target sub-images to obtain a combined image, and replacing the region snapshot image with the combined image to send the combined image to the target identification device.
In addition, a DDR memory chip is arranged in the height analysis equipment and used for storing various working parameters of the height analysis equipment.
Strictly speaking, DDR is called DDR SDRAM, which is commonly called DDR, and some beginners also commonly see DDR SDRAM, which is regarded as SDRAM. DDR SDRAM, an acronym for Double Data Rate SDRAM, means Double-Data synchronous dynamic random access memory. DDR memory is developed on the basis of SDRAM memory, and SDRAM production system is still used, so for memory manufacturers, DDR memory production can be realized only by slightly improving equipment for manufacturing common SDRAM, and cost can be effectively reduced.
The SDRAM only transmits data once in a clock period, and the data transmission is carried out in the rising period of the clock; the DDR memory transfers data twice in one clock cycle, and can transfer data once in the rising period and the falling period of the clock, so the DDR memory is called a double-rate synchronous dynamic random access memory. DDR memory can achieve higher data transfer rates at the same bus frequency as SDRAM.
Compared with SDRAM: DDR uses a more advanced synchronous circuit, so that the main steps of transmission and output of the designated address and data are independently executed and are kept completely synchronous with the CPU; DDR uses DLL (Delay Locked Loop) technology, and when data is valid, the memory controller can use this data filter signal to pinpoint the data, output it every 16 times, and resynchronize the data from different memory modules. DDR essentially doubles the speed of SDRAM without increasing the clock frequency, allowing data to be read on both the rising and falling edges of the clock pulse, thus doubling its speed as standard SDRA.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.