scanning

PIL: Create one-dimensional histogram of image color lightness?

核能气质少年 提交于 2019-12-02 21:29:00
I've been working on a script, and I need it to basically: Make the image greyscale (or bitonal, I will play with both to see which one works better). Process each individual column and create a net intensity value for each column. Spit the results into an ordered list. There is a really easy way to do this with ImageMagick (although you need a few Linux utilities to process the output text), but I'm not really seeing how to do this with Python and PIL. Here's what I have so far: from PIL import Image image_file = 'test.tiff' image = Image.open(image_file).convert('L') histo = image.histogram(

Anyway protecting your site from external site scandir

流过昼夜 提交于 2019-12-02 18:43:18
问题 Just came across to a website that lists all hidden files. I utilized Facebooks directory called: "hashtag/" and the results showed a whole bunch of files from http://www.facebook.com/hashtag/ Here's the website that does this: https://pentest-tools.com/website-vulnerability-scanning/discover-hidden-directories-and-files So my main question here is, is there any way to protect your site from being scanned by another website showing secret files like: tokens.php, sessions.php, templates/,

Is sequential disk read actually sequential?

感情迁移 提交于 2019-12-02 09:42:44
问题 I'm using PostgreSQL 9.4. First, I have postgreSQL installed on a system with the only one ssd -drive. I'm trying to understand what sequential read is and end up with some issue. For instance, if we ask for an SQL-Server to give us some unindexed data, the seq-scan is likely to be happen. But What if two different clients ask for data from two different tables simultaneously? In this case, sql-server creates two different processes for each client and executes the queries concurrently. But

Is sequential disk read actually sequential?

非 Y 不嫁゛ 提交于 2019-12-02 07:17:40
I'm using PostgreSQL 9.4. First, I have postgreSQL installed on a system with the only one ssd -drive. I'm trying to understand what sequential read is and end up with some issue. For instance, if we ask for an SQL-Server to give us some unindexed data, the seq-scan is likely to be happen. But What if two different clients ask for data from two different tables simultaneously? In this case, sql-server creates two different processes for each client and executes the queries concurrently. But if the queries are being executed concurrently, the head of the drive need to jump from the area the

Does iphone provide any API to detect human thumb Impression?

孤街浪徒 提交于 2019-12-01 13:32:53
I wish to develop an app in iPhone in which user's thumb will be scanned first. The impression of the thumb should be used as a signature for email or report. Please suggest if its possible to do or not. If its possible then are there any tutorials or link. Thanks in advance, Prerna Unfortunately no, iPhone detects touches as points, it's not sensitive enough to detect the human thumb with the fine marks of a thumbprint. Many have tried, some may even provide code, but ultimately it can't work. 来源: https://stackoverflow.com/questions/5752859/does-iphone-provide-any-api-to-detect-human-thumb

WIA Scanning via Feeder

▼魔方 西西 提交于 2019-11-30 13:49:41
WIA Scanning via Feeder Here is my device properties: Document Handling Select = 1 (2 is for flatbed, and 1 is for the feeder.) Here is my item (page) properties: Horizontal Resolution = 150 Vertical Resolution = 150 Horizontal Extent = 500 (I want to get it first to work, then I'll play with the extents.), Vertical Extent = 500 Bits Per Pixel = 8 Current Intent = 4 I got everything running smoothly if I set the "Document Handling Select" to "2". When I set it to "1", and ran it, just before I say item.Transfer() (or item.Transfer(bmp/jpeg/pngGuid)) I get the exception "Value does not fall

Android : Capture a document & Scan it using camera [closed]

非 Y 不嫁゛ 提交于 2019-11-30 12:25:16
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 2 years ago . I would like to develope an application in android. The requirement is to scan a document using the camera and to convert the scanned data to a pdf file, so that it could be used as an attachment in mail. Please provide me some sample code... Thank you. 回答1: If you are looking for

Android : Capture a document & Scan it using camera [closed]

梦想与她 提交于 2019-11-30 02:36:29
I would like to develope an application in android. The requirement is to scan a document using the camera and to convert the scanned data to a pdf file, so that it could be used as an attachment in mail. Please provide me some sample code... Thank you. Idistic If you are looking for simple PDF functionality you might try this Simple PDF for Android there does not seem to be much else available. If you need OCR Suggestions for Android OCR as to the rest of it you are asking multiple questions, I suggest taking it one step at a time and asking one question per problem you encounter. For anyone

Mechanism behind QR code scanning of whatsapp webapp

浪子不回头ぞ 提交于 2019-11-29 20:37:15
I could not find any answers related to the working mechanism of qr code scanning used on whatsapp web-app . How does the authentication happen when the phone (any smartphone running whatsapp) scans the qr code on the browser. I don't want about the technology stack behind them.Like whatsapp uses modified version of xmpp , uses erlang , uses web technologies like socket.io and ajax for the web version to implement such functionality. The question might be broad.But I am eager to know about the implementation behind it. It works like this : 1- You open the following URL on your browser : https:

C# WIA with Automatic Document Feeder (ADF) retuns only one page on certain scanners

孤街醉人 提交于 2019-11-29 07:29:33
I have a HP Scanjet 7000 (duplex & ADF scanner) and a HP Scanjet 5500c (only ADF) and a scanner program I'm developing which uses WIA 2.0 on Windows 7. The problem is that the code works perfectly on the older scanner model, but on the newer one the code seems to run just fine through the first page, then fail on the second. If I step through the code around the following line; image = (WIA.ImageFile)wiaCommonDialog.ShowTransfer(item, wiaFormatTIFF, false); the old scanner stops and waits for another call to be made on the same reference, but the newer one just runs through all it's pages from