- Run a script to go through a directory of raw fire images and make sure there are no pixels with the rgb value (255,0,0) since this is going to be the indicator color in the next stages of this process. Also create a copy of all of the original images. There is now a directory of slightly modified images called 'target' and a directory of the original images called 'original'.
- Use a paint program and manually label all target image fire pixels by coloring them with the rgb value (255,0,0).
- Run a script which reads each target image and where it finds pixels with the color (255,0,0) grab the color value at the corresponding pixel location in the original image and write it down to file.
- Repeat steps 1-3 for positive and negative example images to create positive and testing sets.
- Get rid of all duplicate values in the data sets using the Unix 'sort' and 'uniq' commands.
- Run another script to convert the raw positive and negative sets into training and testing sets of mixed negative and positive examples.
- Run a training program to train the perceptron classifier.
- Feed a testing image to the final fire color classifier program which uses the trained perceptron to classify fire pixels in the input image.
On a related note, the following are the color palettes of fire and non-fire pixel colors:


No comments:
Post a Comment