Jul 25 2026 : Yoga for Hackers
1 week ago



$ ./sample/simple/simpletest ~/Desktop/0004.jpg
libdecodeqr version 0.9.3 ($Rev: 42 $)
STATUS=2080
this is a test
Hit any key to end.


from opencv import cv
from opencv import highgui
from time import sleep
def makeMagic(left, right, out):
chans=[]
for i in range(6):
chans.append(cv.cvCreateImage(cv.cvGetSize(left),8,1))
cv.cvSplit(left, chans[0], chans[1], chans[2], None);
cv.cvSplit(right, chans[3], chans[4], chans[5], None);
cv.cvMerge(chans[3],chans[4],chans[2], None, out);
#cv.cvMerge(None,chans[1],None, None, out);
cam=[]
def main():
cam.append(highgui.cvCreateCameraCapture(0))
cam.append(highgui.cvCreateCameraCapture(1))
highgui.cvNamedWindow ("carrots", highgui.CV_WINDOW_AUTOSIZE)
uno=highgui.cvQueryFrame(cam[0]);
dos=highgui.cvQueryFrame(cam[1]);
highgui.cvShowImage("carrots",uno);
highgui.cvWaitKey(0);
highgui.cvShowImage("carrots",dos);
highgui.cvWaitKey(0);
merge=cv.cvCreateImage(cv.cvGetSize(uno),8,3)
makeMagic(uno, dos, merge)
highgui.cvShowImage("carrots",merge);
highgui.cvWaitKey(0);
while True :
uno=highgui.cvQueryFrame(cam[0]);
dos=highgui.cvQueryFrame(cam[1]);
makeMagic(uno, dos, merge);
highgui.cvShowImage("carrots",merge);
if highgui.cvWaitKey(1)=="s":
cam.append(cam.pop(0))
print "tick"
if __name__=="__main__":
main()


Even when they are cropped.


The Testors green spray paint #1601 makes the boards look like they have a solder mask but it is not the same as a real solder mask. Also, the paint really does take 48 hours to dry. The Cool-Amp Plating powder also worked well at improving solderability.
IR Glare on a camera with an IR Filter
The Illuminator is little bright if you look at it with a camera without an IR filter. The human eye can not see any light being emitted by the LEDs.
The IR Illuminator consumes about 5 Watts of power at the maximum brightness that could be achieved with this power supply.

















I started with some scrap aluminum that I had let over from another project. This is why I never throw out scrap metal. I think this particular piece is 0.08 inches thick.
Then I used a hacksaw to remove the bits that were not shaped like a wrench.
Cutting off more non-wrench bits.
Once I had it roughly cut to size I used a Dremel tool with cut-off wheel to give it a bit of shape.
I wear safety glasses and so can you!
Now it is starting to look vaguely like a wrench.
Use files and the grinding wheel to further shape the tool.
Drill the center hole if you are making a lens adjustment tool.
You can use a reamer to enlarge holes.
The deburring tool is really effective at preventing metal splinters, which are much worse then wooden splinters.
Use needle files to cut notches 120 degrees apart for the rotation pegs.
Finished Logitech QuickCam Lens Adjustment Tool.
Finally got the screws out.
Then I figure out you can not take it apart from this direction.
This is where I realize I will need a special tool to remove the lens since its glued in.
Voila! Lens removed using custom Logitech Lens Adjustment Tool.
Why does this cover have latches and glue?! The permanent magnets for the auto focus motor hold it on just fine by itself.
Here is the linear drive motor exposed. It looks like they are using M8 threading for the lens mount, and the motor's displacement seems linearly proportional to the input voltage with a maximum of 3.3V. I think the auto focus uses contrast measurement so in theory you might be able to replace the lens with some sort of c-mount system and breakout the auto focus wires to drive the focus of an external lens.
Attempted to use "Component Cooler" to cool the CCD which in theory should improve its sensitivity.
I will admit that I did not really think this through. I couldn't really get it to work, and I quickly realized that I forgot what happens when you make something really cold in a room that has humidity. The entire circuit board ended up covered in condensation while it was running. Fortunately nothing fried and I had canned air to blow the water off.
If you look closely you can see where I lifted the trace for the auto focus connection.
Here is a photo taken from the web cam after the camera has been fully reassembled. The focus is a smidgen off but the camera is working again so it's time to build a high resolution stereovision system with it.