xref: /aosp_15_r20/external/zxing/docs/apidocs/com/google/zxing/oned/OneDReader.html (revision 513427e33d61bc67fc40bc261642ac0b2a686b45)
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!-- NewPage -->
3<html lang="en">
4<head>
5<!-- Generated by javadoc -->
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<title>OneDReader (ZXing 3.5.1 API)</title>
8<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
9<script type="text/javascript" src="../../../../script.js"></script>
10</head>
11<body>
12<script type="text/javascript"><!--
13    try {
14        if (location.href.indexOf('is-external=true') == -1) {
15            parent.document.title="OneDReader (ZXing 3.5.1 API)";
16        }
17    }
18    catch(err) {
19    }
20//-->
21var methods = {"i0":10,"i1":10,"i2":6,"i3":9,"i4":9,"i5":9,"i6":10};
22var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],8:["t4","Concrete Methods"]};
23var altColor = "altColor";
24var rowColor = "rowColor";
25var tableTab = "tableTab";
26var activeTableTab = "activeTableTab";
27</script>
28<noscript>
29<div>JavaScript is disabled on your browser.</div>
30</noscript>
31<!-- ========= START OF TOP NAVBAR ======= -->
32<div class="topNav"><a name="navbar.top">
33<!--   -->
34</a>
35<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
36<a name="navbar.top.firstrow">
37<!--   -->
38</a>
39<ul class="navList" title="Navigation">
40<li><a href="../../../../overview-summary.html">Overview</a></li>
41<li><a href="package-summary.html">Package</a></li>
42<li class="navBarCell1Rev">Class</li>
43<li><a href="class-use/OneDReader.html">Use</a></li>
44<li><a href="package-tree.html">Tree</a></li>
45<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
46<li><a href="../../../../index-all.html">Index</a></li>
47<li><a href="../../../../help-doc.html">Help</a></li>
48</ul>
49</div>
50<div class="subNav">
51<ul class="navList">
52<li><a href="../../../../com/google/zxing/oned/OneDimensionalCodeWriter.html" title="class in com.google.zxing.oned"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
53<li><a href="../../../../com/google/zxing/oned/UPCAReader.html" title="class in com.google.zxing.oned"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
54</ul>
55<ul class="navList">
56<li><a href="../../../../index.html?com/google/zxing/oned/OneDReader.html" target="_top">Frames</a></li>
57<li><a href="OneDReader.html" target="_top">No&nbsp;Frames</a></li>
58</ul>
59<ul class="navList" id="allclasses_navbar_top">
60<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
61</ul>
62<div>
63<script type="text/javascript"><!--
64  allClassesLink = document.getElementById("allclasses_navbar_top");
65  if(window==top) {
66    allClassesLink.style.display = "block";
67  }
68  else {
69    allClassesLink.style.display = "none";
70  }
71  //-->
72</script>
73</div>
74<div>
75<ul class="subNavList">
76<li>Summary:&nbsp;</li>
77<li>Nested&nbsp;|&nbsp;</li>
78<li>Field&nbsp;|&nbsp;</li>
79<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
80<li><a href="#method.summary">Method</a></li>
81</ul>
82<ul class="subNavList">
83<li>Detail:&nbsp;</li>
84<li>Field&nbsp;|&nbsp;</li>
85<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
86<li><a href="#method.detail">Method</a></li>
87</ul>
88</div>
89<a name="skip.navbar.top">
90<!--   -->
91</a></div>
92<!-- ========= END OF TOP NAVBAR ========= -->
93<!-- ======== START OF CLASS DATA ======== -->
94<div class="header">
95<div class="subTitle">com.google.zxing.oned</div>
96<h2 title="Class OneDReader" class="title">Class OneDReader</h2>
97</div>
98<div class="contentContainer">
99<ul class="inheritance">
100<li><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
101<li>
102<ul class="inheritance">
103<li>com.google.zxing.oned.OneDReader</li>
104</ul>
105</li>
106</ul>
107<div class="description">
108<ul class="blockList">
109<li class="blockList">
110<dl>
111<dt>All Implemented Interfaces:</dt>
112<dd><a href="../../../../com/google/zxing/Reader.html" title="interface in com.google.zxing">Reader</a></dd>
113</dl>
114<dl>
115<dt>Direct Known Subclasses:</dt>
116<dd><a href="../../../../com/google/zxing/oned/rss/AbstractRSSReader.html" title="class in com.google.zxing.oned.rss">AbstractRSSReader</a>, <a href="../../../../com/google/zxing/oned/CodaBarReader.html" title="class in com.google.zxing.oned">CodaBarReader</a>, <a href="../../../../com/google/zxing/oned/Code128Reader.html" title="class in com.google.zxing.oned">Code128Reader</a>, <a href="../../../../com/google/zxing/oned/Code39Reader.html" title="class in com.google.zxing.oned">Code39Reader</a>, <a href="../../../../com/google/zxing/oned/Code93Reader.html" title="class in com.google.zxing.oned">Code93Reader</a>, <a href="../../../../com/google/zxing/oned/ITFReader.html" title="class in com.google.zxing.oned">ITFReader</a>, <a href="../../../../com/google/zxing/oned/MultiFormatOneDReader.html" title="class in com.google.zxing.oned">MultiFormatOneDReader</a>, <a href="../../../../com/google/zxing/oned/MultiFormatUPCEANReader.html" title="class in com.google.zxing.oned">MultiFormatUPCEANReader</a>, <a href="../../../../com/google/zxing/oned/UPCEANReader.html" title="class in com.google.zxing.oned">UPCEANReader</a></dd>
117</dl>
118<hr>
119<br>
120<pre>public abstract class <span class="typeNameLabel">OneDReader</span>
121extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
122implements <a href="../../../../com/google/zxing/Reader.html" title="interface in com.google.zxing">Reader</a></pre>
123<div class="block">Encapsulates functionality and implementation that is common to all families
124 of one-dimensional barcodes.</div>
125<dl>
126<dt><span class="simpleTagLabel">Author:</span></dt>
127<dd>[email protected] (Daniel Switkin), Sean Owen</dd>
128</dl>
129</li>
130</ul>
131</div>
132<div class="summary">
133<ul class="blockList">
134<li class="blockList">
135<!-- ======== CONSTRUCTOR SUMMARY ======== -->
136<ul class="blockList">
137<li class="blockList"><a name="constructor.summary">
138<!--   -->
139</a>
140<h3>Constructor Summary</h3>
141<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
142<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
143<tr>
144<th class="colOne" scope="col">Constructor and Description</th>
145</tr>
146<tr class="altColor">
147<td class="colOne"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#OneDReader--">OneDReader</a></span>()</code>&nbsp;</td>
148</tr>
149</table>
150</li>
151</ul>
152<!-- ========== METHOD SUMMARY =========== -->
153<ul class="blockList">
154<li class="blockList"><a name="method.summary">
155<!--   -->
156</a>
157<h3>Method Summary</h3>
158<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
159<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
160<tr>
161<th class="colFirst" scope="col">Modifier and Type</th>
162<th class="colLast" scope="col">Method and Description</th>
163</tr>
164<tr id="i0" class="altColor">
165<td class="colFirst"><code><a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a></code></td>
166<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#decode-com.google.zxing.BinaryBitmap-">decode</a></span>(<a href="../../../../com/google/zxing/BinaryBitmap.html" title="class in com.google.zxing">BinaryBitmap</a>&nbsp;image)</code>
167<div class="block">Locates and decodes a barcode in some format within an image.</div>
168</td>
169</tr>
170<tr id="i1" class="rowColor">
171<td class="colFirst"><code><a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a></code></td>
172<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#decode-com.google.zxing.BinaryBitmap-java.util.Map-">decode</a></span>(<a href="../../../../com/google/zxing/BinaryBitmap.html" title="class in com.google.zxing">BinaryBitmap</a>&nbsp;image,
173      <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../com/google/zxing/DecodeHintType.html" title="enum in com.google.zxing">DecodeHintType</a>,?&gt;&nbsp;hints)</code>
174<div class="block">Locates and decodes a barcode in some format within an image.</div>
175</td>
176</tr>
177<tr id="i2" class="altColor">
178<td class="colFirst"><code>abstract <a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a></code></td>
179<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#decodeRow-int-com.google.zxing.common.BitArray-java.util.Map-">decodeRow</a></span>(int&nbsp;rowNumber,
180         <a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
181         <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../com/google/zxing/DecodeHintType.html" title="enum in com.google.zxing">DecodeHintType</a>,?&gt;&nbsp;hints)</code>
182<div class="block">Attempts to decode a one-dimensional barcode format given a single row of
183 an image.</div>
184</td>
185</tr>
186<tr id="i3" class="rowColor">
187<td class="colFirst"><code>protected static float</code></td>
188<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#patternMatchVariance-int:A-int:A-float-">patternMatchVariance</a></span>(int[]&nbsp;counters,
189                    int[]&nbsp;pattern,
190                    float&nbsp;maxIndividualVariance)</code>
191<div class="block">Determines how closely a set of observed counts of runs of black/white values matches a given
192 target pattern.</div>
193</td>
194</tr>
195<tr id="i4" class="altColor">
196<td class="colFirst"><code>protected static void</code></td>
197<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#recordPattern-com.google.zxing.common.BitArray-int-int:A-">recordPattern</a></span>(<a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
198             int&nbsp;start,
199             int[]&nbsp;counters)</code>
200<div class="block">Records the size of successive runs of white and black pixels in a row, starting at a given point.</div>
201</td>
202</tr>
203<tr id="i5" class="rowColor">
204<td class="colFirst"><code>protected static void</code></td>
205<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#recordPatternInReverse-com.google.zxing.common.BitArray-int-int:A-">recordPatternInReverse</a></span>(<a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
206                      int&nbsp;start,
207                      int[]&nbsp;counters)</code>&nbsp;</td>
208</tr>
209<tr id="i6" class="altColor">
210<td class="colFirst"><code>void</code></td>
211<td class="colLast"><code><span class="memberNameLink"><a href="../../../../com/google/zxing/oned/OneDReader.html#reset--">reset</a></span>()</code>
212<div class="block">Resets any internal state the implementation has after a decode, to prepare it
213 for reuse.</div>
214</td>
215</tr>
216</table>
217<ul class="blockList">
218<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
219<!--   -->
220</a>
221<h3>Methods inherited from class&nbsp;java.lang.<a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
222<code><a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
223</ul>
224</li>
225</ul>
226</li>
227</ul>
228</div>
229<div class="details">
230<ul class="blockList">
231<li class="blockList">
232<!-- ========= CONSTRUCTOR DETAIL ======== -->
233<ul class="blockList">
234<li class="blockList"><a name="constructor.detail">
235<!--   -->
236</a>
237<h3>Constructor Detail</h3>
238<a name="OneDReader--">
239<!--   -->
240</a>
241<ul class="blockListLast">
242<li class="blockList">
243<h4>OneDReader</h4>
244<pre>public&nbsp;OneDReader()</pre>
245</li>
246</ul>
247</li>
248</ul>
249<!-- ============ METHOD DETAIL ========== -->
250<ul class="blockList">
251<li class="blockList"><a name="method.detail">
252<!--   -->
253</a>
254<h3>Method Detail</h3>
255<a name="decode-com.google.zxing.BinaryBitmap-">
256<!--   -->
257</a>
258<ul class="blockList">
259<li class="blockList">
260<h4>decode</h4>
261<pre>public&nbsp;<a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a>&nbsp;decode(<a href="../../../../com/google/zxing/BinaryBitmap.html" title="class in com.google.zxing">BinaryBitmap</a>&nbsp;image)
262              throws <a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a>,
263                     <a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></pre>
264<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../com/google/zxing/Reader.html#decode-com.google.zxing.BinaryBitmap-">Reader</a></code></span></div>
265<div class="block">Locates and decodes a barcode in some format within an image.</div>
266<dl>
267<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
268<dd><code><a href="../../../../com/google/zxing/Reader.html#decode-com.google.zxing.BinaryBitmap-">decode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/zxing/Reader.html" title="interface in com.google.zxing">Reader</a></code></dd>
269<dt><span class="paramLabel">Parameters:</span></dt>
270<dd><code>image</code> - image of barcode to decode</dd>
271<dt><span class="returnLabel">Returns:</span></dt>
272<dd>String which the barcode encodes</dd>
273<dt><span class="throwsLabel">Throws:</span></dt>
274<dd><code><a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></code> - if no potential barcode is found</dd>
275<dd><code><a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></code> - if a potential barcode is found but format is invalid</dd>
276</dl>
277</li>
278</ul>
279<a name="decode-com.google.zxing.BinaryBitmap-java.util.Map-">
280<!--   -->
281</a>
282<ul class="blockList">
283<li class="blockList">
284<h4>decode</h4>
285<pre>public&nbsp;<a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a>&nbsp;decode(<a href="../../../../com/google/zxing/BinaryBitmap.html" title="class in com.google.zxing">BinaryBitmap</a>&nbsp;image,
286                     <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../com/google/zxing/DecodeHintType.html" title="enum in com.google.zxing">DecodeHintType</a>,?&gt;&nbsp;hints)
287              throws <a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a>,
288                     <a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></pre>
289<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../com/google/zxing/Reader.html#decode-com.google.zxing.BinaryBitmap-java.util.Map-">Reader</a></code></span></div>
290<div class="block">Locates and decodes a barcode in some format within an image. This method also accepts
291 hints, each possibly associated to some data, which may help the implementation decode.</div>
292<dl>
293<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
294<dd><code><a href="../../../../com/google/zxing/Reader.html#decode-com.google.zxing.BinaryBitmap-java.util.Map-">decode</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/zxing/Reader.html" title="interface in com.google.zxing">Reader</a></code></dd>
295<dt><span class="paramLabel">Parameters:</span></dt>
296<dd><code>image</code> - image of barcode to decode</dd>
297<dd><code>hints</code> - passed as a <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util"><code>Map</code></a> from <a href="../../../../com/google/zxing/DecodeHintType.html" title="enum in com.google.zxing"><code>DecodeHintType</code></a>
298 to arbitrary data. The
299 meaning of the data depends upon the hint type. The implementation may or may not do
300 anything with these hints.</dd>
301<dt><span class="returnLabel">Returns:</span></dt>
302<dd>String which the barcode encodes</dd>
303<dt><span class="throwsLabel">Throws:</span></dt>
304<dd><code><a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></code> - if no potential barcode is found</dd>
305<dd><code><a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></code> - if a potential barcode is found but format is invalid</dd>
306</dl>
307</li>
308</ul>
309<a name="reset--">
310<!--   -->
311</a>
312<ul class="blockList">
313<li class="blockList">
314<h4>reset</h4>
315<pre>public&nbsp;void&nbsp;reset()</pre>
316<div class="block"><span class="descfrmTypeLabel">Description copied from interface:&nbsp;<code><a href="../../../../com/google/zxing/Reader.html#reset--">Reader</a></code></span></div>
317<div class="block">Resets any internal state the implementation has after a decode, to prepare it
318 for reuse.</div>
319<dl>
320<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
321<dd><code><a href="../../../../com/google/zxing/Reader.html#reset--">reset</a></code>&nbsp;in interface&nbsp;<code><a href="../../../../com/google/zxing/Reader.html" title="interface in com.google.zxing">Reader</a></code></dd>
322</dl>
323</li>
324</ul>
325<a name="recordPattern-com.google.zxing.common.BitArray-int-int:A-">
326<!--   -->
327</a>
328<ul class="blockList">
329<li class="blockList">
330<h4>recordPattern</h4>
331<pre>protected static&nbsp;void&nbsp;recordPattern(<a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
332                                    int&nbsp;start,
333                                    int[]&nbsp;counters)
334                             throws <a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></pre>
335<div class="block">Records the size of successive runs of white and black pixels in a row, starting at a given point.
336 The values are recorded in the given array, and the number of runs recorded is equal to the size
337 of the array. If the row starts on a white pixel at the given start point, then the first count
338 recorded is the run of white pixels starting from that point; likewise it is the count of a run
339 of black pixels if the row begin on a black pixels at that point.</div>
340<dl>
341<dt><span class="paramLabel">Parameters:</span></dt>
342<dd><code>row</code> - row to count from</dd>
343<dd><code>start</code> - offset into row to start at</dd>
344<dd><code>counters</code> - array into which to record counts</dd>
345<dt><span class="throwsLabel">Throws:</span></dt>
346<dd><code><a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></code> - if counters cannot be filled entirely from row before running out
347  of pixels</dd>
348</dl>
349</li>
350</ul>
351<a name="recordPatternInReverse-com.google.zxing.common.BitArray-int-int:A-">
352<!--   -->
353</a>
354<ul class="blockList">
355<li class="blockList">
356<h4>recordPatternInReverse</h4>
357<pre>protected static&nbsp;void&nbsp;recordPatternInReverse(<a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
358                                             int&nbsp;start,
359                                             int[]&nbsp;counters)
360                                      throws <a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></pre>
361<dl>
362<dt><span class="throwsLabel">Throws:</span></dt>
363<dd><code><a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></code></dd>
364</dl>
365</li>
366</ul>
367<a name="patternMatchVariance-int:A-int:A-float-">
368<!--   -->
369</a>
370<ul class="blockList">
371<li class="blockList">
372<h4>patternMatchVariance</h4>
373<pre>protected static&nbsp;float&nbsp;patternMatchVariance(int[]&nbsp;counters,
374                                            int[]&nbsp;pattern,
375                                            float&nbsp;maxIndividualVariance)</pre>
376<div class="block">Determines how closely a set of observed counts of runs of black/white values matches a given
377 target pattern. This is reported as the ratio of the total variance from the expected pattern
378 proportions across all pattern elements, to the length of the pattern.</div>
379<dl>
380<dt><span class="paramLabel">Parameters:</span></dt>
381<dd><code>counters</code> - observed counters</dd>
382<dd><code>pattern</code> - expected pattern</dd>
383<dd><code>maxIndividualVariance</code> - The most any counter can differ before we give up</dd>
384<dt><span class="returnLabel">Returns:</span></dt>
385<dd>ratio of total variance between counters and pattern compared to total pattern size</dd>
386</dl>
387</li>
388</ul>
389<a name="decodeRow-int-com.google.zxing.common.BitArray-java.util.Map-">
390<!--   -->
391</a>
392<ul class="blockListLast">
393<li class="blockList">
394<h4>decodeRow</h4>
395<pre>public abstract&nbsp;<a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing">Result</a>&nbsp;decodeRow(int&nbsp;rowNumber,
396                                 <a href="../../../../com/google/zxing/common/BitArray.html" title="class in com.google.zxing.common">BitArray</a>&nbsp;row,
397                                 <a href="https://docs.oracle.com/javase/8/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a>&lt;<a href="../../../../com/google/zxing/DecodeHintType.html" title="enum in com.google.zxing">DecodeHintType</a>,?&gt;&nbsp;hints)
398                          throws <a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a>,
399                                 <a href="../../../../com/google/zxing/ChecksumException.html" title="class in com.google.zxing">ChecksumException</a>,
400                                 <a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></pre>
401<div class="block"><p>Attempts to decode a one-dimensional barcode format given a single row of
402 an image.</p></div>
403<dl>
404<dt><span class="paramLabel">Parameters:</span></dt>
405<dd><code>rowNumber</code> - row number from top of the row</dd>
406<dd><code>row</code> - the black/white pixel data of the row</dd>
407<dd><code>hints</code> - decode hints</dd>
408<dt><span class="returnLabel">Returns:</span></dt>
409<dd><a href="../../../../com/google/zxing/Result.html" title="class in com.google.zxing"><code>Result</code></a> containing encoded string and start/end of barcode</dd>
410<dt><span class="throwsLabel">Throws:</span></dt>
411<dd><code><a href="../../../../com/google/zxing/NotFoundException.html" title="class in com.google.zxing">NotFoundException</a></code> - if no potential barcode is found</dd>
412<dd><code><a href="../../../../com/google/zxing/ChecksumException.html" title="class in com.google.zxing">ChecksumException</a></code> - if a potential barcode is found but does not pass its checksum</dd>
413<dd><code><a href="../../../../com/google/zxing/FormatException.html" title="class in com.google.zxing">FormatException</a></code> - if a potential barcode is found but format is invalid</dd>
414</dl>
415</li>
416</ul>
417</li>
418</ul>
419</li>
420</ul>
421</div>
422</div>
423<!-- ========= END OF CLASS DATA ========= -->
424<!-- ======= START OF BOTTOM NAVBAR ====== -->
425<div class="bottomNav"><a name="navbar.bottom">
426<!--   -->
427</a>
428<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
429<a name="navbar.bottom.firstrow">
430<!--   -->
431</a>
432<ul class="navList" title="Navigation">
433<li><a href="../../../../overview-summary.html">Overview</a></li>
434<li><a href="package-summary.html">Package</a></li>
435<li class="navBarCell1Rev">Class</li>
436<li><a href="class-use/OneDReader.html">Use</a></li>
437<li><a href="package-tree.html">Tree</a></li>
438<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
439<li><a href="../../../../index-all.html">Index</a></li>
440<li><a href="../../../../help-doc.html">Help</a></li>
441</ul>
442</div>
443<div class="subNav">
444<ul class="navList">
445<li><a href="../../../../com/google/zxing/oned/OneDimensionalCodeWriter.html" title="class in com.google.zxing.oned"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
446<li><a href="../../../../com/google/zxing/oned/UPCAReader.html" title="class in com.google.zxing.oned"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
447</ul>
448<ul class="navList">
449<li><a href="../../../../index.html?com/google/zxing/oned/OneDReader.html" target="_top">Frames</a></li>
450<li><a href="OneDReader.html" target="_top">No&nbsp;Frames</a></li>
451</ul>
452<ul class="navList" id="allclasses_navbar_bottom">
453<li><a href="../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
454</ul>
455<div>
456<script type="text/javascript"><!--
457  allClassesLink = document.getElementById("allclasses_navbar_bottom");
458  if(window==top) {
459    allClassesLink.style.display = "block";
460  }
461  else {
462    allClassesLink.style.display = "none";
463  }
464  //-->
465</script>
466</div>
467<div>
468<ul class="subNavList">
469<li>Summary:&nbsp;</li>
470<li>Nested&nbsp;|&nbsp;</li>
471<li>Field&nbsp;|&nbsp;</li>
472<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
473<li><a href="#method.summary">Method</a></li>
474</ul>
475<ul class="subNavList">
476<li>Detail:&nbsp;</li>
477<li>Field&nbsp;|&nbsp;</li>
478<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
479<li><a href="#method.detail">Method</a></li>
480</ul>
481</div>
482<a name="skip.navbar.bottom">
483<!--   -->
484</a></div>
485<!-- ======== END OF BOTTOM NAVBAR ======= -->
486<p class="legalCopy"><small>Copyright &#169; 2007&#x2013;2022. All rights reserved.</small></p>
487</body>
488</html>
489