Simone Formichella Laboratory of Optoelectronics, University of Brescia 2D Vision Course Washers detector using a NI1764 Smart Camera.

Post on 12-Jan-2016

221 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

Transcript

Simone Formichella

Laboratory of Optoelectronics, University of Brescia

2D Vision Course

Washers detector using aNI1764 Smart Camera

Simone Formichella

Stepper motor Plate

Proximity sensor

Objects

Acquisition syncronized witha strobe

Objective

Simone Formichella

NI1764 Smart Camera

Requirements:

- Labview 2011 or lesser- Labview RT module- Vision development module- NI IMAQ dx module

Photo-electric sensor: Farnell XU5-M18PP340

Signal cable to external triggerLine of NI1764 Smart Camera.

System assembling

Simone Formichella

Delay Stroboscope LAEL 8804-B

Input trigger IN connected to 5V TTL out signal of the smart camera.

Stepper motor: SCT HY200

Stepper motor controlled by WinICSoftware.

System assembling

Simone Formichella

Smart Camera

Strobe

Proximitysensor

Rotating plate +Stepper motor

System configuration

Simone Formichella

Choice of the camera lens:

FOVx

Sensor Size x (SSx)

WorkingDistance (WD)

Focal (f)

Plan

e-se

nsor

dist

ance

(d)

x x

f WD

SS FOV

x x

f d f

SS FOV

x

x x

d SSf

FOV SS

6640 7.4 10 4.7xSS m mm

370d mm75xFOV mm

22f mm

Design phase two: sizing of measurement chain

Simone Formichella

Strobe perpendicular at the plate.

PROBLEM: plate transparent! Unable to detect correctly the objects and apply the binarization in the elaboration phase.

SOLUTION: cover the plate with a dark piece of cardboard that does not reflect light.

Lighting

Simone Formichella

IMAGE ACQUIRE AND

ELABORATIONSTOP

Waiting for trigger

Stop button

or erro

r

Stop buttonor error

Start acquisition

Wait

Elaborationdone

Triggerevent

WAITING FORTRIGGER SIGNALINIZIALIZATION

Software structure

Simone Formichella

Problem

The device has a limited computational power and support only very light programs like a simple acquisition: shared variables

Program splitted into two parts: acquisition of image performed by the camera, elaboration made by the host PC.

Simone Formichella

PRODUCER – CONSUMER LOOP

Software loaded on the smart camera:

Simone Formichella

The software interface

Simone Formichella

:

Setting the Smartcamera parameterswith variables and viewing Real-Time Acquisition.

Error handling.

Features

Simone Formichella

…THANK YOU FOR YOUR ATTENTION!

Potential improvements

Complete stepper motor control by the main software, interfacing the motor using a microcontroller PIC or Arduino like and LabView.

Possible industrial application: learn the form of a template object and recognize if the objects sliding under the camera are related to that object.

Have the complete control of the smart camera attributes from the main software.

top related