Fund analysis image generation method, electronic equipment and storage medium
Through the fund analysis image generation method, the trigonometric function is used to draw the fund analysis flow chart, which solves the problem of difficult to display the capital inflow relationship in the existing technology, and improves audit efficiency and analysis accuracy.
Patent Information
- Application Number
- CN202411112707.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-27
AI Technical Summary
It is difficult for existing technology to effectively display and analyze the inflow and outflow relationship of large amounts of capital data, resulting in inefficient audits and errors in analysis.
A method of capital analysis image generation, by obtaining flow transaction information, using trigonometric function to determine the positional relationship and transaction direction between trading objects, and drawing a capital analysis flow chart, including capital inflow, outflow and inflow outflow analysis chart to realize the capital relationship two-way image display.
It improves the work efficiency of auditors, avoids the steps of data sorting, saves energy, and can clearly grasp the flow of funds, level and amount of funds, ensuring the accuracy and completeness of analysis.
Smart Images

Figure CN119205972A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fund analysis, and in particular to a fund analysis image generation method, electronic equipment and storage medium. Background Art
[0002] For the National Audit Office, audit work often involves hundreds of thousands of financial data. Staff members need to manually sort out and analyze the flow of hundreds of thousands of data and observe business personnel. They also need to manually conduct multi-layer analysis of the transaction data of a certain audit object to avoid using family members or friends to do illegal things. The above situations are time-consuming, labor-intensive, inefficient and difficult to carry out.
[0003] At present, in order to improve audit efficiency, the visualization technology of capital analysis is usually adopted, and statistical analysis is carried out using report charts, tree diagrams, etc. These technologies have the advantages of being simple and easy to understand, but they cannot track data; for example, report charts cannot show the relationship of capital flow; tree diagrams have a one-way direction and cannot show the relationship between inflows and outflows at the same time, which can easily lead to analysis omissions. Summary of the invention
[0004] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a method for generating a fund analysis image, an electronic device and a storage medium, which can display the fund relationship in an image and fully display the fund inflow and outflow relationship.
[0005] In a first aspect, a method for generating a fund analysis image according to an embodiment of the present invention comprises the following steps:
[0006] Get transaction information;
[0007] Determine an analysis object, and determine a next-layer transaction object of the analysis object according to the transaction flow information; the analysis object is a first-layer transaction object, and the next-layer transaction object of the analysis object is a second-layer transaction object;
[0008] Determine the next level of transaction objects of each level of transaction objects until a preset level is reached;
[0009] Determine the positional relationship between each of the transaction objects by using a trigonometric positioning method;
[0010] Determining transaction directions between the transaction objects at adjacent layers;
[0011] A funds analysis flow diagram is drawn according to the positional relationship and the transaction direction; the funds analysis flow diagram includes at least one of a funds inflow analysis diagram, a funds outflow analysis diagram, and a funds inflow and outflow analysis diagram.
[0012] According to some embodiments of the present invention, the step of determining the positional relationship between each of the transaction objects by positioning using a trigonometric function includes:
[0013] Determine the size of the canvas;
[0014] Determine a first radius of an arc between the transaction objects of adjacent layers according to the preset level and the size of the canvas; wherein the transaction objects of the next layer corresponding to each transaction object of the current layer are located on an arc with the transaction object of the current layer as the center and the first radius as the radius;
[0015] Determining a second radius of each node; each of the nodes represents the corresponding transaction object other than the analysis object;
[0016] Determine the angle occupied by each of the nodes on the corresponding arc according to the first radius and the second radius;
[0017] Determine the angle range of the arc according to the angle occupied by each node on the corresponding arc and the number of preset nodes of the arc;
[0018] The coordinates of each node are determined according to the angle range of the arc, the coordinates of the center of the arc, and the actual number of nodes on the arc.
[0019] According to some embodiments of the present invention, the step of determining the angle range of the arc according to the angle occupied by each node on the corresponding arc and the number of preset nodes of the arc includes:
[0020] Between adjacent nodes on the arc, a preset angle range is added to display the name of the transaction object corresponding to each node;
[0021] The angle range of the arc is determined according to the angle occupied by each of the nodes on the corresponding arc, the preset angle range, and the preset number of nodes of the arc.
[0022] According to some embodiments of the present invention, the step of drawing a fund analysis flow diagram according to the position relationship and the transaction direction includes:
[0023] Drawing each of the nodes in sequence on the canvas according to the coordinates of each of the nodes;
[0024] Connecting each of the nodes according to the transaction relationship of each of the transaction objects;
[0025] According to the transaction direction, the color corresponding to the connection line is determined, or an arrow with a corresponding direction is added to the connection line; the color of the connection line or the direction of the arrow represents the transaction direction.
[0026] According to some embodiments of the present invention, the step of sequentially drawing each of the nodes on the canvas according to the coordinates of each of the nodes further includes:
[0027] Determine the distance between the center of the newly drawn node and the adjacent node;
[0028] When the circle center distance is smaller than the diameter of the node, the coordinates of the newly drawn node are adjusted so that the circle center distance is greater than or equal to the diameter of the node.
[0029] According to some embodiments of the present invention, when the circle center distance is smaller than the diameter of the node, the step of adjusting the coordinates of the newly drawn node so that the circle center distance is greater than or equal to the diameter of the node comprises:
[0030] When the center distance is smaller than the diameter of the node, the horizontal coordinate of the newly drawn node is kept unchanged, and the vertical coordinate of the newly drawn node is changed so that the center distance is greater than or equal to the diameter of the node.
[0031] According to some embodiments of the present invention, the angle occupied by each node on the corresponding arc is calculated as follows:
[0032]
[0033] Among them, α represents the angle occupied by the node on the corresponding arc, r1 represents the first radius, and r2 represents the second radius.
[0034] According to some embodiments of the present invention, the step of obtaining transaction flow information includes:
[0035] Import an Excel sheet containing transaction information; the transaction information includes: account number, account number, transaction date, transaction amount, balance, and transaction counterparty;
[0036] During the import process, the authenticity of the transaction flow information is verified.
[0037] In a second aspect, an electronic device according to an embodiment of the present invention includes:
[0038] A memory for storing program instructions;
[0039] The processor is used to call the program instructions stored in the memory and execute the method for generating a funds analysis image described in the embodiment of the first aspect according to the obtained program instructions.
[0040] In a third aspect, a storage medium according to an embodiment of the present invention stores computer executable instructions, and the computer executable instructions are used to enable a computer to execute the method for generating a funds analysis image described in the embodiment of the first aspect.
[0041] According to the fund analysis image generation method, electronic device and storage medium of the embodiment of the present invention, there are at least the following beneficial effects: by importing the transaction information of the flow water, and then using trigonometric functions to construct a bidirectional, concise and intuitive fund analysis flow diagram, auditors can directly skip the step of data combing, saving a lot of energy, and the fund analysis flow diagram has a multi-dimensional analysis function, which effectively assists auditors to clearly grasp the flow direction, level and amount of funds, effectively improves the work efficiency of auditors, and avoids analysis errors caused by incomplete flow relationship. The method can display the fund relationship in a graphical way, quickly comb a large amount of fund data, and can intuitively display the fund relationship. The relationship diagram is bidirectional, can fully display the fund inflow and outflow relationship, and clearly display the flow direction relationship.
[0042] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0044] Figure 1 A flowchart of the method for generating a fund analysis image according to an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a fund analysis flow diagram with a preset level of 2 according to an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of a fund analysis flow diagram with a preset level of 3 according to an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of a capital inflow analysis diagram according to an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a capital outflow analysis diagram according to an embodiment of the present invention;
[0049] Figure 6 A schematic diagram of a capital inflow and outflow analysis diagram according to an embodiment of the present invention. DETAILED DESCRIPTION
[0050] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0051] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0052] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0053] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0054] For the National Audit Office, audit work often involves hundreds of thousands of financial data. Staff members need to manually sort out and analyze the flow of hundreds of thousands of data and observe business personnel. They also need to manually conduct multi-layer analysis of the transaction data of a certain audit object to avoid using family members or friends to do illegal things. The above situations are time-consuming, labor-intensive, inefficient and difficult to carry out.
[0055] At present, in order to improve audit efficiency, the visualization technology of capital analysis is usually adopted, and statistical analysis is carried out using report charts, tree diagrams, etc. These technologies have the advantages of being simple and easy to understand, but they cannot track data; for example, report charts cannot show the relationship of capital flow; tree diagrams have a one-way direction and cannot show the relationship between inflows and outflows at the same time, which can easily lead to analysis omissions.
[0056] To this end, the embodiment of the present invention provides a method for generating a fund analysis image, an electronic device, and a storage medium. By importing transaction information, a bidirectional, concise, and intuitive fund analysis flow diagram is constructed using trigonometric functions, so that auditors can directly skip the step of data combing, saving a lot of energy. Moreover, the fund analysis flow diagram has a multi-dimensional analysis function, which effectively assists auditors to clearly grasp the flow, level, and amount of funds, effectively improves the work efficiency of auditors, and avoids analysis errors caused by incomplete presentation of flow relationships. The method can display fund relationships in a graphical manner, quickly comb through a large amount of fund data, and can intuitively display fund relationships. The relationship diagram is bidirectional, can fully display the relationship between fund inflows and outflows, and clearly display the flow relationship.
[0057] The following is combined with Figure 1-6 , describe in detail the fund analysis image generation method, electronic device and storage medium of the embodiments of the present invention.
[0058] On the one hand, the embodiment of the present invention provides a method for generating a fund analysis image, such as Figure 1 As shown, the method comprises the following steps:
[0059] Step S100: Obtain transaction flow information;
[0060] By obtaining transaction flow information, all transaction counterparties related to the specified analysis object can be found based on a large amount of transaction flow information.
[0061] In this example, in order to obtain transaction flow information, step S100 includes the following two steps:
[0062] (1) Import an Excel spreadsheet containing transaction information; transaction information includes: account number, account number, transaction date, transaction amount, balance, and counterparty;
[0063] (2) During the import process, verify the authenticity of transaction information.
[0064] Specifically, an Excel sheet containing a large amount of transaction flow information is imported. The required fields of transaction flow information include: local account number, local account, transaction date, transaction amount, balance, transaction counterparty, etc. This information is used to find the transaction counterparty related to the specified analysis object. At the same time, during the import process, the authenticity of these transaction flow information will be verified, including checking whether the transaction date and transaction balance are consistent, etc., to further ensure the accuracy of the analysis.
[0065] Step S200: determining the analysis object, and determining the next-layer transaction object of the analysis object according to the transaction flow information; the analysis object is the first-layer transaction object, and the next-layer transaction object of the analysis object is the second-layer transaction object;
[0066] Specifically, in order to conduct capital analysis, it is first necessary to determine the analysis object to be analyzed, and then obtain the transaction flow with the analysis object in the transaction flow information, so as to filter out the transaction counterparties associated with the analysis object. After finding the relevant information containing the analysis object in the transaction flow information, the transaction objects directly associated with the analysis object can be determined, and these directly associated transaction objects are used as the next-layer transaction objects of the analysis object. It should be noted that in the analysis process, the analysis object is used as the first-layer transaction object, and the next-layer transaction objects of the analysis object are used as the second-layer transaction objects.
[0067] Step S300: determining the next layer of transaction objects of each layer of transaction objects until a preset level is reached;
[0068] Specifically, after obtaining the second-layer transaction object, if the preset level is greater than two levels, further search for the related transaction objects of each transaction object in the second-layer transaction object, and take all the related transaction objects of the second-layer transaction object as the third-layer transaction object; and so on, all transaction objects associated with the third-layer transaction object can be found as the fourth-layer transaction object. Expand layer by layer until the preset level is reached. Since the amount of transaction flow is very large, we need to control the level and cannot extend it endlessly to avoid node overlap and excessive data. Assuming the preset level is 5, you can stop after finding the fifth-layer transaction object; if the preset level is 2, you can stop after finding the next layer of transaction objects of the analysis object. The specific number of preset levels can be set according to actual needs.
[0069] Step S400: Determine the positional relationship between each transaction object by using a trigonometric positioning method;
[0070] Specifically, after finding the transaction objects of the preset level, it is necessary to locate the position of each level of transaction objects through the positioning method of trigonometric functions.
[0071] In this example, in order to determine the positional relationship between each transaction object, step S400 includes the following six steps:
[0072] (1) Determine the size of the canvas;
[0073] (2) determining a first radius of an arc between transaction objects in adjacent layers according to a preset level and a size of the canvas; wherein the transaction object in the next layer corresponding to each transaction object in the current layer is located on an arc with the transaction object in the current layer as the center and the first radius as the radius;
[0074] (3) determining a second radius of each node; each node represents a corresponding transaction object other than the analysis object;
[0075] (4) determining the angle occupied by each node on the corresponding arc according to the first radius and the second radius;
[0076] (5) determining the angle range of the arc according to the angle occupied by each node on the corresponding arc and the number of preset nodes of the arc;
[0077] (6) Determine the coordinates of each node based on the angle range of the arc, the coordinates of the center of the arc, and the actual number of nodes on the arc.
[0078] Specifically, the canvas refers to the display interface of the final generated capital analysis flow chart, which can be the drawing interface of a drawing software or the display interface of a display platform. Let the size of the canvas be a*b (px), the number of preset levels be c, then the first radius is:
[0079]
[0080] Assuming that the size of the canvas is 750*550px and the preset layer is 5 layers, the first radius is r1=750 / 5=150px.
[0081] like Figure 2 The following is a schematic diagram of the capital analysis flow chart when the preset level is 2. Figure 3 The figure shows a schematic diagram of the capital analysis flow chart when the preset level is 3. It can be found that the transaction objects of adjacent layers are expanded in the form of arcs, that is, all the transaction objects corresponding to each transaction object in the next layer are located on the arc with the transaction object of the current layer as the center and the first radius as the radius. Figure 2 As shown in the figure, assuming that the preset level is 2 and the first radius is 150px, an arc is drawn with the analysis object (i.e. the first-layer transaction object) as the center and a radius of 150px, and the second-layer transaction objects are all on the arc. Figure 3As shown in the figure, when the preset level is 3 and the first radius is 150px, when drawing the third-level transaction objects, each transaction object in the third level is located on an arc with a radius of 150px and the second-level transaction object associated with the third-level transaction object as the center. The same is true when the preset level is other numbers.
[0082] Let the analysis object be the main node, and all other transaction objects be nodes, such as Figure 2 and Figure 3 As shown, the main node and each node are represented in the form of a small circle. The radius of each node is the second radius, and the second radius is r2. Then, according to the first radius r1 and the second radius r2, the angle occupied by each node on the corresponding arc can be determined:
[0083]
[0084] Assuming that the second radius r2 is 10px and the first radius r1 is 150px, the angle occupied by each node on the corresponding arc is 2*arcsin(10 / 150)≈7.6°, so the angle of a node is 7.6°.
[0085] The angle range of the arc is: θ=α*d, where d represents the number of preset nodes.
[0086] On this basis, in order to enable the capital analysis flow diagram to more clearly display each transaction object, in this example, a preset angle range is added between adjacent nodes on each arc to display the name of the transaction object corresponding to each node; then the angle range of the arc can be determined based on the angle occupied by each node, the preset angle range, and the preset number of nodes in the arc. At this time, the angle range of the arc is: θ=(α+β)*d, where β represents the preset number of nodes.
[0087] Specifically, the preset angle range can be set to 0.4°, and each arc needs to be able to display a maximum of 20 objects, that is, the preset number of nodes is 20; it should be noted that the preset angle range and the preset number of nodes can also be other values, which can be set according to actual needs. At this time, the angle range of the arc is: θ = (7.6 + 0.4) * 20 = 160°.
[0088] Let the actual number of nodes on the arc be length. Then, based on the angle range of the arc, the coordinates of the center of the arc, and the actual number of nodes on the arc, the coordinates of each node can be determined as follows:
[0089]
[0090] Among them, the coordinates of the node are (x, y), j means that the node is the jth node on the arc, and j is a positive integer; (middlex, middley) represents the coordinates of the center of the arc.
[0091] It should be noted that when the actual number of nodes is greater than the preset number of nodes, only the preset number of nodes are selected for drawing. For example, when the preset number of nodes is 20 and the actual number of nodes is greater than 20, only 20 of them are selected.
[0092] Step S500: determining the transaction direction between transaction objects in adjacent layers;
[0093] Among them, the transaction direction includes income and expenditure. By determining the transaction direction between various transaction objects, the relationship of capital flow can be presented more clearly.
[0094] Step S600: Draw a fund analysis flow diagram according to the position relationship and the transaction direction; the fund analysis flow diagram includes at least one of a fund inflow analysis diagram, a fund outflow analysis diagram, and a fund inflow and outflow analysis diagram.
[0095] After determining the positional relationship and transaction direction between various transaction objects, a capital analysis flow chart can be drawn.
[0096] Specifically, step S700 includes the following three steps:
[0097] (1) Draw each node on the canvas in sequence according to the coordinates of each node;
[0098] (2) Connect each node based on the transaction relationship of each transaction object;
[0099] (3) Determine the color of the connection line according to the transaction direction, or add an arrow with the corresponding direction to the connection line; the color of the connection line or the direction of the arrow represents the transaction direction.
[0100] After obtaining the coordinates of each node, the nodes can be drawn on the canvas in sequence. At the same time, for two directly related transaction objects, a line is drawn between the two to indicate the transaction relationship. At the same time, in order to show the flow of funds, different colors can be used to distinguish them. For example, if the funds of the transaction object on the next layer flow into the transaction object on the previous layer, a red line is used to indicate that the funds of the transaction object on the previous layer flow out to the transaction object on the next layer, a green line is used to indicate that. Figure 4 , Figure 5 and Figure 6As shown. By using different colors, the relationship between the inflow and outflow of funds can be intuitively displayed. At the same time, in order to better display the relationship between the inflow and outflow of funds, arrows can be added to the connection line. Through the direction of the arrow, the relationship between the inflow and outflow of funds can be more clearly viewed.
[0101] When drawing a fund analysis flow chart, you can only display the fund inflow analysis chart, such as Figure 4 Alternatively, you can only display the capital outflow analysis chart, such as Figure 5 As shown, or, you can also display the inflow and outflow analysis chart of funds at the same time, such as Figure 6 shown.
[0102] It should be noted that when drawing nodes, due to the large number of transaction objects, which may involve hundreds of them, it is easy to cause nodes to overlap through fan calculation. In order to avoid node overlap, when drawing a new node, it is necessary to first determine the center distance between the newly drawn node and the adjacent node; when the center distance is less than the diameter of the node, adjust the coordinates of the newly drawn node so that the center distance is greater than or equal to the diameter of the node.
[0103] It should be noted that when the center distance is less than the diameter of the node, it means that the newly drawn node overlaps with the already drawn node. To this end, the coordinates of the newly drawn node need to be changed so that the center distance is greater than or equal to the diameter of the node to avoid overlap. One possible way to adjust the coordinates is to keep the horizontal coordinate of the newly drawn node unchanged and change the vertical coordinate of the newly drawn node so that the center distance is greater than or equal to the diameter of the node. Assuming that the coordinates of the already drawn node are (x1, y1) and the coordinates of the newly drawn node are (x2, y2), in order to ensure that the center distance is greater than or equal to the diameter of the node, the center distance p ≥ 2*r2 needs to be made. At this time, x2 remains unchanged and y2 needs to be adjusted to: Therefore, the coordinates of the newly drawn node are changed to (x2, y2'). It should be noted that other methods of adjusting the coordinates may also be used, such as adjusting both the horizontal coordinate and the vertical coordinate, or keeping the vertical coordinate unchanged and changing the horizontal coordinate.
[0104] According to the fund analysis image generation method of the embodiment of the present invention, by importing the transaction information, and then using trigonometric functions to construct a bidirectional, concise and intuitive fund flow relationship diagram, auditors can directly skip the data combing step, saving a lot of energy, and the fund flow relationship diagram has a multi-dimensional analysis function, which effectively assists auditors to clearly grasp the flow direction, level and amount of funds, effectively improves the work efficiency of auditors, and avoids analysis errors caused by incomplete flow relationships. The method can display the fund relationship in a graphical way, quickly comb a large amount of fund data, and can intuitively display the fund relationship. The relationship diagram is bidirectional, can fully display the fund inflow and outflow relationship, and clearly display the flow direction relationship.
[0105] On the other hand, an embodiment of the present invention further provides an electronic device, including:
[0106] A memory for storing program instructions;
[0107] The processor is used to call the program instructions stored in the memory and execute the above-mentioned fund analysis image generation method according to the obtained program instructions.
[0108] The processor may be implemented by a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;
[0109] The memory can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory can store an operating system and other applications. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory, and the processor calls and executes the method for generating a fund analysis image in the embodiments of this application; the memory and the processor can be connected through a bus or the like.
[0110] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the above-mentioned method for generating a funds analysis image is implemented.
[0111] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0112] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
[0113] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.
[0114] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.
[0115] The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
[0116] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.
[0117] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
[0118] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.
Claims
1. A method for generating a fund analysis image, characterized in that: The following steps are involved: Get transaction information; Determine an analysis object, and determine a next-layer transaction object of the analysis object according to the transaction flow information; the analysis object is a first-layer transaction object, and the next-layer transaction object of the analysis object is a second-layer transaction object; Determine the next level of transaction objects of each level of transaction objects until a preset level is reached; Determine the positional relationship between each of the transaction objects by using a trigonometric positioning method; Determining transaction directions between the transaction objects in adjacent layers; A funds analysis flow diagram is drawn according to the positional relationship and the transaction direction; the funds analysis flow diagram includes at least one of a funds inflow analysis diagram, a funds outflow analysis diagram, and a funds inflow and outflow analysis diagram.
2. The method for generating a fund analysis image according to claim 1, characterized in that: The step of determining the positional relationship between each of the transaction objects by means of trigonometric positioning includes: Determine the size of the canvas; Determine a first radius of an arc between the transaction objects of adjacent layers according to the preset level and the size of the canvas; wherein the transaction objects of the next layer corresponding to each transaction object of the current layer are located on an arc with the transaction object of the current layer as the center and the first radius as the radius; Determining a second radius of each node; each of the nodes represents the corresponding transaction object other than the analysis object; Determine the angle occupied by each of the nodes on the corresponding arc according to the first radius and the second radius; Determine the angle range of the arc according to the angle occupied by each node on the corresponding arc and the number of preset nodes of the arc; The coordinates of each node are determined according to the angle range of the arc, the coordinates of the center of the arc, and the actual number of nodes on the arc.
3. The method for generating a fund analysis image according to claim 2, characterized in that: The step of determining the angle range of the arc according to the angle occupied by each node on the corresponding arc and the number of preset nodes of the arc comprises: Between adjacent nodes on the arc, a preset angle range is added to display the name of the transaction object corresponding to each node; The angle range of the arc is determined according to the angle occupied by each of the nodes on the corresponding arc, the preset angle range, and the preset number of nodes of the arc.
4. The method for generating a fund analysis image according to claim 2, characterized in that: The step of drawing a fund analysis flow diagram according to the position relationship and the transaction direction includes: Drawing each of the nodes in sequence on the canvas according to the coordinates of each of the nodes; Connecting each of the nodes according to the transaction relationship of each of the transaction objects; According to the transaction direction, the color corresponding to the connection line is determined, or an arrow with a corresponding direction is added to the connection line; the color of the connection line or the direction of the arrow represents the transaction direction.
5. The method for generating a fund analysis image according to claim 4, characterized in that: The step of sequentially drawing each of the nodes on the canvas according to the coordinates of each of the nodes further includes: Determine the distance between the center of the newly drawn node and the adjacent node; When the circle center distance is smaller than the diameter of the node, the coordinates of the newly drawn node are adjusted so that the circle center distance is greater than or equal to the diameter of the node.
6. The method for generating a fund analysis image according to claim 5, characterized in that: When the circle center distance is smaller than the diameter of the node, the step of adjusting the coordinates of the newly drawn node so that the circle center distance is greater than or equal to the diameter of the node comprises: When the center distance is smaller than the diameter of the node, the horizontal coordinate of the newly drawn node is kept unchanged, and the vertical coordinate of the newly drawn node is changed so that the center distance is greater than or equal to the diameter of the node.
7. The method for generating a fund analysis image according to claim 2, characterized in that: The angle occupied by each node on the corresponding arc is calculated as follows: Among them, α represents the angle occupied by the node on the corresponding arc, r1 represents the first radius, and r2 represents the second radius.
8. The method for generating a fund analysis image according to claim 1, characterized in that: The step of obtaining transaction flow information includes: Import an Excel sheet containing transaction information; the transaction information includes: account number, account number, transaction date, transaction amount, balance, and transaction counterparty; During the import process, the authenticity of the transaction information is verified.
9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory and execute the funds analysis image generation method according to any one of claims 1-8 according to the obtained program instructions.
10. A storage medium, characterized in that: The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the funds analysis image generation method according to any one of claims 1 to 8.
