Automatic identification method of code and storage medium

文档序号:1406156 发布日期:2020-03-06 浏览:6次 中文

阅读说明:本技术 电码的自动识别方法及存储介质 (Automatic identification method of code and storage medium ) 是由 曾英夫 刘忠 于 2020-01-20 设计创作,主要内容包括:本发明公开了电码的自动识别方法及存储介质,包括以下步骤,信号概率向量门限值二向化:根据门限值大小,将神经网络的概率向量二向化为0、1向量;合成点杠信号:根据连续二向值为1的长度生成点杠信号向量;采用动态编程算法对所述点杠信号向量进行自动编组,得到点杠信号向量组;将点杠信号向量组对照编码表进行编码。采用上述步骤,采用动态编程算法即DP算法很好的解决了不同速率,发报人员的不同习惯等各种因素下都能生成最优编组结果;相比于传统直接按照间隔长度分组有更强的稳定性以及适应性;实现了实际使用中的摩尔斯电报码的自动编码。(The invention discloses an automatic identification method of code and a storage medium, comprising the following steps of: according to the threshold value, the probability vector of the neural network is divided into 0 and 1 vectors; synthesizing a point bar signal: generating a point bar signal vector according to the length of the continuous two-way value of 1; automatically grouping the point bar signal vectors by adopting a dynamic programming algorithm to obtain a point bar signal vector group; the point bar signal vector groups are encoded against an encoding table. By adopting the steps, the optimal marshalling result can be generated under various factors of different rates, different habits of a transmitter and the like by adopting a dynamic programming algorithm (DP algorithm); compared with the traditional method that the data are directly grouped according to the interval length, the method has stronger stability and adaptability; the automatic coding of Morse telegraph codes in actual use is realized.)

1. The automatic identification method of the code is characterized by comprising the following steps:

s1, carrying out bidirection on signal probability vector threshold values: according to the threshold value, the probability vector of the neural network is divided into 0 and 1 vectors;

s2, synthesizing a point bar signal: generating a point bar signal vector according to the length of the continuous two-way value of 1;

s3, automatically grouping the point bar signal vectors by using a dynamic programming algorithm to obtain a point bar signal vector group;

and S4, coding the point bar signal vector group according to the coding table.

2. The method for automatically identifying an electronic code according to claim 1, wherein after step S3, an automatic correction is performed, wherein the automatic correction is performed on an erroneous code group by using a preset rule in combination with the size of the space; one of the code groups corresponds to one of the point bar signal vector groups.

3. The automatic identification method of the code according to claim 1, wherein the threshold value is 0.85-0.95.

4. The automatic identification method of an electronic code according to claim 1, wherein the noise signal is filtered while the point bar signal is synthesized in step S2.

5. The automatic identification method of the code according to claim 4, wherein the length of the continuous binary value 1 is a signal point obtained by combining continuous points of 1 in vectors of 0 and 1, and the signal point length information is recorded, wherein the signal point with the length less than 2 is a signal noise point.

6. The automatic identification method of code according to claim 1, wherein the method of generating the point bar signal vector according to the length of the continuous binary value of 1 in step S2 is: according to the length of the signal point, according to the length L of the bar signal1And the length L of the dot signal2Satisfies 2.8L2<L1<3.2*L2And outputting the dot bar signal vector.

7. The automatic identification method of code according to claim 1, characterized in that said dynamic programming algorithm is a method comprising: for each signal ciThere are only two cases:

(1) forming a code group with the previous non-grouped signal r;

(2) no code group is formed, and an ungrouped signal r is added;

and calling an available grouping mode through traversal, and selecting the selection with the highest score in two cases each time to form a final code group.

8. An automatic identification storage medium for electronic codes, characterized in that the storage medium is loaded with a computer program which, when executed by a processor, implements the method of automatic identification of electronic codes according to any one of claims 1 to 7.

Technical Field

The invention belongs to the technology of automatic identification of code, in particular to an automatic identification method of code and a storage medium.

Background

The morse radio code voice signal is manually recognized by professionals trained for a long time nationwide due to the characteristics of high noise, unstable channel and the like. The basic working flow is that sound signals are heard, and simultaneously, the sound signals are translated into numbers in real time according to message types (long codes, short codes, character codes and the like) and recorded.

The manual identification has the limitations of high working strength, insufficient professional personnel and the like.

Disclosure of Invention

The invention provides an automatic identification method of code and a storage medium, which solves the problems that in the prior art, products with automatic identification and coding are obtained through a physically connected equal-amplitude telegraph transmitter, and on-off signals are obtained and coded, and the technology is convenient to be applied in practice.

The technical scheme adopted by the invention is as follows:

the automatic identification method of the code comprises the following steps:

s1, carrying out bidirection on signal probability vector threshold values: according to the threshold value, the probability vector of the neural network is divided into 0 and 1 vectors;

s2, synthesizing a point bar signal: generating a point bar signal vector according to the length of the continuous two-way value of 1;

s3, automatically grouping the point bar signal vectors by adopting a dynamic programming algorithm to obtain a point bar signal vector group;

and S4, coding the point bar signal vector group according to the coding table.

By adopting the steps, the optimal marshalling result can be generated under various factors of different rates, different habits of a transmitter and the like by adopting a dynamic programming algorithm (DP algorithm); compared with the traditional method that the data are directly grouped according to the interval length, the method has stronger stability and adaptability; the automatic coding of Morse telegraph codes in actual use is realized; the problem that in the prior art, products with automatic identification and coding exist, on-off signals are obtained and coded through a physically connected equal-amplitude newspaper sender, and the technology is convenient to apply in practice is solved.

Further, after step S3, automatic correction is performed, where the automatic correction is performed on an erroneous code group by using a preset rule and combining with the interval size, and one code group corresponds to one point bar signal vector group. Due to the characteristic of unstable radio signals, a small number of signals are missing in a group of codes, and the codes can be automatically supplemented according to conditions in the automatic identification process through correction and compiling of preset rules, so that the practicability of the method is improved.

Furthermore, the threshold value is 0.85-0.95;

further, filtering signal noise is performed while synthesizing the point bar signal in step S2.

Further, the length of the continuous two-way value 1 is that the continuous 1 points in the vectors of 0 and 1 are synthesized into a signal point, and the length information of the signal point is recorded, wherein the signal point with the length less than 2 is a signal noise point;

further, the method of generating the point bar signal vector according to the length of the continuous dichroic value 1 in step S2 is: according to the length of the signal point, according to the length L of the bar signal1And the length L of the dot signal2Satisfies 2.8L2<L1<3.2*L2Outputting a point bar signal vector;

further, the method of the dynamic programming algorithm is as follows: for each signal ciThere are only two cases:

(1) forming a code group with the previous non-grouped signal r;

(2) no code group is formed, and an ungrouped signal r is added;

and calling an available grouping mode through traversal, and selecting the selection with the highest score in two cases each time to form a final code group.

An automatic identification storage medium of an electronic code, the storage medium being loaded with a computer program which, when executed by a processor, implements the above automatic identification method of an electronic code.

The invention has the following advantages and beneficial effects:

1. the invention adopts a dynamic programming algorithm, namely a DP algorithm, to well solve the problem that the optimal marshalling result can be generated under various factors such as different rates and different habits of a reporter; compared with the traditional method that the data are directly grouped according to the interval length, the method has stronger stability and adaptability; the automatic coding of Morse telegraph codes in actual use is realized; the problem that in the prior art, products which are automatically identified and coded are provided, on-off signals are obtained and coded through a physically connected equal-amplitude newspaper sender, and the technology is convenient to apply in practice is solved;

2. according to the method, the correction and the compiling of the preset rules are adopted, so that automatic supplement can be performed according to conditions in the automatic identification process, and the practicability of the method is improved;

3. the invention is suitable for different coding modes, and can be used for long, short and character codes.

Drawings

The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:

FIG. 1 is a flow chart of the method of the present invention.

Fig. 2 is a graph of the recognition result of a signal that was not successfully recognized when the present invention was implemented.

FIG. 3 is a graph of the result of the DP algorithm grouping the point bar signals when the present invention is implemented.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail below with reference to examples and accompanying drawings, and the exemplary embodiments and descriptions thereof are only used for explaining the present invention and are not meant to limit the present invention.

The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, numbers, steps, operations, elements, components, and/or groups thereof.

9页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文本内容的转换方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!