Summary of the invention
The present invention provides a kind of measuring method and device of automobile front face area, is used for solving the problem that Test Method of Measuring Automotive Frontal Area bothers, measuring accuracy is not high that prior art exists.
For realizing above-mentioned purpose, according to an aspect of the present invention, a kind of measuring method of automobile front face area is provided, and adopts following technical scheme:
The measuring method of automobile front face area; Comprise: second image of model that obtains first image and the standard area of automobile windward side; Wherein said first image and said second image are taken simultaneously, and the maximum cross-section of said automobile and the model of said standard area are arranged on the shooting of carrying out said first image and said second image on the same level; Read the pixel number of said first image and the pixel number of said second image respectively; Calculate the front face area of said automobile according to the area of the pixel number of the pixel number of said first image, said second image and said model.
Further, before the said pixel number that reads said first image and said second image respectively, the measuring method of said automobile front face area also comprises: obtain the pixel of said first image and the pixel of said second image.
Further; Saidly obtain the pixel of said first image and the pixel of said second image comprises: respectively said first image and said second image are carried out context marker, said context marker is used for confirming the pixel scope of said first image and said second image; Read the pixel of said first image in the context marker and the pixel of said second image in the context marker.
Further, the area of the pixel number of said pixel number according to said first image, said second image and said model calculating automobile front face area comprises: calculate said automobile front face area through following formula:
Wherein, A representes the automobile front face area, and unit is square metre; N
1The pixel of the model of expression standard area; N
2The pixel of expression automobile image; S representes the area of the model of standard area, and unit is square metre.
According to another aspect of the present invention, the measurement mechanism of automobile front face area is provided, and adopts following technical scheme:
The measurement mechanism of automobile front face area comprises: first acquisition module; Be used to obtain second image of model of first image and the standard area of automobile windward side; Wherein said first image and said second image are taken simultaneously, and the maximum cross-section of said automobile and the model of said standard area are arranged on the shooting of carrying out said first image and said second image on the same level; First read module is used for reading respectively the pixel number of said first image and said second image; Computing module is used for the pixel number of the pixel number according to said first image, said second image and the area of said model and calculates the automobile front face area.
Further, the measurement mechanism of automobile front face area also comprises: second acquisition module is used to obtain the pixel of said first image and the pixel of said second image.
Further, said second acquisition module comprises: mark module, be used for respectively said first image and said second image being carried out context marker, and said context marker is used for confirming the pixel scope of said first image and said second image; Read module is used to read the pixel of said first image in the context marker and the pixel of said second image in the context marker.
Image through Computer Processing testing automobile and standard jig of the present invention; Obtain the pixel number of testing automobile image and the pixel number of standard jig image,, calculate the front face area of testing automobile again according to the area of standard jig; Technique scheme; Simply, easy operating, and also the front face area data that calculate are accurate.
Except top described purpose, feature and advantage, the present invention also has other purpose, feature and advantage.To do further detailed explanation to the present invention with reference to figure below.
Embodiment
Below in conjunction with accompanying drawing embodiments of the invention are elaborated, but the multitude of different ways that the present invention can be defined by the claims and cover is implemented.
Fig. 1 representes the main process flow diagram of the measuring method of the said automobile front face area of the embodiment of the invention.
Referring to shown in Figure 1, the measuring method of automobile front face area comprises:
S101: second image of model that obtains first image and the standard area of automobile windward side; Wherein said first image and said second image are taken simultaneously, and the maximum cross-section of said automobile and the model of said standard area are arranged on the shooting of carrying out said first image and said second image on the same level;
S103: read the pixel number of said first image and the pixel number of said second image respectively;
S105: the front face area that calculates said automobile according to the area of the pixel number of the pixel number of said first image, said second image and said model.
In the technique scheme of present embodiment, basic testing equipment comprises the on-gauge plate of suitable test site, digital camera and a known area.Basic equipment is described below:
Test site can be the place of a big testing laboratory or level, so that testing automobile can be taken (as 100 meters) from suitable distance.Should level and can guarantee that vehicle can adjust and align in the place that testing automobile is parked.Preferably measure, can reduce the anamorphose between vehicle and camera that causes because of the air thermal gradient to greatest extent like this indoor.As can not carry out indoor, suggestion in the morning or the less weather of thermal gradient such as cloudy day carry out.
Digital camera must be able to be guaranteed the enough clear photographs of long distance shooting, preferably through a tripod, avoids digital camera when taking, to shake.
Digital camera places the dead ahead of automobile and model, and it is vertical that shooting angle using vehicle and model are formed the plane, can not tilt, and is entirely orthogonal projection with the automobile that guarantees to be gathered and the image of model.
The on-gauge plate of known area can adopt the model of the standard area of 1m*1m.
When measuring; Dock to testing automobile on the level road straightly; Place by the testing automobile the on-gauge plate of known area is concordant; And guarantee with the maximum cross-section of testing automobile at grade, with digital camera testing automobile and on-gauge plate are taken simultaneously, make testing automobile and on-gauge plate obtain rational image.Much more as far as possible to clap a few picture group pictures, so that therefrom select and data processing at every turn.
The photo of testing automobile and on-gauge plate measurement is handled and is analyzed, carry out according to the following steps:
Utilize image processing software, for example Photoshop etc. extracts testing automobile and standard area model in the digital photograph under taking respectively out, and picture is carried out context marker.The journey computer program testing automobile that takes out become readable bitmap file with the on-gauge plate image transitions, so that can read in.Utilize the pixel N of computer program basis of calculation plate image
1, utilize program to calculate the pixel N of testing automobile image
2, then according to N
1, N
2And the area S of model calculates the front face area of testing automobile.
Through the technique scheme of present embodiment, with automobile front face area pixelation, and compare with the pixel value of the model of a standard area, can obtain the automobile front face area accurately.
Fig. 2 representes the particular flow sheet of the measuring method of the said automobile front face area of the embodiment of the invention.
Referring to shown in Figure 2, the measuring method of automobile front face area comprises:
Step 201: pre-service vehicle figure and standard area plate figure;
According to the image of said method collecting test automobile and the image of standard area model, and, be carried out at processing through Computer Image Processing software, such as Photoshop with this image input computing machine.
Step 202: isolate automobile image and standard area template image;
In image processing software, the independent separation and Extraction of image of testing automobile image and standard area model is come out.
Step 203: the template image to the standard area carries out context marker;
Step 204: the testing automobile image is carried out context marker;
Above-mentioned two steps are meant, will carry out mark with the testing automobile image of background separation and the image of standard area model, make the interior scope of mark all belong to the image of testing automobile image and standard area model.
Step 205: the pixel number N that calculates the testing automobile image
2
Through the pixel number in the image processing software read test automobile image context marker.
Step 206: the pixel N of the image of basis of calculation area model
1
Read the pixel number in the context marker of image of standard area model through image processing software.
Step 207: the front face area that calculates testing automobile;
According to the front face area of formula calculating testing automobile, this computing formula is:
Wherein, A representes the automobile front face area, and unit is square metre; N
1The pixel of the model of expression standard area; N
2The pixel of expression testing automobile image; S representes the area of the model of standard area, and unit is square metre.
Fig. 3 representes the primary structure synoptic diagram of the measurement mechanism of the said automobile front face area of the embodiment of the invention.
Referring to shown in Figure 3; The measurement mechanism of automobile front face area comprises: first acquisition module 30; Be used to obtain second image of model of first image and the standard area of testing automobile windward side; Wherein said first image and said second image are taken simultaneously, and the maximum cross-section of said testing automobile and the model of said standard area are arranged on the shooting of carrying out said first image and said second image on the same level; First read module 32 is used for reading respectively the pixel number of said first image and said second image; Computing module 34 is used for the pixel number of the pixel number according to said first image, said second image and the area of said model and calculates the automobile front face area.
Alternatively, the measurement mechanism of automobile front face area also comprises the second acquisition module (not shown), is used to obtain the pixel number of said first image and the pixel number of said second image.
Further; Said second acquisition module comprises the mark module (not shown); Be used for respectively said first image and said second image being carried out context marker through image processing software, said context marker is used for confirming the pixel scope of said first image and said second image; The read module (not shown) is used to read the pixel of said first image in the context marker and the pixel of said second image in the context marker.
Technical scheme through the above embodiment of the present invention it will be appreciated by those skilled in the art that, the present invention has solved the difficult problem that the automobile front face area calculates through simple pixel method; Through the image of Computer Processing testing automobile and standard jig, obtain the pixel number of testing automobile image and the pixel number of standard jig image, again according to the area of standard jig; Calculate the front face area of automobile, technique scheme is simple; Easy operating, and the front face area data that calculate are accurate.