rmod (ver2) help please

vonnieda
Posts: 30
Joined: Sun Jan 03, 2016 7:05 pm

Re: rmod (ver2) help please

Post by vonnieda »

Pixopax wrote:Jason, I saw that the opencv gaussian blur function makes my framerate go down very strong, do you know if that is opencv-related?
I have a very fast computer, but as soon as I use gaussian blur I only have a fps of 1-2 frames / second left.
Guassian blur is indeed very slow, and you really only want to do it during vision processing, not for every frame from the camera.
Pixopax
Posts: 122
Joined: Tue Feb 02, 2016 4:16 pm

Re: rmod (ver2) help please

Post by Pixopax »

But it makes detection better, it eliminates small reflections from the plastic tape.
I will see if I can change the algorithm in only using it on a single frame.

I tried that filter out on a clear tape which i made black with a marker. That makes detection much easier, but the light reflects heavy as it is a high-gloss plastic. Blurring this makes it better, but is very slow.
Now I look for a way to make these clear tapes black with a dull finish, that would be perfect.
I could not sonsistently place parts from clear tapes, and almost all larger Cs and LEDs come in clear tape.
JuKu
Site Admin
Posts: 1114
Joined: Thu Feb 14, 2013 3:06 pm
Location: Tampere, Finland
Contact:

Re: rmod (ver2) help please

Post by JuKu »

The measurement algorithm in standard software does that (takes single frame for processing and measurement), not sure what r-mod does. I'll see about adding blur.
mrandt
Posts: 407
Joined: Mon Apr 27, 2015 10:56 am
Location: Stuttgart, Germany

Re: rmod (ver2) help please

Post by mrandt »

I am using 3D printed strip feeders from either blue or green material; so I can always detect the sprocket holes no matter the colour of the tape.

I have shared the design and STLs here:
http://malte-randt.de/strip-feeders-and ... y-for-smd/

Regarding reflections on tape I believe these are mostly caused by inadequate lighting; so add some more blurring to your light source and / or adjust brightness (with high speed PWM).

In addition to that, I think that sprocket hole detection is nice but in many cases it would be more reliable if LitePlacer also supported a much simpler approach:

I wish I could teach the software the center of first and last component using camera and jogging controls. By setting tape width and component pitch / component count, it could then easily do the maths and figure out the location of each part...

I documented that feature request in November last year:
https://github.com/jkuusama/LitePlacer-DEV/issues/29
Post Reply