scanning

ImageCaptureCore functionality: not getting callbacks despite the delegates being set

a 夏天 提交于 2019-12-10 22:30:50
问题 I am using Apple's ImageCaptureCore framework to perform scanning operations in a headless fashion. The framework provides all the capabilities to perform scanning without involving the Apple's ICA dialog in between. Now, what I have done is written a class that adheres to protocols of ICDeviceBrowser and ICScannerDevice . And alongwith, I have also set their delegates. The following function gets hit whenever an ICA device is detected by the system: /* This message is sent to the delegate

Proper way to scan a range of IP addresses

て烟熏妆下的殇ゞ 提交于 2019-12-10 18:08:38
问题 Given a range of IP addresses entered by a user (through various means), I want to identify which of these machines have software running that I can talk to. Here's the basic process: Ping these addresses to find available machines Connect to a known socket on the available machines Send a message to the successfully established sockets Compare the response to the expected response Steps 2-4 are straight forward for me. What is the best way to implement the first step in .NET? I'm looking at

Talking to a scanner from a PHP script

允我心安 提交于 2019-12-10 14:59:20
问题 I run a small business but I need to be somewhat more organised in terms of those letters and invoices i receive. This is what I want to accomplish: When I receive a invoice or some other information on paper, I would place it in my scanners tray and leave it there. Every 15 minutes my linux box ask my scanner if there is anything to scan and if so starts the scanning process and place the file in a folder. Could anyone point me in the right direction to how I can talk to my scanner from a

C++ Getting RGB from hBitmap

南楼画角 提交于 2019-12-09 06:48:01
问题 Working with bitmaps is very new to me so I've been really struggling with the online tutorials and strategies that I've read through. Basically my goal is to scan the screen for a particular RGB value. I believe the steps to do this is to capture the screen in a hBitmap and then produce an array of RGB values from it that I can scan through. I originally started with GetPixel but that is very slow. The solution was to use GetDIBits which produces the array of RGB values. The problem is that

How do I use the scanCrop property of a ZBar reader?

我的未来我决定 提交于 2019-12-09 05:42:24
问题 I am using the ZBar SDK for iPhone in order to scan a barcode. I want the reader to scan only a specific rectangle instead of the whole view, for doing that it is needed to set the scanCrop property of the reader to the desired rectangle. I'm having hard time with understanding the rectangle parameter that has to be set. Can someone please tell me what rect should I give as an argument if on portrait view its coordinates would be: CGRectMake( A, B, C, D ) ? 回答1: From the zbar's ZBarReaderView

Using WritePixels when using a writeable bitmap from a intptr to create a bitmap.

强颜欢笑 提交于 2019-12-08 08:20:31
问题 Im currently trying to use writeablebitmap to take a IntPtr of a scan of images and turn each one into a Bitmap . Im wanting to use writeablebitmap because im having an issue with standard gdi GDI+ System.Drawing.Bitmap gives error Parameter is not valid intermittently There is a method on a WriteableBitmap that called WritePixels http://msdn.microsoft.com/en-us/library/aa346817.aspx Im not sure what I set for the buffer and the stride every example I find it shows the stride as 0 although

Issue for Type0 CMap parsing

拥有回忆 提交于 2019-12-08 02:34:23
问题 I am currently working on iOS PDF scanning using PDFKitten. I am trying to extract text for searching in PDF having Type0 font. I am not able to extract text from the PDF. Some entries in ToUnicode are missing and some are misinterpreted. Can there be issue with parsing of the CMap? If I don't have complete CMap, how should I derive it? Can I take external entries for these missing ToUnicode entries? Thanks 回答1: The PDF specification offers hints on how to extract text content in section 9.10

How do I enumerate resolutions supported via TWAIN

我的梦境 提交于 2019-12-08 00:08:44
问题 I have to enumerate DPI's supported by scanner via TWAIN interface. // after Acquire is called... TW_CAPABILITY twCap; GetCapability(twCap, ICAP_XRESOLUTION) if (twCap.ConType == TWON_ENUMERATION) { pTW_ENUMERATION en = (pTW_ENUMERATION) GlobalLock(twCap.hContainer); for(int i = 0; i < en->NumItems; i++) { if (en->ItemType == TWTY_FIX32) { TW_UINT32 res = (TW_UINT32)(en->ItemList[i*4]); // print res... } That works fine but output sequence is strange: 50 100 150 44 88 176 I know exactly that

树莓派应用:无线扫描仪

不羁的心 提交于 2019-12-07 19:20:07
传统的扫描仪都是需要通过USB连接到PC上使用的。如果多人共用扫描仪,比如办公室里,需要经常插拔,更换PC,安装驱动,非常麻烦。现在搭载Android系统的智能扫描仪已经出现了,用户可以很方便的通过网络无线扫描。那么有什么办法让旧的扫描仪也智能化?使用35刀的树莓派可以提供一种廉价的解决方案 - 把扫描仪连接到树莓派上,通过树莓派控制扫描仪,并通过网络传输数据。这样就不需要花很多钱去购买新的扫描仪了。 测试环境 设备: Raspberry Pi 2 系统: RASPBIAN JESSIE 传统扫描仪智能化解决方案 这是一套使用 Dynamic Web TWAIN树莓派版本 的解决方案。 优点 扫描仪不需要通过USB接口连接到PC。 在浏览器中操作扫描仪,不需要安装任何插件。 树莓派即插即用。自动建立扫描以及网络连接服务。 无线扫描仪 安装删除服务 下载 安装包 。 安装: sudo dpkg -i dynamic_web_twain-arm-trial.deb 删除: sudo dpkg -r dynamsoft-webtwain-service 代码示例 在 Dynamic Web TWAIN 中获取Resources资源目录。 创建工程目录。把Resources资源拷贝到工程根目录中,并创建一个index.html页面。 设置树莓派的IP地址。这里是我的: var

Are there any different between Scan image through camera and capturing image from camera?

帅比萌擦擦* 提交于 2019-12-07 14:07:25
问题 I need to know that different between scanning and taking photo from camera . As example we normally , SCAN QR code , bar code , like thing using android phone.They are also image. we can take photo from camera. it also image. So ,is it Scanning QR code , mean take image and processing it or are there have any special thing take image from pixel values ? 回答1: Biggest difference is that when you capture an image you get a processed jpg file, when you're scanning you're working with raw YUV