Image processing to identify number of dark lines in image [closed] - image

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm currently working on a project to automate the reading of a type of sensor (very similar to a pregnancy test stick, see figure below). The stick is dipped in a sample and either 1 or 2 lines appear.
The sensor is then photographed and it is this image that needs to be processed. My question is: what is the best way of going about this? From what I've read about the subject the MatLab image processing toolbox is very good, but that's a little beyond my budget. Are there any free/ cheapish alternatives that would be suitable?

The ImageJ toolbox might suit you. http://en.wikipedia.org/wiki/ImageJ

This would be possible using OpenCV using Java, Python or C/C++.
OpenCV (Open Source Computer Vision Library) is an open source
computer vision and machine learning software library. OpenCV was
built to provide a common infrastructure for computer vision
applications and to accelerate the use of machine perception in the
commercial products. Being a BSD-licensed product, OpenCV makes it
easy for businesses to utilize and modify the code.

A line detector is not that difficult to write code by yourself. Search for canny edge detector and hough transform for more details. And there are also some codes written by others that are shared in mathwork exchange pages, such as :
http://www.mathworks.com/matlabcentral/fileexchange/34637-line-detection-using-hough-transform/content/try3.m
http://www.mathworks.com/matlabcentral/fileexchange/35754-wide-line-detector
If you have the jpeg or other images rather than the raw data, imageJ is also a good choice for various image processing approaches: http://rsb.info.nih.gov/ij/download.html (though imageJ can also import binary data format file)

Related

Facial Recognition in R [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Are there any face recognition algorithms written in the R statistical language? If not, please provide guidance on where I might start translating other algorithms to R.
Be sure to check out the update made on May 8, 2013. See below.
Here are a few links/thoughts to get you started:
Does it have to be in R? (There are other languages/packages that are inherently more suitable for image processing.
If R is mandatory, look into the EBImage (it has a pdf vignette) and raster packages. (http://cran.r-project.org/web/packages/raster/)
Where's Waldo? type exercises are always a good place to start if you are new to image processing. Here are is one R question in SO
Here's an actual R example that you will find really useful: "Finding a bright object" exercise in in.R()
Even though it is not in R per se read the responses to image-processing using mathematica question in SO. Some of the ideas there are language-agnostic.
Update
R's ReadImages package is another good way to get started with "Image Processing with R."
Install the ReadImages package from cran. Documentation
Try out a couple of the functions, with some image on your machine. That's only way to learn.
img <- read.jpeg("abc.jpg) Try out the rgb2grey(img)
Also try the clipping() function.
Update 2: May 08, 2013
Kaggle has just published an excellent tutorial for Face Recognition in R (by James Petterson). It has many things going for it: A sample dataset, it doesn't use many esoteric libraries -- just reshape2 and doMC (optional unless you have a multi-core machine).
The Kaggle tutorial covers the idea of facepoints (left_eyebrow, nose tip etc), the idea of a 'mean' location for features and the concept of using image patches to improve recognition.
I cannot think of a better link for this question. Be sure to check it out.
Hope these help you get started.

Ruby and PDFs - tool recommendations [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Im trying to create a board game generator in ruby which takes images from one pdf and places them them on the tiles of the board-game template pdf. One image per tile.
I'm wondering what tools would be good for this in ruby. Ive looked at prawn and that seems great for creating the board game but i don't think i can use that for extracting images from the source pdfs.
Can anyone provide any ideas?
Extra info:
Currently my knowledge of how pdfs are created and formed is v.limited so this may not make sense or matter but just in case...
The source pdfs have one image per page. I haven't created the source pdfs / images so I cant determine how the pdf was authored i.e. is the image just plain text e.g. "Take a card" or is it some fancy adobe illustrator vector.
the images will always be re-sized smaller and image quality inst a priority - as long as it looks good to average user its fine.
take a look at this thread for some ideas on reading pdfs
Ruby: Reading PDF files
For writing PDFs, I recommend http://github.com/jdpace/PDFKit, it is a nice wrapper around wkhtmltopdf. It allows you to generate html with css and create a pdf directly from it. It saves hours of time compared to trying to format everything in prawn.

Function Plotter [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
There is a nice function plotter built into OSX. Has anyone found something free that runs on windows (with out having to go through Cygwin)?
How about MathGV - Function Plotting Software?
Also, DME Calculator is a calculator that can plot functions.
The DME calculator is an advanced
calculator for Windows. It is a part
of the program package for controlling
our instruments. However, in its basic
version it can be of use for anyone
who wishes to make calculations with a
PC or wishes to solve somewhat more
complex problems without having to use
a large spreadsheet program package.
The DME calculator fits on a diskette
and starts without any notable waiting
time.
If by functions, you mean mathematical functions, there is a nice list here which has plenty of suggestions.
Wolframalpha.com
excellent for many branches of academia. it also plots.

making graphs with xCode [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
Hi I need to graph some arrays to analyse signals, I have a cocoa project going. Can anyone tell me where I can find tools to simplify this task?
Basically i want to display my arrays like on a graphing calculator.
Even though it's a young library, I'd suggest looking at the open source Core Plot framework. It works on Mac and iPhone and can currently plot line and bar charts. As I said, it's young and a lot of the core functionality is still being written, but it might work right now for your case.
Take a look at this post to the Apple mailing lists. http://lists.apple.com/archives/scitech/2007/Jun/msg00022.html
It mentions 3 potential graphing packages that you can try. I have not had personal experience with them, so buyer beware, but it will at least give you a start on where to look.
XCode allows you to create data formatters to present object data in the debugger, but it doesn't provide any way to graphically represent the data using charts or graphs. (At least, not that I know of!) I think that's beyond the scope of XCode. You might consider dumping the data from your array to a file using a bit of code or the console, and then loading it into Excel or MATLAB. Then you can create a graph of your signal with no problem.
Just out of curiosity, are you familiar with another IDE that provides graphs of array data? I know tools like MATLAB and Mathematica do it pretty nicely, but I've never seen it in an IDE.

What is a good Graph Editor for MacOS? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I need some sort of node-graph editor, that hopefully works on both Mac and other platforms, to generate user created node collections with properties. The graph data will then be used in a data-driven application I'm working on, so kudos if the application can save the graphs in some easy to process format. So far I was using XML with a tree editor, but since the graphs can be cyclic according to the requirements, the tree editor no longer cuts it.
Plugins for other applications would also be ok!
GraphViz' graph drawing software is pretty much the best there is, cross-platform, with a very simple file format and lots of output formats. It is especially good in automatically calculating a layout for graphs. A GUI for OS X is available.
Have a look at Yed (http://www.yworks.com/en/products_yed_about.html), free to use but places a logo on all output.
It comes with Mac OS binaries .. and you might be able to include ($$ required) the graphing engine it is based on into your project.
I've used it (with limited success) to document enterprise data-flows..
You might want to do something with JHotdraw (at sourceforge). It is one of the design patterns demo projects converted from Smalltalk. It is (or was before it was put on sf) very well documented and easy to extend. A similar (but less well-documented) framework is GEF in Eclipse.
You can take a look at OmniGraffle: http://www.omnigroup.com/omnigraffle

Resources