{"id":2494,"date":"2019-06-25T08:14:19","date_gmt":"2019-06-25T08:14:19","guid":{"rendered":"http:\/\/www.bardecode.com\/newsite\/?p=2494"},"modified":"2019-06-25T08:14:19","modified_gmt":"2019-06-25T08:14:19","slug":"test-script-linux","status":"publish","type":"post","link":"https:\/\/www.bardecode.com\/newsite\/test-script-linux\/","title":{"rendered":"A test script for Linux"},"content":{"rendered":"<p>The following script can be used for barcode testing on Linux in a similar way to the test option in SoftekSDKDemo (using the same options):<\/p>\n<p>echo &#8220;Test only with supplied options&#8221;<br \/>\nr=`.\/bardecode $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Small quiet zones around barcodes (-q 10)&#8221;<br \/>\nr=`.\/bardecode -q 10 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Skewed barcodes (&#8211;DeskewMode 3)&#8221;<br \/>\nr=`.\/bardecode &#8211;DeskewMode 3 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Noise Reduction and Despeckle (-N 10)&#8221;<br \/>\nr=`.\/bardecode -N 10 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Short barcode values (&#8211;MinLength 1)&#8221;<br \/>\nr=`.\/bardecode &#8211;MinLength 1 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Low hit counts (&#8211;PrefOccurrence 2)&#8221;<br \/>\nr=`.\/bardecode &#8211;PrefOccurrence 2 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n<p>echo &#8220;Test: Less common barcodes (&#8211;ReadCode25ni 1 &#8211;ReadPatchCodes 1 &#8211;ReadCodabar 1 &#8211;ReadDatabar 1)&#8221;<br \/>\nr=`.\/bardecode &#8211;ReadCode25ni 1 &#8211;ReadPatchCodes 1 &#8211;ReadCodabar 1 &#8211;ReadDatabar 1 $*`<br \/>\nif test -n &#8220;$r&#8221;<br \/>\nthen<br \/>\n        echo &#8220;Found barcode: $r&#8221;<br \/>\n        exit<br \/>\nfi<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following script can be used for barcode testing on Linux in a similar way to the test option in SoftekSDKDemo (using the same options): echo &#8220;Test only with supplied options&#8221; r=`.\/bardecode $*` if test -n &#8220;$r&#8221; then echo &#8220;Found barcode: $r&#8221; exit fi echo &#8220;Test: Small quiet zones around barcodes (-q 10)&#8221; r=`.\/bardecode -q &hellip; <\/p>\n","protected":false},"author":1,"featured_media":178,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,31],"tags":[],"class_list":["post-2494","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-knowledge-base","category-software-development-kits"],"_links":{"self":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2494"}],"collection":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/comments?post=2494"}],"version-history":[{"count":1,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2494\/revisions"}],"predecessor-version":[{"id":2495,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/posts\/2494\/revisions\/2495"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media\/178"}],"wp:attachment":[{"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/media?parent=2494"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/categories?post=2494"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bardecode.com\/newsite\/wp-json\/wp\/v2\/tags?post=2494"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}