A method, apparatus, equipment, and medium for constructing a geological model
By scanning color values point by point in geological images and mapping them to geophysical parameters, a geological model in Segy data format is generated, which solves the problem of low efficiency in traditional geological model construction and realizes a fast and efficient modeling process.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- OPTICAL SCI & TECH (CHENGDU) LTD
- Filing Date
- 2026-02-09
- Publication Date
- 2026-06-02
AI Technical Summary
Traditional geological modeling methods are inefficient, requiring manual layer-by-layer modeling, which results in low modeling efficiency.
By acquiring color-differentiated geological images, the color values of grid points are determined by scanning point by point, and then mapped to geophysical parameters to generate attribute files. Finally, the geological model is output in Segy data format.
It enables rapid construction of geological models, greatly improves VSP modeling efficiency, simplifies the modeling process, and enhances the accuracy and efficiency of the models.
Smart Images

Figure CN122134974A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of numerical simulation of physical exploration, and more specifically, to a method, apparatus, equipment, and medium for constructing a geological model. Background Technology
[0002] Numerical simulation refers to a method that uses computer technology, such as finite difference and finite element methods, to approximate certain phenomena in the real world, thereby solving specific problems. This method can realistically reflect certain physical phenomena, is easily reproduced, and allows for flexible changes in conditions to test specific characteristics under different circumstances. Compared to physical simulation, which requires expensive experimental equipment and complex model-making processes, the cost of numerical simulation, after initially purchasing computers and corresponding software, is mainly computer time. Therefore, in many fields, numerical simulation is currently a necessary step before the formal implementation of projects. With limited investment, it can predict the final results of the project and identify potential problems in a timely manner, thus ensuring the smooth implementation of the project. In certain specific problems, physical simulation is often insufficient, making numerical simulation even more important.
[0003] In geophysical exploration, numerical simulation of subsurface structures enables effective wavefield identification; it allows for early assessment of the suitability of a designed observation system when encountering special surface features; and it can test the correctness of processing methods during the data processing phase. Especially during field data acquisition, physical simulation is often insufficient, thus numerical simulation plays a crucial role in geophysical exploration. The most common numerical simulation is the forward modeling of wave equations, which can be broadly divided into geological modeling, model meshing, observation system setup, and wave equation calculation. There are many methods for calculating wave equations, such as finite difference, pseudospectral, and finite element methods. Regardless of the method, the foundation is a meshed geological model upon which partial differential equations are solved; therefore, geological modeling is the most fundamental step. Geological modeling is typically implemented using interactive computer software. By constructing stratigraphic interfaces and their geometric relationships, the stratigraphic levels at various locations within a given model range are determined. Geophysical parameters are then assigned during meshing, resulting in model mesh files such as velocity and density meshes for computation.
[0004] As can be seen from the above analysis, traditional modeling methods are inefficient because they require manual construction of geological models layer by layer. Summary of the Invention
[0005] The purpose of this invention is to provide a method, apparatus, equipment, and medium for constructing geological models, which solves the problem of insufficient modeling efficiency in existing technologies.
[0006] The above-mentioned technical objective of the present invention is achieved through the following technical solution:
[0007] A first aspect of the present invention provides a method for constructing a geological model, the method comprising:
[0008] Obtain geological images that differentiate various strata by color; wherein different colors in the geological images correspond to different strata.
[0009] The geological image is scanned point by point to determine the color value of each grid point. The color value of each grid point is then mapped to geophysical parameters to obtain the attribute file for each grid point.
[0010] The attribute file is output in Segy data format, and a geological model is built based on the output Segy data format file.
[0011] In one implementation, before scanning the geological image point by point, the method further includes: determining whether the image size of the geological image matches the grid size of the geological model to be constructed; if they do not match, scaling the geological image to obtain a scaled image that matches the grid size of the geological model to be constructed.
[0012] In one implementation, the geological image is scaled to obtain a scaled image that matches the grid size of the geological model to be constructed, including:
[0013] Obtain the actual size and mesh size of the geological model to be built;
[0014] The number of grids in the geological model is determined based on the actual size of the model and the grid size.
[0015] The scaling ratio of the geological image is determined based on the number of grids and the image resolution of the geological image;
[0016] The geological image is scaled according to the scaling ratio to obtain a scaled image that matches the grid size of the geological model to be constructed.
[0017] In one implementation, the scaling factor of the geological image is the ratio of the number of grid cells to the image resolution.
[0018] In one implementation, the method further includes: detecting whether there is a color deviation between the edge portion and the middle portion of the geological images of adjacent strata during the scaling process of the geological image; if a color deviation occurs, calculating the tolerance value of the geological image, and determining the actual stratum to which the edge portion of the geological image belongs based on the tolerance value.
[0019] In one implementation scheme, the tolerance value of the geological image is calculated by taking the average difference between the gray values of the nth geological image and the gray values of the (n+1)th geological image as the tolerance value; where n represents the number of each stratum.
[0020] The actual strata to which the edge portion of the geological image belongs are determined based on the tolerance value, specifically:
[0021] Extract the grayscale values of the edge portion of the nth layer geological image;
[0022] If the gray value of the edge portion of the nth layer geological image is greater than the difference between the gray value and the tolerance value of the nth layer geological image, then the edge portion of the geological image belongs to the nth layer.
[0023] If the gray value of the edge portion of the nth layer geological image is less than or equal to the sum of the gray value and the tolerance value of the nth layer geological image, then the edge portion of the geological image belongs to the (n+1)th layer.
[0024] In one implementation, each color value of each grid point corresponds to multiple geophysical parameters.
[0025] A second aspect of the present invention provides an apparatus for constructing a geological model, the apparatus comprising:
[0026] The image acquisition module is used to acquire geological images that distinguish different strata by color; wherein, different colors in the geological images correspond to different strata.
[0027] The mapping module is used to scan the geological image point by point, determine the color value of each grid point in the geological image, map the color value of each grid point to geophysical parameters, and obtain the attribute file of each grid point.
[0028] The geological model building module is used to output attribute files in the Segy data format and build geological models based on the output Segy data format files.
[0029] A third aspect of the present invention provides an electronic device, including a memory and a processor;
[0030] A memory for storing computer programs, the computer programs including program instructions;
[0031] A processor is configured to execute the program instructions to cause the electronic device to perform the steps of a method for constructing a geological model as provided in the first aspect of the invention.
[0032] A fourth aspect of the present invention provides a computer-readable storage medium comprising a computer program that, when executed by one or more processors, implements a method for constructing a geological model as provided in the first aspect of the present invention.
[0033] Compared with the prior art, the present invention has the following beneficial effects:
[0034] In a geological model construction method provided by this invention, firstly, geological images are acquired, with different colors in the geological images corresponding to different strata; secondly, the geological images are scanned point by point to determine the color value of each grid point, and the color value of each grid point is mapped to geophysical parameters to obtain an attribute file for each grid point; finally, the attribute file is output in Segy data format, and a geological model is built based on the output Segy data format file. This invention utilizes the mapping relationship between image color and geophysical parameters to achieve rapid construction of geological models, greatly improving the efficiency of VSP modeling. Attached Figure Description
[0035] The accompanying drawings, which are included to provide a further understanding of embodiments of the invention and form part of this application, do not constitute a limitation thereof. In the drawings:
[0036] Figure 1 A schematic flowchart illustrating a method for constructing a geological model according to an embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of the model boundary provided in an embodiment of the present invention;
[0038] Figure 3 This is a schematic diagram of a gridding system provided in an embodiment of the present invention;
[0039] Figure 4 This is a schematic diagram illustrating image scaling, pixel values, and grid file comparison provided in an embodiment of the present invention.
[0040] Figure 5 This is a schematic diagram illustrating the mapping between image color and geophysical parameters of strata provided in an embodiment of the present invention;
[0041] Figure 6 The embodiments of the present invention provide and Figure 5 The corresponding grayscale effect image;
[0042] Figure 7 The trench model implemented using PowerPoint provided in this embodiment of the invention;
[0043] Figure 8 The embodiments of the present invention provide and Figure 7The corresponding grayscale color table on the right;
[0044] Figure 9 The embodiments of the present invention provide and Figure 7 The corresponding Segy data on the right. Detailed Implementation
[0045] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the embodiments and accompanying drawings. The illustrative embodiments and descriptions of the present invention are only used to explain the present invention and are not intended to limit the present invention.
[0046] It should be noted that the terms "comprising" or "may include" used in the various embodiments of this application indicate the presence of the claimed function, operation, or element, and do not limit the addition of one or more functions, operations, or elements. Furthermore, as used in the various embodiments of this application, the terms "comprising," "having," and their cognates are intended only to indicate a specific feature, number, step, operation, element, component, or combination of the foregoing, and should not be construed as primarily excluding the presence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing, or adding one or more combinations of the foregoing.
[0047] It should be understood that terms such as "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0048] Please refer to Figure 1 This invention provides a method for constructing a geological model, the method comprising:
[0049] S101, Obtain a geological image that distinguishes different strata by color; wherein, different colors in the geological image correspond to different strata.
[0050] Specifically, geological images are not limited to interpretation schemes exported by interpretation software; they can also utilize digital images generated using PowerPoint, Photoshop, and other software. For example... Figure 7 As shown in the left figure, it is easy to create a trench model. To reduce post-processing, simple settings can be made to the "shape" during construction, such as filling the shape with a solid color and leaving the shape outline empty.
[0051] The geological image needs to be color-coded to distinguish different strata, clearly identifying which part of the image represents which stratum. For ease of subsequent operations, the fill color should be a single solid color, not a gradient. Unlike traditional modeling methods that require specialized software to set backgrounds, outline each layer, and check the validity and closure of boundaries between layers, this method is much simpler in terms of drawing requirements. Furthermore, the image size is not specified here.
[0052] Since actual geological strata are infinitely large, but when modeling, we are only interested in a specific portion of the strata, the calculation requires manually dividing the region. Simultaneously, considering the computing power of the computer, the region must be selected; this region represents the boundary of the model size to be calculated. Figure 2 As shown, Figure 2 It is a 3-layer geological model, from which a region of 100*100m was selected for model calculation.
[0053] S102, scan the geological image point by point, determine the color value of each grid point in the geological image, map the color value of each grid point to geophysical parameters, and obtain the attribute file of each grid point.
[0054] In this embodiment, before scanning the geological image point by point, the modeling method provided in this application embodiment further includes the following steps: firstly, determining whether the image size of the geological image matches the grid size of the geological model to be constructed; if they do not match, then scaling the geological image to obtain a scaled image that matches the grid size of the geological model to be constructed.
[0055] Here, if the size (pixel size) of the geological image is the same as the size of the grid file of the geological model to be calculated, the scaling step can be omitted.
[0056] The scaling process described in this application refers to processing geological images to the required size. Since the boundaries (grid file size) of the geological model used in the final numerical simulation calculation need to be explicitly specified, and each digitized geological image is composed of individual pixels, mathematically it can be viewed as a two-dimensional matrix. Therefore, each geological image can be considered a grid file, except that the grid attribute values are color (RGB, a color value composed of red, green, and blue). Thus, the grid size needs to be consistent with the calculated model. Traditional modeling methods first require specifying a size and then performing interactive modeling within that area, allowing for adjustments at any time; here, it's equivalent to directly meshing.
[0057] For example, if the actual size of the geological model to be built is 1000*800m, and the grid size is set to 2m to accommodate high-frequency calculations (generally, the higher the calculation frequency, the smaller the grid), then the required number of grids for the model is 500*400.
[0058] The formula used is: Number of grids (Grid) = Actual model size (Length) / Grid size (Bin). Here, it's assumed the grid is square. The geological image is 591*354 pixels, meaning the image resolution is 591*354. Therefore, the horizontal and vertical scaling ratios are: 591 / 500 = 1.18, 354 / 400 = 0.89. The formula used is: Scale = Number of grids (Grid) / Image resolution (Pixel). After selecting all the "shapes," copy and paste them as images. Then adjust the image's width and height to match the required number of grids, such as 5 cm * 4 cm. Then save it as an image. Fine-tuning will be implemented in the program, such as... Figure 7 As shown in the left and middle images.
[0059] The scaling process of geological images can be performed using mature commercial software such as Photoshop, or various image libraries such as OpenCV. However, since subsequent image operations are required, and commercial software cannot meet the corresponding needs, this embodiment uses a specific image library to complete the process with code.
[0060] During the scaling of geological images, interpolation may occur at color edge changes, causing discrepancies between the color values and the central areas. This means the color values cannot achieve a one-to-one correspondence with stratigraphic parameters. Therefore, a certain tolerance is needed when establishing the mapping relationship to ensure matching across the entire grid file. To further reduce this error, image grayscale processing can be used. Since grayscale has only 256 variations, while the RGB color range is 256*256*256, the error in color variation areas will be significantly reduced. Figure 6 As shown. Therefore, the method provided by the present invention further includes the following steps: detecting whether there is a color deviation between the edge portion and the middle portion of the geological images of adjacent strata during the scaling process of the geological image; if a color deviation occurs, calculating the tolerance value of the geological image, and determining the actual stratum to which the edge portion of the geological image belongs based on the tolerance value.
[0061] The tolerance value of the geological image is calculated as follows: the average difference between the gray values of the nth layer geological image and the (n+1)th layer geological image is taken as the tolerance value; where n represents the number of each stratum; the stratum to which the edge part of the geological image belongs is determined based on the tolerance value.
[0062] Specifically, the calculation of image grayscale values is based on existing technologies, such as the maximum value method, component method, and average value method. However, for the subsequent mapping implementation of this invention, this embodiment uses image library-based code to perform grayscale processing. The RGB color model uses red, green, and blue to synthesize a specific color, and each individual color has a range of 256 values, thus representing a total of 256*256*256 color values. Image grayscale conversion involves converting the three colors (red, green, and blue) according to a certain ratio to form an index value representing grayscale, which obviously only has a range of 256 values. Besides RGB, there are other color models such as HSV, all of which can be converted to grayscale values using appropriate methods.
[0063] Specifically, the effect of image grayscale conversion is as follows: Figure 7 As shown in the middle and right figures, Figure 8 The data shows the specific values at the interface between layers 1 and 2, where the value for layer 1 is 131 and the value for layer 2 is 113. Scaling causes a deviation at the interface. A simple median value can be used as the tolerance value: d = (upper layer value (Vup) - lower layer value (Vdown)) / 2 = (131 - 113) / 2 = 9. Then, the grayscale values of the edge portion of the nth layer geological image are extracted. If the grayscale value of the edge portion of the nth layer geological image is greater than the difference between the grayscale value of the nth layer geological image and the tolerance value, then the edge portion of the geological image belongs to layer n. If the grayscale value of the edge portion of the nth layer geological image is less than or equal to the sum of the grayscale value of the nth layer geological image and the tolerance value, then the edge portion of the geological image belongs to layer (n+1).
[0064] For example, grayscale values greater than Vup-d=122 are all in layer 1, and grayscale values less than or equal to Vdown+d=122 are all in layer 2. Since the values within the same layer are the same, their difference is 0. At the interface, the difference is not 0, so the values above and below the interface can be automatically obtained and calculated.
[0065] Since the strata within the model are continuous, the continuous interface needs to be discretized for easier computer calculation. Each discrete point can be identified by rows and columns. For 2D, this can be viewed as a two-dimensional matrix, and for 3D, a three-dimensional matrix. This discretization process is called meshing. For example, a continuous stratum of 100*100m, discretized at 20m intervals, will have only 5*5 grids. Let (1,1) represent the first grid, and (5,5) the last grid. The center coordinates of the former are (10,10) and the latter are (90,90). Figure 3 As shown.
[0066] The meshing process is equivalent to discretizing specific geological strata in space. For numerical simulations, not only spatial meaning is required, but also specific geophysical parameters at that spatial location, such as P-wave velocity (Vp), S-wave velocity (Vs), and density (ρ). A physically meaningful discretized numerical file arranged according to certain rules is called a mesh file. Similar to the meshing process described above, such as... Figure 4 As shown, (1,1,1000) represents the P-wave velocity Vp=1000m / s at the first grid, and (5,5,2000) is the P-wave velocity Vp=2000m / s at the last grid, which means the specific attribute value at the center coordinates (10,10) and (90,90).
[0067] In this embodiment, since the geological image is composed of individual pixels, the color value corresponding to each grid point can be read. All colors can be described from the geological image by scanning point by point. Assuming there are three colors: yellow, green, and blue; since this application requires geophysical parameters at each grid point, geophysical parameters may include P-wave velocity (Vp), S-wave velocity (Vs), density ρ, and anisotropy parameters, etc.
[0068] The number of strata has been determined in step S101, so the corresponding number of each geophysical parameter is also known. Assume that the Vp, Vs, and ρ of the first geological layer are 1000 m / s, 700 m / s, and 1000 kg / m³, respectively. 3 The Vp, Vs, and ρ of the second geological layer are 3000 m / s, 1500 m / s, and 2500 kg / m, respectively. 3 The Vp, Vs, and ρ of the third geological layer are 2000 m / s, 1200 m / s, and 1800 kg / m, respectively. 3 Then the longitudinal wave velocity Vp has three values: 1000m / s, 3000m / s, and 2000m / s. Similarly, the transverse wave velocity Vs and density ρ also have three values.
[0069] Associating the value of a parameter within a specific stratum with the color of that grid point establishes a correspondence between color values and attribute values. It's important to note that each grid point's color value corresponds to multiple geophysical parameters. For example, for the P-wave velocity Vp, the geological image uses three colors—yellow, green, and blue—corresponding to three velocity values: Vp=1000 m / s, Vp=3000 m / s, and Vp=2000 m / s. Specifically, yellow represents Vp=1000 m / s, green represents Vp=3000 m / s, and blue represents Vp=2000 m / s. Similarly, for the shear wave velocity Vs and density ρ, yellow, green, and blue represent Vs=700 m / s, 1500 m / s, 1200 m / s, and ρ=1000 kg / m³, respectively.3 2500kg / m 3 1800kg / m 3 This allows the attribute values for the entire grid to be obtained; this is equivalent to filling in geophysical parameters. For example... Figure 5 As shown, yellow represents the P-wave velocity Vp = 1000 m / s, and green represents the P-wave velocity Vp = 3000 m / s. Geophysical parameters can be confirmed interactively after the color scan is complete, or automatically by specifying a parameter range.
[0070] As can be seen from the above-described embodiment, the layer with a gray value >122 is the first layer, Vp=1000m / s; the layer with a gray value <122 is the second layer, Vp=2000m / s. Here, Vp, as the geophysical parameter of the mapping, can be specified manually. The same applies to other layers and geophysical parameters, which will not be elaborated further.
[0071] It should be noted that, since the actual numerical simulation process requires the velocity to be smooth, the tolerance value described in the above embodiment can be omitted. After obtaining the correspondence between the gray value at the upper and lower interfaces and the transverse wave velocity Vp, the linear interpolation is used as the smooth velocity: dVp / dV*(V-Vdown)=(2000-1000) / (131-113)*(116-113)=166.67m / s, where V is the Vp value mapped by the specified gray value (116)=2000-116.67=1883.33m / s.
[0072] S103, output the attribute file according to the Segy data format, and build a geological model based on the output Segy data format file.
[0073] Specifically, the attribute file (i.e., the two-dimensional matrix) obtained in step S102 is saved to the computer hard drive in the standard Segy data format (this format is a standard and universal format). Third-party calculation programs can directly read this file for subsequent calculations. During the saving process, the horizontal size of the grid can be saved in the shot point coordinates `sx` keyword, and the vertical size of the grid can be saved in the sampling rate `si` keyword. This allows the output Segy data to be directly displayed by commonly used industry drawing software, thereby checking the data's correctness. Specifically, the shot point coordinates `sx` interval is 2, the sampling rate `si` is 2000, and the output Segy data is as follows: Figure 9 As shown. This completes the model building process. This invention effectively solves the problem of cumbersome conventional VSP modeling and improves the modeling efficiency of geological models.
[0074] This application provides a geological model construction apparatus, the apparatus comprising:
[0075] The image acquisition module is used to acquire geological images that distinguish different strata by color; wherein, different colors in the geological images correspond to different strata.
[0076] The mapping module is used to scan the geological image point by point, determine the color value of each grid point in the geological image, map the color value of each grid point to geophysical parameters, and obtain the attribute file of each grid point.
[0077] The geological model building module is used to output attribute files in the Segy data format and build geological models based on the output Segy data format files.
[0078] The geological model construction device in this application embodiment is similar to the one described above. Figure 1 The geological model construction method shown is a technical solution based on the same inventive concept. Through the detailed description of the geological model construction method provided in the above embodiments, those skilled in the art can clearly understand the implementation process of the geological model construction device in this embodiment. Therefore, for the sake of brevity, it will not be described again here.
[0079] Accordingly, this invention utilizes the mapping relationship between image color and geophysical parameters to achieve rapid construction of geological models, greatly improving the efficiency of VSP modeling.
[0080] This application also provides an electronic device. The electronic device includes a processor, a memory, a communication interface, and at least one communication bus for connecting the processor, the memory, and the communication interface. The memory includes, but is not limited to, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (PROM), or portable read-only memory (CD-ROM), and is used for related instructions and data.
[0081] The communication interface is used to receive and send data. The processor can be one or more CPUs; if the processor is a single CPU, it can be a single-core CPU or a multi-core CPU. The processor in the electronic device reads one or more programs stored in the memory and performs the following operations: acquiring geological images that differentiate various strata by color; wherein different colors in the geological images correspond to different strata; scanning the geological images point by point to determine the color value of each grid point in the geological images; mapping the color value of each grid point to geophysical parameters to obtain an attribute file for each grid point; outputting the attribute file according to the Segy data format; and building a geological model based on the output Segy data format file.
[0082] It should be noted that the specific implementation of each operation can be described above. Figure 1The corresponding description of the method embodiments shown indicates that the electronic device can be used to execute a geological model construction method of the above method embodiments of this application, which will not be described in detail here.
[0083] This invention also provides a computer-readable storage medium, which is a memory device in a computer device for storing programs and data. It is understood that the computer-readable storage medium here can include both the built-in storage medium in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the operating system of a terminal. Furthermore, the storage space also stores one or more instructions suitable for loading and execution by a processor. These instructions can be one or more computer programs (including program code). It should be noted that the computer-readable storage medium here can be high-speed RAM or non-volatile memory, such as at least one disk storage device. The processor can load and execute one or more instructions stored in the computer-readable storage medium to implement the corresponding steps of the method for constructing a geological model in the above embodiments. Those skilled in the art should understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0084] Embodiments of this application also provide a computer program product containing program instructions. The computer program product may be software or program products containing program instructions, capable of running on a computing device or stored on any usable medium. When the computer program product is run on at least one electronic device, it causes the at least one electronic device to perform a method for constructing a geological model.
[0085] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for constructing a geological model, characterized in that the method... include: Obtain geological images that differentiate various strata by color; wherein different colors in the geological images correspond to different strata. The geological image is scanned point by point to determine the color value of each grid point. The color value of each grid point is then mapped to geophysical parameters to obtain the attribute file for each grid point. The attribute file is output in Segy data format, and a geological model is built based on the output Segy data format file.
2. The method according to claim 1, characterized in that, Before scanning the geological image point by point, the method further includes: determining whether the image size of the geological image matches the grid size of the geological model to be constructed; if they do not match, scaling the geological image to obtain a scaled image that matches the grid size of the geological model to be constructed.
3. The method according to claim 2, characterized in that, The geological image is scaled to obtain a scaled image that matches the grid size of the geological model to be constructed, including: Obtain the actual size and mesh size of the geological model to be built; The number of grids in the geological model is determined based on the actual size of the model and the grid size. The scaling ratio of the geological image is determined based on the number of grids and the image resolution of the geological image; The geological image is scaled according to the scaling ratio to obtain a scaled image that matches the grid size of the geological model to be constructed.
4. The method according to claim 3, characterized in that, The scaling ratio of the geological image is the ratio of the number of grid cells to the image resolution.
5. The method according to claim 2, characterized in that, The method further includes: detecting whether there is a color deviation between the edge portion and the middle portion of the geological images of adjacent strata during the scaling process of the geological image; if a color deviation occurs, calculating the tolerance value of the geological image, and determining the actual stratum to which the edge portion of the geological image belongs based on the tolerance value.
6. The method according to claim 5, characterized in that, The tolerance value of the geological image is calculated as follows: the average difference between the gray values of the nth geological image and the (n+1)th geological image is taken as the tolerance value; where n represents the number of each stratum. The actual strata to which the edge portion of the geological image belongs are determined based on the tolerance value, specifically: Extract the grayscale values of the edge portion of the nth layer geological image; If the gray value of the edge portion of the nth layer geological image is greater than the difference between the gray value and the tolerance value of the nth layer geological image, then the edge portion of the geological image belongs to the nth layer. If the gray value of the edge portion of the nth layer geological image is less than or equal to the sum of the gray value and the tolerance value of the nth layer geological image, then the edge portion of the geological image belongs to the (n+1)th layer.
7. The method according to claim 1, characterized in that, Each color value for each grid point corresponds to multiple geophysical parameters.
8. A device for constructing a geological model, characterized in that, The device includes: The image acquisition module is used to acquire geological images that distinguish different strata by color; wherein, different colors in the geological images correspond to different strata. The mapping module is used to scan the geological image point by point, determine the color value of each grid point in the geological image, map the color value of each grid point to geophysical parameters, and obtain the attribute file of each grid point. The geological model building module is used to output attribute files in the Segy data format and build geological models based on the output Segy data format files.
9. An electronic device, characterized in that, Including memory and processor; A memory for storing computer programs, the computer programs including program instructions; A processor for executing the program instructions to cause the electronic device to perform the steps of a method for constructing a geological model as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when executed by one or more processors, implements a method for constructing a geological model as described in any one of claims 1 to 7.