Optimization method and optimization device for converting graph into braille lattice diagram

By screening and updating the set of pixels, the edge points and inflection points in the image are judged, which solves the problem of obstacles in describing graphic information in the existing technology, realizes the accurate conversion of graphics into Braille bitmaps, and achieves smooth curves and clear inflection points. Effect.

CN118762102APending Publication Date: 2024-10-11HANGZHOU HUIGUANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410884418.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-03
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing braille conversion technology cannot accurately describe graphic information, especially when it comes to expressing image edges and inflection points, and requires a large amount of human effort to generate graphics.

Method used

By obtaining the image to be processed, the pixel point coordinates are generated, the pixel points to be processed are filtered out, the edge points and inflection points are determined based on the neighborhood threshold and Euclidean distance, and the set is stored and updated until the image is converted into a Braille bitmap.

Benefits of technology

It achieves the smooth transformation of graphics curves and clear inflection points, reduces human participation, and improves the ability to accurately describe graphic information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762102A_ABST
    Figure CN118762102A_ABST
Patent Text Reader

Abstract

The invention provides an optimization method and an optimization device for converting a graph into a Braille lattice diagram. The method comprises the following steps: S120, generating pixel point coordinates for a to-be-processed image; s130, to-be-processed pixel point coordinates are screened out and stored in a first set; s140, generating an output result set and a neighborhood threshold; s150, obtaining a subset neighborhood of the first set; s160, storing the edge points and / or inflection points contained in the first set in a second set; s170, storing pixel point coordinates corresponding to the edge points and / or inflection points contained in the second set in an output result set, and deleting neighborhood spaces of the edge points and / or inflection points in the first set; and S180, repeating the steps S150 to S170 until the first set is an empty set, and outputting a final output result set. The inflection points are judged through the neighborhood space, and meanwhile, a six-point braille matrix arrangement form does not need to be considered, so that a graph is helped to be converted into a braille lattice diagram, and the effects of smooth curve conversion and clear inflection points are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of Braille conversion, and in particular to an optimization method and an optimization device for converting a graphic into a Braille dot matrix image. Background Art

[0002] The paper printed materials that the blind are exposed to often only have text information in the form of 6-dot Braille. This type of 6-dot Braille can help the blind understand the document, but it cannot achieve smooth curves when simulating images, so there are huge obstacles to the expression of graphics. In other words, the existing Braille conversion method cannot accurately describe the graphic information, and graphics are also indispensable information carriers in various life scenarios such as teaching. A large amount of graphic generation work requires manpower. Furthermore, in the process of converting graphic information into Braille dot images, in order to ensure that the image edge points and inflection points are clear, it is necessary to keep the inflection points and edge points clear when generating the image.

[0003] The above problems need to be solved urgently. Summary of the invention

[0004] The present invention aims to overcome at least one of the above-mentioned disadvantages of the prior art. On the one hand, the present invention provides an optimization method for converting a graphic into a Braille dot pattern, the method comprising: S110: acquiring an image to be processed; S120: generating pixel coordinates for the image to be processed; S130: filtering out pixel coordinates to be processed based on the pixel coordinates and storing them in a first set; S140: generating an output result set and a neighborhood threshold, and initializing the output result set; S150: obtaining a neighborhood space of each pixel in the first set based on the first set and the neighborhood threshold, and generating a subset neighborhood of the first set; S160: Based on the first set and the neighborhood space of each pixel point in the first set, the edge points and / or inflection points included in the first set are obtained, and the pixel coordinates corresponding to the edge points and / or inflection points are stored in the second set; S170: the pixel coordinates corresponding to the edge points and / or inflection points included in the second set are stored in the output result set, and the neighborhood space of the edge points and / or inflection points is deleted in the first set, and the first set is updated synchronously; S180: steps S150 to S170 are repeated until the first set is an empty set, and a final output result set is output; S190: the graphic is converted into a Braille dot matrix based on the final output result set.

[0005] Furthermore, generating pixel coordinates for the image to be processed includes: obtaining n*m pixel points contained in the image to be processed; the coordinates of the pixel point in the i-th row and j-th column are (i, j); wherein, i∈n, j∈m, n is a positive integer greater than or equal to 1, and m is a positive integer greater than or equal to 1.

[0006] Further, the process of screening the coordinates of the pixels to be processed based on the pixel coordinates and storing them in the first set includes: obtaining the RGB values of each pixel in the image to be processed as R i,j , G i,j , B i,j ; calculating the grayscale value of each pixel based on the RGB values; determining whether the pixel is a pixel to be processed based on the grayscale value; and storing the coordinates of the pixels to be processed in the first set.

[0007] Further, the process of determining whether the pixel is a pixel to be processed based on the grayscale value includes: the grayscale value of each pixel is R i,j +G i,j +B i,j ; when the grayscale value of the pixel is less than the preset grayscale threshold, the pixel is screened as a pixel to be processed and stored in the first set P; the first set P = {(i,j)|(R i,j +G i,j +B i,j )<3*y}; where y is the preset grayscale threshold.

[0008] Further, the process of generating the subset neighborhood of the first set by obtaining the neighborhood space of each pixel in the first set based on the first set and the neighborhood threshold includes: calculating, for each pixel (i, j) in the first set P, the set of points whose Euclidean distance from the pixel is less than the neighborhood threshold, to obtain the subset neighborhood U i,j of the first set P; the subset neighborhood U i,j of the first set P

[0009] = {(a,b)∈ 2 (a - i) 2 +(b - j) 2 <l

[0010] Further, the process of obtaining the edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel in the first set, and storing the pixel coordinates corresponding to the edge points and / or inflection points in the second set includes: for each pixel (i,j) in the first set P, calculating the subset C1 of the neighborhood space pixels in the first quadrant with it as the origin: C1 i,j = {(a,b)∈U i,j |a>

[0011] i&&b<j}; for each pixel (i,j) in the first set P, calculating the subset C2 of the neighborhood space pixels in the second quadrant with it as the origin: C2 i,j = {(a,b)∈Ui,j |a > i && b > j}; For each pixel point (i, j) in the first set P, calculate the subset C3 of pixel points in the neighborhood space in the third quadrant with it as the origin: C3 i,j = {(a, b) ∈ U i,j |a < i && b > j}; For each pixel point (i, j) in the first set P, calculate the subset C4 of pixel points in the neighborhood space in the fourth quadrant with it as the origin: C4 i,j = {(a, b) ∈ U i,j |a < i && b < j}; Obtain the edge points and / or inflection points included in the first set based on the subsets C1, C2, C3, and C4 of the neighborhood space pixel points, and store the pixel point coordinates corresponding to the edge points and / or inflection points in the second set.

[0012] Further, the obtaining the edge points and / or inflection points included in the first set based on the subsets C1, C2, C3, and C4 of the neighborhood space pixel points, and storing the pixel point coordinates corresponding to the edge points and / or inflection points in the second set includes: For each pixel point (i, j) in the first set P, when at least 2 of the subsets corresponding to the subsets C1, C2, C3, and C4 of the neighborhood space pixel points are empty, this pixel point is an edge point or an inflection point, and the pixel point coordinates corresponding to the edge points and / or inflection points are in the second set K: K = {(i, j) ∈

[0013] P | C1 i,j ,C2 i,j ,C3 i,j ,C4 i,j where at least 2 are empty sets}.

[0014] Further, the storing the pixel point coordinates corresponding to the edge points and / or inflection points included in the second set in the output result set, and deleting the neighborhood space of the edge points and / or inflection points in the first set and synchronously updating the first set includes: Incorporating the second set K into the output result set Q, that is: Q = Q ∪ K; For each pixel point (i, j) in the second set K, delete its neighborhood from P, that is:

[0015] P = P - U i,j ; Update the first set P to P - U i,j .

[0016] Further, the repeating steps S150 to S170 until the first set is an empty set and outputting the final output result set includes: If the first set P is not an empty set, repeat steps S150 to S170; If the first set P is an empty set, output the last result set Q.

[0017] In a second aspect, the present invention provides an optimization device for converting a graphic into a Braille dot map, the device comprising: an acquisition unit, adapted to acquire an image to be processed; a pixel point coordinate generation unit, adapted to generate pixel point coordinates for the image to be processed; a first set generation unit, adapted to filter out pixel point coordinates to be processed based on the pixel point coordinates and store them in a first set; an initialization unit, adapted to generate an output result set and a neighborhood threshold, and initialize the output result set; a first set subset neighborhood generation unit, adapted to obtain a neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold to generate a subset of the first set neighborhood; a second set generation unit, adapted to obtain edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and store them in the second set; an updating unit, adapted to store the edge points and / or inflection points included in the second set in the output result set, and delete the neighborhood space of the edge points and / or inflection points in the first set, and synchronously update the first set; an output result set unit, adapted to switch to a subset neighborhood unit of the first set until the first set is an empty set, and output a final output result set; a conversion unit, adapted to convert a graphic into a Braille dot matrix based on the final output result set.

[0018] In a third aspect, the present invention further provides a computer-readable storage medium, wherein one or more instructions are stored in the computer-readable storage medium, and the computer instructions are used to enable the computer to execute the above-mentioned optimization method for converting a graphic into a Braille dot matrix.

[0019] On the other hand, the present invention provides an electronic device, comprising: a memory and a processor; the memory stores at least one program instruction; the processor implements the above-mentioned optimization method for converting a graphic into a Braille dot pattern by loading and executing the at least one program instruction.

[0020] The beneficial effects of the present invention are as follows: the present invention provides an optimization method for converting a graphic into a Braille dot pattern, the method comprising: S110: acquiring an image to be processed; S120: generating pixel coordinates for the image to be processed; S130: filtering out pixel coordinates to be processed based on the pixel coordinates and storing them in a first set; S140: generating an output result set and a neighborhood threshold, and initializing the output result set; S150: obtaining a neighborhood space of each pixel in the first set based on the first set and the neighborhood threshold, and generating a subset neighborhood of the first set; S160: based on the first set and the neighborhood space of each pixel in the first set to obtain the edge points and / or inflection points contained in the first set, and store the pixel coordinates corresponding to the edge points and / or inflection points in the second set; S170: store the pixel coordinates corresponding to the edge points and / or inflection points contained in the second set in the output result set, delete the neighborhood space of the edge points and / or inflection points in the first set, and update the first set synchronously; S180: repeat steps S150 to S170 until the first set is an empty set, and output the final output result set; S190: convert the graphic into a Braille dot matrix based on the final output result set. By judging the inflection point through the neighborhood space, there is no need to consider the arrangement form of the 6-dot Braille matrix, thereby helping the graphic to be converted into a Braille dot matrix, and achieving smooth curve conversion and clear inflection point effects. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0022] Figure 1 This is a flow chart of an optimization method for converting a graphic into a Braille dot pattern provided by Embodiment 1 of the present invention.

[0023] Figure 2 This is an effect diagram of converting a graphic into a Braille dot pattern in the prior art provided by Example 1 of the present invention.

[0024] Figure 3 This is an effect diagram of converting a graphic into a Braille dot pattern based on the method provided in Example 1 of the present invention.

[0025] Figure 4 It is a schematic diagram of the structure of an optimization device for converting a graphic into a Braille dot pattern provided by Example 2 of the present invention.

[0026] Figure 5 This is a partial block diagram of an electronic device provided in Example 4 of the present invention. DETAILED DESCRIPTION

[0027] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the operations as sequential processes, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0028] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.

[0029] The present invention will now be described in detail with reference to the accompanying drawings. This figure is a simplified schematic diagram, which only illustrates the basic structure of the present invention in a schematic manner, and therefore only shows the components related to the present invention.

[0030] Example 1

[0031] like Figure 1 As shown, it is a flow chart of an optimization method for converting a graphic into a Braille dot pattern provided by the present invention.

[0032] As an example, the method includes:

[0033] S110: Acquire an image to be processed.

[0034] S120: Generate pixel coordinates for the image to be processed.

[0035] Preferably, the step S120 includes: obtaining n*m pixel points contained in the image to be processed; the coordinates of the pixel point in the i-th row and j-th column are (i, j); wherein, i∈n, j∈m, n is a positive integer greater than or equal to 1, and m is a positive integer greater than or equal to 1.

[0036] S130: Filter out pixel coordinates to be processed based on the pixel coordinates and store them in a first set.

[0037] Preferably, the step S130 includes: obtaining the RGB value of each pixel in the image to be processed as R i,j , G i,j , B i,j; Calculate the grayscale value of each pixel based on the RGB value; Determine whether the pixel is a pixel to be processed based on the grayscale value; Store the coordinates of the pixel to be processed in the first set. Specifically, the grayscale value of each pixel is R i,j +G i,j +B i,j ; When the grayscale value of the pixel point is less than the preset grayscale threshold, the pixel point is selected as the pixel point to be processed and stored in the first set P; the first set P = {(i, j)|(R i,j +G i,j +B i,j )<3*y}; where y is the preset grayscale threshold.

[0038] S140: Generate an output result set and a neighborhood threshold, and initialize the output result set.

[0039] Preferably, step S140 includes: establishing an output result set, which is used as the output result of the last retained pixel point, that is, the pixel point coordinates finally included in the output result set constitute the converted Braille dot matrix image, and the Braille convex image can be obtained by printing based on the Braille dot matrix image based on a Braille printer for use by visually impaired people. Specifically, the output result set Q initially established is an empty set, and the neighborhood threshold is pre-set to 1. The specific value of the neighborhood threshold is not limited here, and the relevant technicians can change its value based on actual conditions during actual application.

[0040] S150: Obtaining a neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold to generate a subset neighborhood of the first set.

[0041] Preferably, step S150 comprises: for each pixel point (i, j) in the first set P, calculating a set of points whose Euclidean distance to the pixel point is less than a neighborhood threshold, and obtaining a subset neighborhood U of the first set P. i,j ; The subset neighborhood U of the first set P i,j ={(a,b)∈P|(ai) 2 +(bj) 2 <l 2}; where the neighborhood threshold is set to 1.

[0042] S160: Obtain edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and store pixel point coordinates corresponding to the edge points and / or inflection points in the second set.

[0043] Preferably, step S160 comprises: for each pixel point (i, j) in the first set P, calculating a neighborhood space pixel point subset C1 in the first quadrant with the pixel point (i, j) as the origin:

[0044] C1 i,j ={(a,b)∈U i,j |a>i&&b <j}

[0045] For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C2 in the second quadrant with it as the origin:

[0046] C2 i,j ={(a,b)∈U i,j |a>i&&b>j}

[0047] For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C3 in the third quadrant with it as the origin:

[0048] C3 i,j ={(a,b)∈U i,j |a<i&&b> j}

[0049] For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C4 in the fourth quadrant with it as the origin:

[0050] C4 i,j ={(a,b)∈U i,j |a <i&&b<j}

[0051] Based on the neighborhood space pixel point subsets C1, C2, C3 and C4, the edge points and / or inflection points included in the first set are obtained, and the pixel point coordinates corresponding to the edge points and / or inflection points are stored in the second set. Specifically, for each pixel point (i, j) in the first set P, when at least two of the subsets corresponding to the neighborhood space pixel point subsets C1, C2, C3 and C4 are empty, the pixel point is an edge point or an inflection point, and the pixel point coordinates corresponding to the edge point and / or inflection point are in the second set K:

[0052] K={(i,j)∈P|C1 i,j , C2 i,j , C3 i,j , C4 i,j At least 2 of them are empty sets}.

[0053] S170: Store the pixel coordinates corresponding to the edge points and / or inflection points included in the second set in the output result set, delete the neighborhood space of the edge points and / or inflection points in the first set, and synchronously update the first set.

[0054] Preferably, the step S170 includes: merging the second set K into the output result set Q, that is:

[0055] Q = Q ∪ K;

[0056] For each pixel (i, j) in the second set K, delete its neighborhood from P, that is:

[0057] P=PU i,j ;

[0058] Update the first set P to PU i,j .

[0059] In terms of the above steps S160 and S170, in short, the edge points and inflection points of the graph to be transformed are obtained by step S160, and the pixel coordinates corresponding to the edge points and inflection points are stored in the output result set Q by step S170, and are deleted from the first set P. Specifically, Figure 2 The figure to be transformed in (left figure) contains two edge points and one inflection point in the first polling. The pixel coordinates corresponding to the two edge points and one inflection point are stored in the second set K, and further stored in the output result set Q. Then, the domain space corresponding to the two edge points and one inflection point in the first set P is deleted, and the first set P is updated. This is equivalent to performing edge point and inflection point detection on the updated first set P in the next polling detection. That is, Figure 2 Compared with the first polling which contained one inflection point and two edge points, the detection result this time contains four edge points but no inflection point.

[0060] S180: Repeat steps S150 to S170 until the first set is an empty set, and output a final output result set.

[0061] Preferably, the step S180 includes: if the first set P is not an empty set, repeating steps S150 to S170; if the first set P is an empty set, outputting the final result set Q.

[0062] S190: Converting the graphic into a Braille dot pattern based on the final output result set.

[0063] Preferably, reference Figure 2 and Figure 3 It can be seen that the Braille dot pattern obtained by the above method has a smooth curve and a clear turning point compared with the prior art.

[0064] The above embodiment determines the inflection point through the neighborhood space, and there is no need to consider the arrangement form of the 6-dot Braille matrix, thereby helping to convert the graphic into a Braille dot matrix and achieving the effect of smooth curves and clear inflection points.

[0065] Example 2

[0066] See also Figure 4 , this embodiment provides a schematic diagram of the structure of an optimization device for converting a graphic into a Braille dot pattern.

[0067] As an example, the device comprises:

[0068] The acquisition unit 410 is adapted to acquire an image to be processed.

[0069] The pixel point coordinate generating unit 420 is adapted to generate pixel point coordinates for the image to be processed.

[0070] The first set generating unit 430 is adapted to filter out the pixel point coordinates to be processed based on the pixel point coordinates and store them in the first set.

[0071] The initialization unit 440 is adapted to generate an output result set and a neighborhood threshold, and initialize the output result set.

[0072] The first set subset neighborhood generating unit 450 is adapted to generate the first set subset neighborhood by obtaining the neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold.

[0073] The second set generating unit 460 is adapted to obtain edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and store them in the second set.

[0074] The updating unit 470 is adapted to store the edge points and / or inflection points included in the second set in the output result set, delete the neighborhood space of the edge points and / or inflection points in the first set, and synchronously update the first set.

[0075] The output result set unit 480 is adapted to switch to generating a subset neighborhood unit of the first set until the first set is an empty set, and output a final output result set.

[0076] The conversion unit 490 is adapted to convert the graphic into a Braille dot pattern based on the final output result set.

[0077] It is not difficult to find that this embodiment is a device embodiment corresponding to the first embodiment, and this embodiment can be implemented in conjunction with the first embodiment. The relevant technical details mentioned in the first embodiment are still valid in this embodiment, and in order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the first embodiment.

[0078] It is worth mentioning that all units involved in this embodiment are logical units. In practical applications, a logical unit can be a physical unit, a part of a physical unit, or a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, this embodiment does not introduce units that are not closely related to solving the technical problem proposed by the present invention, but this does not mean that there are no other units in this embodiment.

[0079] Example 3

[0080] The embodiment of the present invention further provides a storage medium, on which is stored an optimization method for converting a graphic into a Braille dot pattern, and when the optimization program for converting a graphic into a Braille dot pattern is executed by a processor, the steps of the optimization method for converting a graphic into a Braille dot pattern as described above are implemented. Since the storage medium adopts all the technical solutions of all the above embodiments, it has at least all the beneficial effects brought by the technical solutions of the above embodiments, which will not be described one by one here.

[0081] Example 4

[0082] See also Figure 5 An embodiment of the present invention further provides an electronic device, comprising: a memory and a processor; the memory stores at least one program instruction; the processor implements the optimization method for converting a graphic into a Braille dot pattern provided in Example 1 by loading and executing the at least one program instruction.

[0083] The memory 602 and the processor 601 are connected in a bus manner, and the bus may include any number of interconnected buses and bridges, and the bus connects various circuits of one or more processors 601 and the memory 602 together. The bus can also connect various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface between the bus and the transceiver. The transceiver can be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. The data processed by the processor 601 is transmitted on a wireless medium via an antenna, and further, the antenna also receives data and transmits the data to the processor 601.

[0084] The processor 601 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 602 can be used to store data used by the processor 601 when performing operations.

[0085] The above is only an embodiment of the present invention. The common sense such as the known specific structure and characteristics in the scheme is not described in detail here. The ordinary technicians in the relevant field know all the common technical knowledge in the technical field of the invention before the application date or priority date, can know all the existing technologies in the field, and have the ability to apply the conventional experimental means before that date. The ordinary technicians in the relevant field can improve and implement this scheme in combination with their own abilities under the enlightenment given by this application. Some typical known structures or known methods should not become obstacles for ordinary technicians in the relevant field to implement this application. It should be pointed out that for those skilled in the art, without departing from the structure of the present invention, several deformations and improvements can be made, which should also be regarded as the scope of protection of the present invention, which will not affect the effect of the implementation of the present invention and the practicality of the patent. The scope of protection required by this application shall be based on the content of its claims, and the specific implementation methods and other records in the specification can be used to interpret the content of the claims.

Claims

1. An optimization method for converting a graphic into a Braille dot pattern, characterized in that: The method comprises: S110: Acquire an image to be processed; S120: Generate pixel coordinates for the image to be processed; S130: Filter out pixel coordinates to be processed based on the pixel coordinates and store them in a first set; S140: Generate an output result set and a neighborhood threshold, and initialize the output result set; S150: obtaining a neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold, and generating a subset neighborhood of the first set; S160: obtaining edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and storing pixel point coordinates corresponding to the edge points and / or inflection points in the second set; S170: storing the pixel coordinates corresponding to the edge points and / or inflection points included in the second set in the output result set, deleting the neighborhood space of the edge points and / or inflection points in the first set, and synchronously updating the first set; S180: repeat steps S150 to S170 until the first set is an empty set, and output a final output result set; S190: Converting the graphic into a Braille dot pattern based on the final output result set.

2. The optimization method for converting a graphic into a Braille dot pattern according to claim 1, characterized in that: Generating pixel coordinates for the image to be processed includes: Obtain n*m pixels contained in the image to be processed; The coordinates of the pixel at the i-th row and j-th column are (i, j); Wherein, i∈n, j∈m, n is a positive integer greater than or equal to 1, and m is a positive integer greater than or equal to 1.

3. The optimization method for converting a graphic into a Braille dot pattern according to claim 2, characterized in that: The step of filtering out the pixel coordinates to be processed based on the pixel coordinates and storing them in the first set comprises: Get the RGB value of each pixel in the image to be processed i,j , G i,j , B i,j ; Calculate the grayscale value of each pixel based on the RGB value; Determine whether the pixel is a pixel to be processed based on the grayscale value; The coordinates of the pixel points to be processed are stored in the first set.

4. The optimization method for converting a graphic into a Braille dot pattern according to claim 3, characterized in that: The determining whether the pixel point is a pixel point to be processed based on the grayscale value comprises: The gray value of each pixel is R i,j +G i,j +B i,j ; When the grayscale value of the pixel point is less than the preset grayscale threshold, the pixel point is selected as a pixel point to be processed and stored in the first set P; The first set P = {(i,j)|(R i,j +G i,j +B i,j )<3*y}; Where y is the preset grayscale threshold.

5. The optimization method for converting a graphic into a Braille dot pattern according to claim 4, characterized in that: The step of obtaining the neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold to generate a subset neighborhood of the first set includes: For each pixel point (i, j) in the first set P, calculate the set of points whose Euclidean distance to the pixel point is less than the neighborhood threshold, and obtain the subset neighborhood U of the first set P. i,j ; The subset neighborhood U of the first set P i,j ={(a,b)∈P|(ai) 2 +(bj) 2 <l 2 }; The neighborhood threshold is set to 1.

6. The optimization method for converting a graphic into a Braille dot pattern according to claim 5, characterized in that: The step of obtaining edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and storing the pixel point coordinates corresponding to the edge points and / or inflection points in the second set comprises: For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C1 in the first quadrant with it as the origin: C1 i,j ={(a,b)∈U i,j |a>i&&b<j}; For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C2 in the second quadrant with it as the origin: C2 i,j ={(a,b)∈U i,j |a>i&&b>j}; For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C3 in the third quadrant with it as the origin: C3 i,j ={(a,b)∈U i,j |a<i&&b> j}; For each pixel point (i, j) in the first set P, calculate the neighborhood space pixel point subset C4 in the fourth quadrant with it as the origin: C4 i,j ={(a,b)∈U i,j |a<i&&b<j}; The edge points and / or inflection points included in the first set are obtained based on the neighborhood space pixel point subsets C1, C2, C3 and C4, and the pixel point coordinates corresponding to the edge points and / or inflection points are stored in the second set.

7. The optimization method for converting a graphic into a Braille dot pattern according to claim 6, characterized in that: The step of obtaining edge points and / or inflection points included in the first set based on the neighborhood space pixel point subsets C1, C2, C3, and C4, and storing pixel point coordinates corresponding to the edge points and / or inflection points in the second set comprises: For each pixel point (i, j) in the first set P, when at least two of the subsets corresponding to the neighborhood space pixel point subsets C1, C2, C3 and C4 are empty, the pixel point is an edge point or an inflection point, and the pixel point coordinates corresponding to the edge point and / or inflection point exist in the second set K: K={(i,j)∈P|C1 i,j , C2 i,j , C3 i,j , C4 i,j At least 2 of them are empty sets}.

8. The optimization method for converting a graphic into a Braille dot pattern according to claim 7, characterized in that: The step of storing the pixel coordinates corresponding to the edge points and / or inflection points included in the second set in the output result set, deleting the neighborhood space of the edge points and / or inflection points in the first set, and synchronously updating the first set comprises: The second set K is merged into the output result set Q, that is: Q = Q ∪ K; For each pixel (i, j) in the second set K, delete its neighborhood from P, that is: Update the first set P to PU i,j .

9. The optimization method for converting a graphic into a Braille dot pattern according to claim 1, characterized in that: The steps S150 to S170 are repeated until the first set is an empty set, and the final output result set is outputted, including: If the first set P is not an empty set, steps S150 to S170 are repeated; If the first set P is an empty set, the final result set Q is output.

10. An optimization device for converting a graphic into a Braille dot pattern, characterized in that: The device comprises: An acquisition unit, adapted to acquire an image to be processed; A pixel point coordinate generating unit, adapted to generate pixel point coordinates for the image to be processed; Generate a first set unit, which is adapted to filter out pixel point coordinates to be processed based on the pixel point coordinates and store them in a first set; an initialization unit, adapted to generate an output result set and a neighborhood threshold, and initialize the output result set; A first set subset neighborhood generating unit is adapted to generate a subset neighborhood of the first set by obtaining a neighborhood space of each pixel point in the first set based on the first set and the neighborhood threshold; generating a second set unit, adapted to obtain edge points and / or inflection points included in the first set based on the first set and the neighborhood space of each pixel point in the first set, and store them in the second set; an updating unit, adapted to store the edge points and / or inflection points included in the second set in an output result set, delete the neighborhood space of the edge points and / or inflection points in the first set, and synchronously update the first set; An output result set unit, adapted to switch to a subset neighborhood unit for generating a first set until the first set is an empty set, and output a final output result set; The conversion unit is adapted to convert the graphic into a Braille dot pattern based on the final output result set.