chillerlan-QRCode-Detector-AlignmentPatternFinder.html 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@100;200;300;400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/template.js"></script>
  22. <script src="js/search.js"></script>
  23. <script defer src="js/searchIndex.js"></script>
  24. </head>
  25. <body id="top">
  26. <header class="phpdocumentor-header phpdocumentor-section">
  27. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  28. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  29. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  30. <i class="fas fa-bars"></i>
  31. </label>
  32. <section data-search-form class="phpdocumentor-search">
  33. <label>
  34. <span class="visually-hidden">Search for</span>
  35. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  36. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  37. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  38. </svg>
  39. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  40. </label>
  41. </section>
  42. <nav class="phpdocumentor-topnav">
  43. <ul class="phpdocumentor-topnav__menu">
  44. <li class="phpdocumentor-topnav__menu-item -menu">
  45. <a href="https://php-qrcode.readthedocs.io">
  46. <span>
  47. User Manual
  48. </span>
  49. </a>
  50. </li>
  51. <li class="phpdocumentor-topnav__menu-item -social">
  52. <a href="https://github.com/chillerlan/php-qrcode">
  53. <span>
  54. <i class="fab fa-github"></i>
  55. </span>
  56. </a>
  57. </li>
  58. <li class="phpdocumentor-topnav__menu-item -social">
  59. <a href="https://github.com/chillerlan/php-qrcode/discussions">
  60. <span>
  61. <i class="fas fa-envelope-open-text"></i>
  62. </span>
  63. </a>
  64. </li>
  65. </ul>
  66. </nav>
  67. </header>
  68. <main class="phpdocumentor">
  69. <div class="phpdocumentor-section">
  70. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  71. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  72. Menu
  73. </label>
  74. <aside class="phpdocumentor-column -three phpdocumentor-sidebar">
  75. <section class="phpdocumentor-sidebar__category -namespaces">
  76. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  77. <h4 class="phpdocumentor-sidebar__root-namespace">
  78. <a href="namespaces/chillerlan.html" class="">chillerlan</a>
  79. </h4>
  80. <ul class="phpdocumentor-list">
  81. <li>
  82. <a href="namespaces/chillerlan-qrcode.html" class="">QRCode</a>
  83. </li>
  84. <li>
  85. <a href="namespaces/chillerlan-qrcodetest.html" class="">QRCodeTest</a>
  86. </li>
  87. </ul>
  88. <h4 class="phpdocumentor-sidebar__root-namespace">
  89. <a href="namespaces/output.html" class="">Output</a>
  90. </h4>
  91. </section>
  92. <section class="phpdocumentor-sidebar__category -packages">
  93. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  94. <h4 class="phpdocumentor-sidebar__root-namespace">
  95. <a href="packages/Application.html" class="">Application</a>
  96. </h4>
  97. </section>
  98. <section class="phpdocumentor-sidebar__category -reports">
  99. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  100. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  101. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  102. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  103. </section>
  104. <section class="phpdocumentor-sidebar__category -indices">
  105. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  106. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  107. </section>
  108. </aside>
  109. <div class="phpdocumentor-column -nine phpdocumentor-content">
  110. <section>
  111. <ul class="phpdocumentor-breadcrumbs">
  112. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  113. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  114. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-detector.html">Detector</a></li>
  115. </ul>
  116. <article class="phpdocumentor-element -class">
  117. <h2 class="phpdocumentor-content__title">
  118. AlignmentPatternFinder
  119. <div class="phpdocumentor-element__package">
  120. in package
  121. <ul class="phpdocumentor-breadcrumbs">
  122. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  123. </ul>
  124. </div>
  125. </h2>
  126. <div class="phpdocumentor-label-line">
  127. <div class="phpdocumentor-label phpdocumentor-label--success"><span>Final</span><span>Yes</span></div>
  128. </div>
  129. <aside class="phpdocumentor-element-found-in">
  130. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  131. :
  132. <span class="phpdocumentor-element-found-in__line">31</span>
  133. </aside>
  134. <p class="phpdocumentor-summary">This class attempts to find alignment patterns in a QR Code. Alignment patterns look like finder
  135. patterns but are smaller and appear at regular intervals throughout the image.</p>
  136. <section class="phpdocumentor-description"><p>At the moment this only looks for the bottom-right alignment pattern.</p>
  137. <p>This is mostly a simplified copy of FinderPatternFinder. It is copied,
  138. pasted and stripped down here for maximum performance but does unfortunately duplicate
  139. some code.</p>
  140. <p>This class is thread-safe but not reentrant. Each thread must allocate its own object.</p>
  141. </section>
  142. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  143. Tags
  144. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  145. </h5>
  146. <dl class="phpdocumentor-tag-list">
  147. <dt class="phpdocumentor-tag-list__entry">
  148. <span class="phpdocumentor-tag__name">author</span>
  149. </dt>
  150. <dd class="phpdocumentor-tag-list__definition">
  151. <section class="phpdocumentor-description"><p>Sean Owen</p>
  152. </section>
  153. </dd>
  154. </dl>
  155. <h3 id="toc">
  156. Table of Contents
  157. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  158. </h3>
  159. <h4 id="toc-properties">
  160. Properties
  161. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  162. </h4>
  163. <dl class="phpdocumentor-table-of-contents">
  164. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  165. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_matrix">$matrix</a>
  166. <span>
  167. &nbsp;: <a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a> </span>
  168. </dt>
  169. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  170. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_moduleSize">$moduleSize</a>
  171. <span>
  172. &nbsp;: float </span>
  173. </dt>
  174. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  175. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_possibleCenters">$possibleCenters</a>
  176. <span>
  177. &nbsp;: array&lt;string|int, <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>&gt; </span>
  178. </dt>
  179. </dl>
  180. <h4 id="toc-methods">
  181. Methods
  182. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  183. </h4>
  184. <dl class="phpdocumentor-table-of-contents">
  185. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  186. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method___construct">__construct()</a>
  187. <span>
  188. &nbsp;: mixed </span>
  189. </dt>
  190. <dd>Creates a finder that will look in a portion of the whole image.</dd>
  191. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  192. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_find">find()</a>
  193. <span>
  194. &nbsp;: <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null </span>
  195. </dt>
  196. <dd>This method attempts to find the bottom-right alignment pattern in the image. It is a bit messy since
  197. it&#039;s pretty performance-critical and so is written to be fast foremost.</dd>
  198. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  199. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_centerFromEnd">centerFromEnd()</a>
  200. <span>
  201. &nbsp;: float </span>
  202. </dt>
  203. <dd>Given a count of black/white/black pixels just seen and an end position,
  204. figures the location of the center of this black/white/black run.</dd>
  205. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  206. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_crossCheckVertical">crossCheckVertical()</a>
  207. <span>
  208. &nbsp;: float|null </span>
  209. </dt>
  210. <dd>After a horizontal scan finds a potential alignment pattern, this method
  211. &quot;cross-checks&quot; by scanning down vertically through the center of the possible
  212. alignment pattern to see if the same proportion is detected.</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  214. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_foundPatternCross">foundPatternCross()</a>
  215. <span>
  216. &nbsp;: bool </span>
  217. </dt>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  219. <a class="" href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_handlePossibleCenter">handlePossibleCenter()</a>
  220. <span>
  221. &nbsp;: <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null </span>
  222. </dt>
  223. <dd>This is called when a horizontal scan finds a possible alignment pattern. It will
  224. cross-check with a vertical scan, and if successful, will see if this pattern had been
  225. found on a previous horizontal scan. If so, we consider it confirmed and conclude we have
  226. found the alignment pattern.</dd>
  227. </dl>
  228. <section class="phpdocumentor-properties">
  229. <h3 class="phpdocumentor-elements__header" id="properties">
  230. Properties
  231. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  232. </h3>
  233. <article
  234. class="
  235. phpdocumentor-element
  236. -property
  237. -private
  238. "
  239. >
  240. <h4 class="phpdocumentor-element__name" id="property_matrix">
  241. $matrix
  242. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  243. <span class="phpdocumentor-element__modifiers">
  244. </span>
  245. </h4>
  246. <aside class="phpdocumentor-element-found-in">
  247. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  248. :
  249. <span class="phpdocumentor-element-found-in__line">33</span>
  250. </aside>
  251. <code class="phpdocumentor-code phpdocumentor-signature ">
  252. <span class="phpdocumentor-signature__visibility">private</span>
  253. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a></span>
  254. <span class="phpdocumentor-signature__name">$matrix</span>
  255. </code>
  256. </article>
  257. <article
  258. class="
  259. phpdocumentor-element
  260. -property
  261. -private
  262. "
  263. >
  264. <h4 class="phpdocumentor-element__name" id="property_moduleSize">
  265. $moduleSize
  266. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_moduleSize" class="headerlink"><i class="fas fa-link"></i></a>
  267. <span class="phpdocumentor-element__modifiers">
  268. </span>
  269. </h4>
  270. <aside class="phpdocumentor-element-found-in">
  271. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  272. :
  273. <span class="phpdocumentor-element-found-in__line">34</span>
  274. </aside>
  275. <code class="phpdocumentor-code phpdocumentor-signature ">
  276. <span class="phpdocumentor-signature__visibility">private</span>
  277. <span class="phpdocumentor-signature__type">float</span>
  278. <span class="phpdocumentor-signature__name">$moduleSize</span>
  279. </code>
  280. </article>
  281. <article
  282. class="
  283. phpdocumentor-element
  284. -property
  285. -private
  286. "
  287. >
  288. <h4 class="phpdocumentor-element__name" id="property_possibleCenters">
  289. $possibleCenters
  290. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_possibleCenters" class="headerlink"><i class="fas fa-link"></i></a>
  291. <span class="phpdocumentor-element__modifiers">
  292. </span>
  293. </h4>
  294. <aside class="phpdocumentor-element-found-in">
  295. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  296. :
  297. <span class="phpdocumentor-element-found-in__line">36</span>
  298. </aside>
  299. <code class="phpdocumentor-code phpdocumentor-signature ">
  300. <span class="phpdocumentor-signature__visibility">private</span>
  301. <span class="phpdocumentor-signature__type">array&lt;string|int, <a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>&gt;</span>
  302. <span class="phpdocumentor-signature__name">$possibleCenters</span>
  303. </code>
  304. </article>
  305. </section>
  306. <section class="phpdocumentor-methods">
  307. <h3 class="phpdocumentor-elements__header" id="methods">
  308. Methods
  309. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  310. </h3>
  311. <article
  312. class="phpdocumentor-element
  313. -method
  314. -public
  315. "
  316. >
  317. <h4 class="phpdocumentor-element__name" id="method___construct">
  318. __construct()
  319. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  320. </h4>
  321. <aside class="phpdocumentor-element-found-in">
  322. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  323. :
  324. <span class="phpdocumentor-element-found-in__line">44</span>
  325. </aside>
  326. <p class="phpdocumentor-summary">Creates a finder that will look in a portion of the whole image.</p>
  327. <code class="phpdocumentor-code phpdocumentor-signature ">
  328. <span class="phpdocumentor-signature__visibility">public</span>
  329. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">float&nbsp;</span><span class="phpdocumentor-signature__argument__name">$moduleSize</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  330. <div class="phpdocumentor-label-line">
  331. </div>
  332. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  333. <dl class="phpdocumentor-argument-list">
  334. <dt class="phpdocumentor-argument-list__entry">
  335. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  336. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Decoder-BitMatrix.html"><abbr title="\chillerlan\QRCode\Decoder\BitMatrix">BitMatrix</abbr></a></span>
  337. </dt>
  338. <dd class="phpdocumentor-argument-list__definition">
  339. <section class="phpdocumentor-description"><p>image to search</p>
  340. </section>
  341. </dd>
  342. <dt class="phpdocumentor-argument-list__entry">
  343. <span class="phpdocumentor-signature__argument__name">$moduleSize</span>
  344. : <span class="phpdocumentor-signature__argument__return-type">float</span>
  345. </dt>
  346. <dd class="phpdocumentor-argument-list__definition">
  347. <section class="phpdocumentor-description"><p>estimated module size so far</p>
  348. </section>
  349. </dd>
  350. </dl>
  351. </article>
  352. <article
  353. class="phpdocumentor-element
  354. -method
  355. -public
  356. "
  357. >
  358. <h4 class="phpdocumentor-element__name" id="method_find">
  359. find()
  360. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_find" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h4>
  362. <aside class="phpdocumentor-element-found-in">
  363. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  364. :
  365. <span class="phpdocumentor-element-found-in__line">61</span>
  366. </aside>
  367. <p class="phpdocumentor-summary">This method attempts to find the bottom-right alignment pattern in the image. It is a bit messy since
  368. it&#039;s pretty performance-critical and so is written to be fast foremost.</p>
  369. <code class="phpdocumentor-code phpdocumentor-signature ">
  370. <span class="phpdocumentor-signature__visibility">public</span>
  371. <span class="phpdocumentor-signature__name">find</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$startX</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$startY</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$width</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$height</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null</span></code>
  372. <div class="phpdocumentor-label-line">
  373. </div>
  374. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  375. <dl class="phpdocumentor-argument-list">
  376. <dt class="phpdocumentor-argument-list__entry">
  377. <span class="phpdocumentor-signature__argument__name">$startX</span>
  378. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  379. </dt>
  380. <dd class="phpdocumentor-argument-list__definition">
  381. <section class="phpdocumentor-description"><p>left column from which to start searching</p>
  382. </section>
  383. </dd>
  384. <dt class="phpdocumentor-argument-list__entry">
  385. <span class="phpdocumentor-signature__argument__name">$startY</span>
  386. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  387. </dt>
  388. <dd class="phpdocumentor-argument-list__definition">
  389. <section class="phpdocumentor-description"><p>top row from which to start searching</p>
  390. </section>
  391. </dd>
  392. <dt class="phpdocumentor-argument-list__entry">
  393. <span class="phpdocumentor-signature__argument__name">$width</span>
  394. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  395. </dt>
  396. <dd class="phpdocumentor-argument-list__definition">
  397. <section class="phpdocumentor-description"><p>width of region to search</p>
  398. </section>
  399. </dd>
  400. <dt class="phpdocumentor-argument-list__entry">
  401. <span class="phpdocumentor-signature__argument__name">$height</span>
  402. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  403. </dt>
  404. <dd class="phpdocumentor-argument-list__definition">
  405. <section class="phpdocumentor-description"><p>height of region to search</p>
  406. </section>
  407. </dd>
  408. </dl>
  409. <section>
  410. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  411. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null</span>
  412. </section>
  413. </article>
  414. <article
  415. class="phpdocumentor-element
  416. -method
  417. -private
  418. "
  419. >
  420. <h4 class="phpdocumentor-element__name" id="method_centerFromEnd">
  421. centerFromEnd()
  422. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_centerFromEnd" class="headerlink"><i class="fas fa-link"></i></a>
  423. </h4>
  424. <aside class="phpdocumentor-element-found-in">
  425. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  426. :
  427. <span class="phpdocumentor-element-found-in__line">208</span>
  428. </aside>
  429. <p class="phpdocumentor-summary">Given a count of black/white/black pixels just seen and an end position,
  430. figures the location of the center of this black/white/black run.</p>
  431. <code class="phpdocumentor-code phpdocumentor-signature ">
  432. <span class="phpdocumentor-signature__visibility">private</span>
  433. <span class="phpdocumentor-signature__name">centerFromEnd</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$stateCount</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$end</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float</span></code>
  434. <div class="phpdocumentor-label-line">
  435. </div>
  436. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  437. <dl class="phpdocumentor-argument-list">
  438. <dt class="phpdocumentor-argument-list__entry">
  439. <span class="phpdocumentor-signature__argument__name">$stateCount</span>
  440. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;</span>
  441. </dt>
  442. <dd class="phpdocumentor-argument-list__definition">
  443. </dd>
  444. <dt class="phpdocumentor-argument-list__entry">
  445. <span class="phpdocumentor-signature__argument__name">$end</span>
  446. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  447. </dt>
  448. <dd class="phpdocumentor-argument-list__definition">
  449. </dd>
  450. </dl>
  451. <section>
  452. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  453. <span class="phpdocumentor-signature__response_type">float</span>
  454. </section>
  455. </article>
  456. <article
  457. class="phpdocumentor-element
  458. -method
  459. -private
  460. "
  461. >
  462. <h4 class="phpdocumentor-element__name" id="method_crossCheckVertical">
  463. crossCheckVertical()
  464. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_crossCheckVertical" class="headerlink"><i class="fas fa-link"></i></a>
  465. </h4>
  466. <aside class="phpdocumentor-element-found-in">
  467. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  468. :
  469. <span class="phpdocumentor-element-found-in__line">225</span>
  470. </aside>
  471. <p class="phpdocumentor-summary">After a horizontal scan finds a potential alignment pattern, this method
  472. &quot;cross-checks&quot; by scanning down vertically through the center of the possible
  473. alignment pattern to see if the same proportion is detected.</p>
  474. <code class="phpdocumentor-code phpdocumentor-signature ">
  475. <span class="phpdocumentor-signature__visibility">private</span>
  476. <span class="phpdocumentor-signature__name">crossCheckVertical</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$startI</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$centerJ</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$maxCount</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$originalStateCountTotal</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">float|null</span></code>
  477. <div class="phpdocumentor-label-line">
  478. </div>
  479. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  480. <dl class="phpdocumentor-argument-list">
  481. <dt class="phpdocumentor-argument-list__entry">
  482. <span class="phpdocumentor-signature__argument__name">$startI</span>
  483. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  484. </dt>
  485. <dd class="phpdocumentor-argument-list__definition">
  486. <section class="phpdocumentor-description"><p>row where an alignment pattern was detected</p>
  487. </section>
  488. </dd>
  489. <dt class="phpdocumentor-argument-list__entry">
  490. <span class="phpdocumentor-signature__argument__name">$centerJ</span>
  491. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  492. </dt>
  493. <dd class="phpdocumentor-argument-list__definition">
  494. <section class="phpdocumentor-description"><p>center of the section that appears to cross an alignment pattern</p>
  495. </section>
  496. </dd>
  497. <dt class="phpdocumentor-argument-list__entry">
  498. <span class="phpdocumentor-signature__argument__name">$maxCount</span>
  499. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  500. </dt>
  501. <dd class="phpdocumentor-argument-list__definition">
  502. <section class="phpdocumentor-description"><p>maximum reasonable number of modules that should be
  503. observed in any reading state, based on the results of the horizontal scan</p>
  504. </section>
  505. </dd>
  506. <dt class="phpdocumentor-argument-list__entry">
  507. <span class="phpdocumentor-signature__argument__name">$originalStateCountTotal</span>
  508. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  509. </dt>
  510. <dd class="phpdocumentor-argument-list__definition">
  511. </dd>
  512. </dl>
  513. <section>
  514. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  515. <span class="phpdocumentor-signature__response_type">float|null</span>
  516. &mdash;
  517. <section class="phpdocumentor-description"><p>vertical center of alignment pattern, or null if not found</p>
  518. </section>
  519. </section>
  520. </article>
  521. <article
  522. class="phpdocumentor-element
  523. -method
  524. -private
  525. "
  526. >
  527. <h4 class="phpdocumentor-element__name" id="method_foundPatternCross">
  528. foundPatternCross()
  529. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_foundPatternCross" class="headerlink"><i class="fas fa-link"></i></a>
  530. </h4>
  531. <aside class="phpdocumentor-element-found-in">
  532. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  533. :
  534. <span class="phpdocumentor-element-found-in__line">152</span>
  535. </aside>
  536. <code class="phpdocumentor-code phpdocumentor-signature ">
  537. <span class="phpdocumentor-signature__visibility">private</span>
  538. <span class="phpdocumentor-signature__name">foundPatternCross</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$stateCount</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  539. <div class="phpdocumentor-label-line">
  540. </div>
  541. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  542. <dl class="phpdocumentor-argument-list">
  543. <dt class="phpdocumentor-argument-list__entry">
  544. <span class="phpdocumentor-signature__argument__name">$stateCount</span>
  545. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;</span>
  546. </dt>
  547. <dd class="phpdocumentor-argument-list__definition">
  548. <section class="phpdocumentor-description"><p>count of black/white/black pixels just read</p>
  549. </section>
  550. </dd>
  551. </dl>
  552. <section>
  553. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  554. <span class="phpdocumentor-signature__response_type">bool</span>
  555. &mdash;
  556. <section class="phpdocumentor-description"><p>true if the proportions of the counts is close enough to the 1/1/1 ratios
  557. used by alignment patterns to be considered a match</p>
  558. </section>
  559. </section>
  560. </article>
  561. <article
  562. class="phpdocumentor-element
  563. -method
  564. -private
  565. "
  566. >
  567. <h4 class="phpdocumentor-element__name" id="method_handlePossibleCenter">
  568. handlePossibleCenter()
  569. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_handlePossibleCenter" class="headerlink"><i class="fas fa-link"></i></a>
  570. </h4>
  571. <aside class="phpdocumentor-element-found-in">
  572. <abbr class="phpdocumentor-element-found-in__file" title="src/Detector/AlignmentPatternFinder.php"><a href="files/src-detector-alignmentpatternfinder.html"><abbr title="src/Detector/AlignmentPatternFinder.php">AlignmentPatternFinder.php</abbr></a></abbr>
  573. :
  574. <span class="phpdocumentor-element-found-in__line">176</span>
  575. </aside>
  576. <p class="phpdocumentor-summary">This is called when a horizontal scan finds a possible alignment pattern. It will
  577. cross-check with a vertical scan, and if successful, will see if this pattern had been
  578. found on a previous horizontal scan. If so, we consider it confirmed and conclude we have
  579. found the alignment pattern.</p>
  580. <code class="phpdocumentor-code phpdocumentor-signature ">
  581. <span class="phpdocumentor-signature__visibility">private</span>
  582. <span class="phpdocumentor-signature__name">handlePossibleCenter</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$stateCount</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$i</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$j</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null</span></code>
  583. <div class="phpdocumentor-label-line">
  584. </div>
  585. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  586. <dl class="phpdocumentor-argument-list">
  587. <dt class="phpdocumentor-argument-list__entry">
  588. <span class="phpdocumentor-signature__argument__name">$stateCount</span>
  589. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, int&gt;</span>
  590. </dt>
  591. <dd class="phpdocumentor-argument-list__definition">
  592. <section class="phpdocumentor-description"><p>reading state module counts from horizontal scan</p>
  593. </section>
  594. </dd>
  595. <dt class="phpdocumentor-argument-list__entry">
  596. <span class="phpdocumentor-signature__argument__name">$i</span>
  597. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  598. </dt>
  599. <dd class="phpdocumentor-argument-list__definition">
  600. <section class="phpdocumentor-description"><p>row where alignment pattern may be found</p>
  601. </section>
  602. </dd>
  603. <dt class="phpdocumentor-argument-list__entry">
  604. <span class="phpdocumentor-signature__argument__name">$j</span>
  605. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  606. </dt>
  607. <dd class="phpdocumentor-argument-list__definition">
  608. <section class="phpdocumentor-description"><p>end of possible alignment pattern in row</p>
  609. </section>
  610. </dd>
  611. </dl>
  612. <section>
  613. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  614. <span class="phpdocumentor-signature__response_type"><a href="classes/chillerlan-QRCode-Detector-AlignmentPattern.html"><abbr title="\chillerlan\QRCode\Detector\AlignmentPattern">AlignmentPattern</abbr></a>|null</span>
  615. &mdash;
  616. <section class="phpdocumentor-description"><p>if we have found the same pattern twice, or null if not</p>
  617. </section>
  618. </section>
  619. </article>
  620. </section>
  621. <div class="phpdocumentor-modal" id="source-view">
  622. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  623. <div class="phpdocumentor-modal-container">
  624. <div class="phpdocumentor-modal-content">
  625. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Detector/AlignmentPatternFinder.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  626. </div>
  627. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  628. </div>
  629. </div>
  630. <script type="text/javascript">
  631. (function () {
  632. function loadExternalCodeSnippet(el, url, line) {
  633. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  634. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  635. const language = 'php';
  636. const code = document.createElement('code');
  637. code.className = 'language-' + language;
  638. pre.textContent = '';
  639. pre.setAttribute('data-line', line)
  640. code.textContent = 'Loading…';
  641. pre.appendChild(code);
  642. var xhr = new XMLHttpRequest();
  643. xhr.open('GET', src, true);
  644. xhr.onreadystatechange = function () {
  645. if (xhr.readyState !== 4) {
  646. return;
  647. }
  648. if (xhr.status < 400 && xhr.responseText) {
  649. code.textContent = xhr.responseText;
  650. Prism.highlightElement(code);
  651. return;
  652. }
  653. if (xhr.status === 404) {
  654. code.textContent = '✖ Error: File could not be found';
  655. return;
  656. }
  657. if (xhr.status >= 400) {
  658. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  659. return;
  660. }
  661. code.textContent = '✖ Error: An unknown error occurred';
  662. };
  663. xhr.send(null);
  664. });
  665. }
  666. const modalButtons = document.querySelectorAll("[data-modal]");
  667. const openedAsLocalFile = window.location.protocol === 'file:';
  668. if (modalButtons.length > 0 && openedAsLocalFile) {
  669. console.warn(
  670. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  671. 'browsers block XHR requests when a page is opened this way'
  672. );
  673. }
  674. modalButtons.forEach(function (trigger) {
  675. if (openedAsLocalFile) {
  676. trigger.setAttribute("hidden", "hidden");
  677. }
  678. trigger.addEventListener("click", function (event) {
  679. event.preventDefault();
  680. const modal = document.getElementById(trigger.dataset.modal);
  681. if (!modal) {
  682. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  683. return;
  684. }
  685. modal.classList.add("phpdocumentor-modal__open");
  686. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  687. const exits = modal.querySelectorAll("[data-exit-button]");
  688. exits.forEach(function (exit) {
  689. exit.addEventListener("click", function (event) {
  690. event.preventDefault();
  691. modal.classList.remove("phpdocumentor-modal__open");
  692. });
  693. });
  694. });
  695. });
  696. })();
  697. </script>
  698. </article>
  699. </section>
  700. <section class="phpdocumentor-on-this-page__sidebar">
  701. <section class="phpdocumentor-on-this-page__content">
  702. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  703. <ul class="phpdocumentor-list -clean">
  704. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  705. <li>
  706. <ul class="phpdocumentor-list -clean">
  707. <li><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#toc-properties">Properties</a></li>
  708. <li><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#toc-methods">Methods</a></li>
  709. </ul>
  710. </li>
  711. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  712. <li>
  713. <ul class="phpdocumentor-list -clean">
  714. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_matrix">$matrix</li>
  715. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_moduleSize">$moduleSize</li>
  716. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#property_possibleCenters">$possibleCenters</li>
  717. </ul>
  718. </li>
  719. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  720. <li>
  721. <ul class="phpdocumentor-list -clean">
  722. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method___construct">__construct()</a></li>
  723. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_find">find()</a></li>
  724. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_centerFromEnd">centerFromEnd()</a></li>
  725. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_crossCheckVertical">crossCheckVertical()</a></li>
  726. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_foundPatternCross">foundPatternCross()</a></li>
  727. <li class=""><a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#method_handlePossibleCenter">handlePossibleCenter()</a></li>
  728. </ul>
  729. </li>
  730. </ul>
  731. </section>
  732. </section>
  733. </div>
  734. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  735. <section class="phpdocumentor-search-results__dialog">
  736. <header class="phpdocumentor-search-results__header">
  737. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  738. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  739. </header>
  740. <section class="phpdocumentor-search-results__body">
  741. <ul class="phpdocumentor-search-results__entries"></ul>
  742. </section>
  743. </section>
  744. </section>
  745. </div>
  746. <a href="classes/chillerlan-QRCode-Detector-AlignmentPatternFinder.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  747. </main>
  748. <script>
  749. cssVars({});
  750. </script>
  751. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  752. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  753. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  754. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  755. </body>
  756. </html>