Method and device for determining physical property parameters, equipment and storage medium
By using the conversion relationship between coordinate systems, the physical properties parameters of the medium in petrochemical industry under specific conditions are automatically determined, which solves the problems of cumbersome and time-consuming operation in the existing technology, and achieves fast and simple physical properties parameters acquisition.
Patent Information
- Application Number
- CN202311387734.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-24
- Publication Date
- 2025-04-25
AI Technical Summary
In the field of petrochemicals, the prior art methods for determining physical properties parameters are cumbersome and time-consuming.
By obtaining the target medium and the target conditions, and using the conversion relationship between the coordinate system, including the mapping relationship between the medium coordinate system, conditional coordinate axes and physical coordinate axes, the physical properties parameters of the medium under specific conditions are automatically determined.
It realizes automatic execution of computers, simplifies operational processes, significantly saves time, and quickly obtains physical parameters.
Smart Images

Figure CN119889501A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of petrochemical engineering, and in particular to a method, device, equipment and storage medium for determining physical property parameters. Background Art
[0002] In the field of petrochemicals, engineers and technicians need to know the physical parameters of various media under different conditions. Physical parameters are data that describe a certain characteristic of a medium, such as the viscosity and density of a gas.
[0003] Engineering technicians can obtain the corresponding physical property parameters of various media under different conditions based on the physical property curves and with the help of tools such as rulers.
[0004] The use of this method to determine physical property parameters has a complicated operation process and is time-consuming. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, device, apparatus and storage medium for determining physical property parameters, which can solve the technical problems existing in the related technologies. The technical solutions are as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a method for determining a physical property parameter, the method comprising:
[0007] Obtaining a target medium and a target condition, and obtaining a picture including a physical property curve diagram, wherein the physical property curve diagram includes a medium coordinate system, a condition coordinate axis, and a physical property coordinate axis, and the picture is established with a picture coordinate system;
[0008] Based on a first mapping relationship, converting a first coordinate of the target medium in the medium coordinate system to obtain a second coordinate in the image coordinate system, wherein the first mapping relationship is a mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system;
[0009] Based on a second mapping relationship, converting a third coordinate of the target condition in the conditional coordinate axis to obtain a fourth coordinate in the picture coordinate system, wherein the second mapping relationship is a mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the picture coordinate system;
[0010] determining a first straight line passing through the second coordinate and the fourth coordinate;
[0011] Determine a fifth coordinate of an intersection point between a second straight line corresponding to the physical property coordinate axis in the image coordinate system and the first straight line;
[0012] Based on a third mapping relationship, transform the fifth coordinate in the image coordinate system to obtain a sixth coordinate in the physical coordinate axis, wherein the third mapping relationship is a mapping relationship between the coordinate of the physical coordinate axis and the coordinate of the image coordinate system;
[0013] Based on the sixth coordinate, the value of the physical property parameter of the target medium under the target condition is determined.
[0014] In a possible implementation, before acquiring the target medium and the target condition, the method further includes:
[0015] Determine a first mapping relationship between the coordinates of the medium coordinate system and the coordinates of the image coordinate system, determine a second mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the image coordinate system, and determine a third mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system.
[0016] In a possible implementation manner, determining a first mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system includes:
[0017] Obtain the seventh coordinate of the first point of the medium coordinate system in the medium coordinate system and the eighth coordinate of the first point in the image coordinate system; obtain the ninth coordinate of the second point of the medium coordinate system in the medium coordinate system and the tenth coordinate of the second point in the image coordinate system; determine the first mapping relationship based on the seventh coordinate, the eighth coordinate, the ninth coordinate and the tenth coordinate.
[0018] In a possible implementation manner, determining the second mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the picture coordinate system includes:
[0019] Determine a plurality of axis segments included in the conditional coordinate axis;
[0020] For each axis segment, obtain the eleventh coordinate of the third point in the axis segment in the conditional coordinate axis and the twelfth coordinate of the third point in the image coordinate system; obtain the thirteenth coordinate of the fourth point in the axis segment in the conditional coordinate axis and the fourteenth coordinate of the fourth point in the image coordinate system; determine the segment mapping relationship corresponding to the axis segment based on the eleventh coordinate, the twelfth coordinate, the thirteenth coordinate and the fourteenth coordinate;
[0021] The segment mapping relationships of all axis segments are combined into the second mapping relationship.
[0022] In a possible implementation manner, determining a third mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system includes:
[0023] Determining a plurality of axis segments included in the physical property coordinate axis;
[0024] For each axis segment, obtain the fifteenth coordinate of the fifth point in the axis segment in the physical coordinate axis and the sixteenth coordinate of the fifth point in the image coordinate system; obtain the seventeenth coordinate of the sixth point in the axis segment in the physical coordinate axis and the eighteenth coordinate of the sixth point in the image coordinate system; determine the segment mapping relationship corresponding to the axis segment based on the fifteenth coordinate, the sixteenth coordinate, the seventeenth coordinate and the eighteenth coordinate;
[0025] The segment mapping relationships of all axis segments are combined into the third mapping relationship.
[0026] In a possible implementation manner, before determining the fifth coordinate of the intersection of the second straight line corresponding to the physical coordinate axis in the image coordinate system and the first straight line, the method further includes:
[0027] Obtain the nineteenth coordinate of the seventh point in the physical property coordinate axis in the image coordinate system, and obtain the twentieth coordinate of the eighth point in the physical property coordinate axis in the image coordinate system;
[0028] Based on the nineteenth coordinate and the twentieth coordinate, a second straight line corresponding to the physical coordinate axis in the image coordinate system is determined.
[0029] In a possible implementation manner, the method further includes: displaying the image, the first straight line, and the values of the physical property parameters on an interface.
[0030] In a second aspect, an embodiment of the present disclosure provides a device for determining a physical property parameter, the device comprising:
[0031] An acquisition module, used to acquire a target medium and a target condition, and acquire a picture including a physical property curve diagram, wherein the physical property curve diagram includes a medium coordinate system, a condition coordinate axis and a physical property coordinate axis, and the picture is established with a picture coordinate system;
[0032] a conversion module, configured to convert a first coordinate of the target medium in the medium coordinate system to obtain a second coordinate in the image coordinate system based on a first mapping relationship, wherein the first mapping relationship is a mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system;
[0033] The conversion module is further used to convert the third coordinate of the target condition in the conditional coordinate axis based on a second mapping relationship to obtain a fourth coordinate in the picture coordinate system, wherein the second mapping relationship is a mapping relationship between the coordinate of the conditional coordinate axis and the coordinate of the picture coordinate system;
[0034] A determination module, used for determining a first straight line passing through the second coordinate and the fourth coordinate;
[0035] The determination module is further used to determine a fifth coordinate of an intersection point between a second straight line corresponding to the physical property coordinate axis in the image coordinate system and the first straight line;
[0036] The conversion module is further used to convert the fifth coordinate in the image coordinate system based on a third mapping relationship to obtain a sixth coordinate in the physical coordinate axis, wherein the third mapping relationship is a mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system;
[0037] The determination module is further used to determine the value of the physical property parameter of the target medium under the target condition based on the sixth coordinate.
[0038] In a third aspect, a computer device is provided, the computer device comprising a memory and a processor, the memory being used to store computer instructions;
[0039] The processor executes the computer instructions stored in the memory to enable the computer device to perform the method of the first aspect and possible implementations thereof.
[0040] In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores computer program code, and when the computer program code is executed by a computer device, the computer device executes the method of the first aspect and its possible implementation methods.
[0041] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by a computer device, the computer device executes the method of the first aspect and possible implementations thereof.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0043] In the disclosed embodiment, based on the target medium and the target condition, the physical property parameters are determined by using the conversion relationship between the coordinate systems, i.e., the first mapping relationship, the second mapping relationship, and the third mapping relationship. This process is automatically performed by the computer without the need for cumbersome manual operations. The technician uses this method to determine the physical property parameters, which is not only simple to operate, but also can quickly obtain the physical property parameters, saving time. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 is a structural schematic diagram of a computer device provided by an embodiment of the present disclosure;
[0046] Figure 2 is a schematic diagram of a process for determining physical property parameters provided by an embodiment of the present disclosure;
[0047] Figure 3 It is a physical property curve diagram with a picture coordinate system provided by an embodiment of the present disclosure;
[0048] Figure 4 It is a structural schematic diagram of a device for determining physical property parameters provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0049] The embodiment of the present disclosure provides a method for determining physical property parameters, and the executor of the method can be a computer device, and the computer device can be a terminal device or a server. The terminal device can be a mobile phone, iPad, desktop computer, laptop computer, etc. The server can be a server of a certain application, a server of a cloud service, or a server for completing certain computing tasks, etc. The computer device can be a separate device, which can be responsible for all the processing in the following scheme; the computer device can also be composed of a terminal device and a server, for example, the terminal can receive data, and the server can obtain the received data and then generate a first mapping relationship, a second mapping relationship, and a third mapping relationship. The specific processing distribution situation can be arbitrarily set by the technician according to actual needs, and will not be repeated here. The embodiment of the present disclosure takes the computer device responsible for determining the physical property parameters as an example to explain the scheme in detail, and other situations are similar to it and will not be repeated.
[0050] like Figure 1 As shown, the computer device may include a processor 110, a memory 120, a communication component 130, a display component 140, and the like.
[0051] The processor 110 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP) or a digital signal processor (DSP). The processor may be used to execute various program instructions. For example, the processor may be used to determine physical property parameters.
[0052] The memory 120 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 120 may be used to store initial data, intermediate data, and result data used in the process of determining the physical property parameters, for example, to store the first mapping relationship, the second mapping relationship, and the third mapping relationship.
[0053] The communication component 130 may be a wired network connector, ultra wide band (UWB), wireless fidelity (WiFi) module, Bluetooth module, cellular network communication module, etc. The communication component 130 may be used to transmit data with other devices, and the other devices may be servers or terminals, etc. For example, receiving a medium whose physical property parameters need to be determined and condition parameters of the medium, etc.
[0054] The display component 140 can be an independent screen, or a screen integrated with the terminal body, a projector, etc. The screen can be a touch screen or a non-touch screen (which can be remotely written on). The display component 140 is used to display the system interface, application interface, etc. For example, the display component 140 can display a picture that includes a physical property curve diagram and has a picture coordinate system, a straight line, and the calculated values of physical property parameters, etc.
[0055] Generally, the method adopted by technicians to determine the medium parameters of a certain medium under certain conditions is to determine the physical property parameters based on tools such as physical property curves and rulers. The embodiment of the present disclosure provides a method for determining physical property parameters, which can automatically determine the value of the physical property parameters of the target medium under target conditions based on the target medium and target conditions. Figure 2 The processing flow of the method is shown, which may include the following steps:
[0056] Step 201, obtaining a picture including a physical property curve diagram, and establishing a picture coordinate system on the picture.
[0057] The physical property curve is represented by the medium coordinate system (such as Figure 3 The middle table shown), conditional coordinate axes (such as Figure 3 The coordinate axis corresponding to the temperature shown) and the physical property coordinate axis (such as Figure 3 The medium coordinate system is composed of three parts: the coordinate axis corresponding to the viscosity shown in the figure). The medium coordinate system is a two-dimensional coordinate system. Different media correspond to different coordinates. You can refer to Table 1. The X and Y corresponding to the medium shown in Table 1 are the coordinates of the medium in the medium coordinate system. The conditional coordinate axis and the physical property coordinate axis are one-dimensional. The numbers corresponding to the points on the conditional coordinate axis are the conditional values, and the numbers corresponding to the points on the physical property coordinate axis are the physical property values. The scales of the conditional coordinate axis and the physical property coordinate axis can be uniform or uneven, but unevenness does not mean that every scale of the coordinate axis is uneven. The conditional coordinate axis and the physical property coordinate axis can be divided into several axis segments, and the scales in each axis segment are uniform. The embodiment of the present disclosure takes the uneven scales of the conditional coordinate axis and the physical property coordinate axis as an example to explain the scheme in detail. Other situations are similar and will not be repeated.
[0058] Table 1
[0059]
[0060]
[0061] The method of obtaining the physical property parameters corresponding to a certain medium under a certain condition through the physical property curve is as follows: obtain the X and Y corresponding to the medium by looking up Table 1, and then obtain the coordinates corresponding to the medium in the medium coordinate system, mark the point corresponding to the coordinate in the medium coordinate system, and record it as point a; mark the point b corresponding to the condition on the condition coordinate axis; make a straight line passing through points a and b, and extend the straight line so that the straight line and the physical property coordinate axis have an intersection point c, and the number on the physical property coordinate axis corresponding to point c is the value of the physical property parameter corresponding to the medium under the condition.
[0062] The following is a further explanation with specific examples: Figure 3 As shown, to obtain the physical properties of carbon monoxide at a temperature of 300°C, by looking up Table 1, the X and Y corresponding to carbon monoxide are 11.0 and 20.0, and then the coordinates corresponding to carbon monoxide in the medium coordinate system are (11.0, 20.0). Mark the point corresponding to the coordinates in the medium coordinate system, that is, Figure 3 Point A in the figure; mark the point corresponding to the temperature of 300℃ on the conditional coordinate axis, that is, Figure 3 Point B in the figure; use a ruler or other tool to draw a straight line passing through points A and B, and extend the straight line so that the straight line intersects the physical property coordinate axis at point C. The number on the physical property coordinate axis corresponding to point C is estimated to be 0.029, that is, the physical property parameter of carbon monoxide at a temperature of 300°C is 0.029.
[0063] First, obtain a picture containing a physical property curve diagram. There are many ways to obtain a picture containing a physical property curve diagram, such as directly downloading the picture containing the physical property curve diagram from the Internet, or scanning the paper physical property curve diagram to obtain an electronic version of the picture containing the physical property curve diagram. The final picture containing the physical property curve diagram should be clear and standardized for subsequent use.
[0064] Then, a picture coordinate system is established on the picture. Figure 3 The scheme is described in detail by taking the picture coordinate system shown as an example. The x-axis of the picture coordinate system is parallel and in the same direction as the x-axis of the medium coordinate system of the physical property curve diagram, and the y-axis of the picture coordinate system is parallel to the y-axis of the medium coordinate system, the conditional coordinate axis and the physical property coordinate axis, and the y-axis of the picture coordinate system is in the same direction as the conditional coordinate axis and in the opposite direction to the y-axis of the medium coordinate system and the physical property coordinate axis.
[0065] Step 202, determine the first mapping relationship between the coordinates of the medium coordinate system in the physical property curve diagram and the coordinates of the image coordinate system, determine the second mapping relationship between the coordinates of the conditional coordinate axis in the physical property curve diagram and the coordinates of the image coordinate system, and determine the third mapping relationship between the coordinates of the physical property coordinate axis in the physical property curve diagram and the coordinates of the image coordinate system.
[0066] The first mapping relationship, the second mapping relationship and the third mapping relationship respectively record the mapping relationship of the coordinates of the same point in two different coordinate systems. The method for determining the first mapping relationship, the second mapping relationship and the third mapping relationship is as follows:
[0067] To determine each mapping relationship, it is necessary to first obtain the coordinates of certain points on the image containing the physical property curve diagram in the image coordinate system. There are many ways to obtain the coordinates, for example, it can be with the help of a certain image processing tool. The image processing tool can have an interactive interface. The user only needs to select a point on the image to get the position of the image pixel corresponding to the point in the image. The position is represented by coordinates. Based on the coordinates corresponding to the position, the coordinates of the point in the image coordinate system can be obtained. For example, an image recognition tool can be used to identify specific points, and then the coordinates of the point in the image coordinate system can be obtained. When determining the coordinates of a point on the image in the image coordinate system, there may be errors. A point can be selected multiple times to obtain multiple sets of coordinates, and then the average of these coordinates is taken as the coordinate in the coordinate system corresponding to the point. Based on the above technology, each mapping relationship is determined. The following is a detailed introduction to the method of determining the mapping relationship:
[0068] Determine the first mapping relationship:
[0069] The first mapping relationship records the mapping relationship between the coordinates of the medium coordinate system in the physical property curve diagram and the coordinates of the image coordinate system.
[0070] The first mapping relationship can be obtained by acquiring the coordinates of two points in the medium coordinate system in the medium coordinate system and the coordinates of two points in the image coordinate system respectively.
[0071] For example, Figure 3 As shown, obtain the Z in the medium coordinate system 1 Point and Z 2 The coordinates of the point in the medium coordinate system and the coordinates in the image coordinate system, Z 1 The coordinates of the point in the medium coordinate system are (m 1 ,n 1 )(Z 1 The coordinates of the point in the medium coordinate system are (0,0)), and the coordinates in the image coordinate system are (a 1 ,b 1 ), Z 2 The coordinates of the point in the medium coordinate system are (m 2 ,n 2 )(Z 2 The coordinates of the point in the medium coordinate system are (18,30)), and the coordinates in the image coordinate system are (a 2 ,b 2 ). Based on four sets of coordinates, namely (m 1 ,n 1 )、(a 1 ,b 1 )、(m 2 ,n 2 ) and (a 2 ,b 2 ) can obtain the coordinate conversion relationship between the medium coordinate system and the image coordinate system. Through a series of mathematical operations, the conversion relationship (i.e., the first mapping relationship) can be obtained as follows:
[0072]
[0073] Among them, (x, y) is the coordinate of a point in the medium coordinate system, and (x', y') is the coordinate of the point in the image coordinate system.
[0074] Determine the second mapping relationship:
[0075] The second mapping relationship records the mapping relationship between the coordinates of the conditional coordinate axis in the physical property curve diagram and the coordinates of the image coordinate system. The scale of the conditional coordinate axis is uneven, and the conditional coordinate axis includes multiple axis segments, and the scale of each axis segment is uniform.
[0076] For each axis segment, the mapping relationship between the axis segment and the image coordinate system is determined by obtaining the coordinates of two points in the axis segment in the conditional coordinate axis and the image coordinate system, respectively, to obtain the mapping relationship corresponding to the axis segment. Then, the mapping relationships corresponding to all axis segments are combined to obtain the second mapping relationship.
[0077] The conditional coordinate axis can be divided into several segments according to the scale value. The scale value of each segment is the same. Suppose the scale values are v 1 、v 2 、v 3 ..., for example, Figure 3 As shown, the conditional coordinate axis includes 11 axis segments, namely, the axis segment between -100℃ and 0℃, the axis segment between 0℃ and 100℃, the axis segment between 100℃ and 200℃, the axis segment between 200℃ and 300℃, the axis segment between 300℃ and 400℃, the axis segment between 400℃ and 500℃, the axis segment between 500℃ and 600℃, the axis segment between 600℃ and 700℃, the axis segment between 700℃ and 800℃, the axis segment between 800℃ and 900℃, and the axis segment between 900℃ and 1000℃.
[0078] Get v 1 to v 2 The axis segment between (v 1 Corresponding to -100℃, v 2 Corresponding to 0℃), first get v 1 to v 2 T in the axis segment 1 Dot and T 2 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system, T 1 The coordinate of the point in the conditional coordinate axis is r 1 (T 1 The coordinate of the point in the conditional coordinate system is -100), T 1 The coordinates of the point in the image coordinate system are (c 1 ,d 1 ), T 2 The coordinate of the point in the conditional coordinate axis is r 2 (T 2 The coordinate of the point in the conditional coordinate system is 0), T 2 The coordinates of the point in the image coordinate system are (c 1 ,d 2 ). We can get T 1 Dot and T 2 The horizontal coordinates of the points in the image coordinate system are the same, both c 1 , because the conditional coordinate axis is parallel to the y-axis in the image coordinate system. Based on four sets of coordinates, namely r 1 、(c1 ,d 1 ), r 2 and (c 1 ,d 2 ) can get the coordinate conversion relationship between the conditional coordinate axis and the image coordinate system. Through a series of mathematical operations, the conversion relationship can be obtained as follows:
[0079]
[0080] Among them, y is the coordinate of a point in the conditional coordinate axis, (x',y') is the coordinate of the point in the image coordinate system, and the range of y is between -100 and 0.
[0081] According to the above processing method, get v 2 to v 3 The axis segment between (v 2 Corresponding to 0℃, v 3 Corresponding to 100℃) in T 3 Dot and T 4 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system, get v 3 to v 4 The axis segment between (v 3 Corresponding to 100℃, v 4 Corresponding to T at 200℃ 5 Dot and T 6 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system, and so on, until v is obtained 11 to v 12 The axis segment between (v 11 Corresponding to 900℃, v 12 Corresponding to 1000℃) T 21 Dot and T 22 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system. Let point T i The coordinate in the conditional coordinate axis is r i , the coordinates in the image coordinate system are (c 1 ,d i ), and then we can get the second mapping relationship:
[0082] x′=c 1
[0083]
[0084] Among them, y is the coordinate of a point in the conditional coordinate axis, and (x',y') is the coordinate of the point in the image coordinate system.
[0085] For further example: Assume that the coordinate of the point with coordinate 100 in the conditional coordinate axis corresponds to (c1 ,d 3 ), the coordinates of the point with coordinate 200 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 4 ), the coordinates of the point with coordinate 300 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 5 ), the coordinates of the point with coordinate 400 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 6 ) The coordinates of the point with a coordinate of 500 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 7 ), the coordinates of the point with coordinate 600 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 8 ), the coordinates of the point with coordinate 700 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 9 ), the coordinates of the point with coordinate 800 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 10 ), the coordinates of the point with coordinate 900 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 11 ), the coordinates of the point with coordinate 1000 in the conditional coordinate axis in the image coordinate system are (c 1 ,d 12 ). The second mapping relationship can be obtained:
[0086] x′=c 1
[0087]
[0088] Among them, y is the coordinate of a point in the conditional coordinate axis, and (x',y') is the coordinate of the point in the image coordinate system.
[0089] Determine the third mapping relationship:
[0090] The third mapping relationship records the mapping relationship between the coordinates of the physical property coordinate axis in the physical property curve diagram and the coordinates of the image coordinate system. The scale of the physical property coordinate axis is uneven, and the physical property coordinate axis includes multiple axis segments, and the scale of each axis segment is uniform.
[0091] For each axis segment, the mapping relationship between the axis segment and the image coordinate system is determined by obtaining the coordinates of two points in the axis segment in the physical coordinate axis and the image coordinate system, respectively, to obtain the mapping relationship corresponding to the axis segment. Then, the mapping relationships corresponding to all axis segments are combined to obtain the third mapping relationship.
[0092] The physical coordinate axis can be divided into several segments according to the scale value. The scale value of each segment is the same. Assume that the scale values are w 1 、w 2 、w 3 ..., for example, Figure 3 As shown, the physical property coordinate axis includes 11 axis segments, namely, the axis segment between 0.1 and 0.06, the axis segment between 0.06 and 0.05, the axis segment between 0.05 and 0.04, the axis segment between 0.04 and 0.03, the axis segment between 0.03 and 0.02, the axis segment between 0.02 and 0.01, the axis segment between 0.01 and 0.009, the axis segment between 0.009 and 0.008, the axis segment between 0.008 and 0.007, the axis segment between 0.007 and 0.006, and the axis segment between 0.006 and 0.005.
[0093] Get w 1 to w 2 The shaft segment between 1 Corresponding to 0.1, w 2 Corresponding to 0.06), first get w 1 to w 2 P in the shaft segment 1 Point and P 2 The coordinates of the point in the physical coordinate axis and the coordinates in the image coordinate system, P 1 The coordinate of the point in the physical coordinate axis is s 1 (P 1 The coordinate of the point in the physical coordinate axis is 0.1), P 1 The coordinates of the point in the image coordinate system are (f 1 ,g 1 ), P 2 The coordinate of the point in the physical coordinate axis is s 2 (P 2 The coordinate of the point in the physical coordinate axis is 0.06), P 2 The coordinates of the point in the image coordinate system are (f 1 ,g 2 ). We can get P 1 Point and P 2 The horizontal coordinates of the points in the image coordinate system are the same, all f 1 , because the physical coordinate axis is parallel to the y-axis in the image coordinate system. Based on four sets of coordinates, namely s1 、(f 1 ,g 1 ),s 2 and (f 1 ,g 2 ) can get the coordinate conversion relationship between the physical coordinate axis and the image coordinate system. Through a series of mathematical operations, the conversion relationship can be obtained as follows:
[0094]
[0095] Among them, y is the coordinate of a point in the physical coordinate axis, (x',y') is the coordinate of the point in the image coordinate system, and the range of y is between 0.06 and 0.1.
[0096] According to the above processing method, get w 2 to w 3 The shaft segment between 2 Corresponding to 0.06, w 3 Corresponding to P in 0.05) 3 Point and P 4 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system, get w 3 to w 4 The shaft segment between 3 Corresponding to 0.05, w 4 Corresponding to P in 0.04) 5 Point and P 6 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system, and so on, until w is obtained 11 to w 12 The shaft segment between 11 Corresponding to 0.006, w 12 Corresponding to P in 0.005) 21 Point and P 22 The coordinates of the point in the conditional coordinate axis and the coordinates in the image coordinate system. Let point P i The coordinate in the conditional coordinate axis is s i , the coordinates in the image coordinate system are (f 1 ,g i ), and then we can get the third mapping relationship:
[0097] x'=f 1
[0098]
[0099] Among them, y is the coordinate of a point in the physical coordinate axis, and (x',y') is the coordinate of the point in the image coordinate system.
[0100] For further example: Assume that the coordinate of the point with coordinate 0.05 in the physical coordinate axis corresponds to (f 1 ,g 3 ), the coordinate of the point with a coordinate of 0.04 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 4 ), the coordinate of the point with a coordinate of 0.03 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 5 ), the coordinate of the point with a coordinate of 0.02 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 6 ) The coordinate of the point with a coordinate of 0.01 in the physical coordinate axis in the image coordinate system is (f 1 ,g 7 ), the coordinate of the point with a coordinate of 0.009 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 8 ), the coordinate of the point with coordinate 0.008 in the physical coordinate axis corresponds to (f 1 ,g 9 ), the coordinate of the point with a coordinate of 0.007 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 10 ), the coordinate of the point with a coordinate of 0.006 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 11 ), the coordinate of the point with a coordinate of 0.005 in the physical coordinate axis corresponds to the coordinate of (f 1 ,g 12 ). The third mapping relationship can be obtained:
[0101] x'=f 1
[0102]
[0103] Among them, y is the coordinate of a point in the physical coordinate axis, and (x',y') is the coordinate of the point in the image coordinate system.
[0104] Step 203: Based on the first mapping relationship, convert the first coordinate of the target medium in the medium coordinate system to obtain the second coordinate in the image coordinate system.
[0105] The first mapping relationship is the mapping relationship between the coordinates of the medium coordinate system and the coordinates of the image coordinate system. Assume that the coordinates of the target medium in the medium coordinate system are (h 1 ,k 1 ), that is, the first coordinate, (h 1 ,k1 ) is brought into the function corresponding to the first mapping relationship, the coordinates of the target medium in the image coordinate system can be obtained, assuming that (h 2 ,k 2 ), which is the second coordinate.
[0106] Step 204: based on the second mapping relationship, transform the third coordinate of the target condition in the condition coordinate axis to obtain a fourth coordinate in the picture coordinate system.
[0107] The second mapping relationship is the mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the image coordinate system. Assume that the coordinates of the target condition in the conditional coordinate axis are l 1 , that is, the third coordinate, l 1 Substituting into the function corresponding to the second mapping relationship, we can get the coordinates of the target condition in the image coordinate system, assuming that (c 1 ,l 2 ), which is the fourth coordinate.
[0108] Step 205: determine a first straight line passing through the second coordinate and the fourth coordinate.
[0109] The second coordinate and the fourth coordinate are both coordinates in the image coordinate system. Based on the second coordinate and the fourth coordinate, the equation of the straight line in the image coordinate system, i.e., the first straight line, can be determined. 2 ,k 2 ) and (c 1 ,l 2 ) can get the equation of the straight line, assuming that the equation of the straight line is y=kx+b, where k and b can be calculated through the second coordinate and the fourth coordinate.
[0110] Step 206 , determining the fifth coordinate of the intersection point between the second straight line and the first straight line corresponding to the physical coordinate axis in the image coordinate system.
[0111] The second straight line can be determined by the coordinates of the two points on the physical coordinate axis in the image coordinate system. Based on the method of determining the third mapping relationship in step 202, the second straight line can be obtained as x=f 1 . Then we can get y=kx+b and x=f 1 The intersection point is (f 1 ,kf 1 +b), that is, the fifth coordinate is (f 1 ,kf 1 +b).
[0112] Step 207: based on the third mapping relationship, transform the fifth coordinate in the image coordinate system to obtain the sixth coordinate in the physical coordinate axis.
[0113] The third mapping relationship is the mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system. Assume that the fifth coordinate (f 1 ,kf 1 +b) corresponds to the coordinate of the physical coordinate axis p 1 , which is the sixth coordinate.
[0114] Step 208: Determine the value of the physical property parameter of the target medium under the target condition based on the sixth coordinate.
[0115] The value of the sixth coordinate is the value of the physical property parameter of the target medium under the target conditions, that is, the physical property parameter of the target medium under the target conditions is p 1 .
[0116] In addition, relevant graphic display software can also be used to display on a terminal or server a picture containing a physical property curve graph and an established picture coordinate system, points corresponding to the target medium and target conditions, values of the physical property parameters corresponding to the target medium under the target conditions, the first straight line (i.e., a straight line passing through the points corresponding to the target medium and target conditions), and other information.
[0117] In the disclosed embodiment, based on the target medium and the target condition, the physical property parameters are determined by using the conversion relationship between the coordinate systems, i.e., the first mapping relationship, the second mapping relationship, and the third mapping relationship. This process is automatically performed by the computer without the need for cumbersome manual operations. The technician uses this method to determine the physical property parameters, which is not only simple to operate, but also can quickly obtain the physical property parameters, saving time.
[0118] Based on the same technical concept, the embodiment of the present disclosure provides a device for determining physical property parameters, which can be applied to the computer device in the above embodiment. Figure 4 As shown, the device comprises:
[0119] An acquisition module 410 is used to acquire a target medium and a target condition, and acquire a picture including a physical property curve diagram, wherein the physical property curve diagram includes a medium coordinate system, a condition coordinate axis, and a physical property coordinate axis, and the picture is established with a picture coordinate system;
[0120] A conversion module 420, configured to convert a first coordinate of the target medium in the medium coordinate system to obtain a second coordinate in the image coordinate system based on a first mapping relationship, wherein the first mapping relationship is a mapping relationship between the coordinates of the medium coordinate system and the coordinates of the image coordinate system;
[0121] The conversion module 420 is further configured to convert the third coordinate of the target condition in the conditional coordinate axis based on a second mapping relationship to obtain a fourth coordinate in the image coordinate system, wherein the second mapping relationship is a mapping relationship between the coordinate of the conditional coordinate axis and the coordinate of the image coordinate system;
[0122] A determination module 430, configured to determine a first straight line passing through the second coordinate and the fourth coordinate;
[0123] The determination module 430 is further used to determine a fifth coordinate of an intersection point between a second straight line corresponding to the physical property coordinate axis in the image coordinate system and the first straight line;
[0124] The conversion module 420 is further configured to convert the fifth coordinate in the image coordinate system based on a third mapping relationship to obtain a sixth coordinate in the physical coordinate axis, wherein the third mapping relationship is a mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system;
[0125] The determination module 430 is further configured to determine the value of the physical property parameter of the target medium under the target condition based on the sixth coordinate.
[0126] It should be noted that the acquisition module 410, the conversion module 420 and the determination module 430 may be implemented by a processor, or by a processor in conjunction with a memory.
[0127] In the disclosed embodiment, based on the target medium and the target condition, the physical property parameters are determined by using the conversion relationship between the coordinate systems, i.e., the first mapping relationship, the second mapping relationship, and the third mapping relationship. This process is automatically performed by the computer without the need for cumbersome manual operations. The technician uses this method to determine the physical property parameters, which is not only simple to operate, but also can quickly obtain the physical property parameters, saving time.
[0128] It should be noted that: the device for determining physical property parameters provided in the above embodiment only uses the division of the above functional modules as an example when performing the process of determining physical property parameters. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for positioning the device provided in the above embodiment and the method embodiment for positioning the device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the device, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the device or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, and a tape, etc.), or an optical medium (e.g., a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (e.g., a solid-state hard disk, etc.).
[0130] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0131] The above description is only one embodiment of the present disclosure and is not intended to limit the present disclosure. Any modification, equivalent substitution, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for determining physical property parameters, characterized in that: The method comprises: Obtaining a target medium and a target condition, and obtaining a picture including a physical property curve diagram, wherein the physical property curve diagram includes a medium coordinate system, a condition coordinate axis, and a physical property coordinate axis, and the picture is established with a picture coordinate system; Based on a first mapping relationship, converting a first coordinate of the target medium in the medium coordinate system to obtain a second coordinate in the image coordinate system, wherein the first mapping relationship is a mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system; Based on a second mapping relationship, converting a third coordinate of the target condition in the conditional coordinate axis to obtain a fourth coordinate in the picture coordinate system, wherein the second mapping relationship is a mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the picture coordinate system; determining a first straight line passing through the second coordinate and the fourth coordinate; Determine a fifth coordinate of an intersection point between a second straight line corresponding to the physical property coordinate axis in the image coordinate system and the first straight line; Based on a third mapping relationship, transform the fifth coordinate in the image coordinate system to obtain a sixth coordinate in the physical coordinate axis, wherein the third mapping relationship is a mapping relationship between the coordinate of the physical coordinate axis and the coordinate of the image coordinate system; Based on the sixth coordinate, the value of the physical property parameter of the target medium under the target condition is determined.
2. The method according to claim 1, characterized in that Before obtaining the target medium and the target condition, the method further includes: Determine a first mapping relationship between the coordinates of the medium coordinate system and the coordinates of the image coordinate system, determine a second mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the image coordinate system, and determine a third mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system.
3. The method according to claim 2, characterized in that The determining of a first mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system includes: Obtain the seventh coordinate of the first point of the medium coordinate system in the medium coordinate system and the eighth coordinate of the first point in the image coordinate system; obtain the ninth coordinate of the second point of the medium coordinate system in the medium coordinate system and the tenth coordinate of the second point in the image coordinate system; determine the first mapping relationship based on the seventh coordinate, the eighth coordinate, the ninth coordinate and the tenth coordinate.
4. The method according to claim 2, characterized in that: The determining of the second mapping relationship between the coordinates of the conditional coordinate axis and the coordinates of the picture coordinate system includes: Determine a plurality of axis segments included in the conditional coordinate axis; For each axis segment, obtain the eleventh coordinate of the third point in the axis segment in the conditional coordinate axis and the twelfth coordinate of the third point in the image coordinate system; obtain the thirteenth coordinate of the fourth point in the axis segment in the conditional coordinate axis and the fourteenth coordinate of the fourth point in the image coordinate system; determine the segment mapping relationship corresponding to the axis segment based on the eleventh coordinate, the twelfth coordinate, the thirteenth coordinate and the fourteenth coordinate; The segment mapping relationships of all axis segments are combined into the second mapping relationship.
5. The method according to claim 2, characterized in that: The determining of the third mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system includes: Determining a plurality of axis segments included in the physical property coordinate axis; For each axis segment, obtain the fifteenth coordinate of the fifth point in the axis segment in the physical coordinate axis and the sixteenth coordinate of the fifth point in the image coordinate system; obtain the seventeenth coordinate of the sixth point in the axis segment in the physical coordinate axis and the eighteenth coordinate of the sixth point in the image coordinate system; determine the segment mapping relationship corresponding to the axis segment based on the fifteenth coordinate, the sixteenth coordinate, the seventeenth coordinate and the eighteenth coordinate; The segment mapping relationships of all axis segments are combined into the third mapping relationship.
6. The method according to claim 1, characterized in that Before determining the fifth coordinate of the intersection of the second straight line corresponding to the physical coordinate axis in the image coordinate system and the first straight line, the method further includes: Obtain the nineteenth coordinate of the seventh point in the physical property coordinate axis in the image coordinate system, and obtain the twentieth coordinate of the eighth point in the physical property coordinate axis in the image coordinate system; Based on the nineteenth coordinate and the twentieth coordinate, a second straight line corresponding to the physical coordinate axis in the image coordinate system is determined.
7. The method according to any one of claims 1 to 6, characterized in that: The method further comprises: The picture, the first straight line and the values of the physical property parameters are displayed on the interface.
8. A device for determining physical property parameters, characterized in that: The device comprises: An acquisition module, used to acquire a target medium and a target condition, and acquire a picture including a physical property curve diagram, wherein the physical property curve diagram includes a medium coordinate system, a condition coordinate axis and a physical property coordinate axis, and the picture is established with a picture coordinate system; a conversion module, configured to convert a first coordinate of the target medium in the medium coordinate system to obtain a second coordinate in the image coordinate system based on a first mapping relationship, wherein the first mapping relationship is a mapping relationship between coordinates of the medium coordinate system and coordinates of the image coordinate system; The conversion module is further used to convert the third coordinate of the target condition in the conditional coordinate axis based on a second mapping relationship to obtain a fourth coordinate in the picture coordinate system, wherein the second mapping relationship is a mapping relationship between the coordinate of the conditional coordinate axis and the coordinate of the picture coordinate system; A determination module, used for determining a first straight line passing through the second coordinate and the fourth coordinate; The determination module is further used to determine a fifth coordinate of an intersection point between a second straight line corresponding to the physical property coordinate axis in the image coordinate system and the first straight line; The conversion module is further used to convert the fifth coordinate in the image coordinate system based on a third mapping relationship to obtain a sixth coordinate in the physical coordinate axis, wherein the third mapping relationship is a mapping relationship between the coordinates of the physical coordinate axis and the coordinates of the image coordinate system; The determination module is further used to determine the value of the physical property parameter of the target medium under the target condition based on the sixth coordinate.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory is used to store computer instructions; The processor executes the computer instructions stored in the memory to enable the computer device to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program codes. When the computer program codes are executed by a computer device, the computer device executes the method according to any one of claims 1 to 7.