Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am interested in doing some snail mail based surveys but I am looking for quick ways to digitize the surveys they send back.
So if I had a question and 5 boxes beneath it where you would indicate your opinion by checking the appropriate box, does anything exist where I could scan it and run it through a piece of software that spit out the responses.
Edit clarification:
I am inquiring about what I need to do after the paper has been digitized. I want to write some code that looks at an image file and recognizes which box has been marked in and outputs a representation of the respondents answers.
I would be looking at a page scanned from a desktop scanner or something similar.
From what i see you don't really need ICR (intelligent character recognition, used for handwritten and handprinted texts), but what you need is OMR - optical mark recognition (capturing human-marked data from document forms such as surveys and tests).
The bad news is you would hardly find an opensource library for python. But there's a solution - you can use a cloud SDK, it's a website that let you upload an image and send you back an OCR'ed data. Try www.ocrsdk.com, it is a cloud based OCR SDK recently launched by ABBYY. It's now in closed beta so it's completely free to use.
It has both ICR and OMR api methods and a set of python code samples.
I don't really see what this has to do with python, unless of course you've already digitized the results and are now looking to tally up the results. It sounds like you still need to scan the results in and as far as I know, python doesn't have any direct capabilities of doing something like that. You're going to have to get your hands on a scanner first, and only then can you use python to read through the data.
The SDAPS project (repo) might be worth a look. It may not handle arbitrary scanned images, as it seems to expect an ODT or LaTeX document at the beginning of the process.
Overview
SDAPS is an open source (GPLv3, LPPL) optical mark recognition (OMR) program. It is
written in python and has an integrated workflow with both LibreOffice and LaTeX to
create questionnaires.
Workflow
With SDAPS you create the questionnaire using either LibreOffice or LaTeX. After this
some processing is done to collect the information about the survey (questions, and
answers) and a printable PDF is created. The filled out questionnaires only need to be
scanned in (example). SDAPS will do the optical mark recognition and can create a PDF
report (example) or export the data. Optionally it is possible to manually correct the
results using a graphical user interface.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I want to ask about the best IDE to prototype programs by using OpenCV library.
I’ve been programming with Halcon for 3 years and I would like to learn how to program with OpenCV too. I was thinking about reproducing some old programs that I have created with Halcon, but instead using OpenCV. The problem is that maybe I’m not using the correct IDE (I’m programming with Python using Spyder) or maybe programming with OpenCV is slower than I have expected (I don't discard the possibility that I don’t know the appropriate way to prototype properly by using these tools).
I already know I come from an expensive program that allows me to work with many comforts, but I miss having a window where I can display dynamically the results of the operations than I’m applying. Also, draw some ROIs quickly. Anyways, do you think I’m using the right tools? Do you know some tutorials from which I can learn how to prototype quickly using that IDE?
Thank you in advance!
My suggestion for OpenCV prototyping in a GUI is a program called GRIP (Graphically Represented Image Pipeline). You can download it from GitHub.
It supports many inputs: single image, multiple images, webcam, and even HTTP cameras. You get all the key OpenCV commands, along with some custom ones developed by WPI.
You develop your image processing flow as a pipeline, with filtering blocks such as desaturate, find contours, etc. in which you string the output from one block to the input of another (or multiple). You can then export the pipeline to Python, Java, or C++ (exported as a usable class with a key process function). If you want to see an example, feel free to check out this previous post I wrote!
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
So I'm learning Python and beginning to grasp the fundamentals. I want to start a project that seems slightly over ambitious for my current knowledge level but I think I can do it bit by bit and it will look good in my portfolio.
Basically, I'd like to create a web application that generates a grid and allows the user to create rooms to scale. Dragging and dropping pieces of furniture to visualise how much space they will have between various pieces of furniture and checks if pieces will fit. Also I'd like the user to be able to save real furniture for example, using the Ikea website that will, when they're finished, generate a basket containing links and pictures to the items they have chosen and give them an idea of total cost.
It feels daunting starting out, what modules/libraries would I use to get this going? I'd like it to be a web app that is mobile friendly ideally?
Thanks in advance.
Making interactive web apps like that are not really within Python's capability.
On the web, Python (via Django) is good for back-end things and making websites, but for client-side interactivity like you are suggesting, you need to use Javascript.
There is a tool called Brython that lets you write client-side Python and then it will convert it into Javascript for you, but it is quite complicated.
I would suggest picking another project for Python (here is a great list), or if you want to continue with that furniture idea, then picking up some JS, React, and using a library like react-dnd would be a good starting point.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 15 days ago.
The community reviewed whether to reopen this question 15 days ago and left it closed:
Original close reason(s) were not resolved
Improve this question
What are good Python-based options to create strictly designed PDF reports from HTML?
I've attached a draft PDF to illustrate the following points:
The design of the report is rather strictly designed. In other words "Looks matter".
The report contains complex vector graphics (package: Matplotlib).These may slightly differ in size .
The report contains images.
The report contains a large number of numbers / strings filled in dynamically.
Optimally, the solution would use open source packages.
We create our HTML with Django.
The report may span multiple pages.
It looks as if there was already a good amount of very diverse packages facilitating reporting. Just to name a few, there are xhtml2pdf, weasyprint, django-wkhtmltopdf.
In my experience, it’s easy with these tools to create a PDF from your content. The hard part comes when the PDF needs to fall into a highly-defined design structure as in our case. Unfortunately, I was not able to find example PDFs for the different PDF generation packages that have a highly designed structure.
What is your experience with this? Which options worked well for you? Are there well done complex examples that I’ve overlooked?
You can see this Python package: weasyprint
Web page: http://weasyprint.org/
Official doc: http://weasyprint.readthedocs.io/en/latest/
It's great, because you can generate the PDF from a web page or an html file, you can have conflicts with some CSS (which are specified in the documentation), but it provides what you need
I recently used weasyprint and jinja to do automated report generation from html. It worked well and I believe would be capable of meeting your strict format requirements. I haven't used any of the others though.
My report had images, including graphs converted to images, normal dynamically generated text, as well as large tables. All of this was constrained to an 9x11 page size. Weasyprint does a good job of pagination automatically, but also has configurability in that regard.
I found this guide to be very useful:
http://pbpython.com/pdf-reports.html
Although I think pandas is total overkill for html generation of graphs and you lose a lot of configurability using it.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Wondering if Python has free and reliable library to read Excel file, manipulate data and generate Excel file output, just like VBA did? My current problem is, the project has both Python and VBA code, I am trying to see if I can use single programming language to make it simple. Thanks.
Using Python 2.7.
regards,
Lin
I either use openpyxl or the pywin32 COM interface directly.
openpyxl is very fast as it manipulates data directly in the excel file on disk, where as the pywin32 com interface uses Excel itself, with the python code mimicking what VBA does.
The main difference between the two is that openpxl only gives you a subset of commands, so great for pulling data out of an excel file to use elsewhere or building a new excel file from existing data. However to get the full functionality you need to use the COM interface.
This site gives a good intro to using the COM interface. One thing to watch out for is the constants that are scattered throughout the COM interface calls. You generally need to find out those values yourself, you can start by looking here
Finally you can also take a look at IronPython which is a .NET implementation of python which gives a cleaner interface but isn't actually vanilla python (and not cross-platform), so maybe not what you want.
I would like to recommend openpyxl
I used it for creating basic Excel reports for business teams, and it has been a pleasure to use. :-)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
Hi all i want to web based GUI Testing tool. I found dogtail is written using python. but i didnot get any good tutorial and examples to move further. Please Guide me weather dogtail is perfect or something better than this in python is there?. and if please share doc and example.
My requirement:
A DVR continuous showing live video on tile(4 x 4 ), GUI is web based(mozilla) . i Should be able to swap video and check log and have to compare actual result and present.
Selenium is designed exactly for this, it allows you to control the browser in Python, and check if things are as expected (e.g check if a specific element exists, submit a form etc)
There's some more examples in the documentation
Project Sikuli is a similar tool, but is more general than just web-browsers
Selenium provides a python interface rather than just record your mouse movements, see http://selenium-python.readthedocs.org/en/latest/api.html
If you need to check your video frames your can record them locally and OCR the frames looking for some expected text or timecode.
For Simple form based UI Testing. I have created a framework using python/selenium/phantomjs although it can do complex stuff too. I am yet to document it. (If you don't need to run firefox you don't need to install phantomjs)
https://github.com/manav148/PyUIT