pattern-recognition

Image comparison using Objective C

一世执手 提交于 2019-12-11 01:09:17
问题 i am planning to create an application to compare pill images if they were the same. Is there any source that i could use that detects colors, shape, size of the pill in the picture and compre if that picture is the same with the other picture of the same pill? Regards, ZaldzBgz 回答1: I know a good library for computer vision, not sure if it can help you. You can look at: OpenCV. It worked with iPhone 来源: https://stackoverflow.com/questions/3474204/image-comparison-using-objective-c

Drawing decision boundary of two multivariate gaussian

青春壹個敷衍的年華 提交于 2019-12-10 11:17:12
问题 I am trying to plot something similar to below: I am using Matlab. I achieved drawing contour plots. However I could not draw the discriminant. Can anyone show a sample Matlab code or give some idea to draw the discriminant? 回答1: If you know the probability density function of each of the gaussian for a given point (x,y) , lets say its pdf1(x,y) and pdf2(x,y) then you can simply plot the contour line of f(x,y) := pdf1(x,y) > pdf2(x,y) . So you define function f to be 1 iff pdf1(x,y)>pdf2(x,y)

Python string pattern recognition/compression

假如想象 提交于 2019-12-09 12:17:26
问题 I can do basic regex alright, but this is slightly different, namely I don't know what the pattern is going to be. For example, I have a list of similar strings: lst = ['asometxt0moretxt', 'bsometxt1moretxt', 'aasometxt10moretxt', 'zzsometxt999moretxt'] In this case the common pattern is two segments of common text: 'sometxt' and 'moretxt' , starting and separated by something else that is variable in length. The common string and variable string can of course occur at any order and at any

OpenCV and Latent SVM Detector

醉酒当歌 提交于 2019-12-09 00:08:00
问题 I was wondering if anyone has managed to use the OpenCV implementation of Latent SVM Detector (http://docs.opencv.org/modules/objdetect/doc/latent_svm.html) successfully. There is a sample code that shows how to utilize the library but the problem is that the sample code uses a ready-made detector model that was generated using MatLab. Can some one guide me through the steps on how to generate my own detector model? 回答1: The MATLAB implementation of LatSVM by the authors of the paper has a

How to detect text region from a document image?

时光毁灭记忆、已成空白 提交于 2019-12-08 21:58:25
I have a document image, which might be a newspaper or magazine. For example, a scanned newspaper. I want to remove all/most text and keep images in the document. Anyone know how to detect text region in the document? Below is an example. Thanks in advance! example image: https://www.mathworks.com/matlabcentral/answers/uploaded_files/21044/6ce011abjw1elr8moiof7j20jg0w9jyt.jpg The usual pattern of object recognition will work here - threshold, detect regions, filter regions, then do what you need with the remaining regions. Thresholding is easy here. The background is pure white (or can be

Can anyone suggest a library for audio pattern recognition?

眉间皱痕 提交于 2019-12-08 02:11:55
问题 Description of my problem: I have a sample audio file and need to find it in another audio file (for example, to find starting and ending time of recognition fragment in the audio file). Is there any library for performing this task? 回答1: 1) CMU Sphinx. It is a Open Source Toolkit For Speech Recognition. Description : CMUSphinx is a speaker-independent large vocabulary continuous speech recognizer released under BSD style license. It is also a collection of open source tools and resources

Pattern recognition algorithms

人走茶凉 提交于 2019-12-06 22:25:47
问题 In the past I had to develop a program which acted as a rule evaluator. You had an antecedent and some consecuents (actions) so if the antecedent evaled to true the actions where performed. At that time I used a modified version of the RETE algorithm (there are three versions of RETE only the first being public) for the antecedent pattern matching. We're talking about a big system here with million of operations per rule and some operators "repeated" in several rules. It's possible I'll have

Detect repetitive pixel patterns in an image and remove them using matlab

冷暖自知 提交于 2019-12-06 14:46:35
I'm using Matlab R2017a and I have a RGB image (TIFF 128x128 uint16), shown below as a png image: Actual TIFF image: http://s000.tinyupload.com/index.php?file_id=13823805859248753003 As shown above, there's a repeating pattern of really light pixels (yellow and light blue). Because I'm using pixel data, the really light pixels are skewing my graphs, so I want to "neutralize" them. I looked everywhere but I couldn't find a clean pattern recognition/removal set of commands, so I ended up finding the rows in the image where there were more than 10 pixels with intensity value > 1036 - there were

Newbie: where to start given a problem to predict future success or not

好久不见. 提交于 2019-12-06 13:44:43
问题 We have had a production web based product that allows users to make predictions about the future value (or demand) of goods, the historical data contains about 100k examples, each example has about 5 parameters; Consider a class of data called a prediciton: prediction { id: int predictor: int predictionDate: date predictedProductId: int predictedDirection: byte (0 for decrease, 1 for increase) valueAtPrediciton: float } and a paired result class that measures the result of the prediction:

Drawing decision boundary of two multivariate gaussian

断了今生、忘了曾经 提交于 2019-12-06 12:33:59
I am trying to plot something similar to below: I am using Matlab. I achieved drawing contour plots. However I could not draw the discriminant. Can anyone show a sample Matlab code or give some idea to draw the discriminant? If you know the probability density function of each of the gaussian for a given point (x,y) , lets say its pdf1(x,y) and pdf2(x,y) then you can simply plot the contour line of f(x,y) := pdf1(x,y) > pdf2(x,y) . So you define function f to be 1 iff pdf1(x,y)>pdf2(x,y) . This way the only contour will be placed along the curve where pdf1(x,y)==pdf2(x,y) which is the decision