computer-vision,neural-network,svm,image-recognition , What type of image classifier should I use?


What type of image classifier should I use?

Question:

Tag: computer-vision,neural-network,svm,image-recognition

I am trying to build an experimental image classifier for the Mallampati score, used in anesthesiology, as a free community project. Basically, an input picture of the oral cavity with all amounts of scale, translation, and rotation variance would be presented, and the classifier would grade it as Mallampati 1, 2, 3, or 4.

Given the amount of shape, scale, translation, and rotation variance I will get in the input pictures, I was thinking that a multilayer perceptron neural network would be best. However, I have also looked into things such as LibSVM, thinking SVM could be an option too...

I am currently building a photobooth website as an attempt to gather some data. If you think the project is a good idea, and you would be interested in participating, drop me a line through raoul dot schorer at gmail.com

Those are the kind of pictures I would get (sorry for this pic, now you know what your dentist feels like :-)

mallampati pics


Answer:

Yes

You need training a neuronal network or something like thath with the pattern of your images ( http://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Mallampati.svg/220px-Mallampati.svg.png ).

Depends of your program configuration. If it is highly sophisticated, would receive any image. If the task is very complex , it will have to standardize the entry as you suggested.

Regards


Related:


OpenCv subtract same image but from different sources


image,opencv,computer-vision,subtract
I need to subtract two images: img1 is original image act as objectObject Image (img1) img2 is clicked using camera act as sceneScene Image (img2) Result Image: drive.google.com/open?id=0B0IUdCi6RzGcRENDSEdoa3dRN2c&authuser=0 (I cannot add more than two links) Before calling subtract method following steps are performed: object image (img1) is located in scene...

De-blur an image in matlab - Error in image dimensions


image,matlab,image-processing,computer-vision
I am trying to do deblurr an image in matlab. this is my code im = im2double(imread('C:\Users\adhil\Desktop\matlab pics\test.JPG')); figure, imshow (G1); % FFT for B1 G_1 = fftshift(G1); G_1 = fft2(G_1); G_1 = ifftshift(G_1); h_1 = fspecial( 'gaussian', [130 221] , 1.0 ); % Fourier Transform of 2D Gaussian H_1...

Using Python OpenCV, How would you extract an image area inside a particular color bounding box?


python,image,opencv,computer-vision
Given a photo that I have manually drawn a colored bounding box, I want to copy / crop the image content, to keep the content inside the bounding box. The goal is to detect that color bounding box, and then use that to tell the script where to copy/crop. I...

MATLAB - How to change “Validation Check” count


matlab,neural-network
How can I change "Validation Checks" value from 6 to higher or lower values using code? I have following code: % Create a Pattern Recognition Network hiddenLayerSize = ns; net = patternnet(hiddenLayerSize); net.divideParam.trainRatio = trRa/100; net.divideParam.valRatio = vaRa/100; net.divideParam.testRatio = teRa/100; % Train the Network [net,tr] = train(net,inputs,targets); % Test...

FeedForward Neural Network: Using a single Network with multiple output neurons for many classes


machine-learning,neural-network,backpropagation,feed-forward
I am currently working on the MNIST handwritten digits classification. I built a single FeedForward network with the following structure: Inputs: 28x28 = 784 inputs Hidden Layers: A single hidden layer with 1000 neurons Output Layer: 10 neurons All the neurons have Sigmoid activation function. The reported class is the...

Computer Vision Application on website


computer-vision
I want to create a website where a user can see how some Computer Vision algorithm or application wotks. For example, user uploads or gives a link to his image and clicks "RGB Decomposition", the result is 3 pictures: Red, Green and Blue channels of the original image. Please, advise...

How to separate the patches in the image?


image,matlab,image-processing,computer-vision,vision
I want to initialize the dictionary of this image. The image is the same as this one: image source The size of the grey image is 320*512 double. I want to separate the 40 brain image patches in this grey image. I have two questions 1) how to get the...

Having trouble creating my Neural Network inputs


machine-learning,artificial-intelligence,neural-network
I'm currently working on a neural network that should have N parameters in input. Each parameters can have M different values (discrete values), let's say {A,B,C,…,M}. It also has a discrete number of outputs. How can I create my inputs from this situation? Should I have N×M inputs (having 0 or 1 as value), or should I think of a different...

OpenCV SVM training dataset


opencv,dataset,computer-vision,svm,training-data
Lets say I have a dataset of about 350 positive images and more than 400 negative images. They aren't the same size. Also their size is bigger than 640x320. What should I do to create a better dataset? Do I need the images to be smaller? If yes, why? Should...

Programming the Back Propagation Algorithm


java,machine-learning,neural-network
I'm trying to implement the backpropagation algoirthm into my own net. I understand the idea of the backprop agl, however, I'm not strong with math. I'm just working on the first half of the backprop alg, computing the output layer (not worrying about partial derivatives in the hidden layer(s) yet)....

How to match the resulting “map” with the given “color_map”?


image,matlab,image-processing,computer-vision,vision
I have a RGB image called imrgb, the size of which is 320*512*3 double.And I also have the color_map = 64*3 double. I use the following code: [X, map] = rgb2ind(imrgb, 256) the resulting X= 320*512 uint8, and the resulting map = 65*3 double. The resulting "map" is totally different...

Surface normal on depth image


c++,opencv,computer-vision
How to estimate the surface normal of point I(i,j) on a depth image (pixel value in mm) without using Point Cloud Library(PCL)? I've gone through (1), (2), and (3) but I'm looking for a simple estimation of surface normal on each pixel with C++ standard library or openCV. ...

How do I pixelate/blur detected face in MATLAB?


matlab,computer-vision,matlab-cvst
I need to automate blurring/pixelation of faces in a video. I did this using a MATLAB script. I have the R2013a version, so functions like readFrame and hasFrame don't work, hence the weird code. The code currently annotates the face using a box. I need to pixelate this area, or...

how to translate and scale the image?


image,matlab,image-processing,computer-vision,vision
My image looks like this: The given imrgb = 320*512*3 double; color_map = 64*3 double; after using [X, map] = rgb2ind(imrgb, color_map); I get X = 320*512 uint8. The image is too big for the further processing. My question is how to translate and scale the image to a standard...

Multilayer Perceptron replaced with Single Layer Perceptron


math,machine-learning,neural-network,linear-algebra,perceptron
I got a problem in understending the difference between MLP and SLP. I know that in the first case the MLP has more than one layer (the hidden layers) and that the neurons got a non linear activation function, like the logistic function (needed for the gradient descent). But I...

Convolution Neural Network in torch. Error when training the network


lua,neural-network,torch
I am trying to base my Convolution neural network upon the following tutorial: https://github.com/torch/tutorials/tree/master/2_supervised The issue is that my images are of different dimensions than those used in the tutorial. (3x200x200). Also I have only two classes. The following are the changes that I made : Changing the dataset to...

Torch Lua: Why is my gradient descent not optimizing the error?


lua,neural-network,backpropagation,training-data,torch
I've been trying to implement a siamese neural network in Torch/Lua, as I already explained here. Now I have my first implementation, that I suppose to be good. Unfortunately, I'm facing a problem: during training back-propagation, the gradient descent does not update the error. That is, it always computes the...

OpenCV algorithm of contours searching and creation of bounding rectagle


python,algorithm,opencv,computer-vision,contour
Hi to the whole programmers society! It has become habitual to me to get acknowledgement of every algorithm I employ in projects. And not long ago I implemented OpenCV library methods to detect contours within input frame as well as to draw bounding rectangle around detected object. So I came...

Filter out minimum area rectangles - Python OpenCV


python,opencv,image-processing,computer-vision
I am trying to get the coordinates of the 4 vertices of minimum area rectangles constructed around some objects of similar characteristics in an image, ignore if they are equal to a certain set of values, and if they are not, add them to a list. Here is how I...

Haar Cascade classifier does not detect faces in simple frontal pictures


python,opencv,computer-vision
Trying to do some simple face detection using opencv + python using Haar Cascade Classifier. Below code perfectly detects faces in image1, image2 but fails to detect in image3 Kindly help me understand what are the reasons for non-detection of face in image3 import numpy as np import cv2 face_cascade...

Saving images with more than 8 bits per pixel in matlab


image,matlab,image-processing,computer-vision
I need to save a set of pre-processing images in matlab, resulting in grayscale images. The problem is the fact that these pre-processed images have pixel values higher than 255. If I save them with imwrite() as, for instance, .PNG files, does matlab normalize the values to be in [0,255]...

Kinectv2 normalizing depth values


c#,opencv,computer-vision,kinect,kinect-sdk
I am using Kinect v2 to capture the depth frames. I saw Kinect SDK 1.x codes in C++, they used this BYTE depth = 255 - (BYTE)(256*realDepth/0x0fff); I want to know, what is the purpose of this command and do I need to use this also for Kinect v2? If...

(Java) Partial Derivatives for Back Propagation of Hidden Layer


java,machine-learning,artificial-intelligence,neural-network
Yesterday I posted a question about the first piece of the Back propagation aglorithm. Today I'm working to understand the hidden layer. Sorry for a lot of questions, I've read several websites and papers on the subject, but no matter how much I read, I still have a hard time...

Matlab: How can I store the output of “fitcecoc” in a database


matlab,machine-learning,computer-vision,classification,matlab-cvst
In Matlab help section, there's a very helpful example to solve classification problems under "Digit Classification Using HOG Features". You can easily execute the full script by clikcing on 'Open this example'. However, I'm wondering if there's a way to store the output of "fitcecoc" in a database so you...

computing Histogram of oriented gradients on log polar bins [closed]


matlab,opencv,image-processing,computer-vision,emgucv
I want to compute histogram of oriented gradient on my image. But I don't want to divide the image to regular square blocks. I'm going to divide the image to uniform log polar bins(like bins in shape context or bins like here ) and then on each bin(block) the histogram...

Opencv mlp Same Data Different Results


c++,opencv,machine-learning,neural-network,weight
Let Me simplify this question. If I run opencv MLP train and classify consecutively on the same data, I get different results. Meaning, if I put training a new mlp on the same train data and classifying on the same test data in a for loop, each iteration will give...

ArrayIndexOutOfBoundsException in 3D array


java,arrays,multidimensional-array,neural-network
I'm trying to make a jagged array for a neural network and this is giving me an out of bounds error... int[] sizes = { layer1, layer2, layer3 }; int k = sizes.length - 1; double[][][] net = new double[k][][]; int i; for (i = 0; i < k; i++)...

brain.js: XOR example does not work


javascript,machine-learning,neural-network
I'm trying to understand brain.js. This is my code; it does not work. (Explaination of what I expect it to do below) <script src="https://cdn.rawgit.com/harthur/brain/gh-pages/brain-0.6.3.min.js"> <script> var net = new brain.NeuralNetwork(); net.train([{input: [0, 0], output: [0]}, {input: [0, 1], output: [1]}, {input: [1, 0], output: [1]}, {input: [1, 1], output: [0]}]);...

How does Caffe determine the number of neurons in each layer?


neural-network,deep-learning,caffe
Recently, I've been trying to use Caffe for some of the deep learning work that I'm doing. Although writing the model in Caffe is very easy, I've not been able to know the answer to this question. How does Caffe determine the number of neurons in a hidden layer? I...

solvePnP: Obtaining the rotation translation matrix


c++,opencv,matrix,computer-vision,transform
I am trying to image coordinates to 3D coordinates. Using the solvePnP function (in C++)has given me 3X1 rotation matrix and 3X1 translation matrix. But isn't the [R|t] matrix supposed to be 3X4? Any help will be greatly appreciated!...

What is the definition of “feature” in neural network?


neural-network
I am a beginner of the neural network. I am very confused about the word feature. Can you give me a defintion of feature? Are the features the neurons in the hidden layers?

Camera calibration and conversion of coordinates(OpenCV)


c++,opencv,c++11,computer-vision
I am trying to map the 2D pixel coordinates in an image to real world 3D coordinates with respect to a fixed webcam. The calibration tutorial on the OpenCV page (http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html) has given me the following xml file: <?xml version="1.0"?> <opencv_storage> <calibration_Time>"Wed Jun 17 12:02:01 2015"</calibration_Time> <nrOfFrames>25</nrOfFrames> <image_Width>640</image_Width> <image_Height>480</image_Height>...

Estimating pose of one camera given another with known baseline


opencv,computer-vision
I am a beginner when it comes to computer vision so I apologize in advance. Basically, the idea I am trying to code is that given two cameras that can simulate a multiple baseline stereo system; I am trying to estimate the pose of one camera given the other. Looking...

Does Andrew Ng's ANN from Coursera use SGD or batch learning?


machine-learning,neural-network
What type of learning is Andrew Ng using in his neural network excercise on Coursera? Is it stochastic gradient descent or batch learning? I'm a little confused right now......

Predict label of one single image using DeepLearnToolbox


matlab,machine-learning,computer-vision,deep-learning,conv-neural-network
I am using DeepLearnToolbox to do CNN (Convolutional Neural Networks). I have computed my network successfully and I've seen my accuracy, but my question is: how can I query one single image into the network in order to get the label predicted? The final result that I want to get...

Why is there only one hidden layer in a neural network?


machine-learning,neural-network,genetic-algorithm,evolutionary-algorithm
I recently made my first neural network simulation which also uses a genetic evolution algorithm. It's simple software that just simulates simple organisms collecting food, and they evolve, as one would expect, from organisms with random and sporadic movements into organisms with controlled, food-seeking movements. Since this kind of organism...

how to install Lasagne package with python con windows


python,package,neural-network
I'm new on python and I'm running some script on python 3.4. I'm getting the following error: ImportError: No module named 'lasagne'. Does someone know how to install this package on Python please? ...

What are units in neural network (backpropagation algorithm)


machine-learning,artificial-intelligence,neural-network,classification,backpropagation
Please help me to understand unit thing in neuron networks. From the book I understood that a unit in input layer represents an attribute of training tuple. However, it is left unclear, how exactly it does. Here is the diagram: There are two "thinking paths" about the input units. The...

MATLAB ConnectedComponentLabeler does not work in for loop


image,matlab,image-processing,computer-vision,matlab-cvst
I am trying to get a set of binary images' eccentricity and solidity values using the regionprops function. I obtain the label matrix using the vision.ConnectedComponentLabeler function. This is the code I have so far: files = getFiles('images'); ecc = zeros(length(files)); %eccentricity values sol = zeros(length(files)); %solidity values ccl =...

HOG Feature Extraction of Arabic Line Images


image-processing,machine-learning,computer-vision
I am doing a project on Writer Identification. I want to extract HOG features from Line Images of Arabic Handwriting. And than use Gaussian Mixture Model for Classification. The link to the database containing the line Images is : http://khatt.ideas2serve.net/ So my questions are as follows; There are three folders...

Camera Calibration with OpenCV: Using the distortion and rotation-translation matrix


c++,opencv,computer-vision,robotics
I am reading the following documentation: http://docs.opencv.org/doc/tutorials/calib3d/camera_calibration/camera_calibration.html I have managed to successfully calibrate the camera obtaining the camera matrix and the distortion matrix. I had two sub-questions: 1) How do I use the distortion matrix as I don't know 'r'? 2) For all the views I have the rotation and...

Calculating real world co-ordinates using stereo images in Python and OpenCV


python,opencv,computer-vision,coordinates,stereo-3d
I'm working on calculating the real world coordinates of an object in a scene by using a pair of stereo images. The images are simulations of perfect pinhole cameras so there is no distortion to correct and there is no rotation. I know OpenCV has a bunch of functions to...

How to convert a RGB image to a two dimensional image in Matlab


image,matlab,image-processing,computer-vision,vision
I have a RGB image called imrgb, the size of which is 320*512*3. I want to know how to convert it to a two dimensional image? I saw some colorful images, but they are still two dimensional instead of three dimensional. Can anyone tell me how to convert it to...

Print output of a Theano network


python,debugging,neural-network,theano
I am sorry, very newbee question... I trained a neural network with Theano and now I want to see what it outputs for a certain input. So I can say: test_pred = lasagne.layers.get_output(output_layer, dataset['X_test']) where output_layer is my network. Now, the last layer happens to be a softmax, so if...

Wrong values for partial derivatives in neural network python


python,numpy,neural-network
I am implementing a simple neural network classifier for the iris dataset. The NN has 3 input nodes, 1 hidden layer with two nodes, and 3 output nodes. I have implemented evrything but the values of the partial derivatives are not calculated correctly. I have exhausted myself looking for the...

C++ FANN fann_run always produce same output


c++,neural-network,fann
I am using the FANN Library to build neural networks to proceed a regression problem. The thing is, once the networks has been trained on the relevant training set (which seems to work quite well), every single test output the exact same output. In other words, given any state of...

OpenCL / AMD: Deep Learning


sdk,opencl,neural-network,gpgpu,deep-learning
While "googl'ing" and doing some research I were not able to find any serious/popular framework/sdk for scientific GPGPU-Computing and OpenCL on AMD hardware. Is there any literature and/or software I missed? Especially I am interested in deep learning. For all I know deeplearning.net recommends NVIDIA hardware and CUDA frameworks. Additionally...

Detecting circles and shots from paper target


image,opencv,image-processing,computer-vision,artificial-intelligence
I'm making a small project where i have to detect points scored from a given image of paper target. Something similar to TargetScan app for iPhone. I'm using openCV for processing image and basically i have two parts for this, one is to detect circles from a target(which works pretty...

Any Ideas for Predicting Multiple Linear Regression Coefficients by using Neural Networks (ANN)?


matlab,neural-network,linear-regression,backpropagation,perceptron
In case, there are 2 inputs (X1 and X2) and 1 target output (t) to be estimated by neural network (each nodes has 6 samples): X1 = [2.765405915 2.403146899 1.843932529 1.321474515 0.916837222 1.251301467]; X2 = [84870 363024 983062 1352580 804723 845200]; t = [-0.12685144347197 -0.19172223428950 -0.29330584684934 -0.35078062276141 0.03826908777226 0.06633047875487]; I...

Extract a page from a uniform background in an image


image,matlab,image-processing,computer-vision
If I have an image, in which there is a page of text shot on a uniform background, how can I auto detect the boundaries between the paper and the background? An example of the image I want to detect is shown below. The images that I will be dealing...