Background
At present, in China, the construction industry is the strut industry, the process management as the construction industry is a difficult point in the construction management of China, in addition, in the construction industry, the required construction engineering capital requirement is high, the construction period is long, the capital recovery is slow, the participation degree of construction material suppliers is high, and in the whole engineering practice, the capital investment is a ubiquitous phenomenon. A sponsor fills up resources of a building unit, usually has requirements on a plurality of projects such as building unit qualification, building procedures, building capacity, capital conditions and the like, needs to process a huge number of forms, needs to track and process a plurality of forms if capital support is provided for the plurality of projects at the same time, and has a very complicated work of analyzing and processing the forms, but needs some data in the forms, so that if a specific configurator analyzes and processes the forms, great waste of manpower resources is caused, and therefore, a system form data automatic entry method which is high in automation degree and accurate in resolution and can be used in the development of a building engineering material management system is imperative.
Disclosure of Invention
The invention aims to solve the problem that in the prior art, if fund support is provided for a plurality of projects at the same time, a plurality of forms need to be tracked and processed, and the work of analyzing and processing the forms is troublesome, but some data in the forms are needed, so that if a specific configurator analyzes and processes the forms, great waste is caused to manpower resources, and the engineering progress data entry method which is high in automation degree and accurate in resolution and can be used in a building engineering management system is provided.
The technical scheme adopted by the invention for solving the technical problems is as follows: a project progress data entry method of a building project management system comprises the following steps:
the method comprises the following steps: a constructor uploads a photo which is not constructed and an effect picture of a building;
step two: a constructor shoots a picture of a current building according to the progress and uploads the picture to a construction project management system, and the construction project management system stores the picture as the current progress;
step three: the user continuously shoots the photo after the current concealed project is finished according to the progress of the constructional project and then continuously uploads the photo to the constructional project management system, the constructional project management system adjusts the current photo and then compares the current photo with the current progress to select a difference part in the constructional project, and then the current photo is stored as the current progress;
step four: if the current difference part is a concealed project, executing a fifth step, otherwise, judging that the difference part in the current building project is compared with the effect graph by the building project management system, and if the contrast of the current difference part is greater than a threshold value, conforming to the current progress;
step five: and judging whether the current concealed project meets the requirements or not by the supervisor according to the current picture, and then remotely uploading the supervision file by the supervisor through the construction project management system to complete the current concealed project.
The building engineering management system aimed by the invention can be a building engineering management system already used by the applicant at present, can also be other common building engineering management systems in the market, and is not limited. The method can be used for carrying out good picture processing and form processing, can provide complete, reliable and noiseless photo information for subsequent feature extraction and feature classification, can quickly process huge amount of engineering data after the information is processed by a computer, can remotely store construction photos, effect graphs and forms, can track and process multiple projects, automatically analyze and process the forms, extract some key data in the forms, monitor multiple projects such as the qualification of a building unit, the construction process, the building capacity, the fund status and the like, and realize that fund support is provided for the multiple projects at the same time.
Preferably, when the user and the supervisor access the building engineering management system, an identity authentication sub-step is required, and the identity authentication sub-step comprises the following sub-steps:
identity authentication substep one: the building engineering management system interface gives a unique mark in a unified way; and the identity authentication substep two: defining a request access authority item for resources in the building engineering management system into a role;
identity authentication substep three: the nested authority definitions meeting the service requirements of all roles are uniformly synchronized to the construction engineering management system, and management and maintenance of information data of all dimensions are carried out;
identity authentication substep four: directly configuring a piece of relational data or a key value pair as a plaintext according to identity information of an accessor for accessing resources in the building engineering management system, encrypting the plaintext on a currently operated module to form a ciphertext for transmission, intercepting the transmitted ciphertext by an authority management system, decrypting the ciphertext by the authority management system to judge whether a currently operated person has a corresponding authority, if the relational data or the key value pair exists, having the authority and executing an identity authentication substep IV, and if not, prompting no authority and finishing the current access;
identity authentication substep fourteen: access to resources within the construction engineering management system is performed. The data security of the corresponding role is ensured by the arrangement, and the data leakage is prevented.
Preferably, any effect graph, photograph and form uploaded to the construction engineering management system are stored after being subjected to the ashing sub-step, the binarization sub-step and the automatic inclination correction processing sub-step in sequence. By the arrangement, the processed effect picture, the processed photo and the processed form can be conveniently used for comparison, and the image comparison part in the system adopts the existing comparison software, belongs to the conventional technical means and is not repeated.
Preferably, when the ashing sub-step and the binarization sub-step are performed: converting color information in a color picture into a gray value to generate a gray picture with a single tone, calculating to obtain an area value of the table picture, traversing all pixels in the table picture, calculating the average color of a rectangle with the size of the table picture by taking the pixels as central points, comparing the average color with the current pixel, if the current pixel value is larger than the average value, setting the average color as a background point, and if the current pixel value is smaller than the average value, setting the average color as a foreground point, so that foreground characters are separated from the background. In various document analysis and automatic identification systems, ashing and binarization processing are performed on scanned document images smoothly before further analysis and identification, namely color information in the color images is converted into gray values to generate gray images with single tone, and each pixel point in the gray images is marked as a foreground point (usually black) or a background point (usually white) according to a certain rule so as to separate foreground characters from a background. The binarization process directly influences the quality of the extracted foreground character image, and the method and the device for processing the foreground character image have a good effect on processing shadows such as a real image or a photo by adopting the method and the device for processing the foreground character image.
Preferably, said automatic tilt correction processing substep comprises an automatic tilt correction substep and an image rotation substep,
the automatic tilt correction substep comprises:
setting calculation parameters: thetamaxAnd thetaminRespectively representing the maximum and minimum values of theta, pmaxAnd ρminRepresenting the maximum and minimum values of ρ advisable, respectively; Δ θ represents a step value of θ discretization; accoum is a 3-dimensional array, the 1 st dimension corresponds to a theta value, the 2 nd dimension corresponds to a rho value, and when theta and rho are respectively determined to be thetamAnd ρnWhen the data is read, the 3 rd dimension storage corresponding parameter of the array is thetam、ρnIs accumulated for straight line segmentsPoint number, start point coordinate and end point coordinate; respectively representing coordinate values of upper, lower, left and right boundaries of a transformation area in the image by iTop, iBottom, iLeft and iRight, and then executing a calculation step;
initialization of the calculation step 1: let i ═ iTop, j ═ iLeft;
and 2, calculating: taking a point A (i, j) in the image A, if the point A (i, j) is a foreground point, jumping to a calculation step 3, otherwise jumping to a calculation step 4;
and (3) calculating: let theta equal to thetamin,m=0;
Calculating step 3. a: e.g. m < (([ theta ]))max-θmin) A/delta theta +1), then the calculation step 3.b is executed downwards, otherwise, the calculation step 4 is skipped;
calculating step 3. b: let x be i-Top, y be j-Left;
calculating step 3. c: calculating a rho value: ρ ═ x cos θ + y sin θ;
calculating step 3. d: let n be rho-rhomin;
Calculating step 3. e: accumulator + 1: accum (m, n, 0) ═ Accum (m, n, 0) + 1;
calculating step 3. f: if the accumulator value is 1, the coordinates of the start of the straight line segment are recorded:
Accum(m,n,1)=Accum(m,n,3)=x+Top,
accum (m, n, 2) ═ Accum (m, n, 4) ═ y + Left; otherwise, the end point coordinates of the straight line segment are recorded:
Accum(m,n,3)=x+Top,Accum(m,n,4)=y+Left;
calculating step 3. g: let θ be θ + Δ θ, and m be m + 1; jumping back to the calculation step 3.a to continue execution;
and 4, calculating: and j is j +1, if j < iRight, the jump back step 2 continues to be executed, otherwise, i is i +1, j is iLeft, if i < iBottom, the jump back step 2 continues to be executed, otherwise, the calculation step is terminated.
Preferably, in the calculating step:
δ=6°,θmin=-δ,θmax=δ;
Δθ=0.1°
preferably, the image rotation substep comprises:
an arbitrary rotation center C (x) to be specified0,y0) Translating the origin of the guide coordinate O and transforming the matrix into Ts1;
The image is rotated anticlockwise by theta angle around the origin of coordinates, and the change matrix is Tr;
So that the center of rotation is translated from the origin of coordinates back to the original position C (x)0,y0) Transforming the matrix to Ts2. Preferably, after the automatic tilt correction processing substep is completed on the picture, an image denoising substep and an image smoothing substep are executed and then stored, wherein the image denoising substep comprises:
detecting all connected regions in the target image, then filtering according to a threshold value of the size of the connected regions, and deleting smaller regions from the image;
the image smoothing step comprises:
when a 3 x 3 window in the image is matched with the template a, filling a window center pixel point with a foreground color; similarly, when the 3 x 3 window is matched with the template b or a template generated by rotating the template b by 90 degrees, 180 degrees and 270 degrees, the foreground color is also used for filling the central pixel point of the window; when a 3 x 3 window in the image is matched with a template c or a template generated by rotating the template c by 90 degrees, 180 degrees and 270 degrees, filling a central pixel point of the window with background color; when a 3-by-3 window in the image is matched with a template d or a template generated by rotating the template d by 90 degrees, 180 degrees and 270 degrees, filling a central pixel point of the window with background color; representing any pixel point by x, representing a foreground pixel point by 1, and representing a background pixel point by 0, wherein the expression of the template a is as follows:
x 1 x
1 0 1
x 1 x;
the expression of the template b is as follows:
x 1 x
1 0 1
0 0 1;
the expression of the template c is as follows:
0 0 x
0 1 1
0 0 1;
the expression of the template d is as follows:
0 0 0
0 1 1
0 0 x。
the substantial effects of the invention are as follows: the method can be used for carrying out good picture processing and form processing, can provide complete, reliable and noiseless photo information for subsequent feature extraction and feature classification, can quickly process huge amount of engineering data after the information is processed by a computer, can remotely store construction photos, effect graphs and forms, can track and process multiple projects, automatically analyze and process the forms, extract some key data in the forms, monitor multiple projects such as the qualification of a building unit, the construction process, the building capacity, the fund status and the like, and realize that fund support is provided for the multiple projects at the same time.
Detailed Description
The technical solution of the present invention will be further specifically described below by way of specific examples.
Example (b):
a project progress data entry method of a building project management system comprises the following steps:
the method comprises the following steps: a constructor uploads a photo which is not constructed and an effect picture of a building;
step two: a constructor shoots a picture of a current building according to the progress and uploads the picture to a construction project management system, and the construction project management system stores the picture as the current progress;
step three: the user continuously shoots the photo after the current concealed project is finished according to the progress of the constructional project and then continuously uploads the photo to the constructional project management system, the constructional project management system adjusts the current photo and then compares the current photo with the current progress to select a difference part in the constructional project, and then the current photo is stored as the current progress;
step four: if the current difference part is a concealed project, executing a fifth step, otherwise, judging that the difference part in the current building project is compared with the effect graph by the building project management system, and if the contrast of the current difference part is greater than a threshold value, conforming to the current progress;
step five: and judging whether the current concealed project meets the requirements or not by the supervisor according to the current picture, and then remotely uploading the supervision file by the supervisor through the construction project management system to complete the current concealed project.
When a user and a supervisor access the building engineering management system, identity authentication substep is required, and the identity authentication substep comprises the following substeps:
identity authentication substep one: the building engineering management system interface gives a unique mark in a unified way;
and the identity authentication substep two: defining a request access authority item for resources in the building engineering management system into a role;
identity authentication substep three: the nested authority definitions meeting the service requirements of all roles are uniformly synchronized to the construction engineering management system, and management and maintenance of information data of all dimensions are carried out;
identity authentication substep four: directly configuring a piece of relational data or a key value pair as a plaintext according to identity information of an accessor for accessing resources in the building engineering management system, encrypting the plaintext on a currently operated module to form a ciphertext for transmission, intercepting the transmitted ciphertext by an authority management system, decrypting the ciphertext by the authority management system to judge whether a currently operated person has a corresponding authority, if the relational data or the key value pair exists, having the authority and executing an identity authentication substep IV, and if not, prompting no authority and finishing the current access;
identity authentication substep fourteen: access to resources within the construction engineering management system is performed.
Any effect picture, photo and form uploaded to the building engineering management system are sequentially subjected to an ashing sub-step, a binarization sub-step and an automatic inclination correction processing sub-step and then stored.
When the ashing substep and the binarization substep are performed: converting color information in a color picture into a gray value to generate a gray picture with a single tone, calculating to obtain an area value of the table picture, traversing all pixels in the table picture, calculating the average color of a rectangle with the size of the table picture by taking the pixels as central points, comparing the average color with the current pixel, if the current pixel value is larger than the average value, setting the average color as a background point, and if the current pixel value is smaller than the average value, setting the average color as a foreground point, so that foreground characters are separated from the background.
The automatic tilt correction process sub-step comprises an automatic tilt correction sub-step and an image rotation sub-step,
the automatic tilt correction substep comprises:
setting calculation parameters: thetamaxAnd thetaminRespectively representing the maximum and minimum values of theta, pmaxAnd ρminRepresents the maximum and minimum values of p, respectively; Δ θ represents a step value of θ discretization; accoum is a 3-dimensional array, the 1 st dimension corresponds to a theta value, the 2 nd dimension corresponds to a rho value, and when theta and rho are respectively determined to be thetamAnd ρnWhen the data is read, the 3 rd dimension storage corresponding parameter of the array is thetam、ρnThe number of accumulated straight line segments, the coordinates of a starting point and the coordinates of an end point; respectively representing coordinate values of upper, lower, left and right boundaries of a transformation area in the image by iTop, iBottom, iLeft and iRight, and then executing a calculation step;
initialization of the calculation step 1: let i ═ iTop, j ═ iLeft;
and 2, calculating: taking a point A (i, j) in the image A, if the point A (i, j) is a foreground point, jumping to a calculation step 3, otherwise jumping to a calculation step 4;
and (3) calculating: let theta equal to thetamin,m=0;
Calculating step 3. a: e.g. m < (([ theta ]))max-θmin) A/delta theta +1), then the calculation step 3.b is executed downwards, otherwise, the calculation step 4 is skipped;
calculating step 3. b: let x be i-Top, y be j-Left;
calculating step 3. c: calculating a rho value: ρ ═ x cos θ + y sin θ;
calculating step 3. d: let n be rho-rhomin;
Calculating step 3. e: accumulator + 1: accum (m, n, 0) ═ Accum (m, n, 0) + 1;
calculating step 3. f: if the accumulator value is 1, the coordinates of the start of the straight line segment are recorded:
Accum(m,n,1)=Accum(m,n,3)=x+Top,
accum (m, n, 2) ═ Accum (m, n, 4) ═ y + Left; otherwise, the end point coordinates of the straight line segment are recorded:
Accum(m,n,3)=x+Top,Accum(m,n,4)=y+Left;
calculating step 3. g: let θ be θ + Δ θ, and m be m + 1; jumping back to the calculation step 3.a to continue execution;
and 4, calculating: and j is j +1, if j < iRight, the jump back step 2 continues to be executed, otherwise, i is i +1, j is iLeft, if i < iBottom, the jump back step 2 continues to be executed, otherwise, the calculation step is terminated.
In the calculating step:
δ=6°,θmin=-δ,θmax=δ;
Δθ=0.1°
the image rotation substep comprises:
an arbitrary rotation center C (x) to be specified0,y0) Translating the origin of the guide coordinate O and transforming the matrix into Ts1;
The image is rotated anticlockwise by theta angle around the origin of coordinates, and the change matrix is Tr;
So that the center of rotation is translated from the origin of coordinates back to the original position C (x)0,y0) Transforming the matrix to Ts2. After the photo finishes the sub-step of automatic tilt correction processing, an image denoising sub-step and an image smoothing sub-step are executed, and then the image denoising sub-step is stored, wherein the image denoising sub-step comprises the following steps:
detecting all connected regions in the target image, then filtering according to a threshold value of the size of the connected regions, and deleting smaller regions from the image;
the image smoothing step comprises:
when a 3 x 3 window in the image is matched with the template a, filling a window center pixel point with a foreground color; similarly, when the 3 x 3 window is matched with the template b or a template generated by rotating the template b by 90 degrees, 180 degrees and 270 degrees, the foreground color is also used for filling the central pixel point of the window; when a 3 x 3 window in the image is matched with a template c or a template generated by rotating the template c by 90 degrees, 180 degrees and 270 degrees, filling a central pixel point of the window with background color; when a 3-by-3 window in the image is matched with a template d or a template generated by rotating the template d by 90 degrees, 180 degrees and 270 degrees, filling a central pixel point of the window with background color; representing any pixel point by x, representing a foreground pixel point by 1, and representing a background pixel point by 0, wherein the expression of the template a is as follows:
x 1 x
1 0 1
x 1 x;
the expression of the template b is as follows:
x 1 x
1 0 1
0 0 1;
the expression of the template c is as follows:
0 0 x
0 1 1
0 0 1;
the expression of the template d is as follows:
0 0 0
0 1 1
0 0 x。
the method can be used for carrying out good picture processing and form processing, can provide complete, reliable and noiseless photo information for subsequent feature extraction and feature classification, can quickly process huge amount of engineering data after the information is processed by a computer, can remotely store construction photos, effect graphs and forms, can track and process multiple projects, automatically analyze and process the forms, extract some key data in the forms, monitor multiple projects such as the qualification of a building unit, the construction process, the building capacity, the fund status and the like, and realize that fund support is provided for the multiple projects at the same time.
The above-described embodiment is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and other variations and modifications may be made without departing from the scope of the invention as set forth in the claims.