On Friday 05 December 2014 04:05:13 Marius Liebenberg did opine
And Gene did reply:
> On 2014-12-05 06:01, sam sokolik wrote:
> > Finally got some time to take a video..  The implementation is pretty
> > embarrassing..
> > 
> > Small hal file that runs opencv - sets some parameters for the
> > houghcircle finder, bluring and some tolerances..
> > 
> > Gcode program tells the hal component to find a circle
> > Hal componant finds circle and sets hal pins of its location
> > Gcode program continues and reads the position from the hal pins.
> > Gcode program calculates how much to move to center the frame
> > 
> > I am not too impressed with the houghcircle function.  I think it
> > should work better but might not understand it.
> > 
> > The view is about .001"/pixel the circle is .25" diameter
> > 
> > http://youtu.be/Pe2RACwiEbg
> > 
> > I will post the hal file and gcode program when I get back to it.
> > 
> > sam
> 
> Sam this is looking good. I am watching this thread with keen interest
> as I will be doing a pick and place machine in the new year.
> 
> > On 10/07/2014 01:06 PM, sam sokolik wrote:
> >> in the future one of my projects is shape recognition.  I have been
> >> wanting to play with it for a while now.
> >> 
> >> bari on irc mentioned
> >> https://github.com/firepick1/FireSight/wiki/firesight
> >> which is based on opencv.  I installed it and it seems to work as
> >> expected.  you can use a command line to test pipelines.  It uses a
> >> c++ library and json for communication.  It is mainly used for pick
> >> and place machines.
> >> 
> >> I wanted to play with python and found that opencv natively has a
> >> python wrapper.. (I may not be using the terms correctly)
> >> 
> >> so I created a small program (mainly a copy and paste from some
> >> examples)
> >> 
> >> http://pastebin.com/AUKgyhAh
> >> 
> >> it takes video from input 0 (my web cam)  looks for circles that are
> >> between 10 and 15 pixels radius and draws a bulls eye.
> >> 
> >> http://electronicsam.com/images/KandT/testing/Screenshot%20from%2020
> >> 14-10-07%2011:27:48.png
> >> 
> >> this is my first real exposure to python. the next step is to see
> >> how I can fidldle hal stuff with it..
> >> 
> >> This seems like it would have some real applications.  There are
> >> different detectors - circles are just one of many..
> >> 
> >> sam

The thing that impresses the hell out of me was the response time of the 
video.  I have a setup using emc-camview, and it takes 4 or so seconds for 
the video to show a stable machine position after a move has been done. So 
while it can be made to work as a homing device with the align buttons, I 
think, unless a rotation is needed, that I can do it faster and just as 
accurately by hand.  And yesterday, after I had mounted a jig to clamp 
work on the table, I ran one of the 3/8" bolts in the end of the clamp 
into my camera, knocking it loose from its super glued position on the 
side of the head.  So I haven't found a round tuit to reglue it and 
recalibrate it.  And the camera itself was so poorly built that I'll need 
to super glue it back into its housing.  A rather gentle tug on the cable 
dislodged it months ago.  Now that the camera and all is no longer "fixed" 
in position, I'll fix it again before I remount & recal.  So many things 
to do, and so little time to do it in. :(

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to