The utility model content
The technical matters that the utility model will solve is to provide a kind of core detection system that can handle the geotechnical engineering investigation of core photo automatically, apace.
A kind of core detection system of geotechnical engineering investigation comprises: place the core casing of core sample, four jiaos of said core casing are provided with the casing label; Take the filming apparatus of said core casing and core sample wherein; And, according to the image of said casing label, the core photo of said filming apparatus shooting is carried out the processing unit of Flame Image Process.
Compared with prior art; The core detection system of the geotechnical engineering investigation of the utility model is provided with the casing label for four jiaos through the core casing of gathering vanning at the scene; Can discern four jiaos of said core casing through digital image processing techniques; Automatically the core photo is carried out Flame Image Process, do not need artificial manual handle, significantly reduced the complicacy of core photo, loaded down with trivial details manual procedure to each core picture.The core detection system automaticity of the geotechnical engineering investigation of the utility model is high, simple to operate; It is regular, beautiful to handle back core photo; Can generate standard, the report of neat core photo, be applicable to that the core photo is handled in the various prospecting engineerings, efficient and strongly professional.
Preferably, the core detection system of said geotechnical engineering investigation further comprises the PRN device that connects said processing unit.Can be used for the core photo after the print processing, perhaps print whole core photo report, use conveniently, function is more complete.
Preferably, said processing unit comprises: the core photo is read with the data-reading unit in the file of corresponding boring numbering name; With said core photo is the color conversion cell of YCbCr spatial data from the rgb space data-switching; According to the chromatic component in the YCbCr spatial data, discern the image identification unit of the casing label image in the said core photo; With the image interception unit of the image interception in the scope that line surrounded of said casing label image for the analysis picture; According to the boring numbering of the file at said core photo place, each is analyzed the rename unit that picture carries out rename; According to the title of said analysis picture, the analysis picture that belongs to identical boring numbering is gathered, adopt the PDF generation technique, generate the report generation unit of core photo report.A kind of preferred constituted mode as said processing unit; Can be through the chromatic component in the YCbCr spatial data; The image of the casing label in the core photo that the said filming apparatus of automatic identification is taken; Automatically generate the report of core photo and need not manually-operated, convenient fast to the processing of core photo.
Further, said processing unit further comprises according to predetermined resolution, said analysis picture is carried out the affined transformation unit of affined transformation.Through affined transformation, can removal of images distortion, make the image after the processing more neat, standard.
Further; Said image identification unit comprises: the mean value that calculates the Cb component of said core photo; And, said core photo is converted into the image binaryzation unit of binary image according to the magnitude difference of the Cb component of the mean value of said Cb component and each pixel in the said core photo; Search for value in the said binary image and be the picture search unit of the consecutive data block that 1 pixel forms; And, calculating the area of each said consecutive data block, the coordinate of four said consecutive data block that area is maximum is identified as the decision unit of the coordinate of four said casing labels.Earlier image is carried out binaryzation, be convenient to identification said casing label.
Preferably, in the core detection system of said geotechnical engineering investigation, said casing label is circular orange label.Be not limited to circle, or orange, but the shape and the special color of rule help discerning judgement according to image.
Preferably, the core detection system of said geotechnical engineering investigation further comprises the display device that connects said processing unit.Can keep watch on the entire image processing process through the display device operating personnel, make and operate hommization more.
Further, the core detection system of described geotechnical engineering investigation further comprises the operational means that is used for manually controlling the image that clicks said casing label.Said operational means can be mouse, keyboard or the touch-screen that connects said processing unit.Through these operational meanss, can manually control the image that clicks said casing label, under the situation that processing unit can not be discerned automatically, switch to automanual artificial Attended Operation, can also prevent the error result of discerning automatically with the correcting process unit.
Embodiment
See also Fig. 1, Fig. 1 is the structural representation of core detection system first embodiment of the utility model geotechnical engineering investigation.
The core detection system of said geotechnical engineering investigation comprises: place the core casing 11 of core sample, four jiaos of said core casing 11 are provided with casing label 12; Take the filming apparatus 13 of said core casing 11 and core sample wherein; And, according to the image of said casing label 12, the core photo of said filming apparatus 13 shootings is carried out the processing unit 14 of Flame Image Process.
Specify the core detection system of utilizing the utility model geotechnical engineering investigation below and carry out the course of work that core detects:
When the geotechnical engineering investigation work on the spot, obtain core sample through boring, said core sample is put into said core casing 11 according to the boring numbering;
The said core casing 11 that utilizes 13 pairs of said filming apparatus to be mounted with core sample is taken, and takes from depression angle during shooting, and four jiaos of casing labels 12 that are provided with of said core casing 11 are also taken therein;
Can pass through data transfer modes such as USB, data line, the core photo that said filming apparatus 13 is taken is input in the said processing unit 14 and carries out Flame Image Process.
Preferably, in the core detection system of said geotechnical engineering investigation, said casing label is circular orange label.Be not limited to circle, or orange, but the shape and the special color of rule help discerning judgement according to image.
Compared with prior art; The core detection system of the geotechnical engineering investigation of the utility model is provided with the casing label for four jiaos through the core casing of gathering vanning at the scene; Can discern four jiaos of said core casing through digital image processing techniques; Automatically the core photo is carried out Flame Image Process, do not need artificial manual handle, significantly reduced the complicacy of core photo, loaded down with trivial details manual procedure to each core picture.The core detection system automaticity of the geotechnical engineering investigation of the utility model is high, simple to operate; It is regular, beautiful to handle back core photo; Can generate standard, the report of neat core photo, be applicable to that the core photo is handled in the various prospecting engineerings, efficient and strongly professional.
See also Fig. 2, Fig. 2 is the structural representation of core detection system second embodiment of the utility model geotechnical engineering investigation.Compare with first embodiment, the core detection system of the geotechnical engineering investigation of this embodiment further comprises the PRN device 15 that connects said processing unit.Said PRN device 15 can be used for the core photo after the print processing, perhaps prints whole core photo report, and the core detection system of said geotechnical engineering investigation is used convenient, and function is more complete.
In this embodiment, the core detection system of said geotechnical engineering investigation also comprises the display device 16 that connects said processing unit.Operating personnel can keep watch on the entire image processing processes through said display device 16, prevent that the automated graphics processing procedure from makeing mistakes, and make and operate hommization more.
Further, the core detection system of described geotechnical engineering investigation also comprises the operational means 17 that is used for manually controlling the image that clicks said casing label.Said operational means 17 can be mouse, keyboard or the touch-screen that connects said processing unit.Through these operational meanss; Can manually control the image that clicks said casing label; Under the situation that said processing unit 14 can not be discerned automatically, switch to automanual artificial Attended Operation, can also prevent and revise said processing unit 14 error result of identification automatically.
See also Fig. 3, Fig. 3 is the structural representation of a kind of preferred implementation of processing unit in the core detection system of the utility model geotechnical engineering investigation.
The function formation of said processing unit 14 is not limited to specific concrete form, and those skilled in the art can be according to the actual needs of self, and the self-defined function that said processing unit 14 is set constitutes.Processing unit described in this embodiment 14 preferably includes for reaching the purpose of discerning said casing label 12 better and generating the report of core photo automatically: data-reading unit 41, color conversion cell 42, image identification unit 43, image interception unit 44, rename unit 45 and report generation unit 46.
Said data-reading unit 41 is used for core photo input computing machine and reads the file with the name of corresponding boring numbering; Wherein, the image that comprises the core casing and be arranged on the casing label of four jiaos of said core casings in the said core photo;
It is the YCbCr spatial data from the rgb space data-switching that said color conversion cell 42 is used for said core photo;
Said image identification unit 43 is used for the chromatic component according to the YCbCr spatial data of said core photo, discerns the casing label image in the said core photo;
Said image interception unit 44 is used for the image interception in the scope that line surrounded of said casing label image for analyzing picture;
Said rename unit 45 is used for the boring numbering according to the file at said core photo place, each is analyzed picture carry out rename;
Said report generation unit 46 is used for the title according to said analysis picture, and the analysis picture that belongs to identical boring numbering is gathered, and adopts the PDF generation technique, generates the report of core photo.
The workflow of processing unit 14 of core detection system of the geotechnical engineering investigation of the utility model is described below in conjunction with concrete embodiment.
At first explanation is; Said casing label color is not limited to orange, because orange being prone to discerns, adopts orange casing label conduct in this embodiment for example; During practical implementation; Those skilled in the art can perhaps according to the convenience of digital image analysis, adopt the casing label of other colors as required.
Several files are created and named to said data-reading unit 41 with boring numbering, and the photo of the core that obtains for same boring reads it in file with the name of corresponding boring numbering.
Said color conversion cell 42 with said core photo when the rgb space data-switching is the YCbCr spatial data; At first select first core photo in a certain boring numbering file; Said core picture data is read into the bitmap object; Adopting the DrawImage method that said core photo is presented on the forms then, is the YCbCr spatial data with said core photo from the rgb space data-switching again.
In this embodiment, the conversion formula in the said color conversion cell 42 is:
Y=0.299R+0.587G+0.114B
Cb=0.564(B-Y)
Cr=0.713(R-Y)
Wherein R, G, B represent the red, green, blue component of said core photo respectively; Y is meant that then luminance component, Cb refer to the chroma blue component, and Cr refers to the red color component; Parameter in the said conversion formula can be provided with according to actual needs, and this embodiment only with a kind of more excellent conversion parameter for example.
Because the shooting operation of core photo is to work in the open air usually; The common digital camera that camera adopts; Weather condition is that the sun is exposed to the sun, is the cloudy day sometimes that surround lighting changes relatively greatly, causes the brightness of photo and colourity that very big variation is arranged sometimes; Thereby the rgb value of same object is changed too big under surround lighting, be not easy to correct analysis.The YCbCr space then provides a kind of method that luminance component/blue component/red component is separated; Therefore said color conversion cell 42 converts said core photo into the YCbCr spatial data; Can exempt the influence of environmental factor comparison film brightness, make the utility model processing unit go for various environment for use.
As a kind of preferred implementation, said image identification unit 43 comprises: image binaryzation unit, picture search unit and decision unit (figure does not show).
Said image binaryzation unit at first calculates the mean value of Cb component, and according to the magnitude difference of the Cb component of the mean value of said Cb component and each pixel in the said core photo, converts said core photo into binary image.
Particularly, said image identification unit 13 is calculated the formula of the mean value of Cb component:
Wherein, Width is the width of image, and Height is the height of image, by the resolution decision of said core photo.
In this embodiment; Behind the mean value that calculates said Cb component; Said image identification unit 43 adopts following formula to judge each pixel of said core photo, carries out image segmentation, converts the Cb component image of said core photo into binary image:
The value of the pixel of the binary image after the Image presentation video in the above-mentioned formula is cut apart.Said picture search unit is searched in said binary image, identifies the coordinate of the casing label that is arranged on four angles of core casing.
Partition value in the above-mentioned formula
gets through a large amount of test statistics; Through a large amount of photos is carried out Processing Test, confirm that the recognition effect of this value is best.Those skilled in the art can set the partition value that is different from
according to the needs in the practical operation.But note: if we strengthen partition value, the identified region that obtains will diminish, and might not identify mark, if reduce this partition value, possibly come out background also wrong identification so, causes our recognition result to lose efficacy.
In this embodiment, after the binary conversion treatment through said image binaryzation unit, the value in four orange casing labels and the binary image of some background interference after image segmentation is 1, and the value of all the other background images is 0.
At this moment; (value is that 1 pixel is assembled the contiguous pixels piece that forms to Blob in the said picture search unit searches image; Be blackening); Adopting each pixel 8 neighbours all around in the searching image, is that 1 neighbours' each other pixel is added on and forms a set together with value, is said Blob.Travel through whole core photo, obtain all values and be 1 consecutive data block (or claiming Blob).Calculate the area of each Blob, four Blob that area is maximum are as Search Results, and remaining disturbs as a setting and gives up to fall.
Said decision unit is identified as the coordinate of four casing labels with the position of center in image of the Blob of said four areas maximum; Further, can in the demonstration forms of said core photo, show the circle marker of four fillings respectively,, be convenient to desk checking whether the core casing gets four jiaos all discern correct to show recognition effect according to the coordinate of the casing label that calculates.
If recognition result is correct, then said image identification unit 43 gets into next and opens photo identification work.Judge that whether recognition result correctly can come to realize automatically, and when identification is correct, get into next photo identification work automatically through the corresponding judgment standard is set, and sends alarm when incorrect in said image identification unit 43; Also can let and show that the position of the circle marker of four fillings judges in the demonstration forms of operating personnel according to said core photo respectively; When operating personnel judge that recognition result is incorrect; Can be through the said operational means 17 of the said processing unit of above-mentioned connection; Like mouse, keyboard or touch-screen etc.; Click the image of four jiaos casing label 12 of core casing 11 in the core photo, obtain four angular coordinates, make said image identification unit 43 get into next photo identification work by next or shortcut F6 then;
Said image identification unit 43 repeats above-mentioned to casing label identification step, discerns all the core photos under this boring numbering file, with the photo four angular coordinate that obtains to being saved in the predefined array of program.
During the said analysis picture of said image interception unit 44 interceptings,, wiped out the useless background beyond the core case, the analysis picture after obtaining handling according to the coordinate of four casing labels in above-mentioned each core photo that recognizes.
In an embodiment; Said rename unit 45 calculates the following quantity of analyzing picture of file of same boring numbering through program; Retrieve and sort with filename; Obtain the position that each analyzes picture file, combine at last, each is analyzed picture file save as the filename form of shape like " boring numbering-which case-common a few case .jpg ".
Said report generation unit 46 gathers the analysis picture that belongs to identical boring numbering according to the title of said analysis picture, adopts the PDF generation technique, generates the report of core photo.
As a kind of embodiment for example, said report generation unit 46 is quoted iTextSharp.net class libraries, working procedure; Select boring numbering corresponding file folder, read the analysis picture in each file automatically successively, insert and analyze picture; And insert the corresponding file name, and carry out the scaling of image, place 4 rows at an A4 paper; The core photo that every row is two, and add contents such as header, footer, the page number and catalogue, form a complete core photo report.
Because when generating the report of core photo; The data volume of Flame Image Process is very big; The resolution of core photo is high again, and therefore said report generation unit 46 carries out the generation of core photo report again after all casing label coordinates are confirmed correctly; Let computing machine handle automatically exactly, need not operating personnel and wait for.
Again because the pdf form is adopted in the core photo report that said report generation unit 46 generates, even the photo number is very big, still can be very smooth open and browse pdf, when having avoided employing Word text, file is excessive and cause the shortcoming that can not open.
See also Fig. 4, Fig. 4 is the structural representation of the another kind of preferred implementation of processing unit in the core detection system of the utility model geotechnical engineering investigation.
At this embodiment, said processing unit also comprises affined transformation unit 47, and said affined transformation unit 47 is arranged between said image interception unit 44 and the rename unit 45, is used for according to predetermined resolution said analysis picture being carried out affined transformation.
In this embodiment, said affined transformation unit 47 adopts following affined transformation formula:
Wherein, a, b, c, d, e, f, g, h are affine parameters, (x
0, y
0), (x
1, y
1), (x
2, y
2), (x
3, y
3) be the coordinate of four casing labels in original photo of identification; (u
0, v
0), (u
1, v
1), (u
2, v
2), (u
3, v
3) be the coordinate of the rectangular area after handling.Can get by above-mentioned affined transformation formula:
In this embodiment, to the coordinate (u of the rectangular area after the said processing
0, v
0), (u
1, v
1), (u
2, v
2), (u
3, v
3) employing (0,0), (1298,0), (1298; 800), (0,800), just be the image of 1298 * 800 resolution sizes with the image affined transformation; Adopt 1298 * 800 resolution to be because existing core case is of a size of 86cm * 53cm, the actual ratio of the ratio of width to height of image and core case is consistent thus, on the other hand; After in inserting the PDF report, can satisfy the requirement of printing sharpness.
Those skilled in the art can adopt other modes, realize the affined transformation in the said affined transformation unit 47, convert said analysis picture into predetermined resolution image.
Through said analysis picture is carried out affined transformation, the angle distortion improves the quality of core photo report in the time of can removing the core photo.
Above-described the utility model embodiment does not constitute the qualification to the utility model protection domain.The modification of being done within any spirit and principle at the utility model, be equal to replacement and improvement etc., all should be included within the claim protection domain of the utility model.