Water Test Strip Color Extraction
This repository extracts colors from a test strip using traditional Computer Vision Techniques
git clone https://github.com/seejiafong/TestStripColorDetection.git
cd TestStripColorDetection
Assuming you have anaconda installed:
conda create -n teststrip
conda activate teststrip
pip install -r requirements.txt
python ImageProcessing.py hold1_2.jpg
2 parts:
- Check that the correct pixels were extracted: look for "6 final.jpg" that was generated
- Check that the color matching looks correct: open "color.html" in a browser. The extracted colors may look a bit dull, you can refer back to the input image "hold1_2.jpg" to verify the colors.
To fix the error below, go to the file and line number specified, change "asscalar()" to "isscalar()", then the code will work