CN109087368B - Character string graphical method and device - Google Patents

Character string graphical method and device Download PDF

Info

Publication number
CN109087368B
CN109087368B CN201810614057.9A CN201810614057A CN109087368B CN 109087368 B CN109087368 B CN 109087368B CN 201810614057 A CN201810614057 A CN 201810614057A CN 109087368 B CN109087368 B CN 109087368B
Authority
CN
China
Prior art keywords
characters
character
position data
target area
character string
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810614057.9A
Other languages
Chinese (zh)
Other versions
CN109087368A (en
Inventor
游永胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Advanced New Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201810614057.9A priority Critical patent/CN109087368B/en
Publication of CN109087368A publication Critical patent/CN109087368A/en
Application granted granted Critical
Publication of CN109087368B publication Critical patent/CN109087368B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text

Abstract

The embodiment of the specification provides a character string graphical method and a device, and the method comprises the following steps: acquiring a character string, wherein the character string comprises a plurality of characters; determining position data of the characters in the corresponding character sets respectively; determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively; and generating a graph matched with the character string based on the position data of the characters in the target area.

Description

Character string graphical method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for character string imaging.
Background
The service system generally includes a plurality of service scenarios, for example, for a payment service system, the payment service system generally includes a collection scenario, a payment scenario, a borrowing scenario, and other large number of service scenarios, and these different service scenarios may be generally embodied by different service parameters, for example, the collection scenario is embodied by the service parameter abcde, the payment scenario is embodied by the service parameter abcdefg, and the like.
In the actual application process, a service scene may need to be identified according to the service parameter, for example, for a monitoring system that monitors the operation state of the service system, when receiving the parameter abcde, a monitoring person needs to quickly determine that the service scene is a collection scene, so as to perform a subsequent corresponding monitoring operation. However, for the service parameters with long character string length, it is difficult to quickly identify the service scene represented by the character string.
Disclosure of Invention
The embodiment of the application provides a character string graphical method and device, which are used for converting a character string into a graph convenient for human eyes to quickly recognize, so that different character strings can be distinguished conveniently.
The embodiment of the application adopts the following technical scheme:
in a first aspect, a method for graphing a character string is provided, including: acquiring a character string, wherein the character string comprises a plurality of characters; determining position data of the plurality of characters in corresponding character sets respectively; determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively; and generating a graph matched with the character string based on the position data of the characters in the target area.
In a second aspect, an apparatus for graphing character strings is provided, which includes: the character string acquisition module is used for acquiring a character string, and the character string comprises a plurality of characters; the first position acquisition module is used for determining the position data of the characters in the corresponding character sets respectively; the second position acquisition module is used for determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively; and the graph generation module is used for generating a graph matched with the character string based on the position data of the characters in the target area.
In a third aspect, an electronic device is provided, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor performing the operations of: acquiring a character string, wherein the character string comprises a plurality of characters; determining position data of the characters in the corresponding character sets respectively; determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively; and generating a graph matched with the character string based on the position data of the characters in the target area.
In a fourth aspect, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the operations of: acquiring a character string, wherein the character string comprises a plurality of characters; determining position data of the characters in the corresponding character sets respectively; determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively; and generating a graph matched with the character string based on the position data of the characters in the target area.
The embodiment of the application adopts at least one technical scheme which can achieve the following beneficial effects: the method comprises the steps of determining position data of a plurality of characters in a target area based on position data of the characters in the character string in corresponding character sets and distribution conditions of the character sets in the target area, and generating a graph matched with the character string based on the position data of the characters in the target area, so that the character string is converted into the graph convenient for human eyes to quickly recognize, and a user can distinguish different character strings conveniently.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flow chart of an implementation of a method for graphical character strings according to an embodiment of the present specification;
fig. 2 is a schematic diagram of a specific application of a method for graphical character strings according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a specific application of a method for graphical character strings according to another embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a character string patterning apparatus according to an embodiment of the present specification;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
As shown in fig. 1, one embodiment of the present specification provides a method for graphing a character string, including the steps of:
s110: a character string is obtained, wherein the character string comprises a plurality of characters.
The character string in this embodiment may be a string of characters composed of characters such as numbers, letters, underlines, and the like, that is, the obtained character string includes a plurality of characters.
Preferably, as an embodiment, the character string acquired in step S110 is an MD5 code obtained based on the service scene identifier. Before the step S110, the service parameter corresponding to the service scene may be serialized first; and then converting the service parameters after the character serialization into MD5 codes, wherein the MD5 codes obtained through the conversion are the character strings obtained in the step.
S120: and determining the position data of the characters in the corresponding character sets respectively.
The character string obtained in step S110 includes a plurality of characters, and for each character, position data of the character in a corresponding character set can be determined, where one character may be in one-to-one correspondence with one character set.
The character set may be a set of a plurality of characters, and in general, the characters included in the character set cover the characters in the character string acquired in step S110.
Preferably, the characters included in the plurality of character sets are the same, and the characters are ordered in the same order. In one example, the character sets include a number set and an alphabet set, the numbers in the number set being ordered in order of small to large or large to small; sorting the letters in the letter set according to the positive sequence or the negative sequence of the alphabet; the number set is located at the front or rear of the letter set. For the above alphabets, for example, latin alphabet, greek alphabet, etc.
Alternatively, step S120 may specifically be to determine position data of each of the plurality of characters in the corresponding character set based on the character sequence of each of the plurality of characters in the corresponding character set.
S130: and determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively.
Before the embodiment is performed, a plurality of character sets distributed according to a preset rule exist in the target area, wherein the number of the character sets may be greater than or equal to the number of the plurality of characters of the character string in step S110.
For example, the character string in step S110 has 32 characters, and there are 32 character sets distributed according to a preset rule in the target area, so that the character set corresponding to each character can be determined according to the order of the 32 characters in the character string and the arrangement order of the 32 character sets, and one character corresponds to one character set.
Alternatively, in an example, the distribution of the multi-character set in the target area has a mapping relationship with the position data of the plurality of characters in the target area in step S110, so that in this step, the position data of the plurality of characters in the target area can be obtained according to the position data of the plurality of characters in the corresponding character set in step S120 and the mapping relationship.
S140: and generating a graph matched with the character string based on the position data of the characters in the target area.
Specifically, in step S140, the obtained plurality of position data may be serially connected in a straight line or a curved line, so as to obtain a pattern corresponding to the character string obtained in step S110.
Preferably, after step S140, the above embodiment may further include the steps of: and filling colors matched with the graphs for the graphs.
As described above, the service system includes many service scenarios, different service scenarios may be represented by different service parameters, and after the service parameters are serialized and executed according to the embodiment shown in fig. 1, graphs matching different service scenarios may be obtained. By filling the color matched with the graph into the graph, a user can further conveniently and quickly identify different service scenes through the graph, and the understanding efficiency of the user on data (such as service parameters) is improved.
In the method for imaging a character string provided in the embodiment of the present specification, based on the position data of a plurality of characters in the character string in corresponding character sets respectively and the distribution of the plurality of character sets in a target area, the position data of the plurality of characters in the target area is determined, and based on the position data of the plurality of characters in the target area, a graph matched with the character string is generated, so that the character string is converted into a graph convenient for human eyes to quickly recognize, and a user can distinguish different character strings conveniently.
Preferably, as an embodiment, the target area mentioned in step S130 of the embodiment shown in fig. 1 is within a target circle, specifically, the target area may be a target circle, where the distribution of the character sets corresponding to the plurality of characters in the target area is: for a detailed description, a specific embodiment will be described below, with reference to the scene shown in fig. 2, where the starting point of the character set corresponding to each of the characters is the center of the target circle, the length direction of the character set corresponding to each of the characters is along the radial direction of the target circle, and the radians between the character sets corresponding to each of the characters are equal to each other, and an execution process of the embodiment is as follows:
firstly, referring to step S110 of the embodiment shown in fig. 1, the obtained character strings are WORD and EVER, where characters in the character string WORD are W, O, R, and D, respectively; the characters in the character string EVER are respectively E, V, E and R;
referring to step S120 of the embodiment shown in fig. 1, for the character string WORD, the position data of characters W, O, R and D in the corresponding character sets are [0, 33], [1, 25], [2, 28] and [3, 14]; for the character string EVER, the position data of the characters E, V, E, and R in the corresponding character set are obtained as [0, 15], [1, 32], [2, 15], and [3, 28], respectively.
The first data in the position data represents the sorting data of the characters in the character string; the second data represents the sorted data of the characters in the character set. For example, for the position data [0, 33] of the character W in the character string WORD, 0 represents that the ordering data of the character W in the character string WORD is the first one; 33 represents the character W in the character set
The ranking data in "0123456789 ABCDEFGHIJKLMNOPQRSTHWXYZ" is 33 rd.
In this embodiment, the length of the character string is 4, so there are 4 character sets corresponding to 4 characters, each character set is "0123456789 abcdefghijklmnoqrstuvwxyz", and for the distribution of the 4 character sets in the target area, see fig. 2: the starting points of the 4 character sets are the centers of the target circles; the length direction of the 4 character sets is along the radial direction of the target circle; the radians between the 4 character sets are equal, namely the included angles between the 4 character sets are all 90 degrees.
In addition, a planar rectangular coordinate system, referred to as a coordinate system for short, can also be seen in fig. 2, an origin of the coordinate system coincides with a center of the target circle, and the four character sets are arranged counterclockwise at an included angle of 90 degrees along a positive direction of an x-axis of the first character set.
Referring to step S130 of the embodiment shown in fig. 1, the position data of the characters W, O, R and D in the character string WORD in the coordinate system are (33, 0), (0, 25), (-28, 0), and (0, -14), respectively; the position data of the characters E, V, E and R in the character string EVER in the coordinate system are found to be (15, 0), (0, 32), (-15, 0), and (0, -28), respectively.
Referring to step S140 of the embodiment shown in fig. 1, as shown in fig. 2, the graph corresponding to the character string WORD is a closed quadrangle, and the graph corresponding to the character string EVER is also a closed quadrangle.
The character string graphical method provided by the embodiment of the specification converts the character string into the graph which is convenient for human eyes to quickly recognize, so that a user can distinguish different character strings conveniently, and the understanding efficiency of the user on data (such as service parameters) is improved.
Preferably, another embodiment of the present specification provides a method for character string graphics, in particular, for graphics of MD5 code.
As described above, since different service parameters represent different service scenarios, before the embodiment is executed, different service parameters may be firstly serialized, and then the serialized service parameters are converted into MD5 codes, where the obtained MD5 codes uniquely correspond to the original service scenarios.
Since the number of characters in the MD5 code is certain, for example, 128 characters, the embodiment may only take the first 32 characters, before the embodiment, there are 32 character sets, and the distribution of the 32 character sets may be similar to the distribution of the 4 character sets in fig. 2, specifically: the 32 character sets are uniformly distributed counterclockwise with the positive direction of the x-axis as a starting point, the unit angle between two adjacent character sets =360 degrees/MD 5 code length 32=11.25 degrees, and since there are 4 character sets in total in fig. 2, the unit angle between two adjacent character sets is 90 degrees.
The specific implementation of this embodiment is as follows:
referring to step S110 of the embodiment shown in fig. 1, the MD5 code corresponding to the service parameter of the service scenario is acquired, for example: "CE788FF9145C2260534889C454D437B8".
In this embodiment, the character set corresponding to MD5 is:
"0123456789 ABCDEFGHIJKLMNOPQRSTHWXYZ". The front part of the character set is a number set, the rear part of the character set is an alphabet set, the numbers in the number set are arranged in a positive sequence, and the alphabets in the primary and secondary sets are also arranged in a positive sequence.
Referring to step S120 of the embodiment shown in fig. 1, position data of the MD5 code in the character set is generated, for example: in the MD5 code 'CE 788FF9145C2260534889C454D437B 8', the characters C are [0, 13], the characters E are [1, 15], the characters 7 are [2,8], \8230; 8230; the characters B are [30, 12] and the characters 8 are [31,9].
Referring to step S130 of the embodiment shown in fig. 1, the radian between the character set corresponding to a single target character and the positive direction of the x-axis may be obtained according to the distribution of the 32 character sets in the target circle; and then obtaining coordinate point data of the target character in a coordinate system, namely coordinate points for short, according to the radian and the position data of the target character in the corresponding character set.
In this embodiment, a mapping relationship exists between the distribution of the 32 character sets in the target circle and the coordinate points obtained in step S130, and the principle of calculating the coordinate points is as follows:
referring to the embodiment shown in fig. 1, in the position data [ x, y ] obtained in step S120, the data x is on the target circle as an angle quantity; the data y is taken as a radius quantity on the target circle;
then, according to the unit angle, the unit radius, the mathematical formula sin and the mathematical formula cos, and the position data [ x, y ] obtained in the above step S120, the coordinate points of the characters in the MD5 code in the coordinate system can be obtained respectively.
Wherein, unit angle =360 degrees/MD 5 code length 32=11.25 degrees;
unit radius = MD5 code length 32/character set length 36=0.8889.
For example, when calculating the coordinate point of the third character 7 in the MD5 code "CE788FF9145C2260534889C454D437B8", the position data of the character 7 in the character string is [2,8]:
the coordinates on the x-axis are: 0.8889X 8 Xcos (11.25X 2);
the coordinates on the y-axis are: 0.8889X 8 Xsin (11.25X 2).
After obtaining the coordinate points of all the characters in the MD5 code "CE788FF9145C2260534889C454D437B8", referring to step S140 of the embodiment shown in fig. 1, the coordinate points are sequentially connected to form a packaged graph by using a drawing program, and the graph is filled with a color matching the graph, where the graph is a 32-sided polygon.
In the embodiment, the service parameter characters corresponding to the service scene are converted into the MD5 codes in a serial mode, and the MD5 codes are character strings, so that service parameters with complex structures can be converted into character strings which are convenient to process, and the imaging efficiency is improved.
In addition, in the embodiment, because the bit length of the MD5 code is fixed, and each character in the MD5 code corresponds to one character set, the number of the required character sets is fixed, so that the distribution of the character sets is convenient to determine in advance, and the imaging efficiency is further improved.
In addition, on the premise that the distribution condition of the character set is determined in advance, because the 32 character set distribution condition and the coordinate point of the MD5 code in the target area have a mapping relation, the coordinate point of each character in the MD5 code can be determined directly according to the position data of the MD5 code in the character set and the mapping relation, and the imaging efficiency is further improved.
By filling the color matched with the graph into the graph, a user can further conveniently and quickly identify different service scenes through the graph, and the understanding efficiency of the user on data (such as service parameters) is improved.
Optionally, in another embodiment, the target area mentioned in step S130 of the embodiment shown in fig. 1 may be on one side of the digital axis, where the distribution of the character sets corresponding to the plurality of characters in the target area is: the starting point of the character set corresponding to each of the characters is the number axis; the length direction of the character set corresponding to the characters is vertical to the number axis; for detailed description, a specific embodiment will be described below, and with reference to the scenario shown in fig. 3, an implementation procedure of the embodiment is as follows:
firstly, referring to step S110 of the embodiment shown in fig. 1, the obtained character strings are WORD and EVER, where characters in the character string WORD are W, O, R, and D, respectively; the characters in the character string EVER are respectively E, V, E and R;
referring to step S120 of the embodiment shown in fig. 1, for the character string WORD, the position data of characters W, O, R and D in the corresponding character sets are [0, 33], [1, 25], [2, 28] and [3, 14]; for the character string EVER, the position data of the characters E, V, E, and R in the corresponding character sets are found to be [0, 15], [1, 32], [2, 15], and [3, 28], respectively.
In this embodiment, the length of the character string is 4, so there are 4 character sets corresponding to 4 characters, each character set is "0123456789 abcdefghijklmnoqrstuvwxyz", and for the distribution of the 4 character sets in the target area, see fig. 3: the starting point of the 4 character sets is a digit axis; the length directions of the 4 character sets are perpendicular to the numerical axis and are all positioned at the upper half part of the numerical axis; the 4 character sets are equally spaced.
Referring to step S130 of the embodiment shown in fig. 1, the position data of the characters W, O, R and D in the character string WORD in the coordinate system are (0, 33), (1, 25), (2, 28) and (3, 14), respectively; the position data of the characters E, V, E, and R in the character string EVER in the coordinate system are found to be (0, 15), (1, 32), (2, 15), and (3, 28), respectively. In the coordinate system, it is assumed that the x-axis coincides with the number axis and the y-axis coincides with the first character set on the left side.
Referring to step S140 of the embodiment shown in fig. 1, as shown in fig. 3, a graph corresponding to the character string WORD is obtained and is in a zigzag shape; and the graph corresponding to the character string EVER is also a graph in a broken line shape.
The beneficial effects of this embodiment are referred to the previous embodiment and will not be described herein.
The above description section introduces an embodiment of a method for character string graphics in detail, as shown in fig. 4, and the present specification further provides a character string graphics apparatus 400, as shown in fig. 4, where the apparatus 400 includes:
a character string obtaining module 401, configured to obtain a character string, where the character string includes a plurality of characters;
a first position obtaining module 402, configured to determine position data of the plurality of characters in corresponding character sets respectively;
a second position obtaining module 403, configured to determine position data of the multiple characters in the target area based on position data of the multiple characters in corresponding character sets respectively and distribution conditions of the character sets corresponding to the multiple characters in the target area respectively;
a graph generating module 404, configured to generate a graph matching the character string based on the position data of the plurality of characters in the target area.
In the embodiment of the specification, based on the position data of a plurality of characters in a character string in corresponding character sets and the distribution condition of the plurality of character sets in a target area, the position data of the plurality of characters in the target area is determined, and a graph matched with the character string is generated based on the position data of the plurality of characters in the target area, so that the character string is converted into a graph convenient for human eyes to quickly recognize, and a user can distinguish different character strings conveniently.
Optionally, as an embodiment, a mapping relationship exists between a distribution situation of a character set corresponding to each of the plurality of characters in a target area and position data of the plurality of characters in the target area.
Optionally, as an embodiment, the target area is within a target circle, where distribution conditions of the character sets corresponding to the plurality of characters in the target area are: the starting points of the character sets corresponding to the characters are the centers of the target circles; the length direction of the character set corresponding to the characters respectively is along the radial direction of the target circle; and radians among character sets corresponding to the characters are equal.
Optionally, as an embodiment, the target area is on one side of the axis, and the distribution of the character sets corresponding to the plurality of characters in the target area is as follows: the starting points of the character sets corresponding to the characters are the number axes; the length direction of the character set corresponding to the characters is vertical to the number axis; the intervals between the character sets corresponding to the characters are equal.
Optionally, as an embodiment, the position data of the multiple characters in the target area is position data of the multiple characters in a coordinate system, an origin of the coordinate system coincides with a center of the target circle, where the second position obtaining module 403 may be configured to determine, for the multiple characters, the position data of the multiple characters in the coordinate system according to the following method, respectively: obtaining the radian between the character set corresponding to a single target character and the positive direction of the x axis of the coordinate system according to the distribution condition of the character sets corresponding to the characters in the target circle; and obtaining the position data of the target character in the coordinate system according to the radian and the position data of the target character in the corresponding character set.
Optionally, as an embodiment, the character sets corresponding to the plurality of characters respectively include a number set and an alphabet set, and numbers in the number set are sorted in order from small to large or from large to small; sorting the letters in the letter set according to the positive sequence or the negative sequence of the alphabet; the number set is located at the front or rear of the letter set.
Optionally, as an embodiment, the apparatus 400 further includes: a color filling module (not shown) can be used for filling the color matched with the graph for the graph.
Optionally, as an embodiment, the character string is an MD5 code obtained based on a service scenario identifier.
The above-mentioned character string patterning device according to the embodiment of the present specification may refer to the flow corresponding to the character string patterning method according to the previous text specification embodiment, and each unit/module and the above-mentioned other operations and/or functions in the character string patterning device are respectively for implementing the corresponding flow in the character string patterning method, and are not described herein again for brevity.
An electronic device according to an embodiment of the present specification will be described in detail below with reference to fig. 5. Referring to fig. 5, at a hardware level, the electronic device includes a processor, optionally an internal bus, a network interface, and a memory. As shown in fig. 5, the Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware needed to implement other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
And the memory is used for storing programs. In particular, the program may include program code comprising computer operating instructions. The memory may include both memory and non-volatile storage and provides instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form a device for forwarding the chat information on a logic level. The processor executes the program stored in the memory and is specifically configured to perform the operations of the method embodiments described herein.
The methods performed by the methods and apparatuses disclosed in the embodiments of fig. 1 to 4 may be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
The electronic device shown in fig. 5 may also execute the method shown in fig. 1 to fig. 3, and implement the functions of the embodiment of the character string graphical method shown in fig. 1 to fig. 3, which are not described herein again in this embodiment of the present application.
Of course, besides the software implementation, the electronic device of the present application does not exclude other implementations, such as a logic device or a combination of software and hardware, and the like, that is, the execution subject of the following processing flow is not limited to each logic unit, and may also be hardware or a logic device.
Embodiments of the present disclosure further provide a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement or the like made within the spirit and principle of the present application shall be included in the scope of the claims of the present application.

Claims (10)

1. A method for character string graphical representation, comprising:
acquiring a character string, wherein the character string comprises a plurality of characters;
determining position data of the plurality of characters in corresponding character sets respectively;
determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets and the distribution conditions of the character sets corresponding to the characters in the target area, wherein the distribution conditions of the character sets corresponding to the characters in the target area have a mapping relation with the position data of the characters in the target area;
and generating a graph matched with the character string based on the position data of the characters in the target area.
2. The method according to claim 1, wherein the target area is within a target circle, and the distribution of the character sets corresponding to the plurality of characters in the target area is:
the starting points of the character sets corresponding to the characters are the centers of the target circles;
the length direction of the character set corresponding to the characters respectively is along the radial direction of the target circle;
and radians among character sets corresponding to the characters are equal.
3. The method according to claim 1, wherein the target area is on one side of the number axis, and the distribution of the character sets corresponding to the plurality of characters in the target area is as follows:
the starting point of the character set corresponding to each of the characters is the number axis;
the length directions of character sets corresponding to the characters are perpendicular to the number axis;
the intervals between the character sets corresponding to the characters are equal.
4. The method of claim 2,
the position data of the plurality of characters in the target area is position data of the plurality of characters in a coordinate system, an origin of the coordinate system is coincident with a center of the target circle, wherein,
determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution condition of the character sets corresponding to the characters in the target area respectively, including:
for the characters, respectively determining the position data of the characters in the coordinate system according to the following method:
obtaining the radian between the character set corresponding to a single target character and the positive direction of the x axis of the coordinate system according to the distribution condition of the character sets corresponding to the characters in the target circle;
and obtaining the position data of the target character in the coordinate system according to the radian and the position data of the target character in the corresponding character set.
5. The method according to any one of claims 1 to 4, wherein the character sets corresponding to the plurality of characters respectively comprise a numeral set and an alphabet set,
the numbers in the number set are sorted from small to large or from large to small;
sorting the letters in the letter set according to the positive sequence or the negative sequence of the alphabet;
the number set is located at the front or rear of the letter set.
6. The method of claim 1, wherein after generating the graph matching the character string, the method further comprises:
and filling colors matched with the graphs for the graphs.
7. The method of claim 1,
the character string is an MD5 code obtained based on the service scene identification.
8. A character string patterning apparatus, comprising:
the character string acquisition module is used for acquiring a character string, and the character string comprises a plurality of characters;
the first position acquisition module is used for determining the position data of the characters in the corresponding character sets respectively;
the second position acquisition module is used for determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets respectively and the distribution conditions of the character sets corresponding to the characters in the target area respectively, wherein the distribution conditions of the character sets corresponding to the characters in the target area have a mapping relation with the position data of the characters in the target area;
and the graph generation module is used for generating a graph matched with the character string based on the position data of the characters in the target area.
9. An electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the operations of:
acquiring a character string, wherein the character string comprises a plurality of characters;
determining position data of the plurality of characters in corresponding character sets respectively;
determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets and the distribution conditions of the character sets corresponding to the characters in the target area, wherein the distribution conditions of the character sets corresponding to the characters in the target area have a mapping relation with the position data of the characters in the target area;
and generating a graph matched with the character string based on the position data of the characters in the target area.
10. A computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs operations comprising:
acquiring a character string, wherein the character string comprises a plurality of characters;
determining position data of the plurality of characters in corresponding character sets respectively;
determining the position data of the characters in the target area based on the position data of the characters in the corresponding character sets and the distribution conditions of the character sets corresponding to the characters in the target area, wherein the distribution conditions of the character sets corresponding to the characters in the target area have a mapping relation with the position data of the characters in the target area;
and generating a graph matched with the character string based on the position data of the characters in the target area.
CN201810614057.9A 2018-06-14 2018-06-14 Character string graphical method and device Active CN109087368B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810614057.9A CN109087368B (en) 2018-06-14 2018-06-14 Character string graphical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810614057.9A CN109087368B (en) 2018-06-14 2018-06-14 Character string graphical method and device

Publications (2)

Publication Number Publication Date
CN109087368A CN109087368A (en) 2018-12-25
CN109087368B true CN109087368B (en) 2023-04-07

Family

ID=64839655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810614057.9A Active CN109087368B (en) 2018-06-14 2018-06-14 Character string graphical method and device

Country Status (1)

Country Link
CN (1) CN109087368B (en)

Family Cites Families (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2519130B2 (en) * 1991-01-10 1996-07-31 株式会社テレマティーク国際研究所 Multi-word information retrieval processing method and retrieval file creation device
US6246794B1 (en) * 1995-12-13 2001-06-12 Hitachi, Ltd. Method of reading characters and method of reading postal addresses
US6034701A (en) * 1998-03-24 2000-03-07 Electronic Data Systems Corporation Method and system for displaying mixed sized fonts for character based displays
JP2001282429A (en) * 2000-03-29 2001-10-12 Matsushita Electric Ind Co Ltd Character data input device
JP3479282B2 (en) * 2001-01-09 2003-12-15 株式会社日立製作所 Character and graphic transformation processor
JP2006309402A (en) * 2005-04-27 2006-11-09 Mitsubishi Heavy Ind Ltd Character string recognition method, number plate recognition method and device
US20090262115A1 (en) * 2008-04-18 2009-10-22 Christenson Ii Charles Allen Method for Creating a Graphical Representation of a String of Alphanumeric Characters
US8189961B2 (en) * 2010-06-09 2012-05-29 Microsoft Corporation Techniques in optical character recognition
WO2013106989A1 (en) * 2012-01-16 2013-07-25 中国科学院北京基因组研究所 Method and device for matching character strings
CN103425693B (en) * 2012-05-23 2016-12-21 富士通株式会社 Image processing apparatus, image processing method and electronic equipment
CN102779275B (en) * 2012-07-04 2015-06-17 广州广电运通金融电子股份有限公司 Paper characteristic identification method and relative device
CN102831568B (en) * 2012-08-03 2014-07-09 网易(杭州)网络有限公司 Method and device for generating verification code picture
US9046928B2 (en) * 2013-02-27 2015-06-02 International Business Machines Corporation Method and apparatus for improved text entry
CN104954605B (en) * 2014-03-31 2018-02-06 京瓷办公信息系统株式会社 Image processing system, image formation system and image forming method
EP3158721B1 (en) * 2014-06-20 2020-08-26 Signs&Wonders Unlimited LLC System and method for encoding and authenticating a digital image
JP2017027530A (en) * 2015-07-27 2017-02-02 キヤノン株式会社 Image processing apparatus, image processing method, and program
CN106844288B (en) * 2015-12-07 2022-03-22 创新先进技术有限公司 Random character string generation method and device
CN105744079A (en) * 2016-04-06 2016-07-06 上海斐讯数据通信技术有限公司 Method and system for automatically identifying telephone number
CN106899411B (en) * 2016-12-08 2021-09-21 创新先进技术有限公司 Verification method and device based on verification code

Also Published As

Publication number Publication date
CN109087368A (en) 2018-12-25

Similar Documents

Publication Publication Date Title
EP3678346B1 (en) Blockchain smart contract verification method and apparatus, and storage medium
CN109347787B (en) Identity information identification method and device
CN107516038B (en) Method and device for determining device fingerprint
CN108985066B (en) Intelligent contract security vulnerability detection method, device, terminal and storage medium
US10489117B2 (en) Method and apparatus for generating random character string
CN108960645B (en) Risk prevention and control method, system and terminal equipment
CN117035452A (en) Root cause positioning method and system of business scene and electronic equipment
CN113407254B (en) Form generation method and device, electronic equipment and storage medium
CN109087368B (en) Character string graphical method and device
CN114297665A (en) Intelligent contract vulnerability detection method and device based on deep learning
CN109800775B (en) File clustering method, device, equipment and readable medium
US20190304185A1 (en) Method and apparatus for filling hole in 3d model
CN113360522B (en) Method and device for rapidly identifying sensitive data
CN111538481B (en) Application program customization method and system
CN109426720B (en) Interface parameter verification method and related device
US10762397B1 (en) Computer architecture for emulating image mapping in a correlithm object processing system
US10481930B1 (en) Computer architecture for emulating a foveal mechanism in a correlithm object processing system
US11914564B1 (en) Merkle tree-based data management method and apparatus
US20180046380A1 (en) Storage System and Method for Scanning For Devices
WO2018137146A1 (en) Graph configuration language transformation method and apparatus
CN112613763B (en) Data transmission method and device
CN109325496B (en) Bullet screen checking method and device based on character removal, terminal and storage medium
CN105243315A (en) Single picture verification code input method, apparatus and system
US10990424B2 (en) Computer architecture for emulating a node in conjunction with stimulus conditions in a correlithm object processing system
US11055120B2 (en) Computer architecture for emulating a control node in conjunction with stimulus conditions in a correlithm object processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200925

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman, British Islands

Applicant before: Advanced innovation technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant