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

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

Jan 12, 2016

Download

Documents

Mervyn Dean
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Simone Formichella Laboratory of Optoelectronics, University of Brescia 2D Vision Course Washers detector using a NI1764 Smart Camera.

Simone Formichella

Laboratory of Optoelectronics, University of Brescia

2D Vision Course

Washers detector using aNI1764 Smart Camera

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

Simone Formichella

Stepper motor Plate

Proximity sensor

Objects

Acquisition syncronized witha strobe

Objective

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

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

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

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

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

Simone Formichella

Smart Camera

Strobe

Proximitysensor

Rotating plate +Stepper motor

System configuration

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

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

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

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

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

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

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

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.

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

Simone Formichella

PRODUCER – CONSUMER LOOP

Software loaded on the smart camera:

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

Simone Formichella

The software interface

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

Simone Formichella

:

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

Error handling.

Features

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

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.