. .

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Hi Devmonkey

    I downloaded and set up the camera software from Github.
    setting up is quite a process, a mate who is a far better programmer than me led me through the environment variables setup. I am not used to this sort of programming environment.
    Once installed correctly the software compiled without an issue.

    I was only using the webcam on my laptop and a hand held laser line (not point) generator. It worked very well.

    A logitech webcam was also tried it worked but there were strange fresnel like circles produced with the laser. The logitech camera had a quite large lens. The laptop camera did not display the same aberrations. its camera is tiny.

    I also tried a fuzzy pencil line drawn on paper that worked OK too.
    A piece of wire should be no problem.

    Over the weekend when I have time I will set up a test on a granite surface plate with some precision gauges. and a proper camera with and without a lens on a stand.

    It will be very interesting to get a better idea of repeatable accuracy. I am sure it will be very good.

    Congratulations Joe, great job.

    Regards
    John

    PS:
    I have started to draw up the flat surface generator I described,
    I want to make it 90% from Laser cut 5mm steel plate. Using a single universal beam as the main frame (100ub 23) I know that that profile is available in Australia and the UK Hopefully Europe and the US too. It will hold an up to 100x100mm RHS Workpiece. To be used as linear rail support beams for routers and mills.
    I hope it works! There is only one way to find out.

  2. #2
    Quote Originally Posted by John McNamara View Post
    Hi Devmonkey

    A logitech webcam was also tried it worked but there were strange fresnel like circles produced with the laser. The logitech camera had a quite large lens. The laptop camera did not display the same aberrations. its camera is tiny.

    I also tried a fuzzy pencil line drawn on paper that worked OK too.
    A piece of wire should be no problem.
    If you are using a laser with the (crap) optics of a webcam then you will get all sorts of weird patterns and probably more problematic non-linearity meaning each pixel will register slightly different height errors, best to get an old or cheap webcam and rip the sensor out and bin the optics. If you want to stick with optics then use a piece of white paper as a screen between the laser and the camera, focus the camera on the screen.

    With the pencil line did the gaussian detection work? I would be surprised if it did as the pencil line would be lower intensity than the paper. I would need to invert the intensity I would think for this to work properly with a pencil line or wire. Also to use as a shadow camera you will need to flood the background with an even light source, maybe a white led behind a piece of diffusion perspex (the translucent white stuff). This is to eliminate false triggering from the otherwise random background intensity of your workshop wherever the camera is pointing.
    Last edited by devmonkey; 20-08-2019 at 04:49 PM.

  3. #3
    Hi Devmonkey

    Yes the line did produce a gaussian plot. It was a crude test. I just placed the paper in front of the Logitec camera about 150mm away no backlighting just ambient fluorescent (Its night time) I did get the curve plot. it was all hand held testing lots of movement. I really want to test it properly. It will be interesting to try inverting greyscale?.

    Cheers
    John
    Last edited by John McNamara; 20-08-2019 at 04:52 PM.

  4. #4
    To invert the greyscale add the following line to FrameAnalyzer.analyzeNextFrame() below where the rotation is performed:
    Core.rotate(mat, mat, Core.ROTATE_90_CLOCKWISE);
    Core.bitwise_not(mat, mat); <-- Add this line
    Last edited by devmonkey; 20-08-2019 at 05:03 PM.

  5. #5
    Hi Devmonkey
    Hi All

    First tests!

    Today I set up a quick test to determine what sort of accuracy might be achieved using a Webcam and laser.

    I mounted the webcam on a linear rail slide, I was going to use gauge blocks against a stop to measure the resolution of the device using a cheap laser that I picked up from Aldi one day. it is the only line laser I have. That did not work because the hard plastic ends on the linear rails were too flexible, I could not get constant results.....

    The Webcam is a 640 x 480 resolution Microsoft LifeCam VX -1000. It has an adjustable lens that I was unable to remove quickly so I just used it as is! Pointing the laser directly at the camera produced horrible flare. However angling the camera did work! I am not sure why? Probably something to do with the lens. The next tests will be done without a lens.

    I think you could say that the tests were a bit of a comedy of errors!

    Fortunately I has also set a magnetic base 0.01mm indicator on the rail. It saved the day. By simply pressing on the linear slide I was able to move the slide laterally about 0.04mm with medium pressure. when i released the pressure the indicator went back to zero. This is all I needed...

    Now for the exciting part; Hidden at the bottom of the Gaussian graph there is a tiny numeric value, It followed my indicator movement when I moved the slide. very roughly a value of 1 to 4 on the graph value to 1 to 4 ticks on the 0.01mm indicator. I assume this correlation may not have been planned however with the particular camera I used it was very convenient.

    I ran the test several times and it was repeatable.
    0.01mm is equal to .00039" (about 4 tenths)
    A very good result from a crude setup.

    The following improvements will no doubt greatly improve the results.

    A better camera with the lens removed.

    Controlled ambient light. moving around the room can move the graph also sunlight entering the room moved the graph.
    The sensor needs to be shaded as much as possible.

    The numeric values at the bottom of the screen needs to be enlarged. Optional rounding and time averaging settings that can be applied to the displayed number would help to reduce the flicker.

    I have yet to test the device with wire.

    Regards
    John

    Three images below:

    Homage to Johann Carl Friedrich Gauss https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss

    And the measurement principal of reversal. https://www.google.com/search?q=meas...%3Apinterest.*


    Click image for larger version. 

Name:	Test 1 a 24-08-2019 2-02-15 PM.jpg 
Views:	1786 
Size:	233.0 KB 
ID:	26280

    Click image for larger version. 

Name:	0 24-08-2019 12-59-00 PM.jpg 
Views:	1730 
Size:	127.1 KB 
ID:	26282

    Click image for larger version. 

Name:	1 24-08-2019 12-59-50 PM.jpg 
Views:	1712 
Size:	127.3 KB 
ID:	26281

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. WANTED: K40 laser
    By dfox1787 in forum Items Wanted
    Replies: 0
    Last Post: 23-10-2018, 08:34 PM
  2. Newbie - Help With Laser Cutting Speed And Power - 60W Laser
    By nickpscott in forum Laser Machines & Building
    Replies: 2
    Last Post: 11-11-2015, 10:07 PM
  3. FOR SALE: K40 laser not working (laser fires)
    By calida in forum Items For Sale
    Replies: 0
    Last Post: 31-03-2015, 08:45 PM
  4. WANTED: GCc Laser Pro or Epilog Laser Cutter Machine
    By Brownhills school in forum Items Wanted
    Replies: 1
    Last Post: 10-05-2012, 04:30 PM
  5. help with cnc laser
    By swinds in forum Laser Machines & Building
    Replies: 11
    Last Post: 09-01-2012, 10:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •