JPH0436431B2 - - Google Patents
Info
- Publication number
- JPH0436431B2 JPH0436431B2 JP59093288A JP9328884A JPH0436431B2 JP H0436431 B2 JPH0436431 B2 JP H0436431B2 JP 59093288 A JP59093288 A JP 59093288A JP 9328884 A JP9328884 A JP 9328884A JP H0436431 B2 JPH0436431 B2 JP H0436431B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- pattern
- uppercase
- section
- characters
- 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.)
- Expired - Lifetime
Links
Landscapes
- Character Discrimination (AREA)
Description
【発明の詳細な説明】
(イ) 産業上の利用分野
本発明は、手書きあるいは印刷による文字を認
識する方式に関し、特に、大文字と小文字の認識
方式に係る。[Detailed Description of the Invention] (a) Field of Industrial Application The present invention relates to a method for recognizing handwritten or printed characters, and particularly to a method for recognizing uppercase and lowercase letters.
(ロ) 従来技術
近年、信号処理技術やエレクトロニクスの進歩
により、文字認識技術の研究は急速に進み、種々
のOCRが開発されるようになつてきた。しかし
ながら、この種のものは、認識対象文字に制限が
あるものが多く、一般の文章を正確に認識できる
ようなものはほとんどなかつた。特に、文字の大
きさのみが異なり字形が同一である「ア」、「ア」、
「ツ」、「ツ」というような、カタカナあるいはひ
らがなの大文字と小文字を認識を行なえるものは
なく、従来は、電気通信協会から発行されている
「文字認識概論」の第162頁に開示されているよう
に、小文字の「ヨ」を入力しても、認識結果とし
ては大文字の「ヨ」が出力されてしまうものが多
かつた。(b) Prior Art In recent years, with advances in signal processing technology and electronics, research on character recognition technology has progressed rapidly, and various OCRs have been developed. However, many of these types of devices have limitations on the characters that can be recognized, and there are almost no devices that can accurately recognize ordinary sentences. In particular, "A", "A", which have the same character shape but only the size of the letters,
There is nothing that can recognize uppercase and lowercase letters in katakana or hiragana, such as ``tsu'' and ``tsu''. As shown in the figure above, even if you input the lowercase letter ``yo'', the recognition result often resulted in the uppercase letter ``yo'' being output.
又、認識率を向上させるため、前処理段階で大
きさに関する正規化を行なう方式があるが、この
場合、正規化した後の文字パターンは、大文字と
小文字とでほぼ同一になつてしまうため、電子技
術総合研究所研究報告第834号「セル特徴を用い
た手書き漢字認識の研究」に開示されているよう
に、小文字の認識は行なわれていないのが現状で
ある。 In addition, in order to improve the recognition rate, there is a method that normalizes the size at the preprocessing stage, but in this case, the character pattern after normalization is almost the same for uppercase and lowercase letters. As disclosed in Electronic Technology Research Institute Research Report No. 834, ``Research on Handwritten Kanji Recognition Using Cell Features,'' lowercase letters are currently not recognized.
(ハ) 発明の目的
本発明は、文字の大きさのみが異なり字形が同
一であるカタカナあるいはひらがなの小文字を認
識できるようにすることを目的としたものであ
り、この際、辞書部には小文字の標準特徴パター
ンを、特別に用意しなくても済むようにしたもの
である。(c) Purpose of the Invention The purpose of the present invention is to make it possible to recognize lowercase letters in Katakana or Hiragana, which differ only in letter size and have the same shape. This is a standard feature pattern that does not need to be specially prepared.
(ニ) 発明の構成
本発明は、大文字にも小文字にも成り得る文字
の唯一の標準特徴パターンを記憶した第1の領域
と、大文字にしか成り得ない文字の標準特徴パタ
ーンを記憶した第2の領域とを有する辞書部を備
え、入力文字パターンに対して大きさに関する正
規化を施し、正規化された文字パターンから特徴
パターンを抽出し、該特徴パターンを前記辞書部
に登録された標準特徴パターンとマツチングし
て、文字の認識を行う文字認識方式において、前
記入力文字パターンの文字の大きさを検出する検
出手段を設け、該手段により入力文字が大文字と
判定されたときは前記マツチングの範囲を前記第
1及び第2の双方の領域とし、小文字と判定され
たときは前記マツチング範囲を前記第1の領域に
限定し、該マツチング結果と前記検出手段の検出
結果に基づいて、出力すべき文字を決定するよう
に構成したものである。(d) Structure of the Invention The present invention has a first area that stores a unique standard feature pattern of characters that can be either uppercase or lowercase, and a second area that stores a standard feature pattern of characters that can only be uppercase. a dictionary section having a region, the input character pattern is normalized in terms of size, a feature pattern is extracted from the normalized character pattern, and the feature pattern is converted into a standard feature registered in the dictionary section. In a character recognition method that recognizes a character by matching it with a pattern, a detection means for detecting the size of the character of the input character pattern is provided, and when the input character is determined to be an uppercase character by the means, the matching range is determined. is defined as both the first and second areas, and when it is determined that it is a lowercase letter, the matching range is limited to the first area, and based on the matching result and the detection result of the detection means, the matching range is determined to be output. It is configured to determine the characters.
(ホ) 実施例
第1図は、本発明の一実施例を実現するための
文字認識装置全体の構成を示すブロツク図であ
り、1は文字観測部、2は前処理部、3は特徴抽
出部、4はパターンマツチング部、5は辞書部、
6は識別部、7は文字コードメモリである。(E) Embodiment FIG. 1 is a block diagram showing the overall structure of a character recognition device for realizing an embodiment of the present invention, in which 1 is a character observation section, 2 is a preprocessing section, and 3 is a feature extraction section. section, 4 is a pattern matching section, 5 is a dictionary section,
6 is an identification section, and 7 is a character code memory.
認識される文字は、第2図に示すように、文字
の記入枠だけが印刷された原稿用紙8に手書きさ
れ、この手書き文字が文字観測部1に入力され
る。文字観測部1は、CCDイメージセンサー等
により、入力された全ての手書き文字を走査及び
光電変換し、各文字を濃淡に応じた観測文字パタ
ーンに変換し、前処理部2へ送る。前処理部2で
は、先ず、2値化部21で、観測文字パターンを
M×Nメツシユの各格子点が「0」か「1」を採
る入力文字パターンに変換し、認識対象文字パタ
ーンを1文字だけ切出し、文字切出し部22で、
外接矩形枠によつて囲まれた文字パターンを切出
す。即ち、第3図に示すように、M×Nメツシユ
の入力文字パターンにおいて、各辺より中心方向
に触手をのばし、最初に文字部分に出合つたとこ
ろでその辺の外接枠を検出し、このようにして検
出された各外接枠によつて囲まれた部分の情報を
文字パターンとして切出す。この際、各外接枠の
座標x1、x2及びy1、y2が検出される。切出された
文字パターンは、正規化部24で伸縮処理が施さ
れ、大きさの正規化が先ず行なわれ、続いて位置
に関しても正規化される。従つて、例えば、「ア」
と「ア」という字形が同一な大文字と小文字の文
字パターンが入力されたときには、これらの正規
化後の文字パターンは同一となる。そして、正規
化された文字パターンは、特徴抽出部3で特徴パ
ターンが抽出される。 As shown in FIG. 2, the characters to be recognized are handwritten on a manuscript paper 8 on which only the text entry frame is printed, and the handwritten characters are input into the character observation section 1. The character observation unit 1 scans and photoelectrically converts all input handwritten characters using a CCD image sensor or the like, converts each character into an observed character pattern according to the shade, and sends the pattern to the preprocessing unit 2. In the preprocessing unit 2, first, the binarization unit 21 converts the observed character pattern into an input character pattern in which each grid point of an M×N mesh takes “0” or “1”, and converts the character pattern to be recognized into 1. Cutting out only the characters, using the character cutting section 22,
Cuts out a character pattern surrounded by a circumscribed rectangular frame. That is, as shown in Fig. 3, in an input character pattern of M×N mesh, tentacles are extended from each side toward the center, and when a character part is first encountered, the circumscribing frame of that side is detected. The information of the portion surrounded by each circumscribed frame detected by the method is extracted as a character pattern. At this time, the coordinates x 1 , x 2 and y 1 , y 2 of each circumscribed frame are detected. The extracted character pattern is subjected to expansion/contraction processing in the normalization unit 24, and the size is first normalized, and then the position is also normalized. Therefore, for example, "a"
When uppercase and lowercase character patterns with the same character shapes as ``A'' and ``A'' are input, these character patterns after normalization will be the same. Then, a feature pattern is extracted from the normalized character pattern by a feature extraction unit 3.
ところで、文字大きさ検出部23は、文字切出
し時に検出した座標情報を基に、入力文字パター
ンの文字の横長a及び縦長bを各々、a=(x2−
x1+1)、b=(y2−y1+1)として求め、これら
の値a及びbを各々所定の閾値W及びHと比較す
る。そしてa≧W且つb≧Hのとき即ち大文字の
とき、デイメンシヨンフラグFdとして「0」を
付し、a<W且つb<Hのとき即ち小文字のと
き、デイメンシヨンフラグFdとして「1」を付
す。このようにして得たデイメンシヨンフラグ
Fdと抽出された特徴パターンは、パターンマツ
チング部4に入力され、バツフア41及び42に
各々格納される。 By the way, the character size detection unit 23 calculates the horizontal length a and the vertical length b of the characters of the input character pattern, respectively, based on the coordinate information detected at the time of character cutting.
x 1 +1) and b=(y 2 -y 1 +1), and these values a and b are compared with predetermined thresholds W and H, respectively. When a≧W and b≧H, that is, when it is an uppercase letter, “0” is added as the dimension flag Fd, and when a<W and b<H, that is, when it is a lowercase letter, “1” is added as the dimension flag Fd. ” is added. Demension flag obtained in this way
Fd and the extracted feature pattern are input to the pattern matching section 4 and stored in buffers 41 and 42, respectively.
ここで、辞書部5について説明すると、大きさ
のみが異なり、字形が同一なカタカナ及びひらが
なの大文字と小文字、例えば、「ア」と「ア」、
「ツ」と「ツ」、「よ」と「よ」,「や」と「や」の
各文字に関しては、同一の標準特徴パターンを唯
一辞書部5に記憶せしめており、具体的には、第
1図に示すように、辞書部5のアドレス0〜8の
領域5aに、これら大文字にも小文字にもなり得
る文字の標準特徴パターンを記憶し、アドレス9
〜99の領域5bに、大文字にしかなり得ない文字
の標準特徴パターンを記憶している。 Here, to explain the dictionary section 5, uppercase and lowercase letters of katakana and hiragana, which differ only in size and have the same shape, such as "A" and "A",
Regarding the characters "tsu" and "tsu", "yo" and "yo", and "ya" and "ya", the same standard feature pattern is stored in the dictionary section 5, and specifically, As shown in FIG. 1, standard feature patterns of these characters that can be uppercase or lowercase are stored in the area 5a of addresses 0 to 8 of the dictionary section 5, and
~99 area 5b stores standard characteristic patterns of characters that can only be uppercase letters.
次に、パターンマツチング部4の処理について
説明する。 Next, the processing of the pattern matching section 4 will be explained.
先ず、制御部43は、アドレスカウンタ44に
辞書部5の先頭アドレス「0」をセツトし、これ
と同時に、デイメンシヨンフラグFdの内容に応
じて、文字番号ポインタ45に異なる初期値をセ
ツトする。即ち、デイメンシヨンフラグFdが
「0」のときは「0」をセツトし、「1」のときは
「100」をセツトする。そして、アドレスカウンタ
44が示す辞書部5のアドレス0から標準特徴パ
ターンを読出し、距離計算部46で、バツフア4
2に記憶された入力文字パターンの特徴パターン
とパターンマツチングを行ない、両パターンの距
離を計算する。計算結果としての距離は、文字番
号ポインタ45の内容である文字番号と対にし
て、識別部6に送られる。1つの標準特徴パター
ンとのマツチングが終了すると、アドレスカウン
タ44及び文字番号ポインタ45を順次インクリ
メントし、先頭アドレス「0」に続くアドレス
「1」「2」「3」……に記憶されている標準特徴
パターンとのパターンマツチングを順次行ない、
その距離を文字番号と共に順次出力して行く。そ
して、制御部43はデイメンシヨンフラグFdが
「1」であるときは、マツチングすべき範囲を辞
書部5の領域5aに限定するため、アドレスカウ
ンタ44の内容が領域5aの最終アドレス8に達
した後、パターンマツチング処理を終了し、デイ
メンシヨンフラグFdが「0」であるときは、辞
書部5の全領域の標準特徴パターンとマツチング
を行なうため、辞書部5の最終アドレス99に達
するまでパターンマツチング処理を続行する。従
つて、識別部6のバツフア61には、デイメンシ
ヨンフラグFdが「0」のときは100個の文字番号
及び距離から成るデータが貯えられ、「1」のと
きは9個のデータが貯えられる。 First, the control section 43 sets the start address "0" of the dictionary section 5 in the address counter 44, and at the same time sets a different initial value in the character number pointer 45 depending on the contents of the dimension flag Fd. . That is, when the dimension flag Fd is "0", "0" is set, and when it is "1", "100" is set. Then, the standard feature pattern is read from the address 0 of the dictionary section 5 indicated by the address counter 44, and the distance calculation section 46
Pattern matching is performed with the characteristic pattern of the input character pattern stored in step 2, and the distance between the two patterns is calculated. The distance as a calculation result is sent to the identification unit 6 in pairs with the character number that is the content of the character number pointer 45. When matching with one standard feature pattern is completed, the address counter 44 and character number pointer 45 are sequentially incremented, and the standard characteristics stored in addresses "1", "2", "3", etc. following the first address "0" are Perform pattern matching with characteristic patterns sequentially,
The distance is sequentially output along with the character number. When the dimension flag Fd is "1", the control section 43 limits the range to be matched to the area 5a of the dictionary section 5, so that the contents of the address counter 44 reach the final address 8 of the area 5a. After that, the pattern matching process is finished, and when the dimension flag Fd is "0", the final address 99 of the dictionary section 5 is reached in order to perform matching with the standard feature pattern of the entire area of the dictionary section 5. The pattern matching process continues until Therefore, the buffer 61 of the identification unit 6 stores data consisting of 100 character numbers and distances when the dimension flag Fd is "0", and stores 9 data when it is "1". It will be done.
ここで、入力文字が字形が同一な大文字「ア」
と小文字「ア」の場合、これらの特徴パターンは
辞書部5の領域5aに記憶されている同一の標準
特徴パターンとパターンマツチングされ、計算結
果としての距離は、ほぼ同一の値α、β、γ、…
…となる。しかしながら、文字番号は、大文字の
場合「0」から始まり、小文字の場合「100」か
ら始まることとなるので、識別部6へ出力される
データ(文字番号、距離)は、大文字の場合
(0、α)(1、β)(2、γ)……となり、小文
字の場合(100、α)(101、β)(102、γ)……
となる。識別部6では、これらデータの全ての距
離を比較し、その距離が最小であるものを識別
し、その文字番号を基に文字コードメモリ7を検
索する。文字コードメモリ7は、文字番号に対応
して文字コードを記憶しており、文字番号0〜99
に対して、辞書部5のアドレス0〜99に記憶され
ている標準特徴パターンに対応する大文字の文字
コードを順に記憶しており、文字番号100〜108に
対しては、辞書部5のアドレス0〜8に記憶され
ている標準特徴パターンに対応する小文字の文字
コードを順に記憶している。従つて、識別部6の
識別結果として、入力文字パターンの文字の大き
さに応じて、距離が最小値となる大文字の文字コ
ードあるいは小文字の文字コードが出力されるこ
ととになる。 Here, the input character is a capital letter "a" with the same glyph shape.
In the case of the lowercase letter "a", these feature patterns are pattern matched with the same standard feature pattern stored in the area 5a of the dictionary section 5, and the calculated distances are approximately the same values α, β, γ...
...becomes. However, character numbers start from "0" for uppercase letters and "100" for lowercase letters, so the data (character number, distance) output to the identification unit 6 is α) (1, β) (2, γ)... For lower case letters (100, α) (101, β) (102, γ)...
becomes. The identification unit 6 compares the distances of all these data, identifies the one with the smallest distance, and searches the character code memory 7 based on the character number. The character code memory 7 stores character codes corresponding to character numbers, and stores character codes from 0 to 99.
For character numbers 100 to 108, uppercase character codes corresponding to the standard feature patterns stored at addresses 0 to 99 of the dictionary section 5 are stored in order. The lowercase character codes corresponding to the standard feature patterns stored in 8 to 8 are sequentially stored. Therefore, as a result of the identification by the identification unit 6, an uppercase character code or a lowercase character code with the minimum distance is output, depending on the character size of the input character pattern.
このように、識別部6から出力される文字コー
ドは、距離計算部46の計算結果としての距離だ
けでなく、文字大きさ検出部23の検出結果であ
るデイメンシヨンフラグFdに基づいて決定され
る。 In this way, the character code output from the identification unit 6 is determined based not only on the distance as a calculation result of the distance calculation unit 46 but also on the dimension flag Fd as a detection result of the character size detection unit 23. Ru.
ところで、閾値W及びHの一例を上げておく
と、原稿の記入枠を13mm角、文字観測部1の
CCDイメージセンサの解像度を8本/mmとした
場合、M×NメツシユのM値及びN値は「96」と
なるが、閾値W及びHとしては、例えば「32」を
用いればよい。 By the way, to give an example of the threshold values W and H, the manuscript entry frame is 13 mm square, and the character observation section 1 is
When the resolution of the CCD image sensor is 8 lines/mm, the M value and N value of the M×N mesh are "96", but as the threshold values W and H, for example, "32" may be used.
(ヘ) 発明の効果
本発明の文字認識方式は、パターンマツチング
における距離の計算結果だけでなく、入力文字パ
ターンの文字の大きさの検出結果に基づいて、出
力すべき文字が決定されるので、文字の大きさの
みが異なり字形が同一なカタカナあるいはひらが
なの小文字をも認識可能となり、一般的な手書き
文章の認識が行なえるようになる。又、小文字の
標準特徴パターンを大文字の標準特徴パターンと
兼用できるので、辞書部の容量が少なくて済み、
更に、小文字の認識を入力文字パターンの文字の
大きさを検出するという非常に簡単な処理により
実現しているので、システムを小型化することが
可能となる。しかも、入力文字が小文字の場合
は、マツチング範囲が辞書部の第1領域に限定さ
れるので処理が高速化されると共に認識率が向上
する。(F) Effects of the Invention The character recognition method of the present invention determines the character to be output based not only on the distance calculation result in pattern matching but also on the detection result of the character size of the input character pattern. It also becomes possible to recognize lowercase letters in katakana and hiragana, which differ only in letter size but have the same shape, making it possible to recognize general handwritten text. In addition, the standard feature pattern for lowercase letters can also be used as the standard feature pattern for uppercase letters, so the capacity of the dictionary section can be reduced.
Furthermore, since recognition of lowercase letters is achieved by a very simple process of detecting the size of the characters in the input character pattern, it is possible to downsize the system. Moreover, when the input characters are lowercase letters, the matching range is limited to the first area of the dictionary section, so that the processing speed is increased and the recognition rate is improved.
第1図は本発明の一実施例を実現するための文
字認識装置全体の構成を示すブロツク図、第2図
は入力原稿のフオーマツトを示す図、第3図は入
力文字パターンを示す説明図である。
主な図番の説明、1……文字観測部、2……前
処理部、3……特徴抽出部、4……パターンマツ
チング部、5……辞書部、6……識別部、7……
文字コードメモリ。
FIG. 1 is a block diagram showing the overall structure of a character recognition device for realizing an embodiment of the present invention, FIG. 2 is a diagram showing the format of an input document, and FIG. 3 is an explanatory diagram showing an input character pattern. be. Explanation of main figure numbers, 1...Character observation section, 2...Preprocessing section, 3...Feature extraction section, 4...Pattern matching section, 5...Dictionary section, 6...Identification section, 7... …
Character code memory.
Claims (1)
標準特徴パターンを記憶した第1の領域と、大文
字しか成り得ない文字の標準特徴パターンを記憶
した第2の領域とを有する辞書部を備え、入力文
字パターンに対して大きさに関する正規化を施
し、正規化された文字パターンから特徴パターン
を抽出し、該特徴パターンを前記辞書部に登録さ
れた標準特徴パターンとマツチングして、文字の
認識を行う文字認識方式において、前記入力文字
パターンの文字の大きさを検出する検出手段を設
け、該手段により入力文字が大文字と判定された
ときは前記マツチングの範囲を前記第1及び第2
の双方の領域とし、小文字と判定されたときは前
記マツチング範囲を前記第1の領域に限定し、該
マツチング結果と前記検出手段の検出結果に基づ
いて出力すべき文字を決定するようにしたことを
特徴とする文字認識方式。1. A dictionary section having a first area storing a unique standard characteristic pattern of characters that can be both uppercase and lowercase letters, and a second area storing a standard characteristic pattern of characters that can only be uppercase letters, The input character pattern is normalized in terms of size, a feature pattern is extracted from the normalized character pattern, and the feature pattern is matched with a standard feature pattern registered in the dictionary section to perform character recognition. In the character recognition method performed, a detection means for detecting the character size of the input character pattern is provided, and when the input character is determined to be an uppercase character by the means, the matching range is changed to the first and second character sizes.
and when it is determined to be a lowercase letter, the matching range is limited to the first area, and the character to be output is determined based on the matching result and the detection result of the detection means. A character recognition method featuring
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59093288A JPS60237584A (en) | 1984-05-09 | 1984-05-09 | Character recognition system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP59093288A JPS60237584A (en) | 1984-05-09 | 1984-05-09 | Character recognition system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS60237584A JPS60237584A (en) | 1985-11-26 |
| JPH0436431B2 true JPH0436431B2 (en) | 1992-06-16 |
Family
ID=14078215
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP59093288A Granted JPS60237584A (en) | 1984-05-09 | 1984-05-09 | Character recognition system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS60237584A (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6320265U (en) * | 1986-07-18 | 1988-02-10 | ||
| JP2574776B2 (en) * | 1986-10-24 | 1997-01-22 | 株式会社日立製作所 | Character recognition method |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS58214972A (en) * | 1982-06-09 | 1983-12-14 | Hitachi Ltd | Online handwritten character recognition device |
-
1984
- 1984-05-09 JP JP59093288A patent/JPS60237584A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS60237584A (en) | 1985-11-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0436432B2 (en) | ||
| JPH0150954B2 (en) | ||
| JPS60237584A (en) | Character recognition system | |
| JPH0548510B2 (en) | ||
| JPH0632070B2 (en) | Character recognition device | |
| JP2000276598A (en) | Image recognition method | |
| JP3457094B2 (en) | Character recognition device and character recognition method | |
| JP3140079B2 (en) | Ruled line recognition method and table processing method | |
| JP2978801B2 (en) | Character input method for handwritten character recognition | |
| JPH07168911A (en) | Document recognition device | |
| JP2963474B2 (en) | Similar character identification method | |
| JP2972443B2 (en) | Character recognition device | |
| JP2930996B2 (en) | Image recognition method and image recognition device | |
| JPH0664629B2 (en) | Character recognition method | |
| JP2974396B2 (en) | Image processing method and apparatus | |
| JPS62194590A (en) | Character recognizing system | |
| JPH01201789A (en) | Character reader | |
| JPH01124082A (en) | Character recognizing device | |
| JPH05174179A (en) | Document image processor | |
| JPS59128682A (en) | Character reader | |
| JPH02166583A (en) | Character recognizing device | |
| JPH0728930A (en) | Character recognition device | |
| JPH0246988B2 (en) | ||
| JPH0664628B2 (en) | Character recognition device | |
| JPS5894065A (en) | Character recognizing device |