barcode

Node.js C++扩展实现

一曲冷凌霜 提交于 2019-12-02 03:32:56
因为有了Node.js,JavaScript可以被用于服务端编程。通过各种扩展,Node.js可以变得非常强大。今天分享下怎样用C++创建Node.js扩展。 参考原文: Making Dynamsoft Barcode SDK an Addon for Node.js 搭建Nodejs开发环境 要构建扩展,需要安装 node-gyp : npm install -g node-gyp 这个库里面包涵了JavaScript v8引擎所需要的头文件以及依赖库。 创建一个C/C++文件 dbr.cc 以及配置文件 binding.gyp 。打开配置文件,在里面加入扩展名和源代码文件: { "targets": [ { "target_name": "dbr", "sources": [ "dbr.cc" ] } ] } 现在就可以用来构建 dbr.node ,用于Node.js的动态链接库,相当于DLL。在命令行中输入: node-gyp configure install 这行命令干了两件事,首先生成了Visual Studio的工程文件。然后调用VS的编译器生成了动态链接库。可以看下生成的文件结构: build / binding.sln / dbr.vcxproj / dbr.vcxproj.filters / config.gypi / Release / dbr.node /

ZXing vs ZBar: 开源条形码SDK性能PK

孤人 提交于 2019-12-02 03:32:05
很多手机app条形码应用都使用了ZXing和ZBar两个开源条形码SDK。那么从检测速度和检测率看哪个更出色呢?ZXing用Java实现,ZBar用C/C++实现,为了确保公平,这里用JNI封装ZBar,用Java写测试。 参考原文: How to Benchmark Barcode SDK Performance – ZXing vs ZBar 作者: Desmond Shaw 翻译:yushulx SDK下载 ZXing Source code https://github.com/zxing/zxing ZBar Source Code https://github.com/ZBar/ZBar ZBar Windows Installer http://sourceforge.net/projects/zbar/files/zbar/ 如何使用Java解码TIFF文件 通过Java SDK中的ImageIO,我们可以解码很多图片格式,比如JPEG,PNG,BMP。但是TIFF是不支持的。实际使用的时候,经常会用到TIFF文件读取条形码。Oracle官方提供了 Java Advanced Imaging (JAI) 来支持TIFF。 JAI下载 照理说Oracle的官网是应该提供JAI的下载链接的。但是很奇怪的是打开之后都是404错误。在网上搜了一圈,找到了一个可用链接:

Windows Universal App中集成C/C++ DLL

筅森魡賤 提交于 2019-12-02 03:30:48
借助Windows 10的普及,微软开始推Universal应用开发。Universal应用其实和Android和iOS应用一样,运行在sandbox中,在桌面环境里exe不能双击运行。打成一个appx包之后可以提交到Windows Store。任何运行Windows 10的设备都可以运行。那么在开发的时候,现有的C/C++ SDK是否可以兼容呢?答案是可以的,不过会有一些限制。如果你想让SDK兼容所有的设备,需要提供行x86, x64, arm三个版本DLL。我用 Dynamsoft Barcode SDK 做了试验。 参考原文: How to Create a Universal Barcode Reader on Windows 10 with C/C++ Legacy Code 作者: Xiao Ling 翻译:yushulx 准备工作 在Windows 10中激活开发者模式。 安装 Visual Studio 2015 。 安装 Dynamsoft Barcode SDK 。 Hello World 编写Hello World很简单,可以学习微软的在线教程 https://msdn.microsoft.com/en-us/library/windows/apps/dn996906.aspx 。 在Universal App中集成C/C++ SDK

Ubuntu上轻松实现PHP扩展

╄→гoц情女王★ 提交于 2019-12-02 03:30:34
对比Windows,Linux上实现PHP扩展要简单轻松的多。 参考原文: How to Make PHP Barcode Reader on Linux 作者: Xiao Ling 翻译:yushulx 几步构建PHP Barcode扩展 安装 DBR 。 要构建PHP扩展,一定要使用对应版本的源码: php –v 下载 PHP源码 。 解压代码,切换到 ext 目录: cd ~/Downloads/php-5.5.9/ext 创建扩展 dbr : ./ext_skel --extname=dbr cd dbr 编辑 config.m4 ,添加头文件和库文件路径: PHP_ARG_ENABLE(dbr, whether to enable dbr support, dnl Make sure that the comment is aligned: [ --enable-dbr Enable dbr support]) if test "$PHP_DBR" != "no"; then PHP_ADD_LIBRARY_WITH_PATH(DynamsoftBarcodeReaderx64, /home/xiao/Dynamsoft/BarcodeReader4.0/Redist, DBR_SHARED_LIBADD) PHP_ADD_INCLUDE(/home/xiao

Displaying barcode in SSRS report

喜欢而已 提交于 2019-12-01 23:33:12
I am trying to display the barcode in the SSRS report. I have created a field in the report for barcode in the visual studio and changed the font type to BC C39 3 to 1 Wide format. The corresponding text that I have used to display is "hellobarcode". Whenever I generate the report, it is not displaying the barcode but the text only. Can anyone help please? I figured out the problem. When a particular field in the report is an hyperlink to other report (for drilldown purpose), it will get the default font format so that it won't display barcode font. I removed the hyperlink from the field and

detector.isOperational() always false on android

淺唱寂寞╮ 提交于 2019-12-01 18:53:54
I'm using the new google plays service : Barcode detector , for this porposue I'm following this tutorial : https://search-codelabs.appspot.com/codelabs/bar-codes But when I run the application on my real device(Asus Nexus 7), the text view of the app always is showing me "Couldn't set up the detector" and i don't know how to make it work >< ... Here some code for fast debugging: public class DecoderBar extends Activity implements View.OnClickListener{ private TextView txt; private ImageView img; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);

JavaScript实现在线Qrcode二维码生成工具-toolfk程序员在线工具网

孤者浪人 提交于 2019-12-01 18:43:43
本文要推荐的[ToolFk]是一款程序员经常使用的线上免费测试工具箱,ToolFk 特色是专注于程序员日常的开发工具,不用安装任何软件,只要把内容贴上按一个执行按钮,就能获取到想要的内容结果。ToolFk还支持 BarCode条形码在线生成 、 QueryList采集 、 PHP代码在线运行 、 PHP混淆、加密、解密 、 Python代码在线运行 、 JavaScript在线运行 、 YAML格式化工具 、 HTTP模拟查询工具 、 HTML在线工具箱 、 JavaScript在线工具箱 、 CSS在线工具箱 、 JSON在线工具箱 、 Unixtime时间戳转换 、 Base64/URL/Native2Ascii转换 、 CSV转换工具箱 、 XML在线工具箱 、 WebSocket在线工具 、 Markdown 在线工具箱 、 Htaccess2nginx 转换 、 进制在线转换 、 在线加密工具箱 、 在线伪原创工具 、 在线APK反编译 、 在线网页截图工具 、 在线随机密码生成 、 在线生成二维码Qrcode 、 在线Crontab表达式生成 、 在线短网址生成 、 在线计算器工具 。等20多个日常程序员开发工具,算是一个非常全面的程序员工具箱网站。 網站名稱:ToolFk 網站鏈結: https://www.toolfk.com/ 工具链接: https://www

detector.isOperational() always false on android

北城以北 提交于 2019-12-01 18:08:12
问题 I'm using the new google plays service : Barcode detector , for this porposue I'm following this tutorial : https://search-codelabs.appspot.com/codelabs/bar-codes But when I run the application on my real device(Asus Nexus 7), the text view of the app always is showing me "Couldn't set up the detector" and i don't know how to make it work >< ... Here some code for fast debugging: public class DecoderBar extends Activity implements View.OnClickListener{ private TextView txt; private ImageView

In a PDF417 barcode where number of columns are fixed, how would I calculate the number of rows required for some text?

丶灬走出姿态 提交于 2019-12-01 14:00:43
I need to generate a PDF417 barcode from some text. I have an API (that I didn't create) that generates a PDF417 barcode given the data, number of rows and number of columns (among other parameters irrelevant to the question). My PDF417 barcode uses text encoding. This means 1 codeword can hold up to 2 characters. Now, the number of columns HAS to be fixed because I'm printing this barcode in a very constrained space. The following is what I have inferred from this document (Refer page 38 - Sizing a barcode): Let number of codewords per row, CWPerRow = 7. Number of codewords required for some

How to decode a barcode from camera preview using zxing library in android?

依然范特西╮ 提交于 2019-12-01 13:20:19
I want to implement standalone scanner in my android application.I'm using zxing's core.jar library in my project. I need to decode a barcode from camera preview.But i don't know how to implement it.Because there is no official documentation. Can you provide me a simple example on followings things? 1.Initialize the camera and getting preview. 2.Decode the barcode from preview. or Is there any example project to do this? Take a look at my simple implementation: https://github.com/piobab/code-scanner I use ZBar library but if you want you can change ZBarScannerView.java implementation to