pr0ntools:cfcv:pr0nsweeper
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pr0ntools:cfcv:pr0nsweeper [2015/07/13 07:06] – mcmaster | pr0ntools:cfcv:pr0nsweeper [2015/07/16 06:20] (current) – [Running] mcmaster | ||
---|---|---|---|
Line 3: | Line 3: | ||
This page is about the pr0nsweeper Python GUI that allows a human to quickly review and fix CV results. | This page is about the pr0nsweeper Python GUI that allows a human to quickly review and fix CV results. | ||
- | Although this page is public its not advertised. | + | Proof of concept stage / not intended |
====== Keyboard and mouse quick summary ====== | ====== Keyboard and mouse quick summary ====== | ||
- | |||
- | Tile types: | ||
- | * Blue metal: " | ||
- | * White void: no material present | ||
- | * Orange unknown: could not decide if metal or void | ||
Left click: metal operation | Left click: metal operation | ||
Line 41: | Line 37: | ||
* Grid => simple algorithms determine if metal or not in that square | * Grid => simple algorithms determine if metal or not in that square | ||
- | However, this computer vision process is still far from perfect and generates a lot of uncertainties. | + | However, this computer vision process is still far from perfect and generates a lot of uncertainties. This GUI presents the CV results to a human that can quickly correct minor CV errors (humans are slow but much better at pattern matching than computers). |
Line 48: | Line 44: | ||
{{: | {{: | ||
- | The left area is the | + | At startup, the left area has the raw CV result and the right has the original image with the CV result overlaid on top. You'll notice there are a few different tile colors on the left: |
+ | * Blue metal: " | ||
+ | * White void: no material present | ||
+ | * Orange unknown: could not decide if metal or void | ||
+ | |||
+ | In most images there will be a large amount of blue and white with a number of orange tiles. | ||
+ | |||
+ | The reason why most warnings are metal is because | ||
Line 54: | Line 57: | ||
Left clicking is metal oriented: it turns tiles into metal. | Left clicking is metal oriented: it turns tiles into metal. | ||
+ | |||
+ | You may click on either the grid on the left or the image on the right. | ||
+ | |||
{{: | {{: | ||
Line 79: | Line 85: | ||
{{: | {{: | ||
- | Above: | + | Above: |
If the grid is detected incorrectly it will disrupt metal detection. | If the grid is detected incorrectly it will disrupt metal detection. | ||
Line 100: | Line 106: | ||
There' | There' | ||
+ | |||
+ | ====== Running ====== | ||
+ | |||
+ | Ubuntu 12.04x64 | ||
+ | |||
+ | sudo apt-get install -y python-qt4 python-imaging python-pyicu | ||
+ | |||
+ | git clone https:// | ||
+ | |||
+ | cd cf/sweeper | ||
+ | |||
+ | python sweeper.py --host sketchyurl.com | ||
+ | |||
+ | ====== Backend ====== | ||
+ | |||
+ | This is for informational purposes only. Its not required to use the pr0nsweeper GUI. | ||
+ | |||
+ | Data is collected using [[mcmaster: | ||
+ | |||
+ | The core CV engine is in cfcv.py. | ||
+ | * Straighten image | ||
+ | * Determine design grid | ||
+ | * Calculate metal and void thresholds | ||
+ | * Apply thresholds to image | ||
+ | * Munge output to try to heuristically correct errors | ||
+ | |||
+ | cfcv_batch.py is a batch processor around the engine that allows, for example, running jobs in parallel. | ||
+ | |||
+ | Once cfcv_batch.py completes the output directory is fed into the pr0nsweeper job distribution server, server.py. | ||
Line 105: | Line 140: | ||
* [[https:// | * [[https:// | ||
+ | |||
+ |
pr0ntools/cfcv/pr0nsweeper.1436771212.txt.gz · Last modified: 2015/07/13 07:06 by mcmaster