This thing is an enclosure for webcams saved from old notebook displays, it is in a customizable version available over the SCAD file and the customizer.
You can also use the STL file which holds a webcam pcb of 70x10x7 mm
with a support for two holes (x60.3/y7.5 | x10/y3.2) in the PCB.
It got a cable out hole in a diameter of 3 mm what is enough to fit in a normal USB cable snugly.
The hole you see right to the cam hole on the pictures i made after printing with a hot needle cause i fergot the hole for the status led, maybe next design ;)
This is one of my first designs i ever made, so if you got some constructive criticism, i got open ears :)
After you printed both parts, you had to thread in the USB cable and solder it to your saved webcam PCB.
You will see the supports for the holes in the PCB are much longer than it have to, this is because i melt the plastic down with a piece of hot steel to hold the PCB in place without any screws (same procedure a lot of manufactureres do).
Then you can push in the cap of the enclosure and maybe secure it with some drips of glue.
Ready is your "new" USB webcam
Made with openSCAD from scratch (surely with cheatsheet :)) to learn and play with openSCAD and do some useful things also.
This thing i designed especially as webcam for my OctoPI server, which lacks a good quality webcam. This i got now with my saved cam from an old HP Pavillion notebook.