Popular recipes by J W J http://code.activestate.com/recipes/users/4181154/2012-09-14T17:07:50-07:00ActiveState Code RecipesSaving a Tkinter canvas image or animation using PIL (Python) 2012-03-05T04:09:00-08:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578063-saving-a-tkinter-canvas-image-or-animation-using-p/ <p style="color: grey"> Python recipe 578063 by <a href="/recipes/users/4181154/">J W J</a> (<a href="/recipes/tags/borderless/">borderless</a>, <a href="/recipes/tags/canvas_save/">canvas_save</a>, <a href="/recipes/tags/imagegrab/">imagegrab</a>). Revision 2. </p> <p>Demonstrates saving an animation done on Tkinter canvas as a series of jpeg images</p> Sudoku Game Generator (Python) 2012-09-14T17:07:50-07:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578250-sudoku-game-generator/ <p style="color: grey"> Python recipe 578250 by <a href="/recipes/users/4181154/">J W J</a> (<a href="/recipes/tags/game/">game</a>, <a href="/recipes/tags/python/">python</a>, <a href="/recipes/tags/sudoku/">sudoku</a>). Revision 3. </p> <p>Outputs difficult games with solutions.</p> Test various OpenCV feature detectors in Python (Python) 2012-09-13T16:07:21-07:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578261-test-various-opencv-feature-detectors-in-python/ <p style="color: grey"> Python recipe 578261 by <a href="/recipes/users/4181154/">J W J</a> (<a href="/recipes/tags/feature_detection/">feature_detection</a>, <a href="/recipes/tags/opencv/">opencv</a>). </p> <p>Iterates through all feature detectors (that didn't crash my computer) and plots the point results.</p> Trifocal Tensor class (Python) 2012-08-28T14:16:47-07:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578248-trifocal-tensor-class/ <p style="color: grey"> Python recipe 578248 by <a href="/recipes/users/4181154/">J W J</a> . </p> <p>A class that creates a trifocal tensor from either a pair of camera matrices or three corresponding point sets. &lt;code&gt;Trifocal( Pi, Pii )&lt;/code&gt; &lt;code&gt;Trifocal( x0, x1, x2 )&lt;/code&gt; Includes methods for testing constraints, retrieving epipoles and fundamental matrices.</p> trifocal tensor from two camera matrices (Python) 2012-06-27T03:38:35-07:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578170-trifocal-tensor-from-two-camera-matrices/ <p style="color: grey"> Python recipe 578170 by <a href="/recipes/users/4181154/">J W J</a> (<a href="/recipes/tags/tensor/">tensor</a>, <a href="/recipes/tags/trifocal/">trifocal</a>). Revision 4. </p> <p>Get the 3x3x3 (27 element) trifocal tensor from two 3x4 camera matrices.</p> <pre class="prettyprint"><code>T[i,j,k] = A[j,i]*B[k,4] - A[j,4]*B[k,i] </code></pre> Python+OpenCV: Camera frame grab and sobel display (Python) 2012-03-22T07:21:35-07:00J W Jhttp://code.activestate.com/recipes/users/4181154/http://code.activestate.com/recipes/578085-pythonopencv-camera-frame-grab-and-sobel-display/ <p style="color: grey"> Python recipe 578085 by <a href="/recipes/users/4181154/">J W J</a> (<a href="/recipes/tags/opencv/">opencv</a>, <a href="/recipes/tags/python/">python</a>). Revision 2. </p> <p>A couple snippets grabbed from other sources and put together here. Demonstrates: Conversion to greyscale: cv.CvtColor, Sobel operator: cv.Sobel, Smoothing: cv.Smooth</p>